"use strict";const e=require("../../common/vendor.js"),l=require("../../common/libraries/day.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const o=e.defineComponent({__name:"hs-day-picker",props:["Enums","title","pickerIndex","value","borderTop","required","valueModel","icon","iconSize","mode"],emits:["change","update:valueModel"],setup(o,{emit:n}){const u=o,d=e.ref(""),a=e=>{var l,o,u;d.value=null==(l=null==e?void 0:e.detail)?void 0:l.value,n("update:valueModel",null==(o=null==e?void 0:e.detail)?void 0:o.value),n("change",null==(u=null==e?void 0:e.detail)?void 0:u.value)};return e.watch((()=>null==u?void 0:u.valueModel),(e=>{d.value=e})),e.onMounted((()=>{(null==u?void 0:u.valueModel)?d.value=null==u?void 0:u.valueModel:(d.value=l.getDay(),n("update:valueModel",d.value))})),(o,n)=>e.e({a:e.t(d.value),b:null==u?void 0:u.icon},(null==u?void 0:u.icon)?{c:e.p({type:null==u?void 0:u.icon,size:(null==u?void 0:u.iconSize)||19,color:"#555"})}:{},{d:(null==u?void 0:u.mode)||"date",e:e.o(a),f:e.unref(l.getDay)(-3),g:e.unref(l.getDay)()})}}),n=e._export_sfc(o,[["__scopeId","data-v-88c7e8d8"]]);wx.createComponent(n);