1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4931],{24931:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var n=a(95155),s=a(12115),l=a(33599),c=a(63365),o=a(93411),i=a(12359),r=a.n(i),u=a(65493),d=a(91462),p=a(23675);let g=(0,u.T)(r()),m=(0,s.memo)(e=>{var t,i;let{locale:r="en-US",selectedDay:u,firstSlot:m="8:00",lastSlot:h="16:45",selectedSlot:w,isMobile:D=!1,noSlotText:f,startDate:S,breakTimings:v}=e,x=r.split("-")[1],N=["MY","ID","TH","VN"],j=N.includes(x)?[(0,d.g8)(8,"en-US"),(0,d.g8)(13,"en-US")]:[(0,d.g8)(8,r),(0,d.g8)(13,r)],[T,b]=(0,s.useState)(j[0]),[H,M]=(0,s.useState)(""),k=m.split(":"),y=h.split(":"),U=m,_=u.getHours(),A=u.getMinutes(),C=(0,p.y8)(D,async()=>(await a.e(7209).then(a.bind(a,17209))).default);if(_>=+k[0]&&_<=+y[0]+1&&(0,d.wO)(u.getTime(),new Date().getTime(),1.5)){let e=[0,15,30,45].find(e=>A<e);U=e?"".concat(_,":").concat(e):"".concat(_+1,":00")}let E={},L=new Date("".concat(u.toLocaleDateString("en-US")," ").concat(U)),O=new Date("".concat(u.toLocaleDateString("en-US")," ").concat(h));j.map(e=>E[e]=[]);for(let e=new Date(L);e<=O;e.setMinutes(e.getMinutes()+15))(null==v?void 0:v.some(t=>{let{startTime:a,endTime:n}=t,[s,l]=a.split(":").map(Number),[c,o]=n.split(":").map(Number),i=new Date(e);i.setHours(s,l,0,0);let r=new Date(e);return r.setHours(c,o,0,0),e>=i&&e<r}))||(12>e.getHours()?E[j[0]].push(e.toString()):E[j[1]].push(e.toString()));return(0,s.useEffect)(()=>{S>new Date("".concat(u.getMonth()+1,"/").concat(u.getDate(),"/").concat(u.getFullYear()," ").concat("11:44 AM"))&&u.getHours()<+h.split(":")[0]+1&&(0,d.wO)(S.getTime(),new Date().getTime(),1.5)?b(j[1]):b(j[0])},[u]),(0,n.jsxs)("div",{className:g("slots"),children:[(0,n.jsx)("div",{className:g("parts-of-day"),children:j.map((e,t)=>(0,n.jsx)("div",{className:g("pod-wrapper"),children:(0,n.jsx)("div",{className:g("pod",{selected:e===T}),onClick:()=>b(e),children:e})},"pod-wrapper-".concat(t)))}),(0,n.jsx)(l.A,{className:g("slot-wrapper"),children:(null==(t=E[T])?void 0:t.length)>0?D&&C?(0,n.jsx)(C,{slots:E,selectedPartOfDay:T,selectedTime:H,noSlotText:f,selectedSlot:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";M(t),w&&w(new Date(e),t)}}):null==(i=E[T])?void 0:i.map((e,t)=>{let a=N.includes(x)?(0,d.eV)(e,"en-US"):(0,d.eV)(e,r);return(0,n.jsx)(c.A,{xs:4,className:g("slot"),children:(0,n.jsx)(o.default,{label:a,variant:"secondary | for light bg",className:H===a?"selected":"",url:"#",onClick:t=>{t.preventDefault(),M(a),w&&w(new Date(e),a)}},"button-".concat(T,"-slot-").concat(t))},"".concat(T,"-slot-").concat(t))}):(0,n.jsx)(c.A,{children:(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:f||""}})})})]})})}}]);
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.