@webjet/react 2.0.0-beta.0 → 2.0.0-beta.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/accordion.js +1 -1
- package/components/autocomplete.js +1 -1
- package/components/button.js +1 -1
- package/components/card.js +1 -1
- package/components/carousel-content.js +1 -1
- package/components/carousel.js +1 -1
- package/components/checkbox-list.js +1 -1
- package/components/checkbox.js +1 -1
- package/components/checklist.js +1 -1
- package/components/checkmark.js +1 -1
- package/components/countdown.js +1 -1
- package/components/date-picker.js +1 -1
- package/components/date-range-picker.js +1 -1
- package/components/error-message-field.js +1 -1
- package/components/icon.js +1 -1
- package/components/if.js +1 -1
- package/components/iframe-link.js +1 -1
- package/components/linear-loader.js +1 -1
- package/components/link.js +1 -1
- package/components/media-query.js +1 -1
- package/components/modal.js +1 -1
- package/components/notification.js +1 -1
- package/components/number-stepper.js +1 -1
- package/components/page-loader.js +1 -1
- package/components/pagination.js +1 -1
- package/components/panel-with-scroll-fade.js +1 -1
- package/components/program-label.js +1 -1
- package/components/quality-rating-filter.js +1 -1
- package/components/quality-rating.js +1 -1
- package/components/rating.js +1 -1
- package/components/react-container-query.js +1 -1
- package/components/render-count.js +1 -1
- package/components/select.js +1 -1
- package/components/selectable-card.js +1 -1
- package/components/settings.js +1 -1
- package/components/slider.js +1 -1
- package/components/spinner.js +1 -1
- package/components/tab.js +1 -1
- package/components/textarea.js +1 -1
- package/components/textfield-button.js +1 -1
- package/components/textfield.js +1 -1
- package/components/toggle.js +1 -1
- package/components/tooltip.js +1 -1
- package/components/two-direction-sticky-panel.js +1 -1
- package/components/user-review-details.js +1 -1
- package/components/user-review-filter.js +1 -1
- package/components/user-review-panel.js +1 -1
- package/components/user-review.js +1 -1
- package/components/with-click-outside.js +1 -1
- package/package.json +7 -12
- package/utils/common.js +1 -1
- package/utils/ga.js +1 -1
- package/utils/hooks.js +1 -1
- package/utils/scrollbar.js +1 -1
- package/utils/storage.js +1 -1
- package/components/svg-icon.js +0 -1
package/components/accordion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var e={3501:function(e,t,n){var r=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(8213)),i=r(n(353)),a=r(n(3838)),d=r(n(6689)),c=n(3103),l=(r(n(580)),n(533)),u=["heading","icon","isExpanded","headingBgColor","children","onClick"],s=function(e){var t=e.heading,n=e.icon,r=e.isExpanded,s=e.headingBgColor,p=e.children,f=e.onClick,b=(0,a.default)(e,u),h=d.default.useState(r),y=(0,i.default)(h,2),m=y[0],x=y[1],v="wj-icon",g=v.concat(" ",m?"wj-caret-up":"wj-caret-down"),F=n&&v.concat(" ",n),C=F,B={container:{component:"accordion",label:t,expanded:m},header:{component:"accordion-header"}};return d.default.createElement("div",(0,o.default)({},(0,l.gaAttributes)(B.container),b),d.default.createElement(c.StyledHeader,(0,o.default)({},(0,l.gaAttributes)(B.header),{href:"#",onClick:function(e){e.preventDefault(),f&&f(!m),x(!m)},isIconPresent:C,"data-testid":"header",role:"header",headingBgColor:s}),d.default.createElement(c.StyledIcon,{className:F,"data-testid":"icon",role:"icon"}),t,d.default.createElement(c.StyledDropDownButton,{className:g})),d.default.createElement(c.StyledContent,{isOpen:m,"data-testid":"content",role:"content"},p))};s.defaultProps={heading:void 0,isExpanded:!0,icon:void 0,children:null,headingBgColor:"#F5F5F5"};var p=s;t.default=p},3103:function(e,t,n){var r=n(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledIcon=t.StyledHeader=t.StyledDropDownButton=t.StyledContent=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(7518)),i=n(2042),a=n(9193);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}var c=o.default.a.withConfig({displayName:"Accordionstyle__StyledHeader",componentId:"sc-1xpo93y-0"})((function(){return(0,o.css)([""," background-color:",";position:relative;cursor:pointer;width:100%;border:none;outline:none;height:40px;padding:",";display:inline-flex;align-items:center;font-size:14px;line-height:18px;font-weight:500;text-decoration:inherit;&,&:visited,&:active,&:hover{color:",";}&:focus{box-shadow:none;}"," ","{display:none;","}"],a.mixins.globalStyles,a.theme.color[1],a.theme.gutterWidth,a.theme.color[10],(function(e){var t=e.headingBgColor;return t&&(0,o.css)(["background-color:",";&:hover{background-color:",";text-decoration:none;}"],t,(0,i.darken)(.05,t))}),s,(function(e){return e.isIconPresent&&(0,o.css)(["display:block;padding-right:6px;"])}))}));t.StyledHeader=c;var l=o.default.div.withConfig({displayName:"Accordionstyle__StyledContent",componentId:"sc-1xpo93y-1"})((function(){return(0,o.css)(["padding:8px "," "," ",";display:none;",""],a.theme.gutterWidth,a.theme.gutterWidth,a.theme.gutterWidth,(function(e){return e.isOpen&&(0,o.css)(["display:block;"])}))}));t.StyledContent=l;var u=o.default.span.withConfig({displayName:"Accordionstyle__StyledDropDownButton",componentId:"sc-1xpo93y-2"})((function(){return(0,o.css)(["&.wj-icon{position:absolute;right:",";font-size:13px;}"],a.theme.gutterWidth)}));t.StyledDropDownButton=u;var s=o.default.span.withConfig({displayName:"Accordionstyle__StyledIcon",componentId:"sc-1xpo93y-3"})((function(){return(0,o.css)(["font-size:16px;line-height:17px;"])}));t.StyledIcon=s},3206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:function(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:function(e,t,n){var r=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=r(n(2594)),i=r(n(6932)),a=r(n(2098)),d=r(n(3206)),c=r(n(5799))},2098:function(e,t,n){var r=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(7518),i=r(n(2594)),a={globalStyles:(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},533:function(e,t,n){var r=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var o=r(n(8779)),i=r(n(353));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var n=(0,i.default)(e,2),r=n[0],o=n[1];null!=o&&(t["data-ga-".concat(r)]=String(o))})),t},t.pushGAEvent=function(e,t){var n=window.dataLayer;e&&n&&n.push(d(e,t))};var d=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({event:e},t)}},8779:function(e){e.exports=require("@babel/runtime/helpers/defineProperty")},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},2042:function(e){e.exports=require("polished")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},7518:function(e){e.exports=require("styled-components")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}var r={};!function(){var e=r,t=n(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(n(3501)).default;e.default=o}(),module.exports=r}();
|
|
1
|
+
(()=>{"use strict";var e={3501:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(8213)),i=o(r(353)),a=o(r(3838)),d=o(r(6689)),l=r(3103),c=(o(r(580)),r(533)),u=["heading","icon","isExpanded","headingBgColor","children","onClick"],s=function(e){var t=e.heading,r=e.icon,o=e.isExpanded,s=e.headingBgColor,p=e.children,f=e.onClick,b=(0,a.default)(e,u),y=d.default.useState(o),h=(0,i.default)(y,2),m=h[0],x=h[1],v="wj-icon",g=v.concat(" ",m?"wj-caret-up":"wj-caret-down"),F=r&&v.concat(" ",r),C=F,E={container:{component:"accordion",label:t,expanded:m},header:{component:"accordion-header"}};return d.default.createElement("div",(0,n.default)({},(0,c.gaAttributes)(E.container),b),d.default.createElement(l.StyledHeader,(0,n.default)({},(0,c.gaAttributes)(E.header),{href:"#",onClick:function(e){e.preventDefault(),f&&f(!m),x(!m)},isIconPresent:C,"data-testid":"header",role:"header",headingBgColor:s}),d.default.createElement(l.StyledIcon,{className:F,"data-testid":"icon",role:"icon"}),t,d.default.createElement(l.StyledDropDownButton,{className:g})),d.default.createElement(l.StyledContent,{isOpen:m,"data-testid":"content",role:"content"},p))};s.defaultProps={heading:void 0,isExpanded:!0,icon:void 0,children:null,headingBgColor:"#F5F5F5"};var p=s;t.default=p},3103:(e,t,r)=>{var o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledIcon=t.StyledHeader=t.StyledDropDownButton=t.StyledContent=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=d(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(7518)),i=r(2042),a=r(9193);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}var l=n.default.a.withConfig({displayName:"Accordionstyle__StyledHeader",componentId:"sc-1xpo93y-0"})((function(){return(0,n.css)([""," background-color:",";position:relative;cursor:pointer;width:100%;border:none;outline:none;height:40px;padding:",";display:inline-flex;align-items:center;font-size:14px;line-height:18px;font-weight:500;text-decoration:inherit;&,&:visited,&:active,&:hover{color:",";}&:focus{box-shadow:none;}"," ","{display:none;","}"],a.mixins.globalStyles,a.theme.color[1],a.theme.gutterWidth,a.theme.color[10],(function(e){var t=e.headingBgColor;return t&&(0,n.css)(["background-color:",";&:hover{background-color:",";text-decoration:none;}"],t,(0,i.darken)(.05,t))}),s,(function(e){return e.isIconPresent&&(0,n.css)(["display:block;padding-right:6px;"])}))}));t.StyledHeader=l;var c=n.default.div.withConfig({displayName:"Accordionstyle__StyledContent",componentId:"sc-1xpo93y-1"})((function(){return(0,n.css)(["padding:8px "," "," ",";display:none;",""],a.theme.gutterWidth,a.theme.gutterWidth,a.theme.gutterWidth,(function(e){return e.isOpen&&(0,n.css)(["display:block;"])}))}));t.StyledContent=c;var u=n.default.span.withConfig({displayName:"Accordionstyle__StyledDropDownButton",componentId:"sc-1xpo93y-2"})((function(){return(0,n.css)(["&.wj-icon{position:absolute;right:",";font-size:13px;}"],a.theme.gutterWidth)}));t.StyledDropDownButton=u;var s=n.default.span.withConfig({displayName:"Accordionstyle__StyledIcon",componentId:"sc-1xpo93y-3"})((function(){return(0,n.css)(["font-size:16px;line-height:17px;"])}));t.StyledIcon=s},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 d.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=o(r(2594)),i=o(r(6932)),a=o(r(2098)),d=o(r(3206)),l=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),i=o(r(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 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},533:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var n=o(r(8779)),i=o(r(353));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var r=(0,i.default)(e,2),o=r[0],n=r[1];null!=n&&(t["data-ga-".concat(o)]=String(n))})),t},t.pushGAEvent=function(e,t){var r=window.dataLayer;e&&r&&r.push(d(e,t))};var d=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({event:e},t)}},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")},2042:e=>{e.exports=require("polished")},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 i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}var o={};(()=>{var e=o,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(3501)).default;e.default=n})(),module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var e={5030:function(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)),x=o(9941),v=["children"],w=["data","selectProps"],y=["children"];function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(E=function(e){return e?o:t})(e)}var F=function(e){var t=e.id,o=e.className,r=e.optionsLimit,n=e.minValueLength,i=e.defaultOptions,a=e.loadOptions,l=e.noOptionsMessage,s=e.placeholder,d=e.value,p=e.isMulti,f=e.autoFillOnBlur,g=e.autoFilterInput,h=e.icon,v=e.onChange,w=e.onBlur,y=e.onFocus,E=e.errorMessage,F=e.state,O=e.disabled,D=e.isAutoFocused,I=(0,u.useState)(""),j=(0,c.default)(I,2),P=j[0],A=j[1],T=(0,u.useState)(""),H=(0,c.default)(T,2),N=H[0],L=H[1],z=!1,V=(0,u.useRef)();return u.default.createElement(u.default.Fragment,null,u.default.createElement(b.default,{ref:V,id:t,className:o,icon:h,classNamePrefix:"wj-autocomplete",isClearable:!0,isMulti:p,loadOptions:function(e,t){var o=(0,x.sanitiseInputText)(e);a&&o.length>=n?a(o,t):t()},noOptionsMessage:function(e){return e.inputValue,N.length>=n?l:null},placeholder:s,inputValue:P,filterInputValue:N,value:d,optionsLimit:r,components:{Control:C,Option:B,LoadingIndicator:_,Input:S,MenuList:M,ClearIndicator:k},onChange:v,onInputChange:function(e,t){if("input-blur"!==t.action&&"menu-close"!==t.action){A(e);var o=g?(0,x.sanitiseInputText)(e):e;L(o)}"set-value"===t.action&&(z=!0),e.length<=1&&"input-change"===t.action&&V.current.clearValue()},filterOption:function(e){var t=e.value,o=V.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(w&&w(e),f&&P.length>=n){var t=V.current,o=t.props.inputValue,r=t.state,i=r.loadedOptions,l=r.optionsCache;if(l&&l[o]&&0===l[o].length)return;if(i&&i.length>0&&!z){var c,u=i[0],s=null!==(c=u.options)&&void 0!==c&&c.length?u.options[0]:u;return void V.current.setValue(s)}a(P,(function(e){if(e&&e.length>0&&!z){var t,o=e[0],r=null!==(t=o.options)&&void 0!==t&&t.length?o.options[0]:o;V.current.setValue(r)}}))}},onFocus:function(e){y&&y(e),(0,x.isTouchDevice)()||P||null==V||!V.current||V.current.state.selectedValue||V.current.state.menuIsOpen||V.current.openMenu("first")},state:F,defaultOptions:i,tabSelectsValue:!1,onKeyDown:function(e){if("Tab"===e.key){var t=V.current.state.focusedOption;t&&V.current.setValue(t)}},disabled:O,autoFocus:D}),"error"===F&&E&&u.default.createElement(m.default,null,E))},_=function(){return u.default.createElement("span",{className:"loader"})},k=function(e){var t=e.selectProps,o=e.innerProps,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,v),r=o.selectProps,n=r.classNamePrefix,i=r.icon,l=!!(0,x.isValidIconElement)(i)&&i,c=!!(0,x.isValidIconName)(i)&&i;return u.default.createElement(s.components.Control,o,l&&u.default.createElement("span",{className:"".concat(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))},S=function(e){return u.default.createElement(s.components.Input,(0,l.default)({},e,{role:"presentation"}))},M=function(e){var t=e.children,o=(0,a.default)(e,y),r=o.options,n=o.hasValue,i=o.selectProps,l=i.optionsLimit,c=i.inputValue,d=!c,p=d?"Start typing for other options":"Continue typing to refine options",f=l>0&&r.length>l,g=d||f,m=n&&!c;return u.default.createElement(s.components.MenuList,o,u.default.createElement(h.default,{condition:!m},t,u.default.createElement(h.default,{condition:g},u.default.createElement("div",{tabIndex:"-1",className:"option-footer-text"},p))))};F.defaultProps={optionsLimit:0,defaultOptions:[],minValueLength:3,isMulti:!1,autoFillOnBlur:!0,autoFilterInput:!0,state:"initial",errorMessage:null,disabled:!1,isAutoFocused:!1};var O=F;t.default=O},1050:function(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:",";box-shadow:0 0 0 1px ",";}.","__input-svg-icon{background:",";box-shadow:0 0 0 1px ",";}.","{background:",";border:2px solid ",";border-left:0;border-right:0;}}&:active,&--is-focused{box-shadow:",";}}&__clear-indicator{&:hover{color:",";}}&__value-container{font-size:16px;line-height:normal;}&__input{color:",";input{margin:0;padding:0;box-shadow:none;transition:none;height:auto;}}&__placeholder{color:",";}&__input-icon{background:",";color:",";font-size:32px;width:46px;height:100%;box-shadow:1px 0 0 0 ",";border-top-left-radius:3px;border-bottom-left-radius:3px;text-align:center;line-height:1.5;}&__input-svg-icon{display:inline-flex;justify-content:center;align-items:center;width:46px;height:100%;background:",";box-shadow:1px 0 0 0 ",";border-top-left-radius:3px;border-bottom-left-radius:3px;svg{width:32px;height:32px;fill:",";}}&__menu{font-size:17px;margin:0;padding:0;border-radius:0;border:0;background:",";box-shadow:0 2px 6px rgba(0,0,0,0.7);z-index:99999;text-transform:none;&:before{content:'';position:absolute;top:0;bottom:-36px;left:-36px;right:-36px;@media ","{right:-12px;}}}&__menu-list{padding:0;max-height:none;overflow-y:auto;overflow-x:hidden;background:",";.option-footer-text{font-size:13px;color:",";font-style:italic;background:",";padding:6px 12px;}}&__option{position:relative;border-bottom:1px solid #C9C9C9;padding:",";cursor:pointer;height:60px;&:active{background:",";}.option-row{display:block;color:",";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:6px;&:first-child{font-weight:700;color:",";margin-bottom:4px;line-height:normal;.highlight{color:",";}}.highlight{background-color:#dae9f5;color:",";padding:0;}}i{position:absolute;right:12px;top:15px;background:#DFDFDF;border:none;border-radius:3px;padding:6px 12px;font-size:11px;font-style:normal;font-weight:bold;color:",";}&.with-sublabel{height:65px;.option-row{margin-top:0;}i{top:17px;}}&.with-tag .option-row{margin-right:120px;}&.with-icon{.option-row{margin-left:40px;}i{&.wj-icon{background:none;top:14px;left:3px;font-size:24px;}}}.secondary{padding-left:",";& + .option-row{padding-left:",";}}&:last-child{border-bottom:0;}&--is-selected{background:none;}&--is-focused{background:",";box-shadow:inset 0 0 0 4px rgba(135,135,135,0.75);i{background:#ccc;}}}&__menu-notice--no-options{font-size:14px;line-height:18px;color:#B13312;background:",";text-align:center;padding:",";}&__indicators{.loader{display:inline-block;position:absolute;box-sizing:border-box;right:12px;top:12px;width:24px;height:24px;border-radius:150px;vertical-align:middle;animation:"," 1s infinite linear;border:2px solid rgba(100,100,100,0.4);border-right:3px solid ",";}}&__indicator-separator,&__dropdown-indicator{display:none;}&__clear-indicator{fill:#A8A8A8;font-size:16px;margin:6px;}&__menu-notice--loading{display:none;}&__group-heading{background:",";cursor:default;padding:10px ",";border-top:1px solid #C9C9C9;border-bottom:1px solid #c9c9c9;position:relative;pointer-events:none;color:#666;font-weight:700;font-size:17px;display:block;text-decoration:none;text-align:left;height:auto;margin:0;text-transform:none;}&__group{padding:0;}}"," ",""],l.mixins.globalStyles,t,l.theme.borderRadius,l.theme.color[4],l.theme.inputHoverBackground,l.theme.color[4],t,l.theme.color[5],l.theme.borderColor,t,l.theme.color[5],l.theme.borderColor,t+"__single-value",l.theme.textHighlight,l.theme.textHighlight,l.theme.activeItemOutline,l.theme.hoverDarkColor,l.theme.color[10],l.theme.color[6],l.theme.color[2],l.theme.inputIcon,l.theme.color[4],l.theme.color[2],l.theme.color[4],l.theme.inputIcon,l.theme.color[11],l.theme.media.mobile,l.theme.color[11],l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,l.theme.color[4],l.theme.color[8],l.theme.color[10],l.theme.color[10],l.theme.color[8],l.theme.color[8],l.theme.gutterWidth,l.theme.gutterWidth,l.theme.color[2],l.theme.validationColors.inputErrorBackground,l.theme.gutterWidth,u,l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,(function(e){var o=e.state;return o&&"error"===o&&(0,a.css)([".","{&__control{background-color:",";}&__input-icon{background:",";color:",";}&__input-svg-icon{background:",";svg{fill:",";}}&__input{color:",";}}&&:hover,&&:focus{.","{&__control{background-color:",";color:",";border-radius:",";}&__input-icon{background:#bfb0b0;}&__input-svg-icon{background:#bfb0b0;}}}"],t,l.theme.validationColors.inputErrorBackground,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,l.theme.validationColors.inputErrorText,t,l.theme.validationColors.inputErrorHoverBackground,l.theme.validationColors.inputErrorText,l.theme.borderRadius)}),o&&(0,a.css)(["opacity:0.5;pointer-events:none;"]))}));t.default=s},3729:function(e,t,o){var 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:function(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:function(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:function(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:function(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:function(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:function(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:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:function(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:function(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:function(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:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],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:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],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:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=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;",""));n>r?window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"):e.style.top="0px",o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.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}},3322:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),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:function(e){e.exports=require("@babel/runtime/helpers/defineProperty")},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},3682:function(e){e.exports=require("@webjet/react-icons/common/x-circle-fill")},9003:function(e){e.exports=require("classnames")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},1848:function(e){e.exports=require("react-highlight-words")},1929:function(e){e.exports=require("react-select")},3618:function(e){e.exports=require("react-select/async")},7518:function(e){e.exports=require("styled-components")}},t={};function o(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={};!function(){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)),s=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)),d=(r(o(580)),o(1929)),u=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)),x=o(9941),v=["children"],w=["data","selectProps"],y=["children"];function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(E=function(e){return e?o:t})(e)}var F=function(e){var t=e.id,o=e.className,r=e.optionsLimit,n=e.minValueLength,i=e.defaultOptions,a=e.loadOptions,l=e.noOptionsMessage,d=e.placeholder,u=e.value,p=e.isMulti,f=e.autoFillOnBlur,g=e.autoFilterInput,h=e.icon,v=e.onChange,w=e.onBlur,y=e.onFocus,E=e.errorMessage,F=e.state,D=e.disabled,I=e.isAutoFocused,j=(0,c.useState)(""),P=(0,s.default)(j,2),A=P[0],T=P[1],H=(0,c.useState)(""),N=(0,s.default)(H,2),L=N[0],V=N[1],z=!1,W=(0,c.useRef)();return c.default.createElement(c.default.Fragment,null,c.default.createElement(b.default,{ref:W,id:t,className:o,icon:h,classNamePrefix:"wj-autocomplete",isClearable:!0,isMulti:p,loadOptions:function(e,t){var o=(0,x.sanitiseInputText)(e);a&&o.length>=n?a(o,t):t()},noOptionsMessage:function(e){return e.inputValue,L.length>=n?l:null},placeholder:d,inputValue:A,filterInputValue:L,value:u,optionsLimit:r,components:{Control:C,Option:B,LoadingIndicator:_,Input:M,Menu:S,MenuList:O,ClearIndicator:k},onChange:v,onInputChange:function(e,t){if("input-blur"!==t.action&&"menu-close"!==t.action){T(e);var o=g?(0,x.sanitiseInputText)(e):e;V(o)}"set-value"===t.action&&(z=!0),e.length<=1&&"input-change"===t.action&&W.current.clearValue()},filterOption:function(e){var t=e.value,o=W.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(w&&w(e),f&&A.length>=n){var t=W.current,o=t.props.inputValue,r=t.state,i=r.loadedOptions,l=r.optionsCache;if(l&&l[o]&&0===l[o].length)return;if(i&&i.length>0&&!z){var s,c=i[0],d=null!==(s=c.options)&&void 0!==s&&s.length?c.options[0]:c;return void W.current.setValue(d)}a(A,(function(e){if(e&&e.length>0&&!z){var t,o=e[0],r=null!==(t=o.options)&&void 0!==t&&t.length?o.options[0]:o;W.current.setValue(r)}}))}},onFocus:function(e){y&&y(e),(0,x.isTouchDevice)()||A||null==W||!W.current||W.current.state.selectedValue||W.current.state.menuIsOpen||W.current.openMenu("first")},state:F,defaultOptions:i,tabSelectsValue:!1,onKeyDown:function(e){if("Tab"===e.key){var t=W.current.state.focusedOption;t&&W.current.setValue(t)}},disabled:D,autoFocus:I}),"error"===F&&E&&c.default.createElement(m.default,null,E))},_=function(){return c.default.createElement("span",{className:"loader"})},k=function(e){var t=e.selectProps,o=e.innerProps,r=t.classNamePrefix;return c.default.createElement(f.default,(0,l.default)({className:"".concat(r,"__clear-indicator")},o))},C=function(e){var t=e.children,o=(0,a.default)(e,v),r=o.selectProps,n=r.classNamePrefix,i=r.icon,l=!!(0,x.isValidIconElement)(i)&&i,s=!!(0,x.isValidIconName)(i)&&i;return c.default.createElement(d.components.Control,o,l&&c.default.createElement("span",{className:"".concat(n,"__input-svg-icon")},c.default.createElement(l,null)),!l&&s&&c.default.createElement(g.default,{name:s,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(d.components.Option,(0,l.default)({className:(0,p.default)({"with-tag":t.tag,"with-icon":t.icon,"with-sublabel":t.optionSubLabel})},r),c.default.createElement(u.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(u.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(d.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(d.components.Menu,e))},O=function(e){var t=e.children,o=(0,a.default)(e,y),r=o.options,n=o.selectProps,i=n.optionsLimit,l=!n.inputValue,s=l?"Start typing for other options":"Continue typing to refine options",u=i>0&&r.length>i,p=l||u;return c.default.createElement(d.components.MenuList,o,t,c.default.createElement(h.default,{condition:p},c.default.createElement("div",{tabIndex:"-1",className:"option-footer-text"},s)))};F.defaultProps={optionsLimit:0,defaultOptions:[],minValueLength:3,isMulti:!1,autoFillOnBlur:!0,autoFilterInput:!0,state:"initial",errorMessage:null,disabled:!1,isAutoFocused:!1};var D=F;t.default=D},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=s(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 s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(s=function(e){return e?o:t})(e)}var c=(0,a.keyframes)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),d=(0,a.default)(i.default).withConfig({displayName:"Autocompletestyle__StyledAutocomplete",componentId:"sc-1vsc3cw-0"})((function(e){var t=e.classNamePrefix,o=e.disabled;return(0,a.css)([""," -webkit-tap-highlight-color:rgba(0,0,0,0);.","{&__control{position:relative;height:46px;border-radius:",";border:1px solid ",";cursor:pointer;&:hover,&:active,&--is-focused{background:",";border-color:",";.","__input-icon{background:",";box-shadow:0 0 0 1px ",";}.","__input-svg-icon{background:",";box-shadow:0 0 0 1px ",";}.","{background:",";border:2px solid ",";border-left:0;border-right:0;}}&:active,&--is-focused{box-shadow:",";}}&__clear-indicator{&:hover{color:",";}}&__value-container{font-size:16px;line-height:normal;}&__input{color:",";input{margin:0;padding:0;box-shadow:none;transition:none;height:auto;}}&__placeholder{color:",";}&__input-icon{background:",";color:",";font-size:32px;width:46px;height:100%;box-shadow:1px 0 0 0 ",";border-top-left-radius:3px;border-bottom-left-radius:3px;text-align:center;line-height:1.5;}&__input-svg-icon{display:inline-flex;justify-content:center;align-items:center;width:46px;height:100%;background:",";box-shadow:1px 0 0 0 ",";border-top-left-radius:3px;border-bottom-left-radius:3px;svg{width:32px;height:32px;fill:",";}}&__menu{font-size:17px;margin:0;padding:0;border-radius:0;border:0;background:",";box-shadow:0 2px 6px rgba(0,0,0,0.7);z-index:99999;text-transform:none;&:before{content:'';position:absolute;top:0;bottom:-36px;left:-36px;right:-36px;@media ","{right:-12px;}}}&__menu-list{padding:0;max-height:none;overflow-y:auto;overflow-x:hidden;background:",";.option-footer-text{font-size:13px;color:",";font-style:italic;background:",";padding:6px 12px;}}&__option{position:relative;border-bottom:1px solid #C9C9C9;padding:",";cursor:pointer;height:60px;&:active{background:",";}.option-row{display:block;color:",";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:6px;&:first-child{font-weight:700;color:",";margin-bottom:4px;line-height:normal;.highlight{color:",";}}.highlight{background-color:#dae9f5;color:",";padding:0;}}i{position:absolute;right:12px;top:15px;background:#DFDFDF;border:none;border-radius:3px;padding:6px 12px;font-size:11px;font-style:normal;font-weight:bold;color:",";}&.with-sublabel{height:65px;.option-row{margin-top:0;}i{top:17px;}}&.with-tag .option-row{margin-right:120px;}&.with-icon{.option-row{margin-left:40px;}i{&.wj-icon{background:none;top:14px;left:3px;font-size:24px;}}}.secondary{padding-left:",";& + .option-row{padding-left:",";}}&:last-child{border-bottom:0;}&--is-selected{background:none;}&--is-focused{background:",";box-shadow:inset 0 0 0 4px rgba(135,135,135,0.75);i{background:#ccc;}}}&__menu-notice--no-options{font-size:14px;line-height:18px;color:#B13312;background:",";text-align:center;padding:",";}&__indicators{.loader{display:inline-block;position:absolute;box-sizing:border-box;right:12px;top:12px;width:24px;height:24px;border-radius:150px;vertical-align:middle;animation:"," 1s infinite linear;border:2px solid rgba(100,100,100,0.4);border-right:3px solid ",";}}&__indicator-separator,&__dropdown-indicator{display:none;}&__clear-indicator{fill:#A8A8A8;font-size:16px;margin:6px;}&__menu-notice--loading{display:none;}&__group-heading{background:",";cursor:default;padding:10px ",";border-top:1px solid #C9C9C9;border-bottom:1px solid #c9c9c9;position:relative;pointer-events:none;color:#666;font-weight:700;font-size:17px;display:block;text-decoration:none;text-align:left;height:auto;margin:0;text-transform:none;}&__group{padding:0;}}"," ",""],l.mixins.globalStyles,t,l.theme.borderRadius,l.theme.color[4],l.theme.inputHoverBackground,l.theme.color[4],t,l.theme.color[5],l.theme.borderColor,t,l.theme.color[5],l.theme.borderColor,t+"__single-value",l.theme.textHighlight,l.theme.textHighlight,l.theme.activeItemOutline,l.theme.hoverDarkColor,l.theme.color[10],l.theme.color[6],l.theme.color[2],l.theme.inputIcon,l.theme.color[4],l.theme.color[2],l.theme.color[4],l.theme.inputIcon,l.theme.color[11],l.theme.media.mobile,l.theme.color[11],l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,l.theme.color[4],l.theme.color[8],l.theme.color[10],l.theme.color[10],l.theme.color[8],l.theme.color[8],l.theme.gutterWidth,l.theme.gutterWidth,l.theme.color[2],l.theme.validationColors.inputErrorBackground,l.theme.gutterWidth,c,l.theme.color[8],l.theme.color[1],l.theme.gutterWidth,(function(e){var o=e.state;return o&&"error"===o&&(0,a.css)([".","{&__control{background-color:",";}&__input-icon{background:",";color:",";}&__input-svg-icon{background:",";svg{fill:",";}}&__input{color:",";}}&&:hover,&&:focus{.","{&__control{background-color:",";color:",";border-radius:",";}&__input-icon{background:#bfb0b0;}&__input-svg-icon{background:#bfb0b0;}}}"],t,l.theme.validationColors.inputErrorBackground,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,l.theme.validationColors.inputErrorText,t,l.theme.validationColors.inputErrorHoverBackground,l.theme.validationColors.inputErrorText,l.theme.borderRadius)}),o&&(0,a.css)(["opacity:0.5;pointer-events:none;"]))}));t.default=d},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))),s=["name"];t.default=function(e){var t=e.name,o=(0,i.default)(e,s);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 s.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)),s=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.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=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;",""));n>r?window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"):e.style.top="0px",o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.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}},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/button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var e={2488:function(e,t,n){var o=n(7880),r=n(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=o(n(5900)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(7518)),c=n(9193),l=n(8903),d=n(2042);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u={standard:{color:c.themeV2.color[10],bgColor:c.themeV2.btnStandard,hoverColor:c.themeV2.btnStandardHover,fontWeight:500},action:{color:c.themeV2.color[11],bgColor:c.themeV2.btnAction,hoverColor:c.themeV2.btnActionHover,fontWeight:500},active:{color:c.themeV2.color[11],bgColor:c.themeV2.btnActive,hoverColor:c.themeV2.btnActiveHover,fontWeight:500},selection:{color:c.themeV2.color[11],bgColor:c.themeV2.btnSelection,hoverColor:c.themeV2.btnSelectionHover,fontWeight:500}};t.CONFIG=u;var f=function(){return(0,a.css)(["pointer-events:none;box-shadow:none;"])},p=function(e,t){return t&&e&&(0,a.css)(["opacity:",";"],"standard"===e?"0.5":"1")},v=a.default.button.withConfig({displayName:"Button-v2style__StyledButton",componentId:"sc-1u6xcsj-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:12px;border:0;height:46px;cursor:pointer;border-radius:4px;-webkit-tap-highlight-color:rgba(0,0,0,0);font-size:16px;line-height:1;"," "," "," "," &:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," ",""],c.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{"," font-size:12px;}"],function(e,t){return e&&u[e]&&(0,a.css)(["color:",";background:",";font-weight:",";text-decoration:none;&:hover,&:focus,&:active{background:",";text-decoration:none;}"],u[e].color,t?(n=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",n)):u[e].bgColor,u[e].fontWeight,u[e].hoverColor);var n}(t,n),p(t,n))}),(function(e){var t=e.size;return t&&(0,l.isSizeSm)(t)&&(0,a.css)(["height:36px;font-size:14px;padding:8px 16px;"])}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()}));t.StyledButton=v;var g=a.default.span.withConfig({displayName:"Button-v2style__StyledText",componentId:"sc-1u6xcsj-1"})(["vertical-align:middle;"," ",""],(function(e){return e.$isLoading&&(0,a.css)(["opacity:0.5;padding-left:7px;"])}),(function(e){var t=e.variant,n=e.disabled;return p(t,n)}));t.StyledText=g;var b=(0,a.default)(i.default).withConfig({displayName:"Button-v2style__StyledIcon",componentId:"sc-1u6xcsj-2"})((function(e){var t=e.$iconColor;return(0,a.css)(["color:",";",""],t,(function(e){var t=e.variant,n=e.disabled;return p(t,n)}))}));t.StyledIcon=b},9004:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(8213)),i=o(n(3838)),a=o(n(6689)),c=(o(n(580)),o(n(9961))),l=n(7750),d=n(2488),s=n(9941),u=["isLoading","type","variant","icon","iconColor","disabled","version","iconLeftAlign","children"],f=function(e){var t=e.isLoading,n=e.type,o=e.variant,f=e.icon,p=e.iconColor,v=e.disabled,g=e.version,b=e.iconLeftAlign,h=e.children,m=(0,i.default)(e,u),y=2===g?d.StyledButton:l.StyledButton,x=2===g?d.StyledText:l.StyledText,w=2===g?d.StyledIcon:l.StyledIcon,S="standard"!==o,F=!!(0,s.isValidIconElement)(f)&&f,C=!!(0,s.isValidIconName)(f)&&f;return a.default.createElement(y,(0,r.default)({},m,{type:n,$variant:o,$icon:f,$iconLeftAlign:b,disabled:v,$isLoading:t}),t&&a.default.createElement(c.default,{reverse:S}),h&&a.default.createElement(x,{$isLoading:t,variant:o,disabled:v},h),F&&a.default.createElement(F,{fill:p,"data-testid":"button-icon",role:"button-icon"}),!F&&C&&a.default.createElement(w,{name:C,$iconColor:p,disabled:v,variant:o,"data-testid":"button-icon",role:"button-icon"}))};f.defaultProps={variant:"standard",type:"button",size:"lg",icon:void 0,iconColor:void 0,iconLeftAlign:!1,isLoading:!1,disabled:!1,children:null,version:1};var p=f;t.default=p},7750:function(e,t,n){var o=n(7880),r=n(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=o(n(5900)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(7518)),c=n(9193),l=n(8903),d=n(2042);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u={standard:{color:c.theme.color[10],bgColor:c.theme.btnStandard,hoverColor:c.theme.btnStandardHover,fontWeight:400},action:{color:c.theme.color[11],bgColor:c.theme.btnAction,hoverColor:c.theme.btnActionHover,fontWeight:500},active:{color:c.theme.color[11],bgColor:c.theme.btnActive,hoverColor:c.theme.btnActiveHover,fontWeight:500},selection:{color:c.theme.color[11],bgColor:c.theme.btnSelection,hoverColor:c.theme.btnSelectionHover,fontWeight:500}};t.CONFIG=u;var f=function(){return(0,a.css)(["cursor:default;pointer-events:none;box-shadow:none;&&:focus{box-shadow:none;}"])},p=function(e,t){return t&&e&&(0,a.css)(["opacity:",";"],"standard"===e?"0.5":"1")},v=a.default.button.withConfig({displayName:"Buttonstyle__StyledButton",componentId:"sc-1q7jh6y-0"})([""," border:0;cursor:pointer;border-radius:3px;-webkit-tap-highlight-color:rgba(0,0,0,0);gap:9px;height:46px;padding:0 16px;font-size:15px;box-shadow:0 2px 3px 0 rgba(0,0,0,0.4);&&:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," "," "," "," "," ",""],c.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{","}"],function(e,t){return e&&u[e]&&(0,a.css)(["color:",";background:",";font-weight:",";&&:hover:enabled,&&:focus:enabled,&&:active:enabled{background:",";}"],u[e].color,t?(n=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",n)):u[e].bgColor,u[e].fontWeight,u[e].hoverColor);var n}(t,n),p(t,n))}),(function(e){var t=e.size;return t&&(0,l.isSizeSm)(t)&&(0,a.css)(["height:40px;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;padding:0 12px;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])}));t.StyledButton=v;var g=a.default.span.withConfig({displayName:"Buttonstyle__StyledText",componentId:"sc-1q7jh6y-1"})(["vertical-align:middle;"," ",""],(function(e){return e.$isLoading&&(0,a.css)(["opacity:0.5;padding-left:7px;"])}),(function(e){var t=e.variant,n=e.disabled;return p(t,n)}));t.StyledText=g;var b=(0,a.default)(i.default).withConfig({displayName:"Buttonstyle__StyledIcon",componentId:"sc-1q7jh6y-2"})((function(e){var t=e.$iconColor;return(0,a.css)(["color:",";",""],t,(function(e){var t=e.variant,n=e.disabled;return p(t,n)}))}));t.StyledIcon=b},5715:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(7518)).default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:'WebjetIcons';display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],(function(e){var t=e.iconName;return i(t)})),i=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""},a=r;t.default=a},5900:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(8213)),i=o(n(3838)),a=o(n(6689)),c=(o(n(580)),o(n(5715))),l=["name"];t.default=function(e){var t=e.name,n=(0,i.default)(e,l);return a.default.createElement(c.default,(0,r.default)({iconName:t},n))}},3206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:function(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:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=o(n(2594)),i=o(n(6932)),a=o(n(2098)),c=o(n(3206)),l=o(n(5799))},2098:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(7518),i=o(n(2594)),a={globalStyles:(0,r.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},9577:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(8213)),i=o(n(3838)),a=o(n(6689)),c=(o(n(580)),n(3432)),l=["reverse"],d=function(e){var t=e.reverse,n=(0,i.default)(e,l);return a.default.createElement(c.StyledSpinner,(0,r.default)({reverse:t,"data-testid":"spinner",role:"spinner"},n))};d.defaultProps={reverse:!1};var s=d;t.default=s},3432:function(e,t,n){var o=n(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledSpinner=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var l=i?Object.getOwnPropertyDescriptor(e,c):null;l&&(l.get||l.set)?Object.defineProperty(r,c,l):r[c]=e[c]}return r.default=e,n&&n.set(e,r),r}(n(7518)),i=n(9193);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var c=r.default.span.withConfig({displayName:"Spinnerstyle__StyledSpinner",componentId:"sc-uj77gv-0"})([""," display:inline-block;width:24px;height:24px;vertical-align:middle;animation:spin 1s infinite linear;border-radius:150px;border:2px solid #646464;border-top-color:rgba(100,100,100,0.4);border-left-color:rgba(100,100,100,0.4);border-bottom-color:rgba(100,100,100,0.4);"," @keyframes spin{0%{transform:rotate(0);}100%{transform:rotate(360deg);}}"],i.mixins.globalStyles,(function(e){return e.reverse&&(0,r.css)(["border:2px solid rgba(255,255,255,0.4);border-right:3px solid #FFFFFF;"])}));t.StyledSpinner=c},9961:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(9577)).default;t.default=r},9941:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0;var o=n(3322),r={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=r;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(r.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!n&&/(iPhone\sOS)\s([\d_]+)/.test(t)||n,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,o.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var n=window.atob(t[1]).toString("ascii");if(JSON.parse(n).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,n=window.scrollY,o=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){o=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));r>o?window.scrollY<n?i<0?e.style.top=i+n-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+n-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"):e.style.top="0px",n=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,n=e.scrollTop,o=e.clientHeight,r=t-n;return r>=o-1&&r<=o+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.clientHeight;return!(t>=n-1&&t<=n+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0}},8903:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},3322:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var n=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&n())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&n())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var r=n[o];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},t.setCookieStorage=function(e,t,n){var o=window.location.hostname,r="localhost"===o?o:o.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(n||86400)}},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},2042:function(e){e.exports=require("polished")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},7518:function(e){e.exports=require("styled-components")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}var o={};!function(){var e=o,t=n(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(n(9004)).default;e.default=r}(),module.exports=o}();
|
|
1
|
+
(()=>{"use strict";var e={2488:(e,t,r)=>{var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=n(r(5900)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(7518)),c=r(9193),l=r(8903),d=r(2042);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var u={standard:{color:c.themeV2.color[10],bgColor:c.themeV2.btnStandard,hoverColor:c.themeV2.btnStandardHover,fontWeight:500},action:{color:c.themeV2.color[11],bgColor:c.themeV2.btnAction,hoverColor:c.themeV2.btnActionHover,fontWeight:500},active:{color:c.themeV2.color[11],bgColor:c.themeV2.btnActive,hoverColor:c.themeV2.btnActiveHover,fontWeight:500},selection:{color:c.themeV2.color[11],bgColor:c.themeV2.btnSelection,hoverColor:c.themeV2.btnSelectionHover,fontWeight:500}};t.CONFIG=u;var f=function(){return(0,a.css)(["pointer-events:none;box-shadow:none;"])},p=function(e,t){return t&&e&&(0,a.css)(["opacity:",";"],"standard"===e?"0.5":"1")},v=a.default.button.withConfig({displayName:"Button-v2style__StyledButton",componentId:"sc-1u6xcsj-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:12px;border:0;height:46px;cursor:pointer;border-radius:4px;-webkit-tap-highlight-color:rgba(0,0,0,0);font-size:16px;line-height:1;"," "," "," "," &:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," ",""],c.mixins.globalStyles,(function(e){var t=e.$variant,r=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{"," font-size:12px;}"],function(e,t){return e&&u[e]&&(0,a.css)(["color:",";background:",";font-weight:",";text-decoration:none;&:hover,&:focus,&:active{background:",";text-decoration:none;}"],u[e].color,t?(r=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",r)):u[e].bgColor,u[e].fontWeight,u[e].hoverColor);var r}(t,r),p(t,r))}),(function(e){var t=e.size;return t&&(0,l.isSizeSm)(t)&&(0,a.css)(["height:36px;font-size:14px;padding:8px 16px;"])}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()}));t.StyledButton=v;var g=a.default.span.withConfig({displayName:"Button-v2style__StyledText",componentId:"sc-1u6xcsj-1"})(["vertical-align:middle;"," ",""],(function(e){return e.$isLoading&&(0,a.css)(["opacity:0.5;padding-left:7px;"])}),(function(e){var t=e.variant,r=e.disabled;return p(t,r)}));t.StyledText=g;var b=(0,a.default)(i.default).withConfig({displayName:"Button-v2style__StyledIcon",componentId:"sc-1u6xcsj-2"})((function(e){var t=e.$iconColor;return(0,a.css)(["color:",";",""],t,(function(e){var t=e.variant,r=e.disabled;return p(t,r)}))}));t.StyledIcon=b},9004:(e,t,r)=>{var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(8213)),i=n(r(3838)),a=n(r(6689)),c=(n(r(580)),n(r(9961))),l=r(7750),d=r(2488),s=r(9941),u=["isLoading","type","variant","icon","iconColor","disabled","version","iconLeftAlign","children"],f=function(e){var t=e.isLoading,r=e.type,n=e.variant,f=e.icon,p=e.iconColor,v=e.disabled,g=e.version,b=e.iconLeftAlign,h=e.children,m=(0,i.default)(e,u),y=2===g?d.StyledButton:l.StyledButton,x=2===g?d.StyledText:l.StyledText,w=2===g?d.StyledIcon:l.StyledIcon,S="standard"!==n,F=!!(0,s.isValidIconElement)(f)&&f,C=!!(0,s.isValidIconName)(f)&&f;return a.default.createElement(y,(0,o.default)({},m,{type:r,$variant:n,$icon:f,$iconLeftAlign:b,disabled:v,$isLoading:t}),t&&a.default.createElement(c.default,{reverse:S}),h&&a.default.createElement(x,{$isLoading:t,variant:n,disabled:v},h),F&&a.default.createElement(F,{fill:p,"data-testid":"button-icon",role:"button-icon"}),!F&&C&&a.default.createElement(w,{name:C,$iconColor:p,disabled:v,variant:n,"data-testid":"button-icon",role:"button-icon"}))};f.defaultProps={variant:"standard",type:"button",size:"lg",icon:void 0,iconColor:void 0,iconLeftAlign:!1,isLoading:!1,disabled:!1,children:null,version:1};var p=f;t.default=p},7750:(e,t,r)=>{var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=n(r(5900)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(7518)),c=r(9193),l=r(8903),d=r(2042);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var u={standard:{color:c.theme.color[10],bgColor:c.theme.btnStandard,hoverColor:c.theme.btnStandardHover,fontWeight:400},action:{color:c.theme.color[11],bgColor:c.theme.btnAction,hoverColor:c.theme.btnActionHover,fontWeight:500},active:{color:c.theme.color[11],bgColor:c.theme.btnActive,hoverColor:c.theme.btnActiveHover,fontWeight:500},selection:{color:c.theme.color[11],bgColor:c.theme.btnSelection,hoverColor:c.theme.btnSelectionHover,fontWeight:500}};t.CONFIG=u;var f=function(){return(0,a.css)(["cursor:default;pointer-events:none;box-shadow:none;&&:focus{box-shadow:none;}"])},p=function(e,t){return t&&e&&(0,a.css)(["opacity:",";"],"standard"===e?"0.5":"1")},v=a.default.button.withConfig({displayName:"Buttonstyle__StyledButton",componentId:"sc-1q7jh6y-0"})([""," border:0;cursor:pointer;border-radius:3px;-webkit-tap-highlight-color:rgba(0,0,0,0);gap:9px;height:46px;padding:0 16px;font-size:15px;box-shadow:0 2px 3px 0 rgba(0,0,0,0.4);&&:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," "," "," "," "," ",""],c.mixins.globalStyles,(function(e){var t=e.$variant,r=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{","}"],function(e,t){return e&&u[e]&&(0,a.css)(["color:",";background:",";font-weight:",";&&:hover:enabled,&&:focus:enabled,&&:active:enabled{background:",";}"],u[e].color,t?(r=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",r)):u[e].bgColor,u[e].fontWeight,u[e].hoverColor);var r}(t,r),p(t,r))}),(function(e){var t=e.size;return t&&(0,l.isSizeSm)(t)&&(0,a.css)(["height:40px;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;padding:0 12px;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])}));t.StyledButton=v;var g=a.default.span.withConfig({displayName:"Buttonstyle__StyledText",componentId:"sc-1q7jh6y-1"})(["vertical-align:middle;"," ",""],(function(e){return e.$isLoading&&(0,a.css)(["opacity:0.5;padding-left:7px;"])}),(function(e){var t=e.variant,r=e.disabled;return p(t,r)}));t.StyledText=g;var b=(0,a.default)(i.default).withConfig({displayName:"Buttonstyle__StyledIcon",componentId:"sc-1q7jh6y-2"})((function(e){var t=e.$iconColor;return(0,a.css)(["color:",";",""],t,(function(e){var t=e.variant,r=e.disabled;return p(t,r)}))}));t.StyledIcon=b},5715:(e,t,r)=>{var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(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=o;t.default=a},5900:(e,t,r)=>{var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(8213)),i=n(r(3838)),a=n(r(6689)),c=(n(r(580)),n(r(5715))),l=["name"];t.default=function(e){var t=e.name,r=(0,i.default)(e,l);return a.default.createElement(c.default,(0,o.default)({iconName:t},r))}},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 n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(2594)),i=n(r(6932)),a=n(r(2098)),c=n(r(3206)),l=n(r(5799))},2098:(e,t,r)=>{var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(7518),i=n(r(2594)),a={globalStyles:(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},9577:(e,t,r)=>{var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(8213)),i=n(r(3838)),a=n(r(6689)),c=(n(r(580)),r(3432)),l=["reverse"],d=function(e){var t=e.reverse,r=(0,i.default)(e,l);return a.default.createElement(c.StyledSpinner,(0,o.default)({reverse:t,"data-testid":"spinner",role:"spinner"},r))};d.defaultProps={reverse:!1};var s=d;t.default=s},3432:(e,t,r)=>{var n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledSpinner=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var l=i?Object.getOwnPropertyDescriptor(e,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=e[c]}return o.default=e,r&&r.set(e,o),o}(r(7518)),i=r(9193);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}var c=o.default.span.withConfig({displayName:"Spinnerstyle__StyledSpinner",componentId:"sc-uj77gv-0"})([""," display:inline-block;width:24px;height:24px;vertical-align:middle;animation:spin 1s infinite linear;border-radius:150px;border:2px solid #646464;border-top-color:rgba(100,100,100,0.4);border-left-color:rgba(100,100,100,0.4);border-bottom-color:rgba(100,100,100,0.4);"," @keyframes spin{0%{transform:rotate(0);}100%{transform:rotate(360deg);}}"],i.mixins.globalStyles,(function(e){return e.reverse&&(0,o.css)(["border:2px solid rgba(255,255,255,0.4);border-right:3px solid #FFFFFF;"])}));t.StyledSpinner=c},9961:(e,t,r)=>{var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(9577)).default;t.default=o},9941:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0;var n=r(3322),o={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=o;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(o.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(o.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,r=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!r&&/(iPhone\sOS)\s([\d_]+)/.test(t)||r,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var r=window.atob(t[1]).toString("ascii");if(JSON.parse(r).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,r=window.scrollY,n=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,o=e.offsetHeight})),document.addEventListener("scroll",(function(){o=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));o>n?window.scrollY<r?i<0?e.style.top=i+r-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+r-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"):e.style.top="0px",r=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,r=e.scrollTop,n=e.clientHeight,o=t-r;return o>=n-1&&o<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,r=e.clientHeight;return!(t>=r-1&&t<=r+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0}},8903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},3322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var r=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},t.setCookieStorage=function(e,t,r){var n=window.location.hostname,o="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(r||86400)}},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")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},2042:e=>{e.exports=require("polished")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},7518:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(9004)).default;e.default=o})(),module.exports=n})();
|
package/components/card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(()=>{"use strict";var e={2154:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(3838)),a=o(r(6689)),d=r(5130),i=(o(r(580)),["header","centered"]);t.default=function(e){var t=e.header,r=e.centered,o=(0,n.default)(e,i);return a.default.createElement(d.StyledCard,o,t&&a.default.createElement(d.StyledHeader,{centered:r,"data-testid":"header",role:"header"},t),a.default.createElement(d.StyledContent,{centered:r,"data-testid":"content",role:"content"},e.children))}},5130:(e,t,r)=>{var o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledHeader=t.StyledContent=t.StyledCard=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=d(t);if(r&&r.has(e))return r.get(e);var n={},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(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(7518)),a=r(9193);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}var i=n.default.div.withConfig({displayName:"Cardstyle__StyledCard",componentId:"sc-197xjbh-0"})((function(){return(0,n.css)([""," box-shadow:0 0 0 1px "," inset;border-radius:3px;margin-bottom:",";"],a.mixins.globalStyles,a.theme.color[4],a.theme.gutterWidth)}));t.StyledCard=i;var l=n.default.h3.withConfig({displayName:"Cardstyle__StyledHeader",componentId:"sc-197xjbh-1"})((function(){return(0,n.css)([""," height:50px;font-size:18px;font-weight:bold;line-height:26px;color:",";background-color:",";width:100%;border-radius:3px 3px 0 0;margin:0;padding:",";",""],a.mixins.globalStyles,a.theme.color[11],a.theme.color[8],a.theme.gutterWidth,(function(e){return e.centered&&(0,n.css)(["text-align:center;"])}))}));t.StyledHeader=l;var c=n.default.div.withConfig({displayName:"Cardstyle__StyledContent",componentId:"sc-197xjbh-2"})((function(){return(0,n.css)(["padding:",";position:relative;",""],a.theme.gutterWidth,(function(e){return e.centered&&(0,n.css)(["text-align:center;"])}))}));t.StyledContent=c},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 i.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return d.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)),d=o(r(2098)),i=o(r(3206)),l=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)),d={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=d},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")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},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(2154)).default;e.default=n})(),module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var e={4310:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(8213)),a=n(r(353)),l=n(r(3838)),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(6689)),d=(n(r(580)),n(r(8096))),s=r(1348),u=r(3325),p=n(r(1705)),f=n(r(2616)),h=n(r(5571)),m=["data","onChange","cardMinWidth","cardHeight","singleSelect"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}var v=function(e){var t=e.data,r=e.onChange,n=e.cardMinWidth,o=e.cardHeight,b=e.singleSelect,v=(0,l.default)(e,m);if(!t)return null;var g=(0,c.useRef)(),x=(0,c.useState)(t),y=(0,a.default)(x,2),k=y[0],w=y[1],C=(0,c.useState)(1),F=(0,a.default)(C,2),E=F[0],B=F[1],D=(0,c.useState)({}),O=(0,a.default)(D,2),S=O[0],j=O[1],M=function(e){j({clientX:e.clientX,clientY:e.clientY}),e.preventDefault()},A=function(e){return function(t){if(S.clientX!==t.clientX||S.clientY!==t.clientY)t.preventDefault();else{var n=(0,u.updateItem)(k,e,b,k[e].selectAll);w(n),r&&r(n,e)}}};(0,c.useEffect)((function(){var e=(0,u.calculateNumberOfCardsToShow)(g.current.clientWidth,n,t.length);B(e),w(t)}),[t]),(0,c.useEffect)((function(){var e=function(){var e;if(null!=g&&null!==(e=g.current)&&void 0!==e&&e.clientWidth){var t=(0,u.calculateNumberOfCardsToShow)(g.current.clientWidth,n,k.length);B(t)}};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]);var P={fill:"#fff",width:"24px",height:"24px"},W=function(e){var t=e.direction,r=e.className,n=e.onClick;return c.default.createElement(s.StyledArrowWrapper,{className:r,onClick:n,cardHeight:o,direction:t},"left"===t?c.default.createElement(p.default,P):c.default.createElement(f.default,P))},_={dots:!1,infinite:!1,speed:500,slidesToShow:E,slidesToScroll:E-1,prevArrow:c.default.createElement(W,{direction:"left"}),nextArrow:c.default.createElement(W,{direction:"right"})};return c.default.createElement(s.StyledWrapper,(0,i.default)({ref:g,limitCardWidth:E===k.length,cardHeight:o,cardMinWidth:n},v),c.default.createElement(d.default,_,k.map((function(e,t){return c.default.createElement(s.StyledCardWrapper,{key:t,onMouseDown:M,onClick:A(t),selected:e.selected,cardHeight:o,cardMinWidth:n},c.default.createElement(h.default,{item:e,cardMinWidth:n,cardHeight:o}))}))))};v.defaultProps={cardMinWidth:99,cardHeight:96,singleSelect:!1};var g=v;t.default=g},1348:function(e,t,r){var n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledContentCard=t.StyledCardWrapper=t.StyledArrowWrapper=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(7518)),i=r(9193),a=r(2042);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}var c=(0,o.css)(['content:" ";position:absolute;pointer-events:none;display:block;width:105%;height:16px;clip-path:polygon(50% 100%,0% 0%,100% 0%);']),d=(0,o.css)([".slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent;}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0;}.slick-list:focus{outline:none;}.slick-list.dragging{cursor:pointer;cursor:hand;}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.slick-track{position:relative;top:0;left:0;width:100%;display:block;}.slick-track:before,.slick-track:after{display:table;content:'';}.slick-track:after{clear:both;}.slick-loading .slick-track{visibility:hidden;}.slick-slide{display:none;float:left;height:100%;min-height:1px;}[dir='rtl'] .slick-slide{float:right;}.slick-slide img{display:block;}.slick-slide.slick-loading img{display:none;}.slick-slide.dragging img{pointer-events:none;}.slick-initialized .slick-slide{display:block;}.slick-loading .slick-slide{visibility:hidden;}.slick-vertical .slick-slide{display:block;height:auto;}"]),s=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledArrowWrapper",componentId:"sc-69jdcv-0"})(["width:40px;background:",";z-index:1;opacity:0.8;text-align:center;>svg{vertical-align:middle;}box-shadow:-2px 0px 10px 0px #999;"," "," &:hover{background:","}"],i.theme.color[10],(function(e){return"left"===e.direction&&(0,o.css)(["box-shadow:2px 0px 10px 0px #999;"])}),(function(e){var t=e.cardHeight;return t&&(0,o.css)(["height:","px;line-height:","px;"],t,t)}),(0,a.darken)(.12,i.theme.color[10]));t.StyledArrowWrapper=s;var u=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledCardWrapper",componentId:"sc-69jdcv-1"})(["display:flex !important;justify-content:center;align-items:center;flex-direction:column;position:relative;color:",";background:",";border-right:1px solid ",";div{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"," &:focus-visible{outline:none;}@media ","{&:hover{cursor:pointer;color:",";font-weight:700;}}"," "],i.theme.color[8],i.theme.color[11],i.theme.color[5],(function(e){var t=e.cardHeight,r=e.cardMinWidth;return t&&r&&(0,o.css)(["height:","px;min-width:","px !important;"],t,r)}),i.theme.media.desktopAndWideDesktop,i.theme.color[10],(function(e){return e.selected&&(0,o.css)(["background:",";&::before{"," bottom:-16px;background:",";}&::after{"," bottom:-15px;background:",";}"],i.theme.color[2],c,i.theme.color[6],c,i.theme.color[2])}));t.StyledCardWrapper=u;var p=(0,o.css)(['content:" ";position:absolute;pointer-events:none;display:block;width:0.5px;top:0;background:',";z-index:1;"],i.theme.color[6]),f=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledWrapper",componentId:"sc-69jdcv-2"})((function(e){var t=e.cardHeight;return(0,o.css)([""," "," position:relative;.slick-slider{width:100%;border-top:1px solid ",";&::after{"," right:0;height:","px;}&::before{"," left:0;height:","px;}.slick-list{&::after{"," width:100%;height:0.5px;top:","px;z-index:-1;}}.slick-arrow{position:absolute;top:0;&:hover{cursor:pointer;}}.slick-prev{left:0;}.slick-next{right:0;}.slick-disabled{display:none;}.slick-list{width:100%;margin:0;height:",'px;&::before{height:calc(100% - 17px);width:100%;content:"";background-color:#fff;position:absolute;}.slick-track{.slick-slide{min-width:fit-content!important;height:fit-content!important;',"}}}}"],i.mixins.globalStyles,d,i.theme.color[6],p,t+1,p,t+1,p,t,t+17,(function(e){var t=e.cardMinWidth;return e.limitCardWidth&&t&&(0,o.css)(["width:","px !important;"],t)}))}));t.StyledWrapper=f;var h=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledContentCard",componentId:"sc-69jdcv-3"})(["text-align:center;font-size:12px;"," img{height:50px;width:auto;margin:auto;}div:nth-last-child(2){font-weight:700;}"],(function(e){var t=e.cardMinWidth,r=e.cardHeight;return t&&r&&(0,o.css)(["max-width:","px;max-height:","px;"],t-12,r-12)}));t.StyledContentCard=h},5571:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(3838)),i=n(r(6689)),a=r(1348),l=["item"];t.default=function(e){var t=e.item,r=(0,o.default)(e,l);return t?t.customCard?t.customCard:i.default.createElement(a.StyledContentCard,r,i.default.createElement("img",{alt:"image",src:t.imageUrl}),i.default.createElement("div",null,t.name),i.default.createElement("div",null,t.title)):null}},3325:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.updateItem=t.calculateNumberOfCardsToShow=void 0;var o=n(r(8779));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.updateItem=function(e,t,r,n){var o=[],i=0;return o=null==e?void 0:e.map((function(e,o){var l=o===t?!e.selected:!(r||n||e.selectAll&&t!==o)&&e.selected;return l&&i++,a(a({},e),{},{selected:l})})),0===i&&e[0].selectAll&&(o[0].selected=!0),o},t.calculateNumberOfCardsToShow=function(e,t,r){var n=Math.floor((e-4)/t);return r>n?n:r}},3206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:function(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:function(e,t,r){var n=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 c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(2594)),i=n(r(6932)),a=n(r(2098)),l=n(r(3206)),c=n(r(5799))},2098:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(7518),i=n(r(2594)),a={globalStyles:(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},2594:function(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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},8779:function(e){e.exports=require("@babel/runtime/helpers/defineProperty")},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},1705:function(e){e.exports=require("@webjet/react-icons/common/caret-left")},2616:function(e){e.exports=require("@webjet/react-icons/common/caret-right")},2042:function(e){e.exports=require("polished")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},8096:function(e){e.exports=require("react-slick")},7518:function(e){e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};!function(){var e=n,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(4310)).default;e.default=o}(),module.exports=n}();
|
|
1
|
+
(()=>{"use strict";var e={4310:(e,t,r)=>{var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(8213)),a=n(r(353)),l=n(r(3838)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(6689)),c=(n(r(580)),n(r(8096))),s=r(1348),u=r(3325),p=n(r(1705)),f=n(r(2616)),h=n(r(5571)),m=["data","onChange","cardMinWidth","cardHeight","singleSelect"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}var v=function(e){var t=e.data,r=e.onChange,n=e.cardMinWidth,o=e.cardHeight,b=e.singleSelect,v=(0,l.default)(e,m);if(!t)return null;var g=(0,d.useRef)(),y=(0,d.useState)(t),x=(0,a.default)(y,2),k=x[0],w=x[1],C=(0,d.useState)(1),F=(0,a.default)(C,2),E=F[0],B=F[1],D=(0,d.useState)({}),O=(0,a.default)(D,2),M=O[0],S=O[1],j=function(e){S({clientX:e.clientX,clientY:e.clientY}),e.preventDefault()},A=function(e){return function(t){if(M.clientX!==t.clientX||M.clientY!==t.clientY)t.preventDefault();else{var n=(0,u.updateItem)(k,e,b,k[e].selectAll);w(n),r&&r(n,e)}}};(0,d.useEffect)((function(){var e=(0,u.calculateNumberOfCardsToShow)(g.current.clientWidth,n,t.length);B(e),w(t)}),[t]),(0,d.useEffect)((function(){var e=function(){var e;if(null!=g&&null!==(e=g.current)&&void 0!==e&&e.clientWidth){var t=(0,u.calculateNumberOfCardsToShow)(g.current.clientWidth,n,k.length);B(t)}};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]);var P={fill:"#fff",width:"24px",height:"24px"},W=function(e){var t=e.direction,r=e.className,n=e.onClick;return d.default.createElement(s.StyledArrowWrapper,{className:r,onClick:n,cardHeight:o,direction:t},"left"===t?d.default.createElement(p.default,P):d.default.createElement(f.default,P))},_={dots:!1,infinite:!1,speed:500,slidesToShow:E,slidesToScroll:E-1,prevArrow:d.default.createElement(W,{direction:"left"}),nextArrow:d.default.createElement(W,{direction:"right"})};return d.default.createElement(s.StyledWrapper,(0,i.default)({ref:g,limitCardWidth:E===k.length,cardHeight:o,cardMinWidth:n},v),d.default.createElement(c.default,_,k.map((function(e,t){return d.default.createElement(s.StyledCardWrapper,{key:t,onMouseDown:j,onClick:A(t),selected:e.selected,cardHeight:o,cardMinWidth:n},d.default.createElement(h.default,{item:e,cardMinWidth:n,cardHeight:o}))}))))};v.defaultProps={cardMinWidth:99,cardHeight:96,singleSelect:!1};var g=v;t.default=g},1348:(e,t,r)=>{var n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledContentCard=t.StyledCardWrapper=t.StyledArrowWrapper=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(o,a,d):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(7518)),i=r(9193),a=r(2042);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}var d=(0,o.css)(['content:" ";position:absolute;pointer-events:none;display:block;width:105%;height:16px;clip-path:polygon(50% 100%,0% 0%,100% 0%);']),c=(0,o.css)([".slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent;}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0;}.slick-list:focus{outline:none;}.slick-list.dragging{cursor:pointer;cursor:hand;}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.slick-track{position:relative;top:0;left:0;width:100%;display:block;}.slick-track:before,.slick-track:after{display:table;content:'';}.slick-track:after{clear:both;}.slick-loading .slick-track{visibility:hidden;}.slick-slide{display:none;float:left;height:100%;min-height:1px;}[dir='rtl'] .slick-slide{float:right;}.slick-slide img{display:block;}.slick-slide.slick-loading img{display:none;}.slick-slide.dragging img{pointer-events:none;}.slick-initialized .slick-slide{display:block;}.slick-loading .slick-slide{visibility:hidden;}.slick-vertical .slick-slide{display:block;height:auto;}"]),s=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledArrowWrapper",componentId:"sc-69jdcv-0"})(["width:40px;background:",";z-index:1;opacity:0.8;text-align:center;>svg{vertical-align:middle;}box-shadow:-2px 0px 10px 0px #999;"," "," &:hover{background:","}"],i.theme.color[10],(function(e){return"left"===e.direction&&(0,o.css)(["box-shadow:2px 0px 10px 0px #999;"])}),(function(e){var t=e.cardHeight;return t&&(0,o.css)(["height:","px;line-height:","px;"],t,t)}),(0,a.darken)(.12,i.theme.color[10]));t.StyledArrowWrapper=s;var u=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledCardWrapper",componentId:"sc-69jdcv-1"})(["display:flex !important;justify-content:center;align-items:center;flex-direction:column;position:relative;color:",";background:",";border-right:1px solid ",";div{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"," &:focus-visible{outline:none;}@media ","{&:hover{cursor:pointer;color:",";font-weight:700;}}"," "],i.theme.color[8],i.theme.color[11],i.theme.color[5],(function(e){var t=e.cardHeight,r=e.cardMinWidth;return t&&r&&(0,o.css)(["height:","px;min-width:","px !important;"],t,r)}),i.theme.media.desktopAndWideDesktop,i.theme.color[10],(function(e){return e.selected&&(0,o.css)(["background:",";&::before{"," bottom:-16px;background:",";}&::after{"," bottom:-15px;background:",";}"],i.theme.color[2],d,i.theme.color[6],d,i.theme.color[2])}));t.StyledCardWrapper=u;var p=(0,o.css)(['content:" ";position:absolute;pointer-events:none;display:block;width:0.5px;top:0;background:',";z-index:1;"],i.theme.color[6]),f=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledWrapper",componentId:"sc-69jdcv-2"})((function(e){var t=e.cardHeight;return(0,o.css)([""," "," position:relative;.slick-slider{width:100%;border-top:1px solid ",";&::after{"," right:0;height:","px;}&::before{"," left:0;height:","px;}.slick-list{&::after{"," width:100%;height:0.5px;top:","px;z-index:-1;}}.slick-arrow{position:absolute;top:0;&:hover{cursor:pointer;}}.slick-prev{left:0;}.slick-next{right:0;}.slick-disabled{display:none;}.slick-list{width:100%;margin:0;height:",'px;&::before{height:calc(100% - 17px);width:100%;content:"";background-color:#fff;position:absolute;}.slick-track{.slick-slide{min-width:fit-content!important;height:fit-content!important;',"}}}}"],i.mixins.globalStyles,c,i.theme.color[6],p,t+1,p,t+1,p,t,t+17,(function(e){var t=e.cardMinWidth;return e.limitCardWidth&&t&&(0,o.css)(["width:","px !important;"],t)}))}));t.StyledWrapper=f;var h=o.default.div.withConfig({displayName:"CarouselContentstyle__StyledContentCard",componentId:"sc-69jdcv-3"})(["text-align:center;font-size:12px;"," img{height:50px;width:auto;margin:auto;}div:nth-last-child(2){font-weight:700;}"],(function(e){var t=e.cardMinWidth,r=e.cardHeight;return t&&r&&(0,o.css)(["max-width:","px;max-height:","px;"],t-12,r-12)}));t.StyledContentCard=h},5571:(e,t,r)=>{var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(3838)),i=n(r(6689)),a=r(1348),l=["item"];t.default=function(e){var t=e.item,r=(0,o.default)(e,l);return t?t.customCard?t.customCard:i.default.createElement(a.StyledContentCard,r,i.default.createElement("img",{alt:"image",src:t.imageUrl}),i.default.createElement("div",null,t.name),i.default.createElement("div",null,t.title)):null}},3325:(e,t,r)=>{var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.updateItem=t.calculateNumberOfCardsToShow=void 0;var o=n(r(8779));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.updateItem=function(e,t,r,n){var o=[],i=0;return o=null==e?void 0:e.map((function(e,o){var l=o===t?!e.selected:!(r||n||e.selectAll&&t!==o)&&e.selected;return l&&i++,a(a({},e),{},{selected:l})})),0===i&&e[0].selectAll&&(o[0].selected=!0),o},t.calculateNumberOfCardsToShow=function(e,t,r){var n=Math.floor((e-4)/t);return r>n?n:r}},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 n=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 a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(2594)),i=n(r(6932)),a=n(r(2098)),l=n(r(3206)),d=n(r(5799))},2098:(e,t,r)=>{var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(7518),i=n(r(2594)),a={globalStyles:(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},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"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},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")},1705:e=>{e.exports=require("@webjet/react-icons/common/caret-left")},2616:e=>{e.exports=require("@webjet/react-icons/common/caret-right")},2042:e=>{e.exports=require("polished")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},8096:e=>{e.exports=require("react-slick")},7518:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(4310)).default;e.default=o})(),module.exports=n})();
|