import{Q as u}from"./vue-datepicker-DJOolBJW.js";/* empty css             */import{m as d}from"./widget-BUAABBRb.js";import{a as f,k,O as V,m as g,g as h,n as b,w as v,p as w,u as B}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./translationsStore-DBJu9sBR.js";const C={class:"ccb-single-timePicker"},D=f({__name:"SingleTime",props:{format:{type:Boolean},modelValue:{}},emits:["update:modelValue"],setup(m,{emit:r}){const l=d(),n=m,c=r,o=k(n.modelValue||new Date);return V(o,e=>{e&&c("update:modelValue",e)}),l.add("updateSingleTimePicker",e=>{if(!e)return;const[t,a]=e.toLowerCase().split(" "),[i,p]=t.split(":").map(Number);let s=i;a==="pm"&&i!==12?s=i+12:a==="am"&&i===12&&(s=0),o.value={hours:s,minutes:p,seconds:0}}),(e,t)=>(h(),g("div",C,[b(B(u),{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=a=>o.value=a),"time-picker":"","is-24":e.format,"minutes-grid-increment":"5",placeholder:"hh:mm"},{"input-icon":v(()=>t[1]||(t[1]=[w("i",{class:"ccb-icon-timepicker-light-clock"},null,-1)])),_:1},8,["modelValue","is-24"])]))}});export{D as default};
//# sourceMappingURL=SingleTime-Bx-iI4SO.js.map
