<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5100],{55100:function(e,t,r){r.r(t),r.d(t,{default:function(){return ar}});var n=r(74512),o=r(32735),i=r(87904),a=r(6907),l=r(26676),c=r(38265),u=r(56989),s=r(32841),d=r(67091),f=r(5006),h=r(70595),y=r(40925),g=r(2231),p=r(42860),m=r(97593),v=r(22067),b=r(28255),x=r(2111),Z=r(71533),w=r(15663),j=r(67225),S=r(41153),C=r.n(S),k=r(5060),I=r(1988),D=r(15431),P=o.createContext({});P.displayName="DateHighlightContext";var O=P.Provider;var T=o.createContext({});T.displayName="MonthHighlightContext";T.Provider;var M=r(52346),R=r(77543),A=r(41607),L=r(92429),F=r(362),E=r(24155),H=r(73915),B=r(28299),W=o.memo((function(e){var t,r=e.year,a=e.month,l=e.languageTag,c=e.minDate,u=e.maxDate,s=e.onPreviousMonthPress,h=e.onNextMonthPress,y=e.variant,g=void 0===y?"horizontal":y,p=e.isMulti,m=void 0!==p&amp;&amp;p,v=e.visibilityIndex,b=o.useContext(T),Z=o.useMemo((function(){var e=l;return e.endsWith("-TH")&amp;&amp;(e="".concat(e,"-u-ca-iso8601")),new Intl.DateTimeFormat(e,{month:"long",year:"numeric"})}),[l]),w=new Date(r,a,3),S=0===v?"left":1===v?"right":"unknown",C=(0,x.Z)(w,c)||m&amp;&amp;"right"===S&amp;&amp;(0,x.Z)(w,(0,j.Z)(c,1)),P=(0,x.Z)(u,w)||(0,D.Z)(u,w)&lt;0||m&amp;&amp;"left"===S&amp;&amp;(0,x.Z)(w,(0,I.Z)(u,1)),O=null===(t=b[r])||void 0===t?void 0:t[a+1],W=(0,M.Fg)(),z="vertical"===g?B.Z:E.Z,V="vertical"===g?F.Z:H.Z;return(0,n.jsxs)(i.Z,{style:[N.container,m&amp;&amp;N.containerDesktop,{backgroundColor:W.color.lightPrimary}],children:[(0,n.jsxs)(i.Z,{style:N.monthTitle,children:[(0,n.jsx)(f.Z,{variant:"title-2",testID:"calendar-month",children:Z.format(w)}),Boolean(O)&amp;&amp;(0,n.jsx)(i.Z,{style:N.highlightWrapper,children:(0,n.jsx)(R.Z,{content:(0,n.jsx)(i.Z,{style:N.tooltipContent,children:(0,n.jsx)(f.Z,{variant:"ui-tiny",ink:"white",children:null===O||void 0===O?void 0:O.tooltipText})}),variant:"normal",position:"top",children:(0,n.jsx)(A.Z,{src:String(null===O||void 0===O?void 0:O.src),style:N.imgHighlight})})})]}),m?(0,n.jsxs)(n.Fragment,{children:["left"===S?(0,n.jsx)(i.Z,{style:N.chevronLeftDesktop,children:(0,n.jsx)(k.Z,{onPress:s,disabled:C,style:N.button,children:(0,n.jsx)(z,{color:C?d.Z.color.uiLightSecondary:d.Z.color.uiBluePrimary})})}):null,"right"===S?(0,n.jsx)(i.Z,{style:N.chevronRightDesktop,children:(0,n.jsx)(k.Z,{onPress:h,disabled:P,style:N.button,children:(0,n.jsx)(V,{color:P?d.Z.color.uiLightSecondary:d.Z.color.uiBluePrimary})})}):null]}):(0,n.jsxs)(L.Z,{spacing:"m",children:[(0,n.jsx)(k.Z,{onPress:s,disabled:C,style:N.button,children:(0,n.jsx)(z,{color:C?d.Z.color.uiLightSecondary:d.Z.color.uiBluePrimary})}),(0,n.jsx)(k.Z,{onPress:h,disabled:P,style:N.button,children:(0,n.jsx)(V,{color:P?d.Z.color.uiLightSecondary:d.Z.color.uiBluePrimary})})]})]})})),N=a.Z.create({container:{paddingVertical:d.Z.spacing.xs,paddingHorizontal:d.Z.spacing.s,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},containerDesktop:{justifyContent:"center"},chevronLeftDesktop:{position:"absolute",left:0},chevronRightDesktop:{position:"absolute",right:0},tooltipContent:{width:300},highlightWrapper:{marginLeft:d.Z.spacing.xs},monthTitle:{flexDirection:"row"},imgHighlight:{width:d.Z.spacing.m,height:d.Z.spacing.m},button:{width:24,height:24,alignItems:"center",justifyContent:"center"}}),z=r(9959);function V(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var G=o.memo((function(e){var t=e.date,r=e.description,o=e.calendarWidth,a=(0,M.Fg)(),l=o-(d.Z.spacing.xs+d.Z.spacing.s-d.Z.spacing.xxs);return(0,n.jsxs)(i.Z,{style:[_.badge,{backgroundColor:a.color.lightPrimary,maxWidth:l}],testID:"holiday",children:[(0,n.jsx)(f.Z,{ink:"alert",variant:"ui-tiny",children:t}),(0,n.jsx)(i.Z,{style:{width:d.Z.spacing.xxs}}),(0,n.jsx)(f.Z,{ink:"primary",variant:"ui-tiny",children:r})]})})),U=o.memo((function(e){var t,r,o=e.year,a=e.realMonth,l=e.calendarWidth,c=e.variant,u=(0,s.wC)(),f=Object.entries(null!==(r=null===(t=u[o])||void 0===t?void 0:t[a])&amp;&amp;void 0!==r?r:{});return"vertical"===c?(0,n.jsx)(z.Z,{horizontal:!0,style:_.badges,children:f.map((function(e){var t=Y(e,2),r=t[0];return t[1].map((function(e){return(0,n.jsx)(i.Z,{style:{marginEnd:d.Z.spacing.xs},children:(0,n.jsx)(G,{date:Number(r),description:e,calendarWidth:l})},"".concat(r,"-").concat(e))}))}))}):(0,n.jsx)(i.Z,{style:[_.badges,{flexWrap:"wrap"}],children:f.map((function(e){var t=Y(e,2),r=t[0];return t[1].map((function(e){return(0,n.jsx)(G,{date:Number(r),description:e,calendarWidth:l},"".concat(r,"-").concat(e))}))}))})})),_=a.Z.create({badge:{paddingVertical:d.Z.spacing.xs,paddingHorizontal:d.Z.spacing.s,borderRadius:d.Z.border.radius.normal,flexDirection:"row",marginRight:d.Z.spacing.xxs,marginBottom:d.Z.spacing.xxs},badges:{flexDirection:"row",paddingLeft:d.Z.spacing.xs,paddingTop:d.Z.spacing.xxs}});function $(e){var t=e.languageTag,r=e.firstDayOfTheWeek,o=(0,m.getDays)(t,"short",r),a=(0,M.Fg)(),l="mon"===r?6:0;return(0,n.jsx)(i.Z,{style:[X.bar,{backgroundColor:a.color.lightPrimary}],children:o.map((function(e,t){return(0,n.jsx)(i.Z,{style:{height:16},children:(0,n.jsx)(f.Z,{ink:t===l?"alert":"secondary",variant:"ui-tiny",style:{textAlign:"center"},children:e})},e)}))})}var X=a.Z.create({bar:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",paddingVertical:d.Z.spacing.xxs}}),q=o.memo($),Q=r(38795),K=r(65976),J=r(22253),ee=r(31759),te=r(28192);function re(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return re(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return re(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e){var t=(0,s.QS)(),r=e.date,o=e.holiday,a=e.disabled,l=e.isIntersection,c=e.showLeftMarker,u=e.showRightMarker,h=e.showRangePreview,y=e.isRangePreviewEnd,g=e.onChange,p=e.onHovered,m=e.onHoverOut,v=e.highlightStyle,b=void 0===v?void 0:v,x=e.isDepartAndReturnSame,Z=c||u,j=oe((0,ee.Q)({onMouseEnter:function(){p(P)},onMouseOut:function(){m()}}),2),S=j[0],C=j[1],I=[le.dateValue,b?[le.baseHighlightStyle,b]:void 0,l&amp;&amp;!a&amp;&amp;le.selected,y&amp;&amp;!a&amp;&amp;le.selected,S&amp;&amp;Z&amp;&amp;le.selected],D=(0,w.Z)(r,t)&amp;&amp;!l,P="number"===typeof r?new Date(r):r,O=a?"muted":l&amp;&amp;!x||S?"primary":Z||x?"white":o?"alert":"primary",T={style:[le.cell,a&amp;&amp;le.disabled],onPress:function(){return g(P)},disabled:a,testID:"date-cell-".concat(P.getDate(),"-").concat(P.getMonth()+1,"-").concat(P.getFullYear())},M=S&amp;&amp;!a&amp;&amp;!l&amp;&amp;!y;return(0,n.jsx)(k.Z,function(e){for(var t=1;t&lt;arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&amp;&amp;(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ne(e,t,r[t])}))}return e}({},T,C,{children:(0,n.jsxs)(i.Z,{style:{width:"100%"},children:[(0,n.jsx)(i.Z,{style:le.dateInfo,children:e.topText&amp;&amp;(0,n.jsx)(f.Z,{style:le.centerText,variant:"caption-micro",ink:e.topTextInk,numberOfLines:1,children:e.topText})}),(0,n.jsxs)(i.Z,{style:[le.date,M&amp;&amp;le.hovered,h&amp;&amp;!l&amp;&amp;!S&amp;&amp;le.rangePreview],children:[(0,n.jsx)(i.Z,{style:[le.marker,y&amp;&amp;!a&amp;&amp;le.activeRangePreview,c&amp;&amp;le.activeRange]}),(0,n.jsxs)(i.Z,{style:[I,x&amp;&amp;{backgroundColor:d.Z.color.uiBluePrimary}],children:[(0,n.jsx)(f.Z,{variant:"ui-small",ink:O,style:le.centerText,children:P.getDate()}),D&amp;&amp;(0,n.jsx)(i.Z,{style:le.today,testID:"date-marker-today"})]}),(0,n.jsx)(i.Z,{style:[le.marker,h&amp;&amp;l&amp;&amp;!S&amp;&amp;le.activeRangePreview,u&amp;&amp;le.activeRange]})]}),(0,n.jsx)(i.Z,{style:le.dateInfo,children:e.bottomLoading?(0,n.jsx)(te.Z,{height:d.Z.typography.captionMicro.fontSize/2,width:d.Z.spacing.xl,style:le.loadingSkeleton}):e.bottomText&amp;&amp;(0,n.jsx)(f.Z,{style:le.centerText,variant:"caption-micro",ink:e.bottomTextInk,numberOfLines:1,children:e.bottomText})})]})}))}var ae=o.memo((function(e){return(0,n.jsx)(i.Z,{style:le.cell,children:e.isInRange&amp;&amp;(0,n.jsx)(i.Z,{style:[le.date,le.activeRange]})})})),le=a.Z.create({cell:{alignItems:"center",justifyContent:"center",borderRadius:d.Z.border.radius.normal},hovered:{backgroundColor:d.Z.color.uiBlueLight,borderRadius:4},rangePreview:{backgroundColor:d.Z.color.uiBlueLight,borderRadius:0},disabled:{cursor:"not-allowed"},centerText:{textAlign:"center"},date:{height:24,width:"100%",flexDirection:"row"},marker:{zIndex:1,width:"50%"},activeRange:{height:24,backgroundColor:d.Z.color.uiBlueSecondary},activeRangePreview:{height:24,backgroundColor:d.Z.color.uiBlueLight},dateValue:{flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,height:24,left:"50%",transform:[{translateX:"-50%"}]},today:{position:"absolute",backgroundColor:d.Z.color.uiBlueSecondary,bottom:d.Z.spacing.xxs,width:15,height:2},baseHighlightStyle:{paddingHorizontal:d.Z.spacing.xs,borderRadius:d.Z.border.radius.rounded,borderWidth:d.Z.border.width.bold},selected:{paddingHorizontal:d.Z.spacing.xs,backgroundColor:d.Z.color.uiBlueLight,borderRadius:d.Z.border.radius.rounded,borderWidth:d.Z.border.width.bold,borderColor:d.Z.color.uiBluePrimary},dateInfo:{height:14},loadingSkeleton:{marginHorizontal:d.Z.spacing.xxs}}),ce=o.memo(ie);function ue(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function se(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!==typeof Symbol&amp;&amp;null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ue(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e){var t=function(e){var t,r,n=!(arguments.length&gt;1&amp;&amp;void 0!==arguments[1])||arguments[1],o=Boolean(null===(t=p[e.getFullYear()])||void 0===t||null===(r=t[e.getMonth()+1])||void 0===r?void 0:r[e.getDate()]);return n&amp;&amp;e.getDay()%7===0||o},r=function(e){var t,r;return null===(t=v[e.getFullYear()])||void 0===t||null===(r=t[e.getMonth()+1])||void 0===r?void 0:r[e.getDate()]},a=e.year,l=e.month,c=e.minDate,d=e.maxDate,f=e.firstDayOfTheWeek,h=e.onChange,y=e.onHoveredDateChange,g=(0,M.Fg)(),p=(0,s.wC)(),v=(0,J.s0)(),b=(0,s.rj)(a,l+1),Z=(0,s.ZN)(),j=(0,s.$P)(),S=(0,s.sl)(),C="undefined"!==typeof Z&amp;&amp;"undefined"!==typeof j&amp;&amp;Z&gt;j,k=C?j:Z,I=C?Z:j,D=(null===k||void 0===k?void 0:k.toISOString())===(null===I||void 0===I?void 0:I.toISOString()),P=o.useMemo((function(){var e,t=(0,m.getDates)(a,l,f);t.length%7!==0&amp;&amp;(e=t).push.apply(e,se(Array(7-t.length%7).fill(null)));return t}),[a,l,f]),O=new Date(a,l,1);return(0,n.jsx)(i.Z,{style:[he.container,{backgroundColor:g.color.lightPrimary}],children:P.map((function(e,o){var i,s,f,g,m,v,j,T,M,R,A,L,F,E;if(null===e){var H="undefined"===typeof I?-1:P.findIndex((function(e){return(0,w.Z)(e,I)})),B="undefined"===typeof k?-1:P.findIndex((function(e){return(0,w.Z)(e,k)})),W="undefined"!==typeof k&amp;&amp;"undefined"!==typeof I&amp;&amp;function(e,t){var r=t.startMarkerDateIndex,n=t.endMarkerDateIndex,o=t.startMarkerDate,i=t.endMarkerDate,a=t.thisMonth;if((0,x.Z)(o,i))return!1;if((0,x.Z)(o,a))return e&gt;r;if((0,x.Z)(i,a))return e&lt;n;if((0,K.Z)(a,{start:o,end:i}))return!0;return!1}(o,{startMarkerDate:k,startMarkerDateIndex:B,endMarkerDate:I,endMarkerDateIndex:H,thisMonth:O});return(0,n.jsx)(ae,{isInRange:W},"empty-".concat(a,"-").concat(l,"-").concat(o))}var N,z,V,Y="undefined"!==typeof k&amp;&amp;(0,w.Z)(e,k),G="undefined"!==typeof I&amp;&amp;(0,w.Z)(I,e),U=Y||G,_="undefined"!==typeof I&amp;&amp;"undefined"!==typeof k&amp;&amp;(0,K.Z)(e,{start:k,end:I}),$=U&amp;&amp;"undefined"!==typeof k?G:_,X=U&amp;&amp;"undefined"!==typeof I?Y:_,q="undefined"!==typeof S&amp;&amp;"undefined"!==typeof Z&amp;&amp;S&gt;Z&amp;&amp;e&gt;Z&amp;&amp;e&lt;S&amp;&amp;!C,J=(0,u.Z)(e,c)&amp;&amp;!(0,w.Z)(e,c)||(0,Q.Z)(e,d)||(null===(i=b[e.getDate()])||void 0===i?void 0:i.disabled),ee=t(e,!1);return(0,n.jsx)(fe,{title:ee?null===(s=p[e.getFullYear()])||void 0===s||null===(f=s[e.getMonth()+1])||void 0===f||null===(g=f[e.getDate()])||void 0===g?void 0:g[0]:void 0,children:(0,n.jsx)(ce,{date:e,isIntersection:U,showLeftMarker:!D&amp;&amp;$,showRightMarker:!D&amp;&amp;X,showRangePreview:q,isDepartAndReturnSame:_&amp;&amp;D,isRangePreviewEnd:"undefined"!==typeof S&amp;&amp;"undefined"!==typeof Z&amp;&amp;!C&amp;&amp;(0,w.Z)(e,S),disabled:J,holiday:t(e),highlightStyle:r(e),onChange:h,onHovered:y,onHoverOut:y,topText:null===(m=b[e.getDate()])||void 0===m||null===(v=m.top)||void 0===v?void 0:v.text,topTextInk:null!==(N=null===(j=b[e.getDate()])||void 0===j||null===(T=j.top)||void 0===T?void 0:T.ink)&amp;&amp;void 0!==N?N:"primary",bottomText:null===(M=b[e.getDate()])||void 0===M||null===(R=M.bottom)||void 0===R?void 0:R.text,bottomTextInk:null!==(z=null===(A=b[e.getDate()])||void 0===A||null===(L=A.bottom)||void 0===L?void 0:L.ink)&amp;&amp;void 0!==z?z:"primary",bottomLoading:null!==(V=null===(F=b[e.getDate()])||void 0===F||null===(E=F.bottom)||void 0===E?void 0:E.loading)&amp;&amp;void 0!==V&amp;&amp;V})},e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate())}))})}function fe(e){var t=e.children,r=e.title,a=o.useCallback((function(e){e&amp;&amp;r&amp;&amp;e.setAttribute("title",r)}),[r]);return(0,n.jsx)(i.Z,{ref:a,children:t})}var he=a.Z.create({container:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gridTemplateRows:"repeat(4, 1fr)"}}),ye=o.memo(de);function ge(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function me(e){for(var t=1;t&lt;arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&amp;&amp;(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pe(e,t,r[t])}))}return e}function ve(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n&lt;i.length;n++)r=i[n],t.indexOf(r)&gt;=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n&lt;i.length;n++)r=i[n],t.indexOf(r)&gt;=0||Object.prototype.propertyIsEnumerable.call(e,r)&amp;&amp;(o[r]=e[r])}return o}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(e){var t=e.selectedDate,r=e.onChange,i=ve(e,["selectedDate","onChange"]),a=be(o.useState(t),2),l=be(a[0],2),c=l[0],d=l[1],f=a[1],h=((0,s.ZN)(),o.useCallback((function(e){"undefined"!==typeof d?"undefined"!==typeof c||(0,u.Z)(e,d)||(0,w.Z)(e,d)?f([void 0,e]):(f([d,e]),r([d,e])):f([void 0,e])}),[c,d,f,r]));return(0,n.jsx)(s.Pq,{value:c,children:(0,n.jsx)(we,me({onChange:h,selectedDate:d},i))})}C().polyfill();var Ze=o.forwardRef((function(e,t){var r=e.selectedDate,i=ve(e,["selectedDate"]),a=be(o.useState(!1),2),l=a[0],c=a[1];return o.useEffect((function(){c(!0)}),[]),l?Array.isArray(r)?(0,n.jsx)(xe,me({ref:t,selectedDate:r},i)):(0,n.jsx)(we,me({ref:t,selectedDate:r},i)):null})),we=o.forwardRef((function(e,t){var r=(0,g.Z)().width,a=(0,s.QS)(),l=e.languageTag,c=e.minDate,u=void 0===c?a:c,f=e.maxDate,h=void 0===f?(0,b.Z)(a,1):f,y=e.numberOfRenderedMonth,w=void 0===y?1:y,S=e.variant,C=void 0===S?"horizontal":S,k=e.firstDayOfTheWeek,I=void 0===k?"mon":k,D=e.selectedDate,P=e.onChange,O=e.width,T=void 0===O?r:O,M=e.autoScrollToSelectedDate,R=void 0!==M&amp;&amp;M,A=e.hideHolidayBadges,L=void 0!==A&amp;&amp;A,F=e.disableScrollToPrevAnimation,E=void 0!==F&amp;&amp;F,H=e.onVisibleDateChange,B=(0,s.wC)(),W=o.useMemo((function(){return(0,x.Z)(u,h)&amp;&amp;w&gt;1?(0,v.Z)({start:u,end:(0,j.Z)(u,w-1)}):(0,v.Z)({start:u,end:h})}),[u,h,w]),N=o.useCallback((function(){if(t=D,null!=(r=Date)&amp;&amp;"undefined"!==typeof Symbol&amp;&amp;r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r){var e=W.findIndex((function(e){return(0,x.Z)(e,D)&amp;&amp;(0,Z.Z)(e,D)}));if(-1!==e)return e}var t,r;return 0}),[D,W]),z=o.useRef(null),V=o.useRef(N()),Y=o.useRef(!1),G=(0,o.useState)([]),U=G[0],_=G[1];o.useEffect((function(){var e;if("none"!==R){var t,r=N();if("auto"!==R)"vertical"===C&amp;&amp;!R||"horizontal"===C&amp;&amp;2===w||null===(e=z.current)||void 0===e||e.scrollToIndex({animated:!0,index:r});else null===(t=z.current)||void 0===t||t.scrollToIndex({animated:!0,index:r})}}),[R,N,w,C]),o.useEffect((function(){if(!Y.current){var e=N(),t=W[e];$(t),Y.current=!0}})),o.useImperativeHandle(t,(function(){return{resetViewedIndex:function(){null!==z.current&amp;&amp;z.current.scrollToIndex({animated:!1,index:N()})}}}));var $=o.useCallback((function(e){for(var t=[],r=0;r&lt;w;r++){var n=e.getMonth()+r;t.push({year:e.getFullYear()+Math.floor(n/12),realMonth:n%12+1})}H&amp;&amp;H(t)}),[w,H]),X=o.useCallback((function(e){var t;if(e&lt;0)return T;var r,n=W[e],o=n.getFullYear(),i=n.getMonth(),a=(0,m.getDates)(o,i,I),l=Math.ceil(a.length/7),c=null!==(r=null===B||void 0===B||null===(t=B[o])||void 0===t?void 0:t[i+1])&amp;&amp;void 0!==r?r:{},u=Object.keys(c),s=u.reduce((function(e,t){var r=c[t];return e+r.length*t.length+r.join("").length}),0),d=u.length&gt;0?1:0;return 65+52*l+36*Math.max(d,Math.floor(s/(T/13)))+4}),[T,W,B,I]),q=o.useCallback((function(e){return e&lt;0?e*(T+d.Z.spacing.m):W.slice(0,e).map((function(e,t){return X(t)})).reduce((function(e,t){return e+t}),0)}),[W,X]),Q=o.useCallback((function(e,t){return"horizontal"===C?2===w?{index:t,length:T-d.Z.spacing.m,offset:t*(T+d.Z.spacing.m)}:{index:t,length:T,offset:t*T}:{index:t,length:X(t),offset:q(t)}}),[C,X,q,w,T]),K=o.useRef(null);o.useLayoutEffect((function(){K.current=P}));var J=o.useCallback((function(e){"function"===typeof K.current&amp;&amp;K.current(e)}),[]),ee=o.useCallback((function(){if(null!==z.current){var e=V.current-1;z.current.scrollToIndex({animated:!E,index:e})}}),[]),te=o.useCallback((function(){if(null!==z.current){var e=V.current+1;z.current.scrollToIndex({animated:!0,index:e})}}),[]),re=(0,o.useCallback)((function(e){var t=e.viewableItems;_(t.filter((function(e,t){return t&lt;2})).map((function(e){return e.index})))}),[_]),ne=2===w&amp;&amp;"horizontal"===C?function(){return(0,n.jsx)(i.Z,{style:{width:d.Z.spacing.m}})}:null,oe=Math.min(W.length,w),ie=(0,o.useMemo)((function(){return U}),[U]),ae=be(o.useState(),2),le=ae[0],ce=ae[1];return(0,n.jsx)(s.SY,{value:D,children:(0,n.jsx)(s.AZ,{value:le,children:(0,n.jsx)(p.Z,{pagingEnabled:!0,initialNumToRender:w,windowSize:2,initialScrollIndex:N(),showsHorizontalScrollIndicator:!1,contentContainerStyle:{width:T*oe+(2===oe?d.Z.spacing.m:0)},horizontal:"horizontal"===C,ref:z,data:W,keyExtractor:function(e){return e.getFullYear()+"-"+(e.getMonth()+1)},testID:"mds-calendar",ItemSeparatorComponent:ne,renderItem:function(e){var t=e.item,r=e.index;return(0,n.jsx)(je,{year:t.getFullYear(),month:t.getMonth(),variant:C,onChange:J,onHoveredDateChange:ce,languageTag:l,onPreviousMonthPress:ee,onNextMonthPress:te,width:T,minDate:u,maxDate:h,hideHolidayBadges:L,firstDayOfTheWeek:I,isMulti:2===oe,visibilityIndex:ie.indexOf(r)},t.getFullYear()+"-"+(t.getMonth()+1))},getItemLayout:Q,onScroll:function(e){var t=e.nativeEvent.contentOffset,r=t.x,n=t.y;if("horizontal"===C){V.current=Math.floor(r/T);var o=W[V.current];$(o)}else for(var i=0;i&lt;W.length;i++)if(q(i)&gt;n){V.current=Math.max(0,i-1);var a=W[V.current];$(a);break}},onViewableItemsChanged:re})})})})),je=o.memo((function(e){var t=e.year,r=e.month,o=e.languageTag,a=e.minDate,l=e.maxDate,c=e.onPreviousMonthPress,u=e.onNextMonthPress,s=e.onChange,d=e.onHoveredDateChange,f=e.variant,h=e.firstDayOfTheWeek,y=e.width,g=e.hideHolidayBadges,p=void 0!==g&amp;&amp;g,m=e.isMulti,v=void 0!==m&amp;&amp;m,b=e.visibilityIndex,x={style:{width:y},dataSet:{year:t,month:r}};return(0,n.jsxs)(i.Z,me({},x,{children:[(0,n.jsx)(W,{year:t,month:r,languageTag:o,onPreviousMonthPress:c,onNextMonthPress:u,minDate:a,maxDate:l,variant:f,isMulti:v,visibilityIndex:b}),(0,n.jsx)(q,{languageTag:o,firstDayOfTheWeek:h}),(0,n.jsx)(ye,{year:t,month:r,minDate:a,maxDate:l,onChange:s,onHoveredDateChange:d,firstDayOfTheWeek:h}),!p&amp;&amp;(0,n.jsx)(U,{year:t,realMonth:r+1,calendarWidth:y,variant:f})]}))})),Se=r(16979),Ce=r(55972),ke=r(63601),Ie=r(5001),De=r.n(Ie),Pe=r(91341),Oe=r(49534),Te=r(83584),Me=r(76537);function Re(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function Ae(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(u){return void r(u)}l.done?t(c):Promise.resolve(c).then(n,o)}function Le(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ae(i,n,o,a,l,"next",e)}function l(e){Ae(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Re(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Re(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){var r=(0,Pe.a)({queryKey:["idb",e],queryFn:function(e){return function(e,t){return He.apply(this,arguments)}(e,t)}}),n=r.data,o=void 0===n?t:n,i=(0,Oe.NL)(),a=(0,Te.D)({mutationFn:function(t){return function(e,t){return Be.apply(this,arguments)}(e,t)},onSuccess:function(){i.invalidateQueries({queryKey:["idb",e]})}});return[o,a.mutateAsync]}function He(){return(He=Le(De().mark((function e(t,r){var n,o,i,a;return De().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.queryKey,o=Fe(n,2),i=o[1],e.next=4,(0,Me.U2)(i);case 4:return a=e.sent,e.abrupt("return",null!==a&amp;&amp;void 0!==a?a:r);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Be(){return(Be=Le(De().mark((function e(t,r){return De().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Me.t8)(t,r);case 2:return e.abrupt("return",r);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var We=r(31262);function Ne(e){var t=e.id,r=e.text,a=e.active,l=e.Icon,c=e.highlightText,u=e.onPress,s=(0,o.useMemo)((function(){return a?{textInk:"primary-interactive"}:{textInk:"secondary"}}),[a]).textInk;return(0,n.jsxs)(k.Z,{activeOpacity:.8,style:ze.container,onPress:u,children:[(0,n.jsxs)(i.Z,{style:ze.content,children:[(0,n.jsx)(i.Z,{children:l}),(0,n.jsx)(f.Z,{variant:"ui-small",ink:s,style:{flexWrap:"wrap"},children:r}),c&amp;&amp;(0,n.jsx)(We.Z,{variant:"alert",text:c})]}),a&amp;&amp;(0,n.jsx)(i.Z,{style:ze.indicator})]},t)}var ze=a.Z.create({container:{position:"relative",maxWidth:200,padding:d.Z.spacing.m,borderRadius:d.Z.border.radius.rounded,alignItems:"center"},content:{position:"relative",maxWidth:200,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:d.Z.spacing.xs},indicator:{backgroundColor:d.Z.color.uiBluePrimary,position:"absolute",bottom:0,transformOrigin:"left top",width:"90%",height:2,borderRadius:2}});function Ve(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ge(e){for(var t=1;t&lt;arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&amp;&amp;(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ye(e,t,r[t])}))}return e}function Ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Ve(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ve(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var _e=(0,Se.v4)();function $e(e){var t=e.activeIndex,r=e.items,a=e.coachmarkOptions,l=e.onChange,c=(0,o.useRef)(),u=(0,o.useState)(0),s=u[0],f=u[1],h=Ue(Ee("price-table-coachmark-seen",!1),2),y=h[0],g=h[1],p=(0,o.useCallback)((function(){var e;null===(e=c.current)||void 0===e||e.measureInWindow((function(e,t,r){f(window.innerWidth/2-e-r/2)}))}),[]);(0,o.useEffect)((function(){var e=setTimeout((function(){p()}),500);return function(){clearTimeout(e)}}),[p]);var m=(0,M.Fg)().color,v=(0,o.useState)(null!==t&amp;&amp;void 0!==t?t:0),b=v[0],x=v[1],Z=(0,o.useRef)({longDirection:0});return t&amp;&amp;b!==t&amp;&amp;x(t),(0,n.jsxs)(i.Z,{style:Xe.container,children:[(0,n.jsx)("div",{id:_e}),r.map((function(e,t){var r=b===t,u="PRICE_TABLE"===e.id&amp;&amp;a?Ce.Z:o.Fragment;return(0,n.jsx)(u,{customActionButton:function(e){return(0,n.jsx)("div",{id:"priceTableCoachmarkCta",children:e})},coachmarkWrapperStyle:{right:s},isVisible:!y,onActionPress:function(){return g(!0).catch(console.warn)},childContainerTestID:"priceTableCoachmarkCta",actionLabel:(null===a||void 0===a?void 0:a.priceTableCoachmarkCta)||"",message:(null===a||void 0===a?void 0:a.priceTableCoachmarkMessage)||"",position:"bottom",children:(0,n.jsxs)(i.Z,{onLayout:p,ref:"PRICE_TABLE"===e.id?c:void 0,children:[r&amp;&amp;(0,n.jsx)(ke.E.div,{initial:{opacity:.5,y:"".concat(100*Z.current.longDirection,"%")},animate:{opacity:1,y:0},transition:{duration:.2},style:{backgroundColor:m.lightPrimary,position:"absolute",top:0,bottom:0,left:0,right:0,borderRadius:d.Z.border.radius.rounded,zIndex:-1}}),(0,n.jsx)(Ne,Ge({},e,{Icon:e.createIcon(r),active:r,onPress:function(){return function(e,t){null===l||void 0===l||l(e,t),Z.current.longDirection=b-t,x(t)}(e,t)}}))]},e.text)},e.text)}))]})}var Xe=a.Z.create({container:{flexDirection:"row",alignItems:"flex-start",borderBottomColor:d.Z.color.borderSubtle,borderBottomWidth:d.Z.border.width.thin}}),qe=r(36790),Qe=r(98985),Ke=r(59357),Je=r(1815);function et(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(u){return void r(u)}l.done?t(c):Promise.resolve(c).then(n,o)}var tt=function(e,t){var r,n=(0,Je.Q)(),o=(0,Pe.a)({queryFn:(r=De().mark((function r(){var o,i;return De().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=[e.getFullYear(),e.getMonth()+1,t].join("/"),r.next=3,n({method:"get",domain:"holiday",path:"/holidays/".concat(o)});case 3:return i=r.sent,r.abrupt("return",i.data.holidays);case 5:case"end":return r.stop()}}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){et(i,n,o,a,l,"next",e)}function l(e){et(i,n,o,a,l,"throw",e)}a(void 0)}))}),queryKey:["holiday-fpr"]});return o.data||{}};function rt(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ot(e){for(var t=1;t&lt;arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&amp;&amp;(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nt(e,t,r[t])}))}return e}function it(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return rt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var at=a.Z.create({gridContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",padding:d.Z.spacing.xxs,borderWidth:d.Z.border.width.thin,borderColor:d.Z.color.borderSubtle},gridContent:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",borderRadius:d.Z.border.radius.normal},textCenter:{textAlign:"center"}}),lt=function(e){var t=e.priceUnknownLabel,r=e.priceTableMap,o=e.selectedCell,a=e.rowIndex,l=e.columnIndex,c=e.style,u=e.hoveredCell,s=e.isGrabbing,h=e.onSelectedCell,y=e.setHoveredCell,g=it((0,ee.Q)({onMouseEnter:function(){y("".concat(l,"-").concat(a))},onMouseOut:function(){y(null)}}),2),p=(g[0],g[1]),m=new Date,v=l&gt;a,b="".concat(l,"-").concat(a)===u,x=!u&amp;&amp;"".concat(l,"-").concat(a)===o,Z="".concat(l,"-").concat(a)===o;if(u){var w=it(u.split("-").map(Number),2),j=w[0],S=w[1];b=l&gt;j&amp;&amp;a===S||l===j&amp;&amp;a&lt;S||l===j&amp;&amp;a===S}if(o&amp;&amp;!u){var C=it(o.split("-").map(Number),2),I=C[0],D=C[1];x=l&gt;I&amp;&amp;a===D||l===I&amp;&amp;a&lt;D||l===I&amp;&amp;a===D}var P=d.Z.color.uiLightPrimary,O=d.Z.color.uiLightStain;(b||Z||x)&amp;&amp;(P=d.Z.color.uiBlueLight,O=d.Z.color.uiBlueLight);var T=d.Z.color.uiDarkPrimary;Z&amp;&amp;(T=d.Z.color.uiLightPrimary);var M=function(e,t){var n=function(e,t){var r=(0,Ke.Z)(m,{days:e}),n=(0,Ke.Z)(m,{days:t}),o=(r.getMonth()+1).toString().padStart(2,"0"),i=r.getDate().toString().padStart(2,"0"),a=(n.getMonth()+1).toString().padStart(2,"0"),l=n.getDate().toString().padStart(2,"0");return"".concat(o,"-").concat(i,"_").concat(a,"-").concat(l)}(e,t);return r[n]}(l,a),R=(null===M||void 0===M?void 0:M.displayPrice)||t,A=d.Z.color.uiBluePrimary;return"HIGHLIGHT_CHEAP"===(null===M||void 0===M?void 0:M.displayType)&amp;&amp;(T=d.Z.color.uiGreenPrimary,Z&amp;&amp;(A=d.Z.color.uiGreenPrimary,T=d.Z.color.uiLightPrimary)),v?(0,n.jsx)(i.Z,ot({},p,{style:[at.gridContainer,c,{backgroundColor:O}],children:(0,n.jsx)("div",{className:"cell-displayed-text",id:"".concat(l,"-").concat(a,"disabled"),children:(0,n.jsx)(i.Z,{style:at.gridContent})})})):"undefined"===typeof M||(null===M||void 0===M?void 0:M.isLoading)?(0,n.jsx)(i.Z,ot({},p,{style:[at.gridContainer,c,{backgroundColor:O}],children:(0,n.jsx)("div",{className:"cell-displayed-text",id:"".concat(l,"-").concat(a,"disabled"),children:(0,n.jsx)(i.Z,{style:at.gridContent,children:(0,n.jsx)(te.Z,{height:20,width:56})})})})):(0,n.jsx)(k.Z,ot({},p,{style:[at.gridContainer,c,{backgroundColor:P,cursor:s?"grabbing":"pointer"}],onPressIn:function(){h("".concat(l,"-").concat(a))},children:(0,n.jsx)(i.Z,{style:[at.gridContent,{backgroundColor:Z?A:P}],children:(0,n.jsx)(f.Z,{variant:"ui-tiny",style:[at.textCenter,{color:T}],children:(0,n.jsx)("div",{className:"cell-displayed-text",id:"".concat(l,"-").concat(a),children:R})})})}))},ct=r(62952),ut=r(52466),st=r(9592),dt=r(15971);function ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ht=(0,o.forwardRef)((function(e,t){var r=(0,o.useState)(e.columnCount),i=r[0],a=r[1];return(0,n.jsx)(dt.Ym,function(e){for(var t=1;t&lt;arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&amp;&amp;(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ft(e,t,r[t])}))}return e}({ref:t},e,{onItemsRendered:function(t){var r;i!==t.visibleRowStopIndex+1&amp;&amp;a(Math.max(t.visibleRowStopIndex,7)),null===(r=e.onItemsRendered)||void 0===r||r.call(e,t)},columnCount:i}))})),yt=ht;function gt(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function pt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mt(e){for(var t=1;t&lt;arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&amp;&amp;(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pt(e,t,r[t])}))}return e}function vt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n&lt;i.length;n++)r=i[n],t.indexOf(r)&gt;=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n&lt;i.length;n++)r=i[n],t.indexOf(r)&gt;=0||Object.prototype.propertyIsEnumerable.call(e,r)&amp;&amp;(o[r]=e[r])}return o}function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return gt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var xt=function(e){var t=e.stickyHeight,r=e.stickyWidth,o=e.headerColumns,a=e.recenterLabel,l=void 0===a?"Recenter":a,c=e.recenterShown,u=e.onRecenter,s={height:t,width:r};return(0,n.jsxs)(i.Z,{style:[Ct.gridHeader],children:[(0,n.jsx)(i.Z,{style:[Ct.gridHeaderScrollable,{left:0}],children:o.map((function(e,t){var r=e.label,o=e.hovered,a=e.isHoliday,l=e.selected,c=vt(e,["label","hovered","isHoliday","selected"]);return(0,n.jsxs)(i.Z,{style:[Ct.gridHeaderScrollableColumn,c,{backgroundColor:o?d.Z.color.uiBlueLight:d.Z.color.uiLightStain}],children:[r.map((function(e,t){return(0,n.jsx)(f.Z,mt({},a&amp;&amp;{ink:"destructive-interactive"},l&amp;&amp;{ink:"primary-interactive"},{variant:"ui-tiny",children:e}),t)})),l&amp;&amp;(0,n.jsx)(i.Z,{style:Ct.headerIndicator})]},t)}))}),(0,n.jsx)(k.Z,{disabled:!c,style:[Ct.gridHeaderBase,s],onPress:u,children:c&amp;&amp;(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ut.Z,{width:16,height:16}),(0,n.jsx)(f.Z,{variant:"ui-tiny",ink:"primary-interactive",children:l})]})})]})},Zt=function(e){var t=e.rows,r=e.stickyHeight,o={top:r,width:e.stickyWidth,height:"calc(100% - ".concat(r,"px)")};return(0,n.jsx)(i.Z,{style:[Ct.stickyGridStickyColumnsContainer,o],children:t.map((function(e,t){var r=e.label,o=e.hovered,a=e.isHoliday,l=e.selected,c=vt(e,["label","hovered","isHoliday","selected"]);return(0,n.jsxs)(i.Z,{style:[Ct.stickyGridStickyColumnsRow,c,{backgroundColor:o?d.Z.color.uiBlueLight:d.Z.color.uiLightStain}],children:[r.map((function(e,t){return(0,n.jsx)(f.Z,mt({},a&amp;&amp;{ink:"destructive-interactive"},l&amp;&amp;{ink:"primary-interactive"},{variant:"ui-tiny",children:e}),t)})),l&amp;&amp;(0,n.jsx)(i.Z,{style:Ct.columnIndicator})]},t)}))})},wt=(0,o.createContext)(void 0);wt.displayName="StickyGridContext";var jt=(0,o.forwardRef)((function(e,t){var r=e.children,a=e.recenterLabel,l=e.recenterShown,c=vt(e,["children","recenterLabel","recenterShown"]);return(0,n.jsx)(wt.Consumer,{children:function(e){if(!e)throw new Error("StickyGridContext is undefined");var u=e.stickyHeight,s=e.stickyWidth,d=e.headerBuilder,f=e.columnsBuilder,h=e.columnWidth,y=e.rowHeight,g=e.hoveredCell,p=e.selectedCell,m=e.onRecenter,v=bt(function(e){return o.Children.toArray(e).reduce((function(e,t){var r=bt(e,4),n=r[0],o=r[1],i=r[2],a=r[3],l=t.props,c=l.columnIndex,u=l.rowIndex;return u&lt;n&amp;&amp;(n=u),u&gt;o&amp;&amp;(o=u),c&lt;i&amp;&amp;(i=c),c&gt;a&amp;&amp;(a=c),[n,o,i,a]}),[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY])}(r),4),b=v[0],x=v[1],Z=v[2],w=v[3],j=d(Z,Math.min(w,x),h,u,g,p),S=f(b,x,y,s,g,p),C=mt({},c.style,{width:"".concat(parseFloat(c.style.width)+s,"px"),height:"".concat(parseFloat(c.style.height)+u,"px")}),k=mt({},c,{style:mt({},C,Ct.stickyGridContainer)}),I={top:u,left:0};return(0,n.jsxs)(i.Z,mt({ref:t},k,{children:[(0,n.jsx)(xt,{recenterShown:l,headerColumns:j,stickyHeight:u,stickyWidth:s,onRecenter:m,recenterLabel:a}),(0,n.jsx)(Zt,{rows:S,stickyHeight:u,stickyWidth:s}),(0,n.jsx)(i.Z,{style:[Ct.stickyGridDataContainer,I],children:r})]}))}})})),St=(0,o.forwardRef)((function(e,t){var r=e.stickyHeight,i=e.stickyWidth,a=e.columnWidth,l=e.rowHeight,c=e.children,u=e.outerRef,s=e.hoveredCell,d=e.selectedCell,f=e.onRecenter,h=e.onItemsRendered,y=e.recenterLabel,g=e.recenterShown,p=e.holidays,m=vt(e,["stickyHeight","stickyWidth","columnWidth","rowHeight","children","outerRef","hoveredCell","selectedCell","onRecenter","onItemsRendered","recenterLabel","recenterShown","holidays"]),v=(0,o.useCallback)((function(e,t,r,n,o,i){return function(e,t,r,n,o,i,a){for(var l=[],c=e;c&lt;=t;c++){var u,s,d=(0,Ke.Z)(new Date,{days:c}),f=!1;o&amp;&amp;(f=bt(o.split("-").map(Number),1)[0]===c);var h=!1;if(i){var y=bt(i.split("-").map(Number),1)[0];h=y===c,f||(f=!o&amp;&amp;y===c)}var g=6===d.getDay()||0===d.getDay(),p=(0,st.x5)(d),m=p.year,v=p.month,b=p.day;l.push({height:n,width:r,left:c*r,label:[(0,ct.Z)(d,{pattern:"EEE"}),(0,ct.Z)(d,{pattern:"d MMM"})],hovered:f,selected:h,isHoliday:(null===(u=a[m])||void 0===u||null===(s=u[v])||void 0===s?void 0:s[b])||g})}return l}(e,t,r,n,o,i,p)}),[p]),b=(0,o.useCallback)((function(e,t,r,n,o,i){return function(e,t,r,n,o,i,a){for(var l=[],c=e;c&lt;=t;c++){var u,s,d=(0,Ke.Z)(new Date,{days:c}),f=!1;if(o){var h=bt(o.split("-").map(Number),2);h[0],f=h[1]===c}var y=!1;if(i){var g=bt(i.split("-").map(Number),2),p=(g[0],g[1]);y=p===c,f||(f=!o&amp;&amp;p===c)}var m=6===d.getDay()||0===d.getDay(),v=(0,st.x5)(d),b=v.year,x=v.month,Z=v.day;l.push({height:r,width:n,top:c*r,label:[(0,ct.Z)(d,{pattern:"EEE"}),(0,ct.Z)(d,{pattern:"d MMM"})],hovered:f,selected:y,isHoliday:(null===(u=a[b])||void 0===u||null===(s=u[x])||void 0===s?void 0:s[Z])||m})}return l}(e,t,r,n,o,i,p)}),[p]);return(0,n.jsx)(wt.Provider,{value:{stickyHeight:r,stickyWidth:i,columnWidth:a,rowHeight:l,headerBuilder:v,columnsBuilder:b,hoveredCell:s,selectedCell:d,onRecenter:f},children:(0,n.jsx)(yt,mt({ref:t,outerRef:u,columnWidth:a,rowHeight:l,innerElementType:function(e){return(0,n.jsx)(jt,mt({},e,{recenterShown:g,ref:e.ref,recenterLabel:y}))},onItemsRendered:h},m,{children:c}))})})),Ct=a.Z.create({stickyGridContainer:{display:"flex",flexDirection:"row",alignItems:"center",paddingLeft:10,borderRightWidth:d.Z.border.width.thin,borderRightColor:d.Z.color.borderDivide,borderBottomWidth:d.Z.border.width.thin,borderBottomColor:d.Z.color.borderDivide},gridHeader:{position:"sticky",top:0,left:0,display:"flex",flexDirection:"row",zIndex:3,boxShadow:"0px 4px 4px 0px #00000014"},gridHeaderBase:{zIndex:4,backgroundColor:d.Z.color.uiLightStain,position:"sticky",right:0,width:"max-content",marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"center",paddingHorizontal:d.Z.spacing.xs,paddingVertical:d.Z.spacing.xxs,borderWidth:d.Z.border.width.thin,borderColor:d.Z.color.borderSubtle},gridHeaderScrollable:{position:"relative"},gridHeaderScrollableColumn:{position:"absolute",backgroundColor:d.Z.color.uiLightStain,display:"flex",alignItems:"center",justifyContent:"center",paddingHorizontal:d.Z.spacing.xs,paddingVertical:d.Z.spacing.xxs,borderWidth:d.Z.border.width.thin,borderColor:d.Z.color.borderSubtle,userSelect:"none"},stickyGridStickyColumnsContainer:{position:"sticky",right:0,zIndex:2,backgroundColor:d.Z.color.uiLightStain,width:"max-content",marginLeft:"auto",boxShadow:"-4px 0px 8px 0px #00000014"},stickyGridStickyColumnsRow:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",paddingHorizontal:d.Z.spacing.xs,paddingVertical:d.Z.spacing.xxs,borderWidth:d.Z.border.width.thin,borderColor:d.Z.color.borderSubtle,userSelect:"none"},stickyGridDataContainer:{position:"absolute"},headerIndicator:{backgroundColor:d.Z.color.uiBluePrimary,position:"absolute",bottom:0,transformOrigin:"left top",width:56,height:2,borderRadius:2},columnIndicator:{backgroundColor:d.Z.color.uiBluePrimary,position:"absolute",left:0,transformOrigin:"left top",width:2,height:32,borderRadius:2}}),kt=St;function It(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function Dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pt(e){for(var t=1;t&lt;arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&amp;&amp;(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Dt(e,t,r[t])}))}return e}function Ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return It(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return It(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Tt=80;var Mt=a.Z.create({controlContainer:{width:640,flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:d.Z.spacing.s},controlRow:{flexDirection:"row",alignItems:"center",gap:d.Z.spacing.s},rotatedControlRow:{position:"absolute",right:-42,top:75,transform:[{rotate:"90deg"}]}}),Rt=function(e){var t=e.priceTableDepartureLabel,r=e.priceTableArrivalLabel,a=e.priceTableDisclaimer,l=e.selectedCell,u=e.recenterLabel,s=e.onItemsRendered,h=tt(new Date,12),y=(0,o.useState)(!(null===l||void 0===l?void 0:l.length)),g=y[0],p=y[1],m=(0,o.useState)(null),v=m[0],b=m[1],x=(0,o.useRef)(null),Z=(0,o.useRef)(null),w=new Date,j=(0,Ke.Z)(w,{years:1}),S=(0,c.Z)(j,w),C=(0,o.useState)(S),I=C[0],D=C[1],P=(0,o.useCallback)((function(){if(x.current&amp;&amp;l){var e=Ot(l.split("-").map(Number),2),t=e[0],r=48*e[1]-144,n=t*Tt-240;x.current.scrollTo({scrollTop:r,scrollLeft:n,behavior:"smooth"})}}),[l]);(0,o.useEffect)((function(){P()}),[]);var O=(0,o.useState)(),T=O[0],M=O[1],R=(0,o.useRef)(),A=(0,o.useState)(!1),L=A[0],F=A[1],E=(0,o.useState)(!1),H=E[0],B=E[1],W=(0,o.useState)({x:0,y:0}),N=W[0],z=W[1],V=(0,o.useState)({left:0,top:0}),Y=V[0],G=V[1],U=(0,o.useState)(),_=U[0],$=U[1],X=function(e){F(!1),B(!1),G({left:Z.current.scrollLeft,top:Z.current.scrollTop}),R.current&amp;&amp;s(R.current)},q=Math.max((null===T||void 0===T?void 0:T.visibleRowStopIndex)||7,7)-1,Q=!T||0===T.visibleColumnStartIndex,K=!T||T.visibleColumnStopIndex&gt;=q,J=!(null===T||void 0===T?void 0:T.visibleRowStartIndex),ee=!T||T.visibleRowStopIndex&gt;=S-1;return(0,n.jsxs)(i.Z,{children:[(0,n.jsxs)(i.Z,{style:Mt.controlContainer,children:[(0,n.jsxs)(i.Z,{style:Mt.controlRow,children:[(0,n.jsx)(f.Z,{variant:"ui-small",children:t}),(0,n.jsx)(k.Z,{disabled:Q,onPress:function(){if(x.current){var e=x.current.state.scrollLeft-Tt;x.current.scrollTo({scrollLeft:e,behavior:"smooth"})}},children:(0,n.jsx)(qe.Z,{width:16,height:16,color:Q?d.Z.color.uiLightSecondary:d.Z.color.uiBluePrimary})}),(0,n.jsx)(k.Z,{disabled:K,onPress:function(){if(x.current){var e=x.current.state.scrollLeft+Tt;x.current.scrollTo({scrollLeft:e,behavior:"smooth"})}},children:(0,n.jsx)(Qe.Z,{width:16,height:16,color:K?d.Z.color.uiLightSecondary:d.Z.color.uiBluePrimary})})]}),(0,n.jsx)(f.Z,{variant:"ui-tiny",ink:"secondary",children:a})]}),(0,n.jsx)("div",{style:{cursor:H?"grabbing":"grab"},onMouseDown:function(e){if(x.current){var t,r=document.elementFromPoint(e.clientX,e.clientY),n=null===r||void 0===r?void 0:r.getAttribute("id");if(!n)n=null===(t=null===r||void 0===r?void 0:r.getElementsByClassName("cell-displayed-text")[0])||void 0===t?void 0:t.getAttribute("id");if(!n)return e.preventDefault(),void e.stopPropagation();F(!0),z({x:e.clientX,y:e.clientY}),G({left:Z.current.scrollLeft,top:Z.current.scrollTop}),$(!1)}},onMouseMove:function(e){var t;if(L&amp;&amp;x.current){var r,n,o=e.clientX-N.x,i=e.clientY-N.y;!_&amp;&amp;(Math.abs(o)&gt;5||Math.abs(i)&gt;5)&amp;&amp;$(!0),H||B(!0),x.current.scrollTo(Pt({scrollTop:(null!==(r=Y.top)&amp;&amp;void 0!==r?r:0)-i},(null===(t=x.current.props)||void 0===t?void 0:t.columnCount)&gt;7&amp;&amp;{scrollLeft:(null!==(n=Y.left)&amp;&amp;void 0!==n?n:0)-o}))}},onMouseUp:function(t){if(!L)return t.preventDefault(),void t.stopPropagation();"boolean"!==typeof _||_||function(t){if(t){var r,n,o=t.getAttribute("id");o||(o=null===(r=t.getElementsByClassName("cell-displayed-text"))||void 0===r||null===(n=r[0])||void 0===n?void 0:n.getAttribute("id")),o&amp;&amp;(o.includes("disabled")||e.onSelectedCell(o))}}(document.elementFromPoint(t.clientX,t.clientY)),X()},onMouseLeave:X,children:(0,n.jsx)(kt,{ref:x,width:640,height:336,outerRef:Z,columnCount:S,rowCount:S,rowHeight:48,columnWidth:Tt,stickyHeight:48,stickyWidth:80,hoveredCell:v,selectedCell:l,onRecenter:P,recenterShown:g,recenterLabel:u,onItemsRendered:function(t){I!==t.visibleRowStopIndex+1&amp;&amp;D(Math.max(t.visibleRowStopIndex,7)),function(t){var r,n=t.visibleColumnStartIndex,o=t.visibleColumnStopIndex,i=t.visibleRowStartIndex,a=t.visibleRowStopIndex;if(null===(r=e.selectedCell)||void 0===r?void 0:r.length){var l,c=Ot(null===(l=e.selectedCell)||void 0===l?void 0:l.split("-").map(Number),2),u=c[0],d=c[1];p(!(u&gt;=n&amp;&amp;u&lt;o&amp;&amp;d&gt;=i&amp;&amp;d&lt;a))}R.current&amp;&amp;L||s(t),R.current=t,M(t)}(t)},holidays:h,children:function(t){return(0,n.jsx)(lt,Pt({},t,e,{hoveredCell:v,isGrabbing:H,setHoveredCell:b}))}})}),(0,n.jsxs)(i.Z,{style:[Mt.controlRow,Mt.rotatedControlRow],children:[(0,n.jsx)(f.Z,{variant:"ui-small",children:r}),(0,n.jsx)(k.Z,{disabled:J||K,onPress:function(){if(x.current){var e=x.current.state.scrollTop-48,t=x.current.state.scrollLeft-Tt;x.current.scrollTo(Pt({},K&amp;&amp;{scrollLeft:t},{scrollTop:e,behavior:"smooth"}))}},children:(0,n.jsx)(qe.Z,{width:16,height:16,color:J||K?d.Z.color.uiLightSecondary:d.Z.color.uiBluePrimary})}),(0,n.jsx)(k.Z,{disabled:ee,onPress:function(){if(x.current){var e=x.current.state.scrollTop+48;x.current.scrollTo({scrollTop:e,behavior:"smooth"})}},children:(0,n.jsx)(Qe.Z,{width:16,height:16,color:ee?d.Z.color.uiLightSecondary:d.Z.color.uiBluePrimary})})]})]})},At=r(65983),Lt=r(38222),Ft=r(3309),Et=r(20864),Ht=r(85656),Bt=r(52400),Wt=r(42530),Nt=r(99721),zt=r(47381),Vt=r(32538),Yt=r(42240),Gt=r(19514),Ut=r(17645),_t=r(44780),$t=function(){var e,t=(0,Ut.Jd)(_t.iP),r=null===t||void 0===t||null===(e=t.properties)||void 0===e?void 0:e["fetcher-debounce-millis"],n=r?Number(r):1500;return(0,Gt.Z)(n)},Xt=r(2317),qt=r(4647),Qt={ja:!0,ko:!0},Kt=function(e){var t=e.dateDepart,r=e.dateReturn,n=e.lang,o=(0,qt.Z)(t,"dd"),i=(0,ct.Z)(t,{pattern:"d MMM"}),a=(0,ct.Z)(t,{pattern:"MMMM"}),l=(0,qt.Z)(t,"yyyy"),c=(0,ct.Z)(r,{pattern:"d MMM"}),u=(0,ct.Z)(r,{pattern:"MMMM"}),s=(0,qt.Z)(r,"yyyy");return l!==s?"".concat(i," ").concat(l," - ").concat(c," ").concat(s):a!==u||Qt[n]?"".concat(i," - ").concat(c):"".concat(o," - ").concat(c)};function Jt(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tr(e){for(var t=1;t&lt;arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&amp;&amp;(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){er(e,t,r[t])}))}return e}function rr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Jt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nr(e){var t=e.children,r=(0,At.Z)();return(0,n.jsx)(s.d8,{value:r,children:t})}var or=330,ir=a.Z.create({outerCalendarContainer:{position:"relative"},calendarContainer:{width:704,position:"absolute",overflow:"visible",borderRadius:d.Z.border.radius.normal},upperContainer:{paddingVertical:d.Z.spacing.xs,paddingHorizontal:d.Z.spacing.s},priceTableContainer:{paddingVertical:d.Z.spacing.s,paddingHorizontal:d.Z.spacing.m},priceTableFooter:{paddingVertical:d.Z.spacing.s,paddingHorizontal:d.Z.spacing.m,flexDirection:"row",justifyContent:"space-between",boxShadow:"0px -2px 5px 0px #03121A26"},priceTableSummary:{gap:2}}),ar=function(e){var t=e.type,r=e.languageTag,a=e.selectedCalendar,g=e.roundTrip,p=e.selectedDate,m=e.anchorDate,v=e.onChangeDate,b=e.onVisibleDateChange,x=e.onChangeRangeDate,Z=e.defaultSelectedKey,w=void 0===Z?null:Z,j=e.highlight,S=e.dateConfig,C=e.Legend,k=(0,Ht.U8)(),I=(0,Bt.hw)(Xt.Z),D=(0,o.useState)("PRICE_CALENDAR"),P=D[0],T=D[1],M=(0,Wt.bU)().language,R=(0,o.useState)(w),A=R[0],L=R[1],F=(0,Yt.tP)(),E=(0,o.useRef)(null),H=(0,o.useRef)(!0);(0,o.useEffect)((function(){w&amp;&amp;L(w)}),[w]);var B=(0,o.useMemo)((function(){return"departure"===a?S:(0,Lt.$i)(S,null!==m&amp;&amp;void 0!==m?m:new Date)}),[m,S,a]),W={width:or,languageTag:r,hideHolidayBadges:!0},N=$t(),z=(0,o.useMemo)((function(){return[{id:"PRICE_CALENDAR",text:I.FlightDateFlow.tabCalendarTitle,createIcon:function(e){return(0,n.jsx)(Ft.Z,{width:16,height:16,accentColor:e?d.Z.color.uiBluePrimary:d.Z.color.uiDarkSecondary,color:e?d.Z.color.uiBluePrimary:d.Z.color.uiDarkSecondary})}},{id:"PRICE_TABLE",text:I.FlightDateFlow.tabPriceTableTitle,createIcon:function(e){return(0,n.jsx)(Et.Z,{width:16,height:16,accentColor:e?d.Z.color.uiBluePrimary:d.Z.color.uiDarkSecondary,color:e?d.Z.color.uiBluePrimary:d.Z.color.uiDarkSecondary})}}]}),[I]);return(0,n.jsx)(i.Z,{style:ir.outerCalendarContainer,children:(0,n.jsxs)(y.Z,{style:[ir.calendarContainer,"departure"===t?{left:0}:{right:0}],elevation:"container",children:[g&amp;&amp;(0,n.jsx)(i.Z,{children:(0,n.jsx)($e,{activeIndex:z.findIndex((function(e){return e.id===P})),coachmarkOptions:{priceTableCoachmarkMessage:I.FlightDateFlow.priceTableCoachmarkMessage,priceTableCoachmarkCta:I.FlightDateFlow.priceTableCoachmarkCta},onChange:function(e){return T(e.id)},items:z})}),"PRICE_TABLE"===P&amp;&amp;(0,n.jsxs)(i.Z,{children:[(0,n.jsx)(i.Z,{style:ir.priceTableContainer,children:(0,n.jsx)(Rt,{recenterLabel:I.FlightDateFlow.priceTableRecenter,priceSuffix:I.FlightDateFlow.priceTablePriceCell,priceTableDepartureLabel:I.FlightDateFlow.priceTableDepartureLabel,priceTableArrivalLabel:I.FlightDateFlow.priceTableArrivalLabel,priceTableDisclaimer:(0,zt.I)(I.FlightDateFlow.priceTableDisclaimer,{currency:k.fullName}),priceUnknownLabel:I.FlightDateFlow.priceUnknownLabel,priceTableMap:F.priceTableMap,selectedCell:A,onSelectedCell:L,onItemsRendered:function(e){var t={visibleColumnStartIndex:e.visibleColumnStartIndex,visibleColumnStopIndex:e.visibleColumnStopIndex,visibleRowStartIndex:e.visibleRowStartIndex,visibleRowStopIndex:e.visibleRowStopIndex};if(JSON.stringify(E.current)!==JSON.stringify(t)){if(E.current=t,H.current)return F.onFetch(t),void(H.current=!1);N((function(){F.onFetch(t)}))}}})}),function(){if(A){var e,t,r,o,a,u=rr(A.split("-").map(Number),2),s=u[0],y=u[1],g=F.priceTableMap[(0,Vt.R0)(s,y)],p=rr((0,Vt.AD)(s,y),2),m=p[0],v=p[1],b=Kt({dateDepart:m,dateReturn:v,lang:M}),Z=(0,l.Z)(v,1),w=(0,c.Z)(Z,m),j=(null===g||void 0===g||null===(e=g.cheapestFare)||void 0===e?void 0:e.amount)&amp;&amp;Number(null===g||void 0===g||null===(t=g.cheapestFare)||void 0===t?void 0:t.amount),S=(0,Nt.Z)(Number(null===g||void 0===g||null===(r=g.cheapestFare)||void 0===r?void 0:r.amount),String(null===g||void 0===g||null===(o=g.cheapestFare)||void 0===o?void 0:o.currency));return(0,n.jsxs)(i.Z,{style:ir.priceTableFooter,children:[(0,n.jsxs)(i.Z,{style:ir.priceTableSummary,children:[(0,n.jsxs)(f.Z,{variant:"ui-small",children:[b," (",(0,zt.I)(I.FlightDateFlow.priceTableSummaryDaysTrip,{days:String(Math.max(w,1))}),")"]},b),(0,n.jsxs)(f.Z,{variant:"ui-tiny",ink:"secondary",children:[Boolean(Number(null===g||void 0===g||null===(a=g.cheapestFare)||void 0===a?void 0:a.amount))&amp;&amp;I.FlightDateFlow.priceTableSummaryFrom," ",j?S:I.FlightDateFlow.priceUnknownLabel]})]},S),(0,n.jsx)(h.Z,{text:I.FlightDateFlow.priceTableCTA,containerStyle:{paddingHorizontal:d.Z.spacing.xxxl},onPress:function(){return null===x||void 0===x?void 0:x(m,v)}})]})}return(0,n.jsxs)(i.Z,{style:ir.priceTableFooter,children:[(0,n.jsxs)(i.Z,{style:ir.priceTableSummary,children:[(0,n.jsx)(f.Z,{variant:"ui-small",children:I.FlightDateFlow.priceTableSummaryNotSelected}),(0,n.jsxs)(f.Z,{variant:"ui-tiny",ink:"secondary",children:[I.FlightDateFlow.priceTableSummaryFrom," ","-"]})]}),(0,n.jsx)(h.Z,{containerStyle:{paddingHorizontal:d.Z.spacing.xxxl},disabled:!0,text:I.FlightDateFlow.priceTableCTA})]})}()]}),"PRICE_CALENDAR"===P&amp;&amp;(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Z,{style:ir.upperContainer,children:(0,n.jsx)(s.ko,{value:B,children:(0,n.jsx)(O,{value:j,children:(0,n.jsx)(nr,{children:(0,n.jsx)(s.Pq,{value:m,children:(0,n.jsx)(Ze,tr({firstDayOfTheWeek:"sun",numberOfRenderedMonth:2,onChange:function(e){m&amp;&amp;"return"===a&amp;&amp;(0,u.Z)(e,m)?null===x||void 0===x||x(e):v(e,a)},selectedDate:p,minDate:new Date,maxDate:(0,st.di)(),onVisibleDateChange:b},W))})})})})}),C]})]})})}},55972:function(e,t,r){r.d(t,{Z:function(){return C}});var n=r(74512),o=r(32735),i=r(46230),a=r(2231),l=r(87904),c=r(6907),u=r(47556),s=r(67091),d=r(5006),f=r(35053),h=r(41914),y=r(92429),g=r(9484);function p(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var r=0,n=new Array(t);r&lt;t;r++)n[r]=e[r];return n}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){for(var t=1;t&lt;arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&amp;&amp;(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){m(e,t,r[t])}))}return e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&amp;&amp;e.constructor&amp;&amp;(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x=s.Z.spacing.m,Z=s.Z.spacing.m,w=s.Z.spacing.m,j=function(e){return e},S=function(e){var t=e.children,r=e.position,c=e.stickXOffsetPercentage,p=void 0===c?.5:c,m=e.title,S=e.message,C=e.actionLabel,I=e.actionIcon,D=e.afterCloseBodyOverflow,P=e.onActionPress,O=e.portalTarget,T=e.coachmarkWrapperStyle,M=void 0===T?{}:T,R=e.wideScreen,A=e.childContainerTestID,L=e.customActionButton,F=null!==L&amp;&amp;void 0!==L?L:j,E=b((0,g.Z)(),2),H=E[0],B=H.height,W=H.width,N=E[1],z=b((0,g.Z)(),2),V=z[0],Y=V.height,G=V.width,U=V.hasFinishedLayout,_=z[1],$=function(){var e=(0,o.useRef)(new i.Z.Value(.7)).current,t=(0,o.useRef)(new i.Z.Value(.7)).current,r=(0,o.useRef)(new i.Z.Value(1)).current,n=(0,o.useRef)(new i.Z.Value(1)).current;return(0,o.useEffect)((function(){var o=function(e,t,r){var n=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:0;return i.Z.loop(i.Z.sequence([i.Z.timing(e,{toValue:t,duration:r}),i.Z.delay(n)]))};o(e,0,1500,400).start(),o(r,2.9,1500,400).start(),setTimeout((function(){o(t,0,1500,400).start(),o(n,2.9,1500,400).start()}),400)}),[e,t,r,n]),{fadeAnim:e,fadeAnim2:t,scaleAnim:r,scaleAnim2:n}}(),X=$.fadeAnim,q=$.fadeAnim2,Q=$.scaleAnim,K=$.scaleAnim2,J=(0,o.useRef)(null),ee=(0,a.Z)(),te=ee.width,re=ee.height,ne=(0,o.useState)(),oe=ne[0],ie=ne[1],ae=(0,o.useState)(null),le=ae[0],ce=ae[1];(0,o.useEffect)((function(){var e;return U&amp;&amp;te&amp;&amp;re&amp;&amp;(e=setTimeout((function(){var e;null===(e=J.current)||void 0===e||e.measure((function(e,t,r,n,o,i){ie({pageX:o,pageY:i})}))}),200)),function(){e&amp;&amp;clearTimeout(e)}}),[U,te,re]);var ue=(0,o.useMemo)((function(){if(oe&amp;&amp;R){var e=te-W,t=oe.pageX+G*p,r=Math.max(Math.min(t-W/2,e),0);return[r,t-r]}return[0,te*p]}),[G,W,R,oe,p,te]),se=ue[0],de=ue[1];(0,o.useLayoutEffect)((function(){if(oe){var e=(0,u.createPortal)((0,n.jsxs)(l.Z,{style:k.hole,children:[(0,n.jsx)(l.Z,{style:[k.hole,fe()]}),(0,n.jsxs)(l.Z,{style:[k.coachMarkWrapper,R&amp;&amp;{width:void 0,left:se},"bottom"===r?{top:re-fe().borderBottomWidth+4}:{top:fe().borderTopWidth-B-x-4},M],children:["bottom"===r&amp;&amp;ye,(0,n.jsx)(l.Z,v({},N,{style:[k.coachMark,{width:te-2*w,maxWidth:360}],children:(0,n.jsxs)(h.Z,{padding:{horizontal:"s",vertical:"xs"},children:[m&amp;&amp;(0,n.jsx)(d.Z,{variant:"ui-tiny",ink:"secondary",children:m}),(0,n.jsx)(d.Z,{variant:"ui-small",ink:"primary",children:S}),F((0,n.jsx)(f.Z,v({variant:"text",text:C,style:k.button,onPress:P},I&amp;&amp;{iconStart:(0,n.jsx)(I,{})})))]})})),"top"===r&amp;&amp;ye]})]}),O||document.getElementById("__next")||document.body);ce(e)}}),[oe,O,B]),(0,o.useEffect)((function(){var e=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=D||(e||"unset")}}),[]);var fe=function(){return{borderTopWidth:((null===oe||void 0===oe?void 0:oe.pageY)||0)-Z,borderLeftWidth:((null===oe||void 0===oe?void 0:oe.pageX)||0)-Z,borderRightWidth:te-((null===oe||void 0===oe?void 0:oe.pageX)||0)-G-Z,borderBottomWidth:re-((null===oe||void 0===oe?void 0:oe.pageY)||0)-Y-Z}},he=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Z.View,{style:[k.coachMarkDot,{opacity:X,transform:[{scale:Q}],backgroundColor:s.Z.color.uiBluePrimary},"bottom"===r?k.bottomIndicatorPosition:k.topIndicatorPosition]}),(0,n.jsx)(i.Z.View,{style:[k.coachMarkDot,{opacity:q,transform:[{scale:K}],backgroundColor:s.Z.color.uiBluePrimary},"bottom"===r?k.bottomIndicatorPosition:k.topIndicatorPosition]}),(0,n.jsx)(l.Z,{style:[k.coachMarkDot,"bottom"===r?k.bottomIndicatorPosition:k.topIndicatorPosition]})]}),ye=(0,n.jsx)(y.Z,{children:(0,n.jsxs)(l.Z,{style:{left:de},children:["bottom"===r&amp;&amp;he,(0,n.jsx)(l.Z,{style:k.coachMarkStick}),"top"===r&amp;&amp;he]})});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z,v({testID:A,ref:J},_,{children:t})),le]})};function C(e){var t=e.children;return e.isVisible?(0,n.jsx)(S,v({},e)):(0,n.jsx)(n.Fragment,{children:t})}var k=c.Z.create({hole:{position:"fixed",height:"100%",width:"100%",top:0,left:0,borderColor:s.Z.opacity.translucent(s.Z.color.uiDarkPrimary),boxSizing:"border-box",zIndex:9999},coachMarkWrapper:{position:"absolute",width:"100%",zIndex:9999},coachMark:{backgroundColor:s.Z.color.uiLightPrimary,borderRadius:s.Z.border.radius.normal,marginLeft:"auto",marginRight:"auto"},coachMarkStick:{backgroundColor:s.Z.color.uiLightPrimary,height:x,width:s.Z.border.width.bold},coachMarkDot:{position:"absolute",backgroundColor:s.Z.color.uiLightPrimary,borderRadius:s.Z.border.radius.rounded,height:8,width:8},button:{width:"fit-content",marginLeft:"auto"},bottomIndicatorPosition:{left:-3,top:-8},topIndicatorPosition:{left:-3,top:x}})}}]);</pre></body></html>