@webjet/react 3.12.3 → 3.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/autocomplete.js +1 -1
- package/components/breadcrumb.js +1 -1
- package/components/button.js +1 -1
- package/components/carousel.js +1 -1
- package/components/copy-button.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/fare-card.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/iframe-link.js +1 -1
- package/components/info-modal.js +1 -1
- package/components/leg-segment.js +1 -1
- package/components/modal.js +1 -1
- package/components/page-loader.js +1 -1
- package/components/pagination.js +1 -1
- package/components/products-cross-sell-list.js +1 -1
- package/components/products-cross-sell-panel.js +1 -1
- package/components/quality-rating.js +1 -1
- package/components/render-count.js +1 -1
- package/components/toggle.js +1 -1
- package/components/tooltip-modal.js +1 -1
- package/components/tooltip.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={7147:(e,t,o)=>{var r=o(3751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(1116)),a=r(o(2462)),l=r(o(6031)),u=r(o(7826)),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=E(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(2015)),d=(r(o(9825)),o(8466)),s=r(o(3074)),p=r(o(3892)),f=r(o(1642)),g=r(o(2846)),h=r(o(3080)),m=r(o(1792)),b=r(o(8712)),v=o(3465),x=["children"],w=["data","selectProps"],y=["children"];function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(E=function(e){return e?o:t})(e)}var F=function(){return c.default.createElement("span",{className:"loader"})},_=function(e){var t=e.selectProps,o=e.innerProps,r=t.classNamePrefix;return c.default.createElement(f.default,(0,l.default)({className:"".concat(r,"__clear-indicator")},o))},C=function(e){var t=e.children,o=(0,a.default)(e,x),r=o.selectProps,n=r.classNamePrefix,i=r.icon,l=!!(0,v.isValidIconElement)(i)&&i,u=!!(0,v.isValidIconName)(i)&&i;return c.default.createElement(d.components.Control,o,l&&c.default.createElement("span",{className:"".concat(n,"__input-svg-icon")},c.default.createElement(l,null)),!l&&u&&c.default.createElement(g.default,{name:u,className:"".concat(n,"__input-icon")}),t)},k=function(e){var t=e.data,o=e.selectProps,r=(0,a.default)(e,w),n=t.icon,u=o.classNamePrefix,f=!!(0,v.isValidIconElement)(n)&&n;return c.default.createElement(d.components.Option,(0,l.default)({className:(0,p.default)({"with-tag":t.tag,"with-icon":t.icon,"with-sublabel":t.optionSubLabel})},r),c.default.createElement(s.default,{className:(0,p.default)("option-row",{secondary:t.isSecondary}),searchWords:[o.filterInputValue],textToHighlight:t.optionLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),t.optionSubLabel&&c.default.createElement(s.default,{className:"option-row",searchWords:[o.filterInputValue],textToHighlight:t.optionSubLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),f&&c.default.createElement("span",{className:"".concat(u,"__option-svg-icon")},c.default.createElement(f,null)),!f&&n&&c.default.createElement("i",{className:(0,p.default)("wj-icon",(0,i.default)({},n,n))}),t.tag&&c.default.createElement("i",null,t.tag))},B=function(e){return c.default.createElement(d.components.Input,(0,l.default)({},e,{role:"presentation"}))},M=function(e){var t=e.hasValue,o=e.selectProps.inputValue,r=t&&!o;return c.default.createElement(h.default,{condition:!r},c.default.createElement(d.components.Menu,e))},D=function(e){var t=e.children,o=(0,a.default)(e,y),r=o.options,n=o.selectProps,i=n.optionsLimit,l=!n.inputValue,u=l?"Start typing for other options":"Continue typing to refine options",s=i>0&&r.length>i,p=l||s;return c.default.createElement(d.components.MenuList,o,t,c.default.createElement(h.default,{condition:p},c.default.createElement("div",{tabIndex:"-1",className:"option-footer-text"},u)))};t.default=function(e){var t=e.id,o=e.className,r=e.optionsLimit,n=void 0===r?0:r,i=e.minValueLength,a=void 0===i?3:i,l=e.maxValueLength,d=void 0===l?1e4:l,s=e.defaultOptions,p=void 0===s?[]:s,f=e.loadOptions,g=e.noOptionsMessage,h=e.placeholder,x=e.value,w=e.isMulti,y=void 0!==w&&w,E=e.autoFillOnBlur,S=void 0===E||E,I=e.autoFilterInput,O=void 0===I||I,j=e.icon,P=e.onChange,A=e.onBlur,T=e.onFocus,H=e.errorMessage,N=void 0===H?null:H,L=e.state,V=void 0===L?"initial":L,W=e.disabled,R=void 0!==W&&W,z=e.isAutoFocused,q=void 0!==z&&z,J=e.isFocused,Y=void 0!==J&&J,K=(0,c.useState)(""),U=(0,u.default)(K,2),$=U[0],G=U[1],Z=(0,c.useState)(""),Q=(0,u.default)(Z,2),X=Q[0],ee=Q[1],te=!1,oe=(0,c.useRef)(),re=(0,c.useState)(!1),ne=(0,u.default)(re,2),ie=ne[0],ae=ne[1];return(0,c.useEffect)((function(){Y&&oe.current&&oe.current.focus()}),[Y]),c.default.createElement(c.default.Fragment,null,c.default.createElement(b.default,{ref:oe,id:t,className:o,icon:j,classNamePrefix:"wj-autocomplete",isClearable:!0,isMulti:y,loadOptions:function(e,t){var o=(0,v.sanitiseInputText)(e);f&&o.length>=a&&o.length<=d?f(o,t):t()},noOptionsMessage:function(e){return e.inputValue,X.length>=a&&X.length<=d?g:null},placeholder:h,inputValue:$,filterInputValue:X,value:x,optionsLimit:n,components:{Control:C,Option:k,LoadingIndicator:F,Input:B,Menu:M,MenuList:D,ClearIndicator:_},onChange:function(e){P&&P(e),e||setTimeout((function(){return ae(!0)}))},onInputChange:function(e,t){if("input-blur"!==t.action&&"menu-close"!==t.action&&e.length<=d){G(e);var o=O?(0,v.sanitiseInputText)(e):e;ee(o)}"set-value"===t.action&&(te=!0),e.length<=1&&"input-change"===t.action&&oe.current.clearValue()},filterOption:function(e){var t=e.value,o=oe.current.state.loadedOptions,r=null==o?void 0:o.findIndex((function(e){return e.value===t}));return!n||!r||r<n},onBlur:function(e){if(A&&A(e),S&&$.length>=a&&$.length<=d){var t=oe.current,o=t.props.inputValue,r=t.state,n=r.loadedOptions,i=r.optionsCache;if(i&&i[o]&&0===i[o].length)return;if(n&&n.length>0&&!te){var l,u=n[0],c=null!==(l=u.options)&&void 0!==l&&l.length?u.options[0]:u;return void oe.current.setValue(c)}f&&f($,(function(e){if(e&&e.length>0&&!te){var t,o=e[0],r=null!==(t=o.options)&&void 0!==t&&t.length?o.options[0]:o;oe.current.setValue(r)}}))}},onFocus:function(e){T&&T(e),(0,v.isTouchDevice)()||$||null==oe||!oe.current||oe.current.state.selectedValue||oe.current.state.menuIsOpen||oe.current.openMenu("first")},state:V,defaultOptions:p,tabSelectsValue:!1,onKeyDown:function(e){if("Tab"===e.key){var t=oe.current.state.focusedOption;t&&oe.current.setValue(t)}},disabled:R,autoFocus:q,menuIsOpen:ie,onMenuClose:function(){return ae(!1)},onMenuOpen:function(){return ae(!0)}}),"error"===V&&N&&c.default.createElement(m.default,null,N))}},8712:(e,t,o)=>{var r=o(3751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(3133)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=u(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(2770)),l=o(3290);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(u=function(e){return e?o:t})(e)}var c=(0,a.keyframes)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),d=(0,a.default)(i.default).withConfig({displayName:"Autocompletestyle__StyledAutocomplete",componentId:"sc-1vsc3cw-0"})((function(e){var t=e.classNamePrefix,o=e.disabled;return(0,a.css)([""," -webkit-tap-highlight-color:rgba(0,0,0,0);.","{&__control{position:relative;height:46px;border-radius:",";border:1px solid ",";cursor:pointer;&:hover,&:active,&--is-focused{background:",";border-color:",";.","__input-icon{background:",";}.","__input-svg-icon{background:",";}.","{border-left:0;border-right:0;}}&:active,&--is-focused{box-shadow:",";.","{background:",";border:2px solid ",";border-left:0;border-right:0;}}}&__clear-indicator{&:hover{color:",";}}&__value-container{font-size:16px;line-height:normal;}&__input{color:",";input{margin:0;padding:0;box-shadow:none;transition:none;height:auto;}}&__placeholder{color:",";}&__input-icon{background:",";color:",";font-size:32px;width:45px;height:100%;border-top-left-radius:3px;border-bottom-left-radius:3px;text-align:center;line-height:1.5;}&__input-svg-icon{display:inline-flex;justify-content:center;align-items:center;width:45px;height:100%;background:",";border-top-left-radius:3px;border-bottom-left-radius:3px;svg{width:24px;height:24px;fill:",";}}&__menu{font-size:17px;margin:0;padding:0;border-radius:0;border:0;background:",";box-shadow:0 2px 6px rgba(0,0,0,0.7);z-index:99999;text-transform:none;&:before{content:'';position:absolute;top:0;bottom:-36px;left:-36px;right:-36px;@media ","{right:-12px;}}}&__menu-list{padding:0;max-height:none;overflow-y:auto;overflow-x:hidden;background:",";.option-footer-text{font-size:13px;color:",";font-style:italic;background:",";padding:6px 12px;}}&__option{position:relative;border-bottom:1px solid #C9C9C9;padding:",";cursor:pointer;height:60px;&:active{background:",";}.option-row{display:block;color:",";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:6px;&:first-child{font-weight:700;color:",";margin-bottom:4px;line-height:normal;.highlight{color:",";}}.highlight{background-color:#dae9f5;color:",";padding:0;}}i{position:absolute;right:12px;top:15px;background:#DFDFDF;border:none;border-radius:3px;padding:6px 12px;font-size:11px;font-style:normal;font-weight:bold;color:",";}&.with-sublabel{height:65px;.option-row{margin-top:0;}i{top:17px;}}&.with-tag .option-row{margin-right:120px;}&.with-icon{.option-row{margin-left:40px;}i{&.wj-icon{background:none;top:14px;left:3px;font-size:24px;}}.","__option-svg-icon{position:absolute;top:50%;left:15px;transform:translateY(-50%);svg{width:24px;height:24px;fill:",";}}}.secondary{padding-left:",";& + .option-row{padding-left:",";}}&:last-child{border-bottom:0;}&--is-selected{background:none;}&--is-focused{background:",";box-shadow:inset 0 0 0 4px rgba(135,135,135,0.75);i{background:#ccc;}}}&__menu-notice--no-options{font-size:14px;line-height:18px;color:#B13312;background:",";text-align:center;padding:",";}&__indicators{.loader{display:inline-block;position:absolute;box-sizing:border-box;right:12px;top:12px;width:24px;height:24px;border-radius:150px;vertical-align:middle;animation:"," 1s infinite linear;border:2px solid rgba(100,100,100,0.4);border-right:3px solid ",";}}&__indicator-separator,&__dropdown-indicator{display:none;}&__clear-indicator{fill:#A8A8A8;font-size:16px;margin:6px;}&__menu-notice--loading{display:none;}&__group-heading{background:",";cursor:default;padding:8px ",";border-top:1px solid #C9C9C9;border-bottom:1px solid #c9c9c9;position:relative;pointer-events:none;color:",";font-weight:400;font-size:13px;display:block;text-decoration:none;font-style:italic;text-align:left;height:auto;margin:0;text-transform:none;line-height:1;}&__group{padding:0;}}"," ",""],l.mixins.globalStyles,t,l.theme.borderRadius,l.theme.color[4],l.theme.inputHoverBackground,l.theme.color[4],t,l.theme.color[5],t,l.theme.color[5],t+"__single-value",l.theme.activeItemOutline,t+"__single-value",l.theme.textHighlight,l.theme.textHighlight,l.theme.hoverDarkColor,l.theme.color[10],l.theme.color[6],l.theme.color[2],l.theme.inputIcon,l.theme.color[2],l.theme.inputIcon,l.theme.color[11],l.theme.media.mobile,l.theme.color[11],l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,l.theme.color[4],l.theme.color[8],l.theme.color[10],l.theme.color[10],l.theme.color[8],l.theme.color[8],t,l.theme.color[8],l.theme.gutterWidth,l.theme.gutterWidth,l.theme.color[2],l.theme.validationColors.inputErrorBackground,l.theme.gutterWidth,c,l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,l.theme.color[8],(function(e){var o=e.state;return o&&"error"===o&&(0,a.css)([".","{&__control{background-color:",";}&__input-icon{background:",";color:",";}&__input-svg-icon{background:",";svg{fill:",";}}&__input{color:",";}}&&:hover,&&:focus{.","{&__control{background-color:",";color:",";border-radius:",";}&__input-icon{background:#bfb0b0;}&__input-svg-icon{background:#bfb0b0;}}}"],t,l.theme.validationColors.inputErrorBackground,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,l.theme.validationColors.inputErrorText,t,l.theme.validationColors.inputErrorHoverBackground,l.theme.validationColors.inputErrorText,l.theme.borderRadius)}),o&&(0,a.css)(["opacity:0.5;pointer-events:none;"]))}));t.default=d},8627:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var n=r(o(2015)),i=(r(o(9825)),o(4144)),a=t.ErrorMessageField=function(e){var t=e.children,o=void 0===t?null:t;return o&&n.default.createElement(i.ErrorMessage,{"data-testid":"error-message",role:"error-message"},o)};t.default=a},4144:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var n=r(o(2770)),i=o(3290);t.ErrorMessage=n.default.label.withConfig({displayName:"ErrorMessageFieldstyle__ErrorMessage",componentId:"sc-s1cvz0-0"})(["&&{"," display:block;position:relative;margin-top:10px;background:",";padding:6px 8px 6px 8px;border-radius:",";font-size:14px;color:",";line-height:130%;text-align:left;font-weight:normal;box-sizing:border-box;&:before{width:0;top:-8px;z-index:1;position:absolute;content:'';height:0;left:0;right:0;text-align:center;margin:0 auto;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:10px solid #f2dede;}}"],i.mixins.globalStyles,i.theme.validationColors.inputErrorBackground,i.theme.borderRadius,i.theme.validationColors.inputErrorText)},1792:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(8627));t.default=n.default},2078:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(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=n},2846:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(6031)),i=r(o(2462)),a=r(o(2015)),l=(r(o(9825)),r(o(2078))),u=["name"];t.default=function(e){var t=e.name,o=(0,i.default)(e,u);return a.default.createElement(l.default,(0,n.default)({iconName:t},o))}},9473:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(9825)),i=function(e){var t=e.condition,o=void 0!==t&&t,r=e.children;return!0===o?r:null};i.propTypes={condition:n.default.bool},t.default=i},3080:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(9473));t.default=n.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",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"}}},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,o)=>{var r=o(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,"identifiers",{enumerable:!0,get:function(){return u.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=r(o(1267)),i=r(o(492)),a=r(o(9098)),l=r(o(9090)),u=r(o(5050)),c=r(o(509))},9098:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(2770),i=r(o(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 o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,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:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,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:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var r=o(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,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,r.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,r=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=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<=r?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,r=e.clientHeight,n=t-o;return n>=r-1&&n<=r+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},t.setCookieStorage=function(e,t,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||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")},1642:e=>{e.exports=require("@webjet/react-icons/common/x-circle-fill")},3892:e=>{e.exports=require("classnames")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},3074:e=>{e.exports=require("react-highlight-words")},8466:e=>{e.exports=require("react-select")},3133:e=>{e.exports=require("react-select/async")},2770:e=>{e.exports=require("styled-components")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}var r={};(()=>{var e=r,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(o(7147));e.default=n.default})(),module.exports=r})();
|
|
1
|
+
(()=>{"use strict";var e={7147:(e,t,o)=>{var r=o(3751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(1116)),a=r(o(2462)),l=r(o(6031)),u=r(o(7826)),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=E(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(2015)),d=(r(o(9825)),o(8466)),s=r(o(3074)),p=r(o(3892)),f=r(o(1642)),g=r(o(2846)),h=r(o(3080)),m=r(o(1792)),b=r(o(8712)),v=o(3465),x=["children"],w=["data","selectProps"],y=["children"];function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(E=function(e){return e?o:t})(e)}var F=function(){return c.default.createElement("span",{className:"loader"})},_=function(e){var t=e.selectProps,o=e.innerProps,r=t.classNamePrefix;return c.default.createElement(f.default,(0,l.default)({className:"".concat(r,"__clear-indicator")},o))},C=function(e){var t=e.children,o=(0,a.default)(e,x),r=o.selectProps,n=r.classNamePrefix,i=r.icon,l=!!(0,v.isValidIconElement)(i)&&i,u=!!(0,v.isValidIconName)(i)&&i;return c.default.createElement(d.components.Control,o,l&&c.default.createElement("span",{className:"".concat(n,"__input-svg-icon")},c.default.createElement(l,null)),!l&&u&&c.default.createElement(g.default,{name:u,className:"".concat(n,"__input-icon")}),t)},k=function(e){var t=e.data,o=e.selectProps,r=(0,a.default)(e,w),n=t.icon,u=o.classNamePrefix,f=!!(0,v.isValidIconElement)(n)&&n;return c.default.createElement(d.components.Option,(0,l.default)({className:(0,p.default)({"with-tag":t.tag,"with-icon":t.icon,"with-sublabel":t.optionSubLabel})},r),c.default.createElement(s.default,{className:(0,p.default)("option-row",{secondary:t.isSecondary}),searchWords:[o.filterInputValue],textToHighlight:t.optionLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),t.optionSubLabel&&c.default.createElement(s.default,{className:"option-row",searchWords:[o.filterInputValue],textToHighlight:t.optionSubLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),f&&c.default.createElement("span",{className:"".concat(u,"__option-svg-icon")},c.default.createElement(f,null)),!f&&n&&c.default.createElement("i",{className:(0,p.default)("wj-icon",(0,i.default)({},n,n))}),t.tag&&c.default.createElement("i",null,t.tag))},B=function(e){return c.default.createElement(d.components.Input,(0,l.default)({},e,{role:"presentation"}))},M=function(e){var t=e.hasValue,o=e.selectProps.inputValue,r=t&&!o;return c.default.createElement(h.default,{condition:!r},c.default.createElement(d.components.Menu,e))},D=function(e){var t=e.children,o=(0,a.default)(e,y),r=o.options,n=o.selectProps,i=n.optionsLimit,l=!n.inputValue,u=l?"Start typing for other options":"Continue typing to refine options",s=i>0&&r.length>i,p=l||s;return c.default.createElement(d.components.MenuList,o,t,c.default.createElement(h.default,{condition:p},c.default.createElement("div",{tabIndex:"-1",className:"option-footer-text"},u)))};t.default=function(e){var t=e.id,o=e.className,r=e.optionsLimit,n=void 0===r?0:r,i=e.minValueLength,a=void 0===i?3:i,l=e.maxValueLength,d=void 0===l?1e4:l,s=e.defaultOptions,p=void 0===s?[]:s,f=e.loadOptions,g=e.noOptionsMessage,h=e.placeholder,x=e.value,w=e.isMulti,y=void 0!==w&&w,E=e.autoFillOnBlur,S=void 0===E||E,I=e.autoFilterInput,O=void 0===I||I,j=e.icon,P=e.onChange,A=e.onBlur,T=e.onFocus,H=e.errorMessage,N=void 0===H?null:H,L=e.state,V=void 0===L?"initial":L,W=e.disabled,R=void 0!==W&&W,z=e.isAutoFocused,q=void 0!==z&&z,J=e.isFocused,Y=void 0!==J&&J,K=(0,c.useState)(""),U=(0,u.default)(K,2),$=U[0],G=U[1],Z=(0,c.useState)(""),Q=(0,u.default)(Z,2),X=Q[0],ee=Q[1],te=!1,oe=(0,c.useRef)(),re=(0,c.useState)(!1),ne=(0,u.default)(re,2),ie=ne[0],ae=ne[1];return(0,c.useEffect)((function(){Y&&oe.current&&oe.current.focus()}),[Y]),c.default.createElement(c.default.Fragment,null,c.default.createElement(b.default,{ref:oe,id:t,className:o,icon:j,classNamePrefix:"wj-autocomplete",isClearable:!0,isMulti:y,loadOptions:function(e,t){var o=(0,v.sanitiseInputText)(e);f&&o.length>=a&&o.length<=d?f(o,t):t()},noOptionsMessage:function(e){return e.inputValue,X.length>=a&&X.length<=d?g:null},placeholder:h,inputValue:$,filterInputValue:X,value:x,optionsLimit:n,components:{Control:C,Option:k,LoadingIndicator:F,Input:B,Menu:M,MenuList:D,ClearIndicator:_},onChange:function(e){P&&P(e),e||setTimeout((function(){return ae(!0)}))},onInputChange:function(e,t){if("input-blur"!==t.action&&"menu-close"!==t.action&&e.length<=d){G(e);var o=O?(0,v.sanitiseInputText)(e):e;ee(o)}"set-value"===t.action&&(te=!0),e.length<=1&&"input-change"===t.action&&oe.current.clearValue()},filterOption:function(e){var t=e.value,o=oe.current.state.loadedOptions,r=null==o?void 0:o.findIndex((function(e){return e.value===t}));return!n||!r||r<n},onBlur:function(e){if(A&&A(e),S&&$.length>=a&&$.length<=d){var t=oe.current,o=t.props.inputValue,r=t.state,n=r.loadedOptions,i=r.optionsCache;if(i&&i[o]&&0===i[o].length)return;if(n&&n.length>0&&!te){var l,u=n[0],c=null!==(l=u.options)&&void 0!==l&&l.length?u.options[0]:u;return void oe.current.setValue(c)}f&&f($,(function(e){if(e&&e.length>0&&!te){var t,o=e[0],r=null!==(t=o.options)&&void 0!==t&&t.length?o.options[0]:o;oe.current.setValue(r)}}))}},onFocus:function(e){T&&T(e),(0,v.isTouchDevice)()||$||null==oe||!oe.current||oe.current.state.selectedValue||oe.current.state.menuIsOpen||oe.current.openMenu("first")},state:V,defaultOptions:p,tabSelectsValue:!1,onKeyDown:function(e){if("Tab"===e.key){var t=oe.current.state.focusedOption;t&&oe.current.setValue(t)}},disabled:R,autoFocus:q,menuIsOpen:ie,onMenuClose:function(){return ae(!1)},onMenuOpen:function(){return ae(!0)}}),"error"===V&&N&&c.default.createElement(m.default,null,N))}},8712:(e,t,o)=>{var r=o(3751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(3133)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=u(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(2770)),l=o(3290);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(u=function(e){return e?o:t})(e)}var c=(0,a.keyframes)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),d=(0,a.default)(i.default).withConfig({displayName:"Autocompletestyle__StyledAutocomplete",componentId:"sc-1vsc3cw-0"})((function(e){var t=e.classNamePrefix,o=e.disabled;return(0,a.css)([""," -webkit-tap-highlight-color:rgba(0,0,0,0);.","{&__control{position:relative;height:46px;border-radius:",";border:1px solid ",";cursor:pointer;&:hover,&:active,&--is-focused{background:",";border-color:",";.","__input-icon{background:",";}.","__input-svg-icon{background:",";}.","{border-left:0;border-right:0;}}&:active,&--is-focused{box-shadow:",";.","{background:",";border:2px solid ",";border-left:0;border-right:0;}}}&__clear-indicator{&:hover{color:",";}}&__value-container{font-size:16px;line-height:normal;}&__input{color:",";input{margin:0;padding:0;box-shadow:none;transition:none;height:auto;}}&__placeholder{color:",";}&__input-icon{background:",";color:",";font-size:32px;width:45px;height:100%;border-top-left-radius:3px;border-bottom-left-radius:3px;text-align:center;line-height:1.5;}&__input-svg-icon{display:inline-flex;justify-content:center;align-items:center;width:45px;height:100%;background:",";border-top-left-radius:3px;border-bottom-left-radius:3px;svg{width:24px;height:24px;fill:",";}}&__menu{font-size:17px;margin:0;padding:0;border-radius:0;border:0;background:",";box-shadow:0 2px 6px rgba(0,0,0,0.7);z-index:99999;text-transform:none;&:before{content:'';position:absolute;top:0;bottom:-36px;left:-36px;right:-36px;@media ","{right:-12px;}}}&__menu-list{padding:0;max-height:none;overflow-y:auto;overflow-x:hidden;background:",";.option-footer-text{font-size:12px;color:",";font-style:italic;background:",";padding:6px 12px;}}&__option{position:relative;border-bottom:1px solid #C9C9C9;padding:",";cursor:pointer;height:60px;&:active{background:",";}.option-row{display:block;color:",";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:6px;&:first-child{font-weight:700;color:",";margin-bottom:4px;line-height:normal;.highlight{color:",";}}.highlight{background-color:#dae9f5;color:",";padding:0;}}i{position:absolute;right:12px;top:15px;background:#DFDFDF;border:none;border-radius:3px;padding:6px 12px;font-size:11px;font-style:normal;font-weight:bold;color:",";}&.with-sublabel{height:65px;.option-row{margin-top:0;}i{top:17px;}}&.with-tag .option-row{margin-right:120px;}&.with-icon{.option-row{margin-left:40px;}i{&.wj-icon{background:none;top:14px;left:3px;font-size:24px;}}.","__option-svg-icon{position:absolute;top:50%;left:15px;transform:translateY(-50%);svg{width:24px;height:24px;fill:",";}}}.secondary{padding-left:",";& + .option-row{padding-left:",";}}&:last-child{border-bottom:0;}&--is-selected{background:none;}&--is-focused{background:",";box-shadow:inset 0 0 0 4px rgba(135,135,135,0.75);i{background:#ccc;}}}&__menu-notice--no-options{font-size:14px;line-height:18px;color:#B13312;background:",";text-align:center;padding:",";}&__indicators{.loader{display:inline-block;position:absolute;box-sizing:border-box;right:12px;top:12px;width:24px;height:24px;border-radius:150px;vertical-align:middle;animation:"," 1s infinite linear;border:2px solid rgba(100,100,100,0.4);border-right:3px solid ",";}}&__indicator-separator,&__dropdown-indicator{display:none;}&__clear-indicator{fill:#A8A8A8;font-size:16px;margin:6px;}&__menu-notice--loading{display:none;}&__group-heading{background:",";cursor:default;padding:8px ",";border-top:1px solid #C9C9C9;border-bottom:1px solid #c9c9c9;position:relative;pointer-events:none;color:",";font-weight:400;font-size:12px;display:block;text-decoration:none;font-style:italic;text-align:left;height:auto;margin:0;text-transform:none;line-height:1;}&__group{padding:0;}}"," ",""],l.mixins.globalStyles,t,l.theme.borderRadius,l.theme.color[4],l.theme.inputHoverBackground,l.theme.color[4],t,l.theme.color[5],t,l.theme.color[5],t+"__single-value",l.theme.activeItemOutline,t+"__single-value",l.theme.textHighlight,l.theme.textHighlight,l.theme.hoverDarkColor,l.theme.color[10],l.theme.color[6],l.theme.color[2],l.theme.inputIcon,l.theme.color[2],l.theme.inputIcon,l.theme.color[11],l.theme.media.mobile,l.theme.color[11],l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,l.theme.color[4],l.theme.color[8],l.theme.color[10],l.theme.color[10],l.theme.color[8],l.theme.color[8],t,l.theme.color[8],l.theme.gutterWidth,l.theme.gutterWidth,l.theme.color[2],l.theme.validationColors.inputErrorBackground,l.theme.gutterWidth,c,l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,l.theme.color[8],(function(e){var o=e.state;return o&&"error"===o&&(0,a.css)([".","{&__control{background-color:",";}&__input-icon{background:",";color:",";}&__input-svg-icon{background:",";svg{fill:",";}}&__input{color:",";}}&&:hover,&&:focus{.","{&__control{background-color:",";color:",";border-radius:",";}&__input-icon{background:#bfb0b0;}&__input-svg-icon{background:#bfb0b0;}}}"],t,l.theme.validationColors.inputErrorBackground,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,l.theme.validationColors.inputErrorText,t,l.theme.validationColors.inputErrorHoverBackground,l.theme.validationColors.inputErrorText,l.theme.borderRadius)}),o&&(0,a.css)(["opacity:0.5;pointer-events:none;"]))}));t.default=d},8627:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var n=r(o(2015)),i=(r(o(9825)),o(4144)),a=t.ErrorMessageField=function(e){var t=e.children,o=void 0===t?null:t;return o&&n.default.createElement(i.ErrorMessage,{"data-testid":"error-message",role:"error-message"},o)};t.default=a},4144:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var n=r(o(2770)),i=o(3290);t.ErrorMessage=n.default.label.withConfig({displayName:"ErrorMessageFieldstyle__ErrorMessage",componentId:"sc-s1cvz0-0"})(["&&{"," display:block;position:relative;margin-top:10px;background:",";padding:6px 8px 6px 8px;border-radius:",";font-size:14px;color:",";line-height:130%;text-align:left;font-weight:normal;box-sizing:border-box;&:before{width:0;top:-8px;z-index:1;position:absolute;content:'';height:0;left:0;right:0;text-align:center;margin:0 auto;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:10px solid #f2dede;}}"],i.mixins.globalStyles,i.theme.validationColors.inputErrorBackground,i.theme.borderRadius,i.theme.validationColors.inputErrorText)},1792:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(8627));t.default=n.default},2078:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(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=n},2846:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(6031)),i=r(o(2462)),a=r(o(2015)),l=(r(o(9825)),r(o(2078))),u=["name"];t.default=function(e){var t=e.name,o=(0,i.default)(e,u);return a.default.createElement(l.default,(0,n.default)({iconName:t},o))}},9473:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(9825)),i=function(e){var t=e.condition,o=void 0!==t&&t,r=e.children;return!0===o?r:null};i.propTypes={condition:n.default.bool},t.default=i},3080:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(9473));t.default=n.default},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",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"}}},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,o)=>{var r=o(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,"identifiers",{enumerable:!0,get:function(){return u.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=r(o(1267)),i=r(o(492)),a=r(o(9098)),l=r(o(9090)),u=r(o(5050)),c=r(o(509))},9098:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(2770),i=r(o(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 o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,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:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,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:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var r=o(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,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,r.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,r=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=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<=r?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,r=e.clientHeight,n=t-o;return n>=r-1&&n<=r+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},t.setCookieStorage=function(e,t,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||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")},1642:e=>{e.exports=require("@webjet/react-icons/common/x-circle-fill")},3892:e=>{e.exports=require("classnames")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},3074:e=>{e.exports=require("react-highlight-words")},8466:e=>{e.exports=require("react-select")},3133:e=>{e.exports=require("react-select/async")},2770:e=>{e.exports=require("styled-components")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}var r={};(()=>{var e=r,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(o(7147));e.default=n.default})(),module.exports=r})();
|
package/components/breadcrumb.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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){return a.default.createElement(d.StyledBreadcrumbItem,{key:r},a.default.createElement(l.default,{condition:n(r)},a.default.createElement(d.StyledLink,{"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,{"data-testid":"breadcrumb-item-".concat(r)},e.text)),a.default.createElement(l.default,{condition:r<t.length-1},a.default.createElement(d.StyledArrowRight,null)));var o}));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=void 0;var o=n(r(2770)),i=n(r(6899)),a=n(r(9675)),l=r(3290);t.StyledBreadcrumb=o.default.span.withConfig({displayName:"Breadcrumbstyle__StyledBreadcrumb",componentId:"sc-8mo2lg-0"})(["display:inline-block;white-space:nowrap;height:20px;"]),t.StyledBreadcrumbItem=o.default.span.withConfig({displayName:"Breadcrumbstyle__StyledBreadcrumbItem",componentId:"sc-8mo2lg-1"})(["display:inline-flex;gap:8px;align-items:center;font-size:14px;&:not(:last-child){margin-right:8px;}&:last-child > span{font-weight:500;}"]),t.StyledLink=(0,o.default)(a.default).withConfig({displayName:"Breadcrumbstyle__StyledLink",componentId:"sc-8mo2lg-2"})(["line-height:20px;"]),t.StyledText=o.default.span.withConfig({displayName:"Breadcrumbstyle__StyledText",componentId:"sc-8mo2lg-3"})(["line-height:20px;color:",";"],l.themeV2.color[14]),t.StyledArrowRight=(0,o.default)(i.default).withConfig({displayName:"Breadcrumbstyle__StyledArrowRight",componentId:"sc-8mo2lg-4"})(["fill:",";"],l.themeV2.color[14])},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,f=e.onClick,p=(0,i.default)(e,u),g=(0,l.isValidIconElement)(n),m=g?n:null,h=r||"#";return a.default.createElement(d.StyledLink,(0,o.default)({href:h,onClick:function(e){s&&null!=s&&s.gaEvent&&(0,c.pushGAEvent)(null==s?void 0:s.gaEvent,null==s?void 0:s.gaData),f&&(e.stopPropagation(),e.preventDefault(),f(e))},hasIcon:g},p),g&&a.default.createElement(m,{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",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"}}},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,"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))},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"],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},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},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.getMonthName=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.isUserLoggedIn=function(){var e,t=null===(e=(0,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var r=window.atob(t[1]).toString("ascii");if(JSON.parse(r).firstName)return!0}return!1},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){a(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())}},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=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}};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){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},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})();
|
|
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){return a.default.createElement(d.StyledBreadcrumbItem,{key:r},a.default.createElement(l.default,{condition:n(r)},a.default.createElement(d.StyledLink,{"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,{"data-testid":"breadcrumb-item-".concat(r)},e.text)),a.default.createElement(l.default,{condition:r<t.length-1},a.default.createElement(d.StyledArrowRight,null)));var o}));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=void 0;var o=n(r(2770)),i=n(r(6899)),a=n(r(9675)),l=r(3290);t.StyledBreadcrumb=o.default.span.withConfig({displayName:"Breadcrumbstyle__StyledBreadcrumb",componentId:"sc-8mo2lg-0"})(["display:inline-block;white-space:nowrap;height:20px;"]),t.StyledBreadcrumbItem=o.default.span.withConfig({displayName:"Breadcrumbstyle__StyledBreadcrumbItem",componentId:"sc-8mo2lg-1"})(["display:inline-flex;gap:8px;align-items:center;font-size:14px;&:not(:last-child){margin-right:8px;}&:last-child > span{font-weight:500;}"]),t.StyledLink=(0,o.default)(a.default).withConfig({displayName:"Breadcrumbstyle__StyledLink",componentId:"sc-8mo2lg-2"})(["line-height:20px;&: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:20px;color:",";"],l.themeV2.color[14]),t.StyledArrowRight=(0,o.default)(i.default).withConfig({displayName:"Breadcrumbstyle__StyledArrowRight",componentId:"sc-8mo2lg-4"})(["fill:",";"],l.themeV2.color[14])},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,f=e.onClick,p=(0,i.default)(e,u),g=(0,l.isValidIconElement)(n),m=g?n:null,h=r||"#";return a.default.createElement(d.StyledLink,(0,o.default)({href:h,onClick:function(e){s&&null!=s&&s.gaEvent&&(0,c.pushGAEvent)(null==s?void 0:s.gaEvent,null==s?void 0:s.gaData),f&&(e.stopPropagation(),e.preventDefault(),f(e))},hasIcon:g},p),g&&a.default.createElement(m,{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",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"}}},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,"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))},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"],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},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},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.getMonthName=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.isUserLoggedIn=function(){var e,t=null===(e=(0,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var r=window.atob(t[1]).toString("ascii");if(JSON.parse(r).firstName)return!0}return!1},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){a(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())}},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=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}};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){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},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={1431:(e,t,n)=>{var r=n(3751),o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=r(n(2846)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2770)),l=n(3290),c=n(7427),d=n(9292);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u=t.CONFIG={standard:{color:l.themeV2.color[10],bgColor:l.themeV2.btnStandard,hoverColor:l.themeV2.btnStandardHover,fontWeight:500},action:{color:l.themeV2.color[11],bgColor:l.themeV2.btnAction,hoverColor:l.themeV2.btnActionHover,fontWeight:500},active:{color:l.themeV2.color[11],bgColor:l.themeV2.btnActive,hoverColor:l.themeV2.btnActiveHover,fontWeight:500},selection:{color:l.themeV2.color[11],bgColor:l.themeV2.btnSelection,hoverColor:l.themeV2.btnSelectionHover,fontWeight:500}},f=function(){return(0,a.css)(["pointer-events:none;box-shadow:none;"])},p=function(e,t){return t&&e&&(0,a.css)(["opacity:",";"],"standard"===e?"0.5":"1")};t.StyledButton=a.default.button.withConfig({displayName:"Button-v2style__StyledButton",componentId:"sc-1u6xcsj-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:12px;border:0;height:46px;cursor:pointer;border-radius:4px;-webkit-tap-highlight-color:rgba(0,0,0,0);font-size:16px;line-height:1;"," "," "," "," &:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," ",""],l.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{"," font-size:12px;}"],function(e,t){return e&&u[e]&&(0,a.css)(["&,&:visited{background:",";font-weight:",";color:",";text-decoration:none;}&:hover,&:focus,&:active{background:",";font-weight:",";color:",";text-decoration:none;}"],t?(n=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",n)):u[e].bgColor,u[e].fontWeight,u[e].color,u[e].hoverColor,u[e].fontWeight,u[e].color);var n}(t,n),p(t,n))}),(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&&f()}),(function(e){return e.$isLoading&&f()})),t.StyledText=a.default.span.withConfig({displayName:"Button-v2style__StyledText",componentId:"sc-1u6xcsj-1"})(["vertical-align:middle;"," ",""],(function(e){return e.$isLoading&&(0,a.css)(["opacity:0.5;padding-left:7px;"])}),(function(e){var t=e.variant,n=e.disabled;return p(t,n)})),t.StyledIcon=(0,a.default)(i.default).withConfig({displayName:"Button-v2style__StyledIcon",componentId:"sc-1u6xcsj-2"})((function(e){var t=e.$iconColor;return(0,a.css)(["color:",";",""],t,(function(e){var t=e.variant,n=e.disabled;return p(t,n)}))}))},3031:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6031)),i=r(n(2462)),a=r(n(2015)),l=(r(n(9825)),r(n(184))),c=n(676),d=n(1431),s=n(3465),u=n(7236),f=["isLoading","type","variant","icon","iconColor","disabled","version","iconLeftAlign","children","size","gaProps","onClick"];t.default=function(e){var t=e.isLoading,n=void 0!==t&&t,r=e.type,p=void 0===r?"button":r,g=e.variant,v=void 0===g?"standard":g,b=e.icon,h=e.iconColor,m=e.disabled,y=void 0!==m&&m,w=e.version,x=void 0===w?1:w,F=e.iconLeftAlign,S=void 0!==F&&F,C=e.children,E=void 0===C?null:C,B=e.size,j=void 0===B?"lg":B,D=e.gaProps,O=e.onClick,M=(0,i.default)(e,f),k=2===x?d.StyledButton:c.StyledButton,_=2===x?d.StyledText:c.StyledText,P=2===x?d.StyledIcon:c.StyledIcon,A="standard"!==v,I=!!(0,s.isValidIconElement)(b)&&b,T=!!(0,s.isValidIconName)(b)&&b;return a.default.createElement(k,(0,o.default)({},M,{type:p,$variant:v,$icon:b,$iconLeftAlign:S,disabled:y,$isLoading:n,size:j,onClick:function(e){D&&null!=D&&D.gaEvent&&(0,u.pushGAEvent)(null==D?void 0:D.gaEvent,null==D?void 0:D.gaData),O&&O(e)}}),n&&a.default.createElement(l.default,{reverse:A}),E&&a.default.createElement(_,{$isLoading:n,variant:v,disabled:y},E),I&&a.default.createElement(I,{fill:h,"data-testid":"button-icon",role:"button-icon"}),!I&&T&&a.default.createElement(P,{name:T,$iconColor:h,disabled:y,variant:v,"data-testid":"button-icon",role:"button-icon"}))}},676:(e,t,n)=>{var r=n(3751),o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=r(n(2846)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2770)),l=n(3290),c=n(7427),d=n(9292);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u=t.CONFIG={standard:{color:l.theme.color[10],bgColor:l.theme.btnStandard,hoverColor:l.theme.btnStandardHover,fontWeight:400},action:{color:l.theme.color[11],bgColor:l.theme.btnAction,hoverColor:l.theme.btnActionHover,fontWeight:500},active:{color:l.theme.color[11],bgColor:l.theme.btnActive,hoverColor:l.theme.btnActiveHover,fontWeight:500},selection:{color:l.theme.color[11],bgColor:l.theme.btnSelection,hoverColor:l.theme.btnSelectionHover,fontWeight:500}},f=function(){return(0,a.css)(["cursor:default;pointer-events:none;box-shadow:none;&&:focus{box-shadow:none;}"])},p=function(e,t){return t&&e&&(0,a.css)(["opacity:",";"],"standard"===e?"0.5":"1")};t.StyledButton=a.default.button.withConfig({displayName:"Buttonstyle__StyledButton",componentId:"sc-1q7jh6y-0"})([""," border:0;cursor:pointer;border-radius:3px;-webkit-tap-highlight-color:rgba(0,0,0,0);gap:9px;height:46px;padding:0 16px;font-size:15px;box-shadow:0 2px 3px 0 rgba(0,0,0,0.4);&&:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," "," "," "," "," ",""],l.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{","}"],function(e,t){return e&&u[e]&&(0,a.css)(["color:",";background:",";font-weight:",";&&:hover:enabled,&&:focus:enabled,&&:active:enabled{background:",";}"],u[e].color,t?(n=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",n)):u[e].bgColor,u[e].fontWeight,u[e].hoverColor);var n}(t,n),p(t,n))}),(function(e){var t=e.size;return t&&(0,c.isSizeSm)(t)&&(0,a.css)(["height:40px;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;padding:0 12px;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])})),t.StyledText=a.default.span.withConfig({displayName:"Buttonstyle__StyledText",componentId:"sc-1q7jh6y-1"})(["vertical-align:middle;"," ",""],(function(e){return e.$isLoading&&(0,a.css)(["opacity:0.5;padding-left:7px;"])}),(function(e){var t=e.variant,n=e.disabled;return p(t,n)})),t.StyledIcon=(0,a.default)(i.default).withConfig({displayName:"Buttonstyle__StyledIcon",componentId:"sc-1q7jh6y-2"})((function(e){var t=e.$iconColor;return(0,a.css)(["color:",";",""],t,(function(e){var t=e.variant,n=e.disabled;return p(t,n)}))}))},2078:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(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,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6031)),i=r(n(2462)),a=r(n(2015)),l=(r(n(9825)),r(n(2078))),c=["name"];t.default=function(e){var t=e.name,n=(0,i.default)(e,c);return a.default.createElement(l.default,(0,o.default)({iconName:t},n))}},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",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"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.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=r(n(1267)),i=r(n(492)),a=r(n(9098)),l=r(n(9090)),c=r(n(5050)),d=r(n(509))},9098:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(2770),i=r(n(1267)),a=(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 n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],r={fontFamily:{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=r},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],r={fontFamily:{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=r},9945:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6031)),i=r(n(2462)),a=r(n(2015)),l=(r(n(9825)),n(7846)),c=["reverse"];t.default=function(e){var t=e.reverse,n=void 0!==t&&t,r=(0,i.default)(e,c);return a.default.createElement(l.StyledSpinner,(0,o.default)({reverse:n,"data-testid":"spinner",role:"spinner"},r))}},7846:(e,t,n)=>{var r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledSpinner=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var 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,n&&n.set(e,o),o}(n(2770)),i=n(3290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.StyledSpinner=o.default.span.withConfig({displayName:"Spinnerstyle__StyledSpinner",componentId:"sc-uj77gv-0"})([""," display:inline-block;width:24px;height:24px;vertical-align:middle;animation:spin 1s infinite linear;border-radius:150px;border:2px solid #646464;border-top-color:rgba(100,100,100,0.4);border-left-color:rgba(100,100,100,0.4);border-bottom-color:rgba(100,100,100,0.4);"," @keyframes spin{0%{transform:rotate(0);}100%{transform:rotate(360deg);}}"],i.mixins.globalStyles,(function(e){return e.reverse&&(0,o.css)(["border:2px solid rgba(255,255,255,0.4);border-right:3px solid #FFFFFF;"])}))},184:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(9945));t.default=o.default},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.getMonthName=t.getFormattedDate=void 0;var r=n(4513),o=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return i("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(o.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(o.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!n&&/(iPhone\sOS)\s([\d_]+)/.test(t)||n,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,r.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var n=window.atob(t[1]).toString("ascii");if(JSON.parse(n).firstName)return!0}return!1},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,n=window.scrollY,r=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,o=e.offsetHeight})),document.addEventListener("scroll",(function(){o=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||o<=r?e.style.top="0px":window.scrollY<n?i<0?e.style.top=i+n-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+n-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),n=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.scrollTop,r=e.clientHeight,o=t-n;return o>=r-1&&o<=r+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.clientHeight;return!(t>=n-1&&t<=n+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:n,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())}},7236:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var o=r(n(1116)),i=r(n(7826));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var n=(0,i.default)(e,2),r=n[0],o=n[1];null!=o&&(t["data-ga-".concat(r)]=String(o))})),t},t.pushGAEvent=function(e,t){var n=window.dataLayer;e&&n&&n.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({event:e},t)}},7427:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=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}};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){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},t.setCookieStorage=function(e,t,n){var r=window.location.hostname,o="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(n||86400)}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},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 n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}var r={};(()=>{var e=r,t=n(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(n(3031));e.default=o.default})(),module.exports=r})();
|
|
1
|
+
(()=>{"use strict";var e={1431:(e,t,n)=>{var r=n(3751),o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=r(n(2846)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2770)),l=n(3290),c=n(7427),d=n(9292);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u=t.CONFIG={standard:{color:l.themeV2.color[10],bgColor:l.themeV2.btnStandard,hoverColor:l.themeV2.btnStandardHover,fontWeight:500},action:{color:l.themeV2.color[11],bgColor:l.themeV2.btnAction,hoverColor:l.themeV2.btnActionHover,fontWeight:500},active:{color:l.themeV2.color[11],bgColor:l.themeV2.btnActive,hoverColor:l.themeV2.btnActiveHover,fontWeight:500},selection:{color:l.themeV2.color[11],bgColor:l.themeV2.btnSelection,hoverColor:l.themeV2.btnSelectionHover,fontWeight:500}},f=function(){return(0,a.css)(["pointer-events:none;box-shadow:none;"])},p=function(e,t){return t&&e&&(0,a.css)(["opacity:",";"],"standard"===e?"0.5":"1")};t.StyledButton=a.default.button.withConfig({displayName:"Button-v2style__StyledButton",componentId:"sc-1u6xcsj-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:12px;border:0;height:46px;cursor:pointer;border-radius:4px;-webkit-tap-highlight-color:rgba(0,0,0,0);font-size:16px;line-height:1;"," "," "," "," &:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," ",""],l.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{"," font-size:12px;}"],function(e,t){return e&&u[e]&&(0,a.css)(["&,&:visited{background:",";font-weight:",";color:",";text-decoration:none;}&:hover,&:focus,&:active{background:",";font-weight:",";color:",";text-decoration:none;}"],t?(n=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",n)):u[e].bgColor,u[e].fontWeight,u[e].color,u[e].hoverColor,u[e].fontWeight,u[e].color);var n}(t,n),p(t,n))}),(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&&f()}),(function(e){return e.$isLoading&&f()})),t.StyledText=a.default.span.withConfig({displayName:"Button-v2style__StyledText",componentId:"sc-1u6xcsj-1"})(["vertical-align:middle;"," ",""],(function(e){return e.$isLoading&&(0,a.css)(["opacity:0.5;padding-left:7px;"])}),(function(e){var t=e.variant,n=e.disabled;return p(t,n)})),t.StyledIcon=(0,a.default)(i.default).withConfig({displayName:"Button-v2style__StyledIcon",componentId:"sc-1u6xcsj-2"})((function(e){var t=e.$iconColor;return(0,a.css)(["color:",";",""],t,(function(e){var t=e.variant,n=e.disabled;return p(t,n)}))}))},3031:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6031)),i=r(n(2462)),a=r(n(2015)),l=(r(n(9825)),r(n(184))),c=n(676),d=n(1431),s=n(3465),u=n(7236),f=["isLoading","type","variant","icon","iconColor","disabled","version","iconLeftAlign","children","size","gaProps","onClick"];t.default=function(e){var t=e.isLoading,n=void 0!==t&&t,r=e.type,p=void 0===r?"button":r,g=e.variant,v=void 0===g?"standard":g,b=e.icon,h=e.iconColor,m=e.disabled,y=void 0!==m&&m,w=e.version,x=void 0===w?1:w,F=e.iconLeftAlign,S=void 0!==F&&F,C=e.children,E=void 0===C?null:C,B=e.size,j=void 0===B?"lg":B,D=e.gaProps,O=e.onClick,M=(0,i.default)(e,f),k=2===x?d.StyledButton:c.StyledButton,_=2===x?d.StyledText:c.StyledText,P=2===x?d.StyledIcon:c.StyledIcon,A="standard"!==v,I=!!(0,s.isValidIconElement)(b)&&b,T=!!(0,s.isValidIconName)(b)&&b;return a.default.createElement(k,(0,o.default)({},M,{type:p,$variant:v,$icon:b,$iconLeftAlign:S,disabled:y,$isLoading:n,size:j,onClick:function(e){D&&null!=D&&D.gaEvent&&(0,u.pushGAEvent)(null==D?void 0:D.gaEvent,null==D?void 0:D.gaData),O&&O(e)}}),n&&a.default.createElement(l.default,{reverse:A}),E&&a.default.createElement(_,{$isLoading:n,variant:v,disabled:y},E),I&&a.default.createElement(I,{fill:h,"data-testid":"button-icon",role:"button-icon"}),!I&&T&&a.default.createElement(P,{name:T,$iconColor:h,disabled:y,variant:v,"data-testid":"button-icon",role:"button-icon"}))}},676:(e,t,n)=>{var r=n(3751),o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=r(n(2846)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2770)),l=n(3290),c=n(7427),d=n(9292);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u=t.CONFIG={standard:{color:l.theme.color[10],bgColor:l.theme.btnStandard,hoverColor:l.theme.btnStandardHover,fontWeight:400},action:{color:l.theme.color[11],bgColor:l.theme.btnAction,hoverColor:l.theme.btnActionHover,fontWeight:500},active:{color:l.theme.color[11],bgColor:l.theme.btnActive,hoverColor:l.theme.btnActiveHover,fontWeight:500},selection:{color:l.theme.color[11],bgColor:l.theme.btnSelection,hoverColor:l.theme.btnSelectionHover,fontWeight:500}},f=function(){return(0,a.css)(["cursor:default;pointer-events:none;box-shadow:none;&&:focus{box-shadow:none;}"])},p=function(e,t){return t&&e&&(0,a.css)(["opacity:",";"],"standard"===e?"0.5":"1")};t.StyledButton=a.default.button.withConfig({displayName:"Buttonstyle__StyledButton",componentId:"sc-1q7jh6y-0"})([""," border:0;cursor:pointer;border-radius:3px;-webkit-tap-highlight-color:rgba(0,0,0,0);gap:9px;height:46px;padding:0 16px;font-size:16px;box-shadow:0 2px 3px 0 rgba(0,0,0,0.4);&&:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," "," "," "," "," ",""],l.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{","}"],function(e,t){return e&&u[e]&&(0,a.css)(["color:",";background:",";font-weight:",";&&:hover:enabled,&&:focus:enabled,&&:active:enabled{background:",";}"],u[e].color,t?(n=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",n)):u[e].bgColor,u[e].fontWeight,u[e].hoverColor);var n}(t,n),p(t,n))}),(function(e){var t=e.size;return t&&(0,c.isSizeSm)(t)&&(0,a.css)(["height:40px;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;padding:0 12px;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])})),t.StyledText=a.default.span.withConfig({displayName:"Buttonstyle__StyledText",componentId:"sc-1q7jh6y-1"})(["vertical-align:middle;"," ",""],(function(e){return e.$isLoading&&(0,a.css)(["opacity:0.5;padding-left:7px;"])}),(function(e){var t=e.variant,n=e.disabled;return p(t,n)})),t.StyledIcon=(0,a.default)(i.default).withConfig({displayName:"Buttonstyle__StyledIcon",componentId:"sc-1q7jh6y-2"})((function(e){var t=e.$iconColor;return(0,a.css)(["color:",";",""],t,(function(e){var t=e.variant,n=e.disabled;return p(t,n)}))}))},2078:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(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,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6031)),i=r(n(2462)),a=r(n(2015)),l=(r(n(9825)),r(n(2078))),c=["name"];t.default=function(e){var t=e.name,n=(0,i.default)(e,c);return a.default.createElement(l.default,(0,o.default)({iconName:t},n))}},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",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"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.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=r(n(1267)),i=r(n(492)),a=r(n(9098)),l=r(n(9090)),c=r(n(5050)),d=r(n(509))},9098:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(2770),i=r(n(1267)),a=(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 n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],r={fontFamily:{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=r},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],r={fontFamily:{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=r},9945:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6031)),i=r(n(2462)),a=r(n(2015)),l=(r(n(9825)),n(7846)),c=["reverse"];t.default=function(e){var t=e.reverse,n=void 0!==t&&t,r=(0,i.default)(e,c);return a.default.createElement(l.StyledSpinner,(0,o.default)({reverse:n,"data-testid":"spinner",role:"spinner"},r))}},7846:(e,t,n)=>{var r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledSpinner=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var 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,n&&n.set(e,o),o}(n(2770)),i=n(3290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.StyledSpinner=o.default.span.withConfig({displayName:"Spinnerstyle__StyledSpinner",componentId:"sc-uj77gv-0"})([""," display:inline-block;width:24px;height:24px;vertical-align:middle;animation:spin 1s infinite linear;border-radius:150px;border:2px solid #646464;border-top-color:rgba(100,100,100,0.4);border-left-color:rgba(100,100,100,0.4);border-bottom-color:rgba(100,100,100,0.4);"," @keyframes spin{0%{transform:rotate(0);}100%{transform:rotate(360deg);}}"],i.mixins.globalStyles,(function(e){return e.reverse&&(0,o.css)(["border:2px solid rgba(255,255,255,0.4);border-right:3px solid #FFFFFF;"])}))},184:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(9945));t.default=o.default},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.getMonthName=t.getFormattedDate=void 0;var r=n(4513),o=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return i("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(o.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(o.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!n&&/(iPhone\sOS)\s([\d_]+)/.test(t)||n,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,r.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var n=window.atob(t[1]).toString("ascii");if(JSON.parse(n).firstName)return!0}return!1},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,n=window.scrollY,r=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,o=e.offsetHeight})),document.addEventListener("scroll",(function(){o=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||o<=r?e.style.top="0px":window.scrollY<n?i<0?e.style.top=i+n-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+n-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),n=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.scrollTop,r=e.clientHeight,o=t-n;return o>=r-1&&o<=r+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.clientHeight;return!(t>=n-1&&t<=n+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:n,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())}},7236:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var o=r(n(1116)),i=r(n(7826));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var n=(0,i.default)(e,2),r=n[0],o=n[1];null!=o&&(t["data-ga-".concat(r)]=String(o))})),t},t.pushGAEvent=function(e,t){var n=window.dataLayer;e&&n&&n.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({event:e},t)}},7427:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=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}};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){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},t.setCookieStorage=function(e,t,n){var r=window.location.hostname,o="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(n||86400)}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},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 n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}var r={};(()=>{var e=r,t=n(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(n(3031));e.default=o.default})(),module.exports=r})();
|
package/components/carousel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={892:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2015)),i=(n(r(9825)),r(6413)),a=function(e){var t=e.title,r=e.description;return o.default.createElement(i.StyledWrapper,null,o.default.createElement(i.StyledTitle,null,t),r)};t.default=o.default.memo(a)},6413:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledTitle=void 0;var o=n(r(2770)),i=r(3290);t.StyledWrapper=o.default.div.withConfig({displayName:"style__StyledWrapper",componentId:"sc-1q9ht0f-0"})(["color:white;position:absolute;background:#000000;opacity:75%;bottom:12px;font-size:13px;left:12px;right:12px;padding:12px;"]),t.StyledTitle=o.default.h3.withConfig({displayName:"style__StyledTitle",componentId:"sc-1q9ht0f-1"})(["font-size:16px;font-weight:bold;margin-bottom:6px;margin-top:0;color:",";"],i.theme.color[11])},5483:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7826)),a=g(r(2015)),l=(n(r(9825)),n(r(9746))),c=n(r(5295)),u=g(r(2508)),d=n(r(2511)),s=n(r(892)),f=r(5960);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=p(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}t.default=function(e){var t=e.data;if(!t)return null;var r=(0,a.useState)(!1),n=(0,i.default)(r,2),o=n[0],p=n[1],g=(0,a.useState)(0),m=(0,i.default)(g,2),h=m[0],y=m[1],v=a.default.useRef(),w=a.default.useRef(),b=function(){var e=5*parseInt(h/5);h%5==0&&(e=5*parseInt((h-1)/5)),w.current.slickGoTo(e)},x=function(){if(h>=0&&h<=3)w.current.slickGoTo(0);else{var e=5*parseInt((h+1)/5);w.current.slickGoTo(e)}},k=function(e){var t=e.direction;if(!o){var r=w.current.innerSlider.state.slideCount,n=0===h,i=h===r-1;"left"===t?function(){if(n)return y(r-1),v.current.slickGoTo(r-1),void w.current.slickGoTo(r-5);b(),v.current.slickPrev()}():"right"===t&&function(){if(i)return y(0),v.current.slickGoTo(0),void w.current.slickGoTo(0);x(),v.current.slickNext()}()}},S=(0,a.useMemo)((function(){return t.map((function(e){return{thumbUrl:(e||{}).thumbUrl}}))}),[t]);return a.default.createElement(f.StyledWrapper,null,a.default.createElement(l.default,{ref:v,infinite:!1,focusOnSelect:!1,swipeToSlide:!1,accessibility:!0,slidesToShow:1,slidesToScroll:1,speed:350,initialSlide:0,prevArrow:a.default.createElement(u.default,{direction:"left",icon:a.default.createElement(u.LeftArrow,null),customOnClick:function(){return k({direction:"left"})}}),nextArrow:a.default.createElement(u.default,{direction:"right",icon:a.default.createElement(u.RightArrow,null),customOnClick:function(){return k({direction:"right"})}}),beforeChange:function(e,t){p(!0),y(t)},afterChange:function(){return p(!1)},onSwipe:function(e){var t;"left"===(t=e)?x():"right"===t&&b()}},t&&t.map((function(e,t){var r=e||{},n=r.url,o=r.type,i=r.title,l=r.description;return a.default.createElement(f.StyledItem,{key:"".concat(t).concat(n)},a.default.createElement(d.default,{url:n,type:o}),(i||l)&&a.default.createElement(s.default,{title:i,description:l}))}))),a.default.createElement(c.default,{items:S,carouselRef:v,thumbnailsRef:w,selectedSlide:h,setSelectedSlide:y,initialSlide:0,slidesPerPage:5}))}},5960:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledItem=void 0;var o=n(r(2770)),i=r(3290);t.StyledItem=o.default.div.withConfig({displayName:"Carouselstyle__StyledItem",componentId:"sc-kqu3r8-0"})(["position:relative;background:#646464;height:400px;iframe,img{height:100%;}iframe{border:0;width:100%;}img{max-width:100%;margin:auto;object-fit:cover;}:focus{outline:none;}"]),t.StyledWrapper=o.default.div.withConfig({displayName:"Carouselstyle__StyledWrapper",componentId:"sc-kqu3r8-1"})([""," :hover{.carousel-arrow-container{opacity:0.4;}}.slick-slider{position:relative;display:block;box-sizing:border-box;-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;display:block;margin-left:auto;margin-right:auto;}.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;border:1px solid transparent;}.slick-arrow.slick-hidden{display:none;}"],i.mixins.globalStyles)},2511:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2015)),i=(n(r(9825)),function(e){var t=e.url,r=e.type;return"photo"===r||null==r?o.default.createElement("img",{src:t}):"video"===r||"tour"===r?o.default.createElement("iframe",{src:t}):null});t.default=o.default.memo(i)},2508:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RightArrow=t.LeftArrow=void 0;var o=n(r(2015)),i=(n(r(9825)),r(349));t.LeftArrow=o.default.memo((function(){return o.default.createElement(i.StyledIcon,{name:"wj-arrow-previous"})})),t.RightArrow=o.default.memo((function(){return o.default.createElement(i.StyledIcon,{name:"wj-arrow-next"})})),t.default=function(e){var t=e.icon,r=void 0===t?null:t,n=e.direction,a=void 0===n?"left":n,l=e.isThumbnails,c=void 0!==l&&l,u=e.onClick,d=void 0===u?function(){}:u,s=e.customOnClick,f=void 0===s?null:s,p=function(){f&&"function"==typeof f?f():d()};return c?o.default.createElement(i.StyledThumbnailsContainer,{direction:a,onClick:p},r&&r):o.default.createElement(i.StyledContainer,{direction:a,onClick:p},r&&r)}},349:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledThumbnailsContainer=t.StyledIcon=t.StyledContainer=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=l(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 c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2770)),a=n(r(2846));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}t.StyledContainer=i.default.div.attrs({className:"carousel-arrow-container"}).withConfig({displayName:"style__StyledContainer",componentId:"sc-234996-0"})(["position:absolute;z-index:99999;top:50%;transform:translateY(-50%);height:100px;cursor:pointer;color:#ffffff;width:60px;height:100%;transition:all 0.3s ease-in-out;display:flex;align-items:center;justify-content:",";padding:0 12px;opacity:0;:hover{opacity:0.2!important;}",""],(function(e){return"right"===e.direction&&"flex-end"}),(function(e){var t=e.direction;return t&&(0,i.css)(["",":0;"],t)})),t.StyledThumbnailsContainer=i.default.div.withConfig({displayName:"style__StyledThumbnailsContainer",componentId:"sc-234996-1"})(["height:100px;box-shadow:0 2px 2px rgba(0,0,0,0.4);background:#CCCCCC;display:flex;align-items:center;justify-content:center;cursor:pointer;:hover{background:#adadad;color:#141414;}border-radius:14px 0 0 14px;margin-right:7px;",""],(function(e){var t=e.direction;return t&&"right"===t&&(0,i.css)(["border-radius:0 14px 14px 0;margin-left:8px;margin-right:14px;"])})),t.StyledIcon=(0,i.default)(a.default).withConfig({displayName:"style__StyledIcon",componentId:"sc-234996-2"})(["font-size:32px;width:50px;display:flex;align-items:center;justify-content:center;"])},5295:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7826)),a=s(r(2015)),l=(n(r(9825)),n(r(9746))),c=s(r(2508)),u=r(3186);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=d(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}t.default=function(e){var t=e.items,r=e.carouselRef,n=e.thumbnailsRef,o=e.selectedSlide,d=e.slidesPerPage,s=(0,a.useState)(!1),f=(0,i.default)(s,2),p=f[0],g=f[1],m=function(e){var t=e.direction;if(!p){var r=n.current.innerSlider.state,o=r.currentSlide,i=r.slideCount,a=i-o<=5;"left"===t?0===o?n.current.slickGoTo(i-5):n.current.slickPrev():"right"===t&&(a&&n.current.slickGoTo(0),n.current.slickNext())}};return a.default.createElement(u.StyledWrapper,null,a.default.createElement(l.default,{className:"thumbnails",ref:n,infinite:!1,focusOnSelect:!1,swipeToSlide:!1,accessibility:!0,speed:100,slidesToShow:d,slidesToScroll:d,prevArrow:a.default.createElement(c.default,{direction:"left",icon:a.default.createElement(c.LeftArrow,null),isThumbnails:!0,customOnClick:function(){return m({direction:"left"})}}),nextArrow:a.default.createElement(c.default,{direction:"right",icon:a.default.createElement(c.RightArrow,null),isThumbnails:!0,customOnClick:function(){return m({direction:"right"})}}),beforeChange:function(){return g(!0)},afterChange:function(){return g(!1)}},t.map((function(e,t){var n=(e||{}).thumbUrl,i=o===t;return a.default.createElement(u.StyledImage,{isCurrent:i,key:"".concat(t).concat(n),src:n,alt:"flight",onClick:function(){return r.current.slickGoTo(t)}})}))))}},3186:(e,t,r)=>{var n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledImage=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(3465);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.StyledWrapper=o.default.div.withConfig({displayName:"style__StyledWrapper",componentId:"sc-1a52isz-0"})(["margin-top:12px;.slick-slider{margin:auto;width:688px;display:flex!important;flex-direction:row;align-items:center;justify-content:center;.slick-list{width:100%;.slick-track{display:flex;align-items:center;justify-content:center;.slick-slide{width:100px!important;height:100px!important;margin:6px;}}}}@media only screen and (max-width:","px){.slick-slider{display:none!important;}}"],i.BREAKPOINTS.MOBILE),t.StyledImage=o.default.img.withConfig({displayName:"style__StyledImage",componentId:"sc-1a52isz-1"})(["object-fit:cover;width:100%;height:100%;opacity:0.5;cursor:pointer;:hover{opacity:1;}",""],(function(e){return e.isCurrent&&(0,o.css)(["box-shadow:0 0 0 3px #ff8c00;opacity:1;"])}))},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",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"}}},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 u.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.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)),u=n(r(509))},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"],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},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},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.getMonthName=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.isUserLoggedIn=function(){var e,t=null===(e=(0,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var r=window.atob(t[1]).toString("ascii");if(JSON.parse(r).firstName)return!0}return!1},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){a(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())}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=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}};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){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},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)}},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")},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(5483));e.default=o.default})(),module.exports=n})();
|
|
1
|
+
(()=>{"use strict";var e={892:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2015)),i=(n(r(9825)),r(6413)),a=function(e){var t=e.title,r=e.description;return o.default.createElement(i.StyledWrapper,null,o.default.createElement(i.StyledTitle,null,t),r)};t.default=o.default.memo(a)},6413:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledTitle=void 0;var o=n(r(2770)),i=r(3290);t.StyledWrapper=o.default.div.withConfig({displayName:"style__StyledWrapper",componentId:"sc-1q9ht0f-0"})(["color:white;position:absolute;background:#000000;opacity:75%;bottom:12px;font-size:14px;left:12px;right:12px;padding:12px;"]),t.StyledTitle=o.default.h3.withConfig({displayName:"style__StyledTitle",componentId:"sc-1q9ht0f-1"})(["font-size:16px;font-weight:bold;margin-bottom:6px;margin-top:0;color:",";"],i.theme.color[11])},5483:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7826)),a=g(r(2015)),l=(n(r(9825)),n(r(9746))),c=n(r(5295)),u=g(r(2508)),d=n(r(2511)),s=n(r(892)),f=r(5960);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=p(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}t.default=function(e){var t=e.data;if(!t)return null;var r=(0,a.useState)(!1),n=(0,i.default)(r,2),o=n[0],p=n[1],g=(0,a.useState)(0),m=(0,i.default)(g,2),h=m[0],y=m[1],v=a.default.useRef(),w=a.default.useRef(),b=function(){var e=5*parseInt(h/5);h%5==0&&(e=5*parseInt((h-1)/5)),w.current.slickGoTo(e)},x=function(){if(h>=0&&h<=3)w.current.slickGoTo(0);else{var e=5*parseInt((h+1)/5);w.current.slickGoTo(e)}},k=function(e){var t=e.direction;if(!o){var r=w.current.innerSlider.state.slideCount,n=0===h,i=h===r-1;"left"===t?function(){if(n)return y(r-1),v.current.slickGoTo(r-1),void w.current.slickGoTo(r-5);b(),v.current.slickPrev()}():"right"===t&&function(){if(i)return y(0),v.current.slickGoTo(0),void w.current.slickGoTo(0);x(),v.current.slickNext()}()}},S=(0,a.useMemo)((function(){return t.map((function(e){return{thumbUrl:(e||{}).thumbUrl}}))}),[t]);return a.default.createElement(f.StyledWrapper,null,a.default.createElement(l.default,{ref:v,infinite:!1,focusOnSelect:!1,swipeToSlide:!1,accessibility:!0,slidesToShow:1,slidesToScroll:1,speed:350,initialSlide:0,prevArrow:a.default.createElement(u.default,{direction:"left",icon:a.default.createElement(u.LeftArrow,null),customOnClick:function(){return k({direction:"left"})}}),nextArrow:a.default.createElement(u.default,{direction:"right",icon:a.default.createElement(u.RightArrow,null),customOnClick:function(){return k({direction:"right"})}}),beforeChange:function(e,t){p(!0),y(t)},afterChange:function(){return p(!1)},onSwipe:function(e){var t;"left"===(t=e)?x():"right"===t&&b()}},t&&t.map((function(e,t){var r=e||{},n=r.url,o=r.type,i=r.title,l=r.description;return a.default.createElement(f.StyledItem,{key:"".concat(t).concat(n)},a.default.createElement(d.default,{url:n,type:o}),(i||l)&&a.default.createElement(s.default,{title:i,description:l}))}))),a.default.createElement(c.default,{items:S,carouselRef:v,thumbnailsRef:w,selectedSlide:h,setSelectedSlide:y,initialSlide:0,slidesPerPage:5}))}},5960:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledItem=void 0;var o=n(r(2770)),i=r(3290);t.StyledItem=o.default.div.withConfig({displayName:"Carouselstyle__StyledItem",componentId:"sc-kqu3r8-0"})(["position:relative;background:#646464;height:400px;iframe,img{height:100%;}iframe{border:0;width:100%;}img{max-width:100%;margin:auto;object-fit:cover;}:focus{outline:none;}"]),t.StyledWrapper=o.default.div.withConfig({displayName:"Carouselstyle__StyledWrapper",componentId:"sc-kqu3r8-1"})([""," :hover{.carousel-arrow-container{opacity:0.4;}}.slick-slider{position:relative;display:block;box-sizing:border-box;-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;display:block;margin-left:auto;margin-right:auto;}.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;border:1px solid transparent;}.slick-arrow.slick-hidden{display:none;}"],i.mixins.globalStyles)},2511:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2015)),i=(n(r(9825)),function(e){var t=e.url,r=e.type;return"photo"===r||null==r?o.default.createElement("img",{src:t}):"video"===r||"tour"===r?o.default.createElement("iframe",{src:t}):null});t.default=o.default.memo(i)},2508:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RightArrow=t.LeftArrow=void 0;var o=n(r(2015)),i=(n(r(9825)),r(349));t.LeftArrow=o.default.memo((function(){return o.default.createElement(i.StyledIcon,{name:"wj-arrow-previous"})})),t.RightArrow=o.default.memo((function(){return o.default.createElement(i.StyledIcon,{name:"wj-arrow-next"})})),t.default=function(e){var t=e.icon,r=void 0===t?null:t,n=e.direction,a=void 0===n?"left":n,l=e.isThumbnails,c=void 0!==l&&l,u=e.onClick,d=void 0===u?function(){}:u,s=e.customOnClick,f=void 0===s?null:s,p=function(){f&&"function"==typeof f?f():d()};return c?o.default.createElement(i.StyledThumbnailsContainer,{direction:a,onClick:p},r&&r):o.default.createElement(i.StyledContainer,{direction:a,onClick:p},r&&r)}},349:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledThumbnailsContainer=t.StyledIcon=t.StyledContainer=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=l(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 c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(2770)),a=n(r(2846));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}t.StyledContainer=i.default.div.attrs({className:"carousel-arrow-container"}).withConfig({displayName:"style__StyledContainer",componentId:"sc-234996-0"})(["position:absolute;z-index:99999;top:50%;transform:translateY(-50%);height:100px;cursor:pointer;color:#ffffff;width:60px;height:100%;transition:all 0.3s ease-in-out;display:flex;align-items:center;justify-content:",";padding:0 12px;opacity:0;:hover{opacity:0.2!important;}",""],(function(e){return"right"===e.direction&&"flex-end"}),(function(e){var t=e.direction;return t&&(0,i.css)(["",":0;"],t)})),t.StyledThumbnailsContainer=i.default.div.withConfig({displayName:"style__StyledThumbnailsContainer",componentId:"sc-234996-1"})(["height:100px;box-shadow:0 2px 2px rgba(0,0,0,0.4);background:#CCCCCC;display:flex;align-items:center;justify-content:center;cursor:pointer;:hover{background:#adadad;color:#141414;}border-radius:14px 0 0 14px;margin-right:7px;",""],(function(e){var t=e.direction;return t&&"right"===t&&(0,i.css)(["border-radius:0 14px 14px 0;margin-left:8px;margin-right:14px;"])})),t.StyledIcon=(0,i.default)(a.default).withConfig({displayName:"style__StyledIcon",componentId:"sc-234996-2"})(["font-size:32px;width:50px;display:flex;align-items:center;justify-content:center;"])},5295:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7826)),a=s(r(2015)),l=(n(r(9825)),n(r(9746))),c=s(r(2508)),u=r(3186);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var r=d(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}t.default=function(e){var t=e.items,r=e.carouselRef,n=e.thumbnailsRef,o=e.selectedSlide,d=e.slidesPerPage,s=(0,a.useState)(!1),f=(0,i.default)(s,2),p=f[0],g=f[1],m=function(e){var t=e.direction;if(!p){var r=n.current.innerSlider.state,o=r.currentSlide,i=r.slideCount,a=i-o<=5;"left"===t?0===o?n.current.slickGoTo(i-5):n.current.slickPrev():"right"===t&&(a&&n.current.slickGoTo(0),n.current.slickNext())}};return a.default.createElement(u.StyledWrapper,null,a.default.createElement(l.default,{className:"thumbnails",ref:n,infinite:!1,focusOnSelect:!1,swipeToSlide:!1,accessibility:!0,speed:100,slidesToShow:d,slidesToScroll:d,prevArrow:a.default.createElement(c.default,{direction:"left",icon:a.default.createElement(c.LeftArrow,null),isThumbnails:!0,customOnClick:function(){return m({direction:"left"})}}),nextArrow:a.default.createElement(c.default,{direction:"right",icon:a.default.createElement(c.RightArrow,null),isThumbnails:!0,customOnClick:function(){return m({direction:"right"})}}),beforeChange:function(){return g(!0)},afterChange:function(){return g(!1)}},t.map((function(e,t){var n=(e||{}).thumbUrl,i=o===t;return a.default.createElement(u.StyledImage,{isCurrent:i,key:"".concat(t).concat(n),src:n,alt:"flight",onClick:function(){return r.current.slickGoTo(t)}})}))))}},3186:(e,t,r)=>{var n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledImage=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(3465);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.StyledWrapper=o.default.div.withConfig({displayName:"style__StyledWrapper",componentId:"sc-1a52isz-0"})(["margin-top:12px;.slick-slider{margin:auto;width:688px;display:flex!important;flex-direction:row;align-items:center;justify-content:center;.slick-list{width:100%;.slick-track{display:flex;align-items:center;justify-content:center;.slick-slide{width:100px!important;height:100px!important;margin:6px;}}}}@media only screen and (max-width:","px){.slick-slider{display:none!important;}}"],i.BREAKPOINTS.MOBILE),t.StyledImage=o.default.img.withConfig({displayName:"style__StyledImage",componentId:"sc-1a52isz-1"})(["object-fit:cover;width:100%;height:100%;opacity:0.5;cursor:pointer;:hover{opacity:1;}",""],(function(e){return e.isCurrent&&(0,o.css)(["box-shadow:0 0 0 3px #ff8c00;opacity:1;"])}))},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",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"}}},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 u.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.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)),u=n(r(509))},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"],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},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},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.getMonthName=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.isUserLoggedIn=function(){var e,t=null===(e=(0,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var r=window.atob(t[1]).toString("ascii");if(JSON.parse(r).firstName)return!0}return!1},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){a(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())}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=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}};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){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},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)}},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")},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(5483));e.default=o.default})(),module.exports=n})();
|