import{m as k,D as y}from"./index.17037962789732.js";import"./index.170379627897322.js";import"./index.170379627897323.js";import"./index.170379627897315.js";import"./index.170379627897324.js";import{a as C}from"./dayjs.min.1703796278973.js";import{d as v,k as D,o as u,x as F,c,u as t,M as d}from"./vue.1703796278973.js";const x={class:"dropdown-time-picker"},H=v({name:"DropdownTime"}),M=v({...H,props:{type:{type:String,default:"time"},value:{type:String,default:void 0},format:{type:String,default:void 0}},emits:["update:value","change"],setup(s,{emit:r}){const p=s,o=p.format||(p.type==="time"?"HH:mm:ss":"YYYY-MM-DD HH:mm:ss"),a=D(p.value||C(new Date).format(o)),i=e=>(e==null?void 0:e.parentNode)||document.body,n=e=>{console.log("Time",e),a.value=e,r("update:value",e),r("change",e)};return(e,m)=>{const _=k,f=y;return u(),F("div",x,[s.type==="time"?(u(),c(_,{key:0,open:"",value:t(a),"onUpdate:value":m[0]||(m[0]=l=>d(a)?a.value=l:null),class:"manual-time-picker",format:t(o),valueFormat:t(o),getPopupContainer:i,popupClassName:"manual-time-picker-popup",onChange:n,onOk:n},null,8,["value","format","valueFormat"])):(u(),c(f,{key:1,open:"",class:"manual-time-picker",value:t(a),"onUpdate:value":m[1]||(m[1]=l=>d(a)?a.value=l:null),format:t(o),valueFormat:t(o),getPopupContainer:i,popupClassName:"manual-time-picker-popup",onChange:n,onOk:n},null,8,["value","format","valueFormat"]))])}}});export{M as _};
