@webjet/react 4.0.3 → 4.0.5
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-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/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/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/icon.js +1 -1
- package/components/iframe-link.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/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/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/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/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/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/package.json +1 -1
package/components/breadcrumb.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={3049:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6031)),i=o(r(2462)),a=o(r(2015)),l=(o(r(9825)),o(r(3080))),d=r(4838),c=["items"];t.default=function(e){var t=e.items,r=(0,i.default)(e,c),o=function(e){var r,o;return e<t.length-1&&(!(null===(r=t[e])||void 0===r||!r.href)||!(null===(o=t[e])||void 0===o||!o.onClick))},u=t.map((function(e,r){var n,i=(null==e?void 0:e.state)||d.STATE.VISITED;return a.default.createElement(d.StyledBreadcrumbItem,{key:r},a.default.createElement(l.default,{condition:o(r)},a.default.createElement(d.StyledLink,{role:i,"data-testid":"breadcrumb-item-".concat(r),href:null==e?void 0:e.href,onClick:null==e?void 0:e.onClick,gaProps:(null==e?void 0:e.gaProps)||(n=null==e?void 0:e.text,{gaEvent:"breadcrumbs-link-interaction",gaData:{action:"click",value:n}})},e.text)),a.default.createElement(l.default,{condition:!o(r)},a.default.createElement(d.StyledText,{role:i,"data-testid":"breadcrumb-item-".concat(r)},e.text)),a.default.createElement(l.default,{condition:r<t.length-1},a.default.createElement(d.StyledArrowRight,null)))}));return a.default.createElement(d.StyledBreadcrumb,(0,n.default)({},r,{"data-testid":"breadcrumb"}),u)}},4838:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledLink=t.StyledBreadcrumbItem=t.StyledBreadcrumb=t.StyledArrowRight=t.STATE=void 0;var n=o(r(2770)),i=o(r(6899)),a=o(r(9675)),l=r(3290),d=t.STATE={VISITED:"visited",CURRENT:"current",UNVISITED:"unvisited"};t.StyledBreadcrumb=n.default.ol.withConfig({displayName:"Breadcrumbstyle__StyledBreadcrumb",componentId:"sc-8mo2lg-0"})(["display:block;padding:0;margin:0;list-style-type:none;"]),t.StyledBreadcrumbItem=n.default.li.withConfig({displayName:"Breadcrumbstyle__StyledBreadcrumbItem",componentId:"sc-8mo2lg-1"})(["display:inline-flex;padding:0;margin:0;gap:4px;align-items:center;font-size:12px;list-style-type:none;white-space:nowrap;&:not(:last-child){margin-right:4px;}&:last-child > span:not([role='","']){font-weight:700;}"],d.UNVISITED),t.StyledLink=(0,n.default)(a.default).withConfig({displayName:"Breadcrumbstyle__StyledLink",componentId:"sc-8mo2lg-2"})(["line-height:18px;font-weight:400;&:focus{box-shadow:none;}&:focus-visible{box-shadow:",";border-radius:4px;}"],l.themeV2.activeItemOutline),t.StyledText=n.default.span.withConfig({displayName:"Breadcrumbstyle__StyledText",componentId:"sc-8mo2lg-3"})(["line-height:18px;color:",";font-weight:400;&[role='","']{color:",";font-weight:400;}&[role='","']{font-weight:700;}"],l.themeV2.color[14],d.UNVISITED,l.color.greys.grey700,d.CURRENT),t.StyledArrowRight=(0,n.default)(i.default).withConfig({displayName:"Breadcrumbstyle__StyledArrowRight",componentId:"sc-8mo2lg-4"})(["fill:",";font-size:8px;"],l.color.grey900)},9473:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(9825)),i=function(e){var t=e.condition,r=void 0!==t&&t,o=e.children;return!0===r?o:null};i.propTypes={condition:n.default.bool},t.default=i},3080:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(9473));t.default=n.default},3799:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6031)),i=o(r(2462)),a=o(r(2015)),l=(o(r(9825)),r(3465)),d=r(3191),c=r(7236),u=["children","href","icon","gaProps","onClick"];t.default=function(e){var t=e.children,r=e.href,o=e.icon,s=e.gaProps,p=e.onClick,f=(0,i.default)(e,u),g=s||{},m=g.gaEvent,h=g.gaData,v=(0,l.isValidIconElement)(o),y=v?o:null,b=r||"#";return a.default.createElement(d.StyledLink,(0,n.default)({href:b,onClick:function(e){m&&(0,c.pushGAEvent)(m,h),p&&p(e),"#"===b&&(e.stopPropagation(),e.preventDefault())},hasIcon:v},f),v&&a.default.createElement(y,{size:16}),t)}},3191:(e,t,r)=>{var o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLink=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 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(n,l,d):n[l]=e[l]}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)}t.StyledLink=n.default.a.withConfig({displayName:"Linkstyle__StyledLink",componentId:"sc-pjn937-0"})(["display:inline-flex;gap:4px;align-items:center;&:link,&:visited{color:",";}&:hover{color:",";}",""],i.identifiers.textLink.color,i.identifiers.textLink.hoverColor,(function(e){return e.hasIcon&&(0,n.css)(["font-size:12px;line-height:18px;&:link,&:visited{svg{fill:",";}}&:hover{svg{fill:",";}}"],i.identifiers.textLink.color,i.identifiers.textLink.hoverColor)}))},9675:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(3799));t.default=n.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",offWhite:"#FFEADC",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},4341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={elevation01:"0px 1px 2px 0px rgba(51, 51, 51, 0.08)",elevation02:"0px 2px 4px 0px rgba(51, 51, 51, 0.10)",elevation03:"0px 6px 8px 0px rgba(51, 51, 51, 0.10)",elevation04:"0px 10px 16px 0px rgba(51, 51, 51, 0.10)",elevation05:"0px 16px 32px 0px rgba(51, 51, 51, 0.16)"}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=o(r(1267)),i=o(r(492)),a=o(r(9098)),l=o(r(9090)),d=o(r(5050)),c=o(r(509)),u=o(r(4341))},9098:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2770),i=o(r(1267)),a=(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},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:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",tabletAndSmallDesktop:"only screen and (min-width: 768px) and (max-width: 1199px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",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},3465:(e,t,r)=>{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=r(4513),n=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(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,r=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!r&&/(iPhone\sOS)\s([\d_]+)/.test(t)||r,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 r=0;r<e.length;r++){var n,i=null===(n=window.atob(e[r].split(".")[1]))||void 0===n?void 0:n.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,r=window.scrollY,o=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){o=window.innerHeight,n=e.offsetHeight})),document.addEventListener("scroll",(function(){n=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||n<=o?e.style.top="0px":window.scrollY<r?i<0?e.style.top=i+r-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+r-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),r=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,r=e.scrollTop,o=e.clientHeight,n=t-r;return n>=o-1&&n<=o+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,r=e.clientHeight;return!(t>=r-1&&t<=r+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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:r,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,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var n=o(r(1116)),i=o(r(7826));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var r=(0,i.default)(e,2),o=r[0],n=r[1];null!=n&&(t["data-ga-".concat(o)]=String(n))})),t},t.pushGAEvent=function(e,t){var r=window.dataLayer;e&&r&&r.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({event:e},t)}},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 r=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&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())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+"=",r=document.cookie.split(";"),o=[],n=0;n<r.length;n++){for(var i=r[n];" "===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,r){var o=window.location.hostname,n="localhost"===o?o:o.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(r||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")},6899:e=>{e.exports=require("@webjet/react-icons/arrow-right")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var 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(3049));e.default=n.default})(),module.exports=o})();
|
|
1
|
+
(()=>{"use strict";var e={3049:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),n(r(3080))),d=r(4838),c=["items"];t.default=function(e){var t=e.items,r=(0,i.default)(e,c),n=function(e){var r,n;return e<t.length-1&&(!(null===(r=t[e])||void 0===r||!r.href)||!(null===(n=t[e])||void 0===n||!n.onClick))},u=t.map((function(e,r){var o,i=(null==e?void 0:e.state)||d.STATE.VISITED;return a.default.createElement(d.StyledBreadcrumbItem,{key:r},a.default.createElement(l.default,{condition:n(r)},a.default.createElement(d.StyledLink,{role:i,"data-testid":"breadcrumb-item-".concat(r),href:null==e?void 0:e.href,onClick:null==e?void 0:e.onClick,gaProps:(null==e?void 0:e.gaProps)||(o=null==e?void 0:e.text,{gaEvent:"breadcrumbs-link-interaction",gaData:{action:"click",value:o}})},e.text)),a.default.createElement(l.default,{condition:!n(r)},a.default.createElement(d.StyledText,{role:i,"data-testid":"breadcrumb-item-".concat(r)},e.text)),a.default.createElement(l.default,{condition:r<t.length-1},a.default.createElement(d.StyledArrowRight,null)))}));return a.default.createElement(d.StyledBreadcrumb,(0,o.default)({},r,{"data-testid":"breadcrumb"}),u)}},4838:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledLink=t.StyledBreadcrumbItem=t.StyledBreadcrumb=t.StyledArrowRight=t.STATE=void 0;var o=n(r(2770)),i=n(r(6899)),a=n(r(9675)),l=r(3290),d=t.STATE={VISITED:"visited",CURRENT:"current",UNVISITED:"unvisited"};t.StyledBreadcrumb=o.default.ol.withConfig({displayName:"Breadcrumbstyle__StyledBreadcrumb",componentId:"sc-8mo2lg-0"})(["display:block;padding:0;margin:0;list-style-type:none;"]),t.StyledBreadcrumbItem=o.default.li.withConfig({displayName:"Breadcrumbstyle__StyledBreadcrumbItem",componentId:"sc-8mo2lg-1"})(["display:inline-flex;padding:0;margin:0;gap:4px;align-items:center;font-size:12px;list-style-type:none;white-space:nowrap;&:not(:last-child){margin-right:4px;}&:last-child > span:not([role='","']){font-weight:700;}"],d.UNVISITED),t.StyledLink=(0,o.default)(a.default).withConfig({displayName:"Breadcrumbstyle__StyledLink",componentId:"sc-8mo2lg-2"})(["line-height:18px;font-weight:400;&:focus{box-shadow:none;}&:focus-visible{box-shadow:",";border-radius:4px;}"],l.themeV2.activeItemOutline),t.StyledText=o.default.span.withConfig({displayName:"Breadcrumbstyle__StyledText",componentId:"sc-8mo2lg-3"})(["line-height:18px;color:",";font-weight:400;&[role='","']{color:",";font-weight:400;}&[role='","']{font-weight:700;}"],l.themeV2.color[14],d.UNVISITED,l.color.greys.grey700,d.CURRENT),t.StyledArrowRight=(0,o.default)(i.default).withConfig({displayName:"Breadcrumbstyle__StyledArrowRight",componentId:"sc-8mo2lg-4"})(["fill:",";font-size:8px;"],l.color.grey900)},9473:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(9825)),i=function(e){var t=e.condition,r=void 0!==t&&t,n=e.children;return!0===r?n:null};i.propTypes={condition:o.default.bool},t.default=i},3080:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(9473));t.default=o.default},3799:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),r(3465)),d=r(3191),c=r(7236),u=["children","href","icon","gaProps","onClick"];t.default=function(e){var t=e.children,r=e.href,n=e.icon,s=e.gaProps,p=e.onClick,f=(0,i.default)(e,u),g=s||{},m=g.gaEvent,h=g.gaData,v=(0,l.isValidIconElement)(n),y=v?n:null,b=r||"#";return a.default.createElement(d.StyledLink,(0,o.default)({href:b,onClick:function(e){m&&(0,c.pushGAEvent)(m,h),p&&p(e),"#"===b&&(e.stopPropagation(),e.preventDefault())},hasIcon:v},f),v&&a.default.createElement(y,{size:16}),t)}},3191:(e,t,r)=>{var n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLink=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.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,r&&r.set(e,o),o}(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)}t.StyledLink=o.default.a.withConfig({displayName:"Linkstyle__StyledLink",componentId:"sc-pjn937-0"})(["display:inline-flex;gap:4px;align-items:center;&:link,&:visited{color:",";}&:hover{color:",";}",""],i.identifiers.textLink.color,i.identifiers.textLink.hoverColor,(function(e){return e.hasIcon&&(0,o.css)(["font-size:12px;line-height:18px;&:link,&:visited{svg{fill:",";}}&:hover{svg{fill:",";}}"],i.identifiers.textLink.color,i.identifiers.textLink.hoverColor)}))},9675:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(3799));t.default=o.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",offWhite:"#FFEADC",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},4341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={elevation01:"0px 1px 2px 0px rgba(51, 51, 51, 0.08)",elevation02:"0px 2px 4px 0px rgba(51, 51, 51, 0.10)",elevation03:"0px 6px 8px 0px rgba(51, 51, 51, 0.10)",elevation04:"0px 10px 16px 0px rgba(51, 51, 51, 0.10)",elevation05:"0px 16px 32px 0px rgba(51, 51, 51, 0.16)"}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,r)=>{var n=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 u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(1267)),i=n(r(492)),a=n(r(9098)),l=n(r(9090)),d=n(r(5050)),c=n(r(509)),u=n(r(4341))},9098:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(2770),i=n(r(1267)),a=(0,o.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},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"],n={fontFamily:{primary:"inherit",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",tabletAndSmallDesktop:"only screen and (min-width: 768px) and (max-width: 1199px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},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"],n={fontFamily:{icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},3465:(e,t,r)=>{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=r(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,r=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!r&&/(iPhone\sOS)\s([\d_]+)/.test(t)||r,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 r=0;r<e.length;r++){var o,i=null===(o=window.atob(e[r].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,r=window.scrollY,n=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=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<=n?e.style.top="0px":window.scrollY<r?i<0?e.style.top=i+r-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+r-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),r=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,r=e.scrollTop,n=e.clientHeight,o=t-r;return o>=n-1&&o<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,r=e.clientHeight;return!(t>=r-1&&t<=r+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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:r,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,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var o=n(r(1116)),i=n(r(7826));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var r=(0,i.default)(e,2),n=r[0],o=r[1];null!=o&&(t["data-ga-".concat(n)]=String(o))})),t},t.pushGAEvent=function(e,t){var r=window.dataLayer;e&&r&&r.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({event:e},t)}},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 r=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&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())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+"=",r=document.cookie.split(";"),n=[],o=0;o<r.length;o++){for(var i=r[o];" "===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,r){var n=window.location.hostname,o="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(r||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")},6899:e=>{e.exports=require("@webjet/react-icons/arrow-right")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(3049));e.default=o.default})(),module.exports=n})();
|
package/components/button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={3031:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),n(r(184))),c=r(676),d=r(3465),s=r(7236),u=["isLoading","type","variant","icon","iconColor","disabled","iconLeftAlign","children","size","gaProps","onClick"];t.default=function(e){var t=e.isLoading,r=void 0!==t&&t,n=e.type,p=void 0===n?"button":n,f=e.variant,g=void 0===f?"standard":f,v=e.icon,b=e.iconColor,h=e.disabled,m=void 0!==h&&h,y=e.iconLeftAlign,w=void 0!==y&&y,x=e.children,F=void 0===x?null:x,E=e.size,S=void 0===E?"lg":E,C=e.gaProps,B=e.onClick,D=(0,i.default)(e,u),j="standard"!==g,O=!!(0,d.isValidIconElement)(v)&&v,M=!!(0,d.isValidIconName)(v)&&v;return a.default.createElement(c.StyledButton,(0,o.default)({},D,{type:p,$variant:g,$icon:v,$iconLeftAlign:w,disabled:m,$isLoading:r,size:S,onClick:function(e){C&&null!=C&&C.gaEvent&&(0,s.pushGAEvent)(null==C?void 0:C.gaEvent,null==C?void 0:C.gaData),B&&B(e)}}),r&&a.default.createElement(l.default,{reverse:j}),F&&a.default.createElement(c.StyledText,{$isLoading:r,variant:g,disabled:m},F),O&&a.default.createElement(O,{fill:b,"data-testid":"button-icon",role:"button-icon"}),!O&&M&&a.default.createElement(c.StyledIcon,{name:M,$iconColor:b,disabled:m,variant:g,"data-testid":"button-icon",role:"button-icon"}))}},676:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=n(r(2846)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={__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(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2770)),l=r(3290),c=r(7427),d=r(9292);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 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,r=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?(r=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",r)):u[e].bgColor,u[e].fontWeight,u[e].color,u[e].hoverColor,u[e].fontWeight,u[e].color);var r}(t,r),f(t,r))}),(function(e){var t=e.size;return t&&(0,c.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&&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,r=e.disabled;return f(t,r)})),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,r=e.disabled;return f(t,r)}))}))},2078:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2770)).default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:'WebjetIcons';display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],(function(e){var t=e.iconName;return i(t)})),i=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=o},2846:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),n(r(2078))),c=["name"];t.default=function(e){var t=e.name,r=(0,i.default)(e,c);return a.default.createElement(l.default,(0,o.default)({iconName:t},r))}},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 n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return d.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 c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(1267)),i=n(r(492)),a=n(r(9098)),l=n(r(9090)),c=n(r(5050)),d=n(r(509)),s=n(r(4341))},9098:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(2770),i=n(r(1267)),a=(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",tabletAndSmallDesktop:"only screen and (min-width: 768px) and (max-width: 1199px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},9945:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),r(7846)),c=["reverse"];t.default=function(e){var t=e.reverse,r=void 0!==t&&t,n=(0,i.default)(e,c);return a.default.createElement(l.StyledSpinner,(0,o.default)({reverse:r,"data-testid":"spinner",role:"spinner"},n))}},7846:(e,t,r)=>{var n=r(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"!=n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}(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)}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,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(9945));t.default=o.default},3465:(e,t,r)=>{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=r(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,r=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!r&&/(iPhone\sOS)\s([\d_]+)/.test(t)||r,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 r=0;r<e.length;r++){var o,i=null===(o=window.atob(e[r].split(".")[1]))||void 0===o?void 0:o.toString("ascii"),a=JSON.parse(i),l=a.firstName,c=a.email,d=a.dev;window.location.hostname.includes("dev.webjet")&&!d||(t={firstName:l,email:c})}return t}),l=(t.isUserLoggedIn=function(){return!!a().firstName},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,r=window.scrollY,n=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=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<=n?e.style.top="0px":window.scrollY<r?i<0?e.style.top=i+r-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+r-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),r=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,r=e.scrollTop,n=e.clientHeight,o=t-r;return o>=n-1&&o<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,r=e.clientHeight;return!(t>=r-1&&t<=r+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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:r,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,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var o=n(r(1116)),i=n(r(7826));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var r=(0,i.default)(e,2),n=r[0],o=r[1];null!=o&&(t["data-ga-".concat(n)]=String(o))})),t},t.pushGAEvent=function(e,t){var r=window.dataLayer;e&&r&&r.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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 r=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&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())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+"=",r=document.cookie.split(";"),n=[],o=0;o<r.length;o++){for(var i=r[o];" "===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,r){var n=window.location.hostname,o="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(r||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")},9292:e=>{e.exports=require("polished")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(3031));e.default=o.default})(),module.exports=n})();
|
|
1
|
+
(()=>{"use strict";var e={3031:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),n(r(184))),c=r(676),d=r(3465),s=r(7236),u=["isLoading","type","variant","icon","iconColor","disabled","iconLeftAlign","children","size","gaProps","onClick"];t.default=function(e){var t=e.isLoading,r=void 0!==t&&t,n=e.type,p=void 0===n?"button":n,f=e.variant,g=void 0===f?"standard":f,v=e.icon,b=e.iconColor,h=e.disabled,m=void 0!==h&&h,y=e.iconLeftAlign,w=void 0!==y&&y,x=e.children,F=void 0===x?null:x,E=e.size,S=void 0===E?"lg":E,C=e.gaProps,B=e.onClick,D=(0,i.default)(e,u),j="standard"!==g,O=!!(0,d.isValidIconElement)(v)&&v,M=!!(0,d.isValidIconName)(v)&&v;return a.default.createElement(c.StyledButton,(0,o.default)({},D,{type:p,$variant:g,$icon:v,$iconLeftAlign:w,disabled:m,$isLoading:r,size:S,onClick:function(e){C&&null!=C&&C.gaEvent&&(0,s.pushGAEvent)(null==C?void 0:C.gaEvent,null==C?void 0:C.gaData),B&&B(e)}}),r&&a.default.createElement(l.default,{reverse:j}),F&&a.default.createElement(c.StyledText,{$isLoading:r,variant:g,disabled:m},F),O&&a.default.createElement(O,{fill:b,"data-testid":"button-icon",role:"button-icon"}),!O&&M&&a.default.createElement(c.StyledIcon,{name:M,$iconColor:b,disabled:m,variant:g,"data-testid":"button-icon",role:"button-icon"}))}},676:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=n(r(2846)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={__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(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2770)),l=r(3290),c=r(7427),d=r(9292);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 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,r=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?(r=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",r)):u[e].bgColor,u[e].fontWeight,u[e].color,u[e].hoverColor,u[e].fontWeight,u[e].color);var r}(t,r),f(t,r))}),(function(e){var t=e.size;return t&&(0,c.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&&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,r=e.disabled;return f(t,r)})),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,r=e.disabled;return f(t,r)}))}))},2078:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2770)),i=r(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,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),n(r(2078))),c=["name"];t.default=function(e){var t=e.name,r=(0,i.default)(e,c);return a.default.createElement(l.default,(0,o.default)({iconName:t},r))}},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 n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return d.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 c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(1267)),i=n(r(492)),a=n(r(9098)),l=n(r(9090)),c=n(r(5050)),d=n(r(509)),s=n(r(4341))},9098:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(2770),i=n(r(1267)),a=(0,o.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},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"],n={fontFamily:{primary:"inherit",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",tabletAndSmallDesktop:"only screen and (min-width: 768px) and (max-width: 1199px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},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"],n={fontFamily:{icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},9945:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),r(7846)),c=["reverse"];t.default=function(e){var t=e.reverse,r=void 0!==t&&t,n=(0,i.default)(e,c);return a.default.createElement(l.StyledSpinner,(0,o.default)({reverse:r,"data-testid":"spinner",role:"spinner"},n))}},7846:(e,t,r)=>{var n=r(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"!=n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}(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)}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,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(9945));t.default=o.default},3465:(e,t,r)=>{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=r(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,r=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!r&&/(iPhone\sOS)\s([\d_]+)/.test(t)||r,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 r=0;r<e.length;r++){var o,i=null===(o=window.atob(e[r].split(".")[1]))||void 0===o?void 0:o.toString("ascii"),a=JSON.parse(i),l=a.firstName,c=a.email,d=a.dev;window.location.hostname.includes("dev.webjet")&&!d||(t={firstName:l,email:c})}return t}),l=(t.isUserLoggedIn=function(){return!!a().firstName},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,r=window.scrollY,n=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=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<=n?e.style.top="0px":window.scrollY<r?i<0?e.style.top=i+r-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+r-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),r=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,r=e.scrollTop,n=e.clientHeight,o=t-r;return o>=n-1&&o<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,r=e.clientHeight;return!(t>=r-1&&t<=r+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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:r,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,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var o=n(r(1116)),i=n(r(7826));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var r=(0,i.default)(e,2),n=r[0],o=r[1];null!=o&&(t["data-ga-".concat(n)]=String(o))})),t},t.pushGAEvent=function(e,t){var r=window.dataLayer;e&&r&&r.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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 r=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&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())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+"=",r=document.cookie.split(";"),n=[],o=0;o<r.length;o++){for(var i=r[o];" "===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,r){var n=window.location.hostname,o="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(r||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")},9292:e=>{e.exports=require("polished")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(3031));e.default=o.default})(),module.exports=n})();
|
package/components/card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={3251:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(2462)),i=o(n(2015)),a=n(1552),d=(o(n(9825)),o(n(3080))),l=["header","centered","headerImage","contentPadding"];t.default=function(e){var t=e.header,n=e.centered,o=e.headerImage,c=e.contentPadding,u=void 0===c?12:c,s=(0,r.default)(e,l),p=o||{},f=p.url,g=p.height,h=p.label||{},m=h.text,x=h.bgColor;return i.default.createElement(a.StyledCard,s,i.default.createElement(d.default,{condition:!!t},i.default.createElement(a.StyledHeader,{centered:n,"data-testid":"header",role:"header"},t)),i.default.createElement(d.default,{condition:!!f},i.default.createElement(a.StyledHeaderImage,{url:f,height:g,"data-testid":"header-image"},i.default.createElement(d.default,{condition:!!m},i.default.createElement(a.StyledLabel,{text:m,bgColor:x})))),i.default.createElement(a.StyledContent,{centered:n,"data-testid":"content",role:"content",contentPadding:u},e.children))}},1552:(e,t,n)=>{var o=n(3751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLabel=t.StyledHeaderImage=t.StyledHeader=t.StyledContent=t.StyledCard=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 n=l(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(2770)),a=n(3290),d=o(n(5447));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}t.StyledCard=i.default.div.withConfig({displayName:"Cardstyle__StyledCard",componentId:"sc-197xjbh-0"})((function(){return(0,i.css)([""," box-shadow:0 0 0 1px "," inset;border-radius:3px;margin-bottom:",";overflow:hidden;"],a.mixins.globalStyles,a.theme.color[4],a.theme.gutterWidth)})),t.StyledHeader=i.default.h3.withConfig({displayName:"Cardstyle__StyledHeader",componentId:"sc-197xjbh-1"})((function(){return(0,i.css)([""," height:50px;font-size:18px;font-weight:bold;line-height:26px;color:",";background-color:",";width:100%;border-radius:3px 3px 0 0;margin:0;padding:",";",""],a.mixins.globalStyles,a.theme.color[11],a.theme.color[8],a.theme.gutterWidth,(function(e){return e.centered&&(0,i.css)(["text-align:center;"])}))})),t.StyledContent=i.default.div.withConfig({displayName:"Cardstyle__StyledContent",componentId:"sc-197xjbh-2"})((function(){return(0,i.css)(["padding:",";position:relative;",""],(function(e){return e.contentPadding+"px"}),(function(e){return e.centered&&(0,i.css)(["text-align:center;"])}))})),t.StyledHeaderImage=i.default.div.withConfig({displayName:"Cardstyle__StyledHeaderImage",componentId:"sc-197xjbh-3"})(["",""],(function(e){var t=e.url,n=e.height;return(0,i.css)(["background-image:url(",");height:","px;background-position:center;background-size:cover;position:relative;"],t,n||120)})),t.StyledLabel=(0,i.default)(d.default).withConfig({displayName:"Cardstyle__StyledLabel",componentId:"sc-197xjbh-4"})(["position:absolute;top:",";right:",";"],a.theme.gutterWidth,a.theme.gutterWidth)},9473:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(9825)),i=function(e){var t=e.condition,n=void 0!==t&&t,o=e.children;return!0===n?o:null};i.propTypes={condition:r.default.bool},t.default=i},3080:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(9473));t.default=r.default},6637:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6031)),i=o(n(2462)),a=o(n(2015)),d=(o(n(9825)),o(n(7010))),l=n(250),c=n(3465),u=n(3290),s=["text","icon","bgColor","iconLeftAlign","superscriptText","variant","size"],p={info:{icon:d.default}};t.default=function(e){var t,n,o=e.text,d=e.icon,f=e.bgColor,g=void 0===f?u.themeV2.color[0]:f,h=e.iconLeftAlign,m=void 0!==h&&h,x=e.superscriptText,v=e.variant,b=void 0===v?"standard":v,y=e.size,w=void 0===y?"lg":y,F=(0,i.default)(e,s),C=null!==(t=null===(n=p[b])||void 0===n?void 0:n.icon)&&void 0!==t?t:!!(0,c.isValidIconElement)(d)&&d;return a.default.createElement(l.StyledLabel,(0,r.default)({},F,{"data-testid":"label",bgColor:g,iconLeftAlign:m,variant:b,size:w}),o,x&&a.default.createElement("sup",null,x),C&&a.default.createElement(C,{fill:u.themeV2.color[11]}))}},250:(e,t,n)=>{var o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLabel=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(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.StyledLabel=r.default.span.withConfig({displayName:"Labelstyle__StyledLabel",componentId:"sc-19jzmcs-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:4px 8px;height:26px;background:",";font-size:12px;font-weight:500;color:",";line-height:18px;white-space:nowrap;border-radius:4px;& > svg{width:16px;height:16px;margin:0 0 0 8px;}& > sup{color:",";font-size:0.6em;top:-3px;margin-left:3px;}"," "," ",""],i.mixins.globalStyles,(function(e){return e.bgColor}),i.themeV2.color[11],i.themeV2.color[11],(function(e){return e.iconLeftAlign&&(0,r.css)(["& > svg{order:-1;margin:0 8px 0 0;}"])}),(function(e){return"sm"===e.size&&(0,r.css)(["padding:4px;height:19px;font-size:10px;line-height:11px;& > svg{width:11px;height:11px;margin:0 0 0 4px;}",""],(function(e){return e.iconLeftAlign&&(0,r.css)(["& > svg{margin:0 4px 0 0;}"])}))}),(function(e){return"info"===e.variant&&(0,r.css)(["height:22px;padding:2px 4px;border-radius:16px 4px 4px 16px;& > svg{order:-1;margin:0 4px 0 0;}",""],(function(e){return"sm"===e.size&&(0,r.css)(["height:18px;line-height:14px;& > svg{width:14px;height:14px;}"])}))}))},5447:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6637));t.default=r.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",offWhite:"#FFEADC",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},4341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={elevation01:"0px 1px 2px 0px rgba(51, 51, 51, 0.08)",elevation02:"0px 2px 4px 0px rgba(51, 51, 51, 0.10)",elevation03:"0px 6px 8px 0px rgba(51, 51, 51, 0.10)",elevation04:"0px 10px 16px 0px rgba(51, 51, 51, 0.10)",elevation05:"0px 16px 32px 0px rgba(51, 51, 51, 0.16)"}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=o(n(1267)),i=o(n(492)),a=o(n(9098)),d=o(n(9090)),l=o(n(5050)),c=o(n(509)),u=o(n(4341))},9098:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2770),i=o(n(1267)),a=(0,r.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},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"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",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},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"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",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},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 o=n(4513),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),d=a.firstName,l=a.email,c=a.dev;window.location.hostname.includes("dev.webjet")&&!c||(t={firstName:d,email:l})}return t}),d=(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){d(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}},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}},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)}},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")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},7010:e=>{e.exports=require("@webjet/react-icons/common/info-circle")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770: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(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(n(3251));e.default=r.default})(),module.exports=o})();
|
|
1
|
+
(()=>{"use strict";var e={3251:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(2462)),i=o(n(2015)),a=n(1552),d=(o(n(9825)),o(n(3080))),l=["header","centered","headerImage","contentPadding"];t.default=function(e){var t=e.header,n=e.centered,o=e.headerImage,c=e.contentPadding,u=void 0===c?12:c,s=(0,r.default)(e,l),p=o||{},g=p.url,f=p.height,h=p.label||{},m=h.text,x=h.bgColor;return i.default.createElement(a.StyledCard,s,i.default.createElement(d.default,{condition:!!t},i.default.createElement(a.StyledHeader,{centered:n,"data-testid":"header",role:"header"},t)),i.default.createElement(d.default,{condition:!!g},i.default.createElement(a.StyledHeaderImage,{url:g,height:f,"data-testid":"header-image"},i.default.createElement(d.default,{condition:!!m},i.default.createElement(a.StyledLabel,{text:m,bgColor:x})))),i.default.createElement(a.StyledContent,{centered:n,"data-testid":"content",role:"content",contentPadding:u},e.children))}},1552:(e,t,n)=>{var o=n(3751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLabel=t.StyledHeaderImage=t.StyledHeader=t.StyledContent=t.StyledCard=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 n=l(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(2770)),a=n(3290),d=o(n(5447));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}t.StyledCard=i.default.div.withConfig({displayName:"Cardstyle__StyledCard",componentId:"sc-197xjbh-0"})((function(){return(0,i.css)([""," box-shadow:0 0 0 1px "," inset;border-radius:3px;margin-bottom:",";overflow:hidden;"],a.mixins.globalStyles,a.theme.color[4],a.theme.gutterWidth)})),t.StyledHeader=i.default.h3.withConfig({displayName:"Cardstyle__StyledHeader",componentId:"sc-197xjbh-1"})((function(){return(0,i.css)([""," height:50px;font-size:18px;font-weight:bold;line-height:26px;color:",";background-color:",";width:100%;border-radius:3px 3px 0 0;margin:0;padding:",";",""],a.mixins.globalStyles,a.theme.color[11],a.theme.color[8],a.theme.gutterWidth,(function(e){return e.centered&&(0,i.css)(["text-align:center;"])}))})),t.StyledContent=i.default.div.withConfig({displayName:"Cardstyle__StyledContent",componentId:"sc-197xjbh-2"})((function(){return(0,i.css)(["padding:",";position:relative;",""],(function(e){return e.contentPadding+"px"}),(function(e){return e.centered&&(0,i.css)(["text-align:center;"])}))})),t.StyledHeaderImage=i.default.div.withConfig({displayName:"Cardstyle__StyledHeaderImage",componentId:"sc-197xjbh-3"})(["",""],(function(e){var t=e.url,n=e.height;return(0,i.css)(["background-image:url(",");height:","px;background-position:center;background-size:cover;position:relative;"],t,n||120)})),t.StyledLabel=(0,i.default)(d.default).withConfig({displayName:"Cardstyle__StyledLabel",componentId:"sc-197xjbh-4"})(["position:absolute;top:",";right:",";"],a.theme.gutterWidth,a.theme.gutterWidth)},9473:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(9825)),i=function(e){var t=e.condition,n=void 0!==t&&t,o=e.children;return!0===n?o:null};i.propTypes={condition:r.default.bool},t.default=i},3080:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(9473));t.default=r.default},6637:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6031)),i=o(n(2462)),a=o(n(2015)),d=(o(n(9825)),o(n(7010))),l=n(250),c=n(3465),u=n(3290),s=["text","icon","bgColor","iconLeftAlign","superscriptText","variant","size"],p={info:{icon:d.default}};t.default=function(e){var t,n,o=e.text,d=e.icon,g=e.bgColor,f=void 0===g?u.themeV2.color[0]:g,h=e.iconLeftAlign,m=void 0!==h&&h,x=e.superscriptText,v=e.variant,b=void 0===v?"standard":v,y=e.size,w=void 0===y?"lg":y,F=(0,i.default)(e,s),C=null!==(t=null===(n=p[b])||void 0===n?void 0:n.icon)&&void 0!==t?t:!!(0,c.isValidIconElement)(d)&&d;return a.default.createElement(l.StyledLabel,(0,r.default)({},F,{"data-testid":"label",bgColor:f,iconLeftAlign:m,variant:b,size:w}),o,x&&a.default.createElement("sup",null,x),C&&a.default.createElement(C,{fill:u.themeV2.color[11]}))}},250:(e,t,n)=>{var o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLabel=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(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.StyledLabel=r.default.span.withConfig({displayName:"Labelstyle__StyledLabel",componentId:"sc-19jzmcs-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:4px 8px;height:26px;background:",";font-size:12px;font-weight:500;color:",";line-height:18px;white-space:nowrap;border-radius:4px;& > svg{width:16px;height:16px;margin:0 0 0 8px;}& > sup{color:",";font-size:0.6em;top:-3px;margin-left:3px;}"," "," ",""],i.mixins.globalStyles,(function(e){return e.bgColor}),i.themeV2.color[11],i.themeV2.color[11],(function(e){return e.iconLeftAlign&&(0,r.css)(["& > svg{order:-1;margin:0 8px 0 0;}"])}),(function(e){return"sm"===e.size&&(0,r.css)(["padding:4px;height:19px;font-size:10px;line-height:11px;& > svg{width:11px;height:11px;margin:0 0 0 4px;}",""],(function(e){return e.iconLeftAlign&&(0,r.css)(["& > svg{margin:0 4px 0 0;}"])}))}),(function(e){return"info"===e.variant&&(0,r.css)(["height:22px;padding:2px 4px;border-radius:16px 4px 4px 16px;& > svg{order:-1;margin:0 4px 0 0;}",""],(function(e){return"sm"===e.size&&(0,r.css)(["height:18px;line-height:14px;& > svg{width:14px;height:14px;}"])}))}))},5447:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6637));t.default=r.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",offWhite:"#FFEADC",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},4341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={elevation01:"0px 1px 2px 0px rgba(51, 51, 51, 0.08)",elevation02:"0px 2px 4px 0px rgba(51, 51, 51, 0.10)",elevation03:"0px 6px 8px 0px rgba(51, 51, 51, 0.10)",elevation04:"0px 10px 16px 0px rgba(51, 51, 51, 0.10)",elevation05:"0px 16px 32px 0px rgba(51, 51, 51, 0.16)"}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=o(n(1267)),i=o(n(492)),a=o(n(9098)),d=o(n(9090)),l=o(n(5050)),c=o(n(509)),u=o(n(4341))},9098:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2770),i=o(n(1267)),a=(0,r.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},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"],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},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"],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},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 o=n(4513),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),d=a.firstName,l=a.email,c=a.dev;window.location.hostname.includes("dev.webjet")&&!c||(t={firstName:d,email:l})}return t}),d=(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){d(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}},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}},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)}},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")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},7010:e=>{e.exports=require("@webjet/react-icons/common/info-circle")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770: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(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(n(3251));e.default=r.default})(),module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={6730:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(6031)),a=n(r(7826)),l=n(r(2462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var n={__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(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2015)),c=(n(r(9825)),n(r(9746))),s=r(73),u=r(2697),p=n(r(9784)),f=n(r(2221)),b=n(r(8982)),h=n(r(3892)),g=["data","onChange","cardMinWidth","cardHeight","singleSelect"];function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}t.default=function(e){var t=e.data,r=e.onChange,n=e.cardMinWidth,o=void 0===n?99:n,m=e.cardHeight,v=void 0===m?96:m,x=e.singleSelect,y=void 0!==x&&x,F=(0,l.default)(e,g);if(!t)return null;var k=(0,d.useRef)(),C=(0,d.useState)(t),w=(0,a.default)(C,2),D=w[0],E=w[1],B=(0,d.useState)(1),O=(0,a.default)(B,2),j=O[0],M=O[1],A=(0,d.useState)({}),S=(0,a.default)(A,2),P=S[0],_=S[1],W=function(e){_({clientX:e.clientX,clientY:e.clientY}),e.preventDefault()},H=function(e){return function(t){if(P.clientX!==t.clientX||P.clientY!==t.clientY)t.preventDefault();else{var n=(0,u.updateItem)(D,e,y,D[e].selectAll);E(n),r&&r(n,e)}}};(0,d.useEffect)((function(){var e=(0,u.calculateNumberOfCardsToShow)(k.current.clientWidth,o,t.length);M(e),E(t)}),[t]),(0,d.useEffect)((function(){var e=function(){var e;if(null!=k&&null!==(e=k.current)&&void 0!==e&&e.clientWidth){var t=(0,u.calculateNumberOfCardsToShow)(k.current.clientWidth,o,D.length);M(t)}};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]);var I={fill:"#4D4D4D",width:"16px",height:"16px"},z=function(e){var t=e.direction,r=e.className,n=e.onClick;return d.default.createElement(s.StyledArrowWrapper,{className:r,onClick:n,cardHeight:v,direction:t},"left"===t?d.default.createElement(p.default,I):d.default.createElement(f.default,I))},T={dots:!1,infinite:!1,speed:500,slidesToShow:j,slidesToScroll:j-1,prevArrow:d.default.createElement(z,{direction:"left"}),nextArrow:d.default.createElement(z,{direction:"right"})};return d.default.createElement(s.StyledWrapper,(0,i.default)({ref:k,limitCardWidth:j===D.length,cardHeight:v,cardMinWidth:o},F),d.default.createElement(c.default,T,D.map((function(e,t){var r=(0,h.default)({active:e.selected,featured:e.isFeatured});return d.default.createElement(s.StyledCardWrapper,{key:t,className:r,onMouseDown:W,onClick:H(t),selected:e.selected,cardHeight:v,cardMinWidth:o},d.default.createElement(b.default,{item:e,cardMinWidth:o,cardHeight:v}))}))))}},73:(e,t,r)=>{var n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledContentCard=t.StyledCardWrapper=t.StyledArrowWrapper=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.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,r&&r.set(e,o),o}(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 l=(0,o.css)(['content:" ";position:absolute;pointer-events:none;display:block;width:102%;height:12px;clip-path:polygon(50% 100%,0% 0%,100% 0%);']),d=(0,o.css)([".slick-slider{position:relative;display:block;box-sizing:border-box;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent;}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0;}.slick-list:focus{outline:none;}.slick-list.dragging{cursor:pointer;cursor:hand;}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.slick-track{position:relative;top:0;left:0;width:100%;display:block;}.slick-track:before,.slick-track:after{display:table;content:'';}.slick-track:after{clear:both;}.slick-loading .slick-track{visibility:hidden;}.slick-slide{display:none;float:left;height:100%;min-height:1px;}[dir='rtl'] .slick-slide{float:right;}.slick-slide img{display:block;}.slick-slide.slick-loading img{display:none;}.slick-slide.dragging img{pointer-events:none;}.slick-initialized .slick-slide{display:block;}.slick-loading .slick-slide{visibility:hidden;}.slick-vertical .slick-slide{display:block;height:auto;}"]),c=(t.StyledArrowWrapper=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledArrowWrapper",componentId:"sc-69jdcv-0"})(["width:31px;background:linear-gradient(275deg,rgba(223,223,223,0.90) 3.86%,rgba(223,223,223,0.00) 100%);z-index:1;text-align:center;>svg{vertical-align:middle;}&:hover{background:linear-gradient(275deg,rgba(196,196,196,0.90) 3.86%,rgba(196,196,196,0) 96.35%);}border-radius:0 3px 3px 0;"," ",""],(function(e){return"left"===e.direction&&(0,o.css)(["border-radius:3px 0 0 3px;background:linear-gradient(85deg,rgba(223,223,223,0.90) 3.86%,rgba(223,223,223,0.00) 96.35%);&:hover{background:linear-gradient(85deg,rgba(196,196,196,0.90) 3.86%,rgba(196,196,196,0) 96.35%);}"])}),(function(e){var t=e.cardHeight;return t&&(0,o.css)(["height:","px;line-height:","px;"],t,t)})),t.StyledCardWrapper=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledCardWrapper",componentId:"sc-69jdcv-1"})(["display:flex !important;justify-content:center;align-items:center;flex-direction:column;position:relative;color:",";background:",";border-right:1px solid ",";div{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"," &:focus-visible{outline:none;}@media ","{&:hover{cursor:pointer;color:",";font-weight:700;}}"," "],i.theme.color[10],i.theme.color[11],i.theme.color[3],(function(e){var t=e.cardHeight,r=e.cardMinWidth;return t&&r&&(0,o.css)(["height:","px;min-width:","px !important;"],t,r)}),i.theme.media.desktopAndWideDesktop,i.theme.color[10],(function(e){return e.selected&&(0,o.css)(["background:",";border-radius:0 0 2px 2px;&::before{"," bottom:-12px;background:",";}&::after{"," width:100%;bottom:-11px;background:",";}"],i.theme.color[3],l,i.theme.color[3],l,i.theme.color[3])})),(0,o.css)(['content:" ";position:absolute;pointer-events:none;display:block;width:50px;top:0;background:',";z-index:1;background-color:transparent;border-radius:4px;"],i.theme.color[3]));t.StyledWrapper=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledWrapper",componentId:"sc-69jdcv-2"})((function(e){var t=e.cardHeight;return(0,o.css)([""," "," position:relative;.slick-slider{width:100%;border-top:1px solid #DFDFDF;&::after{"," right:0;border-right:1px solid #DFDFDF;height:","px;}&::before{"," left:0;border-left:1px solid #DFDFDF;height:","px;z-index:2;}.slick-list{border-radius:4px;&::after{"," width:100%;height:50px;top:calc(","px - 49px);z-index:-1;border-bottom:1px solid #DFDFDF;}}.slick-arrow{position:absolute;top:0;&:hover{cursor:pointer;}}.slick-prev{left:0;}.slick-next{right:0;}.slick-disabled{display:none;}.slick-list{width:100%;margin:0;height:",'px;&::before{height:calc(100% - 13px);width:100%;content:"";background-color:#fff;position:absolute;}.slick-track{.slick-slide{min-width:fit-content!important;height:fit-content!important;',"}}}}"],i.mixins.globalStyles,d,c,t+1,c,t+1,c,t,t+13,(function(e){var t=e.cardMinWidth;return e.limitCardWidth&&t&&(0,o.css)(["width:","px !important;"],t)}))})),t.StyledContentCard=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledContentCard",componentId:"sc-69jdcv-3"})(["text-align:center;font-size:12px;"," img{height:50px;width:auto;margin:auto;}div:nth-last-child(2){font-weight:700;}"],(function(e){var t=e.cardMinWidth,r=e.cardHeight;return t&&r&&(0,o.css)(["max-width:","px;max-height:","px;"],t-12,r-12)}))},8982:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2462)),i=n(r(2015)),a=r(73),l=["item"];t.default=function(e){var t=e.item,r=(0,o.default)(e,l);return t?t.customCard?t.customCard:i.default.createElement(a.StyledContentCard,r,i.default.createElement("img",{alt:"image",src:t.imageUrl}),i.default.createElement("div",null,t.name),i.default.createElement("div",null,t.title)):null}},2697:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.updateItem=t.calculateNumberOfCardsToShow=void 0;var o=n(r(1116));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.updateItem=function(e,t,r,n){var o=[],i=0;return o=null==e?void 0:e.map((function(e,o){var l=o===t?!e.selected:!(r||n||e.selectAll&&t!==o)&&e.selected;return l&&i++,a(a({},e),{},{selected:l})})),0===i&&e[0].selectAll&&(o[0].selected=!0),o},t.calculateNumberOfCardsToShow=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=Math.floor((e-4)/t)||1;return r>o?o+n:r}},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 n=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 d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(1267)),i=n(r(492)),a=n(r(9098)),l=n(r(9090)),d=n(r(5050)),c=n(r(509)),s=n(r(4341))},9098:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(2770),i=n(r(1267)),a=(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",tabletAndSmallDesktop:"only screen and (min-width: 768px) and (max-width: 1199px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},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")},9784:e=>{e.exports=require("@webjet/react-icons/common/caret-left")},2221:e=>{e.exports=require("@webjet/react-icons/common/caret-right")},3892:e=>{e.exports=require("classnames")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},9746:e=>{e.exports=require("react-slick")},2770:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(6730));e.default=o.default})(),module.exports=n})();
|
|
1
|
+
(()=>{"use strict";var e={6730:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(6031)),a=n(r(7826)),l=n(r(2462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var n={__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(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2015)),c=(n(r(9825)),n(r(9746))),s=r(73),u=r(2697),p=n(r(9784)),f=n(r(2221)),b=n(r(8982)),h=n(r(3892)),g=["data","onChange","cardMinWidth","cardHeight","singleSelect"];function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}t.default=function(e){var t=e.data,r=e.onChange,n=e.cardMinWidth,o=void 0===n?99:n,m=e.cardHeight,v=void 0===m?96:m,x=e.singleSelect,y=void 0!==x&&x,F=(0,l.default)(e,g);if(!t)return null;var k=(0,d.useRef)(),C=(0,d.useState)(t),w=(0,a.default)(C,2),D=w[0],E=w[1],B=(0,d.useState)(1),O=(0,a.default)(B,2),j=O[0],M=O[1],S=(0,d.useState)({}),A=(0,a.default)(S,2),P=A[0],_=A[1],W=function(e){_({clientX:e.clientX,clientY:e.clientY}),e.preventDefault()},H=function(e){return function(t){if(P.clientX!==t.clientX||P.clientY!==t.clientY)t.preventDefault();else{var n=(0,u.updateItem)(D,e,y,D[e].selectAll);E(n),r&&r(n,e)}}};(0,d.useEffect)((function(){var e=(0,u.calculateNumberOfCardsToShow)(k.current.clientWidth,o,t.length);M(e),E(t)}),[t]),(0,d.useEffect)((function(){var e=function(){var e;if(null!=k&&null!==(e=k.current)&&void 0!==e&&e.clientWidth){var t=(0,u.calculateNumberOfCardsToShow)(k.current.clientWidth,o,D.length);M(t)}};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]);var I={fill:"#4D4D4D",width:"16px",height:"16px"},z=function(e){var t=e.direction,r=e.className,n=e.onClick;return d.default.createElement(s.StyledArrowWrapper,{className:r,onClick:n,cardHeight:v,direction:t},"left"===t?d.default.createElement(p.default,I):d.default.createElement(f.default,I))},T={dots:!1,infinite:!1,speed:500,slidesToShow:j,slidesToScroll:j-1,prevArrow:d.default.createElement(z,{direction:"left"}),nextArrow:d.default.createElement(z,{direction:"right"})};return d.default.createElement(s.StyledWrapper,(0,i.default)({ref:k,limitCardWidth:j===D.length,cardHeight:v,cardMinWidth:o},F),d.default.createElement(c.default,T,D.map((function(e,t){var r=(0,h.default)({active:e.selected,featured:e.isFeatured});return d.default.createElement(s.StyledCardWrapper,{key:t,className:r,onMouseDown:W,onClick:H(t),selected:e.selected,cardHeight:v,cardMinWidth:o},d.default.createElement(b.default,{item:e,cardMinWidth:o,cardHeight:v}))}))))}},73:(e,t,r)=>{var n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledContentCard=t.StyledCardWrapper=t.StyledArrowWrapper=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.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,r&&r.set(e,o),o}(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 l=(0,o.css)(['content:" ";position:absolute;pointer-events:none;display:block;width:102%;height:12px;clip-path:polygon(50% 100%,0% 0%,100% 0%);']),d=(0,o.css)([".slick-slider{position:relative;display:block;box-sizing:border-box;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent;}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0;}.slick-list:focus{outline:none;}.slick-list.dragging{cursor:pointer;cursor:hand;}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.slick-track{position:relative;top:0;left:0;width:100%;display:block;}.slick-track:before,.slick-track:after{display:table;content:'';}.slick-track:after{clear:both;}.slick-loading .slick-track{visibility:hidden;}.slick-slide{display:none;float:left;height:100%;min-height:1px;}[dir='rtl'] .slick-slide{float:right;}.slick-slide img{display:block;}.slick-slide.slick-loading img{display:none;}.slick-slide.dragging img{pointer-events:none;}.slick-initialized .slick-slide{display:block;}.slick-loading .slick-slide{visibility:hidden;}.slick-vertical .slick-slide{display:block;height:auto;}"]),c=(t.StyledArrowWrapper=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledArrowWrapper",componentId:"sc-69jdcv-0"})(["width:31px;background:linear-gradient(275deg,rgba(223,223,223,0.90) 3.86%,rgba(223,223,223,0.00) 100%);z-index:1;text-align:center;>svg{vertical-align:middle;}&:hover{background:linear-gradient(275deg,rgba(196,196,196,0.90) 3.86%,rgba(196,196,196,0) 96.35%);}border-radius:0 3px 3px 0;"," ",""],(function(e){return"left"===e.direction&&(0,o.css)(["border-radius:3px 0 0 3px;background:linear-gradient(85deg,rgba(223,223,223,0.90) 3.86%,rgba(223,223,223,0.00) 96.35%);&:hover{background:linear-gradient(85deg,rgba(196,196,196,0.90) 3.86%,rgba(196,196,196,0) 96.35%);}"])}),(function(e){var t=e.cardHeight;return t&&(0,o.css)(["height:","px;line-height:","px;"],t,t)})),t.StyledCardWrapper=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledCardWrapper",componentId:"sc-69jdcv-1"})(["display:flex !important;justify-content:center;align-items:center;flex-direction:column;position:relative;color:",";background:",";border-right:1px solid ",";div{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"," &:focus-visible{outline:none;}@media ","{&:hover{cursor:pointer;color:",";font-weight:700;}}"," "],i.theme.color[10],i.theme.color[11],i.theme.color[3],(function(e){var t=e.cardHeight,r=e.cardMinWidth;return t&&r&&(0,o.css)(["height:","px;min-width:","px !important;"],t,r)}),i.theme.media.desktopAndWideDesktop,i.theme.color[10],(function(e){return e.selected&&(0,o.css)(["background:",";border-radius:0 0 2px 2px;&::before{"," bottom:-12px;background:",";}&::after{"," width:100%;bottom:-11px;background:",";}"],i.theme.color[3],l,i.theme.color[3],l,i.theme.color[3])})),(0,o.css)(['content:" ";position:absolute;pointer-events:none;display:block;width:50px;top:0;background:',";z-index:1;background-color:transparent;border-radius:4px;"],i.theme.color[3]));t.StyledWrapper=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledWrapper",componentId:"sc-69jdcv-2"})((function(e){var t=e.cardHeight;return(0,o.css)([""," "," position:relative;.slick-slider{width:100%;border-top:1px solid #DFDFDF;&::after{"," right:0;border-right:1px solid #DFDFDF;height:","px;}&::before{"," left:0;border-left:1px solid #DFDFDF;height:","px;z-index:2;}.slick-list{border-radius:4px;&::after{"," width:100%;height:50px;top:calc(","px - 49px);z-index:-1;border-bottom:1px solid #DFDFDF;}}.slick-arrow{position:absolute;top:0;&:hover{cursor:pointer;}}.slick-prev{left:0;}.slick-next{right:0;}.slick-disabled{display:none;}.slick-list{width:100%;margin:0;height:",'px;&::before{height:calc(100% - 13px);width:100%;content:"";background-color:#fff;position:absolute;}.slick-track{.slick-slide{min-width:fit-content!important;height:fit-content!important;',"}}}}"],i.mixins.globalStyles,d,c,t+1,c,t+1,c,t,t+13,(function(e){var t=e.cardMinWidth;return e.limitCardWidth&&t&&(0,o.css)(["width:","px !important;"],t)}))})),t.StyledContentCard=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledContentCard",componentId:"sc-69jdcv-3"})(["text-align:center;font-size:12px;"," img{height:50px;width:auto;margin:auto;}div:nth-last-child(2){font-weight:700;}"],(function(e){var t=e.cardMinWidth,r=e.cardHeight;return t&&r&&(0,o.css)(["max-width:","px;max-height:","px;"],t-12,r-12)}))},8982:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2462)),i=n(r(2015)),a=r(73),l=["item"];t.default=function(e){var t=e.item,r=(0,o.default)(e,l);return t?t.customCard?t.customCard:i.default.createElement(a.StyledContentCard,r,i.default.createElement("img",{alt:"image",src:t.imageUrl}),i.default.createElement("div",null,t.name),i.default.createElement("div",null,t.title)):null}},2697:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.updateItem=t.calculateNumberOfCardsToShow=void 0;var o=n(r(1116));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.updateItem=function(e,t,r,n){var o=[],i=0;return o=null==e?void 0:e.map((function(e,o){var l=o===t?!e.selected:!(r||n||e.selectAll&&t!==o)&&e.selected;return l&&i++,a(a({},e),{},{selected:l})})),0===i&&e[0].selectAll&&(o[0].selected=!0),o},t.calculateNumberOfCardsToShow=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=Math.floor((e-4)/t)||1;return r>o?o+n:r}},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 n=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 d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(1267)),i=n(r(492)),a=n(r(9098)),l=n(r(9090)),d=n(r(5050)),c=n(r(509)),s=n(r(4341))},9098:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(2770),i=n(r(1267)),a=(0,o.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},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"],n={fontFamily:{primary:"inherit",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",tabletAndSmallDesktop:"only screen and (min-width: 768px) and (max-width: 1199px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},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"],n={fontFamily:{icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},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")},9784:e=>{e.exports=require("@webjet/react-icons/common/caret-left")},2221:e=>{e.exports=require("@webjet/react-icons/common/caret-right")},3892:e=>{e.exports=require("classnames")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},9746:e=>{e.exports=require("react-slick")},2770:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(6730));e.default=o.default})(),module.exports=n})();
|