1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8748],{12226:(e,t,s)=>{s.d(t,{W:()=>n});var l=s(95155);let n=({colorClass:e,width:t,height:s})=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:s,viewBox:"0 0 24 24",fill:"none",className:e,children:[(0,l.jsx)("g",{clipPath:"url(#clip0_2060_3246)",children:(0,l.jsx)("path",{d:"M6.8076 0C7.03038 0 7.24404 0.0884998 7.40157 0.24603C7.5591 0.403561 7.6476 0.617218 7.6476 0.84V2.4108H16.668V0.8508C16.668 0.628018 16.7565 0.414361 16.914 0.25683C17.0716 0.0992998 17.2852 0.0108 17.508 0.0108C17.7308 0.0108 17.9444 0.0992998 18.102 0.25683C18.2595 0.414361 18.348 0.628018 18.348 0.8508V2.4108H21.6C22.2363 2.4108 22.8466 2.66349 23.2966 3.11332C23.7467 3.56315 23.9997 4.17329 24 4.8096V21.6012C23.9997 22.2375 23.7467 22.8477 23.2966 23.2975C22.8466 23.7473 22.2363 24 21.6 24H2.4C1.76369 24 1.15342 23.7473 0.703368 23.2975C0.253315 22.8477 0.000318156 22.2375 0 21.6012L0 4.8096C0.000318156 4.17329 0.253315 3.56315 0.703368 3.11332C1.15342 2.66349 1.76369 2.4108 2.4 2.4108H5.9676V0.8388C5.96792 0.616226 6.05656 0.402877 6.21405 0.245606C6.37155 0.0883348 6.58503 -2.27116e-07 6.8076 0ZM1.68 9.2904V21.6012C1.68 21.6958 1.69862 21.7894 1.73481 21.8767C1.77099 21.9641 1.82403 22.0435 1.89088 22.1103C1.95774 22.1772 2.03711 22.2302 2.12447 22.2664C2.21182 22.3026 2.30545 22.3212 2.4 22.3212H21.6C21.6946 22.3212 21.7882 22.3026 21.8755 22.2664C21.9629 22.2302 22.0423 22.1772 22.1091 22.1103C22.176 22.0435 22.229 21.9641 22.2652 21.8767C22.3014 21.7894 22.32 21.6958 22.32 21.6012V9.3072L1.68 9.2904ZM8.0004 17.5428V19.542H6V17.5428H8.0004ZM12.9996 17.5428V19.542H11.0004V17.5428H12.9996ZM18 17.5428V19.542H15.9996V17.5428H18ZM8.0004 12.7704V14.7696H6V12.7704H8.0004ZM12.9996 12.7704V14.7696H11.0004V12.7704H12.9996ZM18 12.7704V14.7696H15.9996V12.7704H18ZM5.9676 4.0896H2.4C2.30545 4.0896 2.21182 4.10822 2.12447 4.14441C2.03711 4.18059 1.95774 4.23362 1.89088 4.30048C1.82403 4.36734 1.77099 4.44671 1.73481 4.53407C1.69862 4.62142 1.68 4.71505 1.68 4.8096V7.6116L22.32 7.6284V4.8096C22.32 4.71505 22.3014 4.62142 22.2652 4.53407C22.229 4.44671 22.176 4.36734 22.1091 4.30048C22.0423 4.23362 21.9629 4.18059 21.8755 4.14441C21.7882 4.10822 21.6946 4.0896 21.6 4.0896H18.348V5.2044C18.348 5.42718 18.2595 5.64084 18.102 5.79837C17.9444 5.9559 17.7308 6.0444 17.508 6.0444C17.2852 6.0444 17.0716 5.9559 16.914 5.79837C16.7565 5.64084 16.668 5.42718 16.668 5.2044V4.0896H7.6476V5.1936C7.6476 5.41638 7.5591 5.63004 7.40157 5.78757C7.24404 5.9451 7.03038 6.0336 6.8076 6.0336C6.58482 6.0336 6.37116 5.9451 6.21363 5.78757C6.0561 5.63004 5.9676 5.41638 5.9676 5.1936V4.0896Z"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_2060_3246",children:(0,l.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})},15673:(e,t,s)=>{s.d(t,{A:()=>l});let l=s(12115).createContext(null)},30365:(e,t,s)=>{s.d(t,{A:()=>r});var l=s(12115),n=s(45481);function r(...e){return l.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,n.A)(e,t)})},e)}},45222:(e,t,s)=>{s.d(t,{A:()=>l});let l=s(12115).createContext(void 0)},45481:(e,t,s)=>{s.d(t,{A:()=>l});function l(e,t){"function"==typeof e?e(t):e&&(e.current=t)}},45918:(e,t,s)=>{s.d(t,{A:()=>r});var l=s(12115),n=s(45222);function r(){return l.useContext(n.A)}},56782:(e,t,s)=>{s.d(t,{A:()=>n});var l=s(12115);let n=function({controlled:e,default:t,name:s,state:n="value"}){let{current:r}=l.useRef(void 0!==e),[a,i]=l.useState(t),c=l.useCallback(e=>{r||i(e)},[]);return[r?e:a,c]}},57421:(e,t,s)=>{s.d(t,{A:()=>r});var l=s(12115),n=s(89255);let r=function(e){let t=l.useRef(e);return(0,n.A)(()=>{t.current=e}),l.useRef((...e)=>(0,t.current)(...e)).current}},60159:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});var l=s(95155),n=s(12115),r=s(28738),a=s(12226);let i=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7068 16.4963C12.5193 16.6837 12.265 16.7891 11.9998 16.7891C11.7347 16.7891 11.4803 16.6837 11.2928 16.4963L5.63582 10.8393C5.45366 10.6507 5.35287 10.3981 5.35515 10.1359C5.35742 9.87368 5.46259 9.62286 5.648 9.43746C5.83341 9.25205 6.08422 9.14688 6.34642 9.1446C6.60862 9.14232 6.86122 9.24312 7.04982 9.42527L11.9998 14.3753L16.9498 9.42528C17.1384 9.24312 17.391 9.14232 17.6532 9.1446C17.9154 9.14688 18.1662 9.25205 18.3516 9.43746C18.537 9.62287 18.6422 9.87368
118.6445 10.1359C18.6468 10.3981 18.546 10.6507 18.3638 10.8393L12.7068 16.4963Z",fill:"black"})}),c=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2932 9.26154C11.4807 9.07407 11.735 8.96875 12.0002 8.96875C12.2653 8.96875 12.5197 9.07407 12.7072 9.26154L18.3642 14.9185C18.5463 15.1071 18.6471 15.3597 18.6449 15.6219C18.6426 15.8841 18.5374 16.1349 18.352 16.3204C18.1666 16.5058 17.9158 16.6109 17.6536 16.6132C17.3914 16.6155 17.1388 16.5147 16.9502 16.3325L12.0002 11.3825L7.05018 16.3325C6.86158 16.5147 6.60898 16.6155 6.34678 16.6132C6.08458 16.6109 5.83377 16.5058 5.64836 16.3204C5.46295 16.1349 5.35778 15.8841 5.35551 15.6219C5.35323 15.3597 5.45402 15.1071 5.63618 14.9185L11.2932 9.26154Z",fill:"black"})});var u=s(22544),o=s(67836);let d=function({extraObject:e,closeModal:t,callBack:s}){let d=new Date,x=d.getHours()>=12?"PM":"AM",h=d.getHours()>12?d.getHours()-12:d.getHours();h=h>9?h:"0"+h;let f=d.getMinutes();f=f>9?f.toString():"0"+f;let p=d.getSeconds();p=p>9?p.toString():"0"+p;
1let[C,m]=(0,n.useState)(h),[g,j]=(0,n.useState)(f),[w,b]=(0,n.useState)(x),[v,N]=(0,n.useState)(!1),{handleSubmit:y,setValue:V,watch:H,control:A}=(0,u.mN)({mode:"onChange"}),k=void 0!==H("hour")?H("hour"):C,M=void 0!==H("minute")?H("minute"):g,S=e=>{let t=0;(t=e?Number(C)+1:Number(C)-1)>12&&(t=1),t<1&&(t=12),m(t=t<10?"0"+t.toString():t)},$=e=>{let t=0;(t=e?Number(g)+1:Number(g)-1)>59&&(t=0),t<0&&(t=59),j(t=t<10?"0"+t.toString():t)};return(0,n.useEffect)(()=>{V("hour",C)},[C,V]),(0,n.useEffect)(()=>{V("minute",g)},[g,V]),(0,n.useEffect)(()=>{m(h),j(f)},[v]),(0,n.useEffect)(()=>{m(k)},[k]),(0,n.useEffect)(()=>{j(M)},[M]),(0,l.jsxs)("form",{className:"flex flex-col gap-6 justify-center items-center w-[300px] sm:w-[400px] h-[280px]",onSubmit:y(({hour:l,minute:n})=>{if(""===l||""==n)return void N(!v);let a=(0,r.z3)(`${e?.schedule?.jobDate} ${l}:${n} ${w}`),i=String(a.getHours()).padStart(2,"0"),c=String(a.getMinutes()).padStart(2,"0");s(`${e?.schedule?.jobDate}T${i}:${c}:00`),t()}),children:[(0,l.jsxs)("div",{className:"flex justify-between w-[13.701rem]",children:[(0,l.jsxs)("span",{className:"text-sm font-semibold",children:["Day ",e?.index+1]}),(0,l.jsxs)("span",{className:"flex justify-center items-center gap-3 w-[8.745rem] py-1 bg-lightgrey12 rounded-md",children:[(0,l.jsx)("span",{children:(0,l.jsx)(a.W,{colorClass:"fill-lightgrey4",width:"14px",height:"14px"})}),(0,l.jsx)("span",{className:"text-xs font-medium",children:(0,r.Qc)(e?.schedule?.jobDate)})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-6 items-center",children:[(0,l.jsx)("span",{className:"font-bold text-base",children:e?.checkIn?"Check-In":"Check-out"}),(0,l.jsxs)("div",{className:"w-[200px] flex justify-between items-center",children:[(0,l.jsxs)("span",{className:"flex flex-col justify-center items-center bg-lightblue rounded-md ",children:[(0,l.jsx)("span",{className:" w-[48px] h-[24px] flex justify-center items-center",onClick:()=>S(!0),children:c}),(0,l.jsx)("span",{className:"h-[32px] w-[48px] flex justify-center items-center",children:(0,l.jsx)(u.xI,{name:"hour",control:A,defaultValue:C,rules:{pattern:/^(1[0-2]|0[1-9]|[1-9])$/},render:({field:e})=>(0,l.jsx)(o.A,{...e,id:"hour",fullWidth:!0,onChange:e=>{/^(?:0[1-9]|[0-9]|1[0-2])?$/.test(e.target.value)&&V("hour",e.target.value),e.target.value>1&&1===e.target.value.length&&V("hour",`0${e.target.value}`)},inputProps:{style:{padding:0,color:"#033A85",outline:0,fontSize:"20px",textAlign:"center",border:"1px solid #C9D3DF;",borderRadius:0,backgroundColor:"white"}},autoComplete:"off"})})}),(0,l.jsx)("span",{className:" w-[48px] h-[24px] flex justify-center items-center",onClick:()=>S(!1),children:i})]}),(0,l.jsx)("span",{className:"text-2xl text-darkblue select-none",children:":"}),(0,l.jsxs)("span",{className:"flex flex-col justify-center items-center bg-lightblue rounded-md ",children:[(0,l.jsx)("span",{className:" w-[48px] h-[24px] flex justify-center items-center",onClick:()=>$(!0),children:c}),(0,l.jsx)("span",{className:"h-[32px] w-[48px] flex justify-center items-center",children:(0,l.jsx)(u.xI,{name:"minute",control:A,defaultValue:g,rules:{pattern:/^([0-9]|[0-5][0-9])$/},render:({field:e})=>(0,l.jsx)(o.A,{...e,id:"minute",onChange:e=>{/^(?:0[0-9]|[0-9]|[1-5][0-9])?$/.test(e.target.value)&&V("minute",e.target.value),e.target.value>5&&1===e.target.value.length&&V("minute",`0${e.target.value}`)},inputProps:{style:{padding:0,color:"#033A85",outline:0,fontSize:"20px",textAlign:"center",border:"1px solid #C9D3DF;",borderRadius:0,backgroundColor:"white"}},autoComplete:"off"})})}),(0,l.jsx)("span",{className:" w-[48px] h-[24px] flex justify-center items-center",onClick:()=>$(!1),children:i})]}),(0,l.jsx)("span",{className:"text-2xl text-white select-none",children:":"}),(0,l.jsxs)("span",{className:"flex flex-col justify-center items-center bg-lightblue rounded-md ",children:[(0,l.jsx)("span",{className:" w-[48px] h-[24px]",children:"PM"===w&&(0,l.jsx)("span",{className:"w-full h-full flex justify-center items-center",onClick:()=>b("AM"),children:c})}),(0,l.jsx)("span",{className:"w-[90%] h-[1.9px] bg-white"}),(0,l.jsx)("span",{className:"h-[32px] w-[48px] flex justify-center items-center text-darkblue font-semibold text-lg",children:w}),(0,l.jsx)("span",{className:"w-[90%] h-[2px] bg-white"}),(0,l.jsx)("span",{className:" w-[48px] h-[24px]",children:"AM"===w&&(0,l.jsx)("span",{className:"w-full h-full flex justify-center items-center",onClick:()=>b("PM"),children:i})})]})]})]}),(0,l.jsxs)("div",{className:"flex gap-6 mt-4",children:[(0,l.jsx)("button",{type:"button",className:"default-outline-btn !h-10 !w-28",onClick:()=>t(),children:"Cancel"}),(0,l.jsx)("button",{type:"submit",className:"default-primary-btn !h-10 !w-28",children:"Submit"})]})]})}},69582:(e,t,s)=>{s.d(t,{A:()=>l});let l=s(30365).A},89255:(e,t,s)=>{s.d(t,{A:()=>n});var l=s(12115);let n="undefined"!=typeof window?l.useLayoutEffect:l.useEffect},92466:(e,t,s)=>{s.d(t,{A:()=>n});var l=s(77167);function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,l.A)(e,t)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.