/*! For license information please see 29afedede945dc43bd223adfbd5cdbd2.js.LICENSE.txt */
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["sub-common/29afedede945dc43bd223adfbd5cdbd2"],{"./src/components/timePicker/index.tsx":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");var a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");var o=n("./node_modules/react/cjs/react.production.min.js");var s=n("./node_modules/dayjs/dayjs.min.js");var c=n.n(s);var d=n("./src/components/normalButton/index.tsx");var u=n("./src/components/timePicker/index.module.scss");var i=n("./src/components/calendar/index.tsx");var l=n("./node_modules/react/cjs/react-jsx-runtime.production.min.js");var m=function TimePicker(e){var t=e.start,n=t===void 0?"":t,s=e.end,m=s===void 0?"":s,v=e.onSelectDate;var f=(0,o.useState)({}),p=(0,r["default"])(f,2),x=p[0],Y=p[1];var j=(0,o.useRef)(false);var D=function handTime(e){var t=e.value,n=t.start,r=t.end;j.current=n===r;if(!r){e.value.end="".concat(c()(n).format("YYYY-MM-DD")," 23:59:59");j.current=true}else{e.value.start="".concat(c()(n).format("YYYY-MM-DD")," 00:00:00");e.value.end="".concat(c()(r).format("YYYY-MM-DD")," 23:59:59")}console.log("e===>",e);Y(e)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.View,{className:u["default"]["time-box"],children:(0,l.jsx)(i["default"],{isMultiSelect:true,format:"YYYY-MM-DD 00:00:00",currentDate:{start:n,end:m},onSelectDate:function onSelectDate(e){return D(e)}})}),(0,l.jsx)(d["default"],{type:"primary",onClick:function onClick(){return v===null||v===void 0?void 0:v(x,j.current)},size:"normal",round:true,customClassName:u["default"]["sure-box"],children:"确认"})]})};t["default"]=(0,o.memo)(m)}}]);