@webjet/react 3.19.0 → 3.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={1550:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TabletDesktop=t.Tablet=t.SmallDesktop=t.MobileTablet=t.Mobile=t.LargeDesktop=t.Desktop=t.CustomQuery=void 0;var o=r(n(2015)),i=r(n(4750)),a=function(e){var t=e.query,n=e.wrappedComponent;return o.default.createElement(i.default,{query:t},(function(e){return e&&n}))};t.Mobile=function(e){var t=e.children;return o.default.createElement(a,{query:"(max-width: 767px)",wrappedComponent:t})},t.MobileTablet=function(e){var t=e.children;return o.default.createElement(a,{query:"(max-width: 991px)",wrappedComponent:t})},t.Tablet=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px) and (max-width: 991px)",wrappedComponent:t})},t.TabletDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px)",wrappedComponent:t})},t.Desktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 992px)",wrappedComponent:t})},t.SmallDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px) and (max-width: 1199px)",wrappedComponent:t})},t.LargeDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 1200px)",wrappedComponent:t})},t.CustomQuery=function(e){var t=e.query,n=e.children;return o.default.createElement(a,{query:t,wrappedComponent:n})},t.default=a},1204:(e,t,n)=>{var r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CustomQuery",{enumerable:!0,get:function(){return o.CustomQuery}}),Object.defineProperty(t,"Desktop",{enumerable:!0,get:function(){return o.Desktop}}),Object.defineProperty(t,"LargeDesktop",{enumerable:!0,get:function(){return o.LargeDesktop}}),Object.defineProperty(t,"Mobile",{enumerable:!0,get:function(){return o.Mobile}}),Object.defineProperty(t,"MobileTablet",{enumerable:!0,get:function(){return o.MobileTablet}}),Object.defineProperty(t,"SmallDesktop",{enumerable:!0,get:function(){return o.SmallDesktop}}),Object.defineProperty(t,"Tablet",{enumerable:!0,get:function(){return o.Tablet}}),Object.defineProperty(t,"TabletDesktop",{enumerable:!0,get:function(){return o.TabletDesktop}}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}(n(1550));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.default=o.default},3465:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=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.getRandomArrayItem=t.getMonthName=t.getLoggedInUserDetails=t.getFormattedDate=void 0;var r=n(4513),o=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return i("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(o.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(o.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!n&&/(iPhone\sOS)\s([\d_]+)/.test(t)||n,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.getLoggedInUserDetails=function(){var e=(0,r.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var n=0;n<e.length;n++){var o,i=null===(o=window.atob(e[n].split(".")[1]))||void 0===o?void 0:o.toString("ascii"),a=JSON.parse(i),u=a.firstName,l=a.email,c=a.dev;window.location.hostname.includes("dev.webjet")&&!c||(t={firstName:u,email:l})}return t}),u=(t.isUserLoggedIn=function(){return!!a().firstName},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,n=window.scrollY,r=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,o=e.offsetHeight})),document.addEventListener("scroll",(function(){o=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||o<=r?e.style.top="0px":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"),n=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){u(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.scrollTop,r=e.clientHeight,o=t-n;return o>=r-1&&o<=r+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},t.scrollTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:n,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())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())},t.getRandomArrayItem=function(e){return Array.isArray(e)&&e.length>0?e[Math.floor(Math.random()*e.length)]:null}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=t.getAllCookiesStorage=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}},r=(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){var t=r(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=[],o=0;o<n.length;o++){for(var i=n[o];" "===i.charAt(0);)i=i.substring(1,i.length);0===i.indexOf(t)&&r.push(i.substring(t.length,i.length))}return r});t.setCookieStorage=function(e,t,n){var r=window.location.hostname,o="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(n||86400)}},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")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},4750:e=>{e.exports=require("react-media")},2770:e=>{e.exports=require("styled-components")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}var r={};(()=>{var e=r,t=n(3751),o=n(8063);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(n(2462)),a=t(n(6031)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2015)),l=(t(n(9825)),t(n(2770))),c=n(3465),s=n(1204),d=["query"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var p=l.default.div.withConfig({displayName:"two-direction-sticky-panel__StyledStickyPanel",componentId:"sc-1plmb0e-0"})(["position:sticky;"]),g=function(e){var t=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e=t.current;(0,c.setTwoDirectionStickyPanel)(e)}),[]),u.default.createElement(p,(0,a.default)({ref:t},e))};e.default=function(e){var t=e.query,n=void 0===t?"desktop":t,r=(0,i.default)(e,d);return"desktop"===n?u.default.createElement(u.default.Fragment,null,u.default.createElement(s.Desktop,null,u.default.createElement(g,r)),u.default.createElement(s.MobileTablet,null,u.default.createElement("div",r))):u.default.createElement(g,r)}})(),module.exports=r})();
|
|
1
|
+
(()=>{"use strict";var e={1550:(e,t,n)=>{var r=n(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TabletDesktop=t.Tablet=t.SmallDesktop=t.MobileTablet=t.Mobile=t.LargeDesktop=t.Desktop=t.CustomQuery=void 0;var o=r(n(2015)),i=r(n(4750)),a=function(e){var t=e.query,n=e.wrappedComponent;return o.default.createElement(i.default,{query:t},(function(e){return e&&n}))};t.Mobile=function(e){var t=e.children;return o.default.createElement(a,{query:"(max-width: 767px)",wrappedComponent:t})},t.MobileTablet=function(e){var t=e.children;return o.default.createElement(a,{query:"(max-width: 991px)",wrappedComponent:t})},t.Tablet=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px) and (max-width: 991px)",wrappedComponent:t})},t.TabletDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px)",wrappedComponent:t})},t.Desktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 992px)",wrappedComponent:t})},t.SmallDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 768px) and (max-width: 1199px)",wrappedComponent:t})},t.LargeDesktop=function(e){var t=e.children;return o.default.createElement(a,{query:"(min-width: 1200px)",wrappedComponent:t})},t.CustomQuery=function(e){var t=e.query,n=e.children;return o.default.createElement(a,{query:t,wrappedComponent:n})},t.default=a},1204:(e,t,n)=>{var r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CustomQuery",{enumerable:!0,get:function(){return o.CustomQuery}}),Object.defineProperty(t,"Desktop",{enumerable:!0,get:function(){return o.Desktop}}),Object.defineProperty(t,"LargeDesktop",{enumerable:!0,get:function(){return o.LargeDesktop}}),Object.defineProperty(t,"Mobile",{enumerable:!0,get:function(){return o.Mobile}}),Object.defineProperty(t,"MobileTablet",{enumerable:!0,get:function(){return o.MobileTablet}}),Object.defineProperty(t,"SmallDesktop",{enumerable:!0,get:function(){return o.SmallDesktop}}),Object.defineProperty(t,"Tablet",{enumerable:!0,get:function(){return o.Tablet}}),Object.defineProperty(t,"TabletDesktop",{enumerable:!0,get:function(){return o.TabletDesktop}}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}(n(1550));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.default=o.default},3465:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=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.getRandomArrayItem=t.getMonthName=t.getLoggedInUserDetails=t.getFormattedDate=void 0;var r=n(4513),o=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return i("(max-width: ".concat(o.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(o.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(o.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!n&&/(iPhone\sOS)\s([\d_]+)/.test(t)||n,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.getLoggedInUserDetails=function(){var e=(0,r.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var n=0;n<e.length;n++){var o,i=null===(o=window.atob(e[n].split(".")[1]))||void 0===o?void 0:o.toString("ascii"),a=JSON.parse(i),u=a.firstName,l=a.email,c=a.dev;window.location.hostname.includes("dev.webjet")&&!c||(t={firstName:u,email:l})}return t}),u=(t.isUserLoggedIn=function(){return!!a().firstName},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,n=window.scrollY,r=window.innerHeight,o=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,o=e.offsetHeight})),document.addEventListener("scroll",(function(){o=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||o<=r?e.style.top="0px":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"),n=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){u(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,n=e.scrollTop,r=e.clientHeight,o=t-n;return o>=r-1&&o<=r+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},t.scrollTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:n,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())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())},t.getRandomArrayItem=function(e){return Array.isArray(e)&&e.length>0?e[Math.floor(Math.random()*e.length)]:null}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=t.getAllCookiesStorage=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}},r=(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){var t=r(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=[],o=0;o<n.length;o++){for(var i=n[o];" "===i.charAt(0);)i=i.substring(1,i.length);0===i.indexOf(t)&&r.push(i.substring(t.length,i.length))}return r});t.setCookieStorage=function(e,t,n){var r=window.location.hostname,o="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(o,"; Path=/; Max-Age=").concat(n||86400)}},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")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},4750:e=>{e.exports=require("react-media")},2770:e=>{e.exports=require("styled-components")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}var r={};(()=>{var e=r,t=n(3751),o=n(8063);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(n(2462)),a=t(n(6031)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2015)),l=(t(n(9825)),t(n(2770))),c=n(3465),s=n(1204),d=["query"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var p=l.default.div.withConfig({displayName:"two-direction-sticky-panel__StyledStickyPanel",componentId:"sc-1plmb0e-0"})(["position:sticky;z-index:2;"]),g=function(e){var t=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e=t.current;(0,c.setTwoDirectionStickyPanel)(e)}),[]),u.default.createElement(p,(0,a.default)({ref:t},e))};e.default=function(e){var t=e.query,n=void 0===t?"desktop":t,r=(0,i.default)(e,d);return"desktop"===n?u.default.createElement(u.default.Fragment,null,u.default.createElement(s.Desktop,null,u.default.createElement(g,r)),u.default.createElement(s.MobileTablet,null,u.default.createElement("div",r))):u.default.createElement(g,r)}})(),module.exports=r})();
|