@webjet/react 1.1.7 → 1.2.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.
- package/Dockerfile +1 -1
- package/components/autocomplete.js +1 -1
- package/components/button.js +1 -1
- package/components/carousel-content.js +1 -1
- package/components/carousel.js +1 -1
- package/components/checkbox-list.js +1 -1
- package/components/checkbox.js +1 -1
- package/components/checkmark.js +1 -1
- package/components/date-picker.js +1 -1
- package/components/date-range-picker.js +1 -1
- package/components/iframe-link.js +1 -1
- package/components/modal.js +1 -1
- package/components/page-loader.js +1 -1
- package/components/panel-with-scroll-fade.js +1 -1
- package/components/program-label.js +1 -1
- package/components/select.js +1 -1
- package/components/selectable-card.js +1 -1
- package/components/tab.js +1 -1
- package/components/textfield.js +1 -1
- package/components/two-direction-sticky-panel.js +1 -1
- package/components/user-review-panel.js +1 -1
- package/components/user-review.js +1 -1
- package/package.json +1 -4
- package/utils/common.js +1 -1
- package/utils/hooks.js +1 -1
- package/utils/scrollbar.js +1 -1
- package/components/month-picker.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var e={4959:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(8213)),i=o(n(3838)),a=o(n(6689)),l=(o(n(580)),n(4206)),d=["value","variant"],s=function(e){for(var t=e.value,n=e.variant,o=(0,i.default)(e,d),s=[],u=Math.min(parseFloat(t)||0,5),c=0;c<5;c++){var p=u-c,f=void 0;p>.5?f="full":p>0&&(f="half"),s.push(a.default.createElement("span",{key:c,role:"icon","data-value":f}))}return a.default.createElement(l.StyledQualityRating,(0,r.default)({},o,{variant:n,"data-testid":"quality-rating-container"}),s)};s.defaultProps={value:0,variant:"diamond"};var u=s;t.default=u},4206:function(e,t,n){var o=n(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledQualityRating=t.StyledLabel=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var d=i?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(r,l,d):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}(n(7518)),i=n(9193);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var l=r.default.span.withConfig({displayName:"QualityRatingstyle__StyledLabel",componentId:"sc-ydpfk8-0"})(["display:block;color:",";font-size:15px;margin-bottom:5px;margin-right:6px;line-height:1;white-space:nowrap;"],i.theme.color[10]);t.StyledLabel=l;var d=(0,r.css)(["width:65px;> span{font-family:",";font-size:13px;width:13px;height:13px;color:#feb42b;&[data-value=full]{&:after{content:'\\E019';}}&[data-value=half]{&:after{content:'\\E01A';}}}"],i.theme.fontFamily.icon),s=(0,r.css)(["width:58px;> span{width:10px;height:10px;margin-right:2px;background:",";border:1px solid ",";border-radius:10px;display:inline-block;&[data-value=full]{border-width:5px;background:",";}&[data-value=half]{border-left-width:5px;}}"],i.theme.color[11],i.theme.color[7],i.theme.color[7]),u=r.default.span.withConfig({displayName:"QualityRatingstyle__StyledQualityRating",componentId:"sc-ydpfk8-1"})(["height:20px;line-height:20px;vertical-align:middle;"," ",""],(function(e){return"diamond"===e.variant&&d}),(function(e){return"circle"===e.variant&&s}));t.StyledQualityRating=u},7702:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(4959)).default;t.default=r},3206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",firstDayOfWeek:1,weekFormat:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},9193:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=o(n(2594)),i=o(n(6932)),a=o(n(2098)),l=o(n(3206))},2098:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(7518),i=o(n(2594)),a={globalStyles:(0,r.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],warningBackground:n[23],warningText:n[8],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],noticeBackground:n[28],noticeText:n[10],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"3px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],warningBackground:n[23],warningText:n[8],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],noticeBackground:n[28],noticeText:n[10],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},8140:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(8213)),i=o(n(3838)),a=o(n(6689)),l=(o(n(580)),n(2433)),d=o(n(7702)),s=n(9941),u=["value","maxRatingValue","variant","quality","reviews","size","onClick"],c=function(e){var t=e.value,n=e.maxRatingValue,o=e.variant,c=e.quality,p=e.reviews,f=e.size,m=e.onClick,g=(0,i.default)(e,u),v="details"===o,y="compact"===o,h=v&&"sm"===f,x=Math.min(parseFloat(t)||0,n),w=Boolean(m);return a.default.createElement(l.StyledUserReviewSummary,(0,r.default)({},g,{isSmall:h,onClick:m,clickable:w,"data-testid":"user-review-container"}),v&&a.default.createElement(l.StyledUserRatingValue,{"data-testid":"user-review-value"},x.toFixed(1)),c&&v&&a.default.createElement(l.StyledLabel,{"data-testid":"user-review-quality"},c),y&&a.default.createElement(l.StyledUserRatingQuality,{"data-testid":"user-review-rating-quality"},"".concat(x.toFixed(1)," ").concat(c)),a.default.createElement("span",null,!y&&a.default.createElement(d.default,{value:t,variant:"circle",role:"quality-rating"}),p&&a.default.createElement(l.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total",isSmall:h,clickable:w},(0,s.formatNumber)(p,0)," reviews")))};c.defaultProps={value:0,maxRatingValue:5,variant:"summary",size:"lg"},c.component={name:"UserReview"};var p=c;t.default=p},2433:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewTotal=t.StyledUserReviewSummary=t.StyledUserRatingValue=t.StyledUserRatingQuality=t.StyledLabel=void 0;var r=o(n(7518)),i=n(9193),a=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingValue",componentId:"sc-1fjzoio-0"})(["color:",";font-size:40px;font-weight:700;padding-right:10px;line-height:34px;"],i.theme.color[10]);t.StyledUserRatingValue=a;var l=r.default.span.withConfig({displayName:"UserReviewstyle__StyledLabel",componentId:"sc-1fjzoio-1"})(["font-size:15px;position:absolute;top:1px;left:68px;color:",";"],i.theme.color[10]);t.StyledLabel=l;var d=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserReviewTotal",componentId:"sc-1fjzoio-2"})(["color:",";font-size:13px;line-height:1;white-space:nowrap;position:",";left:0;bottom:0;"],i.theme.color[8],(function(e){return e.isSmall?"absolute":"initial"}));t.StyledUserReviewTotal=d;var s=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingQuality",componentId:"sc-1fjzoio-3"})(["height:34px;padding:8px 12px;background:",";border-radius:12px;display:inline-flex;align-items:center;font-size:12px;font-weight:500;line-height:18px;color:#333333;margin-right:12px;&& ~ span [role='total-reviews']{color:#999999;font-size:12px;font-weight:400;line-height:18px;text-decoration:underline;}"],i.theme.color[1]);t.StyledUserRatingQuality=s;var u=r.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewSummary",componentId:"sc-1fjzoio-4"})([""," display:inline-block;position:relative;cursor:",";padding-bottom:",";text-align:initial;&:hover [role='total-reviews']{text-decoration:",";}[role='quality-rating']{margin-right:4px;}"],i.mixins.globalStyles,(function(e){return e.clickable?"pointer":"initial"}),(function(e){return e.isSmall?"17px":0}),(function(e){return e.clickable?"underline":"none"}));t.StyledUserReviewSummary=u},9941:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0;var o=n(3322),r={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=r;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!n&&/(iPhone\sOS)\s([\d_]+)/.test(t)||n,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,o.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var n=window.atob(t[1]).toString("ascii");if(JSON.parse(n).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,n=window.scrollY,o=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){o=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));r>o?window.scrollY<n?i<0?e.style.top=i+n-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+n-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"):e.style.top="0px",n=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0}},3322:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var n=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&n())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&n())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var r=n[o];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},t.setCookieStorage=function(e,t,n){var o=window.location.hostname,r="localhost"===o?o:o.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(n||86400)}},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},7518:function(e){e.exports=require("styled-components")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}var o={};!function(){var e=o,t=n(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(n(8140)).default;e.default=r}(),module.exports=o}();
|
|
1
|
+
!function(){"use strict";var e={4959:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(8213)),i=o(n(3838)),a=o(n(6689)),l=(o(n(580)),n(4206)),d=["value","variant"],s=function(e){for(var t=e.value,n=e.variant,o=(0,i.default)(e,d),s=[],u=Math.min(parseFloat(t)||0,5),c=0;c<5;c++){var p=u-c,f=void 0;p>.5?f="full":p>0&&(f="half"),s.push(a.default.createElement("span",{key:c,role:"icon","data-value":f}))}return a.default.createElement(l.StyledQualityRating,(0,r.default)({},o,{variant:n,"data-testid":"quality-rating-container"}),s)};s.defaultProps={value:0,variant:"diamond"};var u=s;t.default=u},4206:function(e,t,n){var o=n(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledQualityRating=t.StyledLabel=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var d=i?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(r,l,d):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}(n(7518)),i=n(9193);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var l=r.default.span.withConfig({displayName:"QualityRatingstyle__StyledLabel",componentId:"sc-ydpfk8-0"})(["display:block;color:",";font-size:15px;margin-bottom:5px;margin-right:6px;line-height:1;white-space:nowrap;"],i.theme.color[10]);t.StyledLabel=l;var d=(0,r.css)(["width:65px;> span{font-family:",";font-size:13px;width:13px;height:13px;color:#feb42b;&[data-value=full]{&:after{content:'\\E019';}}&[data-value=half]{&:after{content:'\\E01A';}}}"],i.theme.fontFamily.icon),s=(0,r.css)(["width:58px;> span{width:10px;height:10px;margin-right:2px;background:",";border:1px solid ",";border-radius:10px;display:inline-block;&[data-value=full]{border-width:5px;background:",";}&[data-value=half]{border-left-width:5px;}}"],i.theme.color[11],i.theme.color[7],i.theme.color[7]),u=r.default.span.withConfig({displayName:"QualityRatingstyle__StyledQualityRating",componentId:"sc-ydpfk8-1"})(["height:20px;line-height:20px;vertical-align:middle;"," ",""],(function(e){return"diamond"===e.variant&&d}),(function(e){return"circle"===e.variant&&s}));t.StyledQualityRating=u},7702:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(4959)).default;t.default=r},3206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",firstDayOfWeek:1,weekFormat:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},9193:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=o(n(2594)),i=o(n(6932)),a=o(n(2098)),l=o(n(3206))},2098:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(7518),i=o(n(2594)),a={globalStyles:(0,r.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],warningBackground:n[23],warningText:n[8],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],noticeBackground:n[28],noticeText:n[10],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"3px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],warningBackground:n[23],warningText:n[8],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],noticeBackground:n[28],noticeText:n[10],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},8140:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(8213)),i=o(n(3838)),a=o(n(6689)),l=(o(n(580)),n(2433)),d=o(n(7702)),s=n(9941),u=["value","maxRatingValue","variant","quality","reviews","size","onClick"],c=function(e){var t=e.value,n=e.maxRatingValue,o=e.variant,c=e.quality,p=e.reviews,f=e.size,m=e.onClick,g=(0,i.default)(e,u),v="details"===o,y="compact"===o,h=v&&"sm"===f,x=Math.min(parseFloat(t)||0,n),w=Boolean(m);return a.default.createElement(l.StyledUserReviewSummary,(0,r.default)({},g,{isSmall:h,onClick:m,clickable:w,"data-testid":"user-review-container"}),v&&a.default.createElement(l.StyledUserRatingValue,{"data-testid":"user-review-value"},x.toFixed(1)),c&&v&&a.default.createElement(l.StyledLabel,{"data-testid":"user-review-quality"},c),y&&a.default.createElement(l.StyledUserRatingQuality,{"data-testid":"user-review-rating-quality"},"".concat(x.toFixed(1)," ").concat(c)),a.default.createElement("span",null,!y&&a.default.createElement(d.default,{value:t,variant:"circle",role:"quality-rating"}),p&&a.default.createElement(l.StyledUserReviewTotal,{role:"total-reviews","data-testid":"user-review-total",isSmall:h,clickable:w},(0,s.formatNumber)(p,0)," reviews")))};c.defaultProps={value:0,maxRatingValue:5,variant:"summary",size:"lg"},c.component={name:"UserReview"};var p=c;t.default=p},2433:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledUserReviewTotal=t.StyledUserReviewSummary=t.StyledUserRatingValue=t.StyledUserRatingQuality=t.StyledLabel=void 0;var r=o(n(7518)),i=n(9193),a=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingValue",componentId:"sc-1fjzoio-0"})(["color:",";font-size:40px;font-weight:700;padding-right:10px;line-height:34px;"],i.theme.color[10]);t.StyledUserRatingValue=a;var l=r.default.span.withConfig({displayName:"UserReviewstyle__StyledLabel",componentId:"sc-1fjzoio-1"})(["font-size:15px;position:absolute;top:1px;left:68px;color:",";"],i.theme.color[10]);t.StyledLabel=l;var d=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserReviewTotal",componentId:"sc-1fjzoio-2"})(["color:",";font-size:13px;line-height:1;white-space:nowrap;position:",";left:0;bottom:0;"],i.theme.color[8],(function(e){return e.isSmall?"absolute":"initial"}));t.StyledUserReviewTotal=d;var s=r.default.span.withConfig({displayName:"UserReviewstyle__StyledUserRatingQuality",componentId:"sc-1fjzoio-3"})(["height:34px;padding:8px 12px;background:",";border-radius:12px;display:inline-flex;align-items:center;font-size:12px;font-weight:500;line-height:18px;color:#333333;margin-right:12px;&& ~ span [role='total-reviews']{color:#999999;font-size:12px;font-weight:400;line-height:18px;text-decoration:underline;}"],i.theme.color[1]);t.StyledUserRatingQuality=s;var u=r.default.div.withConfig({displayName:"UserReviewstyle__StyledUserReviewSummary",componentId:"sc-1fjzoio-4"})([""," display:inline-block;position:relative;cursor:",";padding-bottom:",";text-align:initial;&:hover [role='total-reviews']{text-decoration:",";}[role='quality-rating']{margin-right:4px;}"],i.mixins.globalStyles,(function(e){return e.clickable?"pointer":"initial"}),(function(e){return e.isSmall?"17px":0}),(function(e){return e.clickable?"underline":"none"}));t.StyledUserReviewSummary=u},9941:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0;var o=n(3322),r={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=r;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(r.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!n&&/(iPhone\sOS)\s([\d_]+)/.test(t)||n,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,o.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var n=window.atob(t[1]).toString("ascii");if(JSON.parse(n).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,n=window.scrollY,o=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){o=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));r>o?window.scrollY<n?i<0?e.style.top=i+n-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+n-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"):e.style.top="0px",n=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.scrollTop,o=e.clientHeight,r=t-n;return r>=o-1&&r<=o+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.clientHeight;return!(t>=n-1&&t<=n+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0}},3322:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var n=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&n())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&n())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&n())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var r=n[o];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},t.setCookieStorage=function(e,t,n){var o=window.location.hostname,r="localhost"===o?o:o.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(n||86400)}},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},7518:function(e){e.exports=require("styled-components")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}var o={};!function(){var e=o,t=n(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(n(8140)).default;e.default=r}(),module.exports=o}();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webjet/react",
|
|
3
3
|
"side-effects": false,
|
|
4
|
-
"version": "1.1
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"description": "Common react components",
|
|
6
6
|
"main": "components/index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -53,10 +53,7 @@
|
|
|
53
53
|
"react-select": "^4.3.1",
|
|
54
54
|
"react-slick": "^0.25.2",
|
|
55
55
|
"react-switch": "^5.0.1",
|
|
56
|
-
"react-tapper": "^0.1.20",
|
|
57
|
-
"reactjs-visibility": "^0.1.3",
|
|
58
56
|
"semantic-ui-react": "^2.0.3",
|
|
59
|
-
"styled-base-components": "^4.0.0",
|
|
60
57
|
"styled-components": "^5.1.1"
|
|
61
58
|
},
|
|
62
59
|
"devDependencies": {
|
package/utils/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t={3322:function(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={};!function(){var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobilePortrait=t.isMobile=t.isMatchMedia=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.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;",""));i>n?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"):t.style.top="0px",o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=s,t.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},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}}(),module.exports=n}();
|
|
1
|
+
!function(){"use strict";var t={3322:function(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={};!function(){var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.formatNumber=t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0;var 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;",""));i>n?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"):t.style.top="0px",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}}(),module.exports=n}();
|
package/utils/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t={9941:function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0}),e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.formatNumber=e.escapeRegExp=e.detectOS=e.BREAKPOINTS=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.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 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;",""));i>n?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"):t.style.top="0px",o=window.scrollY}),{capture:!0,passive:!0})}};e.setTwoDirectionStickyPanel=s,e.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},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}},3982:function(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:function(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:function(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={};!function(){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
|
+
!function(){"use strict";var t={9941:function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0}),e.withScroll=e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobileTablet=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.hasScrollReachedBottom=e.formatNumber=e.escapeRegExp=e.detectOS=e.BREAKPOINTS=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 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;",""));i>n?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"):t.style.top="0px",o=window.scrollY}),{capture:!0,passive:!0})}};e.setTwoDirectionStickyPanel=s,e.setTwoDirectionStickyPanelById=function(t){s(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}},3982:function(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:function(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:function(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={};!function(){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}();
|
package/utils/scrollbar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t={9941:function(t,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.setTwoDirectionStickyPanelById=o.setTwoDirectionStickyPanel=o.sanitiseInputText=o.removeHtmlTags=o.isValidIconName=o.isValidIconElement=o.isUserLoggedIn=o.isTouchDevice=o.isMobilePortrait=o.isMobile=o.isMatchMedia=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.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;",""));i>n?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"):t.style.top="0px",e=window.scrollY}),{capture:!0,passive:!0})}};o.setTwoDirectionStickyPanel=s,o.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},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}},3322:function(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={};!function(){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
|
+
!function(){"use strict";var t={9941:function(t,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.withScroll=o.setTwoDirectionStickyPanelById=o.setTwoDirectionStickyPanel=o.sanitiseInputText=o.removeHtmlTags=o.isValidIconName=o.isValidIconElement=o.isUserLoggedIn=o.isTouchDevice=o.isMobileTablet=o.isMobilePortrait=o.isMobile=o.isMatchMedia=o.hasScrollReachedBottom=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;",""));i>n?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"):t.style.top="0px",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}},3322:function(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={};!function(){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 +0,0 @@
|
|
|
1
|
-
!function(){"use strict";var e={3729:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var o=n(r(6689)),a=(n(r(580)),r(6202)),i=function(e){var t=e.children;return t&&o.default.createElement(a.ErrorMessage,{"data-testid":"error-message",role:"error-message"},t)};t.ErrorMessageField=i,i.defaultProps={children:null};var s=i;t.default=s},6202:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var o=n(r(7518)),a=r(9193),i=o.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;}}"],a.mixins.globalStyles,a.theme.validationColors.inputErrorBackground,a.theme.borderRadius,a.theme.validationColors.inputErrorText);t.ErrorMessage=i},2367:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(3729)).default;t.default=o},5715:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(7518)).default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:'WebjetIcons';display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],(function(e){var t=e.iconName;return a(t)})),a=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""},i=o;t.default=i},5900:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(8213)),a=n(r(3838)),i=n(r(6689)),s=(n(r(580)),n(r(5715))),l=["name"];t.default=function(e){var t=e.name,r=(0,a.default)(e,l);return i.default.createElement(s.default,(0,o.default)({iconName:t},r))}},8708:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(9293)),i=n(r(7537)),s=n(r(8765)),l=n(r(7431)),u=n(r(5370)),c=n(r(9548)),d=n(r(3761)),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(6689)),f=(n(r(580)),n(r(8015))),h=n(r(7998)),m=n(r(8283));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}var g=function(e){(0,u.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,d.default)(t);if(r){var o=(0,d.default)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,c.default)(this,e)});function o(e,t){var r;(0,i.default)(this,o);var a=C((r=n.call(this,e,t)).props.years),s=[0],u=r.validValues(r.props.range||r.props.value,a,s);return r.state={years:a,values:u,labelYears:[!1,!1],showed:r.props.show,closeable:r.props.show,yearIndexes:s,lastRange:r.props.range,lastValue:r.props.value},r.handleOverlayTouchTap=r.handleOverlayTouchTap.bind((0,l.default)(r)),r.handleClickMonth=r.handleClickMonth.bind((0,l.default)(r)),r.handleGoPrevYear=r.handleGoPrevYear.bind((0,l.default)(r)),r.handleGoNextYear=r.handleGoNextYear.bind((0,l.default)(r)),r._keyDown=r._keyDown.bind((0,l.default)(r)),r}return(0,s.default)(o,[{key:"validate",value:function(e,t,r,n){var o,a,i=(new Date).getFullYear();e&&"number"==typeof e.year&&e.year>w&&"number"==typeof e.month&&e.month>=1&&e.month<=12&&(o=e);for(var s=0;s<t.length;s++){if(o&&t[s].year===o.year)return n[r]=s,o;t[s].year===i&&(a=s)}return"number"==typeof a?(n[r]=a,{year:i}):{year:t[n[r]=t.length-1].year}}},{key:"validValues",value:function(e,t,r){if(!e)return[];if(e.from||e.to){var n=this.validate(e.from,t,0,r),o=this.validate(e.to,t,1,r);return(n.year>o.year||n.year===o.year&&n.month>o.month)&&(n.year=o.year,n.month=o.month,n.month<1&&(n.year--,n.month+=12)),[n,o]}return[this.validate(e,t,0,r)]}},{key:"value",value:function(){var e=this.state.values;return e.length>=2?{from:e[0],to:e[1]}:1===e.length?e[0]:{}}},{key:"componentDidUpdate",value:function(e){if(this.props.years!==e.years||this.props.range!==e.range||this.props.value!==e.value||this.props.show!==e.show){var t=C(this.props.years),r=this.state.yearIndexes,n=this.props.range||this.props.value,o=this.validValues(n,t,r);this.setState({years:t,values:o,labelYears:[!1,!1],yearIndexes:r,lastRange:this.props.range,lastValue:this.props.value,showed:this.props.show,closeable:this.props.show})}}},{key:"componentDidMount",value:function(){b&&document.addEventListener("keydown",this._keyDown)}},{key:"componentWillUnmount",value:function(){b&&document.removeEventListener("keydown",this._keyDown)}},{key:"optionPad",value:function(e){var t=this,r=this.state.values,n=r[e],o=this.state.labelYears,a=o[e]=o[e]||n.year,i=this.state.years,s=this.props.lang||[],l=Array.isArray(s)?s:Array.isArray(s.months)?s.months:[],u="",c="",d=i.length-1,f=this.state.yearIndexes[e];0===f&&(u="disable"),f===d&&(c="disable");var v=a===n.year,g=a===i[0].year,y=a===i[d].year,b=!1;r.length>1&&(b=r[1-e]);var w,k=0===e?"from":"to";b&&this.props.lang[k]&&(w=p.default.createElement("b",null,this.props.lang[k]));var E=this.props.disabledMonths;return p.default.createElement("div",{className:"rmp-pad",key:e},p.default.createElement("div",null,p.default.createElement("label",null,w,a),p.default.createElement("span",{className:["rmp-tab","rmp-btn","prev",u].join(" "),"data-id":e,onClick:this.handleGoPrevYear},p.default.createElement(h.default,null)),p.default.createElement("span",{className:["rmp-tab","rmp-btn","next",c].join(" "),"data-id":e,onClick:this.handleGoNextYear},p.default.createElement(m.default,null))),p.default.createElement("ul",null,x(12,(function(o){var s="",u=o+1;if(v&&u===n.month&&(s="active"),r.length>1&&0===e&&(a>n.year||a===n.year&&u>n.month)&&(s="select"),r.length>1&&1===e&&(a<n.year||a===n.year&&u<n.month)&&(s="select"),g&&u<i[0].min&&(s="disable"),y&&u>i[d].max&&(s="disable"),E&&Array.isArray(E)&&E.some((function(e){var t=e.year,r=e.month;return t===a&&r===u}))&&(s="disable"),b){var c=b.year,f=b.month||0,h=o+1;(c===a&&f&&(0===e&&h>f||1===e&&h<f)||c>a&&1===e||c<a&&0===e)&&(s="disable")}var m="disable"!==s?t.handleClickMonth:void 0;return p.default.createElement("li",{key:o,className:["rmp-btn",s].join(" "),"data-id":e+":"+(o+1),onClick:m},l.length>o?l[o]:o)}))))}},{key:"render",value:function(){var e=[],t="";return this.state.values.length>1?(e.push(this.optionPad(0),this.optionPad(1)),t="range"):e.push(this.optionPad(0)),p.default.createElement("div",{className:["month-picker",this.props.className].join(" ")},this.props.children,p.default.createElement("div",{className:["rmp-container","rmp-table",this.props.className,this.state.showed?"show":""].join(" ")},p.default.createElement(f.default,{className:"rmp-overlay",onTap:this.handleOverlayTouchTap}),p.default.createElement("div",{className:"rmp-cell"},p.default.createElement("div",{className:["rmp-popup",t,this.props.theme,this.state.showed?"show":""].join(" ")},e))))}},{key:"dismiss",value:function(){this.state.closeable&&this._onDismiss()}},{key:"show",value:function(){this._onShow()}},{key:"handleOverlayTouchTap",value:function(e){this.state.closeable&&(this._onDismiss(),this.props.onClickAway&&this.props.onClickAway(e))}},{key:"_onShow",value:function(){setTimeout(function(){this.state.closeable=!0}.bind(this),250),this.setState({showed:!0}),this.props.onShow&&this.props.onShow()}},{key:"_onDismiss",value:function(e){this.setState(Object.assign({showed:!1,loading:!1},e)),this.props.onDismiss&&this.props.onDismiss(this.value())}},{key:"handleClickMonth",value:function(e){if(this.state.showed){var t=this.getDID(e).split(":"),r=parseInt(t[0],10),n=parseInt(t[1],10),o=this.state.labelYears[r],a=this.state.values;a[r]={year:o,month:n},this.setState({values:a}),this.props.onChange(o,n,r)}}},{key:"handleGoPrevYear",value:function(e){var t=parseInt(this.getDID(e),10);this.state.yearIndexes[t]>0&&this.setYear(t,-1)}},{key:"handleGoNextYear",value:function(e){var t=parseInt(this.getDID(e),10);this.state.yearIndexes[t]<this.state.years.length-1&&this.setYear(t,1)}},{key:"setYear",value:function(e,t){var r=this.state.yearIndexes[e]+=t,n=this.state.labelYears,o=this.state.years[r].year;n[e]=o,this.setState({labelYears:n}),this.props.onYearChange&&this.props.onYearChange(o)}},{key:"getDID",value:function(e){var t=e.target;return t.dataset?t.dataset.id:t.getAttribute("data-id")}},{key:"_reset",value:function(){return{values:this.validValues(this.state.lastRange||this.state.lastValue,this.state.years,this.state.yearIndexes)}}},{key:"_keyDown",value:function(e){this.state.showed&&("Escape"===e.key?(this._onDismiss(this._reset()),e.stopPropagation()):"Enter"===e.key?(this._onDismiss(),e.stopPropagation()):this.state.values.length)}}]),o}(p.Component);g.defaultProps={years:E(5),onChange:function(){},theme:"light",show:!1};var y=g;t.default=y;var b="undefined"!=typeof window&&"undefined"!=typeof document,w=1;function x(e,t){for(var r=[],n=0;n<e;n++)r.push(t(n));return r}function k(e,t,r){var n="object"===(0,a.default)(e)&&e.year?{year:e.year,month:e.month}:{year:e};return n.min=t||1,n.max=r||12,n}function E(e,t){var r=(new Date).getFullYear();return e&&e>0&&e<1e3?t=t||r-e+1:(e&&e>=1e3&&(r=e),t?e=r-t+1:t=r-(e=5)+1),x(e,(function(e){return k(t+e)}))}function C(e){if(Array.isArray(e))return e.map((function(e,t){return k(e)}));if("object"===(0,a.default)(e)){var t=0,r=0,n=k(e.min),o=k(e.max);"number"==typeof n.year&&n.year>w&&(r=n.year),"number"==typeof o.year&&o.year>=r&&(t=o.year);var i=E(t,r),s=i.length-1;return s>=0&&(i[0].min=n.month||i[0].month,i[s].max=o.month||i[s].month),i}return E("number"==typeof e&&e>0?e:5)}},2401:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(7518)),i=r(9193),s=n(r(8708));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}var u=(0,a.default)(s.default).withConfig({displayName:"MonthPickerstyle__StyledMonthPicker",componentId:"sc-1imy89q-0"})((function(e){var t=e.width;return(0,a.css)([""," box-shadow:",";position:absolute;z-index:99999;top:24px;min-width:200px;width:","px;.rmp-pad{> div{position:relative;display:flex;align-items:center;justify-content:center;background:#DFDFDF;height:50px;line-height:50px;font-size:16px;font-weight:700;color:#333333;label{font-weight:bold;}.rmp-btn{position:absolute;top:0;height:100%;width:50px;line-height:50px;cursor:pointer;font-family:'WebjetIcons';font-style:normal;font-weight:normal;font-size:0;&.prev{left:0;&:before{content:'\\E00C';font-size:32px;}}&.next{text-align:right;right:0;&:before{content:'\\E00A';font-size:32px;}}&:hover{opacity:0.8;}&.disable,&.disable:hover{color:#999;cursor:default;opacity:0;}&:focus{outline:none;}}}> ul{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;width:100%;padding:6px;margin:0;background:#F5F5F5;box-sizing:border-box;li{cursor:pointer;padding:12px 6px;flex:1 0 25%;align-self:center;list-style-type:none;background:#EBEBEB;text-align:center;margin:1px;text-transform:uppercase;font-size:14px;font-weight:500;&:hover,&.active{background-color:rgba(255,140,0,0.8);color:#fff;}&:focus{outline:none;}&.disable,&.disable:hover{background:#EBEBEB;color:#cccccc;cursor:default;opacity:1;}}}}"],i.mixins.globalStyles,i.theme.dropdownShadow,t>0?t:"300")}));t.default=u},6709:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(353)),i=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={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(6689)),s=n(r(9003)),l=(n(r(580)),n(r(869))),u=n(r(5324)),c=n(r(3166)),d=n(r(2401)),p=n(r(6551));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 h=function(e){var t=e.placeholder,r=e.min,n=e.max,o=e.onSelect,f=e.icon,h=e.iconColor,m=e.iconBackground,v=e.width,g=e.state,y=e.className,b=e.id,w=e.defaultValue,x=e.disabledMonths,k=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],E={min:r,max:n},C=(0,i.useState)(!1),B=(0,a.default)(C,2),S=B[0],j=B[1],I=(0,i.useState)(w),O=(0,a.default)(I,2),F=O[0],M=O[1],D=f||l.default,P=function(){j(!1)},_=function(e,t,r){M({year:e,month:t}),o&&o(e,t),r||j(!1)};return i.default.createElement(u.default,{onClickOutside:P},(function(e){return i.default.createElement(p.default,{id:b,className:y,width:v},i.default.createElement(c.default,{readOnly:!0,ref:e,placeholder:t,state:g,value:(r=F.month,n=F.year,n&&r?"".concat(k[r-1]," ").concat(n):""),icon:D,iconColor:h,iconBackground:m,onClick:function(){return j(!0)},onFocus:function(){return j(!0)},onChange:function(){_(0,0,!0)}}),i.default.createElement("div",{ref:e,className:(0,s.default)({"month-picker-show":S},{"month-picker-hidden":!S})},i.default.createElement(d.default,{width:v,show:!0,lang:k,years:E,value:F,onChange:_,onDismiss:P,disabledMonths:x})));var r,n}))};h.defaultProps={placeholder:"Select month",className:"",max:{year:2100,month:12},min:{year:1900,month:1},width:0,defaultValue:{},disabledMonths:[]};var m=h;t.default=m},6551:function(e,t,r){var n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),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=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,r&&r.set(e,o),o}(r(7518));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}var i=o.default.div.withConfig({displayName:"MonthPickerInputstyle__StyledMonthPicker",componentId:"sc-yaip1w-0"})((function(e){var t=e.width;return(0,o.css)(["position:relative;min-width:200px;width:",";.month-picker-hidden{display:none;}.month-picker-show{display:block;}"],t&&t>0?t+"px":"100%")}));t.default=i},3206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",firstDayOfWeek:1,weekFormat:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},9193:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return a.default}});var o=n(r(2594)),a=n(r(6932)),i=n(r(2098)),s=n(r(3206))},2098:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(7518),a=n(r(2594)),i={globalStyles:(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],a.default.fontFamily.primary,a.default.fontSize,a.default.fontColor)};t.default=i},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],warningBackground:r[23],warningText:r[8],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],noticeBackground:r[28],noticeText:r[10],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"3px",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],warningBackground:r[23],warningText:r[8],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],noticeBackground:r[28],noticeText:r[10],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},2813:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(8213)),i=n(r(353)),s=n(r(3838)),l=h(r(6689)),u=(n(r(580)),n(r(2367))),c=h(r(1669)),d=r(9941),p=["maxLength","type","className","hasClearBtn","value","icon","iconColor","iconBackground","onChange","onClearBtnClick","size","state","errorMessage","disabled"];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)}function h(e,t){if(!t&&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={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var m=l.default.forwardRef((function(e,t){var r=e.maxLength,n=e.type,o=e.className,f=e.hasClearBtn,h=e.value,m=e.icon,v=e.iconColor,g=e.iconBackground,y=e.onChange,b=(e.onClearBtnClick,e.size),w=e.state,x=e.errorMessage,k=e.disabled,E=(0,s.default)(e,p),C=(0,l.useState)(Boolean(h)),B=(0,i.default)(C,2),S=B[0],j=B[1];(0,l.useEffect)((function(){return j(h)}),[h]);var I=!!(0,d.isValidIconElement)(m)&&m,O=!!(0,d.isValidIconName)(m)&&m,F=r;r=512;var M=l.default.createRef();return l.default.createElement(l.default.Fragment,null,l.default.createElement(c.InputWrapper,{ref:t,className:o,state:w,disabled:k},l.default.createElement(c.default,(0,a.default)({type:"text",ref:M,icon:I||O,value:S,onChange:function(e){var t=e.target.value;if("number"===n&&!/^\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>F&&(t=t.substring(0,F)),j(t),y&&y(t)},size:b,state:w,disabled:k},E)),f&&S&&!k&&l.default.createElement(c.ClearBtnIcon,{"data-testid":"clear-icon",role:"input-clear",onClick:function(e){j(""),y&&y(""),M.current.focus()}}),I&&l.default.createElement(c.InputSvgIcon,{iconColor:v,iconBackground:g,"data-testid":"input-icon",role:"input-icon"},l.default.createElement(I,null)),!I&&O&&l.default.createElement(c.InputIcon,{"data-testid":"input-icon",name:O,iconColor:v,iconBackground:g,size:b,role:"input-icon"})),"error"===w&&x&&l.default.createElement(u.default,null,x))}));m.defaultProps={value:"",hasClearBtn:!0,type:"text",maxLength:512,size:"lg",state:"initial",errorMessage:null};var v=m;t.default=v},1669:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.InputWrapper=t.InputSvgIcon=t.InputIcon=t.ClearBtnIcon=void 0;var a=n(r(5900)),i=n(r(3682)),s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(7518)),l=r(9193),u=r(8903);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var d=(0,s.default)(i.default).withConfig({displayName:"Textfieldstyle__ClearBtnIcon",componentId:"sc-13wk8xr-0"})(["position:absolute;top:50%;right:6px;transform:translateY(-50%);fill:",";font-size:16px;padding-right:inherit;cursor:pointer;"],l.theme.inputCrossBtn);t.ClearBtnIcon=d;var p=(0,s.default)(a.default).withConfig({displayName:"Textfieldstyle__InputIcon",componentId:"sc-13wk8xr-1"})((function(e){var t=e.iconColor,r=e.iconBackground,n=e.size,o=(0,u.isSizeSm)(n),a=(0,u.isSizeXs)(n);return(0,s.css)(["box-sizing:border-box;position:absolute;top:0;left:0;background:",";color:",";font-size:32px;width:50px;height:50px;line-height:50px;border:1px solid ",";border-top-left-radius:3px;border-bottom-left-radius:3px;text-align:center;display:block;pointer-events:none;"," "," ",""],l.theme.color[2],l.theme.inputIcon,l.theme.color[4],(o||a)&&(0,s.css)(["width:40px;height:40px;line-height:40px;"]),t&&(0,s.css)(["color:",";"],t),r&&(0,s.css)(["background:",";"],r))}));t.InputIcon=p;var f=s.default.span.withConfig({displayName:"Textfieldstyle__InputSvgIcon",componentId:"sc-13wk8xr-2"})((function(e){var t=e.iconColor,r=e.iconBackground,n=e.size,o=(0,u.isSizeSm)(n),a=(0,u.isSizeXs)(n);return(0,s.css)(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;position:absolute;top:0;left:0;background:",";font-size:32px;width:50px;height:50px;border:1px solid ",";border-top-left-radius:3px;border-bottom-left-radius:3px;pointer-events:none;"," "," svg{fill:",";}"],l.theme.color[2],l.theme.color[4],(o||a)&&(0,s.css)(["width:40px;height:40px;line-height:40px;"]),r&&(0,s.css)(["background:",";"],r),t||l.theme.inputIcon)}));t.InputSvgIcon=f;var h=s.default.input.withConfig({displayName:"Textfieldstyle__StyledTextfield",componentId:"sc-13wk8xr-3"})((function(e){var t=e.disabled,r=e.icon,n=e.size,o=(0,u.isSizeSm)(n),a=(0,u.isSizeXs)(n);return(0,s.css)([""," appearance:none;font-size:16px;height:50px;line-height:normal;padding:0 28px 0 9px;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:",";}"," "," "," "," ",""],l.mixins.globalStyles,l.theme.borderRadius,l.theme.color[11],l.theme.color[4],(o||a)&&(0,s.css)(["height:40px;"]),l.theme.color[6],!t&&(0,s.css)(["&:active,&:focus{background:",";}&:focus{box-shadow:",";}"],l.theme.inputHoverBackground,l.theme.activeItemOutline),t&&(0,s.css)(["box-shadow:none;opacity:0.5;cursor:not-allowed;~ ","{opacity:0.5;}"],p),r&&(0,s.css)(["padding-left:59px;",""],!t&&(0,s.css)(["&:focus{~ ","{background:",";}}"],p,l.theme.btnStandardHover)),(function(e){return"error"===e.state&&(0,s.css)(["&&:focus,&&:active{background-color:",";~ ","{background:",";}}"],l.theme.validationColors.inputErrorHoverBackground,p,l.theme.validationColors.inputErrorIconHoverBackground)}),(function(e){return"success"===e.state&&(0,s.css)(["&&:active,&&:focus{filter:brightness(97%);background:",";}"],l.theme.successBackground)}))})),m=s.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,s.css)(["","{background-color:",";color:",";}","{background:",";color:",";}","{background:",";svg{fill:",";}}&&&:hover{","{background-color:",";}","{background:",";}","{background:",";}}"],h,l.theme.validationColors.inputErrorBackground,l.theme.validationColors.inputErrorText,p,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,f,l.theme.validationColors.inputErrorIconBackground,l.theme.validationColors.inputErrorIcon,h,l.theme.validationColors.inputErrorHoverBackground,p,l.theme.validationColors.inputErrorIconHoverBackground,f,l.theme.validationColors.inputErrorIconHoverBackground)}),(function(e){return"success"===e.state&&(0,s.css)(["","{background:",";color:",";}&&&:hover{","{filter:brightness(97%);background:",";}}"],h,l.theme.successBackground,l.theme.successText,h,l.theme.successBackground)}),(function(e){return!e.disabled&&(0,s.css)(["&&:hover{","{background:",";}","{background:",";}","{background:",";}}"],h,l.theme.inputHoverBackground,p,l.theme.btnStandardHover,f,l.theme.btnStandardHover)}));t.InputWrapper=m;var v=h;t.default=v},3166:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2813)).default;t.default=o},5324:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(353)),a=r(6689),i=n(r(580)),s=function(e){var t=e.isClicked,r=e.onClickOutside,n=e.children,i=(0,a.useState)(t),s=(0,o.default)(i,2),l=s[0],u=s[1],c=[],d=["modal"];(0,a.useEffect)((function(){return document.addEventListener("mousedown",p),document.addEventListener("touchstart",p),document.addEventListener("focusin",p),function(){document.removeEventListener("mousedown",p),document.removeEventListener("touchstart",p),document.removeEventListener("focusin",p)}}),[]);var p=function(e){d.includes(e.target.className)||f(e.target)},f=function(e){c&&Array.isArray(c)&&c.every((function(t){return!t.contains(e)}))?(u(!0),"function"==typeof r&&r()):u(!1)};return n((function(e){e&&c.push(e)}),l)};s.defaultProps={isClicked:!1},s.propTypes={isClicked:i.default.bool,children:i.default.func.isRequired};var l=s;t.default=l},9941:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobilePortrait=t.isMobile=t.isMatchMedia=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 a=function(e){return window.matchMedia(e).matches};t.isMatchMedia=a,t.isMobile=function(){return a("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobilePortrait=function(){return a("(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 i=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 a=parseInt(e.style.top.replace("px;",""));o>n?window.scrollY<r?a<0?e.style.top=a+r-window.scrollY+"px":a>=0&&0!==a&&(e.style.top="0px"):a>t?e.style.top=a+r-window.scrollY+"px":a<t&&a!==t&&(e.style.top=t+"px"):e.style.top="0px",r=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=i,t.setTwoDirectionStickyPanelById=function(e){i(document.getElementById(e))},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0}},8903:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},3322:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var 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)}},7431:function(e){e.exports=require("@babel/runtime/helpers/assertThisInitialized")},7537:function(e){e.exports=require("@babel/runtime/helpers/classCallCheck")},8765:function(e){e.exports=require("@babel/runtime/helpers/createClass")},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},3761:function(e){e.exports=require("@babel/runtime/helpers/getPrototypeOf")},5370:function(e){e.exports=require("@babel/runtime/helpers/inherits")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9548:function(e){e.exports=require("@babel/runtime/helpers/possibleConstructorReturn")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},7998:function(e){e.exports=require("@webjet/react-icons/common/arrow-left")},8283:function(e){e.exports=require("@webjet/react-icons/common/arrow-right")},3682:function(e){e.exports=require("@webjet/react-icons/common/x-circle-fill")},869:function(e){e.exports=require("@webjet/react-icons/widget/calendar")},9003:function(e){e.exports=require("classnames")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},8015:function(e){e.exports=require("react-tapper")},7518:function(e){e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}var n={};!function(){var e=n,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MonthPickerInput",{enumerable:!0,get:function(){return o.default}});var o=t(r(6709))}(),module.exports=n}();
|