import{u as f}from"./callbackStore-BhxBUA6V.js";import{T as V}from"./TimeDropdown-CEXz5F14.js";import{d as g,w as i,f as k,i as v,j as _}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{r as b}from"./vendor-vue-reactivity-CheHbvBM.js";import"./vendor-pinia-BSPefQhS.js";import"./vendor-vue-shared-DrzsEcag.js";import"./vendor-vue3-html2pdf-KR020wX8.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";import"./vendor-vue-runtime-dom-B2rky8vu.js";const h={class:"ccb-single-timePicker"},E=g({__name:"SingleTime",props:{format:{type:Boolean},modelValue:{}},emits:["update:modelValue"],setup(l,{emit:n}){const u=f(),s=l,p=n,o=b(s.modelValue||c());i(o,e=>{e&&p("update:modelValue",e)}),i(()=>s.modelValue,e=>{e&&(o.value=e)}),u.add("updateSingleTimePicker",e=>{if(!e)return;const[t,r]=e.toLowerCase().split(" "),[m,d]=t.split(":").map(Number);let a=m;r==="pm"&&m!==12?a=m+12:r==="am"&&m===12&&(a=0),o.value={hours:a,minutes:d,seconds:0}});function c(){const e=new Date;return{hours:e.getHours(),minutes:e.getMinutes(),seconds:0}}return(e,t)=>(v(),k("div",h,[_(V,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=r=>o.value=r),format:e.format},null,8,["modelValue","format"])]))}});export{E as default};
//# sourceMappingURL=SingleTime-D2J-26d_.js.map
