@webjet/react 2.8.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={3729:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var n=o(r(6689)),i=(o(r(580)),r(6202)),a=function(e){var t=e.children;return t&&n.default.createElement(i.ErrorMessage,{"data-testid":"error-message",role:"error-message"},t)};t.ErrorMessageField=a,a.defaultProps={children:null};var l=a;t.default=l},6202:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var n=o(r(7518)),i=r(9193),a=n.default.label.withConfig({displayName:"ErrorMessageFieldstyle__ErrorMessage",componentId:"sc-s1cvz0-0"})(["&&{"," display:block;position:relative;margin-top:10px;background:",";padding:6px 8px 6px 8px;border-radius:",";font-size:14px;color:",";line-height:130%;text-align:left;font-weight:normal;box-sizing:border-box;&:before{width:0;top:-8px;z-index:1;position:absolute;content:'';height:0;left:0;right:0;text-align:center;margin:0 auto;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:10px solid #f2dede;}}"],i.mixins.globalStyles,i.theme.validationColors.inputErrorBackground,i.theme.borderRadius,i.theme.validationColors.inputErrorText);t.ErrorMessage=a},2367:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(3729)).default;t.default=n},5715:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(7518)).default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:'WebjetIcons';display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],(function(e){var t=e.iconName;return i(t)})),i=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""},a=n;t.default=a},5900:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(8213)),i=o(r(3838)),a=o(r(6689)),l=(o(r(580)),o(r(5715))),s=["name"];t.default=function(e){var t=e.name,r=(0,i.default)(e,s);return a.default.createElement(l.default,(0,n.default)({iconName:t},r))}},6361:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(580)),i=function(e){var t=e.condition,r=e.children;return!0===t?r:null};i.propTypes={condition:n.default.bool},i.defaultProps={condition:!1};var a=i;t.default=a},7350:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6361)).default;t.default=n},3206:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},9193:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=o(r(2594)),i=o(r(6932)),a=o(r(2098)),l=o(r(3206)),s=o(r(5799))},2098:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(7518),i=o(r(2594)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2594:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2813:(e,t,r)=>{var o=r(7880),n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(8213)),a=o(r(353)),l=o(r(3838)),s=h(r(6689)),c=(o(r(580)),o(r(2367))),d=h(r(1669)),u=r(9941),p=o(r(7350)),f=["maxLength","type","className","hasClearBtn","value","icon","iconColor","iconBackground","onChange","onClearBtnClick","size","state","errorMessage","disabled","labelText"];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)}function h(e,t){if(!t&&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 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,r&&r.set(e,o),o}var m=s.default.forwardRef((function(e,t){var r=e.maxLength,o=e.type,n=e.className,g=e.hasClearBtn,h=e.value,m=e.icon,b=e.iconColor,v=e.iconBackground,x=e.onChange,w=(e.onClearBtnClick,e.size),y=e.state,E=e.errorMessage,k=e.disabled,C=e.labelText,B=(0,l.default)(e,f),F=(0,s.useState)(h),S=(0,a.default)(F,2),I=S[0],M=S[1];(0,s.useEffect)((function(){return M(h)}),[h]);var j=!!(0,u.isValidIconElement)(m)&&m,D=!!(0,u.isValidIconName)(m)&&m,O=r;r=512;var _=s.default.createRef();return s.default.createElement(s.default.Fragment,null,s.default.createElement(d.InputWrapper,{ref:t,className:n,state:y,disabled:k},s.default.createElement(p.default,{condition:(null==C?void 0:C.length)>0},s.default.createElement(d.StyledLabel,null,C)),s.default.createElement(d.default,(0,i.default)({type:"text",ref:_,icon:j||D,value:I,onChange:function(e){var t=e.target.value;if("number"===o&&!/^\d*$/.test(t)){var r=t.replace(/\s/g,"").replace(/\D/g,",").split(",").filter((function(e){return e}));if(r.length<1)return;t=r.sort((function(e,t){return t.length-e.length}))[0]}t&&t.length>O&&(t=t.substring(0,O)),M(t),x&&x(t)},size:w,state:y,disabled:k,hasClearBtn:g},B)),g&&I&&!k&&s.default.createElement(d.ClearBtnIcon,{"data-testid":"clear-icon",role:"input-clear",onClick:function(e){M(""),x&&x(""),_.current.focus()},fieldsize:w}),j&&s.default.createElement(d.InputSvgIcon,{iconColor:b,iconBackground:v,"data-testid":"input-icon",role:"input-icon",size:w},s.default.createElement(j,null)),!j&&D&&s.default.createElement(d.InputIcon,{"data-testid":"input-icon",name:D,iconColor:b,iconBackground:v,size:w,role:"input-icon"})),"error"===y&&E&&s.default.createElement(c.default,null,E))}));m.defaultProps={value:"",hasClearBtn:!0,type:"text",maxLength:512,size:"lg",state:"initial",errorMessage:null};var b=m;t.default=b},1669:(e,t,r)=>{var o=r(7880),n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.StyledLabel=t.InputWrapper=t.InputSvgIcon=t.InputIcon=t.ClearBtnIcon=void 0;var i=o(r(5900)),a=o(r(3682)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=d(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 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,r&&r.set(e,o),o}(r(7518)),s=r(9193),c=r(8903);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}var u=(0,l.default)(a.default).withConfig({displayName:"Textfieldstyle__ClearBtnIcon",componentId:"sc-13wk8xr-0"})((function(e){var t=e.fieldsize,r=(0,c.isSizeSm)(t),o=(0,c.isSizeXs)(t);return(0,l.css)(["position:absolute;bottom:23px;right:6px;transform:translateY(50%);fill:",";font-size:16px;padding-right:inherit;cursor:pointer;",""],s.theme.inputCrossBtn,(r||o)&&(0,l.css)(["bottom:20px;"]))}));t.ClearBtnIcon=u;var p=(0,l.default)(i.default).withConfig({displayName:"Textfieldstyle__InputIcon",componentId:"sc-13wk8xr-1"})((function(e){var t=e.iconColor,r=e.iconBackground,o=e.size,n=(0,c.isSizeSm)(o),i=(0,c.isSizeXs)(o);return(0,l.css)(["&&{box-sizing:border-box;position:absolute;top:0;left:0;background:",";color:",";font-size:32px;width:46px;height:46px;line-height:1;border:1px solid ",";border-right:0;border-top-left-radius:3px;border-bottom-left-radius:3px;pointer-events:none;display:flex;justify-content:space-around;align-items:center;"," "," ","}"],s.theme.color[2],s.theme.inputIcon,s.theme.color[4],(n||i)&&(0,l.css)(["width:40px;height:40px;line-height:40px;"]),t&&(0,l.css)(["color:",";"],t),r&&(0,l.css)(["background:",";"],r))}));t.InputIcon=p;var f=l.default.span.withConfig({displayName:"Textfieldstyle__InputSvgIcon",componentId:"sc-13wk8xr-2"})((function(e){var t=e.iconColor,r=e.iconBackground,o=e.size,n=(0,c.isSizeSm)(o),i=(0,c.isSizeXs)(o);return(0,l.css)(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;position:absolute;bottom:0;left:0;background:",";font-size:32px;width:46px;height:46px;border:1px solid ",";border-right:0;border-top-left-radius:",";border-bottom-left-radius:",";pointer-events:none;"," "," svg{fill:",";}"],s.theme.color[2],s.theme.color[4],s.theme.borderRadius,s.theme.borderRadius,(n||i)&&(0,l.css)(["width:40px;height:40px;line-height:40px;"]),r&&(0,l.css)(["background:",";"],r),t||s.theme.inputIcon)}));t.InputSvgIcon=f;var g=l.default.input.withConfig({displayName:"Textfieldstyle__StyledTextfield",componentId:"sc-13wk8xr-3"})((function(e){var t=e.disabled,r=e.icon,o=e.size,n=e.hasClearBtn,i=(0,c.isSizeSm)(o),a=(0,c.isSizeXs)(o);return(0,l.css)([""," appearance:none;font-size:16px;height:46px;line-height:normal;padding:",";margin:0;border-radius:",";background:",";border:1px solid ",";outline:none;cursor:pointer;width:100%;"," &::-ms-clear,&::-ms-reveal{display:none;}&::-moz-selection{background:rgba(99,158,200,0.5);}&::selection{background:rgba(99,158,200,0.5);}&::placeholder{color:",";}"," "," "," "," ",""],s.mixins.globalStyles,n?"0 28px 0 9px":"0 9px 0 9px",s.theme.borderRadius,s.theme.color[11],s.theme.color[4],(i||a)&&(0,l.css)(["height:40px;"]),s.theme.color[6],!t&&(0,l.css)(["&:active,&:focus{background:",";}&:focus{box-shadow:",";}"],s.theme.inputHoverBackground,s.theme.activeItemOutline),t&&(0,l.css)(["box-shadow:none;opacity:0.5;cursor:default;~ ","{opacity:0.5;}"],p),r&&(0,l.css)(["padding-left:59px;"," ",""],!t&&(0,l.css)(["&:focus{~ ","{background:",";}}"],p,s.theme.btnStandardHover),(i||a)&&(0,l.css)(["padding-left:53px;"])),(function(e){return"error"===e.state&&(0,l.css)(["&&:focus,&&:active{background-color:",";~ ","{background:",";}}"],s.theme.validationColors.inputErrorHoverBackground,p,s.theme.validationColors.inputErrorIconHoverBackground)}),(function(e){return"success"===e.state&&(0,l.css)(["&&:active,&&:focus{filter:brightness(97%);background:",";}"],s.theme.successBackground)}))})),h=l.default.div.withConfig({displayName:"Textfieldstyle__InputWrapper",componentId:"sc-13wk8xr-4"})(["display:inline-block;width:100%;position:relative;vertical-align:top;"," "," ",""],(function(e){return"error"===e.state&&(0,l.css)(["","{background-color:",";color:",";}","{background:",";color:",";}","{background:",";svg{fill:",";}}&&&:hover{","{background-color:",";}","{background:",";}","{background:",";}}"],g,s.theme.validationColors.inputErrorBackground,s.theme.validationColors.inputErrorText,p,s.theme.validationColors.inputErrorIconBackground,s.theme.validationColors.inputErrorIcon,f,s.theme.validationColors.inputErrorIconBackground,s.theme.validationColors.inputErrorIcon,g,s.theme.validationColors.inputErrorHoverBackground,p,s.theme.validationColors.inputErrorIconHoverBackground,f,s.theme.validationColors.inputErrorIconHoverBackground)}),(function(e){return"success"===e.state&&(0,l.css)(["","{background:",";color:",";}&&&:hover{","{filter:brightness(97%);background:",";}}"],g,s.theme.successBackground,s.theme.successText,g,s.theme.successBackground)}),(function(e){return!e.disabled&&(0,l.css)(["&&:hover{","{background:",";}","{background:",";}","{background:",";}}"],g,s.theme.inputHoverBackground,p,s.theme.btnStandardHover,f,s.theme.btnStandardHover)}));t.InputWrapper=h;var m=l.default.label.withConfig({displayName:"Textfieldstyle__StyledLabel",componentId:"sc-13wk8xr-5"})(["color:",";font-size:14px;line-height:20px;padding-bottom:8px;display:inline-block;"],s.theme.color[10]);t.StyledLabel=m;var b=g;t.default=b},9941:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),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.getBoundingClientInfo=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0;var o=r(3322),n={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,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)}}},8903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},3322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var r=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",r=document.cookie.split(";"),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)}},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},3682:e=>{e.exports=require("@webjet/react-icons/common/x-circle-fill")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},7518:e=>{e.exports=require("styled-components")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}var o={};(()=>{var e=o,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(2813)).default;e.default=n})(),module.exports=o})();
1
+ (()=>{"use strict";var e={3729:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var n=o(r(6689)),i=(o(r(580)),r(6202)),a=function(e){var t=e.children;return t&&n.default.createElement(i.ErrorMessage,{"data-testid":"error-message",role:"error-message"},t)};t.ErrorMessageField=a,a.defaultProps={children:null};var l=a;t.default=l},6202:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var n=o(r(7518)),i=r(9193),a=n.default.label.withConfig({displayName:"ErrorMessageFieldstyle__ErrorMessage",componentId:"sc-s1cvz0-0"})(["&&{"," display:block;position:relative;margin-top:10px;background:",";padding:6px 8px 6px 8px;border-radius:",";font-size:14px;color:",";line-height:130%;text-align:left;font-weight:normal;box-sizing:border-box;&:before{width:0;top:-8px;z-index:1;position:absolute;content:'';height:0;left:0;right:0;text-align:center;margin:0 auto;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:10px solid #f2dede;}}"],i.mixins.globalStyles,i.theme.validationColors.inputErrorBackground,i.theme.borderRadius,i.theme.validationColors.inputErrorText);t.ErrorMessage=a},2367:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(3729)).default;t.default=n},5715:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(7518)).default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:'WebjetIcons';display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],(function(e){var t=e.iconName;return i(t)})),i=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""},a=n;t.default=a},5900:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(8213)),i=o(r(3838)),a=o(r(6689)),l=(o(r(580)),o(r(5715))),s=["name"];t.default=function(e){var t=e.name,r=(0,i.default)(e,s);return a.default.createElement(l.default,(0,n.default)({iconName:t},r))}},6361:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(580)),i=function(e){var t=e.condition,r=e.children;return!0===t?r:null};i.propTypes={condition:n.default.bool},i.defaultProps={condition:!1};var a=i;t.default=a},7350:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6361)).default;t.default=n},3206:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},9193:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=o(r(2594)),i=o(r(6932)),a=o(r(2098)),l=o(r(3206)),s=o(r(5799))},2098:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(7518),i=o(r(2594)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2594:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2813:(e,t,r)=>{var o=r(7880),n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(8213)),a=o(r(353)),l=o(r(3838)),s=m(r(6689)),c=(o(r(580)),o(r(2367))),d=m(r(1669)),u=r(9941),p=o(r(7350)),f=["maxLength","type","className","hasClearBtn","value","icon","iconColor","iconBackground","onChange","onClearBtnClick","size","state","errorMessage","disabled","labelText"];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)}function m(e,t){if(!t&&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 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,r&&r.set(e,o),o}var h=s.default.forwardRef((function(e,t){var r=e.maxLength,o=e.type,n=e.className,g=e.hasClearBtn,m=e.value,h=e.icon,b=e.iconColor,v=e.iconBackground,x=e.onChange,w=(e.onClearBtnClick,e.size),y=e.state,E=e.errorMessage,k=e.disabled,C=e.labelText,B=(0,l.default)(e,f),F=(0,s.useState)(m),S=(0,a.default)(F,2),I=S[0],M=S[1];(0,s.useEffect)((function(){return M(m)}),[m]);var D=!!(0,u.isValidIconElement)(h)&&h,j=!!(0,u.isValidIconName)(h)&&h,O=r;r=512;var _=s.default.createRef();return s.default.createElement(s.default.Fragment,null,s.default.createElement(d.InputWrapper,{ref:t,className:n,state:y,disabled:k},s.default.createElement(p.default,{condition:(null==C?void 0:C.length)>0},s.default.createElement(d.StyledLabel,null,C)),s.default.createElement(d.default,(0,i.default)({type:"text",ref:_,icon:D||j,value:I,onChange:function(e){var t=e.target.value;if("number"===o&&!/^\d*$/.test(t)){var r=t.replace(/\s/g,"").replace(/\D/g,",").split(",").filter((function(e){return e}));if(r.length<1)return;t=r.sort((function(e,t){return t.length-e.length}))[0]}t&&t.length>O&&(t=t.substring(0,O)),M(t),x&&x(t)},size:w,state:y,disabled:k,hasClearBtn:g},B)),g&&I&&!k&&s.default.createElement(d.ClearBtnIcon,{"data-testid":"clear-icon",role:"input-clear",onClick:function(e){M(""),x&&x(""),_.current.focus()},fieldsize:w}),D&&s.default.createElement(d.InputSvgIcon,{iconColor:b,iconBackground:v,"data-testid":"input-icon",role:"input-icon",size:w},s.default.createElement(D,null)),!D&&j&&s.default.createElement(d.InputIcon,{"data-testid":"input-icon",name:j,iconColor:b,iconBackground:v,size:w,role:"input-icon"})),"error"===y&&E&&s.default.createElement(c.default,null,E))}));h.defaultProps={value:"",hasClearBtn:!0,type:"text",maxLength:512,size:"lg",state:"initial",errorMessage:null};var b=h;t.default=b},1669:(e,t,r)=>{var o=r(7880),n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.StyledLabel=t.InputWrapper=t.InputSvgIcon=t.InputIcon=t.ClearBtnIcon=void 0;var i=o(r(5900)),a=o(r(3682)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=d(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 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,r&&r.set(e,o),o}(r(7518)),s=r(9193),c=r(8903);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}var u=(0,l.default)(a.default).withConfig({displayName:"Textfieldstyle__ClearBtnIcon",componentId:"sc-13wk8xr-0"})((function(e){var t=e.fieldsize,r=(0,c.isSizeSm)(t),o=(0,c.isSizeXs)(t);return(0,l.css)(["position:absolute;bottom:23px;right:6px;transform:translateY(50%);fill:",";font-size:16px;padding-right:inherit;cursor:pointer;",""],s.theme.inputCrossBtn,(r||o)&&(0,l.css)(["bottom:20px;"]))}));t.ClearBtnIcon=u;var p=(0,l.default)(i.default).withConfig({displayName:"Textfieldstyle__InputIcon",componentId:"sc-13wk8xr-1"})((function(e){var t=e.iconColor,r=e.iconBackground,o=e.size,n=(0,c.isSizeSm)(o),i=(0,c.isSizeXs)(o);return(0,l.css)(["&&{box-sizing:border-box;position:absolute;top:0;left:0;background:",";color:",";font-size:32px;width:46px;height:46px;line-height:1;border:1px solid ",";border-right:0;border-top-left-radius:3px;border-bottom-left-radius:3px;pointer-events:none;display:flex;justify-content:space-around;align-items:center;"," "," ","}"],s.theme.color[2],s.theme.inputIcon,s.theme.color[4],(n||i)&&(0,l.css)(["width:40px;height:40px;line-height:40px;"]),t&&(0,l.css)(["color:",";"],t),r&&(0,l.css)(["background:",";"],r))}));t.InputIcon=p;var f=l.default.span.withConfig({displayName:"Textfieldstyle__InputSvgIcon",componentId:"sc-13wk8xr-2"})((function(e){var t=e.iconColor,r=e.iconBackground,o=e.size,n=(0,c.isSizeSm)(o),i=(0,c.isSizeXs)(o);return(0,l.css)(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;position:absolute;bottom:0;left:0;background:",";font-size:32px;width:46px;height:46px;border:1px solid ",";border-right:0;border-top-left-radius:",";border-bottom-left-radius:",";pointer-events:none;"," "," svg{fill:",";}"],s.theme.color[2],s.theme.color[4],s.theme.borderRadius,s.theme.borderRadius,(n||i)&&(0,l.css)(["width:40px;height:40px;line-height:40px;"]),r&&(0,l.css)(["background:",";"],r),t||s.theme.inputIcon)}));t.InputSvgIcon=f;var g=l.default.input.withConfig({displayName:"Textfieldstyle__StyledTextfield",componentId:"sc-13wk8xr-3"})((function(e){var t=e.disabled,r=e.icon,o=e.size,n=e.hasClearBtn,i=(0,c.isSizeSm)(o),a=(0,c.isSizeXs)(o);return(0,l.css)([""," appearance:none;font-size:16px;height:46px;line-height:normal;padding:",";margin:0;border-radius:",";background:",";border:1px solid ",";outline:none;cursor:pointer;width:100%;"," &::-ms-clear,&::-ms-reveal{display:none;}&::-moz-selection{background:rgba(99,158,200,0.5);}&::selection{background:rgba(99,158,200,0.5);}&::placeholder{color:",";}"," "," "," "," ",""],s.mixins.globalStyles,n?"0 28px 0 9px":"0 9px 0 9px",s.theme.borderRadius,s.theme.color[11],s.theme.color[4],(i||a)&&(0,l.css)(["height:40px;"]),s.theme.color[6],!t&&(0,l.css)(["&:active,&:focus{background:",";}&:focus{box-shadow:",";}"],s.theme.inputHoverBackground,s.theme.activeItemOutline),t&&(0,l.css)(["box-shadow:none;opacity:0.5;cursor:default;~ ","{opacity:0.5;}"],p),r&&(0,l.css)(["padding-left:59px;"," ",""],!t&&(0,l.css)(["&:focus{~ ","{background:",";}}"],p,s.theme.btnStandardHover),(i||a)&&(0,l.css)(["padding-left:53px;"])),(function(e){return"error"===e.state&&(0,l.css)(["&&:focus,&&:active{background-color:",";~ ","{background:",";}}"],s.theme.validationColors.inputErrorHoverBackground,p,s.theme.validationColors.inputErrorIconHoverBackground)}),(function(e){return"success"===e.state&&(0,l.css)(["&&:active,&&:focus{filter:brightness(97%);background:",";}"],s.theme.successBackground)}))})),m=l.default.div.withConfig({displayName:"Textfieldstyle__InputWrapper",componentId:"sc-13wk8xr-4"})(["display:inline-block;width:100%;position:relative;vertical-align:top;"," "," ",""],(function(e){return"error"===e.state&&(0,l.css)(["","{background-color:",";color:",";}","{background:",";color:",";}","{background:",";svg{fill:",";}}&&&:hover{","{background-color:",";}","{background:",";}","{background:",";}}"],g,s.theme.validationColors.inputErrorBackground,s.theme.validationColors.inputErrorText,p,s.theme.validationColors.inputErrorIconBackground,s.theme.validationColors.inputErrorIcon,f,s.theme.validationColors.inputErrorIconBackground,s.theme.validationColors.inputErrorIcon,g,s.theme.validationColors.inputErrorHoverBackground,p,s.theme.validationColors.inputErrorIconHoverBackground,f,s.theme.validationColors.inputErrorIconHoverBackground)}),(function(e){return"success"===e.state&&(0,l.css)(["","{background:",";color:",";}&&&:hover{","{filter:brightness(97%);background:",";}}"],g,s.theme.successBackground,s.theme.successText,g,s.theme.successBackground)}),(function(e){return!e.disabled&&(0,l.css)(["&&:hover{","{background:",";}","{background:",";}","{background:",";}}"],g,s.theme.inputHoverBackground,p,s.theme.btnStandardHover,f,s.theme.btnStandardHover)}));t.InputWrapper=m;var h=l.default.label.withConfig({displayName:"Textfieldstyle__StyledLabel",componentId:"sc-13wk8xr-5"})(["color:",";font-size:14px;line-height:20px;padding-bottom:8px;display:inline-block;"],s.theme.color[10]);t.StyledLabel=h;var b=g;t.default=b},9941:(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(3322),n={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,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())}},8903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},3322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var r=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",r=document.cookie.split(";"),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)}},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},3682:e=>{e.exports=require("@webjet/react-icons/common/x-circle-fill")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},7518:e=>{e.exports=require("styled-components")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}var o={};(()=>{var e=o,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(2813)).default;e.default=n})(),module.exports=o})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e={7400:(e,t,r)=>{var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TabletDesktop=t.Tablet=t.SmallDesktop=t.MobileTablet=t.Mobile=t.LargeDesktop=t.Desktop=t.CustomQuery=void 0;var o=n(r(6689)),i=n(r(4225)),a=function(e){var t=e.query,r=e.wrappedComponent;return o.default.createElement(i.default,{query:t},(function(e){return e&&r}))};t.Mobile=function(e){var t=e.children;return o.default.createElement(a,{query:"(max-width: 767px)",wrappedComponent:t})},t.MobileTablet=function(e){var t=e.children;return o.default.createElement(a,{query:"(max-width: 991px)",wrappedComponent:t})},t.Tablet=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px) and (max-width: 991px)",wrappedComponent:t})},t.TabletDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px)",wrappedComponent:t})},t.Desktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 992px)",wrappedComponent:t})},t.SmallDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px) and (max-width: 1199px)",wrappedComponent:t})},t.LargeDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 1200px)",wrappedComponent:t})},t.CustomQuery=function(e){var t=e.query,r=e.children;return o.default.createElement(a,{query:t,wrappedComponent:r})};var u=a;t.default=u},270:(e,t,r)=>{var n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CustomQuery",{enumerable:!0,get:function(){return o.CustomQuery}}),Object.defineProperty(t,"Desktop",{enumerable:!0,get:function(){return o.Desktop}}),Object.defineProperty(t,"LargeDesktop",{enumerable:!0,get:function(){return o.LargeDesktop}}),Object.defineProperty(t,"Mobile",{enumerable:!0,get:function(){return o.Mobile}}),Object.defineProperty(t,"MobileTablet",{enumerable:!0,get:function(){return o.MobileTablet}}),Object.defineProperty(t,"SmallDesktop",{enumerable:!0,get:function(){return o.SmallDesktop}}),Object.defineProperty(t,"Tablet",{enumerable:!0,get:function(){return o.Tablet}}),Object.defineProperty(t,"TabletDesktop",{enumerable:!0,get:function(){return o.TabletDesktop}}),t.default=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=i(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}(r(7400));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}var a=o.default;t.default=a},9941:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),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.getBoundingClientInfo=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0;var n=r(3322),o={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=o;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(o.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(o.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,r=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!r&&/(iPhone\sOS)\s([\d_]+)/.test(t)||r,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var r=window.atob(t[1]).toString("ascii");if(JSON.parse(r).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,r=window.scrollY,n=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,o=e.offsetHeight})),document.addEventListener("scroll",(function(){o=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));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)}}},3322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var r=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},t.setCookieStorage=function(e,t,r){var n=window.location.hostname,o="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(r||86400)}},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},4225:e=>{e.exports=require("react-media")},7518:e=>{e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};(()=>{var e=n,t=r(7880),o=r(9293);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(r(3838)),a=t(r(8213)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=f(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 u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(6689)),l=(t(r(580)),t(r(7518))),c=r(9941),s=r(270),d=["query"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var p=l.default.div.withConfig({displayName:"two-direction-sticky-panel__StyledStickyPanel",componentId:"sc-1plmb0e-0"})(["position:sticky;"]),g=function(e){var t=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e=t.current;(0,c.setTwoDirectionStickyPanel)(e)}),[]),u.default.createElement(p,(0,a.default)({ref:t},e))},m=function(e){var t=e.query,r=(0,i.default)(e,d);return"desktop"===t?u.default.createElement(u.default.Fragment,null,u.default.createElement(s.Desktop,null,u.default.createElement(g,r)),u.default.createElement(s.MobileTablet,null,u.default.createElement("div",r))):u.default.createElement(g,r)};m.defaultProps={query:"desktop"};var h=m;e.default=h})(),module.exports=n})();
1
+ (()=>{"use strict";var e={7400:(e,t,n)=>{var r=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TabletDesktop=t.Tablet=t.SmallDesktop=t.MobileTablet=t.Mobile=t.LargeDesktop=t.Desktop=t.CustomQuery=void 0;var o=r(n(6689)),i=r(n(4225)),a=function(e){var t=e.query,n=e.wrappedComponent;return o.default.createElement(i.default,{query:t},(function(e){return e&&n}))};t.Mobile=function(e){var t=e.children;return o.default.createElement(a,{query:"(max-width: 767px)",wrappedComponent:t})},t.MobileTablet=function(e){var t=e.children;return o.default.createElement(a,{query:"(max-width: 991px)",wrappedComponent:t})},t.Tablet=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px) and (max-width: 991px)",wrappedComponent:t})},t.TabletDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px)",wrappedComponent:t})},t.Desktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 992px)",wrappedComponent:t})},t.SmallDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px) and (max-width: 1199px)",wrappedComponent:t})},t.LargeDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 1200px)",wrappedComponent:t})},t.CustomQuery=function(e){var t=e.query,n=e.children;return o.default.createElement(a,{query:t,wrappedComponent:n})};var u=a;t.default=u},270:(e,t,n)=>{var r=n(9293);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CustomQuery",{enumerable:!0,get:function(){return o.CustomQuery}}),Object.defineProperty(t,"Desktop",{enumerable:!0,get:function(){return o.Desktop}}),Object.defineProperty(t,"LargeDesktop",{enumerable:!0,get:function(){return o.LargeDesktop}}),Object.defineProperty(t,"Mobile",{enumerable:!0,get:function(){return o.Mobile}}),Object.defineProperty(t,"MobileTablet",{enumerable:!0,get:function(){return o.MobileTablet}}),Object.defineProperty(t,"SmallDesktop",{enumerable:!0,get:function(){return o.SmallDesktop}}),Object.defineProperty(t,"Tablet",{enumerable:!0,get:function(){return o.Tablet}}),Object.defineProperty(t,"TabletDesktop",{enumerable:!0,get:function(){return o.TabletDesktop}}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}(n(7400));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}var a=o.default;t.default=a},9941:(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 r=n(3322),o={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=o;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(o.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(o.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,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,r.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,r=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=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<=r?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,r=e.clientHeight,o=t-n;return o>=r-1&&o<=r+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())}},3322:(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(";"),r=0;r<n.length;r++){for(var o=n[r];" "===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,n){var r=window.location.hostname,o="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(n||86400)}},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},4225:e=>{e.exports=require("react-media")},7518:e=>{e.exports=require("styled-components")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}var r={};(()=>{var e=r,t=n(7880),o=n(9293);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(n(3838)),a=t(n(8213)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(6689)),l=(t(n(580)),t(n(7518))),c=n(9941),s=n(270),d=["query"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var p=l.default.div.withConfig({displayName:"two-direction-sticky-panel__StyledStickyPanel",componentId:"sc-1plmb0e-0"})(["position:sticky;"]),g=function(e){var t=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e=t.current;(0,c.setTwoDirectionStickyPanel)(e)}),[]),u.default.createElement(p,(0,a.default)({ref:t},e))},m=function(e){var t=e.query,n=(0,i.default)(e,d);return"desktop"===t?u.default.createElement(u.default.Fragment,null,u.default.createElement(s.Desktop,null,u.default.createElement(g,n)),u.default.createElement(s.MobileTablet,null,u.default.createElement("div",n))):u.default.createElement(g,n)};m.defaultProps={query:"desktop"};var h=m;e.default=h})(),module.exports=r})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e={6361:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(580)),n=function(e){var t=e.condition,r=e.children;return!0===t?r:null};n.propTypes={condition:o.default.bool},n.defaultProps={condition:!1};var a=n;t.default=a},7350:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(6361)).default;t.default=o},3206:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},9193:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return n.default}});var o=i(r(2594)),n=i(r(6932)),a=i(r(2098)),l=i(r(3206)),d=i(r(5799))},2098:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(7518),n=i(r(2594)),a={globalStyles:(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],n.default.fontFamily.primary,n.default.fontSize,n.default.fontColor)};t.default=a},6932:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],i={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=i},2594:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],i={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=i},6507:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(8213)),n=i(r(3838)),a=i(r(6689)),l=(i(r(580)),r(9616)),d=["data","isFlexible"],s=function(e){var t=e.label,r=e.value,i=e.isFlexible,o=Math.min(parseFloat(r)||0,l.MAX_SCORE_VALUE);return o>0&&a.default.createElement(l.StyledReview,{isFlexible:i,role:"review-item"},a.default.createElement(l.StyleReviewLabel,{role:"label"},t),a.default.createElement(l.StyleReviewValue,{role:"value"},o.toFixed(1)),a.default.createElement(l.StyleReviewBar,{"data-value":o}))},u=function(e){var t=e.data,r=e.isFlexible,i=(0,n.default)(e,d);return a.default.createElement(l.StyledUserReviewDetails,(0,o.default)({isFlexible:r},i,{"data-testid":"user-review-details-container"}),t.map((function(e,t){return a.default.createElement(s,(0,o.default)({key:t},e,{isFlexible:r}))})))};u.defaultProps={isFlexible:!1,data:[]},u.component={name:"UserReviewDetails"};var c=u;t.default=c},9616:(e,t,r)=>{var i=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewDetails=t.StyledReview=t.StyleReviewValue=t.StyleReviewLabel=t.StyleReviewBar=t.MAX_SCORE_VALUE=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var d=n?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(o,l,d):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}(r(7518)),n=r(9193);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}t.MAX_SCORE_VALUE=5;var l=o.default.span.withConfig({displayName:"UserReviewDetailsstyle__StyleReviewLabel",componentId:"sc-chdr6-0"})(["font-size:14px;font-weight:500;color:",";line-height:17px;"],n.theme.color[10]);t.StyleReviewLabel=l;var d=o.default.span.withConfig({displayName:"UserReviewDetailsstyle__StyleReviewValue",componentId:"sc-chdr6-1"})(["font-size:14px;color:",";line-height:17px;"],n.theme.color[10]);t.StyleReviewValue=d;var s=o.default.span.withConfig({displayName:"UserReviewDetailsstyle__StyleReviewBar",componentId:"sc-chdr6-2"})(["width:100%;height:7px;background:",";margin-top:4px;border-radius:6px;",""],n.theme.color[3],(function(e){return e["data-value"]&&(0,o.css)(["&:after{display:block;content:'';width:","%;height:100%;border-radius:6px;background:",";}"],100*e["data-value"]/5,n.theme.color[6])}));t.StyleReviewBar=s;var u=o.default.div.withConfig({displayName:"UserReviewDetailsstyle__StyledReview",componentId:"sc-chdr6-3"})(["display:flex;flex-flow:row wrap;justify-content:space-between;"]);t.StyledReview=u;var c=o.default.div.withConfig({displayName:"UserReviewDetailsstyle__StyledUserReviewDetails",componentId:"sc-chdr6-4"})([""," display:grid;gap:28px 52px;grid-template-columns:repeat(auto-fit,minmax(max(140px,33% - 52px),1fr));"," @media ","{grid-template-columns:1fr;}"],n.mixins.globalStyles,(function(e){return!e.isFlexible&&(0,o.css)(["grid-template-columns:1fr;"])}),n.theme.media.mobile);t.StyledUserReviewDetails=c},6081:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(6507)).default;t.default=o},3808:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(8213)),n=i(r(3838)),a=i(r(6689)),l=(i(r(580)),r(6170)),d=i(r(6151)),s=i(r(6081)),u=["onClick","children"],c=function(e){var t=e.onClick,r=e.children,i=(0,n.default)(e,u),c=Array.isArray(r),p=c&&r.find((function(e){return"UserReview"===e.type.component.name})),f=c&&r.find((function(e){return"UserReviewDetails"===e.type.component.name}));return p&&f?a.default.createElement(l.StyledUserReviewPanel,i,a.default.createElement(l.StyledUserReview,null,a.default.createElement(d.default,(0,o.default)({},p.props,{onClick:function(e){t&&t(),p.props.onClick&&p.props.onClick(),e.preventDefault()},variant:"details"}))),a.default.createElement(l.StyledUserReviewDetails,null,a.default.createElement(s.default,(0,o.default)({role:"user-review-details"},f.props,{isFlexible:!0})))):null};c.defaultProps={buttonText:"View reviews"};var p=c;t.default=p},6170:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewPanel=t.StyledUserReviewDetails=t.StyledUserReview=void 0;var o=i(r(7518)),n=r(9193),a=o.default.div.withConfig({displayName:"UserReviewPanelstyle__StyledUserReviewPanel",componentId:"sc-19m3lut-0"})(["display:flex;align-items:stretch;background:",";min-width:280px;padding:20px;border-radius:",";@media ","{flex-flow:column;padding:16px;}"],n.theme.color[11],n.theme.borderRadius,n.theme.media.mobile);t.StyledUserReviewPanel=a;var l=o.default.div.withConfig({displayName:"UserReviewPanelstyle__StyledUserReview",componentId:"sc-19m3lut-1"})(["@media ","{background-color:",";border-radius:",";width:100%;}"],n.theme.media.mobile,n.theme.color[3],n.theme.borderRadius);t.StyledUserReview=l;var d=o.default.div.withConfig({displayName:"UserReviewPanelstyle__StyledUserReviewDetails",componentId:"sc-19m3lut-2"})(["padding:0 19px 0 52px;flex:1 1 auto;@media ","{padding:20px 0 0 0;div[role='review-item']{flex:1 1 100%;}}"],n.theme.media.mobile);t.StyledUserReviewDetails=d},8140:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(8213)),n=i(r(3838)),a=i(r(6689)),l=(i(r(580)),i(r(7350))),d=r(2433),s=r(9941),u=["value","maxRatingValue","variant","quality","reviews","onClick"],c=function(e){var t=e.value,r=e.maxRatingValue,i=e.variant,c=e.quality,p=e.reviews,f=e.onClick,m=(0,n.default)(e,u),v=Math.min(parseFloat(t)||0,r).toFixed(1),y=Boolean(f),w=(0,s.formatNumber)(p,0);return a.default.createElement(d.StyledUserReviewSummary,(0,o.default)({},m,{onClick:f,clickable:y,"data-testid":"user-review-container"}),a.default.createElement(l.default,{condition:"details"===i},a.default.createElement(d.StyledUserReviewDetails,null,a.default.createElement(d.StyledUserRatingValue,{role:"review-value","data-testid":"user-review-value"},v),a.default.createElement(d.StyledQualityLabel,{role:"review-quality-label","data-testid":"user-review-quality"},c),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total"},"View ",w," reviews"))),a.default.createElement(l.default,{condition:"compact"===i},a.default.createElement(d.StyledUserReviewCompact,null,a.default.createElement(d.StyledUserRatingQuality,{role:"review-value-quality-label","data-testid":"user-review-rating-quality"},"".concat(v," ").concat(c)),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total"},w," reviews"))))};c.defaultProps={value:0,maxRatingValue:5,variant:"compact"},c.component={name:"UserReview"};var p=c;t.default=p},2433:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewTotal=t.StyledUserReviewSummary=t.StyledUserReviewDetails=t.StyledUserReviewCompact=t.StyledUserRatingValue=t.StyledUserRatingQuality=t.StyledQualityLabel=void 0;var o=i(r(7518)),n=r(9193),a=o.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewSummary",componentId:"sc-1fjzoio-0"})([""," display:inline-block;cursor:",";text-align:initial;"],n.mixins.globalStyles,(function(e){return e.clickable?"pointer":"initial"}));t.StyledUserReviewSummary=a;var l=o.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewDetails",componentId:"sc-1fjzoio-1"})(["display:flex;flex-flow:column;background-color:",";border-radius:",";padding:12px 20px;min-width:187px;@media ","{padding:12px;}"],n.theme.color[3],n.theme.borderRadius,n.theme.media.mobile);t.StyledUserReviewDetails=l;var d=o.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingValue",componentId:"sc-1fjzoio-2"})(["color:",";font-size:24px;font-weight:700;line-height:28px;margin-bottom:8px;@media ","{font-size:20px;line-height:20px;margin-bottom:10px;}"],n.theme.color[10],n.theme.media.mobile);t.StyledUserRatingValue=d;var s=o.default.span.withConfig({displayName:"UserReviewstyle__StyledQualityLabel",componentId:"sc-1fjzoio-3"})(["color:",";font-size:16px;font-weight:500;line-height:22px;@media ","{font-size:14px;line-height:20px;}"],n.theme.color[10],n.theme.media.mobile);t.StyledQualityLabel=s;var u=o.default.span.withConfig({displayName:"UserReviewstyle__StyledUserReviewTotal",componentId:"sc-1fjzoio-4"})(["color:",";font-size:12px;line-height:18px;white-space:nowrap;color:",";text-decoration:underline;"],n.theme.color[14],n.theme.color[6]);t.StyledUserReviewTotal=u;var c=o.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewCompact",componentId:"sc-1fjzoio-5"})([""]);t.StyledUserReviewCompact=c;var p=o.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingQuality",componentId:"sc-1fjzoio-6"})(["height:34px;padding:8px 16px;background:",";border-radius:12px;display:inline-flex;align-items:center;font-size:12px;font-weight:500;line-height:18px;color:",";margin-right:12px;"],n.theme.color[3],n.theme.color[10]);t.StyledUserRatingQuality=p},6151:(e,t,r)=>{var i=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(8140)).default;t.default=o},9941:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),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.getBoundingClientInfo=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0;var i=r(3322),o={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=o;var n=function(e){return window.matchMedia(e).matches};t.isMatchMedia=n,t.isMobile=function(){return n("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobileTablet=function(){return n("(max-width: ".concat(o.TABLET,"px)"))},t.isMobilePortrait=function(){return n("(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,i.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,i=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){i=window.innerHeight,o=e.offsetHeight})),document.addEventListener("scroll",(function(){o=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var n=parseInt(e.style.top.replace("px;",""));0===window.scrollY||o<=i?e.style.top="0px":window.scrollY<r?n<0?e.style.top=n+r-window.scrollY+"px":n>=0&&0!==n&&(e.style.top="0px"):n>t?e.style.top=n+r-window.scrollY+"px":n<t&&n!==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,i=e.clientHeight,o=t-r;return o>=i-1&&o<=i+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)}}},3322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var r=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&r())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&r())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&r())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];" "===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 i=window.location.hostname,o="localhost"===i?i:i.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(r||86400)}},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},7518:e=>{e.exports=require("styled-components")}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,r),n.exports}var i={};(()=>{var e=i,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(3808)).default;e.default=o})(),module.exports=i})();
1
+ (()=>{"use strict";var e={6361:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(580)),n=function(e){var t=e.condition,o=e.children;return!0===t?o:null};n.propTypes={condition:i.default.bool},n.defaultProps={condition:!1};var a=n;t.default=a},7350:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(6361)).default;t.default=i},3206:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},9193:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return n.default}});var i=r(o(2594)),n=r(o(6932)),a=r(o(2098)),l=r(o(3206)),d=r(o(5799))},2098:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(7518),n=r(o(2594)),a={globalStyles:(0,i.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],n.default.fontFamily.primary,n.default.fontSize,n.default.fontColor)};t.default=a},6932:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},2594:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},6507:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(8213)),n=r(o(3838)),a=r(o(6689)),l=(r(o(580)),o(9616)),d=["data","isFlexible"],s=function(e){var t=e.label,o=e.value,r=e.isFlexible,i=Math.min(parseFloat(o)||0,l.MAX_SCORE_VALUE);return i>0&&a.default.createElement(l.StyledReview,{isFlexible:r,role:"review-item"},a.default.createElement(l.StyleReviewLabel,{role:"label"},t),a.default.createElement(l.StyleReviewValue,{role:"value"},i.toFixed(1)),a.default.createElement(l.StyleReviewBar,{"data-value":i}))},u=function(e){var t=e.data,o=e.isFlexible,r=(0,n.default)(e,d);return a.default.createElement(l.StyledUserReviewDetails,(0,i.default)({isFlexible:o},r,{"data-testid":"user-review-details-container"}),t.map((function(e,t){return a.default.createElement(s,(0,i.default)({key:t},e,{isFlexible:o}))})))};u.defaultProps={isFlexible:!1,data:[]},u.component={name:"UserReviewDetails"};var c=u;t.default=c},9616:(e,t,o)=>{var r=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewDetails=t.StyledReview=t.StyleReviewValue=t.StyleReviewLabel=t.StyleReviewBar=t.MAX_SCORE_VALUE=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=a(t);if(o&&o.has(e))return o.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var d=n?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(i,l,d):i[l]=e[l]}return i.default=e,o&&o.set(e,i),i}(o(7518)),n=o(9193);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}t.MAX_SCORE_VALUE=5;var l=i.default.span.withConfig({displayName:"UserReviewDetailsstyle__StyleReviewLabel",componentId:"sc-chdr6-0"})(["font-size:14px;font-weight:500;color:",";line-height:17px;"],n.theme.color[10]);t.StyleReviewLabel=l;var d=i.default.span.withConfig({displayName:"UserReviewDetailsstyle__StyleReviewValue",componentId:"sc-chdr6-1"})(["font-size:14px;color:",";line-height:17px;"],n.theme.color[10]);t.StyleReviewValue=d;var s=i.default.span.withConfig({displayName:"UserReviewDetailsstyle__StyleReviewBar",componentId:"sc-chdr6-2"})(["width:100%;height:7px;background:",";margin-top:4px;border-radius:6px;",""],n.theme.color[3],(function(e){return e["data-value"]&&(0,i.css)(["&:after{display:block;content:'';width:","%;height:100%;border-radius:6px;background:",";}"],100*e["data-value"]/5,n.theme.color[6])}));t.StyleReviewBar=s;var u=i.default.div.withConfig({displayName:"UserReviewDetailsstyle__StyledReview",componentId:"sc-chdr6-3"})(["display:flex;flex-flow:row wrap;justify-content:space-between;"]);t.StyledReview=u;var c=i.default.div.withConfig({displayName:"UserReviewDetailsstyle__StyledUserReviewDetails",componentId:"sc-chdr6-4"})([""," display:grid;gap:28px 52px;grid-template-columns:repeat(auto-fit,minmax(max(140px,33% - 52px),1fr));"," @media ","{grid-template-columns:1fr;}"],n.mixins.globalStyles,(function(e){return!e.isFlexible&&(0,i.css)(["grid-template-columns:1fr;"])}),n.theme.media.mobile);t.StyledUserReviewDetails=c},6081:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(6507)).default;t.default=i},3808:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(8213)),n=r(o(3838)),a=r(o(6689)),l=(r(o(580)),o(6170)),d=r(o(6151)),s=r(o(6081)),u=["onClick","children"],c=function(e){var t=e.onClick,o=e.children,r=(0,n.default)(e,u),c=Array.isArray(o),p=c&&o.find((function(e){return"UserReview"===e.type.component.name})),f=c&&o.find((function(e){return"UserReviewDetails"===e.type.component.name}));return p&&f?a.default.createElement(l.StyledUserReviewPanel,r,a.default.createElement(l.StyledUserReview,null,a.default.createElement(d.default,(0,i.default)({},p.props,{onClick:function(e){t&&t(),p.props.onClick&&p.props.onClick(),e.preventDefault()},variant:"details"}))),a.default.createElement(l.StyledUserReviewDetails,null,a.default.createElement(s.default,(0,i.default)({role:"user-review-details"},f.props,{isFlexible:!0})))):null};c.defaultProps={buttonText:"View reviews"};var p=c;t.default=p},6170:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewPanel=t.StyledUserReviewDetails=t.StyledUserReview=void 0;var i=r(o(7518)),n=o(9193),a=i.default.div.withConfig({displayName:"UserReviewPanelstyle__StyledUserReviewPanel",componentId:"sc-19m3lut-0"})(["display:flex;align-items:stretch;background:",";min-width:280px;padding:20px;border-radius:",";@media ","{flex-flow:column;padding:16px;}"],n.theme.color[11],n.theme.borderRadius,n.theme.media.mobile);t.StyledUserReviewPanel=a;var l=i.default.div.withConfig({displayName:"UserReviewPanelstyle__StyledUserReview",componentId:"sc-19m3lut-1"})(["@media ","{background-color:",";border-radius:",";width:100%;}"],n.theme.media.mobile,n.theme.color[3],n.theme.borderRadius);t.StyledUserReview=l;var d=i.default.div.withConfig({displayName:"UserReviewPanelstyle__StyledUserReviewDetails",componentId:"sc-19m3lut-2"})(["padding:0 19px 0 52px;flex:1 1 auto;@media ","{padding:20px 0 0 0;div[role='review-item']{flex:1 1 100%;}}"],n.theme.media.mobile);t.StyledUserReviewDetails=d},8140:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(8213)),n=r(o(3838)),a=r(o(6689)),l=(r(o(580)),r(o(7350))),d=o(2433),s=o(9941),u=["value","maxRatingValue","variant","quality","reviews","onClick"],c=function(e){var t=e.value,o=e.maxRatingValue,r=e.variant,c=e.quality,p=e.reviews,f=e.onClick,m=(0,n.default)(e,u),v=Math.min(parseFloat(t)||0,o).toFixed(1),y=Boolean(f),g=(0,s.formatNumber)(p,0);return a.default.createElement(d.StyledUserReviewSummary,(0,i.default)({},m,{onClick:f,clickable:y,"data-testid":"user-review-container"}),a.default.createElement(l.default,{condition:"details"===r},a.default.createElement(d.StyledUserReviewDetails,null,a.default.createElement(d.StyledUserRatingValue,{role:"review-value","data-testid":"user-review-value"},v),a.default.createElement(d.StyledQualityLabel,{role:"review-quality-label","data-testid":"user-review-quality"},c),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total"},"View ",g," reviews"))),a.default.createElement(l.default,{condition:"compact"===r},a.default.createElement(d.StyledUserReviewCompact,null,a.default.createElement(d.StyledUserRatingQuality,{role:"review-value-quality-label","data-testid":"user-review-rating-quality"},"".concat(v," ").concat(c)),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total"},g," reviews"))))};c.defaultProps={value:0,maxRatingValue:5,variant:"compact"},c.component={name:"UserReview"};var p=c;t.default=p},2433:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewTotal=t.StyledUserReviewSummary=t.StyledUserReviewDetails=t.StyledUserReviewCompact=t.StyledUserRatingValue=t.StyledUserRatingQuality=t.StyledQualityLabel=void 0;var i=r(o(7518)),n=o(9193),a=i.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewSummary",componentId:"sc-1fjzoio-0"})([""," display:inline-block;cursor:",";text-align:initial;"],n.mixins.globalStyles,(function(e){return e.clickable?"pointer":"initial"}));t.StyledUserReviewSummary=a;var l=i.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewDetails",componentId:"sc-1fjzoio-1"})(["display:flex;flex-flow:column;background-color:",";border-radius:",";padding:12px 20px;min-width:187px;@media ","{padding:12px;}"],n.theme.color[3],n.theme.borderRadius,n.theme.media.mobile);t.StyledUserReviewDetails=l;var d=i.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingValue",componentId:"sc-1fjzoio-2"})(["color:",";font-size:24px;font-weight:700;line-height:28px;margin-bottom:8px;@media ","{font-size:20px;line-height:20px;margin-bottom:10px;}"],n.theme.color[10],n.theme.media.mobile);t.StyledUserRatingValue=d;var s=i.default.span.withConfig({displayName:"UserReviewstyle__StyledQualityLabel",componentId:"sc-1fjzoio-3"})(["color:",";font-size:16px;font-weight:500;line-height:22px;@media ","{font-size:14px;line-height:20px;}"],n.theme.color[10],n.theme.media.mobile);t.StyledQualityLabel=s;var u=i.default.span.withConfig({displayName:"UserReviewstyle__StyledUserReviewTotal",componentId:"sc-1fjzoio-4"})(["color:",";font-size:12px;line-height:18px;white-space:nowrap;color:",";text-decoration:underline;"],n.theme.color[14],n.theme.color[6]);t.StyledUserReviewTotal=u;var c=i.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewCompact",componentId:"sc-1fjzoio-5"})([""]);t.StyledUserReviewCompact=c;var p=i.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingQuality",componentId:"sc-1fjzoio-6"})(["height:34px;padding:8px 16px;background:",";border-radius:12px;display:inline-flex;align-items:center;font-size:12px;font-weight:500;line-height:18px;color:",";margin-right:12px;"],n.theme.color[3],n.theme.color[10]);t.StyledUserRatingQuality=p},6151:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(8140)).default;t.default=i},9941:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var r=o(3322),i={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=i;var n=function(e){return window.matchMedia(e).matches};t.isMatchMedia=n,t.isMobile=function(){return n("(max-width: ".concat(i.MOBILE,"px)"))},t.isMobileTablet=function(){return n("(max-width: ".concat(i.TABLET,"px)"))},t.isMobilePortrait=function(){return n("(max-width: ".concat(i.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,i=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,i=e.offsetHeight})),document.addEventListener("scroll",(function(){i=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var n=parseInt(e.style.top.replace("px;",""));0===window.scrollY||i<=r?e.style.top="0px":window.scrollY<o?n<0?e.style.top=n+o-window.scrollY+"px":n>=0&&0!==n&&(e.style.top="0px"):n>t?e.style.top=n+o-window.scrollY+"px":n<t&&n!==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,i=t-o;return i>=r-1&&i<=r+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},3322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var i=o[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},t.setCookieStorage=function(e,t,o){var r=window.location.hostname,i="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},7518:e=>{e.exports=require("styled-components")}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}var r={};(()=>{var e=r,t=o(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(o(3808)).default;e.default=i})(),module.exports=r})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e={6361:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(580)),i=function(e){var t=e.condition,o=e.children;return!0===t?o:null};i.propTypes={condition:n.default.bool},i.defaultProps={condition:!1};var a=i;t.default=a},7350:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(6361)).default;t.default=n},3206:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},9193:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=r(o(2594)),i=r(o(6932)),a=r(o(2098)),l=r(o(3206)),d=r(o(5799))},2098:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(7518),i=r(o(2594)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},2594:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},8140:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(8213)),i=r(o(3838)),a=r(o(6689)),l=(r(o(580)),r(o(7350))),d=o(2433),s=o(9941),c=["value","maxRatingValue","variant","quality","reviews","onClick"],u=function(e){var t=e.value,o=e.maxRatingValue,r=e.variant,u=e.quality,p=e.reviews,f=e.onClick,m=(0,i.default)(e,c),g=Math.min(parseFloat(t)||0,o).toFixed(1),v=Boolean(f),y=(0,s.formatNumber)(p,0);return a.default.createElement(d.StyledUserReviewSummary,(0,n.default)({},m,{onClick:f,clickable:v,"data-testid":"user-review-container"}),a.default.createElement(l.default,{condition:"details"===r},a.default.createElement(d.StyledUserReviewDetails,null,a.default.createElement(d.StyledUserRatingValue,{role:"review-value","data-testid":"user-review-value"},g),a.default.createElement(d.StyledQualityLabel,{role:"review-quality-label","data-testid":"user-review-quality"},u),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total"},"View ",y," reviews"))),a.default.createElement(l.default,{condition:"compact"===r},a.default.createElement(d.StyledUserReviewCompact,null,a.default.createElement(d.StyledUserRatingQuality,{role:"review-value-quality-label","data-testid":"user-review-rating-quality"},"".concat(g," ").concat(u)),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total"},y," reviews"))))};u.defaultProps={value:0,maxRatingValue:5,variant:"compact"},u.component={name:"UserReview"};var p=u;t.default=p},2433:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewTotal=t.StyledUserReviewSummary=t.StyledUserReviewDetails=t.StyledUserReviewCompact=t.StyledUserRatingValue=t.StyledUserRatingQuality=t.StyledQualityLabel=void 0;var n=r(o(7518)),i=o(9193),a=n.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewSummary",componentId:"sc-1fjzoio-0"})([""," display:inline-block;cursor:",";text-align:initial;"],i.mixins.globalStyles,(function(e){return e.clickable?"pointer":"initial"}));t.StyledUserReviewSummary=a;var l=n.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewDetails",componentId:"sc-1fjzoio-1"})(["display:flex;flex-flow:column;background-color:",";border-radius:",";padding:12px 20px;min-width:187px;@media ","{padding:12px;}"],i.theme.color[3],i.theme.borderRadius,i.theme.media.mobile);t.StyledUserReviewDetails=l;var d=n.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingValue",componentId:"sc-1fjzoio-2"})(["color:",";font-size:24px;font-weight:700;line-height:28px;margin-bottom:8px;@media ","{font-size:20px;line-height:20px;margin-bottom:10px;}"],i.theme.color[10],i.theme.media.mobile);t.StyledUserRatingValue=d;var s=n.default.span.withConfig({displayName:"UserReviewstyle__StyledQualityLabel",componentId:"sc-1fjzoio-3"})(["color:",";font-size:16px;font-weight:500;line-height:22px;@media ","{font-size:14px;line-height:20px;}"],i.theme.color[10],i.theme.media.mobile);t.StyledQualityLabel=s;var c=n.default.span.withConfig({displayName:"UserReviewstyle__StyledUserReviewTotal",componentId:"sc-1fjzoio-4"})(["color:",";font-size:12px;line-height:18px;white-space:nowrap;color:",";text-decoration:underline;"],i.theme.color[14],i.theme.color[6]);t.StyledUserReviewTotal=c;var u=n.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewCompact",componentId:"sc-1fjzoio-5"})([""]);t.StyledUserReviewCompact=u;var p=n.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingQuality",componentId:"sc-1fjzoio-6"})(["height:34px;padding:8px 16px;background:",";border-radius:12px;display:inline-flex;align-items:center;font-size:12px;font-weight:500;line-height:18px;color:",";margin-right:12px;"],i.theme.color[3],i.theme.color[10]);t.StyledUserRatingQuality=p},9941:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),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.getBoundingClientInfo=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0;var r=o(3322),n={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,r.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,r=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,n=e.offsetHeight})),document.addEventListener("scroll",(function(){n=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));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)}}},3322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},t.setCookieStorage=function(e,t,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||86400)}},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},7518:e=>{e.exports=require("styled-components")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}var r={};(()=>{var e=r,t=o(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(o(8140)).default;e.default=n})(),module.exports=r})();
1
+ (()=>{"use strict";var e={6361:(e,t,o)=>{var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(580)),i=function(e){var t=e.condition,o=e.children;return!0===t?o:null};i.propTypes={condition:r.default.bool},i.defaultProps={condition:!1};var a=i;t.default=a},7350:(e,t,o)=>{var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(6361)).default;t.default=r},3206:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},9193:(e,t,o)=>{var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=n(o(2594)),i=n(o(6932)),a=n(o(2098)),l=n(o(3206)),d=n(o(5799))},2098:(e,t,o)=>{var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(7518),i=n(o(2594)),a={globalStyles:(0,r.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:(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},2594:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],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},8140:(e,t,o)=>{var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(8213)),i=n(o(3838)),a=n(o(6689)),l=(n(o(580)),n(o(7350))),d=o(2433),s=o(9941),c=["value","maxRatingValue","variant","quality","reviews","onClick"],u=function(e){var t=e.value,o=e.maxRatingValue,n=e.variant,u=e.quality,p=e.reviews,f=e.onClick,m=(0,i.default)(e,c),g=Math.min(parseFloat(t)||0,o).toFixed(1),v=Boolean(f),h=(0,s.formatNumber)(p,0);return a.default.createElement(d.StyledUserReviewSummary,(0,r.default)({},m,{onClick:f,clickable:v,"data-testid":"user-review-container"}),a.default.createElement(l.default,{condition:"details"===n},a.default.createElement(d.StyledUserReviewDetails,null,a.default.createElement(d.StyledUserRatingValue,{role:"review-value","data-testid":"user-review-value"},g),a.default.createElement(d.StyledQualityLabel,{role:"review-quality-label","data-testid":"user-review-quality"},u),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total"},"View ",h," reviews"))),a.default.createElement(l.default,{condition:"compact"===n},a.default.createElement(d.StyledUserReviewCompact,null,a.default.createElement(d.StyledUserRatingQuality,{role:"review-value-quality-label","data-testid":"user-review-rating-quality"},"".concat(g," ").concat(u)),a.default.createElement(d.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total"},h," reviews"))))};u.defaultProps={value:0,maxRatingValue:5,variant:"compact"},u.component={name:"UserReview"};var p=u;t.default=p},2433:(e,t,o)=>{var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewTotal=t.StyledUserReviewSummary=t.StyledUserReviewDetails=t.StyledUserReviewCompact=t.StyledUserRatingValue=t.StyledUserRatingQuality=t.StyledQualityLabel=void 0;var r=n(o(7518)),i=o(9193),a=r.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewSummary",componentId:"sc-1fjzoio-0"})([""," display:inline-block;cursor:",";text-align:initial;"],i.mixins.globalStyles,(function(e){return e.clickable?"pointer":"initial"}));t.StyledUserReviewSummary=a;var l=r.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewDetails",componentId:"sc-1fjzoio-1"})(["display:flex;flex-flow:column;background-color:",";border-radius:",";padding:12px 20px;min-width:187px;@media ","{padding:12px;}"],i.theme.color[3],i.theme.borderRadius,i.theme.media.mobile);t.StyledUserReviewDetails=l;var d=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingValue",componentId:"sc-1fjzoio-2"})(["color:",";font-size:24px;font-weight:700;line-height:28px;margin-bottom:8px;@media ","{font-size:20px;line-height:20px;margin-bottom:10px;}"],i.theme.color[10],i.theme.media.mobile);t.StyledUserRatingValue=d;var s=r.default.span.withConfig({displayName:"UserReviewstyle__StyledQualityLabel",componentId:"sc-1fjzoio-3"})(["color:",";font-size:16px;font-weight:500;line-height:22px;@media ","{font-size:14px;line-height:20px;}"],i.theme.color[10],i.theme.media.mobile);t.StyledQualityLabel=s;var c=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserReviewTotal",componentId:"sc-1fjzoio-4"})(["color:",";font-size:12px;line-height:18px;white-space:nowrap;color:",";text-decoration:underline;"],i.theme.color[14],i.theme.color[6]);t.StyledUserReviewTotal=c;var u=r.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewCompact",componentId:"sc-1fjzoio-5"})([""]);t.StyledUserReviewCompact=u;var p=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingQuality",componentId:"sc-1fjzoio-6"})(["height:34px;padding:8px 16px;background:",";border-radius:12px;display:inline-flex;align-items:center;font-size:12px;font-weight:500;line-height:18px;color:",";margin-right:12px;"],i.theme.color[3],i.theme.color[10]);t.StyledUserRatingQuality=p},9941:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var n=o(3322),r={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=r;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.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())}},3322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),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)}},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},7518: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(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(o(8140)).default;e.default=r})(),module.exports=n})();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webjet/react",
3
3
  "side-effects": false,
4
- "version": "2.8.0",
4
+ "version": "2.8.1",
5
5
  "description": "Common react components",
6
6
  "main": "components/index.js",
7
7
  "scripts": {
package/utils/common.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={3322:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),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.getBoundingClientInfo=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0;var e=o(3322),i={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=i;var r=function(t){return window.matchMedia(t).matches};t.isMatchMedia=r,t.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},t.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},t.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},t.isUserLoggedIn=function(){var t,o=null===(t=(0,e.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(o&&o.length>1){var n=window.atob(o[1]).toString("ascii");if(JSON.parse(n).firstName)return!0}return!1};var s=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=s,t.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},t.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},t.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},t.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},t.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},t.isValidIconName=function(t){return!!t&&"string"==typeof t},t.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},t.scrollTo=function(t,e){"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:"smooth",top:e.top,left:e.left})},t.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}}})(),module.exports=n})();
1
+ (()=>{"use strict";var t={3322:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var 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(t,e){return e-t},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 e=o(3322),i={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=i;var r=function(t){return window.matchMedia(t).matches};t.isMatchMedia=r,t.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},t.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},t.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},t.isUserLoggedIn=function(){var t,o=null===(t=(0,e.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(o&&o.length>1){var n=window.atob(o[1]).toString("ascii");if(JSON.parse(n).firstName)return!0}return!1};var s=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=s,t.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},t.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},t.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},t.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},t.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},t.isValidIconName=function(t){return!!t&&"string"==typeof t},t.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},t.scrollTo=function(t,e){"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:"smooth",top:e.top,left:e.left})},t.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},t.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())}})(),module.exports=n})();
package/utils/hooks.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={9941:(t,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.withScroll=o.setTwoDirectionStickyPanelById=o.setTwoDirectionStickyPanel=o.scrollTo=o.sanitiseInputText=o.removeHtmlTags=o.isValidIconName=o.isValidIconElement=o.isUserLoggedIn=o.isTouchDevice=o.isMobileTablet=o.isMobilePortrait=o.isMobile=o.isMatchMedia=o.hasScrollReachedBottom=o.getBoundingClientInfo=o.formatNumber=o.escapeRegExp=o.detectOS=o.BREAKPOINTS=void 0;var n=e(3322),i={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};o.BREAKPOINTS=i;var r=function(t){return window.matchMedia(t).matches};o.isMatchMedia=r,o.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},o.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},o.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},o.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},o.detectOS=function(t){var o=t||navigator.userAgent,e=/(iPad).*OS\s([\d_]+)/.test(o);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(o)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(o)}},o.isUserLoggedIn=function(){var t,o=null===(t=(0,n.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(o&&o.length>1){var e=window.atob(o[1]).toString("ascii");if(JSON.parse(e).firstName)return!0}return!1};var s=function(t){if(t){var o=window.innerHeight-t.offsetHeight,e=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,o=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<e?r<0?t.style.top=r+e-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>o?t.style.top=r+e-window.scrollY+"px":r<o&&r!==o&&(t.style.top=o+"px"),e=window.scrollY}),{capture:!0,passive:!0})}};o.setTwoDirectionStickyPanel=s,o.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},o.hasScrollReachedBottom=function(t){if(!t)return!1;var o=t.scrollHeight,e=t.scrollTop,n=t.clientHeight,i=o-e;return i>=n-1&&i<=n+1},o.withScroll=function(t){if(!t)return!1;var o=t.scrollHeight,e=t.clientHeight;return!(o>=e-1&&o<=e+1)},o.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},o.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},o.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},o.isValidIconElement=function(t){var o;return"function"==typeof t&&"svg"===(null===(o=t())||void 0===o?void 0:o.type)},o.isValidIconName=function(t){return!!t&&"string"==typeof t},o.formatNumber=function(t,o){return t.toLocaleString("en-AU",{minimumFractionDigits:o,maximumFractionDigits:o})||0},o.scrollTo=function(t,o){"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:"smooth",top:o.top,left:o.left})},o.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}}},3982:(t,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.unlockScroll=o.lockScroll=void 0;var n=e(9941),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};o.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,n.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},o.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,n.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}},3322:(t,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.setSessionStorageJson=o.setSessionStorage=o.setCookieStorage=o.getSessionStorageJson=o.getSessionStorage=o.getCookieStorage=void 0;var e=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};o.getSessionStorage=function(t){if(t&&e())try{return window.sessionStorage.getItem(t)}catch(t){return}},o.setSessionStorage=function(t,o){if(t&&e())try{return window.sessionStorage.setItem(t,o)}catch(t){return}},o.getSessionStorageJson=function(t){if(t&&e())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},o.setSessionStorageJson=function(t,o){if(t&&e())try{return window.sessionStorage.setItem(t,JSON.stringify(o))}catch(t){return}},o.getCookieStorage=function(t){for(var o=t+"=",e=document.cookie.split(";"),n=0;n<e.length;n++){for(var i=e[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(o))return i.substring(o.length,i.length)}return null},o.setCookieStorage=function(t,o,e){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(o,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(e||86400)}},6689:t=>{t.exports=require("react")}},o={};function e(n){var i=o[n];if(void 0!==i)return i.exports;var r=o[n]={exports:{}};return t[n](r,r.exports,e),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.useDisableBodyScroll=t.useCombinedRefs=void 0;var o=e(6689),i=e(3982);t.useDisableBodyScroll=function(t){(0,o.useEffect)((function(){if(t)return(0,i.lockScroll)(),function(){(0,i.unlockScroll)()}}),[t])},t.useCombinedRefs=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=(0,o.useRef)();return(0,o.useEffect)((function(){e.forEach((function(t){t&&("function"==typeof t?t(i.current):t.current=i.current)}))}),[e]),i}})(),module.exports=n})();
1
+ (()=>{"use strict";var t={9941:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=e.detectOS=e.BREAKPOINTS=void 0,e.fetchDateInMilliseconds=function(){return(new Date).getTime()},e.getBoundingClientInfo=e.formatNumber=void 0,e.getDurationInMiliSeconds=function(t,e){return e-t},e.withScroll=e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.scrollTo=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobileTablet=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.hasScrollReachedBottom=e.getMonthName=e.getFormattedDate=void 0;var n=o(3322),i={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};e.BREAKPOINTS=i;var r=function(t){return window.matchMedia(t).matches};e.isMatchMedia=r,e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.isUserLoggedIn=function(){var t,e=null===(t=(0,n.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(e&&e.length>1){var o=window.atob(e[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var c=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};e.setTwoDirectionStickyPanel=c,e.setTwoDirectionStickyPanelById=function(t){c(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:"smooth",top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())}},3982:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unlockScroll=e.lockScroll=void 0;var n=o(9941),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};e.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,n.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},e.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,n.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}},3322:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}},6689:t=>{t.exports=require("react")}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.useDisableBodyScroll=t.useCombinedRefs=void 0;var e=o(6689),i=o(3982);t.useDisableBodyScroll=function(t){(0,e.useEffect)((function(){if(t)return(0,i.lockScroll)(),function(){(0,i.unlockScroll)()}}),[t])},t.useCombinedRefs=function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];var i=(0,e.useRef)();return(0,e.useEffect)((function(){o.forEach((function(t){t&&("function"==typeof t?t(i.current):t.current=i.current)}))}),[o]),i}})(),module.exports=n})();
@@ -1 +1 @@
1
- (()=>{"use strict";var t={9941:(t,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.withScroll=o.setTwoDirectionStickyPanelById=o.setTwoDirectionStickyPanel=o.scrollTo=o.sanitiseInputText=o.removeHtmlTags=o.isValidIconName=o.isValidIconElement=o.isUserLoggedIn=o.isTouchDevice=o.isMobileTablet=o.isMobilePortrait=o.isMobile=o.isMatchMedia=o.hasScrollReachedBottom=o.getBoundingClientInfo=o.formatNumber=o.escapeRegExp=o.detectOS=o.BREAKPOINTS=void 0;var n=e(3322),i={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};o.BREAKPOINTS=i;var r=function(t){return window.matchMedia(t).matches};o.isMatchMedia=r,o.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},o.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},o.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},o.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},o.detectOS=function(t){var o=t||navigator.userAgent,e=/(iPad).*OS\s([\d_]+)/.test(o);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(o)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(o)}},o.isUserLoggedIn=function(){var t,o=null===(t=(0,n.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(o&&o.length>1){var e=window.atob(o[1]).toString("ascii");if(JSON.parse(e).firstName)return!0}return!1};var s=function(t){if(t){var o=window.innerHeight-t.offsetHeight,e=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,o=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<e?r<0?t.style.top=r+e-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>o?t.style.top=r+e-window.scrollY+"px":r<o&&r!==o&&(t.style.top=o+"px"),e=window.scrollY}),{capture:!0,passive:!0})}};o.setTwoDirectionStickyPanel=s,o.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},o.hasScrollReachedBottom=function(t){if(!t)return!1;var o=t.scrollHeight,e=t.scrollTop,n=t.clientHeight,i=o-e;return i>=n-1&&i<=n+1},o.withScroll=function(t){if(!t)return!1;var o=t.scrollHeight,e=t.clientHeight;return!(o>=e-1&&o<=e+1)},o.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},o.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},o.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},o.isValidIconElement=function(t){var o;return"function"==typeof t&&"svg"===(null===(o=t())||void 0===o?void 0:o.type)},o.isValidIconName=function(t){return!!t&&"string"==typeof t},o.formatNumber=function(t,o){return t.toLocaleString("en-AU",{minimumFractionDigits:o,maximumFractionDigits:o})||0},o.scrollTo=function(t,o){"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:"smooth",top:o.top,left:o.left})},o.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}}},3322:(t,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.setSessionStorageJson=o.setSessionStorage=o.setCookieStorage=o.getSessionStorageJson=o.getSessionStorage=o.getCookieStorage=void 0;var e=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};o.getSessionStorage=function(t){if(t&&e())try{return window.sessionStorage.getItem(t)}catch(t){return}},o.setSessionStorage=function(t,o){if(t&&e())try{return window.sessionStorage.setItem(t,o)}catch(t){return}},o.getSessionStorageJson=function(t){if(t&&e())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},o.setSessionStorageJson=function(t,o){if(t&&e())try{return window.sessionStorage.setItem(t,JSON.stringify(o))}catch(t){return}},o.getCookieStorage=function(t){for(var o=t+"=",e=document.cookie.split(";"),n=0;n<e.length;n++){for(var i=e[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(o))return i.substring(o.length,i.length)}return null},o.setCookieStorage=function(t,o,e){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(o,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(e||86400)}}},o={};function e(n){var i=o[n];if(void 0!==i)return i.exports;var r=o[n]={exports:{}};return t[n](r,r.exports,e),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var o=e(9941),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};t.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,o.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},t.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,o.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}})(),module.exports=n})();
1
+ (()=>{"use strict";var t={9941:(t,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.escapeRegExp=o.detectOS=o.BREAKPOINTS=void 0,o.fetchDateInMilliseconds=function(){return(new Date).getTime()},o.getBoundingClientInfo=o.formatNumber=void 0,o.getDurationInMiliSeconds=function(t,o){return o-t},o.withScroll=o.setTwoDirectionStickyPanelById=o.setTwoDirectionStickyPanel=o.scrollTo=o.sanitiseInputText=o.removeHtmlTags=o.isValidIconName=o.isValidIconElement=o.isUserLoggedIn=o.isTouchDevice=o.isMobileTablet=o.isMobilePortrait=o.isMobile=o.isMatchMedia=o.hasScrollReachedBottom=o.getMonthName=o.getFormattedDate=void 0;var n=e(3322),i={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};o.BREAKPOINTS=i;var r=function(t){return window.matchMedia(t).matches};o.isMatchMedia=r,o.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},o.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},o.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},o.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},o.detectOS=function(t){var o=t||navigator.userAgent,e=/(iPad).*OS\s([\d_]+)/.test(o);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(o)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(o)}},o.isUserLoggedIn=function(){var t,o=null===(t=(0,n.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(o&&o.length>1){var e=window.atob(o[1]).toString("ascii");if(JSON.parse(e).firstName)return!0}return!1};var s=function(t){if(t){var o=window.innerHeight-t.offsetHeight,e=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,o=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<e?r<0?t.style.top=r+e-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>o?t.style.top=r+e-window.scrollY+"px":r<o&&r!==o&&(t.style.top=o+"px"),e=window.scrollY}),{capture:!0,passive:!0})}};o.setTwoDirectionStickyPanel=s,o.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},o.hasScrollReachedBottom=function(t){if(!t)return!1;var o=t.scrollHeight,e=t.scrollTop,n=t.clientHeight,i=o-e;return i>=n-1&&i<=n+1},o.withScroll=function(t){if(!t)return!1;var o=t.scrollHeight,e=t.clientHeight;return!(o>=e-1&&o<=e+1)},o.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},o.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},o.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},o.isValidIconElement=function(t){var o;return"function"==typeof t&&"svg"===(null===(o=t())||void 0===o?void 0:o.type)},o.isValidIconName=function(t){return!!t&&"string"==typeof t},o.formatNumber=function(t,o){return t.toLocaleString("en-AU",{minimumFractionDigits:o,maximumFractionDigits:o})||0},o.scrollTo=function(t,o){"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:"smooth",top:o.top,left:o.left})},o.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},o.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},o.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())}},3322:(t,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.setSessionStorageJson=o.setSessionStorage=o.setCookieStorage=o.getSessionStorageJson=o.getSessionStorage=o.getCookieStorage=void 0;var e=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};o.getSessionStorage=function(t){if(t&&e())try{return window.sessionStorage.getItem(t)}catch(t){return}},o.setSessionStorage=function(t,o){if(t&&e())try{return window.sessionStorage.setItem(t,o)}catch(t){return}},o.getSessionStorageJson=function(t){if(t&&e())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},o.setSessionStorageJson=function(t,o){if(t&&e())try{return window.sessionStorage.setItem(t,JSON.stringify(o))}catch(t){return}},o.getCookieStorage=function(t){for(var o=t+"=",e=document.cookie.split(";"),n=0;n<e.length;n++){for(var i=e[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(o))return i.substring(o.length,i.length)}return null},o.setCookieStorage=function(t,o,e){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(o,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(e||86400)}}},o={};function e(n){var i=o[n];if(void 0!==i)return i.exports;var r=o[n]={exports:{}};return t[n](r,r.exports,e),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var o=e(9941),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};t.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,o.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},t.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,o.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}})(),module.exports=n})();