@webjet/react 3.3.7 → 3.4.0
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/anchor-link.js +1 -1
- package/components/autocomplete.js +1 -1
- package/components/banner.js +1 -1
- package/components/button.js +1 -1
- package/components/card.js +1 -1
- package/components/carousel.js +1 -1
- package/components/checkbox-list.js +1 -1
- package/components/checkbox.js +1 -1
- package/components/checkmark.js +1 -1
- package/components/date-picker-input.js +1 -1
- package/components/date-picker.js +1 -1
- package/components/date-range-picker-input.js +1 -1
- package/components/date-range-picker.js +1 -1
- package/components/divider.js +1 -0
- package/components/drawer.js +1 -1
- package/components/flight-card-footer.js +1 -1
- package/components/flight-card-header.js +1 -1
- package/components/flight-card-info.js +1 -1
- package/components/iframe-link.js +1 -1
- package/components/info-modal.js +1 -1
- package/components/label.js +1 -1
- package/components/link.js +1 -1
- package/components/modal.js +1 -1
- package/components/notification.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/pills.js +1 -1
- package/components/program-label.js +1 -1
- package/components/quality-rating-filter.js +1 -1
- package/components/radios.js +1 -1
- package/components/scrollable-content.js +1 -0
- package/components/select.js +1 -1
- package/components/slider.js +1 -1
- package/components/tab.js +1 -1
- package/components/textfield.js +1 -1
- package/components/tooltip-modal.js +1 -1
- package/components/two-direction-sticky-panel.js +1 -1
- package/components/user-review-panel.js +1 -1
- package/components/user-review.js +1 -1
- package/package.json +3 -3
- package/utils/common.js +1 -1
- package/utils/hooks.js +1 -1
- package/utils/scrollbar.js +1 -1
package/components/button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={1431:(e,t,n)=>{var o=n(3751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=o(n(2846)),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 l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(2770)),l=n(3290),c=n(7427),d=n(9292);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u={standard:{color:l.themeV2.color[10],bgColor:l.themeV2.btnStandard,hoverColor:l.themeV2.btnStandardHover,fontWeight:500},action:{color:l.themeV2.color[11],bgColor:l.themeV2.btnAction,hoverColor:l.themeV2.btnActionHover,fontWeight:500},active:{color:l.themeV2.color[11],bgColor:l.themeV2.btnActive,hoverColor:l.themeV2.btnActiveHover,fontWeight:500},selection:{color:l.themeV2.color[11],bgColor:l.themeV2.btnSelection,hoverColor:l.themeV2.btnSelectionHover,fontWeight:500}};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")},g=a.default.button.withConfig({displayName:"Button-v2style__StyledButton",componentId:"sc-1u6xcsj-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:12px;border:0;height:46px;cursor:pointer;border-radius:4px;-webkit-tap-highlight-color:rgba(0,0,0,0);font-size:16px;line-height:1;"," "," "," "," &:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," ",""],l.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{"," font-size:12px;}"],function(e,t){return e&&u[e]&&(0,a.css)(["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,c.isSizeSm)(t)&&(0,a.css)(["height:36px;font-size:14px;padding:8px 16px;"])}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()}));t.StyledButton=g;var v=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=v;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},3031:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6031)),i=o(n(2462)),a=o(n(2015)),l=(o(n(9825)),o(n(184))),c=n(676),d=n(1431),s=n(3465),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,g=e.disabled,v=e.version,b=e.iconLeftAlign,h=e.children,m=(0,i.default)(e,u),y=2===v?d.StyledButton:c.StyledButton,x=2===v?d.StyledText:c.StyledText,w=2===v?d.StyledIcon:c.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:g,$isLoading:t}),t&&a.default.createElement(l.default,{reverse:S}),h&&a.default.createElement(x,{$isLoading:t,variant:o,disabled:g},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:g,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},676:(e,t,n)=>{var o=n(3751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=o(n(2846)),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 l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(2770)),l=n(3290),c=n(7427),d=n(9292);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u={standard:{color:l.theme.color[10],bgColor:l.theme.btnStandard,hoverColor:l.theme.btnStandardHover,fontWeight:400},action:{color:l.theme.color[11],bgColor:l.theme.btnAction,hoverColor:l.theme.btnActionHover,fontWeight:500},active:{color:l.theme.color[11],bgColor:l.theme.btnActive,hoverColor:l.theme.btnActiveHover,fontWeight:500},selection:{color:l.theme.color[11],bgColor:l.theme.btnSelection,hoverColor:l.theme.btnSelectionHover,fontWeight:500}};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")},g=a.default.button.withConfig({displayName:"Buttonstyle__StyledButton",componentId:"sc-1q7jh6y-0"})([""," border:0;cursor:pointer;border-radius:3px;-webkit-tap-highlight-color:rgba(0,0,0,0);gap:9px;height:46px;padding:0 16px;font-size:15px;box-shadow:0 2px 3px 0 rgba(0,0,0,0.4);&&:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," "," "," "," "," ",""],l.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{","}"],function(e,t){return e&&u[e]&&(0,a.css)(["color:",";background:",";font-weight:",";&&:hover:enabled,&&:focus:enabled,&&:active:enabled{background:",";}"],u[e].color,t?(n=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",n)):u[e].bgColor,u[e].fontWeight,u[e].hoverColor);var n}(t,n),p(t,n))}),(function(e){var t=e.size;return t&&(0,c.isSizeSm)(t)&&(0,a.css)(["height:40px;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;padding:0 12px;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])}));t.StyledButton=g;var v=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=v;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},2078:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(2770)).default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:'WebjetIcons';display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],(function(e){var t=e.iconName;return i(t)})),i=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""},a=r;t.default=a},2846:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6031)),i=o(n(2462)),a=o(n(2015)),l=(o(n(9825)),o(n(2078))),c=["name"];t.default=function(e){var t=e.name,n=(0,i.default)(e,c);return a.default.createElement(l.default,(0,r.default)({iconName:t},n))}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=o(n(1267)),i=o(n(492)),a=o(n(9098)),l=o(n(9090)),c=o(n(5050))},9098:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2770),i=o(n(1267)),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},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],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},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],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},9945:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6031)),i=o(n(2462)),a=o(n(2015)),l=(o(n(9825)),n(7846)),c=["reverse"],d=function(e){var t=e.reverse,n=(0,i.default)(e,c);return a.default.createElement(l.StyledSpinner,(0,r.default)({reverse:t,"data-testid":"spinner",role:"spinner"},n))};d.defaultProps={reverse:!1};var s=d;t.default=s},7846:(e,t,n)=>{var o=n(8063);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 l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(r,l,c):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}(n(2770)),i=n(3290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var l=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=l},184:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(9945)).default;t.default=r},3465:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var o=n(4513),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;",""));0===window.scrollY||r<=o?e.style.top="0px":window.scrollY<n?i<0?e.style.top=i+n-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+n-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),n=window.scrollY}),{capture:!0,passive:!0})}};t.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},t.scrollTo=function(e,t){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},7427:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var n=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&n())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&n())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",n=document.cookie.split(";"),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)}},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9292:e=>{e.exports=require("polished")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function n(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={};(()=>{var e=o,t=n(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(n(3031)).default;e.default=r})(),module.exports=o})();
|
|
1
|
+
(()=>{"use strict";var e={1431:(e,t,n)=>{var o=n(3751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=o(n(2846)),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 l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(2770)),l=n(3290),c=n(7427),d=n(9292);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u={standard:{color:l.themeV2.color[10],bgColor:l.themeV2.btnStandard,hoverColor:l.themeV2.btnStandardHover,fontWeight:500},action:{color:l.themeV2.color[11],bgColor:l.themeV2.btnAction,hoverColor:l.themeV2.btnActionHover,fontWeight:500},active:{color:l.themeV2.color[11],bgColor:l.themeV2.btnActive,hoverColor:l.themeV2.btnActiveHover,fontWeight:500},selection:{color:l.themeV2.color[11],bgColor:l.themeV2.btnSelection,hoverColor:l.themeV2.btnSelectionHover,fontWeight:500}};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")},g=a.default.button.withConfig({displayName:"Button-v2style__StyledButton",componentId:"sc-1u6xcsj-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:12px;border:0;height:46px;cursor:pointer;border-radius:4px;-webkit-tap-highlight-color:rgba(0,0,0,0);font-size:16px;line-height:1;"," "," "," "," &:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," ",""],l.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{"," font-size:12px;}"],function(e,t){return e&&u[e]&&(0,a.css)(["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,c.isSizeSm)(t)&&(0,a.css)(["height:36px;font-size:14px;padding:8px 16px;"])}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()}));t.StyledButton=g;var v=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=v;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},3031:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6031)),i=o(n(2462)),a=o(n(2015)),l=(o(n(9825)),o(n(184))),c=n(676),d=n(1431),s=n(3465),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,g=e.disabled,v=e.version,b=e.iconLeftAlign,h=e.children,m=(0,i.default)(e,u),y=2===v?d.StyledButton:c.StyledButton,x=2===v?d.StyledText:c.StyledText,w=2===v?d.StyledIcon:c.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:g,$isLoading:t}),t&&a.default.createElement(l.default,{reverse:S}),h&&a.default.createElement(x,{$isLoading:t,variant:o,disabled:g},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:g,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},676:(e,t,n)=>{var o=n(3751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledIcon=t.StyledButton=t.CONFIG=void 0;var i=o(n(2846)),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 l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(2770)),l=n(3290),c=n(7427),d=n(9292);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u={standard:{color:l.theme.color[10],bgColor:l.theme.btnStandard,hoverColor:l.theme.btnStandardHover,fontWeight:400},action:{color:l.theme.color[11],bgColor:l.theme.btnAction,hoverColor:l.theme.btnActionHover,fontWeight:500},active:{color:l.theme.color[11],bgColor:l.theme.btnActive,hoverColor:l.theme.btnActiveHover,fontWeight:500},selection:{color:l.theme.color[11],bgColor:l.theme.btnSelection,hoverColor:l.theme.btnSelectionHover,fontWeight:500}};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")},g=a.default.button.withConfig({displayName:"Buttonstyle__StyledButton",componentId:"sc-1q7jh6y-0"})([""," border:0;cursor:pointer;border-radius:3px;-webkit-tap-highlight-color:rgba(0,0,0,0);gap:9px;height:46px;padding:0 16px;font-size:15px;box-shadow:0 2px 3px 0 rgba(0,0,0,0.4);&&:focus{box-shadow:0 0 0 4px rgba(135,135,135,0.75);outline:0px;}"," "," "," "," "," ",""],l.mixins.globalStyles,(function(e){var t=e.$variant,n=e.disabled;return t&&(0,a.css)([""," > svg[role='button-icon']{","}"],function(e,t){return e&&u[e]&&(0,a.css)(["color:",";background:",";font-weight:",";&&:hover:enabled,&&:focus:enabled,&&:active:enabled{background:",";}"],u[e].color,t?(n=u[e].bgColor)&&(0,a.css)(["",""],(0,d.mix)(.5,"#fff",n)):u[e].bgColor,u[e].fontWeight,u[e].hoverColor);var n}(t,n),p(t,n))}),(function(e){var t=e.size;return t&&(0,c.isSizeSm)(t)&&(0,a.css)(["height:40px;"])}),(function(e){return e.disabled&&f()}),(function(e){return e.$isLoading&&f()}),(function(e){return e.$icon&&(0,a.css)(["display:inline-flex;align-items:center;justify-content:space-between;padding:0 12px;"])}),(function(e){return e.$iconLeftAlign&&(0,a.css)(["flex-direction:row-reverse;"])}));t.StyledButton=g;var v=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=v;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},2078:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(2770)).default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:'WebjetIcons';display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],(function(e){var t=e.iconName;return i(t)})),i=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""},a=r;t.default=a},2846:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6031)),i=o(n(2462)),a=o(n(2015)),l=(o(n(9825)),o(n(2078))),c=["name"];t.default=function(e){var t=e.name,n=(0,i.default)(e,c);return a.default.createElement(l.default,(0,r.default)({iconName:t},n))}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=o(n(1267)),i=o(n(492)),a=o(n(9098)),l=o(n(9090)),c=o(n(5050))},9098:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2770),i=o(n(1267)),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},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],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},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],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},9945:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6031)),i=o(n(2462)),a=o(n(2015)),l=(o(n(9825)),n(7846)),c=["reverse"],d=function(e){var t=e.reverse,n=(0,i.default)(e,c);return a.default.createElement(l.StyledSpinner,(0,r.default)({reverse:t,"data-testid":"spinner",role:"spinner"},n))};d.defaultProps={reverse:!1};var s=d;t.default=s},7846:(e,t,n)=>{var o=n(8063);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 l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(r,l,c):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}(n(2770)),i=n(3290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var l=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=l},184:(e,t,n)=>{var o=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(9945)).default;t.default=r},3465:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var o=n(4513),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;",""));0===window.scrollY||r<=o?e.style.top="0px":window.scrollY<n?i<0?e.style.top=i+n-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+n-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),n=window.scrollY}),{capture:!0,passive:!0})}};t.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},t.scrollTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:n,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},7427:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var n=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&n())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&n())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",n=document.cookie.split(";"),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)}},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9292:e=>{e.exports=require("polished")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function n(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={};(()=>{var e=o,t=n(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(n(3031)).default;e.default=r})(),module.exports=o})();
|
package/components/card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={3251:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(2462)),i=n(o(2015)),a=o(1552),d=(n(o(9825)),n(o(3080))),l=["header","centered","headerImage","contentPadding"],c=function(e){var t=e.header,o=e.centered,n=e.headerImage,c=e.contentPadding,u=(0,r.default)(e,l),s=n||{},p=s.url,f=s.height,g=s.label||{},h=g.text,m=g.bgColor;return i.default.createElement(a.StyledCard,u,i.default.createElement(d.default,{condition:!!t},i.default.createElement(a.StyledHeader,{centered:o,"data-testid":"header",role:"header"},t)),i.default.createElement(d.default,{condition:!!p},i.default.createElement(a.StyledHeaderImage,{url:p,height:f,"data-testid":"header-image"},i.default.createElement(d.default,{condition:!!h},i.default.createElement(a.StyledLabel,{text:h,bgColor:m})))),i.default.createElement(a.StyledContent,{centered:o,"data-testid":"content",role:"content",contentPadding:c},e.children))};c.defaultProps={contentPadding:12};var u=c;t.default=u},1552:(e,t,o)=>{var n=o(3751),r=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLabel=t.StyledHeaderImage=t.StyledHeader=t.StyledContent=t.StyledCard=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(n,a,d):n[a]=e[a]}return n.default=e,o&&o.set(e,n),n}(o(2770)),a=o(3290),d=n(o(5447));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}var c=i.default.div.withConfig({displayName:"Cardstyle__StyledCard",componentId:"sc-197xjbh-0"})((function(){return(0,i.css)([""," box-shadow:0 0 0 1px "," inset;border-radius:3px;margin-bottom:",";overflow:hidden;"],a.mixins.globalStyles,a.theme.color[4],a.theme.gutterWidth)}));t.StyledCard=c;var u=i.default.h3.withConfig({displayName:"Cardstyle__StyledHeader",componentId:"sc-197xjbh-1"})((function(){return(0,i.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,i.css)(["text-align:center;"])}))}));t.StyledHeader=u;var s=i.default.div.withConfig({displayName:"Cardstyle__StyledContent",componentId:"sc-197xjbh-2"})((function(){return(0,i.css)(["padding:",";position:relative;",""],(function(e){return e.contentPadding+"px"}),(function(e){return e.centered&&(0,i.css)(["text-align:center;"])}))}));t.StyledContent=s;var p=i.default.div.withConfig({displayName:"Cardstyle__StyledHeaderImage",componentId:"sc-197xjbh-3"})(["",""],(function(e){var t=e.url,o=e.height;return(0,i.css)(["background-image:url(",");height:","px;background-position:center;background-size:cover;position:relative;"],t,o||120)}));t.StyledHeaderImage=p;var f=(0,i.default)(d.default).withConfig({displayName:"Cardstyle__StyledLabel",componentId:"sc-197xjbh-4"})(["position:absolute;top:",";right:",";"],a.theme.gutterWidth,a.theme.gutterWidth);t.StyledLabel=f},9473:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(9825)),i=function(e){var t=e.condition,o=e.children;return!0===t?o:null};i.propTypes={condition:r.default.bool},i.defaultProps={condition:!1};var a=i;t.default=a},3080:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(9473)).default;t.default=r},6637:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(6031)),i=n(o(2462)),a=n(o(2015)),d=(n(o(9825)),o(250)),l=o(3465),c=["text","icon","bgColor"],u=function(e){var t=e.text,o=e.icon,n=e.bgColor,u=(0,i.default)(e,c),s=!!(0,l.isValidIconElement)(o)&&o;return a.default.createElement(d.StyledLabel,(0,r.default)({},u,{"data-testid":"label",bgColor:n}),t,s&&a.default.createElement(s,{fill:"#FFFFFF"}))};u.defaultProps={icon:void 0,bgColor:"#dc140a"};var s=u;t.default=s},250:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLabel=void 0;var r=n(o(2770)),i=o(3290),a=r.default.span.withConfig({displayName:"Labelstyle__StyledLabel",componentId:"sc-19jzmcs-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:4px 8px;gap:8px;height:26px;background:",";font-size:12px;font-weight:500;color:",";line-height:1;"],i.mixins.globalStyles,(function(e){return e.bgColor}),i.themeV2.color[11]);t.StyledLabel=a},5447:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(6637)).default;t.default=r},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,o)=>{var n=o(3751);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 r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=n(o(1267)),i=n(o(492)),a=n(o(9098)),d=n(o(9090)),l=n(o(5050))},9098:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(2770),i=n(o(1267)),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},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],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=n},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],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=n},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var n=o(4513),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,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,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||r<=n?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,r=t-o;return r>=n-1&&r<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}var n={};(()=>{var e=n,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(o(3251)).default;e.default=r})(),module.exports=n})();
|
|
1
|
+
(()=>{"use strict";var e={3251:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(2462)),i=n(o(2015)),a=o(1552),d=(n(o(9825)),n(o(3080))),l=["header","centered","headerImage","contentPadding"],c=function(e){var t=e.header,o=e.centered,n=e.headerImage,c=e.contentPadding,u=(0,r.default)(e,l),s=n||{},p=s.url,f=s.height,g=s.label||{},h=g.text,m=g.bgColor;return i.default.createElement(a.StyledCard,u,i.default.createElement(d.default,{condition:!!t},i.default.createElement(a.StyledHeader,{centered:o,"data-testid":"header",role:"header"},t)),i.default.createElement(d.default,{condition:!!p},i.default.createElement(a.StyledHeaderImage,{url:p,height:f,"data-testid":"header-image"},i.default.createElement(d.default,{condition:!!h},i.default.createElement(a.StyledLabel,{text:h,bgColor:m})))),i.default.createElement(a.StyledContent,{centered:o,"data-testid":"content",role:"content",contentPadding:c},e.children))};c.defaultProps={contentPadding:12};var u=c;t.default=u},1552:(e,t,o)=>{var n=o(3751),r=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLabel=t.StyledHeaderImage=t.StyledHeader=t.StyledContent=t.StyledCard=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(n,a,d):n[a]=e[a]}return n.default=e,o&&o.set(e,n),n}(o(2770)),a=o(3290),d=n(o(5447));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}var c=i.default.div.withConfig({displayName:"Cardstyle__StyledCard",componentId:"sc-197xjbh-0"})((function(){return(0,i.css)([""," box-shadow:0 0 0 1px "," inset;border-radius:3px;margin-bottom:",";overflow:hidden;"],a.mixins.globalStyles,a.theme.color[4],a.theme.gutterWidth)}));t.StyledCard=c;var u=i.default.h3.withConfig({displayName:"Cardstyle__StyledHeader",componentId:"sc-197xjbh-1"})((function(){return(0,i.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,i.css)(["text-align:center;"])}))}));t.StyledHeader=u;var s=i.default.div.withConfig({displayName:"Cardstyle__StyledContent",componentId:"sc-197xjbh-2"})((function(){return(0,i.css)(["padding:",";position:relative;",""],(function(e){return e.contentPadding+"px"}),(function(e){return e.centered&&(0,i.css)(["text-align:center;"])}))}));t.StyledContent=s;var p=i.default.div.withConfig({displayName:"Cardstyle__StyledHeaderImage",componentId:"sc-197xjbh-3"})(["",""],(function(e){var t=e.url,o=e.height;return(0,i.css)(["background-image:url(",");height:","px;background-position:center;background-size:cover;position:relative;"],t,o||120)}));t.StyledHeaderImage=p;var f=(0,i.default)(d.default).withConfig({displayName:"Cardstyle__StyledLabel",componentId:"sc-197xjbh-4"})(["position:absolute;top:",";right:",";"],a.theme.gutterWidth,a.theme.gutterWidth);t.StyledLabel=f},9473:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(9825)),i=function(e){var t=e.condition,o=e.children;return!0===t?o:null};i.propTypes={condition:r.default.bool},i.defaultProps={condition:!1};var a=i;t.default=a},3080:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(9473)).default;t.default=r},6637:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(6031)),i=n(o(2462)),a=n(o(2015)),d=(n(o(9825)),o(250)),l=o(3465),c=["text","icon","bgColor"],u=function(e){var t=e.text,o=e.icon,n=e.bgColor,u=(0,i.default)(e,c),s=!!(0,l.isValidIconElement)(o)&&o;return a.default.createElement(d.StyledLabel,(0,r.default)({},u,{"data-testid":"label",bgColor:n}),t,s&&a.default.createElement(s,{fill:"#FFFFFF"}))};u.defaultProps={icon:void 0,bgColor:"#dc140a"};var s=u;t.default=s},250:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLabel=void 0;var r=n(o(2770)),i=o(3290),a=r.default.span.withConfig({displayName:"Labelstyle__StyledLabel",componentId:"sc-19jzmcs-0"})([""," display:inline-flex;justify-content:center;align-items:center;padding:4px 8px;gap:8px;height:26px;background:",";font-size:12px;font-weight:500;color:",";line-height:1;"],i.mixins.globalStyles,(function(e){return e.bgColor}),i.themeV2.color[11]);t.StyledLabel=a},5447:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(6637)).default;t.default=r},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,o)=>{var n=o(3751);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 r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=n(o(1267)),i=n(o(492)),a=n(o(9098)),d=n(o(9090)),l=n(o(5050))},9098:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(2770),i=n(o(1267)),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},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],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=n},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],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=n},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var n=o(4513),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,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,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||r<=n?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,r=t-o;return r>=n-1&&r<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}var n={};(()=>{var e=n,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(o(3251)).default;e.default=r})(),module.exports=n})();
|
package/components/carousel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={892:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2015)),i=(n(r(9825)),r(6413)),a=function(e){var t=e.title,r=e.description;return o.default.createElement(i.StyledWrapper,null,o.default.createElement(i.StyledTitle,null,t),r)},l=o.default.memo(a);t.default=l},6413:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledTitle=void 0;var o=n(r(2770)),i=r(3290),a=o.default.div.withConfig({displayName:"style__StyledWrapper",componentId:"sc-1q9ht0f-0"})(["color:white;position:absolute;background:#000000;opacity:75%;bottom:12px;font-size:13px;left:12px;right:12px;padding:12px;"]);t.StyledWrapper=a;var l=o.default.h3.withConfig({displayName:"style__StyledTitle",componentId:"sc-1q9ht0f-1"})(["font-size:16px;font-weight:bold;margin-bottom:6px;margin-top:0;color:",";"],i.theme.color[11]);t.StyledTitle=l},5483:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7826)),a=m(r(2015)),l=(n(r(9825)),n(r(9746))),c=n(r(5295)),s=m(r(2508)),u=n(r(2511)),d=n(r(892)),f=r(5960);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={},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}t.default=function(e){var t=e.data;if(!t)return null;var r=(0,a.useState)(!1),n=(0,i.default)(r,2),o=n[0],p=n[1],m=(0,a.useState)(0),g=(0,i.default)(m,2),h=g[0],y=g[1],v=a.default.useRef(),w=a.default.useRef(),b=function(){var e=5*parseInt(h/5);h%5==0&&(e=5*parseInt((h-1)/5)),w.current.slickGoTo(e)},x=function(){if(h>=0&&h<=3)w.current.slickGoTo(0);else{var e=5*parseInt((h+1)/5);w.current.slickGoTo(e)}},k=function(e){var t=e.direction;if(!o){var r=w.current.innerSlider.state.slideCount,n=0===h,i=h===r-1;"left"===t?function(){if(n)return y(r-1),v.current.slickGoTo(r-1),void w.current.slickGoTo(r-5);b(),v.current.slickPrev()}():"right"===t&&function(){if(i)return y(0),v.current.slickGoTo(0),void w.current.slickGoTo(0);x(),v.current.slickNext()}()}},S=(0,a.useMemo)((function(){return t.map((function(e){return{thumbUrl:(e||{}).thumbUrl}}))}),[t]);return a.default.createElement(f.StyledWrapper,null,a.default.createElement(l.default,{ref:v,infinite:!1,focusOnSelect:!1,swipeToSlide:!1,accessibility:!0,slidesToShow:1,slidesToScroll:1,speed:350,initialSlide:0,prevArrow:a.default.createElement(s.default,{direction:"left",icon:a.default.createElement(s.LeftArrow,null),customOnClick:function(){return k({direction:"left"})}}),nextArrow:a.default.createElement(s.default,{direction:"right",icon:a.default.createElement(s.RightArrow,null),customOnClick:function(){return k({direction:"right"})}}),beforeChange:function(e,t){p(!0),y(t)},afterChange:function(){return p(!1)},onSwipe:function(e){var t;"left"===(t=e)?x():"right"===t&&b()}},t&&t.map((function(e,t){var r=e||{},n=r.url,o=r.type,i=r.title,l=r.description;return a.default.createElement(f.StyledItem,{key:"".concat(t).concat(n)},a.default.createElement(u.default,{url:n,type:o}),(i||l)&&a.default.createElement(d.default,{title:i,description:l}))}))),a.default.createElement(c.default,{items:S,carouselRef:v,thumbnailsRef:w,selectedSlide:h,setSelectedSlide:y,initialSlide:0,slidesPerPage:5}))}},5960:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledItem=void 0;var o=n(r(2770)),i=r(3290),a=o.default.div.withConfig({displayName:"Carouselstyle__StyledItem",componentId:"sc-kqu3r8-0"})(["position:relative;background:#646464;height:400px;iframe,img{height:100%;}iframe{border:0;width:100%;}img{max-width:100%;margin:auto;object-fit:cover;}:focus{outline:none;}"]);t.StyledItem=a;var l=o.default.div.withConfig({displayName:"Carouselstyle__StyledWrapper",componentId:"sc-kqu3r8-1"})([""," :hover{.carousel-arrow-container{opacity:0.4;}}.slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent;}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0;}.slick-list:focus{outline:none;}.slick-list.dragging{cursor:pointer;cursor:hand;}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.slick-track{position:relative;top:0;left:0;display:block;margin-left:auto;margin-right:auto;}.slick-track:before,.slick-track:after{display:table;content:'';}.slick-track:after{clear:both;}.slick-loading .slick-track{visibility:hidden;}.slick-slide{display:none;float:left;height:100%;min-height:1px;}[dir='rtl'] .slick-slide{float:right;}.slick-slide img{display:block;}.slick-slide.slick-loading img{display:none;}.slick-slide.dragging img{pointer-events:none;}.slick-initialized .slick-slide{display:block;}.slick-loading .slick-slide{visibility:hidden;}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent;}.slick-arrow.slick-hidden{display:none;}"],i.mixins.globalStyles);t.StyledWrapper=l},2511:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2015)),i=(n(r(9825)),function(e){var t=e.url,r=e.type;return"photo"===r||null==r?o.default.createElement("img",{src:t}):"video"===r||"tour"===r?o.default.createElement("iframe",{src:t}):null}),a=o.default.memo(i);t.default=a},2508:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RightArrow=t.LeftArrow=void 0;var o=n(r(2015)),i=(n(r(9825)),r(349)),a=function(e){var t=e.icon,r=e.direction,n=e.isThumbnails,a=e.onClick,l=e.customOnClick,c=function(){l&&"function"==typeof l?l():a()};return n?o.default.createElement(i.StyledThumbnailsContainer,{direction:r,onClick:c},t&&t):o.default.createElement(i.StyledContainer,{direction:r,onClick:c},t&&t)};a.defaultProps={isThumbnails:!1,icon:null,direction:"left",onClick:function(){},customOnClick:null};var l=o.default.memo((function(){return o.default.createElement(i.StyledIcon,{name:"wj-arrow-previous"})}));t.LeftArrow=l;var c=o.default.memo((function(){return o.default.createElement(i.StyledIcon,{name:"wj-arrow-next"})}));t.RightArrow=c;var s=a;t.default=s},349:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledThumbnailsContainer=t.StyledIcon=t.StyledContainer=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},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(2770)),a=n(r(2846));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}var c=i.default.div.attrs({className:"carousel-arrow-container"}).withConfig({displayName:"style__StyledContainer",componentId:"sc-234996-0"})(["position:absolute;z-index:99999;top:50%;transform:translateY(-50%);height:100px;cursor:pointer;color:#ffffff;width:60px;height:100%;transition:all 0.3s ease-in-out;display:flex;align-items:center;justify-content:",";padding:0 12px;opacity:0;:hover{opacity:0.2!important;}",""],(function(e){return"right"===e.direction&&"flex-end"}),(function(e){var t=e.direction;return t&&(0,i.css)(["",":0;"],t)}));t.StyledContainer=c;var s=i.default.div.withConfig({displayName:"style__StyledThumbnailsContainer",componentId:"sc-234996-1"})(["height:100px;box-shadow:0 2px 2px rgba(0,0,0,0.4);background:#CCCCCC;display:flex;align-items:center;justify-content:center;cursor:pointer;:hover{background:#adadad;color:#141414;}border-radius:14px 0 0 14px;margin-right:7px;",""],(function(e){var t=e.direction;return t&&"right"===t&&(0,i.css)(["border-radius:0 14px 14px 0;margin-left:8px;margin-right:14px;"])}));t.StyledThumbnailsContainer=s;var u=(0,i.default)(a.default).withConfig({displayName:"style__StyledIcon",componentId:"sc-234996-2"})(["font-size:32px;width:50px;display:flex;align-items:center;justify-content:center;"]);t.StyledIcon=u},5295:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7826)),a=d(r(2015)),l=(n(r(9825)),n(r(9746))),c=d(r(2508)),s=r(3186);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=u(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}t.default=function(e){var t=e.items,r=e.carouselRef,n=e.thumbnailsRef,o=e.selectedSlide,u=e.slidesPerPage,d=(0,a.useState)(!1),f=(0,i.default)(d,2),p=f[0],m=f[1],g=function(e){var t=e.direction;if(!p){var r=n.current.innerSlider.state,o=r.currentSlide,i=r.slideCount,a=i-o<=5;"left"===t?0===o?n.current.slickGoTo(i-5):n.current.slickPrev():"right"===t&&(a&&n.current.slickGoTo(0),n.current.slickNext())}};return a.default.createElement(s.StyledWrapper,null,a.default.createElement(l.default,{className:"thumbnails",ref:n,infinite:!1,focusOnSelect:!1,swipeToSlide:!1,accessibility:!0,speed:100,slidesToShow:u,slidesToScroll:u,prevArrow:a.default.createElement(c.default,{direction:"left",icon:a.default.createElement(c.LeftArrow,null),isThumbnails:!0,customOnClick:function(){return g({direction:"left"})}}),nextArrow:a.default.createElement(c.default,{direction:"right",icon:a.default.createElement(c.RightArrow,null),isThumbnails:!0,customOnClick:function(){return g({direction:"right"})}}),beforeChange:function(){return m(!0)},afterChange:function(){return m(!1)}},t.map((function(e,t){var n=(e||{}).thumbUrl,i=o===t;return a.default.createElement(s.StyledImage,{isCurrent:i,key:"".concat(t).concat(n),src:n,alt:"flight",onClick:function(){return r.current.slickGoTo(t)}})}))))}},3186:(e,t,r)=>{var n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledImage=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}(r(2770)),i=r(3465);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}var l=o.default.div.withConfig({displayName:"style__StyledWrapper",componentId:"sc-1a52isz-0"})(["margin-top:12px;.slick-slider{margin:auto;width:688px;display:flex!important;flex-direction:row;align-items:center;justify-content:center;.slick-list{width:100%;.slick-track{display:flex;align-items:center;justify-content:center;.slick-slide{width:100px!important;height:100px!important;margin:6px;}}}}@media only screen and (max-width:","px){.slick-slider{display:none!important;}}"],i.BREAKPOINTS.MOBILE);t.StyledWrapper=l;var c=o.default.img.withConfig({displayName:"style__StyledImage",componentId:"sc-1a52isz-1"})(["object-fit:cover;width:100%;height:100%;opacity:0.5;cursor:pointer;:hover{opacity:1;}",""],(function(e){return e.isCurrent&&(0,o.css)(["box-shadow:0 0 0 3px #ff8c00;opacity:1;"])}));t.StyledImage=c},2078:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2770)).default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:'WebjetIcons';display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],(function(e){var t=e.iconName;return i(t)})),i=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""},a=o;t.default=a},2846:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),n(r(2078))),c=["name"];t.default=function(e){var t=e.name,r=(0,i.default)(e,c);return a.default.createElement(l.default,(0,o.default)({iconName:t},r))}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(1267)),i=n(r(492)),a=n(r(9098)),l=n(r(9090)),c=n(r(5050))},9098:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(2770),i=n(r(1267)),a={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},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},3465:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var n=r(4513),o={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;",""));0===window.scrollY||o<=n?e.style.top="0px":window.scrollY<r?i<0?e.style.top=i+r-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+r-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),r=window.scrollY}),{capture:!0,passive:!0})}};t.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},t.scrollTo=function(e,t){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var r=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},t.setCookieStorage=function(e,t,r){var n=window.location.hostname,o="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(r||86400)}},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},9746:e=>{e.exports=require("react-slick")},2770:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(5483)).default;e.default=o})(),module.exports=n})();
|
|
1
|
+
(()=>{"use strict";var e={892:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2015)),i=(n(r(9825)),r(6413)),a=function(e){var t=e.title,r=e.description;return o.default.createElement(i.StyledWrapper,null,o.default.createElement(i.StyledTitle,null,t),r)},l=o.default.memo(a);t.default=l},6413:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledTitle=void 0;var o=n(r(2770)),i=r(3290),a=o.default.div.withConfig({displayName:"style__StyledWrapper",componentId:"sc-1q9ht0f-0"})(["color:white;position:absolute;background:#000000;opacity:75%;bottom:12px;font-size:13px;left:12px;right:12px;padding:12px;"]);t.StyledWrapper=a;var l=o.default.h3.withConfig({displayName:"style__StyledTitle",componentId:"sc-1q9ht0f-1"})(["font-size:16px;font-weight:bold;margin-bottom:6px;margin-top:0;color:",";"],i.theme.color[11]);t.StyledTitle=l},5483:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7826)),a=m(r(2015)),l=(n(r(9825)),n(r(9746))),c=n(r(5295)),s=m(r(2508)),d=n(r(2511)),u=n(r(892)),f=r(5960);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={},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}t.default=function(e){var t=e.data;if(!t)return null;var r=(0,a.useState)(!1),n=(0,i.default)(r,2),o=n[0],p=n[1],m=(0,a.useState)(0),g=(0,i.default)(m,2),h=g[0],y=g[1],v=a.default.useRef(),w=a.default.useRef(),b=function(){var e=5*parseInt(h/5);h%5==0&&(e=5*parseInt((h-1)/5)),w.current.slickGoTo(e)},x=function(){if(h>=0&&h<=3)w.current.slickGoTo(0);else{var e=5*parseInt((h+1)/5);w.current.slickGoTo(e)}},k=function(e){var t=e.direction;if(!o){var r=w.current.innerSlider.state.slideCount,n=0===h,i=h===r-1;"left"===t?function(){if(n)return y(r-1),v.current.slickGoTo(r-1),void w.current.slickGoTo(r-5);b(),v.current.slickPrev()}():"right"===t&&function(){if(i)return y(0),v.current.slickGoTo(0),void w.current.slickGoTo(0);x(),v.current.slickNext()}()}},S=(0,a.useMemo)((function(){return t.map((function(e){return{thumbUrl:(e||{}).thumbUrl}}))}),[t]);return a.default.createElement(f.StyledWrapper,null,a.default.createElement(l.default,{ref:v,infinite:!1,focusOnSelect:!1,swipeToSlide:!1,accessibility:!0,slidesToShow:1,slidesToScroll:1,speed:350,initialSlide:0,prevArrow:a.default.createElement(s.default,{direction:"left",icon:a.default.createElement(s.LeftArrow,null),customOnClick:function(){return k({direction:"left"})}}),nextArrow:a.default.createElement(s.default,{direction:"right",icon:a.default.createElement(s.RightArrow,null),customOnClick:function(){return k({direction:"right"})}}),beforeChange:function(e,t){p(!0),y(t)},afterChange:function(){return p(!1)},onSwipe:function(e){var t;"left"===(t=e)?x():"right"===t&&b()}},t&&t.map((function(e,t){var r=e||{},n=r.url,o=r.type,i=r.title,l=r.description;return a.default.createElement(f.StyledItem,{key:"".concat(t).concat(n)},a.default.createElement(d.default,{url:n,type:o}),(i||l)&&a.default.createElement(u.default,{title:i,description:l}))}))),a.default.createElement(c.default,{items:S,carouselRef:v,thumbnailsRef:w,selectedSlide:h,setSelectedSlide:y,initialSlide:0,slidesPerPage:5}))}},5960:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledItem=void 0;var o=n(r(2770)),i=r(3290),a=o.default.div.withConfig({displayName:"Carouselstyle__StyledItem",componentId:"sc-kqu3r8-0"})(["position:relative;background:#646464;height:400px;iframe,img{height:100%;}iframe{border:0;width:100%;}img{max-width:100%;margin:auto;object-fit:cover;}:focus{outline:none;}"]);t.StyledItem=a;var l=o.default.div.withConfig({displayName:"Carouselstyle__StyledWrapper",componentId:"sc-kqu3r8-1"})([""," :hover{.carousel-arrow-container{opacity:0.4;}}.slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent;}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0;}.slick-list:focus{outline:none;}.slick-list.dragging{cursor:pointer;cursor:hand;}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.slick-track{position:relative;top:0;left:0;display:block;margin-left:auto;margin-right:auto;}.slick-track:before,.slick-track:after{display:table;content:'';}.slick-track:after{clear:both;}.slick-loading .slick-track{visibility:hidden;}.slick-slide{display:none;float:left;height:100%;min-height:1px;}[dir='rtl'] .slick-slide{float:right;}.slick-slide img{display:block;}.slick-slide.slick-loading img{display:none;}.slick-slide.dragging img{pointer-events:none;}.slick-initialized .slick-slide{display:block;}.slick-loading .slick-slide{visibility:hidden;}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent;}.slick-arrow.slick-hidden{display:none;}"],i.mixins.globalStyles);t.StyledWrapper=l},2511:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2015)),i=(n(r(9825)),function(e){var t=e.url,r=e.type;return"photo"===r||null==r?o.default.createElement("img",{src:t}):"video"===r||"tour"===r?o.default.createElement("iframe",{src:t}):null}),a=o.default.memo(i);t.default=a},2508:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RightArrow=t.LeftArrow=void 0;var o=n(r(2015)),i=(n(r(9825)),r(349)),a=function(e){var t=e.icon,r=e.direction,n=e.isThumbnails,a=e.onClick,l=e.customOnClick,c=function(){l&&"function"==typeof l?l():a()};return n?o.default.createElement(i.StyledThumbnailsContainer,{direction:r,onClick:c},t&&t):o.default.createElement(i.StyledContainer,{direction:r,onClick:c},t&&t)};a.defaultProps={isThumbnails:!1,icon:null,direction:"left",onClick:function(){},customOnClick:null};var l=o.default.memo((function(){return o.default.createElement(i.StyledIcon,{name:"wj-arrow-previous"})}));t.LeftArrow=l;var c=o.default.memo((function(){return o.default.createElement(i.StyledIcon,{name:"wj-arrow-next"})}));t.RightArrow=c;var s=a;t.default=s},349:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledThumbnailsContainer=t.StyledIcon=t.StyledContainer=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},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(2770)),a=n(r(2846));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}var c=i.default.div.attrs({className:"carousel-arrow-container"}).withConfig({displayName:"style__StyledContainer",componentId:"sc-234996-0"})(["position:absolute;z-index:99999;top:50%;transform:translateY(-50%);height:100px;cursor:pointer;color:#ffffff;width:60px;height:100%;transition:all 0.3s ease-in-out;display:flex;align-items:center;justify-content:",";padding:0 12px;opacity:0;:hover{opacity:0.2!important;}",""],(function(e){return"right"===e.direction&&"flex-end"}),(function(e){var t=e.direction;return t&&(0,i.css)(["",":0;"],t)}));t.StyledContainer=c;var s=i.default.div.withConfig({displayName:"style__StyledThumbnailsContainer",componentId:"sc-234996-1"})(["height:100px;box-shadow:0 2px 2px rgba(0,0,0,0.4);background:#CCCCCC;display:flex;align-items:center;justify-content:center;cursor:pointer;:hover{background:#adadad;color:#141414;}border-radius:14px 0 0 14px;margin-right:7px;",""],(function(e){var t=e.direction;return t&&"right"===t&&(0,i.css)(["border-radius:0 14px 14px 0;margin-left:8px;margin-right:14px;"])}));t.StyledThumbnailsContainer=s;var d=(0,i.default)(a.default).withConfig({displayName:"style__StyledIcon",componentId:"sc-234996-2"})(["font-size:32px;width:50px;display:flex;align-items:center;justify-content:center;"]);t.StyledIcon=d},5295:(e,t,r)=>{var n=r(3751),o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7826)),a=u(r(2015)),l=(n(r(9825)),n(r(9746))),c=u(r(2508)),s=r(3186);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={},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}t.default=function(e){var t=e.items,r=e.carouselRef,n=e.thumbnailsRef,o=e.selectedSlide,d=e.slidesPerPage,u=(0,a.useState)(!1),f=(0,i.default)(u,2),p=f[0],m=f[1],g=function(e){var t=e.direction;if(!p){var r=n.current.innerSlider.state,o=r.currentSlide,i=r.slideCount,a=i-o<=5;"left"===t?0===o?n.current.slickGoTo(i-5):n.current.slickPrev():"right"===t&&(a&&n.current.slickGoTo(0),n.current.slickNext())}};return a.default.createElement(s.StyledWrapper,null,a.default.createElement(l.default,{className:"thumbnails",ref:n,infinite:!1,focusOnSelect:!1,swipeToSlide:!1,accessibility:!0,speed:100,slidesToShow:d,slidesToScroll:d,prevArrow:a.default.createElement(c.default,{direction:"left",icon:a.default.createElement(c.LeftArrow,null),isThumbnails:!0,customOnClick:function(){return g({direction:"left"})}}),nextArrow:a.default.createElement(c.default,{direction:"right",icon:a.default.createElement(c.RightArrow,null),isThumbnails:!0,customOnClick:function(){return g({direction:"right"})}}),beforeChange:function(){return m(!0)},afterChange:function(){return m(!1)}},t.map((function(e,t){var n=(e||{}).thumbUrl,i=o===t;return a.default.createElement(s.StyledImage,{isCurrent:i,key:"".concat(t).concat(n),src:n,alt:"flight",onClick:function(){return r.current.slickGoTo(t)}})}))))}},3186:(e,t,r)=>{var n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledWrapper=t.StyledImage=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}(r(2770)),i=r(3465);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}var l=o.default.div.withConfig({displayName:"style__StyledWrapper",componentId:"sc-1a52isz-0"})(["margin-top:12px;.slick-slider{margin:auto;width:688px;display:flex!important;flex-direction:row;align-items:center;justify-content:center;.slick-list{width:100%;.slick-track{display:flex;align-items:center;justify-content:center;.slick-slide{width:100px!important;height:100px!important;margin:6px;}}}}@media only screen and (max-width:","px){.slick-slider{display:none!important;}}"],i.BREAKPOINTS.MOBILE);t.StyledWrapper=l;var c=o.default.img.withConfig({displayName:"style__StyledImage",componentId:"sc-1a52isz-1"})(["object-fit:cover;width:100%;height:100%;opacity:0.5;cursor:pointer;:hover{opacity:1;}",""],(function(e){return e.isCurrent&&(0,o.css)(["box-shadow:0 0 0 3px #ff8c00;opacity:1;"])}));t.StyledImage=c},2078:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2770)).default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:'WebjetIcons';display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],(function(e){var t=e.iconName;return i(t)})),i=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""},a=o;t.default=a},2846:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6031)),i=n(r(2462)),a=n(r(2015)),l=(n(r(9825)),n(r(2078))),c=["name"];t.default=function(e){var t=e.name,r=(0,i.default)(e,c);return a.default.createElement(l.default,(0,o.default)({iconName:t},r))}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(1267)),i=n(r(492)),a=n(r(9098)),l=n(r(9090)),c=n(r(5050))},9098:(e,t,r)=>{var n=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(2770),i=n(r(1267)),a={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},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},3465:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var n=r(4513),o={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;",""));0===window.scrollY||o<=n?e.style.top="0px":window.scrollY<r?i<0?e.style.top=i+r-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+r-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),r=window.scrollY}),{capture:!0,passive:!0})}};t.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},t.scrollTo=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:r,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var r=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},t.setCookieStorage=function(e,t,r){var n=window.location.hostname,o="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(r||86400)}},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},9746:e=>{e.exports=require("react-slick")},2770:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(5483)).default;e.default=o})(),module.exports=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={5284:(e,t,r)=>{var o=r(3751),n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(1116)),a=o(r(505)),c=o(r(7826)),l=o(r(2462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(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(2015)),u=(o(r(9825)),r(8531)),s=["data","onChange","onSelectAllChange","showSelectAll","checkboxRightAlign"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function f(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}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=function(e){var t=e.data,r=e.onChange,o=e.onSelectAllChange,n=e.showSelectAll,i=e.checkboxRightAlign,p=(0,l.default)(e,s),f=(0,d.useState)(t),g=(0,c.default)(f,2),h=g[0],m=g[1],v="Select All",y=h.every((function(e){return!!e.disabled||e.checked})),x=function(e){var t=(0,a.default)(h);if(e.target.value!==v){var n=h.findIndex((function(t){return t.label===e.target.value}));t[n]=b(b({},t[n]),{},{checked:!h[n].checked})}else t.forEach((function(r,o){!r.disabled&&(t[o]=b(b({},r),{},{checked:e.target.checked}))})),o&&o(e.target.checked);m(t),r&&r(t,e)};return(0,d.useEffect)((function(){return m(t)}),[t]),d.default.createElement(u.Wrapper,p,n&&d.default.createElement(u.CheckboxItem,{checked:y,value:v,onChange:x,checkboxRightAlign:i},v),null==h?void 0:h.map((function(e,t){var r=e.label,o=e.customLabel,n=e.labelDescription,a=e.checked,c=e.disabled;return d.default.createElement(u.CheckboxItem,{checked:a,onChange:x,value:r,disabled:c,key:t,checkboxRightAlign:i,description:n},null!=o?o:r,n&&d.default.createElement(u.ItemDescription,{checkboxRightAlign:i},n))})))};g.defaultProps={showSelectAll:!1,checkboxRightAlign:!1};var h=g;t.default=h},8531:(e,t,r)=>{var o=r(3751),n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=t.ItemDescription=t.CheckboxItem=void 0;var i=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(2770)),a=r(3290),c=o(r(350));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=i.default.div.withConfig({displayName:"CheckboxListstyle__Wrapper",componentId:"sc-1yj30i3-0"})(["display:flex;flex-direction:column;width:100%;label:last-child{padding-bottom:0;}"]);t.Wrapper=d;var u=(0,i.default)(c.default).withConfig({displayName:"CheckboxListstyle__CheckboxItem",componentId:"sc-1yj30i3-1"})(["padding-bottom:",";>span{font-size:14px;width:100%;padding-right:0;}"," ",""],a.theme.gutterWidth,(function(e){return"Select All"===e.value&&(0,i.css)(["font-weight:bold;"])}),(function(e){return e.checkboxRightAlign&&(0,i.css)([">span{padding-left:0;&:before{right:0;left:unset;}>svg{right:2px;left:unset;}}"])}));t.CheckboxItem=u;var s=i.default.span.withConfig({displayName:"CheckboxListstyle__ItemDescription",componentId:"sc-1yj30i3-2"})(["display:inline-block;float:right;font-size:12px;",""],(function(e){return e.checkboxRightAlign&&(0,i.css)(["margin-right:34px;"])}));t.ItemDescription=s},3873:(e,t,r)=>{var o=r(3751),n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(6031)),a=o(r(7826)),c=o(r(2462)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=g(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(2015)),d=r(4468),u=(o(r(9825)),o(r(8845))),s=r(2862),p=r(7236),f=r(3465),b=["className","checked","onChange","children","name","value","disabled","defaultChecked","description"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}var h=function(e){var t=e.className,r=e.checked,o=e.onChange,n=e.children,g=e.name,h=e.value,m=e.disabled,v=e.defaultChecked,y=e.description,x=(0,c.default)(e,b),w=(0,l.useState)(Boolean(v||r)),k=(0,a.default)(w,2),C=k[0],O=k[1],F="checkbox",E={component:F,label:"".concat(h||g),checked:C,description:(0,l.isValidElement)(y)?(0,f.removeHtmlTags)((0,d.renderToString)(y)):y};return l.default.createElement(s.Wrapper,(0,i.default)({className:t},(0,p.gaAttributes)(E)),l.default.createElement(s.Input,(0,i.default)({"data-testid":F,role:F,type:F,name:g,defaultChecked:v,checked:r,disabled:m,onChange:function(e){O(!C),o&&o(e)},value:h},x)),n&&l.default.createElement(s.Label,{"data-testid":"checkbox-label",role:"checkbox-label"},l.default.createElement(u.default,null),n))};h.defaultProps={className:"wj-checkbox",children:null};var m=h;t.default=m},2862:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=t.Label=t.Input=void 0;var n=o(r(2770)),i=r(3290),a=i.theme.color[8],c=i.theme.color[6],l=i.theme.color[10],d=i.theme.color[11],u=i.theme.color[10],s=i.theme.inputHoverBackground,p=n.default.label.withConfig({displayName:"Checkboxstyle__Wrapper",componentId:"sc-41p20y-0"})(["display:inline-block;-webkit-tap-highlight-color:transparent;cursor:pointer;"]);t.Wrapper=p;var f=n.default.input.withConfig({displayName:"Checkboxstyle__Input",componentId:"sc-41p20y-1"})([""," opacity:0;position:absolute;"],i.mixins.globalStyles);t.Input=f;var b=n.default.span.withConfig({displayName:"Checkboxstyle__Label",componentId:"sc-41p20y-2"})([""," padding:0 "," 0 32px;color:",";font-size:14px;position:relative;display:inline-block;line-height:20px;&:before{display:inline-block;pointer-events:none;box-sizing:border-box;content:'';width:20px;height:20px;background:",";border:1px solid ",";border-radius:",";position:absolute;left:0;top:0;}svg{display:none;position:absolute;left:2px;top:2px;font-size:16px;}input:enabled + &:active{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:focus + &:before{background:",";box-shadow:0 0 0 4px rgba(135,135,135,0.75);transition:box-shadow 0.2s ease-in-out;}input:checked + &{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:disabled + &{opacity:0.5;cursor:not-allowed;&:before{opacity:0.4;}}&:hover:before{background:",";}input:checked + &:hover:before{background:",";}input:disabled + &:hover:before{background:",";}input:disabled:checked + &:hover:before{background:",";}"],i.mixins.globalStyles,i.theme.gutterWidth,i.theme.color[10],d,u,i.theme.borderRadius,i.theme.color[5],i.theme.color[8],i.theme.color[11],s,a,c,i.theme.color[11],s,l,d,a);t.Label=b},350:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}});var n=o(r(3873))},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,r)=>{var o=r(3751);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 n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=o(r(1267)),i=o(r(492)),a=o(r(9098)),c=o(r(9090)),l=o(r(5050))},9098:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2770),i=o(r(1267)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var 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},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],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},3465:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var o=r(4513),n={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,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,o.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,o=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){o=window.innerHeight,n=e.offsetHeight})),document.addEventListener("scroll",(function(){n=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||n<=o?e.style.top="0px":window.scrollY<r?i<0?e.style.top=i+r-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+r-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),r=window.scrollY}),{capture:!0,passive:!0})}};t.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,o=e.clientHeight,n=t-r;return n>=o-1&&n<=o+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,r=e.clientHeight;return!(t>=r-1&&t<=r+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},7236:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var n=o(r(1116)),i=o(r(7826));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(c(e,t))};var c=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)}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var r=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",r=document.cookie.split(";"),o=0;o<r.length;o++){for(var n=r[o];" "===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,r){var o=window.location.hostname,n="localhost"===o?o:o.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(r||86400)}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},505:e=>{e.exports=require("@babel/runtime/helpers/toConsumableArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},8845:e=>{e.exports=require("@webjet/react-icons/check")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},4468:e=>{e.exports=require("react-dom/server")},2770: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(3751);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}});var n=t(r(5284))})(),module.exports=o})();
|
|
1
|
+
(()=>{"use strict";var e={5284:(e,t,r)=>{var o=r(3751),n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(1116)),a=o(r(505)),c=o(r(7826)),l=o(r(2462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(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(2015)),u=(o(r(9825)),r(8531)),s=["data","onChange","onSelectAllChange","showSelectAll","checkboxRightAlign"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function f(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}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=function(e){var t=e.data,r=e.onChange,o=e.onSelectAllChange,n=e.showSelectAll,i=e.checkboxRightAlign,p=(0,l.default)(e,s),f=(0,d.useState)(t),g=(0,c.default)(f,2),h=g[0],m=g[1],v="Select All",y=h.every((function(e){return!!e.disabled||e.checked})),x=function(e){var t=(0,a.default)(h);if(e.target.value!==v){var n=h.findIndex((function(t){return t.label===e.target.value}));t[n]=b(b({},t[n]),{},{checked:!h[n].checked})}else t.forEach((function(r,o){!r.disabled&&(t[o]=b(b({},r),{},{checked:e.target.checked}))})),o&&o(e.target.checked);m(t),r&&r(t,e)};return(0,d.useEffect)((function(){return m(t)}),[t]),d.default.createElement(u.Wrapper,p,n&&d.default.createElement(u.CheckboxItem,{checked:y,value:v,onChange:x,checkboxRightAlign:i},v),null==h?void 0:h.map((function(e,t){var r=e.label,o=e.customLabel,n=e.labelDescription,a=e.checked,c=e.disabled;return d.default.createElement(u.CheckboxItem,{checked:a,onChange:x,value:r,disabled:c,key:t,checkboxRightAlign:i,description:n},null!=o?o:r,n&&d.default.createElement(u.ItemDescription,{checkboxRightAlign:i},n))})))};g.defaultProps={showSelectAll:!1,checkboxRightAlign:!1};var h=g;t.default=h},8531:(e,t,r)=>{var o=r(3751),n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=t.ItemDescription=t.CheckboxItem=void 0;var i=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(2770)),a=r(3290),c=o(r(350));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=i.default.div.withConfig({displayName:"CheckboxListstyle__Wrapper",componentId:"sc-1yj30i3-0"})(["display:flex;flex-direction:column;width:100%;label:last-child{padding-bottom:0;}"]);t.Wrapper=d;var u=(0,i.default)(c.default).withConfig({displayName:"CheckboxListstyle__CheckboxItem",componentId:"sc-1yj30i3-1"})(["padding-bottom:",";>span{font-size:14px;width:100%;padding-right:0;}"," ",""],a.theme.gutterWidth,(function(e){return"Select All"===e.value&&(0,i.css)(["font-weight:bold;"])}),(function(e){return e.checkboxRightAlign&&(0,i.css)([">span{padding-left:0;&:before{right:0;left:unset;}>svg{right:2px;left:unset;}}"])}));t.CheckboxItem=u;var s=i.default.span.withConfig({displayName:"CheckboxListstyle__ItemDescription",componentId:"sc-1yj30i3-2"})(["display:inline-block;float:right;font-size:12px;",""],(function(e){return e.checkboxRightAlign&&(0,i.css)(["margin-right:34px;"])}));t.ItemDescription=s},3873:(e,t,r)=>{var o=r(3751),n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(6031)),a=o(r(7826)),c=o(r(2462)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=g(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(2015)),d=r(4468),u=(o(r(9825)),o(r(8845))),s=r(2862),p=r(7236),f=r(3465),b=["className","checked","onChange","children","name","value","disabled","defaultChecked","description"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}var h=function(e){var t=e.className,r=e.checked,o=e.onChange,n=e.children,g=e.name,h=e.value,m=e.disabled,v=e.defaultChecked,y=e.description,x=(0,c.default)(e,b),w=(0,l.useState)(Boolean(v||r)),k=(0,a.default)(w,2),C=k[0],O=k[1],F="checkbox",E={component:F,label:"".concat(h||g),checked:C,description:(0,l.isValidElement)(y)?(0,f.removeHtmlTags)((0,d.renderToString)(y)):y};return l.default.createElement(s.Wrapper,(0,i.default)({className:t},(0,p.gaAttributes)(E)),l.default.createElement(s.Input,(0,i.default)({"data-testid":F,role:F,type:F,name:g,defaultChecked:v,checked:r,disabled:m,onChange:function(e){O(!C),o&&o(e)},value:h},x)),n&&l.default.createElement(s.Label,{"data-testid":"checkbox-label",role:"checkbox-label"},l.default.createElement(u.default,null),n))};h.defaultProps={className:"wj-checkbox",children:null};var m=h;t.default=m},2862:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=t.Label=t.Input=void 0;var n=o(r(2770)),i=r(3290),a=i.theme.color[8],c=i.theme.color[6],l=i.theme.color[10],d=i.theme.color[11],u=i.theme.color[10],s=i.theme.inputHoverBackground,p=n.default.label.withConfig({displayName:"Checkboxstyle__Wrapper",componentId:"sc-41p20y-0"})(["display:inline-block;-webkit-tap-highlight-color:transparent;cursor:pointer;"]);t.Wrapper=p;var f=n.default.input.withConfig({displayName:"Checkboxstyle__Input",componentId:"sc-41p20y-1"})([""," opacity:0;position:absolute;"],i.mixins.globalStyles);t.Input=f;var b=n.default.span.withConfig({displayName:"Checkboxstyle__Label",componentId:"sc-41p20y-2"})([""," padding:0 "," 0 32px;color:",";font-size:14px;position:relative;display:inline-block;line-height:20px;&:before{display:inline-block;pointer-events:none;box-sizing:border-box;content:'';width:20px;height:20px;background:",";border:1px solid ",";border-radius:",";position:absolute;left:0;top:0;}svg{display:none;position:absolute;left:2px;top:2px;font-size:16px;}input:enabled + &:active{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:focus + &:before{background:",";box-shadow:0 0 0 4px rgba(135,135,135,0.75);transition:box-shadow 0.2s ease-in-out;}input:checked + &{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:disabled + &{opacity:0.5;cursor:not-allowed;&:before{opacity:0.4;}}&:hover:before{background:",";}input:checked + &:hover:before{background:",";}input:disabled + &:hover:before{background:",";}input:disabled:checked + &:hover:before{background:",";}"],i.mixins.globalStyles,i.theme.gutterWidth,i.theme.color[10],d,u,i.theme.borderRadius,i.theme.color[5],i.theme.color[8],i.theme.color[11],s,a,c,i.theme.color[11],s,l,d,a);t.Label=b},350:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}});var n=o(r(3873))},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,r)=>{var o=r(3751);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 n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=o(r(1267)),i=o(r(492)),a=o(r(9098)),c=o(r(9090)),l=o(r(5050))},9098:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2770),i=o(r(1267)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var 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},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],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},3465:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var o=r(4513),n={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,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,o.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,o=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){o=window.innerHeight,n=e.offsetHeight})),document.addEventListener("scroll",(function(){n=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||n<=o?e.style.top="0px":window.scrollY<r?i<0?e.style.top=i+r-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+r-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),r=window.scrollY}),{capture:!0,passive:!0})}};t.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,o=e.clientHeight,n=t-r;return n>=o-1&&n<=o+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,r=e.clientHeight;return!(t>=r-1&&t<=r+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:r,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},7236:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var n=o(r(1116)),i=o(r(7826));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(c(e,t))};var c=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)}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var r=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",r=document.cookie.split(";"),o=0;o<r.length;o++){for(var n=r[o];" "===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,r){var o=window.location.hostname,n="localhost"===o?o:o.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(r||86400)}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},505:e=>{e.exports=require("@babel/runtime/helpers/toConsumableArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},8845:e=>{e.exports=require("@webjet/react-icons/check")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},4468:e=>{e.exports=require("react-dom/server")},2770: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(3751);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}});var n=t(r(5284))})(),module.exports=o})();
|
package/components/checkbox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={3873:(e,t,o)=>{var r=o(3751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(6031)),a=r(o(7826)),c=r(o(2462)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var o=g(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 c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(r,a,c):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(2015)),d=o(4468),s=(r(o(9825)),r(o(8845))),u=o(2862),p=o(7236),f=o(3465),b=["className","checked","onChange","children","name","value","disabled","defaultChecked","description"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(g=function(e){return e?o:t})(e)}var h=function(e){var t=e.className,o=e.checked,r=e.onChange,n=e.children,g=e.name,h=e.value,m=e.disabled,v=e.defaultChecked,y=e.description,x=(0,c.default)(e,b),w=(0,l.useState)(Boolean(v||o)),F=(0,a.default)(w,2),k=F[0],E=F[1],B="checkbox",C={component:B,label:"".concat(h||g),checked:k,description:(0,l.isValidElement)(y)?(0,f.removeHtmlTags)((0,d.renderToString)(y)):y};return l.default.createElement(u.Wrapper,(0,i.default)({className:t},(0,p.gaAttributes)(C)),l.default.createElement(u.Input,(0,i.default)({"data-testid":B,role:B,type:B,name:g,defaultChecked:v,checked:o,disabled:m,onChange:function(e){E(!k),r&&r(e)},value:h},x)),n&&l.default.createElement(u.Label,{"data-testid":"checkbox-label",role:"checkbox-label"},l.default.createElement(s.default,null),n))};h.defaultProps={className:"wj-checkbox",children:null};var m=h;t.default=m},2862:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=t.Label=t.Input=void 0;var n=r(o(2770)),i=o(3290),a=i.theme.color[8],c=i.theme.color[6],l=i.theme.color[10],d=i.theme.color[11],s=i.theme.color[10],u=i.theme.inputHoverBackground,p=n.default.label.withConfig({displayName:"Checkboxstyle__Wrapper",componentId:"sc-41p20y-0"})(["display:inline-block;-webkit-tap-highlight-color:transparent;cursor:pointer;"]);t.Wrapper=p;var f=n.default.input.withConfig({displayName:"Checkboxstyle__Input",componentId:"sc-41p20y-1"})([""," opacity:0;position:absolute;"],i.mixins.globalStyles);t.Input=f;var b=n.default.span.withConfig({displayName:"Checkboxstyle__Label",componentId:"sc-41p20y-2"})([""," padding:0 "," 0 32px;color:",";font-size:14px;position:relative;display:inline-block;line-height:20px;&:before{display:inline-block;pointer-events:none;box-sizing:border-box;content:'';width:20px;height:20px;background:",";border:1px solid ",";border-radius:",";position:absolute;left:0;top:0;}svg{display:none;position:absolute;left:2px;top:2px;font-size:16px;}input:enabled + &:active{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:focus + &:before{background:",";box-shadow:0 0 0 4px rgba(135,135,135,0.75);transition:box-shadow 0.2s ease-in-out;}input:checked + &{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:disabled + &{opacity:0.5;cursor:not-allowed;&:before{opacity:0.4;}}&:hover:before{background:",";}input:checked + &:hover:before{background:",";}input:disabled + &:hover:before{background:",";}input:disabled:checked + &:hover:before{background:",";}"],i.mixins.globalStyles,i.theme.gutterWidth,i.theme.color[10],d,s,i.theme.borderRadius,i.theme.color[5],i.theme.color[8],i.theme.color[11],u,a,c,i.theme.color[11],u,l,d,a);t.Label=b},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return 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 n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=r(o(1267)),i=r(o(492)),a=r(o(9098)),c=r(o(9090)),l=r(o(5050))},9098:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(2770),i=r(o(1267)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var r=o(4513),n={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,r.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,r=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,n=e.offsetHeight})),document.addEventListener("scroll",(function(){n=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||n<=r?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,r=e.clientHeight,n=t-o;return n>=r-1&&n<=r+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},7236:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var n=r(o(1116)),i=r(o(7826));function a(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var o=(0,i.default)(e,2),r=o[0],n=o[1];null!=n&&(t["data-ga-".concat(r)]=String(n))})),t},t.pushGAEvent=function(e,t){var o=window.dataLayer;e&&o&&o.push(c(e,t))};var c=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){(0,n.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({event:e},t)}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},t.setCookieStorage=function(e,t,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||86400)}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},8845:e=>{e.exports=require("@webjet/react-icons/check")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},4468:e=>{e.exports=require("react-dom/server")},2770:e=>{e.exports=require("styled-components")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}var r={};(()=>{var e=r,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}});var n=t(o(3873))})(),module.exports=r})();
|
|
1
|
+
(()=>{"use strict";var e={3873:(e,t,o)=>{var r=o(3751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(6031)),a=r(o(7826)),c=r(o(2462)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var o=b(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 c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(r,a,c):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(2015)),d=o(4468),s=(r(o(9825)),r(o(8845))),u=o(2862),p=o(7236),f=o(3465),g=["className","checked","onChange","children","name","value","disabled","defaultChecked","description"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(b=function(e){return e?o:t})(e)}var h=function(e){var t=e.className,o=e.checked,r=e.onChange,n=e.children,b=e.name,h=e.value,m=e.disabled,v=e.defaultChecked,y=e.description,x=(0,c.default)(e,g),w=(0,l.useState)(Boolean(v||o)),F=(0,a.default)(w,2),k=F[0],E=F[1],B="checkbox",C={component:B,label:"".concat(h||b),checked:k,description:(0,l.isValidElement)(y)?(0,f.removeHtmlTags)((0,d.renderToString)(y)):y};return l.default.createElement(u.Wrapper,(0,i.default)({className:t},(0,p.gaAttributes)(C)),l.default.createElement(u.Input,(0,i.default)({"data-testid":B,role:B,type:B,name:b,defaultChecked:v,checked:o,disabled:m,onChange:function(e){E(!k),r&&r(e)},value:h},x)),n&&l.default.createElement(u.Label,{"data-testid":"checkbox-label",role:"checkbox-label"},l.default.createElement(s.default,null),n))};h.defaultProps={className:"wj-checkbox",children:null};var m=h;t.default=m},2862:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=t.Label=t.Input=void 0;var n=r(o(2770)),i=o(3290),a=i.theme.color[8],c=i.theme.color[6],l=i.theme.color[10],d=i.theme.color[11],s=i.theme.color[10],u=i.theme.inputHoverBackground,p=n.default.label.withConfig({displayName:"Checkboxstyle__Wrapper",componentId:"sc-41p20y-0"})(["display:inline-block;-webkit-tap-highlight-color:transparent;cursor:pointer;"]);t.Wrapper=p;var f=n.default.input.withConfig({displayName:"Checkboxstyle__Input",componentId:"sc-41p20y-1"})([""," opacity:0;position:absolute;"],i.mixins.globalStyles);t.Input=f;var g=n.default.span.withConfig({displayName:"Checkboxstyle__Label",componentId:"sc-41p20y-2"})([""," padding:0 "," 0 32px;color:",";font-size:14px;position:relative;display:inline-block;line-height:20px;&:before{display:inline-block;pointer-events:none;box-sizing:border-box;content:'';width:20px;height:20px;background:",";border:1px solid ",";border-radius:",";position:absolute;left:0;top:0;}svg{display:none;position:absolute;left:2px;top:2px;font-size:16px;}input:enabled + &:active{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:focus + &:before{background:",";box-shadow:0 0 0 4px rgba(135,135,135,0.75);transition:box-shadow 0.2s ease-in-out;}input:checked + &{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:disabled + &{opacity:0.5;cursor:not-allowed;&:before{opacity:0.4;}}&:hover:before{background:",";}input:checked + &:hover:before{background:",";}input:disabled + &:hover:before{background:",";}input:disabled:checked + &:hover:before{background:",";}"],i.mixins.globalStyles,i.theme.gutterWidth,i.theme.color[10],d,s,i.theme.borderRadius,i.theme.color[5],i.theme.color[8],i.theme.color[11],u,a,c,i.theme.color[11],u,l,d,a);t.Label=g},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return 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 n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=r(o(1267)),i=r(o(492)),a=r(o(9098)),c=r(o(9090)),l=r(o(5050))},9098:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(2770),i=r(o(1267)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var r=o(4513),n={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,r.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,r=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,n=e.offsetHeight})),document.addEventListener("scroll",(function(){n=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||n<=r?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,r=e.clientHeight,n=t-o;return n>=r-1&&n<=r+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},7236:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var n=r(o(1116)),i=r(o(7826));function a(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var o=(0,i.default)(e,2),r=o[0],n=o[1];null!=n&&(t["data-ga-".concat(r)]=String(n))})),t},t.pushGAEvent=function(e,t){var o=window.dataLayer;e&&o&&o.push(c(e,t))};var c=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){(0,n.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({event:e},t)}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},t.setCookieStorage=function(e,t,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||86400)}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},8845:e=>{e.exports=require("@webjet/react-icons/check")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},4468:e=>{e.exports=require("react-dom/server")},2770:e=>{e.exports=require("styled-components")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}var r={};(()=>{var e=r,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}});var n=t(o(3873))})(),module.exports=r})();
|