"use strict";const e=require("../../common/vendor.js"),l=require("../../common/libraries/day.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const t=e.defineComponent({__name:"hs-reservation-picker",props:["Enums","title","pickerIndex","value","borderTop","required","valueExpectStartTime","valueExpectEndTime","icon","iconSize"],emits:["change","update:valueExpectStartTime","update:valueExpectEndTime"],setup(t,{emit:o}){const u=t,a=e.ref([]),i=e.ref(""),n=e=>{var l;let t=null==(l=null==e?void 0:e.detail)?void 0:l.value,u=a.value[0][t[0]],n=a.value[1][t[1]];console.log(e,"e");let r=`${null==u?void 0:u.value} ${null==n?void 0:n.str}`,v=`${null==u?void 0:u.value} ${null==n?void 0:n.end}`;i.value=`${null==u?void 0:u.label}(${null==n?void 0:n.label})`,o("update:valueExpectStartTime",r),o("update:valueExpectEndTime",v),o("change",{str_time:r,end_time:v})},r=e=>{var t,o,u,i,n;if(0===(null==(t=null==e?void 0:e.detail)?void 0:t.column))if(null==(o=null==e?void 0:e.detail)?void 0:o.value){let t=null==(n=a.value[null==(u=null==e?void 0:e.detail)?void 0:u.column][null==(i=null==e?void 0:e.detail)?void 0:i.value])?void 0:n.value,o=l.generateTimeSlots(t);a.value[1]=o,console.log(o,"timeSlots")}else{let e=l.generateTimeSlots();a.value[1]=e,console.log(e,"timeSlots")}console.log(e,"e")};return e.onMounted((()=>{(()=>{let e=l.getCurrentHour(),t=l.getTheFutureDay(0),o=l.getTheFutureDay(1),u=l.getTheFutureDay(2),i=l.generateTimeSlots();a.value=[[{label:"今天",value:t},{label:"明天",value:o},{label:"后天",value:u}],i],console.log(e,"day1")})()})),(l,o)=>e.e({a:e.t((null==u?void 0:u.title)||"标题"),b:t.required},(t.required,{}),{c:e.t(i.value||"请选择"),d:e.p({type:"right",size:"15",color:"#999"}),e:e.n(i.value?"valueStyle":"valueStyle placeholderStyle"),f:u.borderTop?"1rpx solid #eee":"",g:a.value,h:e.o(n),i:e.o(r)})}}),o=e._export_sfc(t,[["__scopeId","data-v-eef11888"]]);wx.createComponent(o);
