@webjet/react 4.5.0 → 4.7.0

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 (109) 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/badge.js +1 -1
  5. package/components/banner.js +1 -1
  6. package/components/breadcrumb.js +1 -1
  7. package/components/button.js +1 -1
  8. package/components/card.js +1 -1
  9. package/components/carousel-cards.js +1 -1
  10. package/components/carousel-content.js +1 -1
  11. package/components/carousel.js +1 -1
  12. package/components/checkbox-list.js +1 -1
  13. package/components/checkbox.js +1 -1
  14. package/components/checklist.js +1 -1
  15. package/components/checkmark.js +1 -1
  16. package/components/copy-button.js +1 -1
  17. package/components/countdown.js +1 -1
  18. package/components/counter.js +1 -0
  19. package/components/currency-formatter.js +1 -1
  20. package/components/date-picker-input.js +1 -1
  21. package/components/date-picker.js +1 -1
  22. package/components/date-range-picker-input.js +1 -1
  23. package/components/date-range-picker.js +1 -1
  24. package/components/drawer.js +1 -1
  25. package/components/error-message-field.js +1 -1
  26. package/components/fare-card.js +1 -1
  27. package/components/feature-toggle.js +1 -1
  28. package/components/filter-dropdown.js +1 -1
  29. package/components/flight-card-footer.js +1 -1
  30. package/components/flight-card-header.js +1 -1
  31. package/components/flight-card-info.js +1 -1
  32. package/components/flight-card.js +1 -0
  33. package/components/flight-details.js +1 -0
  34. package/components/flight-summary.js +1 -1
  35. package/components/floating-panel.js +1 -1
  36. package/components/footer-navigation.js +1 -1
  37. package/components/helper-text.js +1 -1
  38. package/components/icon.js +1 -1
  39. package/components/if.js +1 -1
  40. package/components/iframe-link.js +1 -1
  41. package/components/image.js +1 -1
  42. package/components/info-modal.js +1 -1
  43. package/components/journey-line.js +1 -1
  44. package/components/label.js +1 -1
  45. package/components/leg-segment.js +1 -1
  46. package/components/linear-loader.js +1 -1
  47. package/components/link.js +1 -1
  48. package/components/media-query.js +1 -1
  49. package/components/menu-list.js +1 -1
  50. package/components/modal.js +1 -1
  51. package/components/notification.js +1 -1
  52. package/components/number-stepper.js +1 -1
  53. package/components/page-loader.js +1 -1
  54. package/components/pagination.js +1 -1
  55. package/components/panel-with-scroll-fade.js +1 -1
  56. package/components/payment-breakdown-panel.js +1 -1
  57. package/components/payment-breakdown.js +1 -1
  58. package/components/payment-card.js +1 -1
  59. package/components/payment-confirmation-panel.js +1 -1
  60. package/components/personal-info.js +1 -1
  61. package/components/pills.js +1 -1
  62. package/components/price-breakdown.js +1 -1
  63. package/components/product-card.js +1 -1
  64. package/components/product-navigation-drawer.js +1 -1
  65. package/components/product-navigation.js +1 -1
  66. package/components/products-cross-sell-banner.js +1 -1
  67. package/components/products-cross-sell-image.js +1 -1
  68. package/components/products-cross-sell-list.js +1 -1
  69. package/components/products-cross-sell-panel.js +1 -1
  70. package/components/program-label.js +1 -1
  71. package/components/quality-rating-filter.js +1 -1
  72. package/components/quality-rating.js +1 -1
  73. package/components/radio-group.js +1 -1
  74. package/components/radios.js +1 -1
  75. package/components/rating.js +1 -1
  76. package/components/react-container-query.js +1 -1
  77. package/components/render-count.js +1 -1
  78. package/components/scrollable-content.js +1 -1
  79. package/components/select.js +1 -1
  80. package/components/selectable-card.js +1 -1
  81. package/components/selectable-panel-group.js +1 -0
  82. package/components/settings.js +1 -1
  83. package/components/slider.js +1 -1
  84. package/components/spinner.js +1 -1
  85. package/components/split-test.js +1 -1
  86. package/components/tab.js +1 -1
  87. package/components/table.js +1 -1
  88. package/components/text-divider.js +1 -1
  89. package/components/textarea.js +1 -1
  90. package/components/textfield-button.js +1 -1
  91. package/components/textfield.js +1 -1
  92. package/components/toast-bar.js +1 -1
  93. package/components/toggle.js +1 -1
  94. package/components/tooltip-modal.js +1 -1
  95. package/components/tooltip.js +1 -1
  96. package/components/two-direction-sticky-panel.js +1 -1
  97. package/components/typography.js +1 -1
  98. package/components/user-review-details.js +1 -1
  99. package/components/user-review-filter.js +1 -1
  100. package/components/user-review-panel.js +1 -1
  101. package/components/user-review.js +1 -1
  102. package/components/utility-panel.js +1 -1
  103. package/components/with-click-outside.js +1 -1
  104. package/package.json +3 -3
  105. package/utils/common.js +1 -1
  106. package/utils/featureToggle.js +1 -1
  107. package/utils/ga.js +1 -1
  108. package/utils/hooks.js +1 -1
  109. package/utils/scrollbar.js +1 -1
@@ -1 +1 @@
1
- (()=>{"use strict";var e={89473:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(29825)),r=function(e){var t=e.condition,n=void 0!==t&&t,o=e.children;return!0===n?o:null};r.propTypes={condition:i.default.bool},t.default=r},23080:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(89473));t.default=i.default},60509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",offWhite:"#FFEADC",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"}}},34341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={elevation01:"0px 1px 2px 0px rgba(51, 51, 51, 0.08)",elevation02:"0px 2px 4px 0px rgba(51, 51, 51, 0.10)",elevation03:"0px 6px 8px 0px rgba(51, 51, 51, 0.10)",elevation04:"0px 10px 16px 0px rgba(51, 51, 51, 0.10)",elevation05:"0px 16px 32px 0px rgba(51, 51, 51, 0.16)"}},35050:(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"}},33290:(e,t,n)=>{var o=n(33751);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,"elevation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"tokens",{enumerable:!0,get:function(){return a.default}});var i=o(n(61267)),r=o(n(60492)),a=o(n(74362)),d=o(n(19098)),l=o(n(9090)),p=o(n(35050)),s=o(n(60509)),c=o(n(34341))},19098:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(32770),r=o(n(61267)),a=o(n(74362)),d=(0,i.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],r.default.fontSize,r.default.fontColor);t.default={globalStyles:d,typography:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=a.default.typography[e],r=o.lineHeight,d=o.lineHeightType,l=o.fontSize;return(0,i.css)(["line-height:",";font-size:",";font-weight:",";",""],a.default.font.desktop["line-height"][d][r],a.default.font.desktop.size[l],a.default.font.desktop.weight[t],n&&(0,i.css)(["@media ","{line-height:",";font-size:",";font-weight:",";}"],a.default.media.mobile,a.default.font.mobile["line-height"][d][r],a.default.font.mobile.size[l],a.default.font.mobile.weight[t]))}}},60492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#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","#BD1109","#E44C45"],o={fontFamily:{primary:"inherit",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,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:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},61267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#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:{icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,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:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},74362:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={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)"},font:{desktop:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"32px",500:"36px",600:"40px",700:"48px",800:"56px",900:"60px"},condensed:{100:"16px",200:"18px",300:"20px",400:"24px",500:"28px",600:"32px",700:"40px",800:"44px",900:"48px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}},mobile:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"28px",500:"32px",600:"36px",700:"40px",800:"48px",900:"56px"},condensed:{100:"16px",200:"18px",300:"20px",400:"22px",500:"24px",600:"28px",700:"32px",800:"40px",900:"44px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}}},colours:{surface:{button:{prominent:"#6D28D9",neutral:"#EBECF2",passive:"#E7E7E8"},neutral:{slate:{base:"#FFFFFF",subtlest:"#F1F2F6",subtle:"#EBECF2",strong:"#D8DAE5"},warm:{base:"#FFFFFF",subtlest:"#F7F8F7",subtle:"#F0F1F0",strong:"#EBECEB"}},feedback:{"positive-subtlest":"#F7FCFA","positive-subtle":"#EFFAF4","positive-strong":"#DAF2E4","positive-strongest":"#0B7337","neutral-subtlest":"#F1F2F6","neutral-subtle":"#EBECF2","neutral-strong":"#828699","neutral-strongest":"#696C80","critical-subtlest":"#FFF7F7","critical-subtle":"#FFEEEE","critical-strong":"#FFE5E5","critical-strongest":"#B22424","info-subtlest":"#F7FAFF","info-subtle":"#EDF4FF","info-strong":"#E0EBFF","info-strongest":"#003CB2","accent-subtlest":"#F7F6FF","accent-subtle":"#DDD6FE","accent-strong":"#C4B5FD","accent-strongest":"#4C1D95","warning-subtlest":"#FFE8CC","warning-subtle":"#FFD8A8","warning-strong":"#FFC078","warning-strongest":"#E8590C"},container:{base:"#FFFFFF"},interactive:{actions:{"primary-default":"#6D28D9","primary-hover":"#5B21B6","primary-active":"#4C1D95","secondary-default":"#D8DAE5","secondary-hover":"#BABDCC","secondary-active":"#9A9EB2"},overlay:{universal:{default:"#3A3D4D00",hover:"color-mix(in srgb, #3A3D4D 4%, transparent)",active:"color-mix(in srgb, #3A3D4D 8%, transparent)"},button:{default:"#3A3D4D00",hover:"color-mix(in srgb, #3A3D4D 24%, transparent)",active:"color-mix(in srgb, #3A3D4D 32%, transparent)"}},control:{track:{default:"color-mix(in srgb, #3A3D4D 4%, transparent)",hover:"color-mix(in srgb, #3A3D4D 8%, transparent)"}},focus:{default:"color-mix(in srgb, #3A3D4D 32%, transparent)"}}},border:{"critical-subtle":"#FFE5E5","critical-strong":"#B22424","critical-strongest":"#8C1515","positive-subtle":"#DAF2E4","positive-strong":"#0B7337","info-subtle":"#E0EBFF","info-strong":"#0044CC","default-subtle":"#E4E7EE","default-default":"#CBD4E0","default-strong":"#B1BCCA","input-default":"#BABDCC","input-active":"#515466","warning-subtle":"#FFC078","warning-strong":"#E8590C","accent-subtle":"#C4B5FD","accent-strong":"#4C1D95"},text:{"text-primary":"#0A0B0D","text-secondary":"#44506A","text-tertiary":"#6A758D","text-muted":"#9BA1AE","text-on-colour":"#FFFFFF","text-info":"#0044CC","text-positive":"#0B7337","text-critical":"#B22424","text-warning":"#F76707","text-link":"#004DE5","text-accented":"#4C1D95"},icon:{"icon-primary":"#12131A","icon-secondary":"#696C80","icon-tertiary":"#6A758D","icon-muted":"#BABDCC","icon-on-colour":"#FFFFFF","icon-info":"#0044CC","icon-positive":"#0B7337","icon-critical":"#B22424","icon-warning":"#F76707","icon-link":"#004DE5","icon-accented":"#4C1D95","icon-rating":"#FFA94D"}},dimensions:{radius:{none:0,xsmall:"2px",small:"4px",medium:"8px",large:"12px",xlarge:"16px",rounded:"9999px"},stroke:{regular:"1px",strong:"2px",bold:"4px"}},typography:{"heading-01":{fontSize:100,lineHeight:100,lineHeightType:"condensed"},"heading-02":{fontSize:200,lineHeight:200,lineHeightType:"condensed"},"heading-03":{fontSize:300,lineHeight:300,lineHeightType:"condensed"},"heading-04":{fontSize:400,lineHeight:400,lineHeightType:"condensed"},"heading-05":{fontSize:500,lineHeight:500,lineHeightType:"condensed"},"heading-06":{fontSize:600,lineHeight:600,lineHeightType:"condensed"},"heading-07":{fontSize:700,lineHeight:700,lineHeightType:"condensed"},"heading-08":{fontSize:800,lineHeight:800,lineHeightType:"condensed"},"heading-09":{fontSize:900,lineHeight:900,lineHeightType:"condensed"},"body-01":{fontSize:50,lineHeight:50,lineHeightType:"standard"},"body-02":{fontSize:100,lineHeight:100,lineHeightType:"standard"},"body-03":{fontSize:200,lineHeight:200,lineHeightType:"standard"},"body-04":{fontSize:300,lineHeight:300,lineHeightType:"standard"},"label-02":{fontSize:100,lineHeight:100,lineHeightType:"equal"},"label-03":{fontSize:200,lineHeight:200,lineHeightType:"equal"}}}},68254:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(46031)),r=o(n(52462)),a=o(n(82015)),d=(o(n(29825)),o(n(23080))),l=n(56925),p=["data"];t.default=function(e){var t=e.data,n=(0,r.default)(e,p),o=null==t?void 0:t.map((function(e){var t=e.onClick,n=e.name,o=e.label,i=e.icon,r=e.countLabel;return a.default.createElement("a",{onClick:t,key:n,"data-testid":"".concat(n,"-btn")},a.default.createElement(d.default,{condition:!!i&&!r},a.default.createElement(i,{"data-testid":"link-icon"})),a.default.createElement(d.default,{condition:!!r},a.default.createElement("i",{"data-testid":"count-label"},r)),o)}));return a.default.createElement(l.StyledUtilityPanel,(0,i.default)({"data-testid":"utility-panel"},n),o)}},56925:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUtilityPanel=void 0;var i=o(n(32770)),r=n(33290);t.StyledUtilityPanel=i.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:",";}}"],r.theme.color[8],r.theme.color[11],r.theme.color[11],r.theme.color[11],r.theme.color[13])},46031:e=>{e.exports=require("@babel/runtime/helpers/extends")},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},52462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},32770:e=>{e.exports=require("styled-components")}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}var o={};(()=>{var e=o,t=n(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(n(68254));e.default=i.default})(),module.exports=o})();
1
+ (()=>{"use strict";var e={2811:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_VARIANT=t.FONT_WEIGHT=void 0,t.TEXT_VARIANT={HEADING01:"heading-01",HEADING02:"heading-02",HEADING03:"heading-03",HEADING04:"heading-04",HEADING05:"heading-05",HEADING06:"heading-06",HEADING07:"heading-07",HEADING08:"heading-08",HEADING09:"heading-09",BODY01:"body-01",BODY02:"body-02",BODY03:"body-03",BODY04:"body-04",LABEL01:"label-01",LABEL02:"label-02",LABEL03:"label-03"},t.FONT_WEIGHT={LIGHT:"light",REGULAR:"regular",MEDIUM:"medium",SEMIBOLD:"semi-bold",BOLD:"bold",EXTRABOLD:"extra-bold"}},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"}}},19098:(e,t,r)=>{var n=r(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(32770),o=n(r(61267)),i=n(r(74362)),l=(0,a.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],o.default.fontSize,o.default.fontColor);t.default={globalStyles:l,typography:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=i.default.typography[e],o=n.lineHeight,l=n.lineHeightType,d=n.fontSize;return(0,a.css)(["line-height:",";font-size:",";font-weight:",";",""],i.default.font.desktop["line-height"][l][o],i.default.font.desktop.size[d],i.default.font.desktop.weight[t],r&&(0,a.css)(["@media ","{line-height:",";font-size:",";font-weight:",";}"],i.default.media.mobile,i.default.font.mobile["line-height"][l][o],i.default.font.mobile.size[d],i.default.font.mobile.weight[t]))},typographyMobile:function(e,t){var r=i.default.typography[e],n=r.lineHeight,o=r.lineHeightType,l=r.fontSize;return(0,a.css)(["line-height:",";font-size:",";font-weight:",";"],i.default.font.mobile["line-height"][o][n],i.default.font.mobile.size[l],i.default.font.mobile.weight[t])}}},23080:(e,t,r)=>{var n=r(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(89473));t.default=a.default},29825:e=>{e.exports=require("prop-types")},32770:e=>{e.exports=require("styled-components")},33290:(e,t,r)=>{var n=r(33751);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 d.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"tokens",{enumerable:!0,get:function(){return i.default}});var a=n(r(61267)),o=n(r(60492)),i=n(r(74362)),l=n(r(19098)),d=n(r(9090)),c=n(r(35050)),s=n(r(60509)),u=n(r(34341))},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},34341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={elevation01:"0px 1px 2px 0px rgba(51, 51, 51, 0.08)",elevation02:"0px 2px 4px 0px rgba(51, 51, 51, 0.10)",elevation03:"0px 6px 8px 0px rgba(51, 51, 51, 0.10)",elevation04:"0px 10px 16px 0px rgba(51, 51, 51, 0.10)",elevation05:"0px 16px 32px 0px rgba(51, 51, 51, 0.16)"}},35050:(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"}},46031:e=>{e.exports=require("@babel/runtime/helpers/extends")},52462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},56925:(e,t,r)=>{var n=r(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUtilityPanel=void 0;var a=n(r(32770)),o=r(33290);t.StyledUtilityPanel=a.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:",";}}"],o.theme.color[8],o.theme.color[11],o.theme.color[11],o.theme.color[11],o.theme.color[13])},60492:(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","#BD1109","#E44C45"],n={fontFamily:{primary:"inherit",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=n},60509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",offWhite:"#FFEADC",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},61116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},61267:(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:{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},68254:(e,t,r)=>{var n=r(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(46031)),o=n(r(52462)),i=n(r(82015)),l=(n(r(29825)),n(r(23080))),d=r(56925),c=["data"];t.default=function(e){var t=e.data,r=(0,o.default)(e,c),n=null==t?void 0:t.map(function(e){var t=e.onClick,r=e.name,n=e.label,a=e.icon,o=e.countLabel;return i.default.createElement("a",{onClick:t,key:r,"data-testid":"".concat(r,"-btn")},i.default.createElement(l.default,{condition:!!a&&!o},i.default.createElement(a,{"data-testid":"link-icon"})),i.default.createElement(l.default,{condition:!!o},i.default.createElement("i",{"data-testid":"count-label"},o)),n)});return i.default.createElement(d.StyledUtilityPanel,(0,a.default)({"data-testid":"utility-panel"},r),n)}},74362:(e,t,r)=>{var n=r(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,o,i,l=n(r(61116)),d=r(2811),c={desktop:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"32px",500:"36px",600:"40px",700:"48px",800:"56px",900:"60px"},condensed:{100:"16px",200:"18px",300:"20px",400:"24px",500:"28px",600:"32px",700:"40px",800:"44px",900:"48px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"}},weight:(a={},(0,l.default)(a,d.FONT_WEIGHT.LIGHT,300),(0,l.default)(a,d.FONT_WEIGHT.REGULAR,400),(0,l.default)(a,d.FONT_WEIGHT.MEDIUM,500),(0,l.default)(a,d.FONT_WEIGHT.SEMIBOLD,600),(0,l.default)(a,d.FONT_WEIGHT.BOLD,700),(0,l.default)(a,d.FONT_WEIGHT.EXTRABOLD,800),a)},mobile:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"28px",500:"32px",600:"36px",700:"40px",800:"48px",900:"56px"},condensed:{100:"16px",200:"18px",300:"20px",400:"22px",500:"24px",600:"28px",700:"32px",800:"40px",900:"44px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"}},weight:(o={},(0,l.default)(o,d.FONT_WEIGHT.LIGHT,300),(0,l.default)(o,d.FONT_WEIGHT.REGULAR,400),(0,l.default)(o,d.FONT_WEIGHT.MEDIUM,500),(0,l.default)(o,d.FONT_WEIGHT.SEMIBOLD,600),(0,l.default)(o,d.FONT_WEIGHT.BOLD,700),(0,l.default)(o,d.FONT_WEIGHT.EXTRABOLD,800),o)}},s=(i={},(0,l.default)(i,d.TEXT_VARIANT.HEADING01,{fontSize:100,lineHeight:100,lineHeightType:"condensed"}),(0,l.default)(i,d.TEXT_VARIANT.HEADING02,{fontSize:200,lineHeight:200,lineHeightType:"condensed"}),(0,l.default)(i,d.TEXT_VARIANT.HEADING03,{fontSize:300,lineHeight:300,lineHeightType:"condensed"}),(0,l.default)(i,d.TEXT_VARIANT.HEADING04,{fontSize:400,lineHeight:400,lineHeightType:"condensed"}),(0,l.default)(i,d.TEXT_VARIANT.HEADING05,{fontSize:500,lineHeight:500,lineHeightType:"condensed"}),(0,l.default)(i,d.TEXT_VARIANT.HEADING06,{fontSize:600,lineHeight:600,lineHeightType:"condensed"}),(0,l.default)(i,d.TEXT_VARIANT.HEADING07,{fontSize:700,lineHeight:700,lineHeightType:"condensed"}),(0,l.default)(i,d.TEXT_VARIANT.HEADING08,{fontSize:800,lineHeight:800,lineHeightType:"condensed"}),(0,l.default)(i,d.TEXT_VARIANT.HEADING09,{fontSize:900,lineHeight:900,lineHeightType:"condensed"}),(0,l.default)(i,d.TEXT_VARIANT.BODY01,{fontSize:50,lineHeight:50,lineHeightType:"standard"}),(0,l.default)(i,d.TEXT_VARIANT.BODY02,{fontSize:100,lineHeight:100,lineHeightType:"standard"}),(0,l.default)(i,d.TEXT_VARIANT.BODY03,{fontSize:200,lineHeight:200,lineHeightType:"standard"}),(0,l.default)(i,d.TEXT_VARIANT.BODY04,{fontSize:300,lineHeight:300,lineHeightType:"standard"}),(0,l.default)(i,d.TEXT_VARIANT.LABEL01,{fontSize:50,lineHeight:50,lineHeightType:"equal"}),(0,l.default)(i,d.TEXT_VARIANT.LABEL02,{fontSize:100,lineHeight:100,lineHeightType:"equal"}),(0,l.default)(i,d.TEXT_VARIANT.LABEL03,{fontSize:200,lineHeight:200,lineHeightType:"equal"}),i);t.default={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)"},font:c,colours:{surface:{button:{prominent:"var(--surface-button-prominent, #311EA8)",neutral:"var(--surface-button-neutral, #D8DAE5)"},neutral:{slate:{base:"var(--surface-neutral-slate-base, #FFFFFF)",subtlest:"var(--surface-neutral-slate-subtlest, #F7F8FA)",subtle:"var(--surface-neutral-slate-subtle, #F1F2F6)",moderate:"var(--surface-neutral-slate-moderate, #EBECF2)",strong:"var(--surface-neutral-slate-strong, #D8DAE5)"},warm:{base:"var(--surface-neutral-warm-base, #FFFFFF)",subtlest:"var(--surface-neutral-warm-subtlest, #F4F6F4)",subtle:"var(--surface-neutral-warm-subtle, #F0F1F0)",moderate:"var(--surface-neutral-warm-moderate, #E0E1E0)",strong:"var(--surface-neutral-warm-strong, #D0D2D0)",strongest:"var(--surface-neutral-warm-strongest, #C5C8C5)"}},feedback:{"positive-subtlest":"var(--surface-feedback-positive-subtlest, #F7FCFA)","positive-subtle":"var(--surface-feedback-positive-subtle, #EFFAF4)","positive-strong":"var(--surface-feedback-positive-strong, #DAF2E4)","positive-strongest":"var(--surface-feedback-positive-strongest, #0B7337)","neutral-subtlest":"var(--surface-feedback-neutral-subtlest, #F1F2F6)","neutral-subtle":"var(--surface-feedback-neutral-subtle, #EBECF2)","neutral-strong":"var(--surface-feedback-neutral-strong, #828699)","neutral-strongest":"var(--surface-feedback-neutral-strongest, #696C80)","critical-subtlest":"var(--surface-feedback-critical-subtlest, #FFF7F7)","critical-subtle":"var(--surface-feedback-critical-subtle, #FFEEEE)","critical-strong":"var(--surface-feedback-critical-strong, #FFE5E5)","critical-strongest":"var(--surface-feedback-critical-strongest, #B22424)","info-subtlest":"var(--surface-feedback-info-subtlest, #F3F5FC)","info-subtle":"var(--surface-feedback-info-subtle, #E6EBF9)","info-strong":"var(--surface-feedback-info-strong, #CFD8F4)","info-strongest":"var(--surface-feedback-info-strongest, #294CB5)","accent-subtlest":"var(--surface-feedback-accent-subtlest, #F7F6FF)","accent-subtle":"var(--surface-feedback-accent-subtle, #DDD6FE)","accent-strong":"var(--surface-feedback-accent-strong, #C4B5FD)","accent-strongest":"var(--surface-feedback-accent-strongest, #5B21B6)","warning-subtlest":"var(--surface-feedback-warning-subtlest, #FFF8F0)","warning-subtle":"var(--surface-feedback-warning-subtle, #FBEEDB)","warning-strong":"var(--surface-feedback-warning-strong, #FFDA94)","warning-strongest":"var(--surface-feedback-warning-strongest, #F59C00)"},container:{base:"var(--surface-container-base, #FFFFFF)"},interactive:{overlay:{universal:{default:"var(--surface-interactive-overlay-universal-default, #3A3D4D00)",hover:"var(--surface-interactive-overlay-universal-hover, color-mix(in srgb, #3A3D4D 4%, transparent))",active:"var(--surface-interactive-overlay-universal-active, color-mix(in srgb, #3A3D4D 8%, transparent))"},button:{default:"var(--surface-interactive-overlay-button-default, #3A3D4D00)",hover:"var(--surface-interactive-overlay-button-hover, color-mix(in srgb, #3A3D4D 16%, transparent))",active:"var(--surface-interactive-overlay-button-active, color-mix(in srgb, #3A3D4D 24%, transparent))"}},control:{track:{default:"var(--surface-interactive-control-track-default, color-mix(in srgb, #3A3D4D 4%, transparent))",hover:"var(--surface-interactive-control-track-hover, color-mix(in srgb, #3A3D4D 8%, transparent))",active:"var(--surface-interactive-control-track-active, color-mix(in srgb, #3A3D4D 24%, transparent))"}},focus:{default:"var(--surface-interactive-focus-default, color-mix(in srgb, #3A3D4D 40%, transparent))"}}},border:{"critical-subtle":"var(--border-critical-subtle, #FFE5E5)","critical-strong":"var(--border-critical-strong, #B22424)","critical-strongest":"var(--border-critical-strongest, #8C1515)","positive-subtle":"var(--border-positive-subtle, #DAF2E4)","positive-strong":"var(--border-positive-strong, #0B7337)","info-subtle":"var(--border-info-subtle, #ABBCED)","info-strong":"var(--border-info-strong, #2C51BE)","default-subtle":"var(--border-default-subtle, #E4E7EE)","default-default":"var(--border-default-default, #CBD4E0)","default-strong":"var(--border-default-strong, #B1BCCA)","input-default":"var(--border-input-default, #BABDCC)","input-active":"var(--border-input-active, #515466)","warning-subtle":"var(--border-warning-subtle, #FBEEDB)","warning-strong":"var(--border-warning-strong, #E88800)","accent-subtle":"var(--border-accent-subtle, #A78BFA)","accent-strong":"var(--border-accent-strong, #5B21B6)"},text:{"text-primary":"var(--text-text-primary, #0A0B0D)","text-secondary":"var(--text-text-secondary, #44506A)","text-tertiary":"var(--text-text-tertiary, #6A758D)","text-muted":"var(--text-text-muted, #9BA1AE)","text-on-colour":"var(--text-text-on-colour, #FFFFFF)","text-info":"var(--text-text-info, #2C51BE)","text-positive":"var(--text-text-positive, #0B7337)","text-critical":"var(--text-text-critical, #B22424)","text-warning":"var(--text-text-warning, #E88800)","text-link":"var(--text-text-link, #1668E3)","text-accented":"var(--text-text-accented, #4C1D95)"},icon:{"icon-primary":"var(--icon-icon-primary, #12131A)","icon-secondary":"var(--icon-icon-secondary, #696C80)","icon-tertiary":"var(--icon-icon-tertiary, #6A758D)","icon-muted":"var(--icon-icon-muted, #BABDCC)","icon-on-colour":"var(--icon-icon-on-colour, #FFFFFF)","icon-info":"var(--icon-icon-info, #2C51BE)","icon-positive":"var(--icon-icon-positive, #0B7337)","icon-critical":"var(--icon-icon-critical, #B22424)","icon-warning":"var(--icon-icon-warning, #E88800)","icon-link":"var(--icon-icon-link, #1668E3)","icon-accented":"var(--icon-icon-accented, #4C1D95)","icon-rating":"var(--icon-icon-rating, #FFB933)"}},dimensions:{radius:{none:0,xsmall:"2px",small:"4px",medium:"8px",large:"12px",xlarge:"16px",rounded:"9999px"},stroke:{regular:"1px",strong:"2px",bold:"4px"}},typography:s}},82015:e=>{e.exports=require("react")},89473:(e,t,r)=>{var n=r(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(29825)),o=function(e){var t=e.condition,r=void 0!==t&&t,n=e.children;return!0===r?n:null};o.propTypes={condition:a.default.bool},t.default=o}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}var n={};(()=>{var e=n,t=r(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=t(r(68254));e.default=a.default})(),module.exports=n})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e={33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},17826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var u=t[n]={exports:{}};return e[n](u,u.exports,r),u.exports}var n={};(()=>{var e=n,t=r(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(17826)),u=r(82015),i=t(r(29825)),s=function(e){var t=e.isClicked,r=void 0!==t&&t,n=e.onClickOutside,i=e.children,s=(0,u.useState)(r),d=(0,o.default)(s,2),a=d[0],c=d[1],f=[],l=["modal"];(0,u.useEffect)((function(){return document.addEventListener("mousedown",v),document.addEventListener("touchstart",v),document.addEventListener("focusin",v),function(){document.removeEventListener("mousedown",v),document.removeEventListener("touchstart",v),document.removeEventListener("focusin",v)}}),[]);var v=function(e){l.includes(e.target.className)||p(e.target)},p=function(e){f&&Array.isArray(f)&&f.every((function(t){return!t.contains(e)}))?(c(!0),"function"==typeof n&&n()):c(!1)};return i((function(e){e&&f.push(e)}),a)};s.propTypes={isClicked:i.default.bool,children:i.default.func.isRequired},e.default=s})(),module.exports=n})();
1
+ (()=>{"use strict";var e={17826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},29825:e=>{e.exports=require("prop-types")},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},82015:e=>{e.exports=require("react")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var u=t[n]={exports:{}};return e[n](u,u.exports,r),u.exports}var n={};(()=>{var e=n,t=r(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(17826)),u=r(82015),i=t(r(29825)),s=function(e){var t=e.isClicked,r=void 0!==t&&t,n=e.onClickOutside,i=e.children,s=(0,u.useState)(r),d=(0,o.default)(s,2),a=d[0],c=d[1],f=[],l=["modal"];(0,u.useEffect)(function(){return document.addEventListener("mousedown",v),document.addEventListener("touchstart",v),document.addEventListener("focusin",v),function(){document.removeEventListener("mousedown",v),document.removeEventListener("touchstart",v),document.removeEventListener("focusin",v)}},[]);var v=function(e){l.includes(e.target.className)||p(e.target)},p=function(e){f&&Array.isArray(f)&&f.every(function(t){return!t.contains(e)})?(c(!0),"function"==typeof n&&n()):c(!1)};return i(function(e){e&&f.push(e)},a)};s.propTypes={isClicked:i.default.bool,children:i.default.func.isRequired},e.default=s})(),module.exports=n})();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webjet/react",
3
3
  "side-effects": false,
4
- "version": "4.5.0",
4
+ "version": "4.7.0",
5
5
  "description": "Common react components",
6
6
  "main": "components/index.js",
7
7
  "scripts": {
@@ -77,9 +77,9 @@
77
77
  "rimraf": "^3.0.2",
78
78
  "standard": "17.1.0",
79
79
  "style-loader": "^3.3.3",
80
- "webpack": "5.95.0",
80
+ "webpack": "5.99.9",
81
81
  "webpack-cli": "5.1.4",
82
- "webpack-dev-server": "5.1.0",
82
+ "webpack-dev-server": "5.2.2",
83
83
  "webpack-merge": "^5.8.0",
84
84
  "webpack-node-externals": "^3.0.0"
85
85
  },
package/utils/common.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={84513:(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(84513),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
+ (()=>{"use strict";var t={84513:(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(84513),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={53956:(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}},84513:(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(84513),n=o(53956),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})();
1
+ (()=>{"use strict";var t={53956:(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}},84513:(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(84513),n=o(53956),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/ga.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e={61116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},17826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var u=r[n]={exports:{}};return e[n](u,u.exports,t),u.exports}var n={};(()=>{var e=n,r=t(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.pushGAEvent=e.gaAttributes=void 0;var o=r(t(61116)),u=r(t(17826));function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}e.gaAttributes=function(e){var r={};return Object.entries(e).forEach((function(e){var t=(0,u.default)(e,2),n=t[0],o=t[1];null!=o&&(r["data-ga-".concat(n)]=String(o))})),r},e.pushGAEvent=function(e,r){var t=window.dataLayer;e&&t&&t.push(a(e,r))};var a=function(e,r){return function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach((function(r){(0,o.default)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({event:e},r)}})(),module.exports=n})();
1
+ (()=>{"use strict";var e={17826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},61116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var u=r[n]={exports:{}};return e[n](u,u.exports,t),u.exports}var n={};(()=>{var e=n,r=t(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.pushGAEvent=e.gaAttributes=void 0;var o=r(t(61116)),u=r(t(17826));function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}e.gaAttributes=function(e){var r={};return Object.entries(e).forEach(function(e){var t=(0,u.default)(e,2),n=t[0],o=t[1];null!=o&&(r["data-ga-".concat(n)]=String(o))}),r},e.pushGAEvent=function(e,r){var t=window.dataLayer;e&&t&&t.push(a(e,r))};var a=function(e,r){return function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach(function(r){(0,o.default)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}({event:e},r)}})(),module.exports=n})();
package/utils/hooks.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={63465:(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(84513),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}},61554:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unlockScroll=e.lockScroll=void 0;var n=o(63465),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)))}},84513:(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)}},82015: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(82015),i=o(61554);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={61554:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unlockScroll=e.lockScroll=void 0;var n=o(63465),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)))}},63465:(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(84513),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}},82015:t=>{t.exports=require("react")},84513:(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.useDisableBodyScroll=t.useCombinedRefs=void 0;var e=o(82015),i=o(61554);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={63465:(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(84513),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}},84513:(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(63465),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={63465:(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(84513),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}},84513:(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(63465),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})();