@webjet/react 4.17.7 → 4.17.9

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 (115) 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/bottom-sheet.js +1 -1
  7. package/components/breadcrumb.js +1 -1
  8. package/components/button.js +1 -1
  9. package/components/card.js +1 -1
  10. package/components/carousel-cards.js +1 -1
  11. package/components/carousel-content.js +1 -1
  12. package/components/carousel.js +1 -1
  13. package/components/checkbox-list.js +1 -1
  14. package/components/checkbox.js +1 -1
  15. package/components/checklist.js +1 -1
  16. package/components/checkmark.js +1 -1
  17. package/components/copy-button.js +1 -1
  18. package/components/countdown.js +1 -1
  19. package/components/counter.js +1 -1
  20. package/components/currency-formatter.js +1 -1
  21. package/components/date-picker-input.js +1 -1
  22. package/components/date-picker.js +1 -1
  23. package/components/date-range-picker-input.js +1 -1
  24. package/components/date-range-picker.js +1 -1
  25. package/components/drawer.js +1 -1
  26. package/components/error-message-field.js +1 -1
  27. package/components/fare-card.js +1 -1
  28. package/components/feature-toggle.js +1 -1
  29. package/components/filter-dropdown.js +1 -1
  30. package/components/flight-card-footer.js +1 -1
  31. package/components/flight-card-header.js +1 -1
  32. package/components/flight-card-info.js +1 -1
  33. package/components/flight-card.js +1 -1
  34. package/components/flight-details.js +1 -1
  35. package/components/flight-summary.js +1 -1
  36. package/components/floating-panel.js +1 -1
  37. package/components/footer-navigation.js +1 -1
  38. package/components/footer.js +1 -1
  39. package/components/header.js +1 -1
  40. package/components/helper-text.js +1 -1
  41. package/components/icon.js +1 -1
  42. package/components/if.js +1 -1
  43. package/components/iframe-link.js +1 -1
  44. package/components/image.js +1 -1
  45. package/components/info-modal.js +1 -1
  46. package/components/journey-line.js +1 -1
  47. package/components/label.js +1 -1
  48. package/components/leg-segment.js +1 -1
  49. package/components/linear-loader.js +1 -1
  50. package/components/link.js +1 -1
  51. package/components/media-query.js +1 -1
  52. package/components/menu-link.js +1 -1
  53. package/components/menu-list.js +1 -1
  54. package/components/modal.js +1 -1
  55. package/components/notification.js +1 -1
  56. package/components/number-stepper.js +1 -1
  57. package/components/page-loader.js +1 -1
  58. package/components/pagination.js +1 -1
  59. package/components/panel-with-scroll-fade.js +1 -1
  60. package/components/passenger-counter.js +1 -1
  61. package/components/payment-breakdown-panel.js +1 -1
  62. package/components/payment-breakdown.js +1 -1
  63. package/components/payment-card.js +1 -1
  64. package/components/payment-confirmation-panel.js +1 -1
  65. package/components/personal-info.js +1 -1
  66. package/components/pills.js +1 -1
  67. package/components/price-breakdown.js +1 -1
  68. package/components/product-card.js +1 -1
  69. package/components/product-menu.js +1 -1
  70. package/components/product-navigation-drawer.js +1 -1
  71. package/components/product-navigation.js +1 -1
  72. package/components/products-cross-sell-banner.js +1 -1
  73. package/components/products-cross-sell-card.js +1 -1
  74. package/components/products-cross-sell-image.js +1 -1
  75. package/components/products-cross-sell-list.js +1 -1
  76. package/components/products-cross-sell-panel.js +1 -1
  77. package/components/program-label.js +1 -1
  78. package/components/promo-panel.js +1 -1
  79. package/components/quality-rating-filter.js +1 -1
  80. package/components/quality-rating.js +1 -1
  81. package/components/radio-group.js +1 -1
  82. package/components/radios.js +1 -1
  83. package/components/react-container-query.js +1 -1
  84. package/components/render-count.js +1 -1
  85. package/components/scrollable-content.js +1 -1
  86. package/components/select.js +1 -1
  87. package/components/selectable-card.js +1 -1
  88. package/components/selectable-panel-group.js +1 -1
  89. package/components/settings.js +1 -1
  90. package/components/slider.js +1 -1
  91. package/components/spinner.js +1 -1
  92. package/components/split-test.js +1 -1
  93. package/components/tab.js +1 -1
  94. package/components/table.js +1 -1
  95. package/components/text-divider.js +1 -1
  96. package/components/textarea.js +1 -1
  97. package/components/textfield-button.js +1 -1
  98. package/components/textfield.js +1 -1
  99. package/components/toast-bar.js +1 -1
  100. package/components/toggle.js +1 -1
  101. package/components/tooltip-modal.js +1 -1
  102. package/components/tooltip.js +1 -1
  103. package/components/two-direction-sticky-panel.js +1 -1
  104. package/components/typography.js +1 -1
  105. package/components/user-review-details.js +1 -1
  106. package/components/user-review-panel.js +1 -1
  107. package/components/user-review.js +1 -1
  108. package/components/utility-panel.js +1 -1
  109. package/components/with-click-outside.js +1 -1
  110. package/package.json +5 -5
  111. package/utils/common.js +1 -1
  112. package/utils/featureToggle.js +1 -1
  113. package/utils/ga.js +1 -1
  114. package/utils/hooks.js +1 -1
  115. package/utils/scrollbar.js +1 -1
@@ -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=o,l=o?n.SPLIT_TEST_GROUPS.TEST_1:n.SPLIT_TEST_GROUPS.CONTROL;if(s)i=s!==n.SPLIT_TEST_GROUPS.CONTROL,l=s;else if(o){var g=(0,n.getSplitTestGroup)(e,r);g?(i=g!==n.SPLIT_TEST_GROUPS.CONTROL,l=g):r&&!g&&(i=!1,l=n.SPLIT_TEST_GROUPS.CONTROL)}return{name:e,isEnabled:i,testGroup:l}}):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=o,l=o?n.SPLIT_TEST_GROUPS.TEST_1:n.SPLIT_TEST_GROUPS.CONTROL;if(s)i=s!==n.SPLIT_TEST_GROUPS.CONTROL,l=s;else if(o){var g=(0,n.getSplitTestGroup)(e,r);g?(i=g!==n.SPLIT_TEST_GROUPS.CONTROL,l=g):r&&!g&&(i=!1,l=n.SPLIT_TEST_GROUPS.CONTROL)}return{name:e,isEnabled:i,testGroup:l}}):null}})(),module.exports=r})();
package/utils/ga.js CHANGED
@@ -1 +1 @@
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})();
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={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},c=(e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.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"),c=JSON.parse(r),s=c.firstName,l=c.email,u=c.dev;window.location.hostname.includes("dev.webjet")&&!u||(e={firstName:s,email:l})}return e}),s=(e.isUserLoggedIn=function(){return!!c().firstName},e.setTwoDirectionStickyPanel=function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=window.innerHeight-t.offsetHeight-e,i=window.scrollY,r=window.innerHeight,c=t.offsetHeight;t.style.top=o+"px",window.addEventListener("resize",function(){r=window.innerHeight,c=t.offsetHeight}),document.addEventListener("scroll",function(){c=t.offsetHeight,n=window.innerHeight-t.offsetHeight-e;var s=parseInt(t.style.top.replace("px;",""));0===window.scrollY||c<=r?t.style.top=o+"px":window.scrollY<i?s<o?t.style.top=s+i-window.scrollY+"px":s>=o&&s!==o&&(t.style.top=o+"px"):s>n?t.style.top=s+i-window.scrollY+"px":s<n&&s!==n&&(t.style.top=n+"px"),i=window.scrollY},{capture:!0,passive:!0})}});e.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},e.getDateWithoutTime=function(t){return new Date(t.toDateString())},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.useUpdateEffect=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},t.useUpdateEffect=function(t,o){var n=(0,e.useRef)(!0);(0,e.useEffect)(function(){if(!n.current)return t();n.current=!1},o)}})(),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},c=(e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.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"),c=JSON.parse(r),s=c.firstName,l=c.email,u=c.dev;window.location.hostname.includes("dev.webjet")&&!u||(e={firstName:s,email:l})}return e}),s=(e.isUserLoggedIn=function(){return!!c().firstName},e.setTwoDirectionStickyPanel=function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=window.innerHeight-t.offsetHeight-e,i=window.scrollY,r=window.innerHeight,c=t.offsetHeight;t.style.top=o+"px",window.addEventListener("resize",function(){r=window.innerHeight,c=t.offsetHeight}),document.addEventListener("scroll",function(){c=t.offsetHeight,n=window.innerHeight-t.offsetHeight-e;var s=parseInt(t.style.top.replace("px;",""));0===window.scrollY||c<=r?t.style.top=o+"px":window.scrollY<i?s<o?t.style.top=s+i-window.scrollY+"px":s>=o&&s!==o&&(t.style.top=o+"px"):s>n?t.style.top=s+i-window.scrollY+"px":s<n&&s!==n&&(t.style.top=n+"px"),i=window.scrollY},{capture:!0,passive:!0})}});e.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},e.getDateWithoutTime=function(t){return new Date(t.toDateString())},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.useUpdateEffect=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},t.useUpdateEffect=function(t,o){var n=(0,e.useRef)(!0);(0,e.useEffect)(function(){if(!n.current)return t();n.current=!1},o)}})(),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){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=window.innerHeight-t.offsetHeight-e,i=window.scrollY,r=window.innerHeight,s=t.offsetHeight;t.style.top=o+"px",window.addEventListener("resize",function(){r=window.innerHeight,s=t.offsetHeight}),document.addEventListener("scroll",function(){s=t.offsetHeight,n=window.innerHeight-t.offsetHeight-e;var l=parseInt(t.style.top.replace("px;",""));0===window.scrollY||s<=r?t.style.top=o+"px":window.scrollY<i?l<o?t.style.top=l+i-window.scrollY+"px":l>=o&&l!==o&&(t.style.top=o+"px"):l>n?t.style.top=l+i-window.scrollY+"px":l<n&&l!==n&&(t.style.top=n+"px"),i=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){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=window.innerHeight-t.offsetHeight-e,i=window.scrollY,r=window.innerHeight,s=t.offsetHeight;t.style.top=o+"px",window.addEventListener("resize",function(){r=window.innerHeight,s=t.offsetHeight}),document.addEventListener("scroll",function(){s=t.offsetHeight,n=window.innerHeight-t.offsetHeight-e;var l=parseInt(t.style.top.replace("px;",""));0===window.scrollY||s<=r?t.style.top=o+"px":window.scrollY<i?l<o?t.style.top=l+i-window.scrollY+"px":l>=o&&l!==o&&(t.style.top=o+"px"):l>n?t.style.top=l+i-window.scrollY+"px":l<n&&l!==n&&(t.style.top=n+"px"),i=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})();