@webjet/react 1.3.6 → 2.0.0-beta.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.
Files changed (41) hide show
  1. package/components/accordion.js +1 -1
  2. package/components/autocomplete.js +1 -1
  3. package/components/button.js +1 -1
  4. package/components/card.js +1 -1
  5. package/components/carousel-content.js +1 -1
  6. package/components/carousel.js +1 -1
  7. package/components/checkbox-list.js +1 -1
  8. package/components/checkbox.js +1 -1
  9. package/components/countdown.js +1 -1
  10. package/components/date-picker.js +1 -1
  11. package/components/date-range-picker.js +1 -1
  12. package/components/error-message-field.js +1 -1
  13. package/components/iframe-link.js +1 -1
  14. package/components/linear-loader.js +1 -1
  15. package/components/link.js +1 -1
  16. package/components/modal.js +1 -1
  17. package/components/notification.js +1 -1
  18. package/components/number-stepper.js +1 -1
  19. package/components/pagination.js +1 -1
  20. package/components/panel-with-scroll-fade.js +1 -1
  21. package/components/program-label.js +1 -1
  22. package/components/quality-rating-filter.js +1 -1
  23. package/components/quality-rating.js +1 -1
  24. package/components/rating.js +1 -1
  25. package/components/react-container-query.js +1 -0
  26. package/components/select.js +1 -1
  27. package/components/selectable-card.js +1 -1
  28. package/components/settings.js +1 -1
  29. package/components/slider.js +1 -1
  30. package/components/spinner.js +1 -1
  31. package/components/tab.js +1 -1
  32. package/components/textarea.js +1 -1
  33. package/components/textfield-button.js +1 -1
  34. package/components/textfield.js +1 -1
  35. package/components/tooltip.js +1 -1
  36. package/components/user-review-details.js +1 -1
  37. package/components/user-review-filter.js +1 -1
  38. package/components/user-review-panel.js +1 -1
  39. package/components/user-review.js +1 -1
  40. package/package.json +26 -26
  41. package/utils/ga.js +1 -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"}}},5799:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},9193:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=o(n(2594)),i=o(n(6932)),a=o(n(2098)),l=o(n(3206)),d=o(n(5799))},2098:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(7518),i=o(n(2594)),a={globalStyles:(0,r.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},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),b=Boolean(m);return a.default.createElement(l.StyledUserReviewSummary,(0,r.default)({},g,{isSmall:h,onClick:m,clickable:b,"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:b},(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}();
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=[],c=Math.min(parseFloat(t)||0,5),u=0;u<5;u++){var p=c-u,f=void 0;p>.5?f="full":p>0&&(f="half"),s.push(a.default.createElement("span",{key:u,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 c=s;t.default=c},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]),c=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=c},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",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},5799:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"}}},9193:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var r=o(n(2594)),i=o(n(6932)),a=o(n(2098)),l=o(n(3206)),d=o(n(5799))},2098:function(e,t,n){var o=n(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(7518),i=o(n(2594)),a={globalStyles:(0,r.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],o={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},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),c=["value","maxRatingValue","variant","quality","reviews","size","onClick"],u=function(e){var t=e.value,n=e.maxRatingValue,o=e.variant,u=e.quality,p=e.reviews,f=e.size,m=e.onClick,g=(0,i.default)(e,c),v="details"===o,y="compact"===o,h=v&&"sm"===f,x=Math.min(parseFloat(t)||0,n),b=Boolean(m);return a.default.createElement(l.StyledUserReviewSummary,(0,r.default)({},g,{isSmall:h,onClick:m,clickable:b,"data-testid":"user-review-container"}),v&&a.default.createElement(l.StyledUserRatingValue,{"data-testid":"user-review-value"},x.toFixed(1)),u&&v&&a.default.createElement(l.StyledLabel,{"data-testid":"user-review-quality"},u),y&&a.default.createElement(l.StyledUserRatingQuality,{"data-testid":"user-review-rating-quality"},"".concat(x.toFixed(1)," ").concat(u)),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:b},(0,s.formatNumber)(p,0)," reviews")))};u.defaultProps={value:0,maxRatingValue:5,variant:"summary",size:"lg"},u.component={name:"UserReview"};var p=u;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 c=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=c},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.3.6",
4
+ "version": "2.0.0-beta.0",
5
5
  "description": "Common react components",
6
6
  "main": "components/index.js",
7
7
  "scripts": {
@@ -22,65 +22,64 @@
22
22
  "publish:test": "npm run publish:build && npm publish --dry-run",
23
23
  "publish:local": "npm run publish:build && ncp ./components ../WebApp/node_modules/@webjet/react/components",
24
24
  "publish:public": "npm run publish:build && npm publish --access public",
25
+ "publish:public-beta": "npm run publish:build && npm publish --tag beta --access public",
25
26
  "prepare": "husky install"
26
27
  },
27
28
  "author": "wh",
28
29
  "license": "ISC",
29
30
  "peerDependencies": {
30
31
  "date-fns": "^2.13.0",
31
- "react": "^16.8.0 || ^17.0.0",
32
- "react-dom": "^16.8.0 || ^17.0.0"
32
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
33
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
33
34
  },
34
35
  "dependencies": {
35
- "@webjet/react-icons": "^2.0.2",
36
+ "@webjet/react-icons": "^3.0.0",
36
37
  "classnames": "^2.2.6",
37
- "copy-webpack-plugin": "^6.0.3",
38
- "core-js": "^3.21.0",
39
38
  "dompurify": "^2.1.1",
40
39
  "html-react-parser": "^1.4.8",
41
40
  "marked": "^4.0.12",
42
- "ncp": "^2.0.0",
43
41
  "polished": "^4.1.4",
44
42
  "rc-input-number": "^4.6.1",
45
43
  "rc-slider": "^9.7.5",
46
- "react-container-query": "^0.11.2",
47
44
  "react-countdown-circle-timer": "^3.0.9",
48
- "react-day-picker": "^7.4.10",
49
- "react-highlight-words": "^0.17.0",
45
+ "react-day-picker": "^8.6.0",
46
+ "react-highlight-words": "^0.20.0",
50
47
  "react-media": "^1.10.0",
51
48
  "react-popper-tooltip": "^4.4.2",
52
- "react-scroll-into-view-if-needed": "^2.1.7",
53
- "react-select": "^4.3.1",
54
- "react-slick": "^0.25.2",
55
- "react-switch": "^5.0.1",
49
+ "react-scroll-into-view-if-needed": "^3.0.1",
50
+ "react-select": "^5.7.0",
51
+ "react-slick": "^0.29.0",
52
+ "react-switch": "^7.0.0",
56
53
  "semantic-ui-react": "^2.0.3",
57
54
  "styled-components": "^5.1.1"
58
55
  },
59
56
  "devDependencies": {
60
- "@babel/core": "^7.17.0",
61
- "@babel/plugin-transform-runtime": "^7.17.0",
62
- "@babel/preset-env": "^7.16.11",
63
- "@babel/preset-react": "^7.16.7",
57
+ "@babel/core": "^7.21.3",
58
+ "@babel/plugin-transform-runtime": "^7.21.0",
59
+ "@babel/preset-env": "^7.20.2",
60
+ "@babel/preset-react": "^7.18.6",
64
61
  "@svgr/webpack": "^6.2.1",
65
62
  "@testing-library/jest-dom": "^5.16.2",
66
- "@testing-library/react": "^12.1.2",
63
+ "@testing-library/react": "^14.0.0",
67
64
  "@testing-library/user-event": "^13.5.0",
68
65
  "babel-loader": "^8.2.3",
69
66
  "babel-plugin-styled-components": "^2.0.2",
70
67
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
68
+ "copy-webpack-plugin": "^6.0.3",
71
69
  "cross-env": "^7.0.2",
72
70
  "date-fns": "^2.13.0",
73
71
  "glob": "^7.2.0",
74
72
  "husky": "^8.0.0",
73
+ "ncp": "^2.0.0",
75
74
  "jest": "^26.4.2",
76
- "react": "^16.13.1",
77
- "react-dom": "^16.13.1",
78
- "react-styleguidist": "^11.2.0",
75
+ "react": "^18.0.0",
76
+ "react-dom": "^18.0.0",
77
+ "react-styleguidist": "^13.1.1",
79
78
  "rimraf": "^3.0.2",
80
79
  "standard": "^17.0.0",
81
- "webpack": "^5.68.0",
82
- "webpack-cli": "^4.9.2",
83
- "webpack-dev-server": "^4.7.4",
80
+ "webpack": "^5.76.2",
81
+ "webpack-cli": "^5.0.1",
82
+ "webpack-dev-server": "^4.12.0",
84
83
  "webpack-merge": "^5.8.0",
85
84
  "webpack-node-externals": "^3.0.0"
86
85
  },
@@ -93,7 +92,8 @@
93
92
  "standard": {
94
93
  "ignore": [
95
94
  "/src/app/",
96
- "/src/components-widget/"
95
+ "/src/components-widget/",
96
+ "/src/components/react-container-query"
97
97
  ],
98
98
  "env": [
99
99
  "jest"
package/utils/ga.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";var e={7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")}},r={};function t(n){var u=r[n];if(void 0!==u)return u.exports;var i=r[n]={exports:{}};return e[n](i,i.exports,t),i.exports}var n={};!function(){var e=n,r=t(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.gaAttributes=void 0;var u=r(t(353));e.gaAttributes=function(e){var r={};return Object.entries(e).forEach((function(e){var t=(0,u.default)(e,2),n=t[0],i=t[1];null!=i&&(r["data-ga-".concat(n)]=String(i))})),r}}(),module.exports=n}();
1
+ !function(){"use strict";var e={8779:function(e){e.exports=require("@babel/runtime/helpers/defineProperty")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var u=r[n]={exports:{}};return e[n](u,u.exports,t),u.exports}var n={};!function(){var e=n,r=t(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.pushGAEvent=e.gaAttributes=void 0;var o=r(t(8779)),u=r(t(353));function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}e.gaAttributes=function(e){var r={};return Object.entries(e).forEach((function(e){var t=(0,u.default)(e,2),n=t[0],o=t[1];null!=o&&(r["data-ga-".concat(n)]=String(o))})),r},e.pushGAEvent=function(e,r){var t=window.dataLayer;e&&t&&t.push(c(e,r))};var c=function(e,r){return function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach((function(r){(0,o.default)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({event:e},r)}}(),module.exports=n}();