1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6c8382b8-8c05-4516-ad92-9cf5032ca5b4",t._sentryDebugIdIdentifier="sentry-dbid-6c8382b8-8c05-4516-ad92-9cf5032ca5b4")}()}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7139],{75282:function(t,e,a){a.r(e),a.d(e,{default:function(){return L}});var r=a(57437),n=a(2577),s=a(11362),d=a(72301),w=a(30490),l=a(2265),o=a(80961),i=a(46183),c=a(96665),u=a(76372),m=a(98668),b=a(23196),x=a(55398),g=a(11082),p=a(68983),f=a(46864),h=a(89595);function y(t){let{className:e,classNames:a,showOutsideDays:n=!0,captionLayout:s="label",buttonVariant:d="ghost",formatters:w,components:l,...o}=t,i=(0,p.U)();return(0,r.jsx)(f._,{showOutsideDays:n,className:(0,h.cn)("tw-bg-flow-background tw-group/calendar tw-p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:tw-bg-transparent [[data-slot=popover-content]_&]:tw-bg-transparent",e),captionLayout:s,formatters:{formatMonthDropdown:t=>t.toLocaleString("default",{month:"short"}),...w},classNames:{root:(0,h.cn)("tw-w-fit",i.root),months:(0,h.cn)("tw-relative tw-flex tw-flex-col tw-gap-4 md:tw-flex-row",i.months),month:(0,h.cn)("tw-flex tw-w-full tw-flex-col tw-gap-4",i.month),nav:(0,h.cn)("tw-absolute tw-inset-x-0 tw-top-0 tw-flex tw-w-full tw-items-center tw-justify-between tw-gap-1",i.nav),button_previous:(0,h.cn)((0,m.d)({variant:d}),"tw-h-[--cell-size] tw-w-[--cell-size] tw-select-none tw-p-0 aria-disabled:tw-opacity-50",i.button_previous),button_next:(0,h.cn)((0,m.d)({variant:d}),"tw-h-[--cell-size] tw-w-[--cell-size] tw-select-none tw-p-0 aria-disabled:tw-opacity-50",i.button_next),month_caption:(0,h.cn)("tw-flex tw-h-[--cell-size] tw-w-full tw-items-center tw-justify-center tw-px-[--cell-size]",i.month_caption),dropdowns:(0,h.cn)("tw-flex tw-h-[--cell-size] tw-w-full tw-items-center tw-justify-center tw-gap-1.5 tw-text-sm tw-font-medium",i.dropdowns),dropdown_root:(0,h.cn)("tw-relative tw-rounded-md tw-border tw-border-flow-border tw-shadow-sm has-focus:tw-border-flow-primary has-focus:tw-ring-flow-primary/50 has-focus:tw-ring-[3px]",i.dropdown_root),dropdown:(0,h.cn)("tw-absolute tw-inset-0 tw-bg-flow-background tw-opacity-0",i.dropdown),caption_label:(0,h.cn)("tw-select-none tw-font-medium","label"===s?"tw-text-sm":"tw-flex tw-h-8 tw-items-center tw-gap-1 tw-rounded-md tw-pl-2 tw-pr-1 tw-text-sm [&>svg]:tw-size-3.5 [&>svg]:tw-text-[var(--themes-text-body-subtle)]",i.caption_label),table:"tw-w-full tw-border-collapse",weekdays:(0,h.cn)("tw-flex",i.weekdays),weekday:(0,h.cn)("tw-flex-1 tw-select-none tw-rounded-md tw-text-[0.8rem] tw-font-normal tw-text-[var(--themes-text-body-subtle)]",i.weekday),week:(0,h.cn)("tw-mt-2 tw-flex tw-w-full",i.week),week_number_header:(0,h.cn)("tw-w-[--cell-size] tw-select-none",i.week_number_header),week_number:(0,h.cn)("tw-select-none tw-text-[0.8rem] tw-text-[var(--themes-text-body-subtle)]",i.week_number),day:(0,h.cn)("tw-group/day tw-relative tw-aspect-square tw-h-full tw-w-full tw-select-none tw-p-0 tw-text-center [&:first-child[data-selected=true]_button]:tw-rounded-l-md [&:last-child[data-selected=true]_button]:tw-rounded-r-md",i.day),range_start:(0,h.cn)("tw-rounded-l-md tw-bg-[var(--themes-bg-gray)]",i.range_start),range_middle:(0,h.cn)("tw-rounded-none",i.range_middle),range_end:(0,h.cn)("tw-rounded-r-md tw-bg-[var(--themes-bg-gray)]",i.range_end),today:(0,h.cn)("tw-rounded-md tw-bg-[var(--themes-bg-gray)] tw-text-flow-foreground data-[selected=true]:tw-rounded-none",i.today),outside:(0,h.cn)("tw-text-[var(--themes-text-body-subtle)] aria-selected:tw-text-[var(--themes-text-body-subtle)]",i.outside),disabled:(0,h.cn)("tw-opacity-50 tw-text-[var(--themes-text-body-subtle)]",i.disabled),hidden:(0,h.cn)("tw-invisible",i.hidden),...a},components:{Root:t=>{let{className:e,rootRef:a,...n}=t;return(0,r.jsx)("div",{"data-slot":"calendar",ref:a,className:(0,h.cn)(e),...n})},Chevron:t=>{let{className:e,orientation:a,...n}=t;return"left"===a?(0,r.jsx)(b.Z,{className:(0,h.cn)("tw-size-4",e),...n}):"right"===a?(0,r.jsx)(x.Z,{className:(0,h.cn)("tw-size-4",e),...n}):(0,r.jsx)(g.Z,{className:(0,h.cn)("tw-size-4",e),...n})},DayButton:v,WeekNumber:t=>{let{children:e,...a}=t;return(0,r.jsx)("td",{...a,children:(0,r.jsx)("div",{className:"tw-flex tw-size-[--cell-size] tw-items-center tw-justify-center tw-text-center",children:e})})},...l},...o})}function v(t){let{className:e,day:a,modifiers:n,...s}=t,d=(0,p.U)(),w=l.useRef(null);return l.useEffect(()=>{n.focused&&w.current?.focus()},[n.focused]),(0,r.jsx)(m.z,{ref:w,variant:"ghost",size:"icon","data-day":a.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:(0,h.cn)("tw-flex tw-aspect-square tw-h-auto tw-w-full tw-min-w-[--cell-size] tw-flex-col tw-gap-1 tw-font-normal tw-leading-none data-[range-end=true]:tw-rounded-md data-[range-middle=true]:tw-rounded-none data-[range-start=true]:tw-rounded-md data-[selected-single=true]:tw-bg-flow-primary data-[selected-single=true]:tw-text-flow-primary-foreground data-[range-middle=true]:tw-bg-[var(--themes-bg-gray)] data-[range-middle=true]:tw-text-flow-foreground data-[range-start=true]:tw-bg-flow-primary data-[range-start=true]:tw-text-flow-primary-foreground data-[range-end=true]:tw-bg-flow-primary data-[range-end=true]:tw-text-flow-primary-foreground group-data-[focused=true]/day:tw-relative group-data-[focused=true]/day:tw-z-10 group-data-[focused=true]/day:tw-border-flow-primary group-data-[focused=true]/day:tw-ring-flow-primary/50 group-data-[focused=true]/day:tw-ring-[3px] [&>span]:tw-text-xs [&>span]:tw-opacity-70",d.day,e),...s})}var _=a(94672),j=a(67512),N=a(43088),k=a(25486),D=a(41919),z=a(43493),E=a(47581),M=a(39399),O=a(4014),S=a(85145),C=a(37054),I=a(98558),L=l.memo(function(t){let{isFullWeek:e=!1,searchOptions:a,remoteTime:b,isMapSearch:x=!1,isDetail
1sSearch:g=!1,className:p="",type:f,handleDateClick:v,detailsDate:L,section:U,isOnlyDisplayDate:V=!1,availableDates:B,handleCalendarClose:W,defaultShowCalendar:F=!1,onDateSelected:A}=t,K=(0,w.T)(),T=(0,d.useParams)(),Z=(0,S.D)(),[X,q]=(0,l.useState)(!1),[R,$]=(0,l.useState)(F||V||g||X&&!e&&!Z),G=(0,O.D)(),[J,P]=(0,l.useState)(!1),[Q]=(0,s.KO)(D.mN),[Y]=(0,s.KO)(M.Ee),[H]=(0,s.KO)(D.mv),[tt]=(0,s.KO)(M.bX),te=(0,s.b9)(D.YV),ta=(0,s.b9)(M.AM),tr=(0,s.b9)(E.m),tn=(0,s.Dv)(z.jA),ts=a?.max_date,td=a?.min_date,tw=a?.calendar_prices,tl=a?.calendar_prices_description,to=a?.disable_date,ti=(0,l.useMemo)(()=>(0,j.Dw)(b?.timestamp,T.region).map(t=>(0,I.w6)(t)),[T.region,b?.timestamp]),tc=(0,l.useMemo)(()=>g?tn?.date:x?Y:Q,[x,Y,Q,tn?.date,g]),tu=tc?tc instanceof Date?tc:new Date(tc):void 0;(0,l.useEffect)(()=>{q(!0)},[]),(0,l.useEffect)(()=>{!X||e||Z||$(!0)},[X,e,Z]),(0,l.useEffect)(()=>{g&&L&&te({date:L,isImmediateSearch:!0})},[]);let tm=t=>{let e=t??tu;if(!e)return;let a={date:(0,I.w6)(e),time:x?{...tt,value:(0,I.Li)(e,Y,tt.value),endValue:tt.endValue?(0,I.Li)(e,Y,tt.endValue):void 0}:{...H,value:(0,I.Li)(e,Q,H.value),endValue:H.endValue?(0,I.Li)(e,Q,H.endValue):void 0},isImmediateSearch:!0};g&&v||(0,C.OA)({page:f,date:(0,I.w6)(e)}),x?(ta(a),A?.()):(g||V)&&v?v((0,I.w6)(e)):(te(a),A?.()),P(!1)},tb=t=>{let e=(0,I.w6)(t);return B&&B.length>0?!B.includes(e):!(0,N.Qr)(to)&&to?.[e]?.disabled},tx=t=>{let{day:e,modifiers:a,className:n,...s}=t,{classNames:d}=(0,o.k)(),w=(0,I.w6)(e.date),l=V?void 0:tw?.[w],c=l?.color,u=l?.value;return(0,r.jsxs)("button",{...s,className:(0,h.cn)(d[i.UI.DayButton],"tw-flex tw-flex-col tw-justify-center tw-items-center tw-gap-2 tw-h-[56px] tw-w-full",a.today&&!a.selected&&"tw-rounded-lg tw-bg-brand-subtle",a.selected&&"tw-rounded-lg tw-border-[2px] tw-border-brand tw-bg-brand-subtle",!a.disabled&&"button-class",n),children:[(0,r.jsx)("span",{className:(0,h.cn)("typography-fixed-13-semibold",a.disabled||a.outside?"tw-text-info":"tw-text-body-strong"),children:e.date.getDate()}),u?(0,r.jsx)("p",{className:(0,h.cn)("typography-fixed-13-semibold tw-text-center","#00B96D"===c&&"tw-text-green dark:tw-text-green-strong","#FF0000"===c&&"tw-text-orange",!c&&"tw-text-body"),children:u}):null]})},tg=t=>{let{className:e=""}=t;return!tl||V?null:(0,r.jsx)("div",{className:(0,h.cn)("tw-mt-3 lg:tw-px-0 lg:tw-mx-2 tw-px-2 tw-w-full tw-overflow-hidden",e),children:(0,r.jsx)("p",{className:"typography-fixed-xs-medium tw-text-info-subtle tw-break-words tw-whitespace-normal",children:tl})})},tp={root:"tw-w-full",caption_label:"tw-px-2 tw-text-body-strong tw-text-sm tw-font-medium",button_previous:"tw-h-10 tw-w-10 tw-rounded-full tw-border tw-border-[var(--themes-border-dark)] tw-text-[var(--themes-text-title)] tw-bg-transparent tw-inline-flex tw-items-center tw-justify-center tw-p-0 tw-select-none tw-transition-colors hover:tw-bg-flow-muted disabled:tw-pointer-events-none disabled:tw-border-none disabled:tw-text-[var(--themes-text-info-subtle)] aria-disabled:tw-pointer-events-none aria-disabled:hover:tw-bg-transparent aria-disabled:tw-border-none aria-disabled:tw-text-[var(--themes-text-info-subtle)]",button_next:"tw-h-10 tw-w-10 tw-rounded-full tw-border tw-border-[var(--themes-border-dark)] tw-text-[var(--themes-text-title)] tw-bg-transparent tw-inline-flex tw-items-center tw-justify-center tw-p-0 tw-select-none tw-transition-colors hover:tw-bg-flow-muted disabled:tw-pointer-events-none disabled:tw-border-none disabled:tw-text-[var(--themes-text-info-subtle)] aria-disabled:tw-pointer-events-none aria-disabled:hover:tw-bg-transparent aria-disabled:tw-border-none aria-disabled:tw-text-[var(--themes-text-info-subtle)]",weekdays:"tw-grid tw-grid-cols-7 tw-gap-x-1 tw-h-[42px] tw-items-center",weekday:"tw-text-body-subtle tw-text-sm tw-font-medium tw-text-center",week:"tw-grid tw-grid-cols-7 tw-gap-x-1 tw-mt-1 tw-mb-1 tw-text-center",day:"tw-p-0",today:"tw-border-none",selected:"tw-bg-transparent hover:tw-bg-transparent",outside:"tw-text-transparent",disabled:"tw-text-info tw-text-sm tw-font-medium"},tf=(0,l.useMemo)(()=>({formatWeekdayName:t=>(0,n.WU)(t,"EEEEE",{locale:G})}),[G]),th=t=>
1{let e={date:t,isImmediateSearch:!0};tr({source:k.Z.getGAEventName(f,U)}),x?ta(e):te(e),A?.()};return X?(0,r.jsxs)("div",{className:(0,h.cn)(p),children:[!R&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"between-content",children:[(0,r.jsx)("div",{className:"tw-flex",children:ti.map(t=>(0,r.jsxs)("div",{onClick:()=>th(t),className:`tw-flex tw-flex-col tw-items-center tw-rounded-lg tw-text-center tw-border tw-cursor-pointer tw-w-[38px] tw-py-3 tw-gap-3 tw-mr-1 lg:tw-mr-0 ${t===ti[0]?"tw-bg-gray":""}`,style:{borderColor:(x?Y:Q)===t?"var(--themes-border-dark)":"transparent"},children:[(0,r.jsx)("p",{className:"typography-fixed-xs-medium tw-text-body-subtle tw-pointer-events-none",children:(0,n.WU)(t,"EEEEE",{locale:G})}),(0,r.jsx)("p",{className:"typography-13-xs-semibold tw-text-title tw-pointer-events-none",children:(0,n.WU)(t,"dd")}),(0,r.jsx)("p",{className:"typography-13-xs-semibold tw-pointer-events-none",style:{color:tw?.[t]?.color==="#00B96D"?"var(--themes-text-green)":tw?.[t]?.color==="#FF0000"?"var(--themes-text-orange)":"var(--themes-text-body)",visibility:tw?.[t]?.value?"visible":"hidden"},children:tw?.[t]?.value||"\xa0"})]},`week-button-${t}`))}),(0,r.jsx)("div",{className:"tw-w-auto tw-h-auto tw-flex tw-items-center",children:e?(0,r.jsxs)(_.J2,{open:J,onOpenChange:P,children:[(0,r.jsx)(_.xo,{asChild:!0,children:V?(0,r.jsx)(m.z,{variant:"outline",className:"tw-bg-[#4848480D] tw-border",children:(0,r.jsx)("p",{className:"typography-body-1 tw-text-black tw-p-2",children:tc?(0,n.WU)(new Date(tc),"MMM do"):""})}):(0,r.jsx)(m.z,{variant:"outline",size:"icon","aria-label":"open calendar",className:"tw-ml-1 btn-outline-rounded-small tw-border-grey",children:(0,r.jsx)(c.X,{height:20,width:20,className:"tw-text-black"})})}),(0,r.jsxs)(_.yk,{align:"start",sideOffset:8,className:"tw-p-4 tw-w-[364px] tw-bg-[var(--themes-bg-default-white)] tw-rounded-2xl tw-border tw-border-[var(--themes-border-light)] tw-shadow-[0px_4px_6px_0px_rgba(30,30,30,0.1),0px_10px_15px_0px_rgba(30,30,30,0.1)]",children:[(0,r.jsx)(y,{className:"tw-p-0 tw-bg-transparent",mode:"single",locale:G,selected:tu,defaultMonth:tu,onSelect:tm,disabled:[tb,...td?[{before:new Date(td)}]:[],...ts?[{after:new Date(ts)}]:[]],startMonth:td?new Date(td):void 0,endMonth:ts?new Date(ts):void 0,classNames:tp,formatters:tf,components:{DayButton:tx},showOutsideDays:!1}),(0,r.jsx)(tg,{className:"tw-mt-3"})]})]}):(0,r.jsx)(m.z,{variant:"outline",size:"icon",onClick:()=>{$(!0)},"aria-label":"next",className:"tw-ml-2 btn-outline-rounded-small tw-border-grey",children:(0,r.jsx)(c.X,{className:"tw-text-black"})})},"week-button-more")]}),(0,r.jsx)(tg,{})]}),R&&(0,r.jsxs)("div",{className:(0,h.cn)(g&&"tw-border-2 tw-border-brand tw-rounded-2xl tw-p-4 tw-mt-5 dark:tw-border dark:tw-border-default dark:tw-bg-gray"),children:[g&&(0,r.jsxs)("div",{className:"between-content tw-mb-3",children:[(0,r.jsx)("div",{className:"typography-fixed-base-semibold",children:K("search_bar.date")}),(0,r.jsx)("div",{className:"button-class tw-bg-gray tw-rounded-full",onClick:()=>W?.({btn:"other"}),children:(0,r.jsx)(u.T,{className:"tw-w-4 tw-h-4 tw-m-3 tw-flex-none tw-text-title",width:16,height:16})})]}),(0,r.jsx)(y,{className:"tw-p-0 tw-bg-transparent",mode:"single",locale:G,selected:tu,defaultMonth:tu,onSelect:tm,disabled:[tb,...td?[{before:new Date(td)}]:[],...ts?[{after:new Date(ts)}]:[]],startMonth:td?new Date(td):void 0,endMonth:ts?new Date(ts):void 0,classNames:tp,formatters:tf,components:{DayButton:tx},showOutsideDays:!1}),(0,r.jsx)(tg,{})]})]}):g?null:(0,r.jsx)("div",{"data-testid":"date-picker-skeleton",className:(0,h.cn)(p,"tw-h-[140px] tw-w-full tw-bg-gray dark:tw-bg-brand-subtle tw-rounded-lg")})})}}]);
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.