{"version":3,"file":"time-pill.cjs","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  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"],"names":["_sfc_main","x"],"mappings":"0KAWAA,EAAA,CACA,KAAA,mBAEA,MAAA,CAIA,gBAAA,CACA,KAAA,OACA,SAAA,EACA,EAMA,SAAA,CACA,KAAA,OACA,SAAA,GACA,UAAA,GAAA,CAEA,MAAAC,EAAA,IAAA,KAAA,CAAA,EACA,OAAAA,aAAA,MAAA,CAAA,MAAAA,CAAA,CAIA,CACA,CACA,CACA"}