@webjet/react 3.0.2 → 3.0.4

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 (71) hide show
  1. package/components/accordion.js +1 -1
  2. package/components/anchor-link.js +1 -1
  3. package/components/autocomplete.js +1 -1
  4. package/components/banner.js +1 -1
  5. package/components/button.js +1 -1
  6. package/components/card.js +1 -1
  7. package/components/carousel-content.js +1 -1
  8. package/components/carousel.js +1 -1
  9. package/components/checkbox-list.js +1 -1
  10. package/components/checkbox.js +1 -1
  11. package/components/checklist.js +1 -1
  12. package/components/checkmark.js +1 -1
  13. package/components/countdown.js +1 -1
  14. package/components/currency-formatter.js +1 -1
  15. package/components/date-picker-input.js +1 -1
  16. package/components/date-picker.js +1 -1
  17. package/components/date-range-picker-input.js +1 -1
  18. package/components/date-range-picker.js +1 -1
  19. package/components/error-message-field.js +1 -1
  20. package/components/flight-card-footer.js +1 -1
  21. package/components/flight-card-header.js +1 -1
  22. package/components/flight-card-info.js +1 -1
  23. package/components/floating-panel.js +1 -1
  24. package/components/icon.js +1 -1
  25. package/components/if.js +1 -1
  26. package/components/iframe-link.js +1 -1
  27. package/components/image.js +1 -1
  28. package/components/info-modal.js +1 -1
  29. package/components/label.js +1 -1
  30. package/components/linear-loader.js +1 -1
  31. package/components/link.js +1 -1
  32. package/components/media-query.js +1 -1
  33. package/components/modal.js +1 -1
  34. package/components/notification.js +1 -1
  35. package/components/number-stepper.js +1 -1
  36. package/components/page-loader.js +1 -1
  37. package/components/pagination.js +1 -1
  38. package/components/panel-with-scroll-fade.js +1 -1
  39. package/components/payment-breakdown.js +1 -1
  40. package/components/pills.js +1 -1
  41. package/components/program-label.js +1 -1
  42. package/components/quality-rating-filter.js +1 -1
  43. package/components/quality-rating.js +1 -1
  44. package/components/radios.js +1 -1
  45. package/components/rating.js +1 -1
  46. package/components/react-container-query.js +1 -1
  47. package/components/render-count.js +1 -1
  48. package/components/select.js +1 -1
  49. package/components/selectable-card.js +1 -1
  50. package/components/settings.js +1 -1
  51. package/components/slider.js +1 -1
  52. package/components/spinner.js +1 -1
  53. package/components/tab.js +1 -1
  54. package/components/textarea.js +1 -1
  55. package/components/textfield-button.js +1 -1
  56. package/components/textfield.js +1 -1
  57. package/components/toggle.js +1 -1
  58. package/components/tooltip.js +1 -1
  59. package/components/two-direction-sticky-panel.js +1 -1
  60. package/components/user-review-details.js +1 -1
  61. package/components/user-review-filter.js +1 -1
  62. package/components/user-review-panel.js +1 -1
  63. package/components/user-review.js +1 -1
  64. package/components/utility-panel.js +1 -1
  65. package/components/with-click-outside.js +1 -1
  66. package/package.json +7 -7
  67. package/utils/common.js +1 -1
  68. package/utils/ga.js +1 -1
  69. package/utils/hooks.js +1 -1
  70. package/utils/scrollbar.js +1 -1
  71. package/utils/splitTest.js +1 -0
@@ -1 +1 @@
1
- (()=>{"use strict";var t={9941:(t,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.escapeRegExp=o.detectOS=o.BREAKPOINTS=void 0,o.fetchDateInMilliseconds=function(){return(new Date).getTime()},o.getBoundingClientInfo=o.formatNumber=void 0,o.getDurationInMiliSeconds=function(t,o){return o-t},o.withScroll=o.setTwoDirectionStickyPanelById=o.setTwoDirectionStickyPanel=o.scrollTo=o.sanitiseInputText=o.removeHtmlTags=o.isValidIconName=o.isValidIconElement=o.isUserLoggedIn=o.isTouchDevice=o.isMobileTablet=o.isMobilePortrait=o.isMobile=o.isMatchMedia=o.hasScrollReachedBottom=o.getMonthName=o.getFormattedDate=void 0;var n=e(3322),i={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};o.BREAKPOINTS=i;var r=function(t){return window.matchMedia(t).matches};o.isMatchMedia=r,o.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},o.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},o.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},o.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},o.detectOS=function(t){var o=t||navigator.userAgent,e=/(iPad).*OS\s([\d_]+)/.test(o);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(o)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(o)}},o.isUserLoggedIn=function(){var t,o=null===(t=(0,n.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(o&&o.length>1){var e=window.atob(o[1]).toString("ascii");if(JSON.parse(e).firstName)return!0}return!1};var s=function(t){if(t){var o=window.innerHeight-t.offsetHeight,e=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,o=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<e?r<0?t.style.top=r+e-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>o?t.style.top=r+e-window.scrollY+"px":r<o&&r!==o&&(t.style.top=o+"px"),e=window.scrollY}),{capture:!0,passive:!0})}};o.setTwoDirectionStickyPanel=s,o.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},o.hasScrollReachedBottom=function(t){if(!t)return!1;var o=t.scrollHeight,e=t.scrollTop,n=t.clientHeight,i=o-e;return i>=n-1&&i<=n+1},o.withScroll=function(t){if(!t)return!1;var o=t.scrollHeight,e=t.clientHeight;return!(o>=e-1&&o<=e+1)},o.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},o.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},o.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},o.isValidIconElement=function(t){var o;return"function"==typeof t&&"svg"===(null===(o=t())||void 0===o?void 0:o.type)},o.isValidIconName=function(t){return!!t&&"string"==typeof t},o.formatNumber=function(t,o){return t.toLocaleString("en-AU",{minimumFractionDigits:o,maximumFractionDigits:o})||0},o.scrollTo=function(t,o){"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:"smooth",top:o.top,left:o.left})},o.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},o.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},o.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())}},3322:(t,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.setSessionStorageJson=o.setSessionStorage=o.setCookieStorage=o.getSessionStorageJson=o.getSessionStorage=o.getCookieStorage=void 0;var e=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};o.getSessionStorage=function(t){if(t&&e())try{return window.sessionStorage.getItem(t)}catch(t){return}},o.setSessionStorage=function(t,o){if(t&&e())try{return window.sessionStorage.setItem(t,o)}catch(t){return}},o.getSessionStorageJson=function(t){if(t&&e())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},o.setSessionStorageJson=function(t,o){if(t&&e())try{return window.sessionStorage.setItem(t,JSON.stringify(o))}catch(t){return}},o.getCookieStorage=function(t){for(var o=t+"=",e=document.cookie.split(";"),n=0;n<e.length;n++){for(var i=e[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(o))return i.substring(o.length,i.length)}return null},o.setCookieStorage=function(t,o,e){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(o,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(e||86400)}}},o={};function e(n){var i=o[n];if(void 0!==i)return i.exports;var r=o[n]={exports:{}};return t[n](r,r.exports,e),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var o=e(9941),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};t.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,o.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},t.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,o.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}})(),module.exports=n})();
1
+ (()=>{"use strict";var t={3465:(t,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.escapeRegExp=o.detectOS=o.BREAKPOINTS=void 0,o.fetchDateInMilliseconds=function(){return(new Date).getTime()},o.getBoundingClientInfo=o.formatNumber=void 0,o.getDurationInMiliSeconds=function(t,o){return o-t},o.withScroll=o.setTwoDirectionStickyPanelById=o.setTwoDirectionStickyPanel=o.scrollTo=o.sanitiseInputText=o.removeHtmlTags=o.isValidIconName=o.isValidIconElement=o.isUserLoggedIn=o.isTouchDevice=o.isMobileTablet=o.isMobilePortrait=o.isMobile=o.isMatchMedia=o.hasScrollReachedBottom=o.getMonthName=o.getFormattedDate=void 0;var n=e(4513),i={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199};o.BREAKPOINTS=i;var r=function(t){return window.matchMedia(t).matches};o.isMatchMedia=r,o.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},o.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},o.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},o.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},o.detectOS=function(t){var o=t||navigator.userAgent,e=/(iPad).*OS\s([\d_]+)/.test(o);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(o)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(o)}},o.isUserLoggedIn=function(){var t,o=null===(t=(0,n.getCookieStorage)("customer-soft-id"))||void 0===t?void 0:t.split(".");if(o&&o.length>1){var e=window.atob(o[1]).toString("ascii");if(JSON.parse(e).firstName)return!0}return!1};var s=function(t){if(t){var o=window.innerHeight-t.offsetHeight,e=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,o=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<e?r<0?t.style.top=r+e-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>o?t.style.top=r+e-window.scrollY+"px":r<o&&r!==o&&(t.style.top=o+"px"),e=window.scrollY}),{capture:!0,passive:!0})}};o.setTwoDirectionStickyPanel=s,o.setTwoDirectionStickyPanelById=function(t){s(document.getElementById(t))},o.hasScrollReachedBottom=function(t){if(!t)return!1;var o=t.scrollHeight,e=t.scrollTop,n=t.clientHeight,i=o-e;return i>=n-1&&i<=n+1},o.withScroll=function(t){if(!t)return!1;var o=t.scrollHeight,e=t.clientHeight;return!(o>=e-1&&o<=e+1)},o.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},o.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},o.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},o.isValidIconElement=function(t){var o;return"function"==typeof t&&"svg"===(null===(o=t())||void 0===o?void 0:o.type)},o.isValidIconName=function(t){return!!t&&"string"==typeof t},o.formatNumber=function(t,o){return t.toLocaleString("en-AU",{minimumFractionDigits:o,maximumFractionDigits:o})||0},o.scrollTo=function(t,o){"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:"smooth",top:o.top,left:o.left})},o.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},o.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},o.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())}},4513:(t,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.setSessionStorageJson=o.setSessionStorage=o.setCookieStorage=o.getSessionStorageJson=o.getSessionStorage=o.getCookieStorage=void 0;var e=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}};o.getSessionStorage=function(t){if(t&&e())try{return window.sessionStorage.getItem(t)}catch(t){return}},o.setSessionStorage=function(t,o){if(t&&e())try{return window.sessionStorage.setItem(t,o)}catch(t){return}},o.getSessionStorageJson=function(t){if(t&&e())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},o.setSessionStorageJson=function(t,o){if(t&&e())try{return window.sessionStorage.setItem(t,JSON.stringify(o))}catch(t){return}},o.getCookieStorage=function(t){for(var o=t+"=",e=document.cookie.split(";"),n=0;n<e.length;n++){for(var i=e[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(o))return i.substring(o.length,i.length)}return null},o.setCookieStorage=function(t,o,e){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(o,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(e||86400)}}},o={};function e(n){var i=o[n];if(void 0!==i)return i.exports;var r=o[n]={exports:{}};return t[n](r,r.exports,e),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var o=e(3465),i=function(){void 0===window.wjuipl&&(window.wjuipl={}),void 0===window.wjuipl.scrollLockCount&&(window.wjuipl.scrollLockCount=0),void 0===window.wjuipl.scrollOffset&&(window.wjuipl.scrollOffset=0)};t.lockScroll=function(){if(i(),0===window.wjuipl.scrollLockCount){var t=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(t,"px"),(0,o.detectOS)().ios&&(window.wjuipl.scrollOffset=window.pageYOffset,document.body.style.position="fixed",document.body.style.top="-".concat(window.wjuipl.scrollOffset,"px"),document.body.style.width="100%")}window.wjuipl.scrollLockCount+=1},t.unlockScroll=function(){i(),window.wjuipl.scrollLockCount>0&&(window.wjuipl.scrollLockCount-=1),0===window.wjuipl.scrollLockCount&&(document.body.style.overflow="",document.body.style.paddingRight="",(0,o.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}})(),module.exports=n})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t,e={};t=e,Object.defineProperty(t,"__esModule",{value:!0}),t.splitTest=t.SPLIT_TEST_GROUPS=void 0,t.SPLIT_TEST_GROUPS={CONTROL:"control",TEST_1:"test_1",TEST_2:"test_2"},t.splitTest=function(t,e){var s=(t||{}).splitTest,o=(void 0===s?{}:s)[e];if(o&&"function"==typeof window.split_test_group){var i=o.split(":").length;return window.split_test_group(e,2,i,o).test_group}},module.exports=e})();