@webjet/react 3.14.0 → 3.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/components/accordion.js +1 -1
  2. package/components/anchor-link.js +1 -1
  3. package/components/autocomplete.js +1 -1
  4. package/components/banner.js +1 -1
  5. package/components/breadcrumb.js +1 -1
  6. package/components/button.js +1 -1
  7. package/components/card.js +1 -1
  8. package/components/carousel-content.js +1 -1
  9. package/components/carousel.js +1 -1
  10. package/components/checkbox-list.js +1 -1
  11. package/components/checkbox.js +1 -1
  12. package/components/checklist.js +1 -1
  13. package/components/checkmark.js +1 -1
  14. package/components/copy-button.js +1 -1
  15. package/components/countdown.js +1 -1
  16. package/components/currency-formatter.js +1 -1
  17. package/components/date-picker-input.js +1 -1
  18. package/components/date-picker.js +1 -1
  19. package/components/date-range-picker-input.js +1 -1
  20. package/components/date-range-picker.js +1 -1
  21. package/components/drawer.js +1 -1
  22. package/components/error-message-field.js +1 -1
  23. package/components/fare-card.js +1 -1
  24. package/components/feature-toggle.js +1 -1
  25. package/components/filter-dropdown.js +1 -1
  26. package/components/flight-card-footer.js +1 -1
  27. package/components/flight-card-header.js +1 -1
  28. package/components/flight-card-info.js +1 -1
  29. package/components/flight-summary.js +1 -1
  30. package/components/floating-panel.js +1 -1
  31. package/components/iframe-link.js +1 -1
  32. package/components/info-modal.js +1 -1
  33. package/components/journey-line.js +1 -1
  34. package/components/label.js +1 -1
  35. package/components/leg-segment.js +1 -1
  36. package/components/linear-loader.js +1 -1
  37. package/components/link.js +1 -1
  38. package/components/modal.js +1 -1
  39. package/components/notification.js +1 -1
  40. package/components/number-stepper.js +1 -1
  41. package/components/page-loader.js +1 -1
  42. package/components/pagination.js +1 -1
  43. package/components/panel-with-scroll-fade.js +1 -1
  44. package/components/payment-breakdown-panel.js +1 -1
  45. package/components/payment-breakdown.js +1 -1
  46. package/components/payment-card.js +1 -1
  47. package/components/payment-confirmation-panel.js +1 -1
  48. package/components/personal-info.js +1 -1
  49. package/components/pills.js +1 -1
  50. package/components/product-navigation.js +1 -0
  51. package/components/products-cross-sell-banner.js +1 -1
  52. package/components/products-cross-sell-image.js +1 -1
  53. package/components/products-cross-sell-list.js +1 -1
  54. package/components/products-cross-sell-panel.js +1 -1
  55. package/components/program-label.js +1 -1
  56. package/components/quality-rating-filter.js +1 -1
  57. package/components/quality-rating.js +1 -1
  58. package/components/radios.js +1 -1
  59. package/components/rating.js +1 -1
  60. package/components/select.js +1 -1
  61. package/components/selectable-card.js +1 -1
  62. package/components/settings.js +1 -1
  63. package/components/slider.js +1 -1
  64. package/components/spinner.js +1 -1
  65. package/components/tab.js +1 -1
  66. package/components/table.js +1 -1
  67. package/components/text-divider.js +1 -1
  68. package/components/textarea.js +1 -1
  69. package/components/textfield-button.js +1 -1
  70. package/components/textfield.js +1 -1
  71. package/components/toast-bar.js +1 -1
  72. package/components/tooltip-modal.js +1 -1
  73. package/components/tooltip.js +1 -1
  74. package/components/two-direction-sticky-panel.js +1 -1
  75. package/components/typography.js +1 -1
  76. package/components/user-review-details.js +1 -1
  77. package/components/user-review-filter.js +1 -1
  78. package/components/user-review-panel.js +1 -1
  79. package/components/user-review.js +1 -1
  80. package/components/utility-panel.js +1 -1
  81. package/package.json +1 -1
  82. package/utils/common.js +1 -1
  83. package/utils/featureToggle.js +1 -1
  84. package/utils/hooks.js +1 -1
  85. package/utils/scrollbar.js +1 -1
  86. package/utils/storage.js +1 -1
  87. package/components/navigation-products-menu.js +0 -1
@@ -1 +1 @@
1
- (()=>{"use strict";var e={9473:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(9825)),r=function(e){var t=e.condition,o=void 0!==t&&t,n=e.children;return!0===o?n:null};r.propTypes={condition:i.default.bool},t.default=r},3080:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(9473));t.default=i.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return r.default}});var i=n(o(1267)),r=n(o(492)),a=n(o(9098)),l=n(o(9090)),d=n(o(5050)),s=n(o(509))},9098:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(2770),r=n(o(1267)),a=(0,i.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],r.default.fontFamily.primary,r.default.fontSize,r.default.fontColor);t.default={globalStyles:a}},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA","#C81209"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},2608:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(6031)),r=n(o(2462)),a=n(o(2015)),l=(n(o(9825)),n(o(3080))),d=o(8175),s=o(3465),c=["value","maxRatingValue","variant","quality","reviews","onClick"],u=function(e){var t=e.value,o=void 0===t?0:t,n=e.maxRatingValue,u=void 0===n?5:n,p=e.variant,f=void 0===p?"compact":p,m=e.quality,g=e.reviews,v=e.onClick,y=(0,r.default)(e,c),h=Math.min(parseFloat(o)||0,u).toFixed(1),w=Boolean(v),x=(0,s.formatNumber)(g,0),b="".concat(w&&"details"===f?"View ":"").concat(x," reviews");return a.default.createElement(d.StyledUserReviewSummary,(0,i.default)({},y,{onClick:v,clickable:w,variant:f,"data-testid":"user-review-container"}),a.default.createElement(l.default,{condition:"details"===f},a.default.createElement(d.StyledUserReviewDetails,null,a.default.createElement(d.StyledUserRatingValue,{role:"review-value","data-testid":"user-review-value"},h),a.default.createElement(d.StyledQualityLabel,{role:"review-quality-label","data-testid":"user-review-quality"},m),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total",clickable:w},b))),a.default.createElement(l.default,{condition:"compact"===f},a.default.createElement(d.StyledUserReviewCompact,null,a.default.createElement(d.StyledUserRatingQuality,{role:"review-value-quality-label","data-testid":"user-review-rating-quality"},"".concat(h," ").concat(m)),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total",clickable:w},b))),a.default.createElement(l.default,{condition:"small"===f},a.default.createElement(d.StyledUserRatingValue,{role:"review-value","data-testid":"user-review-value",variant:f},h),a.default.createElement(d.StyledQualityAndReviewTotal,null,a.default.createElement(d.StyledQualityLabel,{role:"review-quality-label","data-testid":"user-review-quality",variant:f},m),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total",variant:f,clickable:w},b))))};u.component={name:"UserReview"},t.default=u},8175:(e,t,o)=>{var n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewTotal=t.StyledUserReviewSummary=t.StyledUserReviewDetails=t.StyledUserReviewCompact=t.StyledUserRatingValue=t.StyledUserRatingQuality=t.StyledQualityLabel=t.StyledQualityAndReviewTotal=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=a(t);if(o&&o.has(e))return o.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var d=r?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(i,l,d):i[l]=e[l]}return i.default=e,o&&o.set(e,i),i}(o(2770)),r=o(3290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}t.StyledUserReviewSummary=i.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewSummary",componentId:"sc-1fjzoio-0"})([""," display:",";cursor:",";text-align:initial;align-items:center;gap:8px;"],r.mixins.globalStyles,(function(e){return"small"===e.variant?"inline-flex":"inline-block"}),(function(e){return e.clickable?"pointer":"initial"})),t.StyledUserReviewDetails=i.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewDetails",componentId:"sc-1fjzoio-1"})(["display:flex;flex-flow:column;background-color:",";border-radius:",";padding:12px 20px;min-width:187px;@media ","{padding:12px;}"],r.theme.color[3],r.theme.borderRadius,r.theme.media.mobile),t.StyledUserRatingValue=i.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingValue",componentId:"sc-1fjzoio-2"})(["color:",";font-size:24px;font-weight:700;line-height:28px;margin-bottom:8px;@media ","{font-size:20px;line-height:20px;margin-bottom:10px;}",""],r.theme.color[10],r.theme.media.mobile,(function(e){return"small"===e.variant&&(0,i.css)(["background:",";font-size:12px;font-weight:500;line-height:18px;margin-bottom:0;border-radius:12px;padding:6px 8px;max-height:30px;@media ","{font-size:12px;line-height:18px;margin-bottom:0;}"],r.theme.color[3],r.theme.media.mobile)})),t.StyledQualityLabel=i.default.span.withConfig({displayName:"UserReviewstyle__StyledQualityLabel",componentId:"sc-1fjzoio-3"})(["color:",";font-size:16px;font-weight:500;line-height:22px;@media ","{font-size:14px;line-height:20px;}",""],r.theme.color[10],r.theme.media.mobile,(function(e){return"small"===e.variant&&(0,i.css)(["font-size:10px;line-height:14px;@media ","{font-size:10px;line-height:14px;}"],r.theme.media.mobile)})),t.StyledUserReviewTotal=i.default.span.withConfig({displayName:"UserReviewstyle__StyledUserReviewTotal",componentId:"sc-1fjzoio-4"})(["color:",";font-size:12px;line-height:18px;white-space:nowrap;color:",";text-decoration:",";",""],r.theme.color[14],r.theme.color[6],(function(e){return e.clickable?"underline":"initial"}),(function(e){return"small"===e.variant&&(0,i.css)(["font-size:10px;line-height:14px;"])})),t.StyledUserReviewCompact=i.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewCompact",componentId:"sc-1fjzoio-5"})([""]),t.StyledUserRatingQuality=i.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingQuality",componentId:"sc-1fjzoio-6"})(["height:34px;padding:8px 16px;background:",";border-radius:12px;display:inline-flex;align-items:center;font-size:12px;font-weight:500;line-height:18px;color:",";margin-right:12px;"],r.theme.color[3],r.theme.color[10]),t.StyledQualityAndReviewTotal=i.default.span.withConfig({displayName:"UserReviewstyle__StyledQualityAndReviewTotal",componentId:"sc-1fjzoio-7"})(["display:flex;flex-direction:column;"])},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var n=o(4513),i=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},t.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},t.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii"),i=JSON.parse(o),r=i.firstName,a=i.dev;if(r)return!(window.location.hostname.includes("dev.webjet")&&!a)}return!1},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,i=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=e.offsetHeight})),document.addEventListener("scroll",(function(){i=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var r=parseInt(e.style.top.replace("px;",""));0===window.scrollY||i<=n?e.style.top="0px":window.scrollY<o?r<0?e.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(e.style.top="0px"):r>t?e.style.top=r+o-window.scrollY+"px":r<t&&r!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,i=t-o;return i>=n-1&&i<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},t.setCookieStorage=function(e,t,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}var n={};(()=>{var e=n,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(o(2608));e.default=i.default})(),module.exports=n})();
1
+ (()=>{"use strict";var e={9473:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(9825)),i=function(e){var t=e.condition,o=void 0!==t&&t,n=e.children;return!0===o?n:null};i.propTypes={condition:r.default.bool},t.default=i},3080:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(9473));t.default=r.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=n(o(1267)),i=n(o(492)),a=n(o(9098)),l=n(o(9090)),d=n(o(5050)),s=n(o(509))},9098:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(2770),i=n(o(1267)),a=(0,r.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA","#C81209"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",tabletAndSmallDesktop:"only screen and (min-width: 768px) and (max-width: 1199px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},2608:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(6031)),i=n(o(2462)),a=n(o(2015)),l=(n(o(9825)),n(o(3080))),d=o(8175),s=o(3465),c=["value","maxRatingValue","variant","quality","reviews","onClick"],u=function(e){var t=e.value,o=void 0===t?0:t,n=e.maxRatingValue,u=void 0===n?5:n,p=e.variant,f=void 0===p?"compact":p,m=e.quality,g=e.reviews,v=e.onClick,y=(0,i.default)(e,c),h=Math.min(parseFloat(o)||0,u).toFixed(1),w=Boolean(v),x=(0,s.formatNumber)(g,0),b="".concat(w&&"details"===f?"View ":"").concat(x," reviews");return a.default.createElement(d.StyledUserReviewSummary,(0,r.default)({},y,{onClick:v,clickable:w,variant:f,"data-testid":"user-review-container"}),a.default.createElement(l.default,{condition:"details"===f},a.default.createElement(d.StyledUserReviewDetails,null,a.default.createElement(d.StyledUserRatingValue,{role:"review-value","data-testid":"user-review-value"},h),a.default.createElement(d.StyledQualityLabel,{role:"review-quality-label","data-testid":"user-review-quality"},m),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total",clickable:w},b))),a.default.createElement(l.default,{condition:"compact"===f},a.default.createElement(d.StyledUserReviewCompact,null,a.default.createElement(d.StyledUserRatingQuality,{role:"review-value-quality-label","data-testid":"user-review-rating-quality"},"".concat(h," ").concat(m)),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total",clickable:w},b))),a.default.createElement(l.default,{condition:"small"===f},a.default.createElement(d.StyledUserRatingValue,{role:"review-value","data-testid":"user-review-value",variant:f},h),a.default.createElement(d.StyledQualityAndReviewTotal,null,a.default.createElement(d.StyledQualityLabel,{role:"review-quality-label","data-testid":"user-review-quality",variant:f},m),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total",variant:f,clickable:w},b))))};u.component={name:"UserReview"},t.default=u},8175:(e,t,o)=>{var n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewTotal=t.StyledUserReviewSummary=t.StyledUserReviewDetails=t.StyledUserReviewCompact=t.StyledUserRatingValue=t.StyledUserRatingQuality=t.StyledQualityLabel=t.StyledQualityAndReviewTotal=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=a(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var d=i?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(r,l,d):r[l]=e[l]}return r.default=e,o&&o.set(e,r),r}(o(2770)),i=o(3290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}t.StyledUserReviewSummary=r.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewSummary",componentId:"sc-1fjzoio-0"})([""," display:",";cursor:",";text-align:initial;align-items:center;gap:8px;"],i.mixins.globalStyles,(function(e){return"small"===e.variant?"inline-flex":"inline-block"}),(function(e){return e.clickable?"pointer":"initial"})),t.StyledUserReviewDetails=r.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewDetails",componentId:"sc-1fjzoio-1"})(["display:flex;flex-flow:column;background-color:",";border-radius:",";padding:12px 20px;min-width:187px;@media ","{padding:12px;}"],i.theme.color[3],i.theme.borderRadius,i.theme.media.mobile),t.StyledUserRatingValue=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingValue",componentId:"sc-1fjzoio-2"})(["color:",";font-size:24px;font-weight:700;line-height:28px;margin-bottom:8px;@media ","{font-size:20px;line-height:20px;margin-bottom:10px;}",""],i.theme.color[10],i.theme.media.mobile,(function(e){return"small"===e.variant&&(0,r.css)(["background:",";font-size:12px;font-weight:500;line-height:18px;margin-bottom:0;border-radius:12px;padding:6px 8px;max-height:30px;@media ","{font-size:12px;line-height:18px;margin-bottom:0;}"],i.theme.color[3],i.theme.media.mobile)})),t.StyledQualityLabel=r.default.span.withConfig({displayName:"UserReviewstyle__StyledQualityLabel",componentId:"sc-1fjzoio-3"})(["color:",";font-size:16px;font-weight:500;line-height:22px;@media ","{font-size:14px;line-height:20px;}",""],i.theme.color[10],i.theme.media.mobile,(function(e){return"small"===e.variant&&(0,r.css)(["font-size:10px;line-height:14px;@media ","{font-size:10px;line-height:14px;}"],i.theme.media.mobile)})),t.StyledUserReviewTotal=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserReviewTotal",componentId:"sc-1fjzoio-4"})(["color:",";font-size:12px;line-height:18px;white-space:nowrap;color:",";text-decoration:",";",""],i.theme.color[14],i.theme.color[6],(function(e){return e.clickable?"underline":"initial"}),(function(e){return"small"===e.variant&&(0,r.css)(["font-size:10px;line-height:14px;"])})),t.StyledUserReviewCompact=r.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewCompact",componentId:"sc-1fjzoio-5"})([""]),t.StyledUserRatingQuality=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingQuality",componentId:"sc-1fjzoio-6"})(["height:34px;padding:8px 16px;background:",";border-radius:12px;display:inline-flex;align-items:center;font-size:12px;font-weight:500;line-height:18px;color:",";margin-right:12px;"],i.theme.color[3],i.theme.color[10]),t.StyledQualityAndReviewTotal=r.default.span.withConfig({displayName:"UserReviewstyle__StyledQualityAndReviewTotal",componentId:"sc-1fjzoio-7"})(["display:flex;flex-direction:column;"])},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getRandomArrayItem=t.getMonthName=t.getLoggedInUserDetails=t.getFormattedDate=void 0;var n=o(4513),r=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(r.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.getLoggedInUserDetails=function(){var e=(0,n.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var o=0;o<e.length;o++){var r,i=null===(r=window.atob(e[o].split(".")[1]))||void 0===r?void 0:r.toString("ascii"),a=JSON.parse(i),l=a.firstName,d=a.email,s=a.dev;window.location.hostname.includes("dev.webjet")&&!s||(t={firstName:l,email:d})}return t}),l=(t.isUserLoggedIn=function(){return!!a().firstName},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||r<=n?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){l(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,r=t-o;return r>=n-1&&r<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())},t.getRandomArrayItem=function(e){return Array.isArray(e)&&e.length>0?e[Math.floor(Math.random()*e.length)]:null}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=t.getAllCookiesStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}},n=(t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){var t=n(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=[],r=0;r<o.length;r++){for(var i=o[r];" "===i.charAt(0);)i=i.substring(1,i.length);0===i.indexOf(t)&&n.push(i.substring(t.length,i.length))}return n});t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}var n={};(()=>{var e=n,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(o(2608));e.default=r.default})(),module.exports=n})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e={9473:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(9825)),i=function(e){var t=e.condition,r=void 0!==t&&t,o=e.children;return!0===r?o:null};i.propTypes={condition:n.default.bool},t.default=i},3080:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(9473));t.default=n.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=o(r(1267)),i=o(r(492)),a=o(r(9098)),d=o(r(9090)),l=o(r(5050)),c=o(r(509))},9098:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2770),i=o(r(1267)),a=(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA","#C81209"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},8254:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6031)),i=o(r(2462)),a=o(r(2015)),d=(o(r(9825)),o(r(3080))),l=r(6925),c=["data"];t.default=function(e){var t=e.data,r=(0,i.default)(e,c),o=null==t?void 0:t.map((function(e){var t=e.onClick,r=e.name,o=e.label,n=e.icon,i=e.countLabel;return a.default.createElement("a",{onClick:t,key:r,"data-testid":"".concat(r,"-btn")},a.default.createElement(d.default,{condition:!!n&&!i},a.default.createElement(n,{"data-testid":"link-icon"})),a.default.createElement(d.default,{condition:!!i},a.default.createElement("i",{"data-testid":"count-label"},i)),o)}));return a.default.createElement(l.StyledUtilityPanel,(0,n.default)({"data-testid":"utility-panel"},r),o)}},6925:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUtilityPanel=void 0;var n=o(r(2770)),i=r(3290);t.StyledUtilityPanel=n.default.div.withConfig({displayName:"UtilityPanelstyle__StyledUtilityPanel",componentId:"sc-dck735-0"})(["display:inline-flex;flex-direction:row;justify-content:center;align-items:center;padding:12px 0;height:48px;background-color:",";box-shadow:0px 5px 8px rgba(0,0,0,0.15);border-radius:24px;a{display:flex;align-items:center;gap:4px;color:",";font-size:14px;line-height:20px;text-align:center;padding:4px 16px;margin:0;border-right:1px solid rgba(255,255,255,0.4);-webkit-background-clip:padding-box;background-clip:padding-box;white-space:nowrap;font-weight:500;&:hover{text-decoration:none;}&:last-child{border-right:0;}svg{fill:",";font-size:16px;}i{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:100px;font-size:12px;line-height:20px;font-weight:700;font-style:normal;color:",";background-color:",";}}"],i.theme.color[8],i.theme.color[11],i.theme.color[11],i.theme.color[11],i.theme.color[13])},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}var o={};(()=>{var e=o,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(8254));e.default=n.default})(),module.exports=o})();
1
+ (()=>{"use strict";var e={9473:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(9825)),a=function(e){var t=e.condition,r=void 0!==t&&t,o=e.children;return!0===r?o:null};a.propTypes={condition:n.default.bool},t.default=a},3080:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(9473));t.default=n.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return a.default}});var n=o(r(1267)),a=o(r(492)),i=o(r(9098)),d=o(r(9090)),l=o(r(5050)),c=o(r(509))},9098:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2770),a=o(r(1267)),i=(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],a.default.fontFamily.primary,a.default.fontSize,a.default.fontColor);t.default={globalStyles:i}},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA","#C81209"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",tabletAndSmallDesktop:"only screen and (min-width: 768px) and (max-width: 1199px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},8254:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6031)),a=o(r(2462)),i=o(r(2015)),d=(o(r(9825)),o(r(3080))),l=r(6925),c=["data"];t.default=function(e){var t=e.data,r=(0,a.default)(e,c),o=null==t?void 0:t.map((function(e){var t=e.onClick,r=e.name,o=e.label,n=e.icon,a=e.countLabel;return i.default.createElement("a",{onClick:t,key:r,"data-testid":"".concat(r,"-btn")},i.default.createElement(d.default,{condition:!!n&&!a},i.default.createElement(n,{"data-testid":"link-icon"})),i.default.createElement(d.default,{condition:!!a},i.default.createElement("i",{"data-testid":"count-label"},a)),o)}));return i.default.createElement(l.StyledUtilityPanel,(0,n.default)({"data-testid":"utility-panel"},r),o)}},6925:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUtilityPanel=void 0;var n=o(r(2770)),a=r(3290);t.StyledUtilityPanel=n.default.div.withConfig({displayName:"UtilityPanelstyle__StyledUtilityPanel",componentId:"sc-dck735-0"})(["display:inline-flex;flex-direction:row;justify-content:center;align-items:center;padding:12px 0;height:48px;background-color:",";box-shadow:0px 5px 8px rgba(0,0,0,0.15);border-radius:24px;a{display:flex;align-items:center;gap:4px;color:",";font-size:14px;line-height:20px;text-align:center;padding:4px 16px;margin:0;border-right:1px solid rgba(255,255,255,0.4);-webkit-background-clip:padding-box;background-clip:padding-box;white-space:nowrap;font-weight:500;&:hover{text-decoration:none;}&:last-child{border-right:0;}svg{fill:",";font-size:16px;}i{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:100px;font-size:12px;line-height:20px;font-weight:700;font-style:normal;color:",";background-color:",";}}"],a.theme.color[8],a.theme.color[11],a.theme.color[11],a.theme.color[11],a.theme.color[13])},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}var o={};(()=>{var e=o,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(8254));e.default=n.default})(),module.exports=o})();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webjet/react",
3
3
  "side-effects": false,
4
- "version": "3.14.0",
4
+ "version": "3.14.2",
5
5
  "description": "Common react components",
6
6
  "main": "components/index.js",
7
7
  "scripts": {
package/utils/common.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(t,e){return e-t},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var e=o(4513),i=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=t.isMatchMedia=function(t){return window.matchMedia(t).matches},s=(t.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},t.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},t.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},t.isUserLoggedIn=function(){var t,o=null===(t=(0,e.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(o&&o.length>1){var n=window.atob(o[1]).toString("ascii"),i=JSON.parse(n),r=i.firstName,s=i.dev;if(r)return!(window.location.hostname.includes("dev.webjet")&&!s)}return!1},t.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},t.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},t.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},t.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},t.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},t.isValidIconName=function(t){return!!t&&"string"==typeof t},t.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},t.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},t.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},t.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},t.getDateWithoutTime=function(t){return new Date(t.toDateString())}})(),module.exports=n})();
1
+ (()=>{"use strict";var t={4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=e.getAllCookiesStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}},n=(e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){var e=n(t);return e.length>0?e[0]:null},e.getAllCookiesStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(e)&&n.push(r.substring(e.length,r.length))}return n});e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(t,e){return e-t},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getRandomArrayItem=t.getMonthName=t.getLoggedInUserDetails=t.getFormattedDate=void 0;var e=o(4513),i=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=t.isMatchMedia=function(t){return window.matchMedia(t).matches},s=(t.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},t.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},t.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},t.getLoggedInUserDetails=function(){var t=(0,e.getAllCookiesStorage)("customer-soft-id"),o={};if((null==t?void 0:t.length)>0)for(var n=0;n<t.length;n++){var i,r=null===(i=window.atob(t[n].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),s=JSON.parse(r),a=s.firstName,c=s.email,l=s.dev;window.location.hostname.includes("dev.webjet")&&!l||(o={firstName:a,email:c})}return o}),a=(t.isUserLoggedIn=function(){return!!s().firstName},t.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(t){a(document.getElementById(t))},t.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},t.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},t.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},t.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},t.isValidIconName=function(t){return!!t&&"string"==typeof t},t.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},t.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},t.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},t.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},t.getDateWithoutTime=function(t){return new Date(t.toDateString())},t.getRandomArrayItem=function(t){return Array.isArray(t)&&t.length>0?t[Math.floor(Math.random()*t.length)]:null}})(),module.exports=n})();
@@ -1 +1 @@
1
- (()=>{"use strict";var t={3956:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.splitTest=e.getSplitTestGroup=e.SPLIT_TEST_GROUPS=void 0,e.SPLIT_TEST_GROUPS={CONTROL:"control",TEST_1:"test_1",TEST_2:"test_2"},e.splitTest=function(t,e){var r=(t||{}).splitTest,n=(void 0===r?{}:r)[e];return o(e,n)};var o=e.getSplitTestGroup=function(t,e){if(t&&e&&"function"==typeof window.split_test_group){var o=e.split(":").length;return window.split_test_group(t,2,o,e).test_group}return null}},4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(e))return n.substring(e.length,n.length)}return null},e.setCookieStorage=function(t,e,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,o),s.exports}var r={};(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.getTestGroupFromUrl=t.getTestGroupFromString=t.getTestGroupFromCookie=t.getFeatureToggle=void 0;var e=o(4513),n=o(3956),s="features",i=t.getTestGroupFromString=function(t,e){var o,r=null==t||null===(o=t.split(","))||void 0===o?void 0:o.find((function(t){return t.split("|")[0]===e}));return r?r.split("|").at(1)||n.SPLIT_TEST_GROUPS.TEST_1:null},u=t.getTestGroupFromCookie=function(t){var o=(0,e.getCookieStorage)("wj_feature_on");return o?i(o,t):null},a=t.getTestGroupFromUrl=function(t){var e,o,r=new URLSearchParams(null===(e=window)||void 0===e||null===(o=e.location)||void 0===o?void 0:o.search);if(r.has(s)){var n=r.get(s);return i(n,t)}return null};t.getFeatureToggle=function(t,e){var o=e?t:null==t?void 0:t.filter((function(t){return!(null!=t&&t.splitTest)}));return o&&Array.isArray(o)&&null!=o&&o.length?null==o?void 0:o.map((function(t){var e=t.name,o=t.isEnabled,r=t.splitTest,s=u(e)||a(e),i=(0,n.getSplitTestGroup)(e,r),l=o,S=o?n.SPLIT_TEST_GROUPS.TEST_1:n.SPLIT_TEST_GROUPS.CONTROL;return s?(l=s!==n.SPLIT_TEST_GROUPS.CONTROL,S=s):o&&i?(l=i!==n.SPLIT_TEST_GROUPS.CONTROL,S=i):o&&r&&!i&&(l=!1,S=n.SPLIT_TEST_GROUPS.CONTROL),{name:e,isEnabled:l,testGroup:S}})):null}})(),module.exports=r})();
1
+ (()=>{"use strict";var t={3956:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.splitTest=e.getSplitTestGroup=e.SPLIT_TEST_GROUPS=void 0,e.SPLIT_TEST_GROUPS={CONTROL:"control",TEST_1:"test_1",TEST_2:"test_2"},e.splitTest=function(t,e){var r=(t||{}).splitTest,n=(void 0===r?{}:r)[e];return o(e,n)};var o=e.getSplitTestGroup=function(t,e){if(t&&e&&"function"==typeof window.split_test_group){var o=e.split(":").length;return window.split_test_group(t,2,o,e).test_group}return null}},4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=e.getAllCookiesStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}},r=(e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){var e=r(t);return e.length>0?e[0]:null},e.getAllCookiesStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),r=[],n=0;n<o.length;n++){for(var s=o[n];" "===s.charAt(0);)s=s.substring(1,s.length);0===s.indexOf(e)&&r.push(s.substring(e.length,s.length))}return r});e.setCookieStorage=function(t,e,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,o),s.exports}var r={};(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.getTestGroupFromUrl=t.getTestGroupFromString=t.getTestGroupFromCookie=t.getFeatureToggle=void 0;var e=o(4513),n=o(3956),s="features",i=t.getTestGroupFromString=function(t,e){var o,r=null==t||null===(o=t.split(","))||void 0===o?void 0:o.find((function(t){return t.split("|")[0]===e}));return r?r.split("|").at(1)||n.SPLIT_TEST_GROUPS.TEST_1:null},u=t.getTestGroupFromCookie=function(t){var o=(0,e.getCookieStorage)("wj_feature_on");return o?i(o,t):null},a=t.getTestGroupFromUrl=function(t){var e,o,r=new URLSearchParams(null===(e=window)||void 0===e||null===(o=e.location)||void 0===o?void 0:o.search);if(r.has(s)){var n=r.get(s);return i(n,t)}return null};t.getFeatureToggle=function(t,e){var o=e?t:null==t?void 0:t.filter((function(t){return!(null!=t&&t.splitTest)}));return o&&Array.isArray(o)&&null!=o&&o.length?null==o?void 0:o.map((function(t){var e=t.name,o=t.isEnabled,r=t.splitTest,s=u(e)||a(e),i=(0,n.getSplitTestGroup)(e,r),l=o,g=o?n.SPLIT_TEST_GROUPS.TEST_1:n.SPLIT_TEST_GROUPS.CONTROL;return s?(l=s!==n.SPLIT_TEST_GROUPS.CONTROL,g=s):o&&i?(l=i!==n.SPLIT_TEST_GROUPS.CONTROL,g=i):o&&r&&!i&&(l=!1,g=n.SPLIT_TEST_GROUPS.CONTROL),{name:e,isEnabled:l,testGroup:g}})):null}})(),module.exports=r})();
package/utils/hooks.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={3465:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=e.detectOS=e.BREAKPOINTS=void 0,e.fetchDateInMilliseconds=function(){return(new Date).getTime()},e.getDateWithoutTime=e.getBoundingClientInfo=e.formatNumber=void 0,e.getDurationInMiliSeconds=function(t,e){return e-t},e.withScroll=e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.scrollTo=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobileTablet=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.hasScrollReachedBottom=e.getMonthName=e.getFormattedDate=void 0;var n=o(4513),i=e.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=e.isMatchMedia=function(t){return window.matchMedia(t).matches},c=(e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.isUserLoggedIn=function(){var t,e=null===(t=(0,n.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(e&&e.length>1){var o=window.atob(e[1]).toString("ascii"),i=JSON.parse(o),r=i.firstName,c=i.dev;if(r)return!(window.location.hostname.includes("dev.webjet")&&!c)}return!1},e.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});e.setTwoDirectionStickyPanelById=function(t){c(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},e.getDateWithoutTime=function(t){return new Date(t.toDateString())}},1554:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unlockScroll=e.lockScroll=void 0;var n=o(3465),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};e.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,n.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},e.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,n.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}},4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}},2015:t=>{t.exports=require("react")}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.useDisableBodyScroll=t.useCombinedRefs=void 0;var e=o(2015),i=o(1554);t.useDisableBodyScroll=function(t){(0,e.useEffect)((function(){if(t)return(0,i.lockScroll)(),function(){(0,i.unlockScroll)()}}),[t])},t.useCombinedRefs=function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];var i=(0,e.useRef)();return(0,e.useEffect)((function(){o.forEach((function(t){t&&("function"==typeof t?t(i.current):t.current=i.current)}))}),[o]),i}})(),module.exports=n})();
1
+ (()=>{"use strict";var t={3465:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=e.detectOS=e.BREAKPOINTS=void 0,e.fetchDateInMilliseconds=function(){return(new Date).getTime()},e.getDateWithoutTime=e.getBoundingClientInfo=e.formatNumber=void 0,e.getDurationInMiliSeconds=function(t,e){return e-t},e.withScroll=e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.scrollTo=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobileTablet=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.hasScrollReachedBottom=e.getRandomArrayItem=e.getMonthName=e.getLoggedInUserDetails=e.getFormattedDate=void 0;var n=o(4513),i=e.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=e.isMatchMedia=function(t){return window.matchMedia(t).matches},s=(e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.getLoggedInUserDetails=function(){var t=(0,n.getAllCookiesStorage)("customer-soft-id"),e={};if((null==t?void 0:t.length)>0)for(var o=0;o<t.length;o++){var i,r=null===(i=window.atob(t[o].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),s=JSON.parse(r),c=s.firstName,l=s.email,a=s.dev;window.location.hostname.includes("dev.webjet")&&!a||(e={firstName:c,email:l})}return e}),c=(e.isUserLoggedIn=function(){return!!s().firstName},e.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});e.setTwoDirectionStickyPanelById=function(t){c(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},e.getDateWithoutTime=function(t){return new Date(t.toDateString())},e.getRandomArrayItem=function(t){return Array.isArray(t)&&t.length>0?t[Math.floor(Math.random()*t.length)]:null}},1554:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unlockScroll=e.lockScroll=void 0;var n=o(3465),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};e.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,n.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},e.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,n.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}},4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=e.getAllCookiesStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}},n=(e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){var e=n(t);return e.length>0?e[0]:null},e.getAllCookiesStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(e)&&n.push(r.substring(e.length,r.length))}return n});e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}},2015:t=>{t.exports=require("react")}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.useDisableBodyScroll=t.useCombinedRefs=void 0;var e=o(2015),i=o(1554);t.useDisableBodyScroll=function(t){(0,e.useEffect)((function(){if(t)return(0,i.lockScroll)(),function(){(0,i.unlockScroll)()}}),[t])},t.useCombinedRefs=function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];var i=(0,e.useRef)();return(0,e.useEffect)((function(){o.forEach((function(t){t&&("function"==typeof t?t(i.current):t.current=i.current)}))}),[o]),i}})(),module.exports=n})();
@@ -1 +1 @@
1
- (()=>{"use strict";var t={3465:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=e.detectOS=e.BREAKPOINTS=void 0,e.fetchDateInMilliseconds=function(){return(new Date).getTime()},e.getDateWithoutTime=e.getBoundingClientInfo=e.formatNumber=void 0,e.getDurationInMiliSeconds=function(t,e){return e-t},e.withScroll=e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.scrollTo=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobileTablet=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.hasScrollReachedBottom=e.getMonthName=e.getFormattedDate=void 0;var n=o(4513),i=e.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=e.isMatchMedia=function(t){return window.matchMedia(t).matches},s=(e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.isUserLoggedIn=function(){var t,e=null===(t=(0,n.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(e&&e.length>1){var o=window.atob(e[1]).toString("ascii"),i=JSON.parse(o),r=i.firstName,s=i.dev;if(r)return!(window.location.hostname.includes("dev.webjet")&&!s)}return!1},e.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});e.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},e.getDateWithoutTime=function(t){return new Date(t.toDateString())}},4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var e=o(3465),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};t.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,e.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},t.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,e.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}})(),module.exports=n})();
1
+ (()=>{"use strict";var t={3465:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=e.detectOS=e.BREAKPOINTS=void 0,e.fetchDateInMilliseconds=function(){return(new Date).getTime()},e.getDateWithoutTime=e.getBoundingClientInfo=e.formatNumber=void 0,e.getDurationInMiliSeconds=function(t,e){return e-t},e.withScroll=e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.scrollTo=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobileTablet=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.hasScrollReachedBottom=e.getRandomArrayItem=e.getMonthName=e.getLoggedInUserDetails=e.getFormattedDate=void 0;var n=o(4513),i=e.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=e.isMatchMedia=function(t){return window.matchMedia(t).matches},s=(e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.getLoggedInUserDetails=function(){var t=(0,n.getAllCookiesStorage)("customer-soft-id"),e={};if((null==t?void 0:t.length)>0)for(var o=0;o<t.length;o++){var i,r=null===(i=window.atob(t[o].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),s=JSON.parse(r),l=s.firstName,c=s.email,a=s.dev;window.location.hostname.includes("dev.webjet")&&!a||(e={firstName:l,email:c})}return e}),l=(e.isUserLoggedIn=function(){return!!s().firstName},e.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});e.setTwoDirectionStickyPanelById=function(t){l(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},e.getDateWithoutTime=function(t){return new Date(t.toDateString())},e.getRandomArrayItem=function(t){return Array.isArray(t)&&t.length>0?t[Math.floor(Math.random()*t.length)]:null}},4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=e.getAllCookiesStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}},n=(e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){var e=n(t);return e.length>0?e[0]:null},e.getAllCookiesStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(e)&&n.push(r.substring(e.length,r.length))}return n});e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var e=o(3465),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};t.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,e.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},t.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,e.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}})(),module.exports=n})();
package/utils/storage.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}})(),module.exports=e})();
1
+ (()=>{"use strict";var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=t.getAllCookiesStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}},n=(t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){var t=n(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=[],r=0;r<o.length;r++){for(var s=o[r];" "===s.charAt(0);)s=s.substring(1,s.length);0===s.indexOf(t)&&n.push(s.substring(t.length,s.length))}return n});t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}})(),module.exports=e})();
@@ -1 +0,0 @@
1
- (()=>{"use strict";var e={9473:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(9825)),i=function(e){var t=e.condition,r=void 0!==t&&t,n=e.children;return!0===r?n:null};i.propTypes={condition:o.default.bool},t.default=i},3080:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(9473));t.default=o.default},3799:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),r(3465)),d=r(3191),u=r(7236),c=["children","href","icon","gaProps","onClick"];t.default=function(e){var t=e.children,r=e.href,n=e.icon,s=e.gaProps,f=e.onClick,p=(0,i.default)(e,c),y=s||{},g=y.gaEvent,m=y.gaData,v=(0,l.isValidIconElement)(n),b=v?n:null,w=r||"#";return a.default.createElement(d.StyledLink,(0,o.default)({href:w,onClick:function(e){g&&(0,u.pushGAEvent)(g,m),f&&f(e),"#"===w&&(e.stopPropagation(),e.preventDefault())},hasIcon:v},p),v&&a.default.createElement(b,{size:16}),t)}},3191:(e,t,r)=>{var n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLink=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var d=i?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(o,l,d):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}(r(2770)),i=r(3290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}t.StyledLink=o.default.a.withConfig({displayName:"Linkstyle__StyledLink",componentId:"sc-pjn937-0"})(["display:inline-flex;gap:4px;align-items:center;&:link,&:visited{color:",";}&:hover{color:",";}",""],i.identifiers.textLink.color,i.identifiers.textLink.hoverColor,(function(e){return e.hasIcon&&(0,o.css)(["font-size:12px;line-height:18px;&:link,&:visited{svg{fill:",";}}&:hover{svg{fill:",";}}"],i.identifiers.textLink.color,i.identifiers.textLink.hoverColor)}))},9675:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(3799));t.default=o.default},1550:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TabletDesktop=t.Tablet=t.SmallDesktop=t.MobileTablet=t.Mobile=t.LargeDesktop=t.Desktop=t.CustomQuery=void 0;var o=n(r(2015)),i=n(r(4750)),a=function(e){var t=e.query,r=e.wrappedComponent;return o.default.createElement(i.default,{query:t},(function(e){return e&&r}))};t.Mobile=function(e){var t=e.children;return o.default.createElement(a,{query:"(max-width: 767px)",wrappedComponent:t})},t.MobileTablet=function(e){var t=e.children;return o.default.createElement(a,{query:"(max-width: 991px)",wrappedComponent:t})},t.Tablet=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px) and (max-width: 991px)",wrappedComponent:t})},t.TabletDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px)",wrappedComponent:t})},t.Desktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 992px)",wrappedComponent:t})},t.SmallDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px) and (max-width: 1199px)",wrappedComponent:t})},t.LargeDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 1200px)",wrappedComponent:t})},t.CustomQuery=function(e){var t=e.query,r=e.children;return o.default.createElement(a,{query:t,wrappedComponent:r})},t.default=a},1204:(e,t,r)=>{var n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CustomQuery",{enumerable:!0,get:function(){return o.CustomQuery}}),Object.defineProperty(t,"Desktop",{enumerable:!0,get:function(){return o.Desktop}}),Object.defineProperty(t,"LargeDesktop",{enumerable:!0,get:function(){return o.LargeDesktop}}),Object.defineProperty(t,"Mobile",{enumerable:!0,get:function(){return o.Mobile}}),Object.defineProperty(t,"MobileTablet",{enumerable:!0,get:function(){return o.MobileTablet}}),Object.defineProperty(t,"SmallDesktop",{enumerable:!0,get:function(){return o.SmallDesktop}}),Object.defineProperty(t,"Tablet",{enumerable:!0,get:function(){return o.Tablet}}),Object.defineProperty(t,"TabletDesktop",{enumerable:!0,get:function(){return o.TabletDesktop}}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var d=a?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(o,l,d):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}(r(1550));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}t.default=o.default},6194:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(6031)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2015)),l=r(9441);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}var u=(0,a.forwardRef)((function(e,t){var r=e.items;return a.default.createElement(l.StyledDropdown,{ref:t},r.map((function(e,t){return a.default.createElement(l.StyledDropdownItem,{key:t},a.default.createElement(l.StyledDropdownItemLink,(0,i.default)({href:e.href},!!e.target&&{target:"blank"}),e.label))})))}));t.default=u},3192:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),r(420)),d=["href","label","target","variant","active"];t.default=function(e){var t=e.href,r=e.label,n=e.target,u=e.variant,c=void 0===u?l.NAV_VARIANTS.primary:u,s=e.active,f=(0,i.default)(e,d);return a.default.createElement("li",null,a.default.createElement(l.StyledLink,(0,o.default)({href:t},!!n&&{target:"blank"},{variant:c,active:s},f),r))}},5218:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(6031)),a=n(r(7826)),l=n(r(2462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2015)),u=n(r(7e3)),c=r(6749),s=r(9441),f=["primaryLinks","secondaryLinks","className"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}t.default=function(e){var t=e.primaryLinks,r=e.secondaryLinks,n=e.className,o=(0,l.default)(e,f),p=(0,d.useRef)(null),y=(0,d.useRef)(null),g=(0,c.useDropdownStatus)(p,y),m=(0,a.default)(g,2),v=m[0],b=m[1],w=n?"".concat(n,"-button"):"",h=function(e,t){return d.default.createElement(s.StyledDropdownItem,{key:t},d.default.createElement(s.StyledDropdownItemLink,(0,i.default)({href:e.href},!!e.target&&{target:"blank"}),e.label))};return d.default.createElement(d.default.Fragment,null,d.default.createElement(s.StyledProductsDropdownMenuButton,(0,i.default)({ref:y,onClick:function(){return b((function(e){return!e}))},className:w},o),d.default.createElement(u.default,null)),v&&d.default.createElement(s.StyledProductsDropdownMenu,{ref:p,className:n},t.map(h),d.default.createElement(s.StyledDropdownSeperator,null,"Deals"),r.map(h)))}},9441:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledProductsDropdownMenuButton=t.StyledProductsDropdownMenu=t.StyledDropdownSeperator=t.StyledDropdownItemLink=t.StyledDropdownItem=t.StyledDropdown=void 0;var o=n(r(2770)),i=r(3290),a=n(r(9675));t.StyledProductsDropdownMenuButton=o.default.button.withConfig({displayName:"NavigationProductsDropdownMenustyle__StyledProductsDropdownMenuButton",componentId:"sc-4glqwi-0"})(["display:block;width:24px;height:24px;padding:0;margin:0;border:none;background:none;&:focus{border:0;outline:none;}&:focus-visible{box-shadow:inset 0 0 0 4px rgba(135,135,135,0.75);}svg{font-size:24px;fill:",";}"],i.color.greys.white),t.StyledProductsDropdownMenu=o.default.div.withConfig({displayName:"NavigationProductsDropdownMenustyle__StyledProductsDropdownMenu",componentId:"sc-4glqwi-1"})(["position:absolute;left:0;width:100%;padding:8px;margin:0;border-radius:8px;list-style:none;background-color:",";color:",";z-index:100;background:",";"],i.color.greys.white,i.color.greys.grey900,i.color.greys.white),t.StyledDropdown=o.default.ul.withConfig({displayName:"NavigationProductsDropdownMenustyle__StyledDropdown",componentId:"sc-4glqwi-2"})(["position:absolute;top:100%;width:160px;padding:8px;margin:0;border-radius:8px;list-style:none;background-color:",";color:",";z-index:100;"],i.color.greys.white,i.color.greys.grey900),t.StyledDropdownItem=o.default.li.withConfig({displayName:"NavigationProductsDropdownMenustyle__StyledDropdownItem",componentId:"sc-4glqwi-3"})(["list-style:none;padding:0;margin:0;color:",";white-space:nowrap;&:hover{background-color:",";}"],i.color.greys.grey900,i.color.greys.grey50),t.StyledDropdownItemLink=(0,o.default)(a.default).withConfig({displayName:"NavigationProductsDropdownMenustyle__StyledDropdownItemLink",componentId:"sc-4glqwi-4"})(["&:link,&:visited{display:block;padding:16px;color:",";font-size:14px;line-height:20px;text-decoration:none;border-radius:4px;}&:focus{box-shadow:none;}&:focus-visible{box-shadow:inset 0 0 0 4px rgba(135,135,135,0.75);}"],i.color.greys.grey900),t.StyledDropdownSeperator=o.default.li.withConfig({displayName:"NavigationProductsDropdownMenustyle__StyledDropdownSeperator",componentId:"sc-4glqwi-5"})(["position:relative;display:flex;justify-content:space-between;align-items:flex-end;gap:12px;list-style:none;padding:12px 16px;margin:0;font-size:12px;line-height:18px;color:",";white-space:nowrap;&:after{flex:1;content:'';height:1px;margin-bottom:5px;background-color:",";}"],i.color.greys.grey500,i.color.greys.grey100)},9223:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),n(r(3192))),d=r(420),u=r(1204),c=n(r(3319)),s=n(r(5218)),f=n(r(3080)),p=["primaryLinks","secondaryLinks","layout"],y=["href","label","target","active"];t.default=function(e){var t=e.primaryLinks,r=e.secondaryLinks,n=e.layout,g=void 0===n?"default":n,m=(0,i.default)(e,p),v=function(e){return function(t,r){var n=t.href,d=t.label,u=t.target,c=t.active,s=(0,i.default)(t,y);return a.default.createElement(l.default,(0,o.default)({key:r,label:d,href:n,target:u,active:c,variant:e},s))}},b=a.default.createElement(d.StyledList,null,null==t?void 0:t.map(v())),w=a.default.createElement(d.StyledList,null,r.map(v(d.NAV_VARIANTS.secondary)));return a.default.createElement(a.default.Fragment,null,a.default.createElement(f.default,{condition:"default"===g},a.default.createElement(d.StyledNavContainer,m,a.default.createElement(d.StyledNav,null,a.default.createElement(u.LargeDesktop,null,b,w),a.default.createElement(u.SmallDesktop,null,a.default.createElement(c.default,{items:t}),w),a.default.createElement(u.Mobile,null,b)))),a.default.createElement(f.default,{condition:"dropdown"===g},a.default.createElement(s.default,(0,o.default)({primaryLinks:t,secondaryLinks:r},m))))}},420:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledNavContainer=t.StyledNav=t.StyledMoreListItem=t.StyledMoreButton=t.StyledList=t.StyledLink=t.NAV_VARIANTS=void 0;var i,a=n(r(1116)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2770)),d=r(3290),u=n(r(9675));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var s=t.NAV_VARIANTS={primary:"primary",secondary:"secondary"},f=(i={},(0,a.default)(i,s.primary,{fontWeight:500}),(0,a.default)(i,s.secondary,{fontWeight:400}),i),p=(t.StyledNavContainer=l.default.div.withConfig({displayName:"NavigationProductsMenustyle__StyledNavContainer",componentId:"sc-13cueel-0"})(["width:100%;@media ","{overflow:hidden;}"],d.themeV2.media.mobile),t.StyledNav=l.default.nav.withConfig({displayName:"NavigationProductsMenustyle__StyledNav",componentId:"sc-13cueel-1"})(["width:100%;display:flex;justify-content:space-between;background-color:",";@media ","{overflow:scroll visible;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}}"],d.themeV2.color[33],d.themeV2.media.mobile),t.StyledList=l.default.ul.withConfig({displayName:"NavigationProductsMenustyle__StyledList",componentId:"sc-13cueel-2"})(["list-style:none;display:flex;align-items:flex-start;margin:0;padding:0;color:",";@media ","{gap:min(calc((100vw - 16px - 295px) / 4),16px);}"],d.color.greys.white,d.themeV2.media.mobile),(0,l.css)(["padding:16px;white-space:nowrap;color:",";font-weight:",";font-size:14px;line-height:20px;@media ","{padding:12px 8px 8px;}"," &:hover{text-decoration:none;box-shadow:inset 0 -4px 0 0 ",";}"],d.color.greys.white,(function(e){var t=e.variant;return f[t||s.primary].fontWeight}),d.themeV2.media.mobile,(function(e){return e.active&&(0,l.css)(["text-decoration:none;box-shadow:inset 0 -4px 0 0 ",";"],d.color.greys.white)}),d.color.greys.white));t.StyledLink=(0,l.default)(u.default).withConfig({displayName:"NavigationProductsMenustyle__StyledLink",componentId:"sc-13cueel-3"})(["&:link,&:visited{","}&:focus{box-shadow:none;}&:focus-visible{box-shadow:inset 0 0 0 4px rgba(135,135,135,0.75);}"],p),t.StyledMoreListItem=l.default.li.withConfig({displayName:"NavigationProductsMenustyle__StyledMoreListItem",componentId:"sc-13cueel-4"})(["position:relative;"]),t.StyledMoreButton=l.default.button.withConfig({displayName:"NavigationProductsMenustyle__StyledMoreButton",componentId:"sc-13cueel-5"})([""," display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;padding:16px;&:focus{border:0;outline:none;box-shadow:none;}&:focus-visible{box-shadow:inset 0 0 0 4px rgba(135,135,135,0.75);}svg{width:10px;margin-left:8px;fill:",";}"],p,d.color.greys.white)},3319:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(505)),a=n(r(7826)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2015)),d=n(r(1291)),u=n(r(4390)),c=r(420),s=n(r(3192)),f=n(r(6194)),p=r(6749);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}t.default=function(e){var t=e.items,r=(0,l.useRef)(null),n=(0,l.useRef)(null),o=(0,p.useDropdownStatus)(r,n),y=(0,a.default)(o,2),g=y[0],m=y[1],v=(0,i.default)(t.slice(0,4)),b=(0,i.default)(t.slice(4,t.length));return l.default.createElement(c.StyledList,null,v.map((function(e,t){var r=e.href,n=e.label,o=e.target,i=e.active;return l.default.createElement(s.default,{key:t,label:n,href:r,target:o,variant:undefined,active:i})})),b.length>0&&l.default.createElement(c.StyledMoreListItem,null,l.default.createElement(c.StyledMoreButton,{ref:n,type:"button","data-testid":"dropdown-toggle",onClick:function(){return m((function(e){return!e}))},"aria-label":"Toggle Menu"},"More",g&&l.default.createElement(u.default,null),!g&&l.default.createElement(d.default,null)),g&&l.default.createElement(f.default,{items:b,ref:r})))}},6749:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.useDropdownStatus=void 0;var o=n(r(7826)),i=r(2015);t.useDropdownStatus=function(e,t){var r=(0,i.useState)(!1),n=(0,o.default)(r,2),a=n[0],l=n[1];return(0,i.useEffect)((function(){var r=function(r){var n=null==e?void 0:e.current,o=null==t?void 0:t.current;!a||null==o||o.contains(r.target)||null==n||n.contains(r.target)||l(!1)},n=function(e){a&&"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),document.addEventListener("keydown",n),function(){document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r),document.removeEventListener("keydown",n)}}),[a]),[a,l]}},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(1267)),i=n(r(492)),a=n(r(9098)),l=n(r(9090)),d=n(r(5050)),u=n(r(509))},9098:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(2770),i=n(r(1267)),a=(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA","#C81209"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},3465:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var n=r(4513),o=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return i("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(o.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(o.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,r=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!r&&/(iPhone\sOS)\s([\d_]+)/.test(t)||r,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var r=window.atob(t[1]).toString("ascii"),o=JSON.parse(r),i=o.firstName,a=o.dev;if(i)return!(window.location.hostname.includes("dev.webjet")&&!a)}return!1},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,r=window.scrollY,n=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,o=e.offsetHeight})),document.addEventListener("scroll",(function(){o=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||o<=n?e.style.top="0px":window.scrollY<r?i<0?e.style.top=i+r-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+r-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),r=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,r=e.scrollTop,n=e.clientHeight,o=t-r;return o>=n-1&&o<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,r=e.clientHeight;return!(t>=r-1&&t<=r+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:r,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())}},7236:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var o=n(r(1116)),i=n(r(7826));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var r=(0,i.default)(e,2),n=r[0],o=r[1];null!=o&&(t["data-ga-".concat(n)]=String(o))})),t},t.pushGAEvent=function(e,t){var r=window.dataLayer;e&&r&&r.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({event:e},t)}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var r=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},t.setCookieStorage=function(e,t,r){var n=window.location.hostname,o="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(r||86400)}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},505:e=>{e.exports=require("@babel/runtime/helpers/toConsumableArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},1291:e=>{e.exports=require("@webjet/react-icons/arrow-down")},4390:e=>{e.exports=require("@webjet/react-icons/arrow-up")},7e3:e=>{e.exports=require("@webjet/react-icons/menu")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},4750:e=>{e.exports=require("react-media")},2770:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(9223));e.default=o.default})(),module.exports=n})();