@webjet/react 3.0.3 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion.js +1 -1
- package/components/anchor-link.js +1 -1
- package/components/autocomplete.js +1 -1
- package/components/banner.js +1 -1
- package/components/button.js +1 -1
- package/components/card.js +1 -1
- package/components/carousel-content.js +1 -1
- package/components/carousel.js +1 -1
- package/components/checkbox-list.js +1 -1
- package/components/checkbox.js +1 -1
- package/components/checklist.js +1 -1
- package/components/checkmark.js +1 -1
- package/components/countdown.js +1 -1
- package/components/currency-formatter.js +1 -1
- package/components/date-picker-input.js +1 -1
- package/components/date-picker.js +1 -1
- package/components/date-range-picker-input.js +1 -1
- package/components/date-range-picker.js +1 -1
- package/components/error-message-field.js +1 -1
- package/components/flight-card-footer.js +1 -1
- package/components/flight-card-header.js +1 -1
- package/components/flight-card-info.js +1 -1
- package/components/floating-panel.js +1 -1
- package/components/icon.js +1 -1
- package/components/if.js +1 -1
- package/components/iframe-link.js +1 -1
- package/components/image.js +1 -1
- package/components/info-modal.js +1 -1
- package/components/label.js +1 -1
- package/components/linear-loader.js +1 -1
- package/components/link.js +1 -1
- package/components/media-query.js +1 -1
- package/components/modal.js +1 -1
- package/components/notification.js +1 -1
- package/components/number-stepper.js +1 -1
- package/components/page-loader.js +1 -1
- package/components/pagination.js +1 -1
- package/components/panel-with-scroll-fade.js +1 -1
- package/components/payment-breakdown.js +1 -1
- package/components/pills.js +1 -1
- package/components/program-label.js +1 -1
- package/components/quality-rating-filter.js +1 -1
- package/components/quality-rating.js +1 -1
- package/components/radios.js +1 -1
- package/components/rating.js +1 -1
- package/components/react-container-query.js +1 -1
- package/components/render-count.js +1 -1
- package/components/select.js +1 -1
- package/components/selectable-card.js +1 -1
- package/components/settings.js +1 -1
- package/components/slider.js +1 -1
- package/components/spinner.js +1 -1
- package/components/split-test.js +1 -0
- package/components/tab.js +1 -1
- package/components/textarea.js +1 -1
- package/components/textfield-button.js +1 -1
- package/components/textfield.js +1 -1
- package/components/toggle.js +1 -1
- package/components/tooltip-modal.js +1 -0
- package/components/tooltip.js +1 -1
- package/components/two-direction-sticky-panel.js +1 -1
- package/components/user-review-details.js +1 -1
- package/components/user-review-filter.js +1 -1
- package/components/user-review-panel.js +1 -1
- package/components/user-review.js +1 -1
- package/components/utility-panel.js +1 -1
- package/components/with-click-outside.js +1 -1
- package/package.json +8 -8
- package/utils/common.js +1 -1
- package/utils/ga.js +1 -1
- package/utils/hooks.js +1 -1
- package/utils/scrollbar.js +1 -1
- package/utils/splitTest.js +1 -0
package/components/checkbox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={2064:(e,t,o)=>{var r=o(7880),n=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(8213)),a=r(o(353)),c=r(o(3838)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var o=g(t);if(o&&o.has(e))return o.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(r,a,c):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(6689)),d=o(8684),s=(r(o(580)),r(o(1981))),u=o(2410),p=o(533),f=o(9941),b=["className","checked","onChange","children","name","value","disabled","defaultChecked","description"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(g=function(e){return e?o:t})(e)}var h=function(e){var t=e.className,o=e.checked,r=e.onChange,n=e.children,g=e.name,h=e.value,m=e.disabled,v=e.defaultChecked,y=e.description,x=(0,c.default)(e,b),w=(0,l.useState)(Boolean(v||o)),F=(0,a.default)(w,2),k=F[0],E=F[1],B="checkbox",C={component:B,label:"".concat(h||g),checked:k,description:(0,l.isValidElement)(y)?(0,f.removeHtmlTags)((0,d.renderToString)(y)):y};return l.default.createElement(u.Wrapper,(0,i.default)({className:t},(0,p.gaAttributes)(C)),l.default.createElement(u.Input,(0,i.default)({"data-testid":B,role:B,type:B,name:g,defaultChecked:v,checked:o,disabled:m,onChange:function(e){E(!k),r&&r(e)},value:h},x)),n&&l.default.createElement(u.Label,{"data-testid":"checkbox-label",role:"checkbox-label"},l.default.createElement(s.default,null),n))};h.defaultProps={className:"wj-checkbox",children:null};var m=h;t.default=m},2410:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=t.Label=t.Input=void 0;var n=r(o(7518)),i=o(9193),a=i.theme.color[8],c=i.theme.color[6],l=i.theme.color[10],d=i.theme.color[11],s=i.theme.color[10],u=i.theme.inputHoverBackground,p=n.default.label.withConfig({displayName:"Checkboxstyle__Wrapper",componentId:"sc-41p20y-0"})(["display:inline-block;-webkit-tap-highlight-color:transparent;cursor:pointer;"]);t.Wrapper=p;var f=n.default.input.withConfig({displayName:"Checkboxstyle__Input",componentId:"sc-41p20y-1"})([""," opacity:0;position:absolute;"],i.mixins.globalStyles);t.Input=f;var b=n.default.span.withConfig({displayName:"Checkboxstyle__Label",componentId:"sc-41p20y-2"})([""," padding:0 "," 0 32px;color:",";font-size:14px;position:relative;display:inline-block;line-height:20px;&:before{display:inline-block;pointer-events:none;box-sizing:border-box;content:'';width:20px;height:20px;background:",";border:1px solid ",";border-radius:",";position:absolute;left:0;top:0;}svg{display:none;position:absolute;left:2px;top:2px;font-size:16px;}input:enabled + &:active{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:focus + &:before{background:",";box-shadow:0 0 0 4px rgba(135,135,135,0.75);transition:box-shadow 0.2s ease-in-out;}input:checked + &{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:disabled + &{opacity:0.5;cursor:not-allowed;&:before{opacity:0.4;}}&:hover:before{background:",";}input:checked + &:hover:before{background:",";}input:disabled + &:hover:before{background:",";}input:disabled:checked + &:hover:before{background:",";}"],i.mixins.globalStyles,i.theme.gutterWidth,i.theme.color[10],d,s,i.theme.borderRadius,i.theme.color[5],i.theme.color[8],i.theme.color[11],u,a,c,i.theme.color[11],u,l,d,a);t.Label=b},3206:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},9193:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=r(o(2594)),i=r(o(6932)),a=r(o(2098)),c=r(o(3206)),l=r(o(5799))},2098:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(7518),i=r(o(2594)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},2594:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},9941:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var r=o(3322),n={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,r.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,r=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,n=e.offsetHeight})),document.addEventListener("scroll",(function(){n=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||n<=r?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,r=e.clientHeight,n=t-o;return n>=r-1&&n<=r+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},533:(e,t,o)=>{var r=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var n=r(o(8779)),i=r(o(353));function a(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var o=(0,i.default)(e,2),r=o[0],n=o[1];null!=n&&(t["data-ga-".concat(r)]=String(n))})),t},t.pushGAEvent=function(e,t){var o=window.dataLayer;e&&o&&o.push(c(e,t))};var c=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){(0,n.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({event:e},t)}},3322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},t.setCookieStorage=function(e,t,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||86400)}},8779:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},1981:e=>{e.exports=require("@webjet/react-icons/check")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},8684:e=>{e.exports=require("react-dom/server")},7518:e=>{e.exports=require("styled-components")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}var r={};(()=>{var e=r,t=o(7880);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}});var n=t(o(2064))})(),module.exports=r})();
|
|
1
|
+
(()=>{"use strict";var e={3873:(e,t,o)=>{var r=o(3751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(6031)),a=r(o(7826)),c=r(o(2462)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var o=g(t);if(o&&o.has(e))return o.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(r,a,c):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(2015)),d=o(4468),s=(r(o(9825)),r(o(8845))),u=o(2862),p=o(7236),f=o(3465),b=["className","checked","onChange","children","name","value","disabled","defaultChecked","description"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(g=function(e){return e?o:t})(e)}var h=function(e){var t=e.className,o=e.checked,r=e.onChange,n=e.children,g=e.name,h=e.value,m=e.disabled,v=e.defaultChecked,y=e.description,x=(0,c.default)(e,b),w=(0,l.useState)(Boolean(v||o)),F=(0,a.default)(w,2),k=F[0],E=F[1],B="checkbox",C={component:B,label:"".concat(h||g),checked:k,description:(0,l.isValidElement)(y)?(0,f.removeHtmlTags)((0,d.renderToString)(y)):y};return l.default.createElement(u.Wrapper,(0,i.default)({className:t},(0,p.gaAttributes)(C)),l.default.createElement(u.Input,(0,i.default)({"data-testid":B,role:B,type:B,name:g,defaultChecked:v,checked:o,disabled:m,onChange:function(e){E(!k),r&&r(e)},value:h},x)),n&&l.default.createElement(u.Label,{"data-testid":"checkbox-label",role:"checkbox-label"},l.default.createElement(s.default,null),n))};h.defaultProps={className:"wj-checkbox",children:null};var m=h;t.default=m},2862:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=t.Label=t.Input=void 0;var n=r(o(2770)),i=o(3290),a=i.theme.color[8],c=i.theme.color[6],l=i.theme.color[10],d=i.theme.color[11],s=i.theme.color[10],u=i.theme.inputHoverBackground,p=n.default.label.withConfig({displayName:"Checkboxstyle__Wrapper",componentId:"sc-41p20y-0"})(["display:inline-block;-webkit-tap-highlight-color:transparent;cursor:pointer;"]);t.Wrapper=p;var f=n.default.input.withConfig({displayName:"Checkboxstyle__Input",componentId:"sc-41p20y-1"})([""," opacity:0;position:absolute;"],i.mixins.globalStyles);t.Input=f;var b=n.default.span.withConfig({displayName:"Checkboxstyle__Label",componentId:"sc-41p20y-2"})([""," padding:0 "," 0 32px;color:",";font-size:14px;position:relative;display:inline-block;line-height:20px;&:before{display:inline-block;pointer-events:none;box-sizing:border-box;content:'';width:20px;height:20px;background:",";border:1px solid ",";border-radius:",";position:absolute;left:0;top:0;}svg{display:none;position:absolute;left:2px;top:2px;font-size:16px;}input:enabled + &:active{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:focus + &:before{background:",";box-shadow:0 0 0 4px rgba(135,135,135,0.75);transition:box-shadow 0.2s ease-in-out;}input:checked + &{&:before{background:",";border-color:",";}svg{display:block;fill:",";}}input:disabled + &{opacity:0.5;cursor:not-allowed;&:before{opacity:0.4;}}&:hover:before{background:",";}input:checked + &:hover:before{background:",";}input:disabled + &:hover:before{background:",";}input:disabled:checked + &:hover:before{background:",";}"],i.mixins.globalStyles,i.theme.gutterWidth,i.theme.color[10],d,s,i.theme.borderRadius,i.theme.color[5],i.theme.color[8],i.theme.color[11],u,a,c,i.theme.color[11],u,l,d,a);t.Label=b},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=r(o(1267)),i=r(o(492)),a=r(o(9098)),c=r(o(9090)),l=r(o(5050))},9098:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(2770),i=r(o(1267)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var r=o(4513),n={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=n;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,r.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var a=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,r=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,n=e.offsetHeight})),document.addEventListener("scroll",(function(){n=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||n<=r?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=a,t.setTwoDirectionStickyPanelById=function(e){a(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,r=e.clientHeight,n=t-o;return n>=r-1&&n<=r+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},7236:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var n=r(o(1116)),i=r(o(7826));function a(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var o=(0,i.default)(e,2),r=o[0],n=o[1];null!=n&&(t["data-ga-".concat(r)]=String(n))})),t},t.pushGAEvent=function(e,t){var o=window.dataLayer;e&&o&&o.push(c(e,t))};var c=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){(0,n.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({event:e},t)}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},t.setCookieStorage=function(e,t,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||86400)}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},8845:e=>{e.exports=require("@webjet/react-icons/check")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},4468:e=>{e.exports=require("react-dom/server")},2770:e=>{e.exports=require("styled-components")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}var r={};(()=>{var e=r,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}});var n=t(o(3873))})(),module.exports=r})();
|
package/components/checklist.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={3665:(e,t,r)=>{var i=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(6031)),a=i(r(2462)),o=i(r(2015)),l=(i(r(9825)),r(3840)),s=i(r(7447)),p=r(1582),d=["data","variant"],c=function(e){var t=e.data,r=e.variant,i=(0,a.default)(e,d);return t?o.default.createElement(p.StyledList,(0,n.default)({variant:r},i),(t||[]).map((function(e,t){var r=e||{},i=r.icon,n=r.text,a=r.type,d=r.customComponent,c=i&&i.toLowerCase();return(n&&n[0]||d)&&o.default.createElement(p.StyledListItem,{key:"".concat(t),role:"list-item-".concat(c)},"tick"===c&&o.default.createElement(p.TickIcon,null),"cross"===c&&o.default.createElement(p.CrossIcon,null),o.default.createElement(p.StyledListItemWrapper,null,d||(n||[]).map((function(e,t){var r={__html:e=s.default.sanitize(l.marked.parseInline(e,{breaks:!0}))};return o.default.createElement(o.default.Fragment,{key:"".concat(t)},o.default.createElement("span",{dangerouslySetInnerHTML:r}),"MealAndMovie"===a&&o.default.createElement(p.StyledIconWrapper,null,o.default.createElement("span",{className:"wj-icon wj-food"}),o.default.createElement("span",{className:"wj-icon wj-entertainment"})))}))))}))):null};c.defaultProps={variant:"standard"};var u=c;t.default=u},1582:(e,t,r)=>{var i=r(3751),n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.TickIcon=t.StyledListItemWrapper=t.StyledListItem=t.StyledList=t.StyledIconWrapper=t.CrossIcon=void 0;var a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}(r(2770)),o=i(r(8298)),l=i(r(9133));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var p=a.default.li.withConfig({displayName:"Checkliststyle__StyledListItem",componentId:"sc-9v20ii-0"})(["position:relative;font-size:14px;line-height:21px;color:#333333;padding:1px 0;list-style-position:outside;em{font-style:normal;font-weight:500;color:#2DB300;}strong em{font-size:14px;font-weight:700;}"]);t.StyledListItem=p;var d=a.default.div.withConfig({displayName:"Checkliststyle__StyledListItemWrapper",componentId:"sc-9v20ii-1"})(["display:inline-block;padding-left:23px;line-height:16px;span{padding-right:3px;}span + span{font-size:12px;}"]);t.StyledListItemWrapper=d;var c=(0,a.default)(o.default).withConfig({displayName:"Checkliststyle__TickIcon",componentId:"sc-9v20ii-2"})(["margin:2px 8px 0 0;position:absolute;font-size:16px;fill:#2AA200;"]);t.TickIcon=c;var u=(0,a.default)(l.default).withConfig({displayName:"Checkliststyle__CrossIcon",componentId:"sc-9v20ii-3"})(["margin:2px 8px 0 0;position:absolute;font-size:16px;fill:#C00900;"]);t.CrossIcon=u;var f=a.default.span.withConfig({displayName:"Checkliststyle__StyledIconWrapper",componentId:"sc-9v20ii-4"})(["position:relative;padding-left:3px;.wj-icon{width:22px;padding-right:6px;color:#878787;padding:0;}.wj-entertainment{top:-2px;right:3px;}"]);t.StyledIconWrapper=f;var m=a.default.ul.withConfig({displayName:"Checkliststyle__StyledList",componentId:"sc-9v20ii-5"})(['font-family:"Roboto",Arial,sans-serif;list-style:none;line-height:130%;margin:0;',""],(function(e){return"highlight"===e.variant&&(0,a.css)(["display:flex;flex-flow:column;align-items:flex-start;padding:0;","{display:inline-flex;align-items:center;position:static;background:#33333304;color:#333333;min-height:22px;font-size:12px;font-weight:400;line-height:20px;padding:0 4px 0 4px;border-radius:4px;margin-bottom:4px;&:last-child{margin-bottom:0;}&[role='list-item-tick']{background:#2DB30010;}}","{em,a{font-size:10px;font-weight:400;color:#333;}}",",","{margin-top:0;}"],p,d,c,u)}));t.StyledList=m},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9133:e=>{e.exports=require("@webjet/react-icons/common/cross")},8298:e=>{e.exports=require("@webjet/react-icons/common/tick")},7447:e=>{e.exports=require("dompurify")},3840:e=>{e.exports=require("marked")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,r),a.exports}var i={};(()=>{var e=i,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(3665)).default;e.default=n})(),module.exports=i})();
|
package/components/checkmark.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={2551:(e,t,o)=>{var n=o(7880),r=o(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var o=a(t);if(o&&o.has(e))return o.get(e);var n={},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(n,s,l):n[s]=e[s]}return n.default=e,o&&o.set(e,n),n}(o(6689)),s=(n(o(580)),o(9503)),l=o(6447);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}var c=function(e){var t=e.text,o=e.show,n=e.onClose,r=e.duration;return(0,s.useDisableBodyScroll)(o),(0,i.useEffect)((function(){var e;return o&&(e=setTimeout((function(){return n&&n()}),r)),function(){return clearTimeout(e)}}),[o]),o?i.default.createElement(l.StyledOverlay,null,i.default.createElement(l.StyledContainer,null,i.default.createElement(l.StyledCheckmarkIcon,null,i.default.createElement(l.StyledCircle,null),i.default.createElement(l.StyledPath,null)),i.default.createElement(l.StyledText,null,t))):null};c.defaultProps={show:!1,text:"Updated",duration:2500};var d=c;t.default=d},6447:(e,t,o)=>{var n=o(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledPath=t.StyledOverlay=t.StyledContainer=t.StyledCircle=t.StyledCheckmarkIcon=void 0;var r=n(o(7518)),i=r.default.svg.attrs({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52"}).withConfig({displayName:"Checkmarkstyle__StyledCheckmarkIcon",componentId:"sc-52ewjo-0"})(["width:56px;height:56px;border-radius:50%;display:block;stroke-width:2;stroke:#fff;stroke-miterlimit:10;margin:0 auto;box-shadow:inset 0px 0px 0px #2DB300;animation:fill 0.4s ease-in-out 0.4s forwards,scale 0.3s ease-in-out 0.9s both;@keyframes stroke{100%{stroke-dashoffset:0;}}@keyframes scale{0%,100%{transform:none;}50%{transform:scale3d(1.1,1.1,1);}}@keyframes fill{100%{box-shadow:inset 0px 0px 0px 30px #2DB300;}}"]);t.StyledCheckmarkIcon=i;var s=r.default.circle.attrs({cx:26,cy:26,r:25,fill:"none"}).withConfig({displayName:"Checkmarkstyle__StyledCircle",componentId:"sc-52ewjo-1"})(["stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#2DB300;fill:none;animation:stroke 0.6s cubic-bezier(0.65,0,0.45,1) forwards;@keyframes stroke{100%{stroke-dashoffset:0;}}@keyframes scale{0%,100%{transform:none;}50%{transform:scale3d(1.1,1.1,1);}}@keyframes fill{100%{box-shadow:inset 0px 0px 0px 30px #2DB300;}}"]);t.StyledCircle=s;var l=r.default.path.attrs({fill:"none",d:"M14.1 27.2l7.1 7.2 16.7-16.8"}).withConfig({displayName:"Checkmarkstyle__StyledPath",componentId:"sc-52ewjo-2"})(["transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;animation:stroke 0.3s cubic-bezier(0.65,0,0.45,1) 0.8s forwards;@keyframes stroke{100%{stroke-dashoffset:0;}}"]);t.StyledPath=l;var a=r.default.div.withConfig({displayName:"Checkmarkstyle__StyledText",componentId:"sc-52ewjo-3"})(["font-family:Roboto,Arial,sans-serif;color:#2DB300;font-size:16px;font-weight:600;padding-top:12px;"]);t.StyledText=a;var c=r.default.div.withConfig({displayName:"Checkmarkstyle__StyledOverlay",componentId:"sc-52ewjo-4"})(["position:fixed;top:0;left:0;z-index:9999;background-color:rgba(0,0,0,0.5);width:100%;height:100%;"]);t.StyledOverlay=c;var d=r.default.div.withConfig({displayName:"Checkmarkstyle__StyledContainer",componentId:"sc-52ewjo-5"})(["background:#ffffff;box-shadow:0 2px 3px 0 rgba(0,0,0,0.3);border-radius:3px;display:block;text-align:center;font-weight:500;width:225px;margin:-100px auto 0;padding:30px;top:50%;left:50%;position:fixed;z-index:99999;transform:translateX(-50%);"]);t.StyledContainer=d},9941:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var n=o(3322),r={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=r;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(r.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var s=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||r<=n?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=s,t.setTwoDirectionStickyPanelById=function(e){s(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,r=t-o;return r>=n-1&&r<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},9503:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useDisableBodyScroll=t.useCombinedRefs=void 0;var n=o(6689),r=o(3982);t.useDisableBodyScroll=function(e){(0,n.useEffect)((function(){if(e)return(0,r.lockScroll)(),function(){(0,r.unlockScroll)()}}),[e])},t.useCombinedRefs=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r=(0,n.useRef)();return(0,n.useEffect)((function(){t.forEach((function(e){e&&("function"==typeof e?e(r.current):e.current=r.current)}))}),[t]),r}},3982:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var n=o(9941),r=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(r(),0===window.wjuipl.scrollLockCount){var e=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(e,"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},t.unlockScroll=function(){r(),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:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},7518:e=>{e.exports=require("styled-components")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}var n={};(()=>{var e=n,t=o(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(o(2551)).default;e.default=r})(),module.exports=n})();
|
|
1
|
+
(()=>{"use strict";var e={6829:(e,t,o)=>{var n=o(3751),r=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var o=a(t);if(o&&o.has(e))return o.get(e);var n={},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(n,s,l):n[s]=e[s]}return n.default=e,o&&o.set(e,n),n}(o(2015)),s=(n(o(9825)),o(6684)),l=o(5626);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}var c=function(e){var t=e.text,o=e.show,n=e.onClose,r=e.duration;return(0,s.useDisableBodyScroll)(o),(0,i.useEffect)((function(){var e;return o&&(e=setTimeout((function(){return n&&n()}),r)),function(){return clearTimeout(e)}}),[o]),o?i.default.createElement(l.StyledOverlay,null,i.default.createElement(l.StyledContainer,null,i.default.createElement(l.StyledCheckmarkIcon,null,i.default.createElement(l.StyledCircle,null),i.default.createElement(l.StyledPath,null)),i.default.createElement(l.StyledText,null,t))):null};c.defaultProps={show:!1,text:"Updated",duration:2500};var d=c;t.default=d},5626:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledText=t.StyledPath=t.StyledOverlay=t.StyledContainer=t.StyledCircle=t.StyledCheckmarkIcon=void 0;var r=n(o(2770)),i=r.default.svg.attrs({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52"}).withConfig({displayName:"Checkmarkstyle__StyledCheckmarkIcon",componentId:"sc-52ewjo-0"})(["width:56px;height:56px;border-radius:50%;display:block;stroke-width:2;stroke:#fff;stroke-miterlimit:10;margin:0 auto;box-shadow:inset 0px 0px 0px #2DB300;animation:fill 0.4s ease-in-out 0.4s forwards,scale 0.3s ease-in-out 0.9s both;@keyframes stroke{100%{stroke-dashoffset:0;}}@keyframes scale{0%,100%{transform:none;}50%{transform:scale3d(1.1,1.1,1);}}@keyframes fill{100%{box-shadow:inset 0px 0px 0px 30px #2DB300;}}"]);t.StyledCheckmarkIcon=i;var s=r.default.circle.attrs({cx:26,cy:26,r:25,fill:"none"}).withConfig({displayName:"Checkmarkstyle__StyledCircle",componentId:"sc-52ewjo-1"})(["stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#2DB300;fill:none;animation:stroke 0.6s cubic-bezier(0.65,0,0.45,1) forwards;@keyframes stroke{100%{stroke-dashoffset:0;}}@keyframes scale{0%,100%{transform:none;}50%{transform:scale3d(1.1,1.1,1);}}@keyframes fill{100%{box-shadow:inset 0px 0px 0px 30px #2DB300;}}"]);t.StyledCircle=s;var l=r.default.path.attrs({fill:"none",d:"M14.1 27.2l7.1 7.2 16.7-16.8"}).withConfig({displayName:"Checkmarkstyle__StyledPath",componentId:"sc-52ewjo-2"})(["transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;animation:stroke 0.3s cubic-bezier(0.65,0,0.45,1) 0.8s forwards;@keyframes stroke{100%{stroke-dashoffset:0;}}"]);t.StyledPath=l;var a=r.default.div.withConfig({displayName:"Checkmarkstyle__StyledText",componentId:"sc-52ewjo-3"})(["font-family:Roboto,Arial,sans-serif;color:#2DB300;font-size:16px;font-weight:600;padding-top:12px;"]);t.StyledText=a;var c=r.default.div.withConfig({displayName:"Checkmarkstyle__StyledOverlay",componentId:"sc-52ewjo-4"})(["position:fixed;top:0;left:0;z-index:9999;background-color:rgba(0,0,0,0.5);width:100%;height:100%;"]);t.StyledOverlay=c;var d=r.default.div.withConfig({displayName:"Checkmarkstyle__StyledContainer",componentId:"sc-52ewjo-5"})(["background:#ffffff;box-shadow:0 2px 3px 0 rgba(0,0,0,0.3);border-radius:3px;display:block;text-align:center;font-weight:500;width:225px;margin:-100px auto 0;padding:30px;top:50%;left:50%;position:fixed;z-index:99999;transform:translateX(-50%);"]);t.StyledContainer=d},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getMonthName=t.getFormattedDate=void 0;var n=o(4513),r={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};t.BREAKPOINTS=r;var i=function(e){return window.matchMedia(e).matches};t.isMatchMedia=i,t.isMobile=function(){return i("(max-width: ".concat(r.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(r.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(r.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.isUserLoggedIn=function(){var e,t=null===(e=(0,n.getCookieStorage)("customer-soft-id"))||void 0===e?void 0:e.split(".");if(t&&t.length>1){var o=window.atob(t[1]).toString("ascii");if(JSON.parse(o).firstName)return!0}return!1};var s=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,r=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,r=e.offsetHeight})),document.addEventListener("scroll",(function(){r=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||r<=n?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}};t.setTwoDirectionStickyPanel=s,t.setTwoDirectionStickyPanelById=function(e){s(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,r=t-o;return r>=n-1&&r<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:"smooth",top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())}},6684:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useDisableBodyScroll=t.useCombinedRefs=void 0;var n=o(2015),r=o(1554);t.useDisableBodyScroll=function(e){(0,n.useEffect)((function(){if(e)return(0,r.lockScroll)(),function(){(0,r.unlockScroll)()}}),[e])},t.useCombinedRefs=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r=(0,n.useRef)();return(0,n.useEffect)((function(){t.forEach((function(e){e&&("function"==typeof e?e(r.current):e.current=r.current)}))}),[t]),r}},1554:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var n=o(3465),r=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(r(),0===window.wjuipl.scrollLockCount){var e=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(e,"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},t.unlockScroll=function(){r(),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)))}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}};t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},t.setCookieStorage=function(e,t,o){var n=window.location.hostname,r="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(r,"; Path=/; Max-Age=").concat(o||86400)}},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}var n={};(()=>{var e=n,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(o(6829)).default;e.default=r})(),module.exports=n})();
|
package/components/countdown.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={8403:(e,t,r)=>{var o=r(7880),n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(353)),a=o(r(3838)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(o,a,d):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(6689)),l=r(4529),u=r(4217),c=(o(r(580)),["duration","remainingTime","onComplete","size","updateInterval","type","isPlaying","onOneMinuteLeft"]);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}var s=function(e){var t=e.duration,r=e.remainingTime,o=e.onComplete,n=e.size,p=e.updateInterval,s=e.type,m=e.isPlaying,y=e.onOneMinuteLeft,b=(0,a.default)(e,c),v=n!==f.SM&&n!==f.XS||"default"!==s?s:"inverted",x=u.COLOURS[v]||u.COLOURS.default,C=x.strokeColor,F=x.trailColor,h=u.SIZES[n]||u.SIZES.xl,g=h.diameter,E=h.strokeWidth,B=function(e){var t=e.remainingTime,r=(0,d.useState)(!1),o=(0,i.default)(r,2),a=o[0],l=o[1];if(t>0){var c=Math.floor((t-1)/60),p=c>1?c:1;return 1!==p||a||(y(!0),l(!0)),d.default.createElement(u.StyledTimerValue,{"data-testid":"remaining-time",size:n,colourType:v},p)}return null};return d.default.createElement(u.StyledTimerContainer,b,d.default.createElement(l.CountdownCircleTimer,{isPlaying:m,duration:t,initialRemainingTime:r,onComplete:o,size:g,colors:C,trailColor:F,strokeWidth:E,updateInterval:p},B))},f=Object.keys(u.SIZES).reduce((function(e,t){return e[t.toUpperCase()]=t,e}),{});s.defaultProps={duration:1800,remainingTime:1800,size:"xl",type:"default",onComplete:function(){},onOneMinuteLeft:function(){},isPlaying:!0,updateInterval:1};var m=s;t.default=m},4217:(e,t,r)=>{var o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledTimerValue=t.StyledTimerContainer=t.SIZES=t.COLOURS=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in e)if("default"!==d&&Object.prototype.hasOwnProperty.call(e,d)){var l=i?Object.getOwnPropertyDescriptor(e,d):null;l&&(l.get||l.set)?Object.defineProperty(n,d,l):n[d]=e[d]}return n.default=e,r&&r.set(e,n),n}(r(7518)),i=r(9193);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}var d={default:{strokeColor:i.theme.color[0],trailColor:i.theme.color[1],digitColor:i.theme.color[10]},inverted:{strokeColor:i.theme.color[11],trailColor:i.theme.color[31],digitColor:i.theme.color[11]},notice:{strokeColor:i.theme.color[0],trailColor:i.theme.color[4],digitColor:i.theme.color[10]}};t.COLOURS=d;var l={xl:{diameter:60,strokeWidth:4,fontSize:"24px"},lg:{diameter:45,strokeWidth:3,fontSize:"18px"},md:{diameter:35,strokeWidth:3,fontSize:"14px"},sm:{diameter:30,strokeWidth:2,fontSize:"14px"},xs:{diameter:26,strokeWidth:2,fontSize:"13px"}};t.SIZES=l;var u=n.default.div.withConfig({displayName:"Countdownstyle__StyledTimerContainer",componentId:"sc-4m9682-0"})([""," display:inline-block;"],i.mixins.globalStyles);t.StyledTimerContainer=u;var c=n.default.div.withConfig({displayName:"Countdownstyle__StyledTimerValue",componentId:"sc-4m9682-1"})((function(e){var t=e.colourType,r=e.size,o=(d[t]||d.default).digitColor,i=l[r]||l.xl,a=i.diameter,u=i.fontSize;return(0,n.css)(["font-family:inherit;line-height:","px;color:",";font-size:",";font-weight:500;cursor:default;"],a,o,u)}));t.StyledTimerValue=c},3206:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},9193:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=o(r(2594)),i=o(r(6932)),a=o(r(2098)),d=o(r(3206)),l=o(r(5799))},2098:(e,t,r)=>{var o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(7518),i=o(r(2594)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2594:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},7880:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:e=>{e.exports=require("@babel/runtime/helpers/typeof")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")},4529:e=>{e.exports=require("react-countdown-circle-timer")},7518:e=>{e.exports=require("styled-components")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}var o={};(()=>{var e=o,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(8403)).default;e.default=n})(),module.exports=o})();
|
|
1
|
+
(()=>{"use strict";var e={681:(e,t,r)=>{var o=r(3751),n=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(7826)),a=o(r(2462)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(o,a,d):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(2015)),l=r(968),u=r(4598),c=(o(r(9825)),["duration","remainingTime","onComplete","size","updateInterval","type","isPlaying","onOneMinuteLeft"]);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}var s=function(e){var t=e.duration,r=e.remainingTime,o=e.onComplete,n=e.size,p=e.updateInterval,s=e.type,m=e.isPlaying,y=e.onOneMinuteLeft,b=(0,a.default)(e,c),v=n!==f.SM&&n!==f.XS||"default"!==s?s:"inverted",x=u.COLOURS[v]||u.COLOURS.default,C=x.strokeColor,F=x.trailColor,h=u.SIZES[n]||u.SIZES.xl,g=h.diameter,E=h.strokeWidth,B=function(e){var t=e.remainingTime,r=(0,d.useState)(!1),o=(0,i.default)(r,2),a=o[0],l=o[1];if(t>0){var c=Math.floor((t-1)/60),p=c>1?c:1;return 1!==p||a||(y(!0),l(!0)),d.default.createElement(u.StyledTimerValue,{"data-testid":"remaining-time",size:n,colourType:v},p)}return null};return d.default.createElement(u.StyledTimerContainer,b,d.default.createElement(l.CountdownCircleTimer,{isPlaying:m,duration:t,initialRemainingTime:r,onComplete:o,size:g,colors:C,trailColor:F,strokeWidth:E,updateInterval:p},B))},f=Object.keys(u.SIZES).reduce((function(e,t){return e[t.toUpperCase()]=t,e}),{});s.defaultProps={duration:1800,remainingTime:1800,size:"xl",type:"default",onComplete:function(){},onOneMinuteLeft:function(){},isPlaying:!0,updateInterval:1};var m=s;t.default=m},4598:(e,t,r)=>{var o=r(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledTimerValue=t.StyledTimerContainer=t.SIZES=t.COLOURS=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in e)if("default"!==d&&Object.prototype.hasOwnProperty.call(e,d)){var l=i?Object.getOwnPropertyDescriptor(e,d):null;l&&(l.get||l.set)?Object.defineProperty(n,d,l):n[d]=e[d]}return n.default=e,r&&r.set(e,n),n}(r(2770)),i=r(3290);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 d={default:{strokeColor:i.theme.color[0],trailColor:i.theme.color[1],digitColor:i.theme.color[10]},inverted:{strokeColor:i.theme.color[11],trailColor:i.theme.color[31],digitColor:i.theme.color[11]},notice:{strokeColor:i.theme.color[0],trailColor:i.theme.color[4],digitColor:i.theme.color[10]}};t.COLOURS=d;var l={xl:{diameter:60,strokeWidth:4,fontSize:"24px"},lg:{diameter:45,strokeWidth:3,fontSize:"18px"},md:{diameter:35,strokeWidth:3,fontSize:"14px"},sm:{diameter:30,strokeWidth:2,fontSize:"14px"},xs:{diameter:26,strokeWidth:2,fontSize:"13px"}};t.SIZES=l;var u=n.default.div.withConfig({displayName:"Countdownstyle__StyledTimerContainer",componentId:"sc-4m9682-0"})([""," display:inline-block;"],i.mixins.globalStyles);t.StyledTimerContainer=u;var c=n.default.div.withConfig({displayName:"Countdownstyle__StyledTimerValue",componentId:"sc-4m9682-1"})((function(e){var t=e.colourType,r=e.size,o=(d[t]||d.default).digitColor,i=l[r]||l.xl,a=i.diameter,u=i.fontSize;return(0,n.css)(["font-family:inherit;line-height:","px;color:",";font-size:",";font-weight:500;cursor:default;"],a,o,u)}));t.StyledTimerValue=c},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},3290:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=o(r(1267)),i=o(r(492)),a=o(r(9098)),d=o(r(9090)),l=o(r(5050))},9098:(e,t,r)=>{var o=r(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2770),i=o(r(1267)),a={globalStyles:(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},968:e=>{e.exports=require("react-countdown-circle-timer")},2770:e=>{e.exports=require("styled-components")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}var o={};(()=>{var e=o,t=r(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(681)).default;e.default=n})(),module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={8840:(e,r,t)=>{var n=t(3751);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=n(t(2015)),u=(n(t(9825)),t(8151));r.default=function(e){var r=e.price,t=e.pointsMode;if((0,u.isNullOrEmptyOrUndefined)(r))return a.default.createElement("span",null);var n=t&&t.pointsPerDollar,o=n?parseFloat(r*t.pointsPerDollar):parseFloat(r),l=n?o.toLocaleString("en-AU"):(0,u.formatCurrencyNoCents)(o);return a.default.createElement("span",{"data-testid":"formatted-currency-value"},l)}},8151:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.formatCurrency=void 0,r.formatCurrencyNoCents=function(e){var r=Math.round(e);return t(r)},r.formatCurrencySigned=void 0,r.isNullOrEmptyOrUndefined=function(e){return n(e)||""===e},r.isNullOrUndefined=n;var t=function(e,r){var t=e.toLocaleString("en-AU",{style:"currency",currency:"AUD"}).replace("A","");return r?t:t.replace(".00","")};function n(e){return null==e}r.formatCurrency=t,r.formatCurrencySigned=function(e,r){if(e<0){var n=t(Math.abs(e),r);return"-(".concat(n,")")}return t(e,r)}},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},r={};function t(n){var a=r[n];if(void 0!==a)return a.exports;var u=r[n]={exports:{}};return e[n](u,u.exports,t),u.exports}var n={};(()=>{var e=n,r=t(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(8840)).default;e.default=a})(),module.exports=n})();
|