{"version":3,"file":"time-pill.cjs","names":[],"sources":["../../../recipes/conversation_view/time_pill/time_pill.vue"],"sourcesContent":["<template>\n  <time\n    data-qa=\"dt-recipe-time-pill\"\n    :dateTime=\"dateTime\"\n    class=\"d-recipe-time-pill\"\n  >\n    {{ dateTimeDisplay }}\n  </time>\n</template>\n\n<script>\nexport default {\n  compatConfig: { MODE: 3 },\n  name: 'DtRecipeTimePill',\n\n  props: {\n    /**\n     * Date time display value\n     */\n    dateTimeDisplay: {\n      type: String,\n      required: true,\n    },\n\n    /**\n     * Machine-readable attribute\n     * Accepts a string value of YYYY-MM-DD or YYYY-MM-DDThh:mm:ssTZD\n     */\n    dateTime: {\n      type: String,\n      required: true,\n      validator: (t) => {\n        // Since this will only ever be used in the context of a date, we're rejecting non date inputs\n        const x = new Date(t);\n        if (x instanceof Date && !isNaN(x)) {\n          return true;\n        }\n        return false;\n      },\n    },\n  },\n};\n</script>\n"],"mappings":"wNAWA,IAAK,EAAU,CACb,aAAc,CAAE,KAAM,EAAG,CACzB,KAAM,mBAEN,MAAO,CAIL,gBAAiB,CACf,KAAM,OACN,SAAU,GACX,CAMD,SAAU,CACR,KAAM,OACN,SAAU,GACV,UAAY,GAAM,CAEhB,IAAM,EAAI,IAAI,KAAK,EAAE,CAIrB,OAHI,aAAa,MAAQ,CAAC,MAAM,EAAE,EAKrC,CACF,CACF,yFAlCQ,OAAA,CALL,UAAQ,sBACP,SAAU,EAAA,SACX,MAAM,4CAEH,EAAA,gBAAe,CAAA,EAAA,EAAA"}