import{Q as h}from"./QDate-jX_qru4n.js";import{u as Q,L as V,c as u,b as c,e as p,w as a,l as w,f as o,t as d,g as D,am as x,B as S,q as k,H as C,n as v,i as B,m as F}from"./index-OSKNspXo.js";import{Q as M}from"./QTime-CQhJ10ms.js";const U={name:"deenovaFilterDateChip"},L=Object.assign(U,{props:{title:{type:String},date:{type:String},hour:{type:String},removable:{type:Boolean},removableFunction:{type:Function}},emits:["update:date","update:hour"],setup(l,{emit:f}){const{d:g}=Q(),y=V(),b=u(()=>{var e;return(e=y.state.global.connectedUser)==null?void 0:e.lang.replaceAll("_","-")}),i=l,m=f,n=u({get:()=>i.date,set:e=>m("update:date",e)}),s=u({get:()=>i.hour,set:e=>m("update:hour",e)});return(e,t)=>(p(),c(F,{style:{cursor:"pointer"},"icon-right":"arrow_drop_down",color:"primary","text-color":"white",onRemove:l.removableFunction,removable:l.removable},{default:a(()=>[w(d(l.title)+" "+d(n.value?D(g)(new Date(n.value),"short",b.value):"")+" "+d(s.value)+" ",1),o(x,null,{default:a(()=>[o(S,{style:{"min-width":"100px"}},{default:a(()=>[o(k,{style:{padding:"0"}},{default:a(()=>[o(v,null,{default:a(()=>[o(h,{onClick:t[0]||(t[0]=B(()=>{},["stop"])),modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=r=>n.value=r),mask:"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),l.hour?(p(),c(v,{key:0},{default:a(()=>[o(M,{format24h:"",modelValue:s.value,"onUpdate:modelValue":t[2]||(t[2]=r=>s.value=r)},null,8,["modelValue"])]),_:1})):C("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["onRemove","removable"]))}});export{L as _};
//# sourceMappingURL=deenovaFilterDateChip-DS_asawl.js.map
