@webjet/react 3.6.0 → 3.6.2
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/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/feature-toggle.js +1 -1
- package/components/info-modal.js +1 -1
- package/components/radios.js +1 -1
- package/components/select.js +1 -1
- package/components/slider.js +1 -1
- package/components/textfield.js +1 -1
- package/components/tooltip-modal.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)),c=r(o(7826)),u=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={},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(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 u.default.createElement("span",{className:"loader"})},_=function(e){var t=e.selectProps,o=e.innerProps,r=t.classNamePrefix;return u.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,c=!!(0,v.isValidIconName)(i)&&i;return u.default.createElement(d.components.Control,o,l&&u.default.createElement("span",{className:"".concat(n,"__input-svg-icon")},u.default.createElement(l,null)),!l&&c&&u.default.createElement(g.default,{name:c,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,c=o.classNamePrefix,f=!!(0,v.isValidIconElement)(n)&&n;return u.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),u.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&&u.default.createElement(s.default,{className:"option-row",searchWords:[o.filterInputValue],textToHighlight:t.optionSubLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),f&&u.default.createElement("span",{className:"".concat(c,"__option-svg-icon")},u.default.createElement(f,null)),!f&&n&&u.default.createElement("i",{className:(0,p.default)("wj-icon",(0,i.default)({},n,n))}),t.tag&&u.default.createElement("i",null,t.tag))},B=function(e){return u.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 u.default.createElement(h.default,{condition:!r},u.default.createElement(d.components.Menu,e))},S=function(e){var t=e.children,o=(0,a.default)(e,y),r=o.options,n=o.selectProps,i=n.optionsLimit,l=!n.inputValue,c=l?"Start typing for other options":"Continue typing to refine options",s=i>0&&r.length>i,p=l||s;return u.default.createElement(d.components.MenuList,o,t,u.default.createElement(h.default,{condition:p},u.default.createElement("div",{tabIndex:"-1",className:"option-footer-text"},c)))};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,D=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,z=e.disabled,R=void 0!==z&&z,W=e.isAutoFocused,q=void 0!==W&&W,J=e.isFocused,Y=void 0!==J&&J,K=(0,u.useState)(""),U=(0,c.default)(K,2),$=U[0],G=U[1],Z=(0,u.useState)(""),Q=(0,c.default)(Z,2),X=Q[0],ee=Q[1],te=!1,oe=(0,u.useRef)(),re=(0,u.useState)(!1),ne=(0,c.default)(re,2),ie=ne[0],ae=ne[1];return(0,u.useEffect)((function(){Y&&oe.current&&oe.current.focus()}),[Y]),u.default.createElement(u.default.Fragment,null,u.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:S,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),D&&$.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,c=n[0],u=null!==(l=c.options)&&void 0!==l&&l.length?c.options[0]:c;return void oe.current.setValue(u)}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&&u.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=c(t);if(o&&o.has(e))return o.get(e);var r={},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(r,a,l):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(2770)),l=o(3290);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);}"]),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: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;}}.","__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,u,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=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.ErrorMessageField=a;var l=a;t.default=l},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),a=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);t.ErrorMessage=a},1792:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(8627)).default;t.default=n},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""},a=n;t.default=a},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))),c=["name"];t.default=function(e){var t=e.name,o=(0,i.default)(e,c);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};var a=i;t.default=a},3080:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(9473)).default;t.default=n},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"}}},3290:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),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 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)),c=r(o(5050))},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={globalStyles:(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=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"],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"],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.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={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,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};var a=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.setTwoDirectionStickyPanel=a,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())}},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)).default;e.default=n})(),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)),c=r(o(7826)),u=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={},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(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 u.default.createElement("span",{className:"loader"})},_=function(e){var t=e.selectProps,o=e.innerProps,r=t.classNamePrefix;return u.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,c=!!(0,v.isValidIconName)(i)&&i;return u.default.createElement(d.components.Control,o,l&&u.default.createElement("span",{className:"".concat(n,"__input-svg-icon")},u.default.createElement(l,null)),!l&&c&&u.default.createElement(g.default,{name:c,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,c=o.classNamePrefix,f=!!(0,v.isValidIconElement)(n)&&n;return u.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),u.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&&u.default.createElement(s.default,{className:"option-row",searchWords:[o.filterInputValue],textToHighlight:t.optionSubLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),f&&u.default.createElement("span",{className:"".concat(c,"__option-svg-icon")},u.default.createElement(f,null)),!f&&n&&u.default.createElement("i",{className:(0,p.default)("wj-icon",(0,i.default)({},n,n))}),t.tag&&u.default.createElement("i",null,t.tag))},B=function(e){return u.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 u.default.createElement(h.default,{condition:!r},u.default.createElement(d.components.Menu,e))},S=function(e){var t=e.children,o=(0,a.default)(e,y),r=o.options,n=o.selectProps,i=n.optionsLimit,l=!n.inputValue,c=l?"Start typing for other options":"Continue typing to refine options",s=i>0&&r.length>i,p=l||s;return u.default.createElement(d.components.MenuList,o,t,u.default.createElement(h.default,{condition:p},u.default.createElement("div",{tabIndex:"-1",className:"option-footer-text"},c)))};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,D=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,z=e.disabled,R=void 0!==z&&z,W=e.isAutoFocused,q=void 0!==W&&W,J=e.isFocused,Y=void 0!==J&&J,K=(0,u.useState)(""),U=(0,c.default)(K,2),$=U[0],G=U[1],Z=(0,u.useState)(""),Q=(0,c.default)(Z,2),X=Q[0],ee=Q[1],te=!1,oe=(0,u.useRef)(),re=(0,u.useState)(!1),ne=(0,c.default)(re,2),ie=ne[0],ae=ne[1];return(0,u.useEffect)((function(){Y&&oe.current&&oe.current.focus()}),[Y]),u.default.createElement(u.default.Fragment,null,u.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:S,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),D&&$.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,c=n[0],u=null!==(l=c.options)&&void 0!==l&&l.length?c.options[0]:c;return void oe.current.setValue(u)}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&&u.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=c(t);if(o&&o.has(e))return o.get(e);var r={},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(r,a,l):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(2770)),l=o(3290);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);}"]),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,u,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=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.ErrorMessageField=a;var l=a;t.default=l},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),a=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);t.ErrorMessage=a},1792:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(8627)).default;t.default=n},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""},a=n;t.default=a},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))),c=["name"];t.default=function(e){var t=e.name,o=(0,i.default)(e,c);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};var a=i;t.default=a},3080:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(9473)).default;t.default=n},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"}}},3290:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),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 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)),c=r(o(5050))},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={globalStyles:(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=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"],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"],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.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={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,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};var a=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.setTwoDirectionStickyPanel=a,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())}},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)).default;e.default=n})(),module.exports=r})();
|