@webjet/react 4.4.0 → 4.6.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 (108) 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/badge.js +1 -0
  5. package/components/banner.js +1 -1
  6. package/components/breadcrumb.js +1 -1
  7. package/components/button.js +1 -1
  8. package/components/card.js +1 -1
  9. package/components/carousel-cards.js +1 -1
  10. package/components/carousel-content.js +1 -1
  11. package/components/carousel.js +1 -1
  12. package/components/checkbox-list.js +1 -1
  13. package/components/checkbox.js +1 -1
  14. package/components/checklist.js +1 -1
  15. package/components/checkmark.js +1 -1
  16. package/components/copy-button.js +1 -1
  17. package/components/countdown.js +1 -1
  18. package/components/currency-formatter.js +1 -1
  19. package/components/date-picker-input.js +1 -1
  20. package/components/date-picker.js +1 -1
  21. package/components/date-range-picker-input.js +1 -1
  22. package/components/date-range-picker.js +1 -1
  23. package/components/drawer.js +1 -1
  24. package/components/error-message-field.js +1 -1
  25. package/components/fare-card.js +1 -1
  26. package/components/feature-toggle.js +1 -1
  27. package/components/filter-dropdown.js +1 -1
  28. package/components/flight-card-footer.js +1 -1
  29. package/components/flight-card-header.js +1 -1
  30. package/components/flight-card-info.js +1 -1
  31. package/components/flight-card.js +1 -0
  32. package/components/flight-details.js +1 -0
  33. package/components/flight-summary.js +1 -1
  34. package/components/floating-panel.js +1 -1
  35. package/components/footer-navigation.js +1 -1
  36. package/components/helper-text.js +1 -1
  37. package/components/icon.js +1 -1
  38. package/components/if.js +1 -1
  39. package/components/iframe-link.js +1 -1
  40. package/components/image.js +1 -1
  41. package/components/info-modal.js +1 -1
  42. package/components/journey-line.js +1 -1
  43. package/components/label.js +1 -1
  44. package/components/leg-segment.js +1 -1
  45. package/components/linear-loader.js +1 -1
  46. package/components/link.js +1 -1
  47. package/components/media-query.js +1 -1
  48. package/components/menu-list.js +1 -1
  49. package/components/modal.js +1 -1
  50. package/components/notification.js +1 -1
  51. package/components/number-stepper.js +1 -1
  52. package/components/page-loader.js +1 -1
  53. package/components/pagination.js +1 -1
  54. package/components/panel-with-scroll-fade.js +1 -1
  55. package/components/payment-breakdown-panel.js +1 -1
  56. package/components/payment-breakdown.js +1 -1
  57. package/components/payment-card.js +1 -1
  58. package/components/payment-confirmation-panel.js +1 -1
  59. package/components/personal-info.js +1 -1
  60. package/components/pills.js +1 -1
  61. package/components/price-breakdown.js +1 -1
  62. package/components/product-card.js +1 -1
  63. package/components/product-navigation-drawer.js +1 -1
  64. package/components/product-navigation.js +1 -1
  65. package/components/products-cross-sell-banner.js +1 -1
  66. package/components/products-cross-sell-image.js +1 -1
  67. package/components/products-cross-sell-list.js +1 -1
  68. package/components/products-cross-sell-panel.js +1 -1
  69. package/components/program-label.js +1 -1
  70. package/components/quality-rating-filter.js +1 -1
  71. package/components/quality-rating.js +1 -1
  72. package/components/radio-group.js +1 -0
  73. package/components/radios.js +1 -1
  74. package/components/rating.js +1 -1
  75. package/components/react-container-query.js +1 -1
  76. package/components/render-count.js +1 -1
  77. package/components/scrollable-content.js +1 -1
  78. package/components/select.js +1 -1
  79. package/components/selectable-card.js +1 -1
  80. package/components/selectable-panel-group.js +1 -0
  81. package/components/settings.js +1 -1
  82. package/components/slider.js +1 -1
  83. package/components/spinner.js +1 -1
  84. package/components/split-test.js +1 -1
  85. package/components/tab.js +1 -1
  86. package/components/table.js +1 -1
  87. package/components/text-divider.js +1 -1
  88. package/components/textarea.js +1 -1
  89. package/components/textfield-button.js +1 -1
  90. package/components/textfield.js +1 -1
  91. package/components/toast-bar.js +1 -1
  92. package/components/toggle.js +1 -1
  93. package/components/tooltip-modal.js +1 -1
  94. package/components/tooltip.js +1 -1
  95. package/components/two-direction-sticky-panel.js +1 -1
  96. package/components/typography.js +1 -1
  97. package/components/user-review-details.js +1 -1
  98. package/components/user-review-filter.js +1 -1
  99. package/components/user-review-panel.js +1 -1
  100. package/components/user-review.js +1 -1
  101. package/components/utility-panel.js +1 -1
  102. package/components/with-click-outside.js +1 -1
  103. package/package.json +3 -3
  104. package/utils/common.js +1 -1
  105. package/utils/featureToggle.js +1 -1
  106. package/utils/ga.js +1 -1
  107. package/utils/hooks.js +1 -1
  108. package/utils/scrollbar.js +1 -1
@@ -1 +1 @@
1
- (()=>{"use strict";var t={63465:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=e.detectOS=e.BREAKPOINTS=void 0,e.fetchDateInMilliseconds=function(){return(new Date).getTime()},e.getDateWithoutTime=e.getBoundingClientInfo=e.formatNumber=void 0,e.getDurationInMiliSeconds=function(t,e){return e-t},e.withScroll=e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.scrollTo=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobileTablet=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.hasScrollReachedBottom=e.getRandomArrayItem=e.getMonthName=e.getLoggedInUserDetails=e.getFormattedDate=void 0;var n=o(84513),i=e.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=e.isMatchMedia=function(t){return window.matchMedia(t).matches},s=(e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.getLoggedInUserDetails=function(){var t=(0,n.getAllCookiesStorage)("customer-soft-id"),e={};if((null==t?void 0:t.length)>0)for(var o=0;o<t.length;o++){var i,r=null===(i=window.atob(t[o].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),s=JSON.parse(r),l=s.firstName,c=s.email,a=s.dev;window.location.hostname.includes("dev.webjet")&&!a||(e={firstName:l,email:c})}return e}),l=(e.isUserLoggedIn=function(){return!!s().firstName},e.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=t.offsetHeight})),document.addEventListener("scroll",(function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});e.setTwoDirectionStickyPanelById=function(t){l(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},e.getDateWithoutTime=function(t){return new Date(t.toDateString())},e.getRandomArrayItem=function(t){return Array.isArray(t)&&t.length>0?t[Math.floor(Math.random()*t.length)]:null}},84513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=e.getAllCookiesStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}},n=(e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){var e=n(t);return e.length>0?e[0]:null},e.getAllCookiesStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(e)&&n.push(r.substring(e.length,r.length))}return n});e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var e=o(63465),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,e.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,e.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={63465:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=e.detectOS=e.BREAKPOINTS=void 0,e.fetchDateInMilliseconds=function(){return(new Date).getTime()},e.getDateWithoutTime=e.getBoundingClientInfo=e.formatNumber=void 0,e.getDurationInMiliSeconds=function(t,e){return e-t},e.withScroll=e.setTwoDirectionStickyPanelById=e.setTwoDirectionStickyPanel=e.scrollTo=e.sanitiseInputText=e.removeHtmlTags=e.isValidIconName=e.isValidIconElement=e.isUserLoggedIn=e.isTouchDevice=e.isMobileTablet=e.isMobilePortrait=e.isMobile=e.isMatchMedia=e.hasScrollReachedBottom=e.getRandomArrayItem=e.getMonthName=e.getLoggedInUserDetails=e.getFormattedDate=void 0;var n=o(84513),i=e.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=e.isMatchMedia=function(t){return window.matchMedia(t).matches},s=(e.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},e.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},e.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},e.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},e.detectOS=function(t){var e=t||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(e)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},e.getLoggedInUserDetails=function(){var t=(0,n.getAllCookiesStorage)("customer-soft-id"),e={};if((null==t?void 0:t.length)>0)for(var o=0;o<t.length;o++){var i,r=null===(i=window.atob(t[o].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),s=JSON.parse(r),l=s.firstName,c=s.email,a=s.dev;window.location.hostname.includes("dev.webjet")&&!a||(e={firstName:l,email:c})}return e}),l=(e.isUserLoggedIn=function(){return!!s().firstName},e.setTwoDirectionStickyPanel=function(t){if(t){var e=window.innerHeight-t.offsetHeight,o=window.scrollY,n=window.innerHeight,i=t.offsetHeight;t.style.top="0px",window.addEventListener("resize",function(){n=window.innerHeight,i=t.offsetHeight}),document.addEventListener("scroll",function(){i=t.offsetHeight,e=window.innerHeight-t.offsetHeight;var r=parseInt(t.style.top.replace("px;",""));0===window.scrollY||i<=n?t.style.top="0px":window.scrollY<o?r<0?t.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(t.style.top="0px"):r>e?t.style.top=r+o-window.scrollY+"px":r<e&&r!==e&&(t.style.top=e+"px"),o=window.scrollY},{capture:!0,passive:!0})}});e.setTwoDirectionStickyPanelById=function(t){l(document.getElementById(t))},e.hasScrollReachedBottom=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.scrollTop,n=t.clientHeight,i=e-o;return i>=n-1&&i<=n+1},e.withScroll=function(t){if(!t)return!1;var e=t.scrollHeight,o=t.clientHeight;return!(e>=o-1&&e<=o+1)},e.escapeRegExp=function(t){return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},e.sanitiseInputText=function(t){return"string"==typeof t?t.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},e.removeHtmlTags=function(t){return"string"==typeof t?String(t).replace(/(<([^>]+)>)/gi,""):t},e.isValidIconElement=function(t){var e;return"function"==typeof t&&"svg"===(null===(e=t())||void 0===e?void 0:e.type)},e.isValidIconName=function(t){return!!t&&"string"==typeof t},e.formatNumber=function(t,e){return t.toLocaleString("en-AU",{minimumFractionDigits:e,maximumFractionDigits:e})||0},e.scrollTo=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==t?void 0:t.scrollTo)&&t.scrollTo({behavior:o,top:e.top,left:e.left})},e.getBoundingClientInfo=function(t){return{height:Math.round(t.getBoundingClientRect().height),top:Math.round(t.getBoundingClientRect().top),bottom:Math.round(t.getBoundingClientRect().bottom),left:Math.round(t.getBoundingClientRect().left),right:Math.round(t.getBoundingClientRect().right)}},e.getMonthName=function(t){return null==t?void 0:t.toLocaleDateString(void 0,{month:"long"})},e.getFormattedDate=function(t){return"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear())},e.getDateWithoutTime=function(t){return new Date(t.toDateString())},e.getRandomArrayItem=function(t){return Array.isArray(t)&&t.length>0?t[Math.floor(Math.random()*t.length)]:null}},84513:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionStorageJson=e.setSessionStorage=e.setCookieStorage=e.getSessionStorageJson=e.getSessionStorage=e.getCookieStorage=e.getAllCookiesStorage=void 0;var o=function(){var t="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(t,1),window.sessionStorage.removeItem(t),!0)}catch(t){return!1}},n=(e.getSessionStorage=function(t){if(t&&o())try{return window.sessionStorage.getItem(t)}catch(t){return}},e.setSessionStorage=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,e)}catch(t){return}},e.getSessionStorageJson=function(t){if(t&&o())try{return JSON.parse(window.sessionStorage.getItem(t))}catch(t){return}},e.setSessionStorageJson=function(t,e){if(t&&o())try{return window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){return}},e.getCookieStorage=function(t){var e=n(t);return e.length>0?e[0]:null},e.getAllCookiesStorage=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(e)&&n.push(r.substring(e.length,r.length))}return n});e.setCookieStorage=function(t,e,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(t,"=").concat(e,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.unlockScroll=t.lockScroll=void 0;var e=o(63465),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,e.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,e.detectOS)().ios&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,window.wjuipl.scrollOffset)))}})(),module.exports=n})();