@webjet/react 4.0.13 → 4.1.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 (102) hide show
  1. package/components/accordion.js +1 -1
  2. package/components/anchor-link.js +1 -1
  3. package/components/autocomplete.js +1 -1
  4. package/components/banner.js +1 -1
  5. package/components/breadcrumb.js +1 -1
  6. package/components/button.js +1 -1
  7. package/components/card.js +1 -1
  8. package/components/carousel-cards.js +1 -1
  9. package/components/carousel-content.js +1 -1
  10. package/components/carousel.js +1 -1
  11. package/components/checkbox-list.js +1 -1
  12. package/components/checkbox.js +1 -1
  13. package/components/checklist.js +1 -1
  14. package/components/checkmark.js +1 -1
  15. package/components/copy-button.js +1 -1
  16. package/components/countdown.js +1 -1
  17. package/components/currency-formatter.js +1 -1
  18. package/components/date-picker-input.js +1 -1
  19. package/components/date-picker.js +1 -1
  20. package/components/date-range-picker-input.js +1 -1
  21. package/components/date-range-picker.js +1 -1
  22. package/components/drawer.js +1 -1
  23. package/components/error-message-field.js +1 -1
  24. package/components/fare-card.js +1 -1
  25. package/components/feature-toggle.js +1 -1
  26. package/components/filter-dropdown.js +1 -1
  27. package/components/flight-card-footer.js +1 -1
  28. package/components/flight-card-header.js +1 -1
  29. package/components/flight-card-info.js +1 -1
  30. package/components/flight-summary.js +1 -1
  31. package/components/floating-panel.js +1 -1
  32. package/components/footer-navigation.js +1 -1
  33. package/components/helper-text.js +1 -0
  34. package/components/icon.js +1 -1
  35. package/components/if.js +1 -1
  36. package/components/iframe-link.js +1 -1
  37. package/components/image.js +1 -1
  38. package/components/info-modal.js +1 -1
  39. package/components/journey-line.js +1 -1
  40. package/components/label.js +1 -1
  41. package/components/leg-segment.js +1 -1
  42. package/components/linear-loader.js +1 -1
  43. package/components/link.js +1 -1
  44. package/components/media-query.js +1 -1
  45. package/components/menu-list.js +1 -1
  46. package/components/modal.js +1 -1
  47. package/components/notification.js +1 -1
  48. package/components/number-stepper.js +1 -1
  49. package/components/page-loader.js +1 -1
  50. package/components/pagination.js +1 -1
  51. package/components/panel-with-scroll-fade.js +1 -1
  52. package/components/payment-breakdown-panel.js +1 -1
  53. package/components/payment-breakdown.js +1 -1
  54. package/components/payment-card.js +1 -1
  55. package/components/payment-confirmation-panel.js +1 -1
  56. package/components/personal-info.js +1 -1
  57. package/components/pills.js +1 -1
  58. package/components/price-breakdown.js +1 -0
  59. package/components/product-navigation-drawer.js +1 -1
  60. package/components/product-navigation.js +1 -1
  61. package/components/products-cross-sell-banner.js +1 -1
  62. package/components/products-cross-sell-image.js +1 -1
  63. package/components/products-cross-sell-list.js +1 -1
  64. package/components/products-cross-sell-panel.js +1 -1
  65. package/components/program-label.js +1 -1
  66. package/components/quality-rating-filter.js +1 -1
  67. package/components/quality-rating.js +1 -1
  68. package/components/radios.js +1 -1
  69. package/components/rating.js +1 -1
  70. package/components/react-container-query.js +1 -1
  71. package/components/render-count.js +1 -1
  72. package/components/scrollable-content.js +1 -1
  73. package/components/select.js +1 -1
  74. package/components/selectable-card.js +1 -1
  75. package/components/settings.js +1 -1
  76. package/components/slider.js +1 -1
  77. package/components/spinner.js +1 -1
  78. package/components/split-test.js +1 -1
  79. package/components/tab.js +1 -1
  80. package/components/table.js +1 -1
  81. package/components/text-divider.js +1 -1
  82. package/components/textarea.js +1 -1
  83. package/components/textfield-button.js +1 -1
  84. package/components/textfield.js +1 -1
  85. package/components/toast-bar.js +1 -1
  86. package/components/toggle.js +1 -1
  87. package/components/tooltip-modal.js +1 -1
  88. package/components/tooltip.js +1 -1
  89. package/components/two-direction-sticky-panel.js +1 -1
  90. package/components/typography.js +1 -1
  91. package/components/user-review-details.js +1 -1
  92. package/components/user-review-filter.js +1 -1
  93. package/components/user-review-panel.js +1 -1
  94. package/components/user-review.js +1 -1
  95. package/components/utility-panel.js +1 -1
  96. package/components/with-click-outside.js +1 -1
  97. package/package.json +2 -3
  98. package/utils/common.js +1 -1
  99. package/utils/featureToggle.js +1 -1
  100. package/utils/ga.js +1 -1
  101. package/utils/hooks.js +1 -1
  102. package/utils/scrollbar.js +1 -1
@@ -1 +1 @@
1
- (()=>{"use strict";var e={9473:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(9825)),a=function(e){var t=e.condition,r=void 0!==t&&t,o=e.children;return!0===r?o:null};a.propTypes={condition:n.default.bool},t.default=a},3080:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(9473));t.default=n.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",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"}}},4341:(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)"}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return a.default}});var n=o(r(1267)),a=o(r(492)),i=o(r(9098)),d=o(r(9090)),l=o(r(5050)),c=o(r(509)),u=o(r(4341))},9098:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2770),a=o(r(1267)),i=(0,n.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],a.default.fontSize,a.default.fontColor);t.default={globalStyles:i}},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA","#C81209","#BD1109","#E44C45"],o={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=o},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],o={fontFamily:{icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},8254:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6031)),a=o(r(2462)),i=o(r(2015)),d=(o(r(9825)),o(r(3080))),l=r(6925),c=["data"];t.default=function(e){var t=e.data,r=(0,a.default)(e,c),o=null==t?void 0:t.map((function(e){var t=e.onClick,r=e.name,o=e.label,n=e.icon,a=e.countLabel;return i.default.createElement("a",{onClick:t,key:r,"data-testid":"".concat(r,"-btn")},i.default.createElement(d.default,{condition:!!n&&!a},i.default.createElement(n,{"data-testid":"link-icon"})),i.default.createElement(d.default,{condition:!!a},i.default.createElement("i",{"data-testid":"count-label"},a)),o)}));return i.default.createElement(l.StyledUtilityPanel,(0,n.default)({"data-testid":"utility-panel"},r),o)}},6925:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUtilityPanel=void 0;var n=o(r(2770)),a=r(3290);t.StyledUtilityPanel=n.default.div.withConfig({displayName:"UtilityPanelstyle__StyledUtilityPanel",componentId:"sc-dck735-0"})(["display:inline-flex;flex-direction:row;justify-content:center;align-items:center;padding:12px 0;height:48px;background-color:",";box-shadow:0px 5px 8px rgba(0,0,0,0.15);border-radius:24px;a{display:flex;align-items:center;gap:4px;color:",";font-size:14px;line-height:20px;text-align:center;padding:4px 16px;margin:0;border-right:1px solid rgba(255,255,255,0.4);-webkit-background-clip:padding-box;background-clip:padding-box;white-space:nowrap;font-weight:500;&:hover{text-decoration:none;}&:last-child{border-right:0;}svg{fill:",";font-size:16px;}i{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:100px;font-size:12px;line-height:20px;font-weight:700;font-style:normal;color:",";background-color:",";}}"],a.theme.color[8],a.theme.color[11],a.theme.color[11],a.theme.color[11],a.theme.color[13])},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}var o={};(()=>{var e=o,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(8254));e.default=n.default})(),module.exports=o})();
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 c.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return s.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)),c=o(n(60509)),s=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:{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","critical-subtlest":"#FFF7F7","critical-subtle":"#FFEEEE","critical-strong":"#FFE5E5","info-subtlest":"#F7FAFF","info-subtle":"#EDF4FF","info-strong":"#E0EBFF","warning-subtlest":"#FFE8CC","warning-subtle":"#FFD8A8","warning-strong":"#FFC078"},container:{base:"#FFFFFF"},interactive:{actions:{"primary-default":"#6D28D9","primary-hover":"#5B21B6","primary-active":"#4C1D95","secondary-default":"#EBECF2","secondary-hover":"#D8DAE5","secondary-active":"#BABDCC"},overlays:{default:"#82869900",hover:"#82869914",active:"#8286991F"},focus:{default:"#8286993D"}}},border:{"critical-subtle":"#FFE5E5","critical-strong":"#B22424","positive-subtle":"#DAF2E4","positive-strong":"#0B7337","info-subtle":"#E0EBFF","info-strong":"#003CB2","default-subtle":"#F1F2F6","default-default":"#CBD4E0","default-strong":"#B1BCCA","input-default":"#BABDCC","input-active":"#515466","warning-subtle":"#FFC078","warning-strong":"#F76707"},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-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 +1 @@
1
- (()=>{"use strict";var e={3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},9825:e=>{e.exports=require("prop-types")},2015: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(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(7826)),u=r(2015),i=t(r(9825)),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={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})();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webjet/react",
3
3
  "side-effects": false,
4
- "version": "4.0.13",
4
+ "version": "4.1.0",
5
5
  "description": "Common react components",
6
6
  "main": "components/index.js",
7
7
  "scripts": {
@@ -31,10 +31,9 @@
31
31
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@webjet/react-icons": "^3.7.10",
34
+ "@webjet/react-icons": "^3.7.11",
35
35
  "classnames": "^2.3.2",
36
36
  "dompurify": "3.2.5",
37
- "focus-trap-react": "^11.0.3",
38
37
  "marked": "^4.0.12",
39
38
  "ncp": "^2.0.0",
40
39
  "polished": "^4.1.4",
package/utils/common.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=e.getAllCookiesStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}},n=(e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){var e=n(t);return e.length>0?e[0]:null},e.getAllCookiesStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(e)&&n.push(r.substring(e.length,r.length))}return n});e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(t,e){return e-t},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getRandomArrayItem=t.getMonthName=t.getLoggedInUserDetails=t.getFormattedDate=void 0;var e=o(4513),i=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=t.isMatchMedia=function(t){return window.matchMedia(t).matches},s=(t.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},t.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},t.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},t.getLoggedInUserDetails=function(){var t=(0,e.getAllCookiesStorage)("customer-soft-id"),o={};if((null==t?void 0:t.length)>0)for(var n=0;n<t.length;n++){var i,r=null===(i=window.atob(t[n].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),s=JSON.parse(r),a=s.firstName,c=s.email,l=s.dev;window.location.hostname.includes("dev.webjet")&&!l||(o={firstName:a,email:c})}return o}),a=(t.isUserLoggedIn=function(){return!!s().firstName},t.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(t){a(document.getElementById(t))},t.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},t.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},t.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},t.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},t.isValidIconName=function(t){return!!t&&"string"==typeof t},t.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},t.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},t.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},t.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},t.getDateWithoutTime=function(t){return new Date(t.toDateString())},t.getRandomArrayItem=function(t){return Array.isArray(t)&&t.length>0?t[Math.floor(Math.random()*t.length)]:null}})(),module.exports=n})();
1
+ (()=>{"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={3956:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.splitTest=e.getSplitTestGroup=e.SPLIT_TEST_GROUPS=void 0,e.SPLIT_TEST_GROUPS={CONTROL:"control",TEST_1:"test_1",TEST_2:"test_2"},e.splitTest=function(t,e){var r=(t||{}).splitTest,n=(void 0===r?{}:r)[e];return o(e,n)};var o=e.getSplitTestGroup=function(t,e){if(t&&e&&"function"==typeof window.split_test_group){var o=e.split(":").length;return window.split_test_group(t,2,o,e).test_group}return null}},4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=e.getAllCookiesStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}},r=(e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){var e=r(t);return e.length>0?e[0]:null},e.getAllCookiesStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),r=[],n=0;n<o.length;n++){for(var s=o[n];" "===s.charAt(0);)s=s.substring(1,s.length);0===s.indexOf(e)&&r.push(s.substring(e.length,s.length))}return r});e.setCookieStorage=function(t,e,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,o),s.exports}var r={};(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.getTestGroupFromUrl=t.getTestGroupFromString=t.getTestGroupFromCookie=t.getFeatureToggle=void 0;var e=o(4513),n=o(3956),s="features",i=t.getTestGroupFromString=function(t,e){var o,r=null==t||null===(o=t.split(","))||void 0===o?void 0:o.find((function(t){return t.split("|")[0]===e}));return r?r.split("|").at(1)||n.SPLIT_TEST_GROUPS.TEST_1:null},u=t.getTestGroupFromCookie=function(t){var o=(0,e.getCookieStorage)("wj_feature_on");return o?i(o,t):null},a=t.getTestGroupFromUrl=function(t){var e,o,r=new URLSearchParams(null===(e=window)||void 0===e||null===(o=e.location)||void 0===o?void 0:o.search);if(r.has(s)){var n=r.get(s);return i(n,t)}return null};t.getFeatureToggle=function(t,e){var o=e?t:null==t?void 0:t.filter((function(t){return!(null!=t&&t.splitTest)}));return o&&Array.isArray(o)&&null!=o&&o.length?null==o?void 0:o.map((function(t){var e=t.name,o=t.isEnabled,r=t.splitTest,s=u(e)||a(e),i=(0,n.getSplitTestGroup)(e,r),l=o,g=o?n.SPLIT_TEST_GROUPS.TEST_1:n.SPLIT_TEST_GROUPS.CONTROL;return s?(l=s!==n.SPLIT_TEST_GROUPS.CONTROL,g=s):o&&i?(l=i!==n.SPLIT_TEST_GROUPS.CONTROL,g=i):o&&r&&!i&&(l=!1,g=n.SPLIT_TEST_GROUPS.CONTROL),{name:e,isEnabled:l,testGroup:g}})):null}})(),module.exports=r})();
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={1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},7826: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(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.pushGAEvent=e.gaAttributes=void 0;var o=r(t(1116)),u=r(t(7826));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={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})();
package/utils/hooks.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={3465:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=e.detectOS=e.BREAKPOINTS=void 0,e.fetchDateInMilliseconds=function(){return(new Date).getTime()},e.getDateWithoutTime=e.getBoundingClientInfo=e.formatNumber=void 0,e.getDurationInMiliSeconds=function(t,e){return e-t},e.withScroll=e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.scrollTo=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobileTablet=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.hasScrollReachedBottom=e.getRandomArrayItem=e.getMonthName=e.getLoggedInUserDetails=e.getFormattedDate=void 0;var n=o(4513),i=e.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=e.isMatchMedia=function(t){return window.matchMedia(t).matches},s=(e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.getLoggedInUserDetails=function(){var t=(0,n.getAllCookiesStorage)("customer-soft-id"),e={};if((null==t?void 0:t.length)>0)for(var o=0;o<t.length;o++){var i,r=null===(i=window.atob(t[o].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),s=JSON.parse(r),c=s.firstName,l=s.email,a=s.dev;window.location.hostname.includes("dev.webjet")&&!a||(e={firstName:c,email:l})}return e}),c=(e.isUserLoggedIn=function(){return!!s().firstName},e.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});e.setTwoDirectionStickyPanelById=function(t){c(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},e.getDateWithoutTime=function(t){return new Date(t.toDateString())},e.getRandomArrayItem=function(t){return Array.isArray(t)&&t.length>0?t[Math.floor(Math.random()*t.length)]:null}},1554:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unlockScroll=e.lockScroll=void 0;var n=o(3465),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};e.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,n.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},e.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,n.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}},4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=e.getAllCookiesStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}},n=(e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){var e=n(t);return e.length>0?e[0]:null},e.getAllCookiesStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(e)&&n.push(r.substring(e.length,r.length))}return n});e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}},2015:t=>{t.exports=require("react")}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.useDisableBodyScroll=t.useCombinedRefs=void 0;var e=o(2015),i=o(1554);t.useDisableBodyScroll=function(t){(0,e.useEffect)((function(){if(t)return(0,i.lockScroll)(),function(){(0,i.unlockScroll)()}}),[t])},t.useCombinedRefs=function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];var i=(0,e.useRef)();return(0,e.useEffect)((function(){o.forEach((function(t){t&&("function"==typeof t?t(i.current):t.current=i.current)}))}),[o]),i}})(),module.exports=n})();
1
+ (()=>{"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 +1 @@
1
- (()=>{"use strict";var t={3465:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=e.detectOS=e.BREAKPOINTS=void 0,e.fetchDateInMilliseconds=function(){return(new Date).getTime()},e.getDateWithoutTime=e.getBoundingClientInfo=e.formatNumber=void 0,e.getDurationInMiliSeconds=function(t,e){return e-t},e.withScroll=e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.scrollTo=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobileTablet=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.hasScrollReachedBottom=e.getRandomArrayItem=e.getMonthName=e.getLoggedInUserDetails=e.getFormattedDate=void 0;var n=o(4513),i=e.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=e.isMatchMedia=function(t){return window.matchMedia(t).matches},s=(e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.getLoggedInUserDetails=function(){var t=(0,n.getAllCookiesStorage)("customer-soft-id"),e={};if((null==t?void 0:t.length)>0)for(var o=0;o<t.length;o++){var i,r=null===(i=window.atob(t[o].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),s=JSON.parse(r),l=s.firstName,c=s.email,a=s.dev;window.location.hostname.includes("dev.webjet")&&!a||(e={firstName:l,email:c})}return e}),l=(e.isUserLoggedIn=function(){return!!s().firstName},e.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});e.setTwoDirectionStickyPanelById=function(t){l(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},e.getDateWithoutTime=function(t){return new Date(t.toDateString())},e.getRandomArrayItem=function(t){return Array.isArray(t)&&t.length>0?t[Math.floor(Math.random()*t.length)]:null}},4513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=e.getAllCookiesStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}},n=(e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){var e=n(t);return e.length>0?e[0]:null},e.getAllCookiesStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(e)&&n.push(r.substring(e.length,r.length))}return n});e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var e=o(3465),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};t.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,e.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},t.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,e.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}})(),module.exports=n})();
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})();