System.register(["./index-legacy-5616ff2c-1776006071491.js"],(function(e,t){"use strict";var a,r,l,A,n,u,o,d;return{setters:[e=>{a=e.d,r=e.r,l=e.a5,A=e.f,n=e.w,u=e.a$,o=e.y,d=e.aj}],execute:function(){var t=document.createElement("style");t.textContent="._CdataWrap_6t1tt_1{position:relative}._CdataWrap_6t1tt_1 .n-input{width:18.38541667vw;border-radius:.41666667vw;font-weight:400;color:#333}._CdataWrap_6t1tt_1 .n-input:nth-last-of-type(1){padding-left:1.30208333vw}._CdataWrap_6t1tt_1 ._dateIcons_6t1tt_13{width:max(.83333333vw,14Px);height:max(.83333333vw,14Px);position:absolute;z-index:5;left:.78125vw;--n-height: max(2.08333333vw, 36Px) !important;top:max(.57291667vw,11Px)}\n",document.head.appendChild(t);const i={CdataWrap:"_CdataWrap_6t1tt_1",dateIcons:"_dateIcons_6t1tt_13"};e("C",a({name:"CDatePicker",props:{type:{type:String,default:"daterange"},separator:{type:String,default:"-"},timerValue:{type:Array,default:[]},placeholder:{type:String,default:"选择日期时间"},startPlaceholder:{type:String,default:"结束日期时间"},endPlaceholder:{type:String,default:"开始日期时间"}},setup(e,{emit:t,attrs:a}){const s=r(!1),g=r(null),p=()=>{console.log("更新日期",g.value),t("update:value",g.value)};return g.value=e.timerValue&&e.timerValue.length>0?e.timerValue:null,l((()=>e.timerValue),(e=>{g.value=e&&e.length?e:null})),()=>A(d,null,[A("div",{class:i.CdataWrap},[A(n,{previewDisabled:!0,class:i.dateIcons,src:s.value?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAYAAAC29NkdAAAAAXNSR0IArs4c6QAAAhBJREFUWEftWE1LW0EUPeeFuChdqLukMd1bsH9Buij4BwrtuhTELjSG/oiSjy4UoXSt0D8gdFH6F1rQfWOIOytUujBkjkwk6ZBE3jDvBV7gZfm459zDuXNv5g7h8au0tWUG+GxDowLedfd46gGbCgnhoU+ickMXgio2lmC3V+eaD24yJoTHS2CpYeQmu6xHXrhJgSE8XolC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FYwl5nYMmO58jfNK6t/6ZXf0jRZAzS1K22aLG1n08AW/8q209K4WwKk2tQ27gLu9dOHCPb+8ciR7O3zm58/vXrA/AXVhWYx5GPH2gAAAABJRU5ErkJggg=="},null),A(u,o(a,{class:i.CDatePicker,value:g.value,"onUpdate:value":[e=>g.value=e,p],separator:e.separator,type:e.type,placeholder:e.placeholder,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,onFocus:()=>{s.value=!0},onBlur:()=>{s.value=!1}}),{"date-icon":()=>A(d,null,[A("span",null,null)])})])])}}))}}}));
