@webjet/react 2.10.2 → 2.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={5030:(e,t,o)=>{var r=o(7880),n=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(8779)),a=r(o(3838)),l=r(o(8213)),c=r(o(353)),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(6689)),s=(r(o(580)),o(1929)),d=r(o(1848)),p=r(o(9003)),f=r(o(3682)),g=r(o(5900)),h=r(o(7350)),m=r(o(2367)),b=r(o(1050)),v=o(9941),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(e){var t=e.id,o=e.className,r=e.optionsLimit,n=e.minValueLength,i=e.maxValueLength,a=e.defaultOptions,l=e.loadOptions,s=e.noOptionsMessage,d=e.placeholder,p=e.value,f=e.isMulti,g=e.autoFillOnBlur,h=e.autoFilterInput,x=e.icon,w=e.onChange,y=e.onBlur,E=e.onFocus,F=e.errorMessage,O=e.state,I=e.disabled,j=e.isAutoFocused,P=e.isFocused,A=(0,u.useState)(""),T=(0,c.default)(A,2),H=T[0],N=T[1],L=(0,u.useState)(""),V=(0,c.default)(L,2),z=V[0],R=V[1],W=!1,q=(0,u.useRef)();return(0,u.useEffect)((function(){P&&q.current&&q.current.focus()}),[P]),u.default.createElement(u.default.Fragment,null,u.default.createElement(b.default,{ref:q,id:t,className:o,icon:x,classNamePrefix:"wj-autocomplete",isClearable:!0,isMulti:f,loadOptions:function(e,t){var o=(0,v.sanitiseInputText)(e);l&&o.length>=n&&o.length<=i?l(o,t):t()},noOptionsMessage:function(e){return e.inputValue,z.length>=n&&z.length<=i?s:null},placeholder:d,inputValue:H,filterInputValue:z,value:p,optionsLimit:r,components:{Control:k,Option:B,LoadingIndicator:_,Input:M,Menu:S,MenuList:D,ClearIndicator:C},onChange:w,onInputChange:function(e,t){if("input-blur"!==t.action&&"menu-close"!==t.action&&e.length<=i){N(e);var o=h?(0,v.sanitiseInputText)(e):e;R(o)}"set-value"===t.action&&(W=!0),e.length<=1&&"input-change"===t.action&&q.current.clearValue()},filterOption:function(e){var t=e.value,o=q.current.state.loadedOptions,n=null==o?void 0:o.findIndex((function(e){return e.value===t}));return!r||!n||n<r},onBlur:function(e){if(y&&y(e),g&&H.length>=n&&H.length<=i){var t=q.current,o=t.props.inputValue,r=t.state,a=r.loadedOptions,c=r.optionsCache;if(c&&c[o]&&0===c[o].length)return;if(a&&a.length>0&&!W){var u,s=a[0],d=null!==(u=s.options)&&void 0!==u&&u.length?s.options[0]:s;return void q.current.setValue(d)}l(H,(function(e){if(e&&e.length>0&&!W){var t,o=e[0],r=null!==(t=o.options)&&void 0!==t&&t.length?o.options[0]:o;q.current.setValue(r)}}))}},onFocus:function(e){E&&E(e),(0,v.isTouchDevice)()||H||null==q||!q.current||q.current.state.selectedValue||q.current.state.menuIsOpen||q.current.openMenu("first")},state:O,defaultOptions:a,tabSelectsValue:!1,onKeyDown:function(e){if("Tab"===e.key){var t=q.current.state.focusedOption;t&&q.current.setValue(t)}},disabled:I,autoFocus:j}),"error"===O&&F&&u.default.createElement(m.default,null,F))},_=function(){return u.default.createElement("span",{className:"loader"})},C=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))},k=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(s.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)},B=function(e){var t=e.data,o=e.selectProps,r=(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})},r),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"}))},S=function(e){var t=e.hasValue,o=e.selectProps.inputValue,r=t&&!o;return u.default.createElement(h.default,{condition:!r},u.default.createElement(s.components.Menu,e))},D=function(e){var t=e.children,o=(0,a.default)(e,y),r=o.options,n=o.selectProps,i=n.optionsLimit,l=!n.inputValue,c=l?"Start typing for other options":"Continue typing to refine options",d=i>0&&r.length>i,p=l||d;return u.default.createElement(s.components.MenuList,o,t,u.default.createElement(h.default,{condition:p},u.default.createElement("div",{tabIndex:"-1",className:"option-footer-text"},c)))};F.defaultProps={optionsLimit:0,defaultOptions:[],minValueLength:3,isMulti:!1,autoFillOnBlur:!0,autoFilterInput:!0,state:"initial",errorMessage:null,disabled:!1,isAutoFocused:!1,maxValueLength:1e4,isFocused:!1};var O=F;t.default=O},1050:(e,t,o)=>{var r=o(7880),n=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(3618)),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(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: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;}}}.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],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=s},3729:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var n=r(o(6689)),i=(r(o(580)),o(6202)),a=function(e){var t=e.children;return t&&n.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:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var n=r(o(7518)),i=o(9193),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},2367:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(3729)).default;t.default=n},5715:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(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=n;t.default=a},5900:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(8213)),i=r(o(3838)),a=r(o(6689)),l=(r(o(580)),r(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,n.default)({iconName:t},o))}},6361:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(580)),i=function(e){var t=e.condition,o=e.children;return!0===t?o:null};i.propTypes={condition:n.default.bool},i.defaultProps={condition:!1};var a=i;t.default=a},7350:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(6361)).default;t.default=n},3206:(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"}}},5799:(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"}}},9193:(e,t,o)=>{var r=o(7880);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(2594)),i=r(o(6932)),a=r(o(2098)),l=r(o(3206)),c=r(o(5799))},2098:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(7518),i=r(o(2594)),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},6932:(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},2594:(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},9941:(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(3322),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){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",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())}},3322:(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)}},8779:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},3682:e=>{e.exports=require("@webjet/react-icons/common/x-circle-fill")},9003:e=>{e.exports=require("classnames")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},1848:e=>{e.exports=require("react-highlight-words")},1929:e=>{e.exports=require("react-select")},3618:e=>{e.exports=require("react-select/async")},7518: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(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(o(5030)).default;e.default=n})(),module.exports=r})();
|
|
1
|
+
(()=>{"use strict";var e={5030:(e,t,o)=>{var r=o(7880),n=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(8779)),a=r(o(3838)),l=r(o(8213)),u=r(o(353)),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var o=E(t);if(o&&o.has(e))return o.get(e);var r={},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(6689)),s=(r(o(580)),o(1929)),d=r(o(1848)),p=r(o(9003)),f=r(o(3682)),g=r(o(5900)),h=r(o(7350)),m=r(o(2367)),b=r(o(1050)),v=o(9941),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(e){var t=e.id,o=e.className,r=e.optionsLimit,n=e.minValueLength,i=e.maxValueLength,a=e.defaultOptions,l=e.loadOptions,s=e.noOptionsMessage,d=e.placeholder,p=e.value,f=e.isMulti,g=e.autoFillOnBlur,h=e.autoFilterInput,x=e.icon,w=e.onChange,y=e.onBlur,E=e.onFocus,F=e.errorMessage,O=e.state,I=e.disabled,j=e.isAutoFocused,P=e.isFocused,A=(0,c.useState)(""),T=(0,u.default)(A,2),H=T[0],N=T[1],L=(0,c.useState)(""),V=(0,u.default)(L,2),z=V[0],R=V[1],W=!1,q=(0,c.useRef)(),J=(0,c.useState)(!1),Y=(0,u.default)(J,2),K=Y[0],U=Y[1];return(0,c.useEffect)((function(){P&&q.current&&q.current.focus()}),[P]),c.default.createElement(c.default.Fragment,null,c.default.createElement(b.default,{ref:q,id:t,className:o,icon:x,classNamePrefix:"wj-autocomplete",isClearable:!0,isMulti:f,loadOptions:function(e,t){var o=(0,v.sanitiseInputText)(e);l&&o.length>=n&&o.length<=i?l(o,t):t()},noOptionsMessage:function(e){return e.inputValue,z.length>=n&&z.length<=i?s:null},placeholder:d,inputValue:H,filterInputValue:z,value:p,optionsLimit:r,components:{Control:k,Option:B,LoadingIndicator:_,Input:M,Menu:S,MenuList:D,ClearIndicator:C},onChange:function(e){w&&w(e),e||setTimeout((function(){return U(!0)}))},onInputChange:function(e,t){if("input-blur"!==t.action&&"menu-close"!==t.action&&e.length<=i){N(e);var o=h?(0,v.sanitiseInputText)(e):e;R(o)}"set-value"===t.action&&(W=!0),e.length<=1&&"input-change"===t.action&&q.current.clearValue()},filterOption:function(e){var t=e.value,o=q.current.state.loadedOptions,n=null==o?void 0:o.findIndex((function(e){return e.value===t}));return!r||!n||n<r},onBlur:function(e){if(y&&y(e),g&&H.length>=n&&H.length<=i){var t=q.current,o=t.props.inputValue,r=t.state,a=r.loadedOptions,u=r.optionsCache;if(u&&u[o]&&0===u[o].length)return;if(a&&a.length>0&&!W){var c,s=a[0],d=null!==(c=s.options)&&void 0!==c&&c.length?s.options[0]:s;return void q.current.setValue(d)}l(H,(function(e){if(e&&e.length>0&&!W){var t,o=e[0],r=null!==(t=o.options)&&void 0!==t&&t.length?o.options[0]:o;q.current.setValue(r)}}))}},onFocus:function(e){E&&E(e),(0,v.isTouchDevice)()||H||null==q||!q.current||q.current.state.selectedValue||q.current.state.menuIsOpen||q.current.openMenu("first")},state:O,defaultOptions:a,tabSelectsValue:!1,onKeyDown:function(e){if("Tab"===e.key){var t=q.current.state.focusedOption;t&&q.current.setValue(t)}},disabled:I,autoFocus:j,menuIsOpen:K,onMenuClose:function(){return U(!1)},onMenuOpen:function(){return U(!0)}}),"error"===O&&F&&c.default.createElement(m.default,null,F))},_=function(){return c.default.createElement("span",{className:"loader"})},C=function(e){var t=e.selectProps,o=e.innerProps,r=t.classNamePrefix;return c.default.createElement(f.default,(0,l.default)({className:"".concat(r,"__clear-indicator")},o))},k=function(e){var t=e.children,o=(0,a.default)(e,x),r=o.selectProps,n=r.classNamePrefix,i=r.icon,l=!!(0,v.isValidIconElement)(i)&&i,u=!!(0,v.isValidIconName)(i)&&i;return c.default.createElement(s.components.Control,o,l&&c.default.createElement("span",{className:"".concat(n,"__input-svg-icon")},c.default.createElement(l,null)),!l&&u&&c.default.createElement(g.default,{name:u,className:"".concat(n,"__input-icon")}),t)},B=function(e){var t=e.data,o=e.selectProps,r=(0,a.default)(e,w);return c.default.createElement(s.components.Option,(0,l.default)({className:(0,p.default)({"with-tag":t.tag,"with-icon":t.icon,"with-sublabel":t.optionSubLabel})},r),c.default.createElement(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&&c.default.createElement(d.default,{className:"option-row",searchWords:[o.filterInputValue],textToHighlight:t.optionSubLabel,highlightClassName:"highlight",unhighlightClassName:"unhighlight",autoEscape:!0}),t.icon&&c.default.createElement("i",{className:(0,p.default)("wj-icon",(0,i.default)({},t.icon,t.icon))}),t.tag&&c.default.createElement("i",null,t.tag))},M=function(e){return c.default.createElement(s.components.Input,(0,l.default)({},e,{role:"presentation"}))},S=function(e){var t=e.hasValue,o=e.selectProps.inputValue,r=t&&!o;return c.default.createElement(h.default,{condition:!r},c.default.createElement(s.components.Menu,e))},D=function(e){var t=e.children,o=(0,a.default)(e,y),r=o.options,n=o.selectProps,i=n.optionsLimit,l=!n.inputValue,u=l?"Start typing for other options":"Continue typing to refine options",d=i>0&&r.length>i,p=l||d;return c.default.createElement(s.components.MenuList,o,t,c.default.createElement(h.default,{condition:p},c.default.createElement("div",{tabIndex:"-1",className:"option-footer-text"},u)))};F.defaultProps={optionsLimit:0,defaultOptions:[],minValueLength:3,isMulti:!1,autoFillOnBlur:!0,autoFilterInput:!0,state:"initial",errorMessage:null,disabled:!1,isAutoFocused:!1,maxValueLength:1e4,isFocused:!1};var O=F;t.default=O},1050:(e,t,o)=>{var r=o(7880),n=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(3618)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var o=u(t);if(o&&o.has(e))return o.get(e);var r={},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(7518)),l=o(9193);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(u=function(e){return e?o:t})(e)}var c=(0,a.keyframes)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),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: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;}}}.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],l.theme.gutterWidth,l.theme.gutterWidth,l.theme.color[2],l.theme.validationColors.inputErrorBackground,l.theme.gutterWidth,c,l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,l.theme.color[8],(function(e){var o=e.state;return o&&"error"===o&&(0,a.css)([".","{&__control{background-color:",";}&__input-icon{background:",";color:",";}&__input-svg-icon{background:",";svg{fill:",";}}&__input{color:",";}}&&:hover,&&:focus{.","{&__control{background-color:",";color:",";border-radius:",";}&__input-icon{background:#bfb0b0;}&__input-svg-icon{background:#bfb0b0;}}}"],t,l.theme.validationColors.inputErrorBackground,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,l.theme.validationColors.inputErrorText,t,l.theme.validationColors.inputErrorHoverBackground,l.theme.validationColors.inputErrorText,l.theme.borderRadius)}),o&&(0,a.css)(["opacity:0.5;pointer-events:none;"]))}));t.default=s},3729:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var n=r(o(6689)),i=(r(o(580)),o(6202)),a=function(e){var t=e.children;return t&&n.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:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var n=r(o(7518)),i=o(9193),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},2367:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(3729)).default;t.default=n},5715:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(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=n;t.default=a},5900:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(8213)),i=r(o(3838)),a=r(o(6689)),l=(r(o(580)),r(o(5715))),u=["name"];t.default=function(e){var t=e.name,o=(0,i.default)(e,u);return a.default.createElement(l.default,(0,n.default)({iconName:t},o))}},6361:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(580)),i=function(e){var t=e.condition,o=e.children;return!0===t?o:null};i.propTypes={condition:n.default.bool},i.defaultProps={condition:!1};var a=i;t.default=a},7350:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(6361)).default;t.default=n},3206:(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"}}},5799:(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"}}},9193:(e,t,o)=>{var r=o(7880);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 u.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=r(o(2594)),i=r(o(6932)),a=r(o(2098)),l=r(o(3206)),u=r(o(5799))},2098:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(7518),i=r(o(2594)),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},6932:(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},2594:(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},9941:(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(3322),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){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",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())}},3322:(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)}},8779:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},3682:e=>{e.exports=require("@webjet/react-icons/common/x-circle-fill")},9003:e=>{e.exports=require("classnames")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},1848:e=>{e.exports=require("react-highlight-words")},1929:e=>{e.exports=require("react-select")},3618:e=>{e.exports=require("react-select/async")},7518: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(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(o(5030)).default;e.default=n})(),module.exports=r})();
|
package/components/pills.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={6329:(e,r
|
|
1
|
+
(()=>{"use strict";var e={6329:(e,t,r)=>{var o=r(7880),n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(r(353)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(6689)),l=(o(r(580)),o(r(969))),d=o(r(1822)),u=r(644);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var s=function(e){var t=e.list,r=e.variant,o=e.className,n=e.showReset,c=e.resetText,s=e.onRemove,p=e.onReset,f=(0,i.useState)(t||[]),m=(0,a.default)(f,2),x=m[0],b=m[1];(0,i.useEffect)((function(){b(t)}),[t]);var y=function(e){var t=x.filter((function(t){return t!==e}));b(t),s&&s(e,t)};return i.default.createElement(u.StyledPills,{"data-testid":"pills",className:o},x.map((function(e,t){return i.default.createElement(u.StyledPillItem,{key:t,$variant:r,"data-testid":"pills-item",onClick:y.bind(void 0,e)},(null==e?void 0:e.value)||e,i.default.createElement(l.default,{"data-testid":"pills-cross"}))})),(null==x?void 0:x.length)>0&&n&&i.default.createElement(u.StyledResetLink,{onClick:p},i.default.createElement(d.default,null),c))};s.defaultProps={variant:"standard",showReset:!1,resetText:"Reset filters"};var p=s;t.default=p},644:(e,t,r)=>{var o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledResetLink=t.StyledPills=t.StyledPillItem=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var d=a?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(n,l,d):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n}(r(7518)),a=r(9193);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}var l=n.default.div.withConfig({displayName:"Pillsstyle__StyledPills",componentId:"sc-u7wsxn-0"})(["display:flex;flex-wrap:wrap;gap:12px 8px;"]);t.StyledPills=l;var d=n.default.span.withConfig({displayName:"Pillsstyle__StyledPillItem",componentId:"sc-u7wsxn-1"})(["display:flex;align-items:center;padding:4px 8px;gap:8px;border-radius:16px;background:",";font-size:12px;line-height:18px;color:",";white-space:nowrap;cursor:pointer;&:hover{background:",";}"," svg{cursor:pointer;font-size:10px;fill:",";}"],a.theme.color[11],a.theme.color[8],a.theme.color[1],(function(e){return"highlight"===e.$variant&&(0,n.css)(["color:",";background:",";&:hover{background:",";}"],a.theme.color[12],a.theme.color[28],a.theme.color[28])}),a.theme.color[8]);t.StyledPillItem=d;var u=n.default.a.withConfig({displayName:"Pillsstyle__StyledResetLink",componentId:"sc-u7wsxn-2"})(["display:flex;gap:4px;align-items:center;font-size:12px;font-weight:400;line-height:18px;color:#0C68C6;margin-left:4px;&:hover{color:#0C68C6;}svg{fill:#0C68C6;font-size:16px;}"]);t.StyledResetLink=u},3206:(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"}}},5799:(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"}}},9193:(e,t,r)=>{var o=r(7880);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 d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return a.default}});var n=o(r(2594)),a=o(r(6932)),i=o(r(2098)),l=o(r(3206)),d=o(r(5799))},2098:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(7518),a=o(r(2594)),i={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],a.default.fontFamily.primary,a.default.fontSize,a.default.fontColor)};t.default=i},6932:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2594:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},353:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},969:e=>{e.exports=require("@webjet/react-icons/close")},1822:e=>{e.exports=require("@webjet/react-icons/reset")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},7518:e=>{e.exports=require("styled-components")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}var o={};(()=>{var e=o,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(6329)).default;e.default=n})(),module.exports=o})();
|