@webjet/react 4.0.14 → 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.
- package/components/accordion.js +1 -1
- package/components/anchor-link.js +1 -1
- package/components/autocomplete.js +1 -1
- package/components/banner.js +1 -1
- package/components/breadcrumb.js +1 -1
- package/components/button.js +1 -1
- package/components/card.js +1 -1
- package/components/carousel-cards.js +1 -1
- package/components/carousel-content.js +1 -1
- package/components/carousel.js +1 -1
- package/components/checkbox-list.js +1 -1
- package/components/checkbox.js +1 -1
- package/components/checklist.js +1 -1
- package/components/checkmark.js +1 -1
- package/components/copy-button.js +1 -1
- package/components/countdown.js +1 -1
- package/components/currency-formatter.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/error-message-field.js +1 -1
- package/components/fare-card.js +1 -1
- package/components/feature-toggle.js +1 -1
- package/components/filter-dropdown.js +1 -1
- package/components/flight-card-footer.js +1 -1
- package/components/flight-card-header.js +1 -1
- package/components/flight-card-info.js +1 -1
- package/components/flight-summary.js +1 -1
- package/components/floating-panel.js +1 -1
- package/components/footer-navigation.js +1 -1
- package/components/helper-text.js +1 -0
- package/components/icon.js +1 -1
- package/components/if.js +1 -1
- package/components/iframe-link.js +1 -1
- package/components/image.js +1 -1
- package/components/info-modal.js +1 -1
- package/components/journey-line.js +1 -1
- package/components/label.js +1 -1
- package/components/leg-segment.js +1 -1
- package/components/linear-loader.js +1 -1
- package/components/link.js +1 -1
- package/components/media-query.js +1 -1
- package/components/menu-list.js +1 -1
- package/components/modal.js +1 -1
- package/components/notification.js +1 -1
- package/components/number-stepper.js +1 -1
- package/components/page-loader.js +1 -1
- package/components/pagination.js +1 -1
- package/components/panel-with-scroll-fade.js +1 -1
- package/components/payment-breakdown-panel.js +1 -1
- package/components/payment-breakdown.js +1 -1
- package/components/payment-card.js +1 -1
- package/components/payment-confirmation-panel.js +1 -1
- package/components/personal-info.js +1 -1
- package/components/pills.js +1 -1
- package/components/price-breakdown.js +1 -0
- package/components/product-navigation-drawer.js +1 -1
- package/components/product-navigation.js +1 -1
- package/components/products-cross-sell-banner.js +1 -1
- package/components/products-cross-sell-image.js +1 -1
- package/components/products-cross-sell-list.js +1 -1
- package/components/products-cross-sell-panel.js +1 -1
- package/components/program-label.js +1 -1
- package/components/quality-rating-filter.js +1 -1
- package/components/quality-rating.js +1 -1
- package/components/radios.js +1 -1
- package/components/rating.js +1 -1
- package/components/react-container-query.js +1 -1
- package/components/render-count.js +1 -1
- package/components/scrollable-content.js +1 -1
- package/components/select.js +1 -1
- package/components/selectable-card.js +1 -1
- package/components/settings.js +1 -1
- package/components/slider.js +1 -1
- package/components/spinner.js +1 -1
- package/components/split-test.js +1 -1
- package/components/tab.js +1 -1
- package/components/table.js +1 -1
- package/components/text-divider.js +1 -1
- package/components/textarea.js +1 -1
- package/components/textfield-button.js +1 -1
- package/components/textfield.js +1 -1
- package/components/toast-bar.js +1 -1
- package/components/toggle.js +1 -1
- package/components/tooltip-modal.js +1 -1
- package/components/tooltip.js +1 -1
- package/components/two-direction-sticky-panel.js +1 -1
- package/components/typography.js +1 -1
- package/components/user-review-details.js +1 -1
- package/components/user-review-filter.js +1 -1
- package/components/user-review-panel.js +1 -1
- package/components/user-review.js +1 -1
- package/components/utility-panel.js +1 -1
- package/components/with-click-outside.js +1 -1
- package/package.json +2 -2
- package/utils/common.js +1 -1
- package/utils/featureToggle.js +1 -1
- package/utils/ga.js +1 -1
- package/utils/hooks.js +1 -1
- package/utils/scrollbar.js +1 -1
package/components/checkmark.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={6829:(e,t,o)=>{var n=o(3751),r=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var o=a(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(n,l,s):n[l]=e[l]}return n.default=e,o&&o.set(e,n),n}(o(2015)),l=(n(o(9825)),o(6684)),s=o(5626);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}t.default=function(e){var t=e.text,o=void 0===t?"Updated":t,n=e.show,r=void 0!==n&&n,a=e.onClose,c=e.duration,d=void 0===c?2500:c;return(0,l.useDisableBodyScroll)(r),(0,i.useEffect)((function(){var e;return r&&(e=setTimeout((function(){return a&&a()}),d)),function(){return clearTimeout(e)}}),[r]),r?i.default.createElement(s.StyledOverlay,null,i.default.createElement(s.StyledContainer,null,i.default.createElement(s.StyledCheckmarkIcon,null,i.default.createElement(s.StyledCircle,null),i.default.createElement(s.StyledPath,null)),i.default.createElement(s.StyledText,null,o))):null}},5626:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledPath=t.StyledOverlay=t.StyledContainer=t.StyledCircle=t.StyledCheckmarkIcon=void 0;var r=n(o(2770));t.StyledCheckmarkIcon=r.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=r.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=r.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=r.default.div.withConfig({displayName:"Checkmarkstyle__StyledText",componentId:"sc-52ewjo-3"})(["color:#2DB300;font-size:16px;font-weight:600;padding-top:12px;"]),t.StyledOverlay=r.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=r.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%);"])},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getRandomArrayItem=t.getMonthName=t.getLoggedInUserDetails=t.getFormattedDate=void 0;var n=o(4513),r=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},l=(t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(r.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.getLoggedInUserDetails=function(){var e=(0,n.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var o=0;o<e.length;o++){var r,i=null===(r=window.atob(e[o].split(".")[1]))||void 0===r?void 0:r.toString("ascii"),l=JSON.parse(i),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){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||r<=n?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){s(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,r=t-o;return r>=n-1&&r<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())},t.getRandomArrayItem=function(e){return Array.isArray(e)&&e.length>0?e[Math.floor(Math.random()*e.length)]:null}},6684:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useDisableBodyScroll=t.useCombinedRefs=void 0;var n=o(2015),r=o(1554);t.useDisableBodyScroll=function(e){(0,n.useEffect)((function(){if(e)return(0,r.lockScroll)(),function(){(0,r.unlockScroll)()}}),[e])},t.useCombinedRefs=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r=(0,n.useRef)();return(0,n.useEffect)((function(){t.forEach((function(e){e&&("function"==typeof e?e(r.current):e.current=r.current)}))}),[t]),r}},1554:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var n=o(3465),r=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(r(),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(){r(),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:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=t.getAllCookiesStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}},n=(t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){var t=n(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=[],r=0;r<o.length;r++){for(var i=o[r];" "===i.charAt(0);)i=i.substring(1,i.length);0===i.indexOf(t)&&n.push(i.substring(t.length,i.length))}return n});t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}var n={};(()=>{var e=n,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(o(6829));e.default=r.default})(),module.exports=n})();
|
|
1
|
+
(()=>{"use strict";var e={6829:(e,t,o)=>{var n=o(33751),r=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var o=a(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(n,l,s):n[l]=e[l]}return n.default=e,o&&o.set(e,n),n}(o(82015)),l=(n(o(29825)),o(86684)),s=o(55626);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}t.default=function(e){var t=e.text,o=void 0===t?"Updated":t,n=e.show,r=void 0!==n&&n,a=e.onClose,c=e.duration,d=void 0===c?2500:c;return(0,l.useDisableBodyScroll)(r),(0,i.useEffect)((function(){var e;return r&&(e=setTimeout((function(){return a&&a()}),d)),function(){return clearTimeout(e)}}),[r]),r?i.default.createElement(s.StyledOverlay,null,i.default.createElement(s.StyledContainer,null,i.default.createElement(s.StyledCheckmarkIcon,null,i.default.createElement(s.StyledCircle,null),i.default.createElement(s.StyledPath,null)),i.default.createElement(s.StyledText,null,o))):null}},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 r=n(o(32770));t.StyledCheckmarkIcon=r.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=r.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=r.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=r.default.div.withConfig({displayName:"Checkmarkstyle__StyledText",componentId:"sc-52ewjo-3"})(["color:#2DB300;font-size:16px;font-weight:600;padding-top:12px;"]),t.StyledOverlay=r.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=r.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%);"])},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),r=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},l=(t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(r.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.getLoggedInUserDetails=function(){var e=(0,n.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var o=0;o<e.length;o++){var r,i=null===(r=window.atob(e[o].split(".")[1]))||void 0===r?void 0:r.toString("ascii"),l=JSON.parse(i),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){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||r<=n?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){s(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,r=t-o;return r>=n-1&&r<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())},t.getRandomArrayItem=function(e){return Array.isArray(e)&&e.length>0?e[Math.floor(Math.random()*e.length)]:null}},86684:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useDisableBodyScroll=t.useCombinedRefs=void 0;var n=o(82015),r=o(61554);t.useDisableBodyScroll=function(e){(0,n.useEffect)((function(){if(e)return(0,r.lockScroll)(),function(){(0,r.unlockScroll)()}}),[e])},t.useCombinedRefs=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r=(0,n.useRef)();return(0,n.useEffect)((function(){t.forEach((function(e){e&&("function"==typeof e?e(r.current):e.current=r.current)}))}),[t]),r}},61554:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var n=o(63465),r=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(r(),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(){r(),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:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=t.getAllCookiesStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}},n=(t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){var t=n(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=[],r=0;r<o.length;r++){for(var i=o[r];" "===i.charAt(0);)i=i.substring(1,i.length);0===i.indexOf(t)&&n.push(i.substring(t.length,i.length))}return n});t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},32770:e=>{e.exports=require("styled-components")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}var n={};(()=>{var e=n,t=o(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(o(6829));e.default=r.default})(),module.exports=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={3031:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6031)),i=r(n(2462)),a=r(n(2015)),l=(r(n(9825)),r(n(184))),d=n(676),c=n(3465),u=n(7236),s=["isLoading","type","variant","icon","iconColor","disabled","iconLeftAlign","children","size","gaProps","onClick"];t.default=function(e){var t=e.isLoading,n=void 0!==t&&t,r=e.type,f=void 0===r?"button":r,p=e.variant,g=void 0===p?"standard":p,v=e.icon,h=e.iconColor,b=e.disabled,m=void 0!==b&&b,y=e.iconLeftAlign,x=void 0!==y&&y,w=e.children,F=void 0===w?null:w,C=e.size,E=void 0===C?"lg":C,D=e.gaProps,B=e.onClick,S=(0,i.default)(e,s),O="standard"!==g,j=!!(0,c.isValidIconElement)(v)&&v,_=!!(0,c.isValidIconName)(v)&&v;return a.default.createElement(d.StyledButton,(0,o.default)({},S,{type:f,$variant:g,$icon:v,$iconLeftAlign:x,disabled:m,$isLoading:n,size:E,onClick:function(e){D&&null!=D&&D.gaEvent&&(0,u.pushGAEvent)(null==D?void 0:D.gaEvent,null==D?void 0:D.gaData),B&&B(e)}}),n&&a.default.createElement(l.default,{reverse:O}),F&&a.default.createElement(d.StyledText,{$isLoading:n,variant:g,disabled:m},F),j&&a.default.createElement(j,{fill:h,"data-testid":"button-icon",role:"button-icon"}),!j&&_&&a.default.createElement(d.StyledIcon,{name:_,$iconColor:h,disabled:m,variant:g,"data-testid":"button-icon",role:"button-icon"}))}},676:(e,t,n)=>{var r=n(3751),o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=r(n(2846)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2770)),l=n(3290),d=n(7427),c=n(9292);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var s=t.CONFIG={standard:{color:l.themeV2.color[10],bgColor:l.themeV2.btnStandard,hoverColor:l.themeV2.btnStandardHover,fontWeight:500},action:{color:l.themeV2.color[11],bgColor:l.themeV2.btnAction,hoverColor:l.themeV2.btnActionHover,fontWeight:500},active:{color:l.themeV2.color[11],bgColor:l.themeV2.btnActive,hoverColor:l.themeV2.btnActiveHover,fontWeight:500},selection:{color:l.themeV2.color[11],bgColor:l.themeV2.btnSelection,hoverColor:l.themeV2.btnSelectionHover,fontWeight:500}},f=function(){return(0,a.css)(["pointer-events:none;box-shadow:none;"])},p=function(e,t){return t&&e&&(0,a.css)(["opacity:",";"],"standard"===e?"0.5":"1")};t.StyledButton=a.default.button.withConfig({displayName:"Buttonstyle__StyledButton",componentId:"sc-1q7jh6y-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:12px;border:0;height:46px;cursor:pointer;border-radius:4px;-webkit-tap-highlight-color:rgba(0,0,0,0);font-size:16px;line-height:1;"," "," "," "," &:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," ",""],l.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{"," font-size:12px;}"],function(e,t){return e&&s[e]&&(0,a.css)(["&,&:visited{background:",";font-weight:",";color:",";text-decoration:none;}&:hover,&:focus,&:active{background:",";font-weight:",";color:",";text-decoration:none;}"],t?(n=s[e].bgColor)&&(0,a.css)(["",""],(0,c.mix)(.5,"#fff",n)):s[e].bgColor,s[e].fontWeight,s[e].color,s[e].hoverColor,s[e].fontWeight,s[e].color);var n}(t,n),p(t,n))}),(function(e){var t=e.size;return t&&(0,d.isSizeSm)(t)&&(0,a.css)(["height:36px;font-size:14px;padding:8px 16px;"])}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()})),t.StyledText=a.default.span.withConfig({displayName:"Buttonstyle__StyledText",componentId:"sc-1q7jh6y-1"})(["vertical-align:middle;"," ",""],(function(e){return e.$isLoading&&(0,a.css)(["opacity:0.5;padding-left:7px;"])}),(function(e){var t=e.variant,n=e.disabled;return p(t,n)})),t.StyledIcon=(0,a.default)(i.default).withConfig({displayName:"Buttonstyle__StyledIcon",componentId:"sc-1q7jh6y-2"})((function(e){var t=e.$iconColor;return(0,a.css)(["color:",";",""],t,(function(e){var t=e.variant,n=e.disabled;return p(t,n)}))}))},3471:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(3031));t.default=o.default},3572:(e,t,n)=>{var r=n(3751),o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(6031)),a=r(n(7826)),l=r(n(2462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2015)),c=(r(n(9825)),r(n(9094))),u=r(n(3471)),s=r(n(478)),f=n(3290),p=["children","textToCopy","feedbackText","onClick"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}t.default=function(e){var t=e.children,n=e.textToCopy,r=e.feedbackText,o=void 0===r?"Copied to Clipboard":r,g=e.onClick,v=(0,l.default)(e,p),h=(0,d.useState)(!1),b=(0,a.default)(h,2),m=b[0],y=b[1],x={gaEvent:"copy-button-interaction",gaData:{action:"click",value:n}};return d.default.createElement(d.default.Fragment,null,d.default.createElement(u.default,(0,i.default)({icon:c.default,iconColor:f.theme.color[10],onClick:function(e){var r,o;null===(r=window.navigator)||void 0===r||null===(o=r.clipboard)||void 0===o||o.writeText(n||t),y(!0),g&&g(e)},"data-testid":"copy-button",gaProps:x},v),t),d.default.createElement(s.default,{text:o,state:"success",show:m,onDismissed:function(){return y(!1)}}))}},2078:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(2770)),i=n(3290),a=o.default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:",";display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],i.theme.fontFamily.icon,(function(e){var t=e.iconName;return l(t)})),l=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""};t.default=a},2846:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6031)),i=r(n(2462)),a=r(n(2015)),l=(r(n(9825)),r(n(2078))),d=["name"];t.default=function(e){var t=e.name,n=(0,i.default)(e,d);return a.default.createElement(l.default,(0,o.default)({iconName:t},n))}},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,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"themeV3",{enumerable:!0,get:function(){return a.default}});var o=r(n(1267)),i=r(n(492)),a=r(n(8595)),l=r(n(9098)),d=r(n(9090)),c=r(n(5050)),u=r(n(509)),s=r(n(4341))},9098:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(2770),i=r(n(1267)),a=r(n(8595)),l=(0,o.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:l,typography:function(e,t){return(0,o.css)(["line-height:",";font-size:",";font-weight:",";"],a.default.typography[e]["line-height"]+"px",a.default.typography[e]["font-size"]+"px",a.default.font.weight[t])}}},492:(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"],r={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=r},8595:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={size:{100:10,200:12,300:14,400:16,500:18,600:20,700:24,800:28,900:32},"line-height":{condensed:{100:12,200:16,300:18,400:20,500:24,600:24,700:28,800:32,900:40},standard:{100:12,200:16,300:20,400:24,500:28,600:28,700:32,800:40,900:44}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}},r={"heading-03":{"font-size":n.size[400],"line-height":n["line-height"].condensed[400]},"heading-04":{"font-size":n.size[500],"line-height":n["line-height"].condensed[500]},"heading-05":{"font-size":n.size[600],"line-height":n["line-height"].condensed[600]},"body-02":{"font-size":n.size[200],"line-height":n["line-height"].standard[200]},"body-03":{"font-size":n.size[300],"line-height":n["line-height"].standard[300]},"body-04":{"font-size":n.size[400],"line-height":n["line-height"].standard[400]}};t.default={font:n,surface:{background:{"base-default":"#FFFFFF","base-subtle":"#F7F8FA","base-strong":"#F1F2F6","positive-subtle":"#F7FCFA","critical-subtle":"#FFF7F7","info-subtle":"#F7FAFF","warning-subtle":"#FFE8CC"},container:{base:"#FFFFFF"},interactive:{actions:{"primary-default":"#6D28D9","primary-hover":"#5B21B6","primary-active":"#4C1D95","secondary-default":"#EBECF2","secondary-hover":"#D8DAE5","secondary-active":"#BABDCC","tertiary-default":"#82869900","tertiary-hover":"#82869908","passive-active":"#82869912"}}},text:{"text-primary":"#0A0B0D","text-secondary":"#44506A","text-tertiary":"#6A758D","text-muted":"#9BA1AE","text-on-colour":"#FFFFFF","text-info":"#002F8C","text-positive":"#0B7337","text-critical":"#B22424","text-warning":"#F76707","text-link":"#0044CC","text-accented":"#4C1D95"},icon:{"icon-primary":"#12131A","icon-secondary":"#696C80","icon-tertiary":"#6A758D","icon-muted":"#BABDCC","icon-on-colour":"#FFFFFF","icon-info":"#003CB2","icon-positive":"#0B7337","icon-critical":"#B22424","icon-warning":"#F76707","icon-link":"#0044CC","icon-accented":"#4C1D95"},border:{"critical-subtle":"#FFE5E5","critical-strong":"#B22424","positive-subtle":"#DAF2E4","positive-strong":"#0B7337","info-subtle":"#E0EBFF","info-strong":"#003CB2","default-subtle":"#F1F2F6","default-default":"#EBECF2","default-strong":"#D8DAE5","input-default":"#BABDCC","input-active":"#515466","warning-subtle":"#FFC078"},typography:r}},1267:(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"],r={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=r},9945:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6031)),i=r(n(2462)),a=r(n(2015)),l=(r(n(9825)),n(7846)),d=["reverse"];t.default=function(e){var t=e.reverse,n=void 0!==t&&t,r=(0,i.default)(e,d);return a.default.createElement(l.StyledSpinner,(0,o.default)({reverse:n,"data-testid":"spinner",role:"spinner"},r))}},7846:(e,t,n)=>{var r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledSpinner=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var d=i?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(o,l,d):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(2770)),i=n(3290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.StyledSpinner=o.default.span.withConfig({displayName:"Spinnerstyle__StyledSpinner",componentId:"sc-uj77gv-0"})([""," display:inline-block;width:24px;height:24px;vertical-align:middle;animation:spin 1s infinite linear;border-radius:150px;border:2px solid #646464;border-top-color:rgba(100,100,100,0.4);border-left-color:rgba(100,100,100,0.4);border-bottom-color:rgba(100,100,100,0.4);"," @keyframes spin{0%{transform:rotate(0);}100%{transform:rotate(360deg);}}"],i.mixins.globalStyles,(function(e){return e.reverse&&(0,o.css)(["border:2px solid rgba(255,255,255,0.4);border-right:3px solid #FFFFFF;"])}))},184:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(9945));t.default=o.default},7340:(e,t,n)=>{var r=n(3751),o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(6031)),a=r(n(7826)),l=r(n(2462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2015)),c=n(2326),u=(r(n(9825)),r(n(4788))),s=n(5787),f=n(3290),p=["text","show","duration","state","portalTarget","onDismissed"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}var v={success:{icon:u.default,color:f.theme.color[17],name:"check-round"}};t.default=function(e){var t,n,r,o=e.text,u=e.show,f=void 0!==u&&u,g=e.duration,h=void 0===g?5e3:g,b=e.state,m=void 0===b?"standard":b,y=e.portalTarget,x=void 0===y||y,w=e.onDismissed,F=(0,l.default)(e,p),C=(0,d.useState)(!1),E=(0,a.default)(C,2),D=E[0],B=E[1],S=null===(t=v[m])||void 0===t?void 0:t.icon,O=null;!0===x?O=document.body:x instanceof HTMLElement&&(O=x),(0,d.useEffect)((function(){f&&setTimeout((function(){return B(!0),void(w&&setTimeout((function(){B(!1),w()}),s.ANIMATION_DURATION))}),h)}),[f]);var j=d.default.createElement(s.StyledToastBar,(0,i.default)({"data-testid":"toastbar",isSlidingOut:D},F),d.default.createElement(s.StyledText,{"data-testid":"toastbar-text"},o),!!S&&d.default.createElement(S,{fill:null===(n=v[m])||void 0===n?void 0:n.color,"data-testid":"toastbar-icon","data-icon-name":null===(r=v[m])||void 0===r?void 0:r.name}));return f&&d.default.createElement(d.default.Fragment,null,O?(0,c.createPortal)(j,O):j)}},5787:(e,t,n)=>{var r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledToastBar=t.StyledText=t.ANIMATION_DURATION=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var d=i?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(o,l,d):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(2770)),i=n(3290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var l=t.ANIMATION_DURATION=500,d=(0,o.keyframes)(["0%{top:-100px;}100%{top:24px;}"]),c=(0,o.keyframes)(["0%{top:24px;}100%{top:-100px;}"]);t.StyledToastBar=o.default.div.withConfig({displayName:"ToastBarstyle__StyledToastBar",componentId:"sc-1i7fgq5-0"})((function(e){var t=e.isSlidingOut;return(0,o.css)(["position:fixed;display:flex;align-items:center;top:-100px;left:50%;transform:translateX(-50%);z-index:1000;padding:12px 16px;border-radius:8px;background:",";box-shadow:0px 16px 40px 0px rgba(0,0,0,0.16);animation-name:",";animation-duration:","ms;animation-timing-function:cubic-bezier(0.68,-0.55,0.265,1.35);animation-fill-mode:forwards;"," svg{font-size:16px;margin-left:8px;@media ","{font-size:20px;}}"],i.theme.color[11],d,l,t&&(0,o.css)(["animation-name:",";"],c),i.theme.media.tabletAndDesktop)})),t.StyledText=o.default.span.withConfig({displayName:"ToastBarstyle__StyledText",componentId:"sc-1i7fgq5-1"})(["font-size:12px;font-weight:500;line-height:18px;color:",";@media ","{font-size:14px;line-height:20px;}"],i.theme.color[9],i.theme.media.tabletAndDesktop)},478:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(7340));t.default=o.default},3465:(e,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(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 r=n(4513),o=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return i("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(o.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(o.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!n&&/(iPhone\sOS)\s([\d_]+)/.test(t)||n,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.getLoggedInUserDetails=function(){var e=(0,r.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var n=0;n<e.length;n++){var o,i=null===(o=window.atob(e[n].split(".")[1]))||void 0===o?void 0:o.toString("ascii"),a=JSON.parse(i),l=a.firstName,d=a.email,c=a.dev;window.location.hostname.includes("dev.webjet")&&!c||(t={firstName:l,email:d})}return t}),l=(t.isUserLoggedIn=function(){return!!a().firstName},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,n=window.scrollY,r=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,o=e.offsetHeight})),document.addEventListener("scroll",(function(){o=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||o<=r?e.style.top="0px":window.scrollY<n?i<0?e.style.top=i+n-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+n-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),n=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){l(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.scrollTop,r=e.clientHeight,o=t-n;return o>=r-1&&o<=r+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.clientHeight;return!(t>=n-1&&t<=n+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 n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:n,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}},7236:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var o=r(n(1116)),i=r(n(7826));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var n=(0,i.default)(e,2),r=n[0],o=n[1];null!=o&&(t["data-ga-".concat(r)]=String(o))})),t},t.pushGAEvent=function(e,t){var n=window.dataLayer;e&&n&&n.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({event:e},t)}},7427:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=t.getAllCookiesStorage=void 0;var n=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}},r=(t.getSessionStorage=function(e){if(e&&n())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&n())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){var t=r(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=[],o=0;o<n.length;o++){for(var i=n[o];" "===i.charAt(0);)i=i.substring(1,i.length);0===i.indexOf(t)&&r.push(i.substring(t.length,i.length))}return r});t.setCookieStorage=function(e,t,n){var r=window.location.hostname,o="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(n||86400)}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},4788:e=>{e.exports=require("@webjet/react-icons/check-round")},9094:e=>{e.exports=require("@webjet/react-icons/copy")},9292:e=>{e.exports=require("polished")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2326:e=>{e.exports=require("react-dom")},2770:e=>{e.exports=require("styled-components")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}var r={};(()=>{var e=r,t=n(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(n(3572));e.default=o.default})(),module.exports=r})();
|
|
1
|
+
(()=>{"use strict";var e={3031:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(46031)),i=o(n(52462)),a=o(n(82015)),l=(o(n(29825)),o(n(40184))),d=n(10676),c=n(63465),s=n(27236),u=["isLoading","type","variant","icon","iconColor","disabled","iconLeftAlign","children","size","gaProps","onClick"];t.default=function(e){var t=e.isLoading,n=void 0!==t&&t,o=e.type,p=void 0===o?"button":o,f=e.variant,g=void 0===f?"standard":f,x=e.icon,h=e.iconColor,v=e.disabled,b=void 0!==v&&v,m=e.iconLeftAlign,y=void 0!==m&&m,F=e.children,w=void 0===F?null:F,E=e.size,C=void 0===E?"lg":E,S=e.gaProps,D=e.onClick,B=(0,i.default)(e,u),O="standard"!==g,k=!!(0,c.isValidIconElement)(x)&&x,j=!!(0,c.isValidIconName)(x)&&x;return a.default.createElement(d.StyledButton,(0,r.default)({},B,{type:p,$variant:g,$icon:x,$iconLeftAlign:y,disabled:b,$isLoading:n,size:C,onClick:function(e){S&&null!=S&&S.gaEvent&&(0,s.pushGAEvent)(null==S?void 0:S.gaEvent,null==S?void 0:S.gaData),D&&D(e)}}),n&&a.default.createElement(l.default,{reverse:O}),w&&a.default.createElement(d.StyledText,{$isLoading:n,variant:g,disabled:b},w),k&&a.default.createElement(k,{fill:h,"data-testid":"button-icon",role:"button-icon"}),!k&&j&&a.default.createElement(d.StyledIcon,{name:j,$iconColor:h,disabled:b,variant:g,"data-testid":"button-icon",role:"button-icon"}))}},10676:(e,t,n)=>{var o=n(33751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=o(n(62846)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(32770)),l=n(33290),d=n(17427),c=n(79292);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u=t.CONFIG={standard:{color:l.themeV2.color[10],bgColor:l.themeV2.btnStandard,hoverColor:l.themeV2.btnStandardHover,fontWeight:500},action:{color:l.themeV2.color[11],bgColor:l.themeV2.btnAction,hoverColor:l.themeV2.btnActionHover,fontWeight:500},active:{color:l.themeV2.color[11],bgColor:l.themeV2.btnActive,hoverColor:l.themeV2.btnActiveHover,fontWeight:500},selection:{color:l.themeV2.color[11],bgColor:l.themeV2.btnSelection,hoverColor:l.themeV2.btnSelectionHover,fontWeight:500}},p=function(){return(0,a.css)(["pointer-events:none;box-shadow:none;"])},f=function(e,t){return t&&e&&(0,a.css)(["opacity:",";"],"standard"===e?"0.5":"1")};t.StyledButton=a.default.button.withConfig({displayName:"Buttonstyle__StyledButton",componentId:"sc-1q7jh6y-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:12px;border:0;height:46px;cursor:pointer;border-radius:4px;-webkit-tap-highlight-color:rgba(0,0,0,0);font-size:16px;line-height:1;"," "," "," "," &:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," ",""],l.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{"," font-size:12px;}"],function(e,t){return e&&u[e]&&(0,a.css)(["&,&:visited{background:",";font-weight:",";color:",";text-decoration:none;}&:hover,&:focus,&:active{background:",";font-weight:",";color:",";text-decoration:none;}"],t?(n=u[e].bgColor)&&(0,a.css)(["",""],(0,c.mix)(.5,"#fff",n)):u[e].bgColor,u[e].fontWeight,u[e].color,u[e].hoverColor,u[e].fontWeight,u[e].color);var n}(t,n),f(t,n))}),(function(e){var t=e.size;return t&&(0,d.isSizeSm)(t)&&(0,a.css)(["height:36px;font-size:14px;padding:8px 16px;"])}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])}),(function(e){return e.disabled&&p()}),(function(e){return e.$isLoading&&(0,a.css)([""," [role='spinner']{flex:none;}"],p())})),t.StyledText=a.default.span.withConfig({displayName:"Buttonstyle__StyledText",componentId:"sc-1q7jh6y-1"})(["vertical-align:middle;"," ",""],(function(e){return e.$isLoading&&(0,a.css)(["opacity:0.5;padding-left:7px;"])}),(function(e){var t=e.variant,n=e.disabled;return f(t,n)})),t.StyledIcon=(0,a.default)(i.default).withConfig({displayName:"Buttonstyle__StyledIcon",componentId:"sc-1q7jh6y-2"})((function(e){var t=e.$iconColor;return(0,a.css)(["color:",";",""],t,(function(e){var t=e.variant,n=e.disabled;return f(t,n)}))}))},93471:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(3031));t.default=r.default},3572:(e,t,n)=>{var o=n(33751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(46031)),a=o(n(17826)),l=o(n(52462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(82015)),c=(o(n(29825)),o(n(39094))),s=o(n(93471)),u=o(n(10478)),p=n(33290),f=["children","textToCopy","feedbackText","onClick"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}t.default=function(e){var t=e.children,n=e.textToCopy,o=e.feedbackText,r=void 0===o?"Copied to Clipboard":o,g=e.onClick,x=(0,l.default)(e,f),h=(0,d.useState)(!1),v=(0,a.default)(h,2),b=v[0],m=v[1],y={gaEvent:"copy-button-interaction",gaData:{action:"click",value:n}};return d.default.createElement(d.default.Fragment,null,d.default.createElement(s.default,(0,i.default)({icon:c.default,iconColor:p.theme.color[10],onClick:function(e){var o,r;null===(o=window.navigator)||void 0===o||null===(r=o.clipboard)||void 0===r||r.writeText(n||t),m(!0),g&&g(e)},"data-testid":"copy-button",gaProps:y},x),t),d.default.createElement(u.default,{text:r,state:"success",show:b,onDismissed:function(){return m(!1)}}))}},72078:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(32770)),i=n(33290),a=r.default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:",";display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],i.theme.fontFamily.icon,(function(e){var t=e.iconName;return l(t)})),l=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""};t.default=a},62846:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(46031)),i=o(n(52462)),a=o(n(82015)),l=(o(n(29825)),o(n(72078))),d=["name"];t.default=function(e){var t=e.name,n=(0,i.default)(e,d);return a.default.createElement(l.default,(0,r.default)({iconName:t},n))}},60509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",offWhite:"#FFEADC",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},34341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={elevation01:"0px 1px 2px 0px rgba(51, 51, 51, 0.08)",elevation02:"0px 2px 4px 0px rgba(51, 51, 51, 0.10)",elevation03:"0px 6px 8px 0px rgba(51, 51, 51, 0.10)",elevation04:"0px 10px 16px 0px rgba(51, 51, 51, 0.10)",elevation05:"0px 16px 32px 0px rgba(51, 51, 51, 0.16)"}},35050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},33290:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"tokens",{enumerable:!0,get:function(){return a.default}});var r=o(n(61267)),i=o(n(60492)),a=o(n(74362)),l=o(n(19098)),d=o(n(9090)),c=o(n(35050)),s=o(n(60509)),u=o(n(34341))},19098:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(32770),i=o(n(61267)),a=o(n(74362)),l=(0,r.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:l,typography:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=a.default.typography[e],i=o.lineHeight,l=o.lineHeightType,d=o.fontSize;return(0,r.css)(["line-height:",";font-size:",";font-weight:",";",""],a.default.font.desktop["line-height"][l][i],a.default.font.desktop.size[d],a.default.font.desktop.weight[t],n&&(0,r.css)(["@media ","{line-height:",";font-size:",";font-weight:",";}"],a.default.media.mobile,a.default.font.mobile["line-height"][l][i],a.default.font.mobile.size[d],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"}}}},79945:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(46031)),i=o(n(52462)),a=o(n(82015)),l=(o(n(29825)),n(57846)),d=["reverse"];t.default=function(e){var t=e.reverse,n=void 0!==t&&t,o=(0,i.default)(e,d);return a.default.createElement(l.StyledSpinner,(0,r.default)({reverse:n,"data-testid":"spinner",role:"spinner"},o))}},57846:(e,t,n)=>{var o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledSpinner=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var d=i?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(r,l,d):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}(n(32770)),i=n(33290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.StyledSpinner=r.default.span.withConfig({displayName:"Spinnerstyle__StyledSpinner",componentId:"sc-uj77gv-0"})([""," display:inline-block;width:24px;height:24px;vertical-align:middle;animation:spin 1s infinite linear;border-radius:150px;border:2px solid #646464;border-top-color:rgba(100,100,100,0.4);border-left-color:rgba(100,100,100,0.4);border-bottom-color:rgba(100,100,100,0.4);"," @keyframes spin{0%{transform:rotate(0);}100%{transform:rotate(360deg);}}"],i.mixins.globalStyles,(function(e){return e.reverse&&(0,r.css)(["border:2px solid rgba(255,255,255,0.4);border-right:3px solid #FFFFFF;"])}))},40184:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(79945));t.default=r.default},47340:(e,t,n)=>{var o=n(33751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(46031)),a=o(n(17826)),l=o(n(52462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(82015)),c=n(22326),s=(o(n(29825)),o(n(74788))),u=n(25787),p=n(33290),f=["text","show","duration","state","portalTarget","onDismissed"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}var x={success:{icon:s.default,color:p.theme.color[17],name:"check-round"}};t.default=function(e){var t,n,o,r=e.text,s=e.show,p=void 0!==s&&s,g=e.duration,h=void 0===g?5e3:g,v=e.state,b=void 0===v?"standard":v,m=e.portalTarget,y=void 0===m||m,F=e.onDismissed,w=(0,l.default)(e,f),E=(0,d.useState)(!1),C=(0,a.default)(E,2),S=C[0],D=C[1],B=null===(t=x[b])||void 0===t?void 0:t.icon,O=null;!0===y?O=document.body:y instanceof HTMLElement&&(O=y),(0,d.useEffect)((function(){p&&setTimeout((function(){return D(!0),void(F&&setTimeout((function(){D(!1),F()}),u.ANIMATION_DURATION))}),h)}),[p]);var k=d.default.createElement(u.StyledToastBar,(0,i.default)({"data-testid":"toastbar",isSlidingOut:S},w),d.default.createElement(u.StyledText,{"data-testid":"toastbar-text"},r),!!B&&d.default.createElement(B,{fill:null===(n=x[b])||void 0===n?void 0:n.color,"data-testid":"toastbar-icon","data-icon-name":null===(o=x[b])||void 0===o?void 0:o.name}));return p&&d.default.createElement(d.default.Fragment,null,O?(0,c.createPortal)(k,O):k)}},25787:(e,t,n)=>{var o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledToastBar=t.StyledText=t.ANIMATION_DURATION=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var d=i?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(r,l,d):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}(n(32770)),i=n(33290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var l=t.ANIMATION_DURATION=500,d=(0,r.keyframes)(["0%{top:-100px;}100%{top:24px;}"]),c=(0,r.keyframes)(["0%{top:24px;}100%{top:-100px;}"]);t.StyledToastBar=r.default.div.withConfig({displayName:"ToastBarstyle__StyledToastBar",componentId:"sc-1i7fgq5-0"})((function(e){var t=e.isSlidingOut;return(0,r.css)(["position:fixed;display:flex;align-items:center;top:-100px;left:50%;transform:translateX(-50%);z-index:1000;padding:12px 16px;border-radius:8px;background:",";box-shadow:0px 16px 40px 0px rgba(0,0,0,0.16);animation-name:",";animation-duration:","ms;animation-timing-function:cubic-bezier(0.68,-0.55,0.265,1.35);animation-fill-mode:forwards;"," svg{font-size:16px;margin-left:8px;@media ","{font-size:20px;}}"],i.theme.color[11],d,l,t&&(0,r.css)(["animation-name:",";"],c),i.theme.media.tabletAndDesktop)})),t.StyledText=r.default.span.withConfig({displayName:"ToastBarstyle__StyledText",componentId:"sc-1i7fgq5-1"})(["font-size:12px;font-weight:500;line-height:18px;color:",";@media ","{font-size:14px;line-height:20px;}"],i.theme.color[9],i.theme.media.tabletAndDesktop)},10478:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(47340));t.default=r.default},63465:(e,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(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 o=n(84513),r=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(r.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!n&&/(iPhone\sOS)\s([\d_]+)/.test(t)||n,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.getLoggedInUserDetails=function(){var e=(0,o.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var n=0;n<e.length;n++){var r,i=null===(r=window.atob(e[n].split(".")[1]))||void 0===r?void 0:r.toString("ascii"),a=JSON.parse(i),l=a.firstName,d=a.email,c=a.dev;window.location.hostname.includes("dev.webjet")&&!c||(t={firstName:l,email:d})}return t}),l=(t.isUserLoggedIn=function(){return!!a().firstName},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,n=window.scrollY,o=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){o=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||r<=o?e.style.top="0px":window.scrollY<n?i<0?e.style.top=i+n-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+n-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),n=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){l(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.scrollTop,o=e.clientHeight,r=t-n;return r>=o-1&&r<=o+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.clientHeight;return!(t>=n-1&&t<=n+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 n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:n,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}},27236:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var r=o(n(61116)),i=o(n(17826));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var n=(0,i.default)(e,2),o=n[0],r=n[1];null!=r&&(t["data-ga-".concat(o)]=String(r))})),t},t.pushGAEvent=function(e,t){var n=window.dataLayer;e&&n&&n.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,r.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({event:e},t)}},17427:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},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 n=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}},o=(t.getSessionStorage=function(e){if(e&&n())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&n())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){var t=o(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",n=document.cookie.split(";"),o=[],r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);0===i.indexOf(t)&&o.push(i.substring(t.length,i.length))}return o});t.setCookieStorage=function(e,t,n){var o=window.location.hostname,r="localhost"===o?o:o.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(n||86400)}},61116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},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")},17826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},74788:e=>{e.exports=require("@webjet/react-icons/check-round")},39094:e=>{e.exports=require("@webjet/react-icons/copy")},79292:e=>{e.exports=require("polished")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},32770:e=>{e.exports=require("styled-components")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}var o={};(()=>{var e=o,t=n(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(n(3572));e.default=r.default})(),module.exports=o})();
|
package/components/countdown.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={681:(e,t,r)=>{var o=r(3751),n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(7826)),a=o(r(2462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(o,a,d):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(2015)),l=r(968),u=r(4598),c=(o(r(9825)),["duration","remainingTime","onComplete","size","updateInterval","type","isPlaying","onOneMinuteLeft"]);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var p=Object.keys(u.SIZES).reduce((function(e,t){return e[t.toUpperCase()]=t,e}),{});t.default=function(e){var t=e.duration,r=void 0===t?1800:t,o=e.remainingTime,n=void 0===o?1800:o,s=e.onComplete,f=void 0===s?function(){}:s,F=e.size,m=void 0===F?"xl":F,y=e.updateInterval,b=void 0===y?1:y,h=e.type,x=void 0===h?"default":h,g=e.isPlaying,C=void 0===g||g,v=e.onOneMinuteLeft,B=void 0===v?function(){}:v,E=(0,a.default)(e,c),D=m!==p.SM&&m!==p.XS||"default"!==x?x:"inverted",w=u.COLOURS[D]||u.COLOURS.default,k=w.strokeColor,A=w.trailColor,S=u.SIZES[m]||u.SIZES.xl,O=S.diameter,M=S.strokeWidth,P=function(e){var t=e.remainingTime,r=(0,d.useState)(!1),o=(0,i.default)(r,2),n=o[0],a=o[1];if(t>0){var l=Math.floor((t-1)/60),c=l>1?l:1;return 1!==c||n||(B(!0),a(!0)),d.default.createElement(u.StyledTimerValue,{"data-testid":"remaining-time",size:m,colourType:D},c)}return null};return d.default.createElement(u.StyledTimerContainer,E,d.default.createElement(l.CountdownCircleTimer,{isPlaying:C,duration:r,initialRemainingTime:n,onComplete:f,size:O,colors:k,trailColor:A,strokeWidth:M,updateInterval:b},P))}},4598:(e,t,r)=>{var o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledTimerValue=t.StyledTimerContainer=t.SIZES=t.COLOURS=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in e)if("default"!==d&&{}.hasOwnProperty.call(e,d)){var l=i?Object.getOwnPropertyDescriptor(e,d):null;l&&(l.get||l.set)?Object.defineProperty(n,d,l):n[d]=e[d]}return n.default=e,r&&r.set(e,n),n}(r(2770)),i=r(3290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}var d=t.COLOURS={default:{strokeColor:i.theme.color[0],trailColor:i.theme.color[1],digitColor:i.theme.color[10]},inverted:{strokeColor:i.theme.color[11],trailColor:i.theme.color[31],digitColor:i.theme.color[11]},notice:{strokeColor:i.theme.color[0],trailColor:i.theme.color[4],digitColor:i.theme.color[10]}},l=t.SIZES={xl:{diameter:60,strokeWidth:4,fontSize:"24px"},lg:{diameter:45,strokeWidth:3,fontSize:"18px"},md:{diameter:35,strokeWidth:3,fontSize:"14px"},sm:{diameter:30,strokeWidth:2,fontSize:"14px"},xs:{diameter:26,strokeWidth:2,fontSize:"13px"}};t.StyledTimerContainer=n.default.div.withConfig({displayName:"Countdownstyle__StyledTimerContainer",componentId:"sc-4m9682-0"})([""," display:inline-block;"],i.mixins.globalStyles),t.StyledTimerValue=n.default.div.withConfig({displayName:"Countdownstyle__StyledTimerValue",componentId:"sc-4m9682-1"})((function(e){var t=e.colourType,r=e.size,o=(d[t]||d.default).digitColor,i=l[r]||l.xl,a=i.diameter,u=i.fontSize;return(0,n.css)(["line-height:","px;color:",";font-size:",";font-weight:500;cursor:default;"],a,o,u)}))},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 l.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"themeV3",{enumerable:!0,get:function(){return a.default}});var n=o(r(1267)),i=o(r(492)),a=o(r(8595)),d=o(r(9098)),l=o(r(9090)),u=o(r(5050)),c=o(r(509)),s=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),i=o(r(1267)),a=o(r(8595)),d=(0,n.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:d,typography:function(e,t){return(0,n.css)(["line-height:",";font-size:",";font-weight:",";"],a.default.typography[e]["line-height"]+"px",a.default.typography[e]["font-size"]+"px",a.default.font.weight[t])}}},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},8595:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={size:{100:10,200:12,300:14,400:16,500:18,600:20,700:24,800:28,900:32},"line-height":{condensed:{100:12,200:16,300:18,400:20,500:24,600:24,700:28,800:32,900:40},standard:{100:12,200:16,300:20,400:24,500:28,600:28,700:32,800:40,900:44}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}},o={"heading-03":{"font-size":r.size[400],"line-height":r["line-height"].condensed[400]},"heading-04":{"font-size":r.size[500],"line-height":r["line-height"].condensed[500]},"heading-05":{"font-size":r.size[600],"line-height":r["line-height"].condensed[600]},"body-02":{"font-size":r.size[200],"line-height":r["line-height"].standard[200]},"body-03":{"font-size":r.size[300],"line-height":r["line-height"].standard[300]},"body-04":{"font-size":r.size[400],"line-height":r["line-height"].standard[400]}};t.default={font:r,surface:{background:{"base-default":"#FFFFFF","base-subtle":"#F7F8FA","base-strong":"#F1F2F6","positive-subtle":"#F7FCFA","critical-subtle":"#FFF7F7","info-subtle":"#F7FAFF","warning-subtle":"#FFE8CC"},container:{base:"#FFFFFF"},interactive:{actions:{"primary-default":"#6D28D9","primary-hover":"#5B21B6","primary-active":"#4C1D95","secondary-default":"#EBECF2","secondary-hover":"#D8DAE5","secondary-active":"#BABDCC","tertiary-default":"#82869900","tertiary-hover":"#82869908","passive-active":"#82869912"}}},text:{"text-primary":"#0A0B0D","text-secondary":"#44506A","text-tertiary":"#6A758D","text-muted":"#9BA1AE","text-on-colour":"#FFFFFF","text-info":"#002F8C","text-positive":"#0B7337","text-critical":"#B22424","text-warning":"#F76707","text-link":"#0044CC","text-accented":"#4C1D95"},icon:{"icon-primary":"#12131A","icon-secondary":"#696C80","icon-tertiary":"#6A758D","icon-muted":"#BABDCC","icon-on-colour":"#FFFFFF","icon-info":"#003CB2","icon-positive":"#0B7337","icon-critical":"#B22424","icon-warning":"#F76707","icon-link":"#0044CC","icon-accented":"#4C1D95"},border:{"critical-subtle":"#FFE5E5","critical-strong":"#B22424","positive-subtle":"#DAF2E4","positive-strong":"#0B7337","info-subtle":"#E0EBFF","info-strong":"#003CB2","default-subtle":"#F1F2F6","default-default":"#EBECF2","default-strong":"#D8DAE5","input-default":"#BABDCC","input-active":"#515466","warning-subtle":"#FFC078"},typography: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},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},968:e=>{e.exports=require("react-countdown-circle-timer")},2770:e=>{e.exports=require("styled-components")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}var o={};(()=>{var e=o,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(681));e.default=n.default})(),module.exports=o})();
|
|
1
|
+
(()=>{"use strict";var e={40681:(e,t,n)=>{var o=n(33751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(17826)),a=o(n(52462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(o,a,d):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(82015)),l=n(80968),p=n(24598),u=(o(n(29825)),["duration","remainingTime","onComplete","size","updateInterval","type","isPlaying","onOneMinuteLeft"]);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var c=Object.keys(p.SIZES).reduce((function(e,t){return e[t.toUpperCase()]=t,e}),{});t.default=function(e){var t=e.duration,n=void 0===t?1800:t,o=e.remainingTime,r=void 0===o?1800:o,s=e.onComplete,x=void 0===s?function(){}:s,f=e.size,F=void 0===f?"xl":f,m=e.updateInterval,g=void 0===m?1:m,h=e.type,b=void 0===h?"default":h,y=e.isPlaying,C=void 0===y||y,v=e.onOneMinuteLeft,E=void 0===v?function(){}:v,B=(0,a.default)(e,u),D=F!==c.SM&&F!==c.XS||"default"!==b?b:"inverted",w=p.COLOURS[D]||p.COLOURS.default,k=w.strokeColor,S=w.trailColor,A=p.SIZES[F]||p.SIZES.xl,O=A.diameter,H=A.strokeWidth,M=function(e){var t=e.remainingTime,n=(0,d.useState)(!1),o=(0,i.default)(n,2),r=o[0],a=o[1];if(t>0){var l=Math.floor((t-1)/60),u=l>1?l:1;return 1!==u||r||(E(!0),a(!0)),d.default.createElement(p.StyledTimerValue,{"data-testid":"remaining-time",size:F,colourType:D},u)}return null};return d.default.createElement(p.StyledTimerContainer,B,d.default.createElement(l.CountdownCircleTimer,{isPlaying:C,duration:n,initialRemainingTime:r,onComplete:x,size:O,colors:k,trailColor:S,strokeWidth:H,updateInterval:g},M))}},24598:(e,t,n)=>{var o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledTimerValue=t.StyledTimerContainer=t.SIZES=t.COLOURS=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in e)if("default"!==d&&{}.hasOwnProperty.call(e,d)){var l=i?Object.getOwnPropertyDescriptor(e,d):null;l&&(l.get||l.set)?Object.defineProperty(r,d,l):r[d]=e[d]}return r.default=e,n&&n.set(e,r),r}(n(32770)),i=n(33290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var d=t.COLOURS={default:{strokeColor:i.theme.color[0],trailColor:i.theme.color[1],digitColor:i.theme.color[10]},inverted:{strokeColor:i.theme.color[11],trailColor:i.theme.color[31],digitColor:i.theme.color[11]},notice:{strokeColor:i.theme.color[0],trailColor:i.theme.color[4],digitColor:i.theme.color[10]}},l=t.SIZES={xl:{diameter:60,strokeWidth:4,fontSize:"24px"},lg:{diameter:45,strokeWidth:3,fontSize:"18px"},md:{diameter:35,strokeWidth:3,fontSize:"14px"},sm:{diameter:30,strokeWidth:2,fontSize:"14px"},xs:{diameter:26,strokeWidth:2,fontSize:"13px"}};t.StyledTimerContainer=r.default.div.withConfig({displayName:"Countdownstyle__StyledTimerContainer",componentId:"sc-4m9682-0"})([""," display:inline-block;"],i.mixins.globalStyles),t.StyledTimerValue=r.default.div.withConfig({displayName:"Countdownstyle__StyledTimerValue",componentId:"sc-4m9682-1"})((function(e){var t=e.colourType,n=e.size,o=(d[t]||d.default).digitColor,i=l[n]||l.xl,a=i.diameter,p=i.fontSize;return(0,r.css)(["line-height:","px;color:",";font-size:",";font-weight:500;cursor:default;"],a,o,p)}))},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 u.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 r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"tokens",{enumerable:!0,get:function(){return a.default}});var r=o(n(61267)),i=o(n(60492)),a=o(n(74362)),d=o(n(19098)),l=o(n(9090)),p=o(n(35050)),u=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 r=n(32770),i=o(n(61267)),a=o(n(74362)),d=(0,r.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.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],i=o.lineHeight,d=o.lineHeightType,l=o.fontSize;return(0,r.css)(["line-height:",";font-size:",";font-weight:",";",""],a.default.font.desktop["line-height"][d][i],a.default.font.desktop.size[l],a.default.font.desktop.weight[t],n&&(0,r.css)(["@media ","{line-height:",";font-size:",";font-weight:",";}"],a.default.media.mobile,a.default.font.mobile["line-height"][d][i],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"}}}},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},52462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},17826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},80968:e=>{e.exports=require("react-countdown-circle-timer")},32770:e=>{e.exports=require("styled-components")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}var o={};(()=>{var e=o,t=n(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(n(40681));e.default=r.default})(),module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var
|
|
1
|
+
(()=>{"use strict";var r={58840:(r,e,t)=>{var n=t(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(t(82015)),a=(n(t(29825)),t(98151));e.default=function(r){var e=r.price,t=r.pointsMode,n=r.showDecimal,i=void 0!==n&&n,u=r.currencyCode,c=void 0===u?"AUD":u,l=r.showCurrencyCode,d=void 0!==l&&l;if((0,a.isNullOrEmptyOrUndefined)(e))return o.default.createElement("span",null);var s=t&&t.pointsPerDollar,f=s?parseFloat(e*t.pointsPerDollar):parseFloat(e),v=s?f.toLocaleString("en-AU"):i?(0,a.formatCurrency)(f,!0,c,d):(0,a.formatCurrencyNoCents)(f,c,d);return o.default.createElement("span",{"data-testid":"formatted-currency-value"},v.replace("-","- "))}},98151:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatCurrency=void 0,e.formatCurrencyNoCents=function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"AUD",t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Math.round(r);return n(o,!1,e,t)},e.getLocaleForCurrencyCode=e.formatPointsSigned=e.formatCurrencySigned=void 0,e.isNullOrEmptyOrUndefined=function(r){return o(r)||""===r},e.isNullOrUndefined=o;var t=e.getLocaleForCurrencyCode=function(r,e,t){var n=new Intl.NumberFormat(void 0,{style:"currency",currency:r,currencyDisplay:"narrowSymbol"}).format(e);return t?"".concat(r," ").concat(n):n},n=e.formatCurrency=function(r,e){var n=t(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AUD",r,arguments.length>3&&void 0!==arguments[3]&&arguments[3]);return e?n:n.replace(".00","")};function o(r){return null==r}e.formatCurrencySigned=function(r,e){if(r<0){var t=n(Math.abs(r),e);return"- (".concat(t,")")}return n(r,e)},e.formatPointsSigned=function(r){if(r<0){var e=Math.abs(r).toLocaleString("en-AU",{minimumFractionDigits:0});return"- (".concat(e," points)")}return"".concat(r.toLocaleString("en-AU",{minimumFractionDigits:0})," points")}},33751:r=>{r.exports=require("@babel/runtime/helpers/interopRequireDefault")},29825:r=>{r.exports=require("prop-types")},82015:r=>{r.exports=require("react")}},e={};function t(n){var o=e[n];if(void 0!==o)return o.exports;var a=e[n]={exports:{}};return r[n](a,a.exports,t),a.exports}var n={};(()=>{var r=n,e=t(33751);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=e(t(58840));r.default=o.default})(),module.exports=n})();
|