@webjet/react 1.0.12 → 1.0.13
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var e={5030:function(e,t,o){var n=o(7880),r=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(8779)),a=n(o(3838)),l=n(o(8213)),c=n(o(353)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var o=E(t);if(o&&o.has(e))return o.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.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,o&&o.set(e,n),n}(o(6689)),s=(n(o(580)),o(1929)),d=n(o(1848)),p=n(o(9003)),f=n(o(3682)),g=n(o(5900)),h=n(o(7350)),m=n(o(2367)),b=n(o(1050)),x=o(9941),v=["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(e){var t=e.id,o=e.className,n=e.optionsLimit,r=e.minValueLength,i=e.defaultOptions,a=e.loadOptions,l=e.noOptionsMessage,s=e.placeholder,d=e.value,p=e.isMulti,f=e.autoFillOnBlur,g=e.autoFilterInput,h=e.icon,v=e.onChange,w=e.onBlur,y=e.onFocus,E=e.errorMessage,F=e.state,S=e.disabled,I=e.isAutoFocused,j=(0,u.useState)(""),D=(0,c.default)(j,2),P=D[0],A=D[1],T=(0,u.useState)(""),H=(0,c.default)(T,2),N=H[0],W=H[1],L=!1,z=(0,u.useRef)();return u.default.createElement(u.default.Fragment,null,u.default.createElement(b.default,{ref:z,id:t,className:o,icon:h,classNamePrefix:"wj-autocomplete",isClearable:!0,isMulti:p,loadOptions:function(e,t){a&&N.length>=r?a(N,t):t()},noOptionsMessage:function(e){return e.inputValue,N.length>=r?l:null},placeholder:s,inputValue:P,filterInputValue:N,value:d,optionsLimit:n,components:{Control:C,Option:B,LoadingIndicator:_,Input:M,MenuList:O,ClearIndicator:k},onChange:v,onInputChange:function(e,t){if("input-blur"!==t.action&&"menu-close"!==t.action){A(e);var o=g?(0,x.sanitiseInputText)(e):e;W(o)}"set-value"===t.action&&(L=!0),e.length<=1&&"input-change"===t.action&&z.current.select.select.clearValue()},filterOption:function(e){var t=e.value,o=z.current.state.loadedOptions.findIndex((function(e){return e.value===t}));return!n||!o||o<n},onBlur:function(e){if(w&&w(e),f&&P.length>=r){var t=z.current,o=t.optionsCache,n=t.props.inputValue,i=t.state.loadedOptions;if(o[n]&&0===o[n].length)return;if(i&&i.length>0&&!L){var l,c=i[0],u=null!==(l=c.options)&&void 0!==l&&l.length?c.options[0]:c;return void z.current.select.select.setValue(u)}a(P,(function(e){if(e&&e.length>0&&!L){var t,o=e[0],n=null!==(t=o.options)&&void 0!==t&&t.length?o.options[0]:o;z.current.select.select.setValue(n)}}))}},onFocus:function(e){y&&y(e)},state:F,defaultOptions:i,tabSelectsValue:!1,onKeyDown:function(e){if("Tab"===e.key){var t=z.current.select.select.state.focusedOption;t&&z.current.select.select.setValue(t)}},disabled:S,autoFocus:I}),"error"===F&&E&&u.default.createElement(m.default,null,E))},_=function(){return u.default.createElement("span",{className:"loader"})},k=function(e){var t=e.selectProps,o=e.innerProps,n=t.classNamePrefix;return u.default.createElement(f.default,(0,l.default)({className:"".concat(n,"__clear-indicator")},o))},C=function(e){var t=e.children,o=(0,a.default)(e,v),n=o.selectProps,r=n.classNamePrefix,i=n.icon,l=!!(0,x.isValidIconElement)(i)&&i,c=!!(0,x.isValidIconName)(i)&&i;return u.default.createElement(s.components.Control,o,l&&u.default.createElement("span",{className:"".concat(r,"__input-svg-icon")},u.default.createElement(l,null)),!l&&c&&u.default.createElement(g.default,{name:c,className:"".concat(r,"__input-icon")}),t)},B=function(e){var t=e.data,o=e.selectProps,n=(0,a.default)(e,w);return u.default.createElement(s.components.Option,(0,l.default)({className:(0,p.default)({"with-tag":t.tag,"with-icon":t.icon,"with-sublabel":t.optionSubLabel})},n),u.default.createElement(d.default,{className:(0,p.default)("option-row",{secondary:t.isSecondary}),searchWords:[o.filterInputValue],textToHighlight:t.optionLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),t.optionSubLabel&&u.default.createElement(d.default,{className:"option-row",searchWords:[o.filterInputValue],textToHighlight:t.optionSubLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),t.icon&&u.default.createElement("i",{className:(0,p.default)("wj-icon",(0,i.default)({},t.icon,t.icon))}),t.tag&&u.default.createElement("i",null,t.tag))},M=function(e){return u.default.createElement(s.components.Input,(0,l.default)({},e,{role:"presentation"}))},O=function(e){var t=e.children,o=(0,a.default)(e,y),n=o.options,r=o.hasValue,i=o.selectProps,l=i.optionsLimit,c=i.inputValue,d=i.defaultOptions.length&&!c,p=d?"Start typing for other options":"Continue typing to refine options",f=l>0&&n.length>l,g=d||f,m=r&&!c;return u.default.createElement(s.components.MenuList,o,u.default.createElement(h.default,{condition:!m},t,u.default.createElement(h.default,{condition:g},u.default.createElement("div",{tabIndex:"-1",className:"option-footer-text"},p))))};F.defaultProps={optionsLimit:0,defaultOptions:[],minValueLength:3,isMulti:!1,autoFillOnBlur:!0,autoFilterInput:!0,state:"initial",errorMessage:null,disabled:!1,isAutoFocused:!1};var S=F;t.default=S},1050:function(e,t,o){var n=o(7880),r=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(3618)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var o=c(t);if(o&&o.has(e))return o.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.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,o&&o.set(e,n),n}(o(7518)),l=o(9193);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(c=function(e){return e?o:t})(e)}var u=(0,a.keyframes)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),s=(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:50px;border-radius:",";border:1px solid ",";cursor:pointer;&:hover,&:active,&--is-focused{background:",";border-color:",";.","__input-icon{background:",";box-shadow:0 0 0 1px ",";}.","__input-svg-icon{background:",";box-shadow:0 0 0 1px ",";}.","{background:",";border:2px solid ",";border-left:0;border-right:0;}}&:active,&--is-focused{box-shadow:",";}}&__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:48px;height:100%;box-shadow:1px 0 0 0 ",";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:48px;height:100%;background:",";box-shadow:1px 0 0 0 ",";border-top-left-radius:3px;border-bottom-left-radius:3px;svg{width:32px;height:32px;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;}}}.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:10px ",";border-top:1px solid #C9C9C9;border-bottom:1px solid #c9c9c9;position:relative;pointer-events:none;color:#666;font-weight:700;font-size:17px;display:block;text-decoration:none;text-align:left;height:auto;margin:0;text-transform:none;}&__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],l.theme.borderColor,t,l.theme.color[5],l.theme.borderColor,t+"__single-value",l.theme.textHighlight,l.theme.textHighlight,l.theme.activeItemOutline,l.theme.hoverDarkColor,l.theme.color[10],l.theme.color[6],l.theme.color[2],l.theme.inputIcon,l.theme.color[4],l.theme.color[2],l.theme.color[4],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],l.theme.gutterWidth,l.theme.gutterWidth,l.theme.color[2],l.theme.validationColors.inputErrorBackground,l.theme.gutterWidth,u,l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,(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=s},3729:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var r=n(o(6689)),i=(n(o(580)),o(6202)),a=function(e){var t=e.children;return t&&r.default.createElement(i.ErrorMessage,{"data-testid":"error-message",role:"error-message"},t)};t.ErrorMessageField=a,a.defaultProps={children:null};var l=a;t.default=l},6202:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var r=n(o(7518)),i=o(9193),a=r.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);t.ErrorMessage=a},2367:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(3729)).default;t.default=r},5715:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(7518)).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""},a=r;t.default=a},5900:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(8213)),i=n(o(3838)),a=n(o(6689)),l=(n(o(580)),n(o(5715))),c=["name"];t.default=function(e){var t=e.name,o=(0,i.default)(e,c);return a.default.createElement(l.default,(0,r.default)({iconName:t},o))}},6361:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(580)),i=function(e){var t=e.condition,o=e.children;return!0===t?o:null};i.propTypes={condition:r.default.bool},i.defaultProps={condition:!1};var a=i;t.default=a},7350:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(6361)).default;t.default=r},3206:function(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",firstDayOfWeek:1,weekFormat:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},9193:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=n(o(2594)),i=n(o(6932)),a=n(o(2098)),l=n(o(3206))},2098:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(7518),i=n(o(2594)),a={globalStyles:(0,r.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(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"],n={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],warningBackground:o[23],warningText:o[8],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],noticeBackground:o[28],noticeText:o[10],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=n},2594:function(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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"3px",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],warningBackground:o[23],warningText:o[8],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],noticeBackground:o[28],noticeText:o[10],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=n},9941:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.escapeRegExp=t.BREAKPOINTS=void 0;var n=o(3322),r={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=r;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return void 0!==window.ontouchstart},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 o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));r>n?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"):e.style.top="0px",o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},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.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}},3322:function(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(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}},8779:function(e){e.exports=require("@babel/runtime/helpers/defineProperty")},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},3682:function(e){e.exports=require("@webjet/react-icons/common/x-circle-fill")},9003:function(e){e.exports=require("classnames")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},1848:function(e){e.exports=require("react-highlight-words")},1929:function(e){e.exports=require("react-select")},3618:function(e){e.exports=require("react-select/async")},7518:function(e){e.exports=require("styled-components")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}var n={};!function(){var e=n,t=o(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(o(5030)).default;e.default=r}(),module.exports=n}();
|
|
1
|
+
!function(){"use strict";var e={5030:function(e,t,o){var n=o(7880),r=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(8779)),a=n(o(3838)),l=n(o(8213)),c=n(o(353)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var o=E(t);if(o&&o.has(e))return o.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.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,o&&o.set(e,n),n}(o(6689)),s=(n(o(580)),o(1929)),d=n(o(1848)),p=n(o(9003)),f=n(o(3682)),g=n(o(5900)),h=n(o(7350)),m=n(o(2367)),b=n(o(1050)),x=o(9941),v=["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(e){var t=e.id,o=e.className,n=e.optionsLimit,r=e.minValueLength,i=e.defaultOptions,a=e.loadOptions,l=e.noOptionsMessage,s=e.placeholder,d=e.value,p=e.isMulti,f=e.autoFillOnBlur,g=e.autoFilterInput,h=e.icon,v=e.onChange,w=e.onBlur,y=e.onFocus,E=e.errorMessage,F=e.state,S=e.disabled,I=e.isAutoFocused,j=(0,u.useState)(""),D=(0,c.default)(j,2),P=D[0],A=D[1],T=(0,u.useState)(""),H=(0,c.default)(T,2),N=H[0],W=H[1],L=!1,z=(0,u.useRef)();return u.default.createElement(u.default.Fragment,null,u.default.createElement(b.default,{ref:z,id:t,className:o,icon:h,classNamePrefix:"wj-autocomplete",isClearable:!0,isMulti:p,loadOptions:function(e,t){a&&N.length>=r?a(N,t):t()},noOptionsMessage:function(e){return e.inputValue,N.length>=r?l:null},placeholder:s,inputValue:P,filterInputValue:N,value:d,optionsLimit:n,components:{Control:C,Option:B,LoadingIndicator:_,Input:M,MenuList:O,ClearIndicator:k},onChange:v,onInputChange:function(e,t){if("input-blur"!==t.action&&"menu-close"!==t.action){A(e);var o=g?(0,x.sanitiseInputText)(e):e;W(o)}"set-value"===t.action&&(L=!0),e.length<=1&&"input-change"===t.action&&z.current.select.select.clearValue()},filterOption:function(e){var t=e.value,o=z.current.state.loadedOptions.findIndex((function(e){return e.value===t}));return!n||!o||o<n},onBlur:function(e){if(w&&w(e),f&&P.length>=r){var t=z.current,o=t.props.inputValue,n=t.state,i=n.loadedOptions,l=n.optionsCache;if(l[o]&&0===l[o].length)return;if(i&&i.length>0&&!L){var c,u=i[0],s=null!==(c=u.options)&&void 0!==c&&c.length?u.options[0]:u;return void z.current.select.select.setValue(s)}a(P,(function(e){if(e&&e.length>0&&!L){var t,o=e[0],n=null!==(t=o.options)&&void 0!==t&&t.length?o.options[0]:o;z.current.select.select.setValue(n)}}))}},onFocus:function(e){y&&y(e)},state:F,defaultOptions:i,tabSelectsValue:!1,onKeyDown:function(e){if("Tab"===e.key){var t=z.current.select.select.state.focusedOption;t&&z.current.select.select.setValue(t)}},disabled:S,autoFocus:I}),"error"===F&&E&&u.default.createElement(m.default,null,E))},_=function(){return u.default.createElement("span",{className:"loader"})},k=function(e){var t=e.selectProps,o=e.innerProps,n=t.classNamePrefix;return u.default.createElement(f.default,(0,l.default)({className:"".concat(n,"__clear-indicator")},o))},C=function(e){var t=e.children,o=(0,a.default)(e,v),n=o.selectProps,r=n.classNamePrefix,i=n.icon,l=!!(0,x.isValidIconElement)(i)&&i,c=!!(0,x.isValidIconName)(i)&&i;return u.default.createElement(s.components.Control,o,l&&u.default.createElement("span",{className:"".concat(r,"__input-svg-icon")},u.default.createElement(l,null)),!l&&c&&u.default.createElement(g.default,{name:c,className:"".concat(r,"__input-icon")}),t)},B=function(e){var t=e.data,o=e.selectProps,n=(0,a.default)(e,w);return u.default.createElement(s.components.Option,(0,l.default)({className:(0,p.default)({"with-tag":t.tag,"with-icon":t.icon,"with-sublabel":t.optionSubLabel})},n),u.default.createElement(d.default,{className:(0,p.default)("option-row",{secondary:t.isSecondary}),searchWords:[o.filterInputValue],textToHighlight:t.optionLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),t.optionSubLabel&&u.default.createElement(d.default,{className:"option-row",searchWords:[o.filterInputValue],textToHighlight:t.optionSubLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),t.icon&&u.default.createElement("i",{className:(0,p.default)("wj-icon",(0,i.default)({},t.icon,t.icon))}),t.tag&&u.default.createElement("i",null,t.tag))},M=function(e){return u.default.createElement(s.components.Input,(0,l.default)({},e,{role:"presentation"}))},O=function(e){var t=e.children,o=(0,a.default)(e,y),n=o.options,r=o.hasValue,i=o.selectProps,l=i.optionsLimit,c=i.inputValue,d=i.defaultOptions.length&&!c,p=d?"Start typing for other options":"Continue typing to refine options",f=l>0&&n.length>l,g=d||f,m=r&&!c;return u.default.createElement(s.components.MenuList,o,u.default.createElement(h.default,{condition:!m},t,u.default.createElement(h.default,{condition:g},u.default.createElement("div",{tabIndex:"-1",className:"option-footer-text"},p))))};F.defaultProps={optionsLimit:0,defaultOptions:[],minValueLength:3,isMulti:!1,autoFillOnBlur:!0,autoFilterInput:!0,state:"initial",errorMessage:null,disabled:!1,isAutoFocused:!1};var S=F;t.default=S},1050:function(e,t,o){var n=o(7880),r=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(3618)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var o=c(t);if(o&&o.has(e))return o.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.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,o&&o.set(e,n),n}(o(7518)),l=o(9193);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(c=function(e){return e?o:t})(e)}var u=(0,a.keyframes)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),s=(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:50px;border-radius:",";border:1px solid ",";cursor:pointer;&:hover,&:active,&--is-focused{background:",";border-color:",";.","__input-icon{background:",";box-shadow:0 0 0 1px ",";}.","__input-svg-icon{background:",";box-shadow:0 0 0 1px ",";}.","{background:",";border:2px solid ",";border-left:0;border-right:0;}}&:active,&--is-focused{box-shadow:",";}}&__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:48px;height:100%;box-shadow:1px 0 0 0 ",";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:48px;height:100%;background:",";box-shadow:1px 0 0 0 ",";border-top-left-radius:3px;border-bottom-left-radius:3px;svg{width:32px;height:32px;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;}}}.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:10px ",";border-top:1px solid #C9C9C9;border-bottom:1px solid #c9c9c9;position:relative;pointer-events:none;color:#666;font-weight:700;font-size:17px;display:block;text-decoration:none;text-align:left;height:auto;margin:0;text-transform:none;}&__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],l.theme.borderColor,t,l.theme.color[5],l.theme.borderColor,t+"__single-value",l.theme.textHighlight,l.theme.textHighlight,l.theme.activeItemOutline,l.theme.hoverDarkColor,l.theme.color[10],l.theme.color[6],l.theme.color[2],l.theme.inputIcon,l.theme.color[4],l.theme.color[2],l.theme.color[4],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],l.theme.gutterWidth,l.theme.gutterWidth,l.theme.color[2],l.theme.validationColors.inputErrorBackground,l.theme.gutterWidth,u,l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,(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=s},3729:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var r=n(o(6689)),i=(n(o(580)),o(6202)),a=function(e){var t=e.children;return t&&r.default.createElement(i.ErrorMessage,{"data-testid":"error-message",role:"error-message"},t)};t.ErrorMessageField=a,a.defaultProps={children:null};var l=a;t.default=l},6202:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var r=n(o(7518)),i=o(9193),a=r.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);t.ErrorMessage=a},2367:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(3729)).default;t.default=r},5715:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(7518)).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""},a=r;t.default=a},5900:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(8213)),i=n(o(3838)),a=n(o(6689)),l=(n(o(580)),n(o(5715))),c=["name"];t.default=function(e){var t=e.name,o=(0,i.default)(e,c);return a.default.createElement(l.default,(0,r.default)({iconName:t},o))}},6361:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(580)),i=function(e){var t=e.condition,o=e.children;return!0===t?o:null};i.propTypes={condition:r.default.bool},i.defaultProps={condition:!1};var a=i;t.default=a},7350:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(6361)).default;t.default=r},3206:function(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",firstDayOfWeek:1,weekFormat:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},9193:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=n(o(2594)),i=n(o(6932)),a=n(o(2098)),l=n(o(3206))},2098:function(e,t,o){var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(7518),i=n(o(2594)),a={globalStyles:(0,r.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(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"],n={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],warningBackground:o[23],warningText:o[8],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],noticeBackground:o[28],noticeText:o[10],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=n},2594:function(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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"3px",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],warningBackground:o[23],warningText:o[8],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],noticeBackground:o[28],noticeText:o[10],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=n},9941:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.escapeRegExp=t.BREAKPOINTS=void 0;var n=o(3322),r={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=r;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return void 0!==window.ontouchstart},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 o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));r>n?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"):e.style.top="0px",o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},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.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}},3322:function(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(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}},8779:function(e){e.exports=require("@babel/runtime/helpers/defineProperty")},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},3682:function(e){e.exports=require("@webjet/react-icons/common/x-circle-fill")},9003:function(e){e.exports=require("classnames")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},1848:function(e){e.exports=require("react-highlight-words")},1929:function(e){e.exports=require("react-select")},3618:function(e){e.exports=require("react-select/async")},7518:function(e){e.exports=require("styled-components")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}var n={};!function(){var e=n,t=o(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(o(5030)).default;e.default=r}(),module.exports=n}();
|