@webjet/react 4.17.1 → 4.17.3
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.
- package/components/autocomplete.js +1 -1
- package/components/checkmark.js +1 -1
- package/components/date-picker-input.js +1 -1
- package/components/date-picker.js +1 -1
- package/components/date-range-picker-input.js +1 -1
- package/components/date-range-picker.js +1 -1
- package/components/drawer.js +1 -1
- package/components/fare-card.js +1 -1
- package/components/flight-card-info.js +1 -1
- package/components/flight-details.js +1 -1
- package/components/flight-summary.js +1 -1
- package/components/header.js +1 -1
- package/components/iframe-link.js +1 -1
- package/components/info-modal.js +1 -1
- package/components/leg-segment.js +1 -1
- package/components/modal.js +1 -1
- package/components/page-loader.js +1 -1
- package/components/product-navigation-drawer.js +1 -1
- package/components/products-cross-sell-panel.js +1 -1
- package/components/slider.js +1 -1
- package/components/tab.js +1 -1
- package/components/tooltip-modal.js +1 -1
- package/package.json +3 -3
- package/utils/hooks.js +1 -1
- package/components/rating.js +0 -1
- package/components/user-review-filter.js +0 -1
package/components/checkmark.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={6829:(e,t,o)=>{var n=o(33751),i=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var o,n,r={__proto__:null,default:e};if(null===e||"object"!=i(e)&&"function"!=typeof e)return r;if(o=t){if(o.has(e))return o.get(e);o.set(e,r)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((n=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(n.get||n.set)?o(r,l,n):r[l]=e[l]);return r}(e)}(o(82015)),l=(n(o(29825)),o(86684)),s=o(55626);t.default=function(e){var t=e.text,o=void 0===t?"Updated":t,n=e.show,i=void 0!==n&&n,a=e.onClose,c=e.duration,d=void 0===c?2500:c;return(0,l.useDisableBodyScroll)(i),(0,r.useEffect)(function(){var e;return i&&(e=setTimeout(function(){return a&&a()},d)),function(){return clearTimeout(e)}},[i]),i?r.default.createElement(s.StyledOverlay,null,r.default.createElement(s.StyledContainer,null,r.default.createElement(s.StyledCheckmarkIcon,null,r.default.createElement(s.StyledCircle,null),r.default.createElement(s.StyledPath,null)),r.default.createElement(s.StyledText,null,o))):null}},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},29825:e=>{e.exports=require("prop-types")},32770:e=>{e.exports=require("styled-components")},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},55626:(e,t,o)=>{var n=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledPath=t.StyledOverlay=t.StyledContainer=t.StyledCircle=t.StyledCheckmarkIcon=void 0;var i=n(o(32770));t.StyledCheckmarkIcon=i.default.svg.attrs({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52"}).withConfig({displayName:"Checkmarkstyle__StyledCheckmarkIcon",componentId:"sc-52ewjo-0"})(["width:56px;height:56px;border-radius:50%;display:block;stroke-width:2;stroke:#fff;stroke-miterlimit:10;margin:0 auto;box-shadow:inset 0px 0px 0px #2DB300;animation:fill 0.4s ease-in-out 0.4s forwards,scale 0.3s ease-in-out 0.9s both;@keyframes stroke{100%{stroke-dashoffset:0;}}@keyframes scale{0%,100%{transform:none;}50%{transform:scale3d(1.1,1.1,1);}}@keyframes fill{100%{box-shadow:inset 0px 0px 0px 30px #2DB300;}}"]),t.StyledCircle=i.default.circle.attrs({cx:26,cy:26,r:25,fill:"none"}).withConfig({displayName:"Checkmarkstyle__StyledCircle",componentId:"sc-52ewjo-1"})(["stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#2DB300;fill:none;animation:stroke 0.6s cubic-bezier(0.65,0,0.45,1) forwards;@keyframes stroke{100%{stroke-dashoffset:0;}}@keyframes scale{0%,100%{transform:none;}50%{transform:scale3d(1.1,1.1,1);}}@keyframes fill{100%{box-shadow:inset 0px 0px 0px 30px #2DB300;}}"]),t.StyledPath=i.default.path.attrs({fill:"none",d:"M14.1 27.2l7.1 7.2 16.7-16.8"}).withConfig({displayName:"Checkmarkstyle__StyledPath",componentId:"sc-52ewjo-2"})(["transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;animation:stroke 0.3s cubic-bezier(0.65,0,0.45,1) 0.8s forwards;@keyframes stroke{100%{stroke-dashoffset:0;}}"]),t.StyledText=i.default.div.withConfig({displayName:"Checkmarkstyle__StyledText",componentId:"sc-52ewjo-3"})(["color:#2DB300;font-size:16px;font-weight:600;padding-top:12px;"]),t.StyledOverlay=i.default.div.withConfig({displayName:"Checkmarkstyle__StyledOverlay",componentId:"sc-52ewjo-4"})(["position:fixed;top:0;left:0;z-index:9999;background-color:rgba(0,0,0,0.5);width:100%;height:100%;"]),t.StyledContainer=i.default.div.withConfig({displayName:"Checkmarkstyle__StyledContainer",componentId:"sc-52ewjo-5"})(["background:#ffffff;box-shadow:0 2px 3px 0 rgba(0,0,0,0.3);border-radius:3px;display:block;text-align:center;font-weight:500;width:225px;margin:-100px auto 0;padding:30px;top:50%;left:50%;position:fixed;z-index:99999;transform:translateX(-50%);"])},61554:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.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)};t.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var e=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(e,"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},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,n.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}},63465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getRandomArrayItem=t.getMonthName=t.getLoggedInUserDetails=t.getFormattedDate=void 0;var n=o(84513),i=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=t.isMatchMedia=function(e){return window.matchMedia(e).matches},l=(t.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},t.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},t.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.getLoggedInUserDetails=function(){var e=(0,n.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var o=0;o<e.length;o++){var i,r=null===(i=window.atob(e[o].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),l=JSON.parse(r),s=l.firstName,a=l.email,c=l.dev;window.location.hostname.includes("dev.webjet")&&!c||(t={firstName:s,email:a})}return t}),s=(t.isUserLoggedIn=function(){return!!l().firstName},t.setTwoDirectionStickyPanel=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=window.innerHeight-e.offsetHeight-t,i=window.scrollY,r=window.innerHeight,l=e.offsetHeight;e.style.top=o+"px",window.addEventListener("resize",function(){r=window.innerHeight,l=e.offsetHeight}),document.addEventListener("scroll",function(){l=e.offsetHeight,n=window.innerHeight-e.offsetHeight-t;var s=parseInt(e.style.top.replace("px;",""));0===window.scrollY||l<=r?e.style.top=o+"px":window.scrollY<i?s<o?e.style.top=s+i-window.scrollY+"px":s>=o&&s!==o&&(e.style.top=o+"px"):s>n?e.style.top=s+i-window.scrollY+"px":s<n&&s!==n&&(e.style.top=n+"px"),i=window.scrollY},{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){s(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,i=t-o;return i>=n-1&&i<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())},t.getRandomArrayItem=function(e){return Array.isArray(e)&&e.length>0?e[Math.floor(Math.random()*e.length)]:null}},82015:e=>{e.exports=require("react")},84513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=t.getAllCookiesStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}},n=(t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){var t=n(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(t)&&n.push(r.substring(t.length,r.length))}return n});t.setCookieStorage=function(e,t,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}},86684:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useDisableBodyScroll=t.useCombinedRefs=void 0;var n=o(82015),i=o(61554);t.useDisableBodyScroll=function(e){(0,n.useEffect)(function(){if(e)return(0,i.lockScroll)(),function(){(0,i.unlockScroll)()}},[e])},t.useCombinedRefs=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=(0,n.useRef)();return(0,n.useEffect)(function(){t.forEach(function(e){e&&("function"==typeof e?e(i.current):e.current=i.current)})},[t]),i}}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}var n={};(()=>{var e=n,t=o(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(o(6829));e.default=i.default})(),module.exports=n})();
|
|
1
|
+
(()=>{"use strict";var e={6829:(e,t,o)=>{var n=o(33751),i=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var o,n,r={__proto__:null,default:e};if(null===e||"object"!=i(e)&&"function"!=typeof e)return r;if(o=t){if(o.has(e))return o.get(e);o.set(e,r)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((n=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(n.get||n.set)?o(r,l,n):r[l]=e[l]);return r}(e)}(o(82015)),l=(n(o(29825)),o(86684)),s=o(55626);t.default=function(e){var t=e.text,o=void 0===t?"Updated":t,n=e.show,i=void 0!==n&&n,a=e.onClose,c=e.duration,d=void 0===c?2500:c;return(0,l.useDisableBodyScroll)(i),(0,r.useEffect)(function(){var e;return i&&(e=setTimeout(function(){return a&&a()},d)),function(){return clearTimeout(e)}},[i]),i?r.default.createElement(s.StyledOverlay,null,r.default.createElement(s.StyledContainer,null,r.default.createElement(s.StyledCheckmarkIcon,null,r.default.createElement(s.StyledCircle,null),r.default.createElement(s.StyledPath,null)),r.default.createElement(s.StyledText,null,o))):null}},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},29825:e=>{e.exports=require("prop-types")},32770:e=>{e.exports=require("styled-components")},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},55626:(e,t,o)=>{var n=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledPath=t.StyledOverlay=t.StyledContainer=t.StyledCircle=t.StyledCheckmarkIcon=void 0;var i=n(o(32770));t.StyledCheckmarkIcon=i.default.svg.attrs({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52"}).withConfig({displayName:"Checkmarkstyle__StyledCheckmarkIcon",componentId:"sc-52ewjo-0"})(["width:56px;height:56px;border-radius:50%;display:block;stroke-width:2;stroke:#fff;stroke-miterlimit:10;margin:0 auto;box-shadow:inset 0px 0px 0px #2DB300;animation:fill 0.4s ease-in-out 0.4s forwards,scale 0.3s ease-in-out 0.9s both;@keyframes stroke{100%{stroke-dashoffset:0;}}@keyframes scale{0%,100%{transform:none;}50%{transform:scale3d(1.1,1.1,1);}}@keyframes fill{100%{box-shadow:inset 0px 0px 0px 30px #2DB300;}}"]),t.StyledCircle=i.default.circle.attrs({cx:26,cy:26,r:25,fill:"none"}).withConfig({displayName:"Checkmarkstyle__StyledCircle",componentId:"sc-52ewjo-1"})(["stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#2DB300;fill:none;animation:stroke 0.6s cubic-bezier(0.65,0,0.45,1) forwards;@keyframes stroke{100%{stroke-dashoffset:0;}}@keyframes scale{0%,100%{transform:none;}50%{transform:scale3d(1.1,1.1,1);}}@keyframes fill{100%{box-shadow:inset 0px 0px 0px 30px #2DB300;}}"]),t.StyledPath=i.default.path.attrs({fill:"none",d:"M14.1 27.2l7.1 7.2 16.7-16.8"}).withConfig({displayName:"Checkmarkstyle__StyledPath",componentId:"sc-52ewjo-2"})(["transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;animation:stroke 0.3s cubic-bezier(0.65,0,0.45,1) 0.8s forwards;@keyframes stroke{100%{stroke-dashoffset:0;}}"]),t.StyledText=i.default.div.withConfig({displayName:"Checkmarkstyle__StyledText",componentId:"sc-52ewjo-3"})(["color:#2DB300;font-size:16px;font-weight:600;padding-top:12px;"]),t.StyledOverlay=i.default.div.withConfig({displayName:"Checkmarkstyle__StyledOverlay",componentId:"sc-52ewjo-4"})(["position:fixed;top:0;left:0;z-index:9999;background-color:rgba(0,0,0,0.5);width:100%;height:100%;"]),t.StyledContainer=i.default.div.withConfig({displayName:"Checkmarkstyle__StyledContainer",componentId:"sc-52ewjo-5"})(["background:#ffffff;box-shadow:0 2px 3px 0 rgba(0,0,0,0.3);border-radius:3px;display:block;text-align:center;font-weight:500;width:225px;margin:-100px auto 0;padding:30px;top:50%;left:50%;position:fixed;z-index:99999;transform:translateX(-50%);"])},61554:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.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)};t.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var e=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(e,"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},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,n.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}},63465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getRandomArrayItem=t.getMonthName=t.getLoggedInUserDetails=t.getFormattedDate=void 0;var n=o(84513),i=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=t.isMatchMedia=function(e){return window.matchMedia(e).matches},l=(t.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},t.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},t.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.getLoggedInUserDetails=function(){var e=(0,n.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var o=0;o<e.length;o++){var i,r=null===(i=window.atob(e[o].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),l=JSON.parse(r),s=l.firstName,a=l.email,c=l.dev;window.location.hostname.includes("dev.webjet")&&!c||(t={firstName:s,email:a})}return t}),s=(t.isUserLoggedIn=function(){return!!l().firstName},t.setTwoDirectionStickyPanel=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=window.innerHeight-e.offsetHeight-t,i=window.scrollY,r=window.innerHeight,l=e.offsetHeight;e.style.top=o+"px",window.addEventListener("resize",function(){r=window.innerHeight,l=e.offsetHeight}),document.addEventListener("scroll",function(){l=e.offsetHeight,n=window.innerHeight-e.offsetHeight-t;var s=parseInt(e.style.top.replace("px;",""));0===window.scrollY||l<=r?e.style.top=o+"px":window.scrollY<i?s<o?e.style.top=s+i-window.scrollY+"px":s>=o&&s!==o&&(e.style.top=o+"px"):s>n?e.style.top=s+i-window.scrollY+"px":s<n&&s!==n&&(e.style.top=n+"px"),i=window.scrollY},{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){s(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,i=t-o;return i>=n-1&&i<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())},t.getRandomArrayItem=function(e){return Array.isArray(e)&&e.length>0?e[Math.floor(Math.random()*e.length)]:null}},82015:e=>{e.exports=require("react")},84513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=t.getAllCookiesStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}},n=(t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){var t=n(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(t)&&n.push(r.substring(t.length,r.length))}return n});t.setCookieStorage=function(e,t,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}},86684:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useUpdateEffect=t.useDisableBodyScroll=t.useCombinedRefs=void 0;var n=o(82015),i=o(61554);t.useDisableBodyScroll=function(e){(0,n.useEffect)(function(){if(e)return(0,i.lockScroll)(),function(){(0,i.unlockScroll)()}},[e])},t.useCombinedRefs=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=(0,n.useRef)();return(0,n.useEffect)(function(){t.forEach(function(e){e&&("function"==typeof e?e(i.current):e.current=i.current)})},[t]),i},t.useUpdateEffect=function(e,t){var o=(0,n.useRef)(!0);(0,n.useEffect)(function(){if(!o.current)return e();o.current=!1},t)}}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}var n={};(()=>{var e=n,t=o(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(o(6829));e.default=i.default})(),module.exports=n})();
|