@biotic-ui/drawer
Advanced tools
Comparing version 0.3.10 to 0.3.11
@@ -1,1 +0,1 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("styled-components"),require("framer-motion"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","styled-components","framer-motion","react-dom"],t);else{var r="object"==typeof exports?t(require("react"),require("styled-components"),require("framer-motion"),require("react-dom")):t(e.React,e[void 0],e[void 0],e[void 0]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(e,t,r,n){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){(function(e){var n,o,i;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a,u){"object"==c(t)&&"object"==c(e)?e.exports=u(r(0),r(1)):(o=[r(0),r(1)],void 0===(i="function"==typeof(n=u)?n.apply(t,o):n)||(e.exports=i))}(0,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==c(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=16)}([function(t,r){t.exports=e},function(e,t,r){var n=r(3),o=r(2);e.exports=function(e,t,r){var i=!0,c=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,c="trailing"in r?!!r.trailing:c),n(e,t,{leading:i,maxWait:t,trailing:c})}},function(e,t){e.exports=function(e){var t=c(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,r){var n=r(2),o=r(7),i=r(10),c=Math.max,a=Math.min;e.exports=function(e,t,r){var u,l,f,s,d,b,m=0,p=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=u,n=l;return u=l=void 0,m=t,s=e.apply(n,r)}function g(e){return m=e,d=setTimeout(O,t),p?h(e):s}function w(e){var r=e-b;return void 0===b||r>=t||r<0||v&&e-m>=f}function O(){var e=o();if(w(e))return j(e);d=setTimeout(O,function(e){var r=t-(e-b);return v?a(r,f-(e-m)):r}(e))}function j(e){return d=void 0,y&&u?h(e):(u=l=void 0,s)}function k(){var e=o(),r=w(e);if(u=arguments,l=this,b=e,r){if(void 0===d)return g(b);if(v)return clearTimeout(d),d=setTimeout(O,t),h(b)}return void 0===d&&(d=setTimeout(O,t)),s}return t=i(t)||0,n(r)&&(p=!!r.leading,f=(v="maxWait"in r)?c(i(r.maxWait)||0,t):f,y="trailing"in r?!!r.trailing:y),k.cancel=function(){void 0!==d&&clearTimeout(d),m=0,u=b=l=d=void 0},k.flush=function(){return void 0===d?s:j(o())},k}},function(e,t,r){var n=r(8),o="object"==("undefined"==typeof self?"undefined":c(self))&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},function(e,t,r){var n=r(4).Symbol;e.exports=n},function(e,r){e.exports=t},function(e,t,r){var n=r(4);e.exports=function(){return n.Date.now()}},function(e,t,r){(function(t){var r="object"==c(t)&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(9))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==("undefined"==typeof window?"undefined":c(window))&&(r=window)}e.exports=r},function(e,t,r){var n=r(2),o=r(11),i=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var r=a.test(e);return r||u.test(e)?l(e.slice(2),r?2:8):c.test(e)?NaN:+e}},function(e,t,r){var n=r(12),o=r(15);e.exports=function(e){return"symbol"==c(e)||o(e)&&"[object Symbol]"==n(e)}},function(e,t,r){var n=r(5),o=r(13),i=r(14),c=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?o(e):i(e)}},function(e,t,r){var n=r(5),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var o=c.call(e);return n&&(t?e[a]=r:delete e[a]),o}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==c(e)}},function(e,t,r){"use strict";r.r(t),r.d(t,"useCombinedRefs",(function(){return i})),r.d(t,"useLongPress",(function(){return d})),r.d(t,"useOnEscape",(function(){return p})),r.d(t,"usePreventScroll",(function(){return v})),r.d(t,"useScroll",(function(){return k})),r.d(t,"useScrollShadow",(function(){return q})),r.d(t,"SHADOWS",(function(){return W})),r.d(t,"useMatchMedia",(function(){return F})),r.d(t,"useForm",(function(){return J})),r.d(t,"useOnline",(function(){return V})),r.d(t,"useIdleCallback",(function(){return ee})),r.d(t,"useThrottle",(function(){return N})),r.d(t,"useDebounce",(function(){return S})),r.d(t,"useGetContainer",(function(){return re})),r.d(t,"useResize",(function(){return E})),r.d(t,"useWindowSize",(function(){return oe})),r.d(t,"useResizeObserver",(function(){return A})),r.d(t,"useQueryParams",(function(){return ie})),r.d(t,"useMounted",(function(){return ce})),r.d(t,"useOutsideClick",(function(){return ae})),r.d(t,"useClickHandler",(function(){return ue}));var n=r(0),o=r.n(n);function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=function(e){t.forEach((function(t){if(t)return"function"==typeof t?t(e):void(t.current=e)}))};return Object(n.useCallback)(o,t)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={shouldPreventDefault:!0,delay:300};function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=l(l({},s),t),o=r.shouldPreventDefault,i=r.delay,a=Object(n.useState)(!1),u=c(a,2),f=u[0],d=u[1],m=Object(n.useRef)(0),p=Object(n.useRef)(null),v=Object(n.useCallback)((function(t){o&&t.target&&(t.target.addEventListener("touchend",b,{passive:!1}),p.current=t.target),m.current=window.setTimeout((function(){e(t),d(!0)}),i)}),[e,i,o]),y=Object(n.useCallback)((function(e){m.current&&window.clearTimeout(m.current),d(!1),o&&null!==p.current&&p.current.removeEventListener("touchend",b)}),[o,f]);return{onTouchStart:function(e){return v(e)},onTouchEnd:function(e){return y(e)}}}var b=function(e){(function(e){return"touches"in e})(e)&&e.touches.length<2&&e.preventDefault&&e.preventDefault()},m=function(e){};function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=Object(n.useRef)(e);Object(n.useEffect)((function(){t.current=e})),Object(n.useEffect)((function(){function e(e){"Escape"==e.key&&t.current&&t.current(e)}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[])}function v(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Object(n.useEffect)((function(){if(e){var t=document.body.style,r=t.overflow,n=t.paddingRight,o=(document.documentElement.clientWidth,window.innerWidth-document.body.offsetWidth);return document.body.style.paddingRight="calc(".concat(o,"px + ").concat(n,")"),document.body.style.overflow="hidden",function(){document.body.style.overflow=r,document.body.style.paddingRight=n}}}),[e])}var y=r(1),h=r.n(y);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e){return e?e.scrollTop:window.pageYOffset}function j(e){return e?e.scrollLeft:window.pageXOffset}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{current:null},r=t.current,n=o.a.useState({y:O(r),x:j(r),delta:{y:O(r),x:j(r)}}),i=g(n,2),c=i[0],a=i[1],u=o.a.useRef((function(e){}));o.a.useEffect((function(){u.current=e}));var l=o.a.useCallback(h()((function(){var e={y:O(r),x:j(r),delta:{y:O(r)-c.y,x:j(r)-c.x}};a(e),u.current&&u.current(e)}),500,{leading:!1,trailing:!0}),[r]);return o.a.useEffect((function(){var e=t.current?t.current:window;return e.addEventListener("scroll",l),function(){e.removeEventListener("scroll",l),l.cancel()}}),[t.current]),c}var _=r(3),x=r.n(_);function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,i=Object(n.useRef)(e);return Object(n.useEffect)((function(){i.current=e})),Object(n.useCallback)(x()((function(){return i.current.apply(i,arguments)}),t,o),r)}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,i=Object(n.useRef)(e);return Object(n.useEffect)((function(){i.current=e})),Object(n.useCallback)(h()((function(){return i.current.apply(i,arguments)}),t,o),r)}function E(e){var t=Object(n.useRef)((function(e){}));Object(n.useEffect)((function(){t.current=e})),Object(n.useEffect)((function(){function e(e){t.current&&t.current(e)}return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e){var t=Object(n.useRef)(e),r=Object(n.useRef)((function(){})),o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)(null),2),i=o[0],c=o[1];return Object(n.useEffect)((function(){t.current=e})),Object(n.useEffect)((function(){if(i){var e=new window.ResizeObserver((function(e){r.current=t.current(e)}));return e.observe(i),function(){e.disconnect(),r.current&&r.current()}}}),[i]),c}var C=r(6),I=r.n(C);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){D(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L="var(--scroll-shadow, var(--default-scroll-shadow))",W={top:"".concat(L," 0px 12px 8px -13px inset"),bottom:"".concat(L," 0px -12px 8px -13px inset"),left:"".concat(L," 12px 0 8px -13px inset"),right:"".concat(L," -12px 0 8px -13px inset")},$={top:!0,bottom:!0,left:!0,right:!0,shadows:W},U=I.a.div.withConfig({displayName:"use_scroll_shadow__ShadowBox",componentId:"sc-1uvhknf-0"})(["width:0;height:0;position:fixed;top:0;left:0;pointer-events:none;overflow:hidden;"]);function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=R(R({},$),t),o=Object(n.useState)({top:!1,bottom:!1,left:!1,right:!1}),i=T(o,2),c=i[0],a=i[1],u=Object(n.useState)({bottom:0,right:0}),l=T(u,2),f=l[0],s=l[1],d=S((function(){if(null!==e.current){var t=e.current,n=t.scrollHeight,o=t.scrollWidth,i=t.scrollTop,c=t.scrollLeft,u=t.clientWidth,l=t.clientHeight;a({top:!!r.top&&i>0,bottom:!!r.bottom&&n>Math.ceil(i)+l+5,left:!!r.left&&c>0,right:!!r.right&&o>Math.ceil(c)+u+5})}}),500,[r,a,e],{leading:!0,trailing:!0});Object(n.useEffect)(d,[e,a]),Object(n.useEffect)((function(){return d.cancel}),[d]),Object(n.useEffect)((function(){if(e.current){var t=e.current,r=t.clientWidth,n=t.offsetWidth,o=t.offsetHeight,i=t.clientHeight;s({bottom:o-i,right:n-r})}}),[e,s]);var b=Object(n.useState)({top:0,left:0,width:0,height:0}),m=T(b,2),p=m[0],v=m[1],y=A((function(e){e.forEach((function(e){if(e.target){var t=e.target.getBoundingClientRect();v(t)}}))}));Object(n.useEffect)((function(){y(e.current)}),[e,y]);var h=N((function(){if(e.current){var t=e.current.getBoundingClientRect();v(t)}}),50,[e]);E(h);var g={"--default-scroll-shadow":"rgba(0, 0, 0, 0.3)","--shadow-offset-bottom":"".concat(f.bottom,"px"),"--shadow-offset-right":"".concat(f.right,"px"),top:"".concat(p.top,"px"),left:"".concat(p.left,"px"),width:"".concat(p.width-f.right,"px"),height:"".concat(p.height-f.bottom,"px"),boxShadow:B(c,r.shadows)};return[d,g,U]}function B(e,t){return Object.entries(e).filter((function(e){return!0===e[1]})).map((function(e){return t[e[0]]})).join(",")}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e){var t=Object(n.useMemo)((function(){return window.matchMedia(e).matches}),[e]),r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)(t),2),o=r[0],i=r[1];return Object(n.useEffect)((function(){var t=window.matchMedia(e);i(t.matches);var r=function(e){return i(e.matches)};return t.addListener(r),function(){t.removeListener(r)}}),[i,e]),o}function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){Q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function J(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)(e),2),r=t[0],o=t[1];return[r,function(e){var t=e.target,n=t.name,i=t.value;o(G(G({},r),{},Q({},n,i)))},o]}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)(!0),2),t=e[0],r=e[1];return Object(n.useEffect)((function(){function e(e){r(navigator.onLine)}return window.addEventListener("online",e),window.addEventListener("offline",e),function(){window.removeEventListener("online",e),window.removeEventListener("offline",e)}}),[]),t}function Z(e){return setTimeout((function(){}),0)}function ee(e){var t=Object(n.useRef)(e),r=Object(n.useRef)(Z),o=Object(n.useRef)((function(e){}));Object(n.useEffect)((function(){r.current=window.requestIdleCallback||function(e){return setTimeout((function(){var t=Date.now();e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},o.current=window.cancelIdleCallback||function(e){clearTimeout(e)}})),Object(n.useEffect)((function(){t.current=e})),Object(n.useEffect)((function(){var e=r.current(t.current);return function(){o.current(e)}}),[])}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function re(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)(null),2),r=t[0],o=t[1];return Object(n.useEffect)((function(){if(null===r){var t=document.querySelector("#".concat(e));if(null===t){var n=document.createElement("div");n.id=e,document.body.appendChild(n),o(n)}else o(t)}}),[e]),r}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oe(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)({innerHeight:0,innerWidth:0}),2),t=e[0],r=e[1];return Object(n.useEffect)((function(){function e(){r({innerHeight:window.innerHeight,innerWidth:window.innerWidth})}return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[r]),t}function ie(e){return Object(n.useMemo)((function(){return new URLSearchParams(e)}),[e])}function ce(){var e=Object(n.useRef)(!0);return Object(n.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}function ae(e){var t=Object(n.useRef)(null),r=Object(n.useRef)(e);return Object(n.useEffect)((function(){r.current=e})),Object(n.useEffect)((function(){if(t.current){var e=function(e){null!==t.current&&(e.composedPath().includes(t.current)||r.current(e))};return window.addEventListener("click",e),function(){window.removeEventListener("click",e)}}}),[t]),t}function ue(e){var t=e.onClick,r=e.onDblClick,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,i=Object(n.useRef)(null),c=Object(n.useCallback)((function(e){i.current?(clearTimeout(i.current),i.current=null,r(e)):i.current=setTimeout((function(){t(e),i.current=null}),o)}),[o,t,r]);return c}}])}))}).call(this,r(4)(e))},function(e,t){e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=n},function(e,t,r){(function(e){var n,o,i;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a,u){"object"==c(t)&&"object"==c(e)?e.exports=u(r(0),r(1)):(o=[r(0),r(1)],void 0===(i="function"==typeof(n=u)?n.apply(t,o):n)||(e.exports=i))}(0,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==c(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";r.r(t),r.d(t,"Backdrop",(function(){return i})),r.d(t,"InputBase",(function(){return c})),r.d(t,"Scrollbar",(function(){return a})),r.d(t,"Pulse",(function(){return m})),r.d(t,"Bounce",(function(){return v})),r.d(t,"Flow",(function(){return h})),r.d(t,"CircleFade",(function(){return w})),r.d(t,"ellipsis",(function(){return O})),r.d(t,"clamp",(function(){return j}));var n=r(1),o=r.n(n),i=o.a.div.withConfig({displayName:"backdrop__Backdrop",componentId:"o8cpt-0"})(["background:var(--backdrop,rgba(63,63,63,0.1));position:fixed;width:100%;height:100%;top:0;left:0;z-index:var(--background-z-index,10);",""],(function(e){return!e.open&&"\n\t\tpointer-events: none;\n\t"})),c=Object(n.css)(["--default-border:1px solid rgba(34,36,38,.15);margin:0;max-inline-size:100%;inline-size:100%;flex:1 0 auto;outline:none;-webkit-tap-highlight-color:var(--tap-highlight-color,rgba(255,255,255,0));text-align:left;line-height:1.21428571em;padding-inline:0.62em;padding-block:.38em;block-size:var(--baseline-4);background:var(--input-bg,none);border:var(--input-border,var(--default-border));color:var(--input-color,rgba(0,0,0,.87));border-radius:var(--input-border-radius,calc(var(--baseline) * 0.5));-webkit-transition:box-shadow .1s ease,border-color .1s ease;transition:box-shadow .1s ease,border-color .1s ease;box-shadow:none;font-size:inherit;box-sizing:border-box;::placeholder{color:var(--input-color-placeholder);opacity:1;}:-ms-input-placeholder{color:var(--input-color-placeholder);}::-ms-input-placeholder{color:var(--input-color-placeholder);}:disabled{opacity:var(--input-disabled-opacity,0.8);background:var(--input-disabled-background,rgba(100,100,100,0.1));}"]),a=Object(n.css)(["--default-thumb-color:#909090;--default-track-color:#e9e8f3;scrollbar-color:var(--scrollbar-track,var(--default-track-color)) var(--scrollbar-thumb,var(--default-thumb-color));scrollbar-width:thin;&::-webkit-scrollbar-track{background-color:var(--scrollbar-track,var(--default-track-color));}&::-webkit-scrollbar{width:var(--baseline);height:var(--baseline);background-color:var(--scrollbar-track,var(--default-track-color));}&::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb,var(--default-thumb-color));border-radius:0;}&::-webkit-scrollbar-corner{background-color:var(--scrollbar-thumb,var(--default-thumb-color));}"]),u=r(0),l=r.n(u),f="C:\\workspace\\src\\riezler.co\\biotic\\packages\\leptons\\src\\loading.tsx",s=void 0;function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var b=Object(n.css)(["--default-pulse-size:var(--loading-size,var(--baseline-5));--default-pulse-color:var(--loading-color,currentColor);--size:",";--color:",";"],(function(e){return e.size?"string"==typeof(t=e.size)?t:"".concat(t,"px"):"var(--default-pulse-size)";var t}),(function(e){return e.color?e.color:"var(--default-pulse-color)"})),m=o.a.div.withConfig({displayName:"loading__Pulse",componentId:"sc-6nkomy-0"})([""," width:var(--size);height:var(--size);background-color:var(--color);border-radius:100%;animation:sk-pulse 1.2s infinite cubic-bezier(0.455,0.03,0.515,0.955);@keyframes sk-pulse{0%{transform:scale(0);}100%{transform:scale(1);opacity:0;}}"],b),p=o.a.div.withConfig({displayName:"loading__StyledBounce",componentId:"sc-6nkomy-1"})([""," width:var(--size);height:var(--size);position:relative;.sk-bounce-dot{width:100%;height:100%;border-radius:50%;background-color:var(--color);opacity:0.6;position:absolute;top:0;left:0;animation:sk-bounce 2s infinite cubic-bezier(0.455,0.03,0.515,0.955);}.sk-bounce-dot:nth-child(2){animation-delay:-1.0s;}@keyframes sk-bounce{0%,100%{transform:scale(0);}45%,55%{transform:scale(1);}}"],b),v=function(e){return l.a.createElement(p,d({},e,{__self:s,__source:{fileName:f,lineNumber:79,columnNumber:3}}),l.a.createElement("div",{className:"sk-bounce-dot",__self:s,__source:{fileName:f,lineNumber:80,columnNumber:7}}),l.a.createElement("div",{className:"sk-bounce-dot",__self:s,__source:{fileName:f,lineNumber:81,columnNumber:10}}))},y=o.a.div.withConfig({displayName:"loading__StyledFlow",componentId:"sc-6nkomy-2"})([""," width:calc(var(--size) * 1.3);height:calc(var(--size) * 1.3);display:flex;justify-content:space-between;.sk-flow-dot{width:25%;height:25%;background-color:var(--color);border-radius:50%;animation:sk-flow 1.4s cubic-bezier(0.455,0.03,0.515,0.955) 0s infinite both;}.sk-flow-dot:nth-child(1){animation-delay:-0.30s;}.sk-flow-dot:nth-child(2){animation-delay:-0.15s;}@keyframes sk-flow{0%,80%,100%{transform:scale(0.3);}40%{transform:scale(1);}}"],b),h=function(e){return l.a.createElement(y,d({},e,{__self:s,__source:{fileName:f,lineNumber:118,columnNumber:3}}),l.a.createElement("div",{className:"sk-flow-dot",__self:s,__source:{fileName:f,lineNumber:119,columnNumber:4}}),l.a.createElement("div",{className:"sk-flow-dot",__self:s,__source:{fileName:f,lineNumber:120,columnNumber:4}}),l.a.createElement("div",{className:"sk-flow-dot",__self:s,__source:{fileName:f,lineNumber:121,columnNumber:4}}))},g=o.a.div.withConfig({displayName:"loading__StyledCircleFade",componentId:"sc-6nkomy-3"})([""," width:var(--size);height:var(--size);position:relative;.sk-circle-fade-dot{width:100%;height:100%;position:absolute;left:0;top:0;}.sk-circle-fade-dot:before{content:'';display:block;width:15%;height:15%;background-color:var(--color);border-radius:100%;animation:sk-circle-fade 1.2s infinite ease-in-out both;}.sk-circle-fade-dot:nth-child(1){transform:rotate(30deg);}.sk-circle-fade-dot:nth-child(2){transform:rotate(60deg);}.sk-circle-fade-dot:nth-child(3){transform:rotate(90deg);}.sk-circle-fade-dot:nth-child(4){transform:rotate(120deg);}.sk-circle-fade-dot:nth-child(5){transform:rotate(150deg);}.sk-circle-fade-dot:nth-child(6){transform:rotate(180deg);}.sk-circle-fade-dot:nth-child(7){transform:rotate(210deg);}.sk-circle-fade-dot:nth-child(8){transform:rotate(240deg);}.sk-circle-fade-dot:nth-child(9){transform:rotate(270deg);}.sk-circle-fade-dot:nth-child(10){transform:rotate(300deg);}.sk-circle-fade-dot:nth-child(11){transform:rotate(330deg);}.sk-circle-fade-dot:nth-child(1):before{animation-delay:-1.1s;}.sk-circle-fade-dot:nth-child(2):before{animation-delay:-1.0s;}.sk-circle-fade-dot:nth-child(3):before{animation-delay:-0.9s;}.sk-circle-fade-dot:nth-child(4):before{animation-delay:-0.8s;}.sk-circle-fade-dot:nth-child(5):before{animation-delay:-0.7s;}.sk-circle-fade-dot:nth-child(6):before{animation-delay:-0.6s;}.sk-circle-fade-dot:nth-child(7):before{animation-delay:-0.5s;}.sk-circle-fade-dot:nth-child(8):before{animation-delay:-0.4s;}.sk-circle-fade-dot:nth-child(9):before{animation-delay:-0.3s;}.sk-circle-fade-dot:nth-child(10):before{animation-delay:-0.2s;}.sk-circle-fade-dot:nth-child(11):before{animation-delay:-0.1s;}@keyframes sk-circle-fade{0%,39%,100%{opacity:0;transform:scale(0.6);}40%{opacity:1;transform:scale(1);}}"],b),w=function(e){return l.a.createElement(g,d({},e,{__self:s,__source:{fileName:f,lineNumber:188,columnNumber:3}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:189,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:190,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:191,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:192,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:193,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:194,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:195,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:196,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:197,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:198,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:199,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:200,columnNumber:4}}))},O="\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\twhite-space: nowrap;\n",j=function(e){return"\n\t\tdisplay: -webkit-box;\n\t\t-webkit-box-orient: vertical;\n\t\t-webkit-line-clamp: ".concat(e,";\n\t\toverflow: hidden;\n\t")}}])}))}).call(this,r(4)(e))},function(e,t,r){"use strict";r.r(t),r.d(t,"Drawer",(function(){return m}));var n=r(0),o=r.n(n),i=r(5),c=r(1),a=r.n(c),u=r(2),l=r(6),f=r(3),s="C:\\workspace\\src\\riezler.co\\biotic\\packages\\drawer\\src\\drawer.tsx",d=a.a.div.withConfig({displayName:"drawer__StyledDrawer",componentId:"lhphoo-0"})(["max-width:100vw;height:100vh;position:fixed;box-shadow:",";background:var(--drawer-background,#fff);overflow-y:auto;top:0;z-index:11;",";",";--menu-box-shadow:none;--menu-width:auto;--menu-padding:0;--menu-border:none;"],(function(e){return e.isOpen?"var(--shadow-3)":"none"}),(function(e){return e.width?"width: ".concat(e.width):""}),(function(e){return"left"===e.side?"left: 0":"right: 0"})),b=function(){};function m(e){var t=e.open,r=e.children,n=e.maxWidth,c=void 0===n?"auto":n,a=e.onClose,m=void 0===a?b:a,p=e.left,v=void 0===p||p,y=e.scrollable,h=void 0!==y&&y,g=Object(u.useGetContainer)("biotic-drawer-container");Object(u.useOnEscape)((function(){return t&&m({backdrop:!1,escape:!0})})),Object(u.usePreventScroll)(t&&!h);var w="auto"===c?"100vw":"".concat(c,"px"),O={hidden:{transform:v?"translateX(-".concat(w,")"):"translateX(".concat(w,")")},visible:{transform:"translateX(0px)"}},j=o.a.createElement(o.a.Fragment,{__self:this,__source:{fileName:s,lineNumber:96,columnNumber:3}},!h&&o.a.createElement(l.Backdrop,{as:f.motion.div,open:t,initial:"hidden",animate:t?"visible":"hidden",variants:{hidden:{opacity:0},visible:{opacity:1}},onClick:function(){m&&m({backdrop:!0,escape:!1})},__self:this,__source:{fileName:s,lineNumber:98,columnNumber:5}}),o.a.createElement(d,{as:f.motion.div,initial:"hidden",animate:t?"visible":"hidden",variants:O,side:v?"left":"right",width:w,transition:{type:"spring",damping:21,stiffness:130},isOpen:t,__self:this,__source:{fileName:s,lineNumber:107,columnNumber:4}},r));return g?Object(i.createPortal)(j,g):null}}])})); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("styled-components"),require("framer-motion"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","styled-components","framer-motion","react-dom"],t);else{var r="object"==typeof exports?t(require("react"),require("styled-components"),require("framer-motion"),require("react-dom")):t(e.React,e[void 0],e[void 0],e[void 0]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(e,t,r,n){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){(function(e){var n,o,i;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a,u){"object"==c(t)&&"object"==c(e)?e.exports=u(r(0),r(1)):(o=[r(0),r(1)],void 0===(i="function"==typeof(n=u)?n.apply(t,o):n)||(e.exports=i))}(0,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==c(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=16)}([function(t,r){t.exports=e},function(e,t,r){var n=r(3),o=r(2);e.exports=function(e,t,r){var i=!0,c=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,c="trailing"in r?!!r.trailing:c),n(e,t,{leading:i,maxWait:t,trailing:c})}},function(e,t){e.exports=function(e){var t=c(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,r){var n=r(2),o=r(7),i=r(10),c=Math.max,a=Math.min;e.exports=function(e,t,r){var u,l,f,s,d,b,m=0,p=!1,h=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=u,n=l;return u=l=void 0,m=t,s=e.apply(n,r)}function g(e){return m=e,d=setTimeout(O,t),p?y(e):s}function w(e){var r=e-b;return void 0===b||r>=t||r<0||h&&e-m>=f}function O(){var e=o();if(w(e))return j(e);d=setTimeout(O,function(e){var r=t-(e-b);return h?a(r,f-(e-m)):r}(e))}function j(e){return d=void 0,v&&u?y(e):(u=l=void 0,s)}function k(){var e=o(),r=w(e);if(u=arguments,l=this,b=e,r){if(void 0===d)return g(b);if(h)return clearTimeout(d),d=setTimeout(O,t),y(b)}return void 0===d&&(d=setTimeout(O,t)),s}return t=i(t)||0,n(r)&&(p=!!r.leading,f=(h="maxWait"in r)?c(i(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),k.cancel=function(){void 0!==d&&clearTimeout(d),m=0,u=b=l=d=void 0},k.flush=function(){return void 0===d?s:j(o())},k}},function(e,t,r){var n=r(8),o="object"==("undefined"==typeof self?"undefined":c(self))&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},function(e,t,r){var n=r(4).Symbol;e.exports=n},function(e,r){e.exports=t},function(e,t,r){var n=r(4);e.exports=function(){return n.Date.now()}},function(e,t,r){(function(t){var r="object"==c(t)&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(9))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==("undefined"==typeof window?"undefined":c(window))&&(r=window)}e.exports=r},function(e,t,r){var n=r(2),o=r(11),i=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var r=a.test(e);return r||u.test(e)?l(e.slice(2),r?2:8):c.test(e)?NaN:+e}},function(e,t,r){var n=r(12),o=r(15);e.exports=function(e){return"symbol"==c(e)||o(e)&&"[object Symbol]"==n(e)}},function(e,t,r){var n=r(5),o=r(13),i=r(14),c=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?o(e):i(e)}},function(e,t,r){var n=r(5),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var o=c.call(e);return n&&(t?e[a]=r:delete e[a]),o}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==c(e)}},function(e,t,r){"use strict";r.r(t),r.d(t,"useCombinedRefs",(function(){return i})),r.d(t,"useLongPress",(function(){return d})),r.d(t,"useOnEscape",(function(){return p})),r.d(t,"usePreventScroll",(function(){return h})),r.d(t,"useScroll",(function(){return k})),r.d(t,"useScrollShadow",(function(){return U})),r.d(t,"SHADOWS",(function(){return W})),r.d(t,"useMatchMedia",(function(){return F})),r.d(t,"useForm",(function(){return J})),r.d(t,"useOnline",(function(){return V})),r.d(t,"useIdleCallback",(function(){return ee})),r.d(t,"useThrottle",(function(){return N})),r.d(t,"useDebounce",(function(){return _})),r.d(t,"useGetContainer",(function(){return re})),r.d(t,"useResize",(function(){return E})),r.d(t,"useWindowSize",(function(){return oe})),r.d(t,"useResizeObserver",(function(){return A})),r.d(t,"useQueryParams",(function(){return ie})),r.d(t,"useMounted",(function(){return ce})),r.d(t,"useOutsideClick",(function(){return ae})),r.d(t,"useClickHandler",(function(){return ue})),r.d(t,"isPromise",(function(){return le})),r.d(t,"LRU",(function(){return me})),r.d(t,"TaskQueue",(function(){return ge}));var n=r(0),o=r.n(n);function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=function(e){t.forEach((function(t){if(t)return"function"==typeof t?t(e):void(t.current=e)}))};return Object(n.useCallback)(o,t)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={shouldPreventDefault:!0,delay:300};function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=l(l({},s),t),o=r.shouldPreventDefault,i=r.delay,a=Object(n.useState)(!1),u=c(a,2),f=u[0],d=u[1],m=Object(n.useRef)(0),p=Object(n.useRef)(null),h=Object(n.useCallback)((function(t){o&&t.target&&(t.target.addEventListener("touchend",b,{passive:!1}),p.current=t.target),m.current=window.setTimeout((function(){e(t),d(!0)}),i)}),[e,i,o]),v=Object(n.useCallback)((function(e){m.current&&window.clearTimeout(m.current),d(!1),o&&null!==p.current&&p.current.removeEventListener("touchend",b)}),[o,f]);return{onTouchStart:function(e){return h(e)},onTouchEnd:function(e){return v(e)}}}var b=function(e){(function(e){return"touches"in e})(e)&&e.touches.length<2&&e.preventDefault&&e.preventDefault()},m=function(e){};function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=Object(n.useRef)(e);Object(n.useEffect)((function(){t.current=e})),Object(n.useEffect)((function(){function e(e){"Escape"==e.key&&t.current&&t.current(e)}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[])}function h(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Object(n.useEffect)((function(){if(e){var t=document.body.style,r=t.overflow,n=t.paddingRight,o=(document.documentElement.clientWidth,window.innerWidth-document.body.offsetWidth);return document.body.style.paddingRight="calc(".concat(o,"px + ").concat(n,")"),document.body.style.overflow="hidden",function(){document.body.style.overflow=r,document.body.style.paddingRight=n}}}),[e])}var v=r(1),y=r.n(v);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e){return e?e.scrollTop:window.pageYOffset}function j(e){return e?e.scrollLeft:window.pageXOffset}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{current:null},r=t.current,n=o.a.useState({y:O(r),x:j(r),delta:{y:O(r),x:j(r)}}),i=g(n,2),c=i[0],a=i[1],u=o.a.useRef((function(e){}));o.a.useEffect((function(){u.current=e}));var l=o.a.useCallback(y()((function(){var e={y:O(r),x:j(r),delta:{y:O(r)-c.y,x:j(r)-c.x}};a(e),u.current&&u.current(e)}),500,{leading:!1,trailing:!0}),[r]);return o.a.useEffect((function(){var e=t.current?t.current:window;return e.addEventListener("scroll",l),function(){e.removeEventListener("scroll",l),l.cancel()}}),[t.current]),c}var x=r(3),S=r.n(x);function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,i=Object(n.useRef)(e);return Object(n.useEffect)((function(){i.current=e})),Object(n.useCallback)(S()((function(){return i.current.apply(i,arguments)}),t,o),r)}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,i=Object(n.useRef)(e);return Object(n.useEffect)((function(){i.current=e})),Object(n.useCallback)(y()((function(){return i.current.apply(i,arguments)}),t,o),r)}function E(e){var t=Object(n.useRef)((function(e){}));Object(n.useEffect)((function(){t.current=e})),Object(n.useEffect)((function(){function e(e){t.current&&t.current(e)}return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e){var t=Object(n.useRef)(e),r=Object(n.useRef)((function(){})),o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)(null),2),i=o[0],c=o[1];return Object(n.useEffect)((function(){t.current=e})),Object(n.useEffect)((function(){if(i){var e=new window.ResizeObserver((function(e){r.current=t.current(e)}));return e.observe(i),function(){e.disconnect(),r.current&&r.current()}}}),[i]),c}var T=r(6),C=r.n(T);function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){D(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L="var(--scroll-shadow, var(--default-scroll-shadow))",W={top:"".concat(L," 0px 12px 8px -13px inset"),bottom:"".concat(L," 0px -12px 8px -13px inset"),left:"".concat(L," 12px 0 8px -13px inset"),right:"".concat(L," -12px 0 8px -13px inset")},$={top:!0,bottom:!0,left:!0,right:!0,shadows:W},q=C.a.div.withConfig({displayName:"use_scroll_shadow__ShadowBox",componentId:"sc-1uvhknf-0"})(["width:0;height:0;position:fixed;top:0;left:0;pointer-events:none;overflow:hidden;"]);function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=R(R({},$),t),o=Object(n.useState)({top:!1,bottom:!1,left:!1,right:!1}),i=I(o,2),c=i[0],a=i[1],u=Object(n.useState)({bottom:0,right:0}),l=I(u,2),f=l[0],s=l[1],d=_((function(){if(null!==e.current){var t=e.current,n=t.scrollHeight,o=t.scrollWidth,i=t.scrollTop,c=t.scrollLeft,u=t.clientWidth,l=t.clientHeight;a({top:!!r.top&&i>0,bottom:!!r.bottom&&n>Math.ceil(i)+l+5,left:!!r.left&&c>0,right:!!r.right&&o>Math.ceil(c)+u+5})}}),500,[r,a,e],{leading:!0,trailing:!0});Object(n.useEffect)(d,[e,a]),Object(n.useEffect)((function(){return d.cancel}),[d]),Object(n.useEffect)((function(){if(e.current){var t=e.current,r=t.clientWidth,n=t.offsetWidth,o=t.offsetHeight,i=t.clientHeight;s({bottom:o-i,right:n-r})}}),[e,s]);var b=Object(n.useState)({top:0,left:0,width:0,height:0}),m=I(b,2),p=m[0],h=m[1],v=A((function(e){e.forEach((function(e){if(e.target){var t=e.target.getBoundingClientRect();h(t)}}))}));Object(n.useEffect)((function(){v(e.current)}),[e,v]);var y=N((function(){if(e.current){var t=e.current.getBoundingClientRect();h(t)}}),50,[e]);E(y);var g={"--default-scroll-shadow":"rgba(0, 0, 0, 0.3)","--shadow-offset-bottom":"".concat(f.bottom,"px"),"--shadow-offset-right":"".concat(f.right,"px"),top:"".concat(p.top,"px"),left:"".concat(p.left,"px"),width:"".concat(p.width-f.right,"px"),height:"".concat(p.height-f.bottom,"px"),boxShadow:B(c,r.shadows)};return[d,g,q]}function B(e,t){return Object.entries(e).filter((function(e){return!0===e[1]})).map((function(e){return t[e[0]]})).join(",")}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e){var t=Object(n.useMemo)((function(){return window.matchMedia(e).matches}),[e]),r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)(t),2),o=r[0],i=r[1];return Object(n.useEffect)((function(){var t=window.matchMedia(e);i(t.matches);var r=function(e){return i(e.matches)};return t.addListener(r),function(){t.removeListener(r)}}),[i,e]),o}function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){Q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function J(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)(e),2),r=t[0],o=t[1];return[r,function(e){var t=e.target,n=t.name,i=t.value;o(G(G({},r),{},Q({},n,i)))},o]}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)(!0),2),t=e[0],r=e[1];return Object(n.useEffect)((function(){function e(e){r(navigator.onLine)}return window.addEventListener("online",e),window.addEventListener("offline",e),function(){window.removeEventListener("online",e),window.removeEventListener("offline",e)}}),[]),t}function Z(e){return setTimeout((function(){}),0)}function ee(e){var t=Object(n.useRef)(e),r=Object(n.useRef)(Z),o=Object(n.useRef)((function(e){}));Object(n.useEffect)((function(){r.current=window.requestIdleCallback||function(e){return setTimeout((function(){var t=Date.now();e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},o.current=window.cancelIdleCallback||function(e){clearTimeout(e)}})),Object(n.useEffect)((function(){t.current=e})),Object(n.useEffect)((function(){var e=r.current(t.current);return function(){o.current(e)}}),[])}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function re(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)(null),2),r=t[0],o=t[1];return Object(n.useEffect)((function(){if(null===r){var t=document.querySelector("#".concat(e));if(null===t){var n=document.createElement("div");n.id=e,document.body.appendChild(n),o(n)}else o(t)}}),[e]),r}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oe(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(n.useState)({innerHeight:0,innerWidth:0}),2),t=e[0],r=e[1];return Object(n.useEffect)((function(){function e(){r({innerHeight:window.innerHeight,innerWidth:window.innerWidth})}return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[r]),t}function ie(e){return Object(n.useMemo)((function(){return new URLSearchParams(e)}),[e])}function ce(){var e=Object(n.useRef)(!0);return Object(n.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}function ae(e){var t=Object(n.useRef)(null),r=Object(n.useRef)(e);return Object(n.useEffect)((function(){r.current=e})),Object(n.useEffect)((function(){if(t.current){var e=function(e){null!==t.current&&(e.composedPath().includes(t.current)||r.current(e))};return window.addEventListener("click",e),function(){window.removeEventListener("click",e)}}}),[t]),t}function ue(e){var t=e.onClick,r=e.onDblClick,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,i=Object(n.useRef)(null),c=Object(n.useCallback)((function(e){i.current?(clearTimeout(i.current),i.current=null,r(e)):i.current=setTimeout((function(){t(e),i.current=null}),o)}),[o,t,r]);return c}function le(e){return e&&e.then&&"function"==typeof e.then}function fe(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return se(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?se(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function de(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function be(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var me=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),be(this,"cacheSize",void 0),be(this,"items",new Map),be(this,"order",void 0),this.cacheSize=t.size,this.order=[]}var t,r;return t=e,(r=[{key:"get",value:function(e){return this.items.has(e)&&(this.order=this.moveToBack(e)),this.items.get(e)}},{key:"set",value:function(e,t){if(this.items.has(e))this.order=this.moveToBack(e);else if(this.order.push(e),this.order.length>this.cacheSize){var r=this.order.shift();this.items.delete(r)}return this.items.set(e,t),this}},{key:"has",value:function(e){return this.items.has(e)}},{key:"delete",value:function(e){return!!this.items.has(e)&&(this.items.delete(e),this.order=this.order.filter((function(t){return t!==e})),!0)}},{key:"clear",value:function(){this.items.clear(),this.order=[]}},{key:"keys",value:function(){return this.order}},{key:"values",value:function(){return this.items.values()}},{key:"entries",value:function(){return this.items.entries()}},{key:"forEach",value:function(e){var t=this;this.items.forEach((function(r,n){return e(r,n,t)}))}},{key:"moveToBack",value:function(e){var t=this.order.indexOf(e);return[].concat(fe(this.order.slice(0,t)),fe(this.order.slice(t+1)),[this.order[t]])}},{key:"size",get:function(){return this.items.size}}])&&de(t.prototype,r),e}();function pe(e,t,r,n,o,i,c){try{var a=e[i](c),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function he(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function c(e){pe(i,n,o,c,a,"next",e)}function a(e){pe(i,n,o,c,a,"throw",e)}c(void 0)}))}}function ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ge=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ye(this,"concurrency",1),ye(this,"running",0),ye(this,"tasks",[]),ye(this,"listener",new Map),ye(this,"paused",!1)}var t,r,n;return t=e,(r=[{key:"runTask",value:(n=he(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.running=this.running+1,!(r=this.listener.get(t.name))){e.next=13;break}return e.prev=3,e.next=6,r(t.task);case 6:n=e.sent,t.resolve(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),t.reject(e.t0);case 13:if(this.running=this.running-1,!this.paused){e.next=16;break}return e.abrupt("return");case 16:(o=this.tasks.shift())&&this.runTask(o);case 18:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(e){return n.apply(this,arguments)})},{key:"enqueueTask",value:function(e){this.tasks.push(e)}},{key:"push",value:function(e,t){var r=this;return new Promise(function(){var n=he(regeneratorRuntime.mark((function n(o,i){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!0!==r.paused){n.next=2;break}return n.abrupt("return",r.enqueueTask({name:e,task:t,resolve:o,reject:i}));case 2:r.running<r.concurrency&&r.runTask({name:e,task:t,resolve:o,reject:i}),r.enqueueTask({name:e,task:t,resolve:o,reject:i});case 4:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())}},{key:"on",value:function(e,t){this.listener.set(e,t)}},{key:"pause",value:function(){this.paused=!0}},{key:"start",value:function(){var e=this.tasks.shift();e&&this.runTask(e)}}])&&ve(t.prototype,r),e}()}])}))}).call(this,r(4)(e))},function(e,t){e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=n},function(e,t,r){(function(e){var n,o,i;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a,u){"object"==c(t)&&"object"==c(e)?e.exports=u(r(0),r(1)):(o=[r(0),r(1)],void 0===(i="function"==typeof(n=u)?n.apply(t,o):n)||(e.exports=i))}(0,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==c(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";r.r(t),r.d(t,"Backdrop",(function(){return i})),r.d(t,"InputBase",(function(){return c})),r.d(t,"Scrollbar",(function(){return a})),r.d(t,"Pulse",(function(){return m})),r.d(t,"Bounce",(function(){return h})),r.d(t,"Flow",(function(){return y})),r.d(t,"CircleFade",(function(){return w})),r.d(t,"ellipsis",(function(){return O})),r.d(t,"clamp",(function(){return j}));var n=r(1),o=r.n(n),i=o.a.div.withConfig({displayName:"backdrop__Backdrop",componentId:"o8cpt-0"})(["background:var(--backdrop,rgba(63,63,63,0.1));position:fixed;width:100%;height:100%;top:0;left:0;z-index:var(--background-z-index,10);",""],(function(e){return!e.open&&"\n\t\tpointer-events: none;\n\t"})),c=Object(n.css)(["--default-border:1px solid rgba(34,36,38,.15);margin:0;max-inline-size:100%;inline-size:100%;flex:1 0 auto;outline:none;-webkit-tap-highlight-color:var(--tap-highlight-color,rgba(255,255,255,0));text-align:left;line-height:1.21428571em;padding-inline:0.62em;padding-block:.38em;block-size:var(--baseline-4);background:var(--input-bg,none);border:var(--input-border,var(--default-border));color:var(--input-color,rgba(0,0,0,.87));border-radius:var(--input-border-radius,calc(var(--baseline) * 0.5));-webkit-transition:box-shadow .1s ease,border-color .1s ease;transition:box-shadow .1s ease,border-color .1s ease;box-shadow:none;font-size:inherit;box-sizing:border-box;::placeholder{color:var(--input-color-placeholder);opacity:1;}:-ms-input-placeholder{color:var(--input-color-placeholder);}::-ms-input-placeholder{color:var(--input-color-placeholder);}:disabled{opacity:var(--input-disabled-opacity,0.8);background:var(--input-disabled-background,rgba(100,100,100,0.1));}"]),a=Object(n.css)(["--default-thumb-color:#909090;--default-track-color:#e9e8f3;scrollbar-color:var(--scrollbar-track,var(--default-track-color)) var(--scrollbar-thumb,var(--default-thumb-color));scrollbar-width:thin;&::-webkit-scrollbar-track{background-color:var(--scrollbar-track,var(--default-track-color));}&::-webkit-scrollbar{width:var(--baseline);height:var(--baseline);background-color:var(--scrollbar-track,var(--default-track-color));}&::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb,var(--default-thumb-color));border-radius:0;}&::-webkit-scrollbar-corner{background-color:var(--scrollbar-thumb,var(--default-thumb-color));}"]),u=r(0),l=r.n(u),f="C:\\workspace\\src\\riezler.co\\biotic\\packages\\leptons\\src\\loading.tsx",s=void 0;function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var b=Object(n.css)(["--default-pulse-size:var(--loading-size,var(--baseline-5));--default-pulse-color:var(--loading-color,currentColor);--size:",";--color:",";"],(function(e){return e.size?"string"==typeof(t=e.size)?t:"".concat(t,"px"):"var(--default-pulse-size)";var t}),(function(e){return e.color?e.color:"var(--default-pulse-color)"})),m=o.a.div.withConfig({displayName:"loading__Pulse",componentId:"sc-6nkomy-0"})([""," width:var(--size);height:var(--size);background-color:var(--color);border-radius:100%;animation:sk-pulse 1.2s infinite cubic-bezier(0.455,0.03,0.515,0.955);@keyframes sk-pulse{0%{transform:scale(0);}100%{transform:scale(1);opacity:0;}}"],b),p=o.a.div.withConfig({displayName:"loading__StyledBounce",componentId:"sc-6nkomy-1"})([""," width:var(--size);height:var(--size);position:relative;.sk-bounce-dot{width:100%;height:100%;border-radius:50%;background-color:var(--color);opacity:0.6;position:absolute;top:0;left:0;animation:sk-bounce 2s infinite cubic-bezier(0.455,0.03,0.515,0.955);}.sk-bounce-dot:nth-child(2){animation-delay:-1.0s;}@keyframes sk-bounce{0%,100%{transform:scale(0);}45%,55%{transform:scale(1);}}"],b),h=function(e){return l.a.createElement(p,d({},e,{__self:s,__source:{fileName:f,lineNumber:79,columnNumber:3}}),l.a.createElement("div",{className:"sk-bounce-dot",__self:s,__source:{fileName:f,lineNumber:80,columnNumber:7}}),l.a.createElement("div",{className:"sk-bounce-dot",__self:s,__source:{fileName:f,lineNumber:81,columnNumber:10}}))},v=o.a.div.withConfig({displayName:"loading__StyledFlow",componentId:"sc-6nkomy-2"})([""," width:calc(var(--size) * 1.3);height:calc(var(--size) * 1.3);display:flex;justify-content:space-between;.sk-flow-dot{width:25%;height:25%;background-color:var(--color);border-radius:50%;animation:sk-flow 1.4s cubic-bezier(0.455,0.03,0.515,0.955) 0s infinite both;}.sk-flow-dot:nth-child(1){animation-delay:-0.30s;}.sk-flow-dot:nth-child(2){animation-delay:-0.15s;}@keyframes sk-flow{0%,80%,100%{transform:scale(0.3);}40%{transform:scale(1);}}"],b),y=function(e){return l.a.createElement(v,d({},e,{__self:s,__source:{fileName:f,lineNumber:118,columnNumber:3}}),l.a.createElement("div",{className:"sk-flow-dot",__self:s,__source:{fileName:f,lineNumber:119,columnNumber:4}}),l.a.createElement("div",{className:"sk-flow-dot",__self:s,__source:{fileName:f,lineNumber:120,columnNumber:4}}),l.a.createElement("div",{className:"sk-flow-dot",__self:s,__source:{fileName:f,lineNumber:121,columnNumber:4}}))},g=o.a.div.withConfig({displayName:"loading__StyledCircleFade",componentId:"sc-6nkomy-3"})([""," width:var(--size);height:var(--size);position:relative;.sk-circle-fade-dot{width:100%;height:100%;position:absolute;left:0;top:0;}.sk-circle-fade-dot:before{content:'';display:block;width:15%;height:15%;background-color:var(--color);border-radius:100%;animation:sk-circle-fade 1.2s infinite ease-in-out both;}.sk-circle-fade-dot:nth-child(1){transform:rotate(30deg);}.sk-circle-fade-dot:nth-child(2){transform:rotate(60deg);}.sk-circle-fade-dot:nth-child(3){transform:rotate(90deg);}.sk-circle-fade-dot:nth-child(4){transform:rotate(120deg);}.sk-circle-fade-dot:nth-child(5){transform:rotate(150deg);}.sk-circle-fade-dot:nth-child(6){transform:rotate(180deg);}.sk-circle-fade-dot:nth-child(7){transform:rotate(210deg);}.sk-circle-fade-dot:nth-child(8){transform:rotate(240deg);}.sk-circle-fade-dot:nth-child(9){transform:rotate(270deg);}.sk-circle-fade-dot:nth-child(10){transform:rotate(300deg);}.sk-circle-fade-dot:nth-child(11){transform:rotate(330deg);}.sk-circle-fade-dot:nth-child(1):before{animation-delay:-1.1s;}.sk-circle-fade-dot:nth-child(2):before{animation-delay:-1.0s;}.sk-circle-fade-dot:nth-child(3):before{animation-delay:-0.9s;}.sk-circle-fade-dot:nth-child(4):before{animation-delay:-0.8s;}.sk-circle-fade-dot:nth-child(5):before{animation-delay:-0.7s;}.sk-circle-fade-dot:nth-child(6):before{animation-delay:-0.6s;}.sk-circle-fade-dot:nth-child(7):before{animation-delay:-0.5s;}.sk-circle-fade-dot:nth-child(8):before{animation-delay:-0.4s;}.sk-circle-fade-dot:nth-child(9):before{animation-delay:-0.3s;}.sk-circle-fade-dot:nth-child(10):before{animation-delay:-0.2s;}.sk-circle-fade-dot:nth-child(11):before{animation-delay:-0.1s;}@keyframes sk-circle-fade{0%,39%,100%{opacity:0;transform:scale(0.6);}40%{opacity:1;transform:scale(1);}}"],b),w=function(e){return l.a.createElement(g,d({},e,{__self:s,__source:{fileName:f,lineNumber:188,columnNumber:3}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:189,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:190,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:191,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:192,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:193,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:194,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:195,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:196,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:197,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:198,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:199,columnNumber:4}}),l.a.createElement("div",{className:"sk-circle-fade-dot",__self:s,__source:{fileName:f,lineNumber:200,columnNumber:4}}))},O="\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\twhite-space: nowrap;\n",j=function(e){return"\n\t\tdisplay: -webkit-box;\n\t\t-webkit-box-orient: vertical;\n\t\t-webkit-line-clamp: ".concat(e,";\n\t\toverflow: hidden;\n\t")}}])}))}).call(this,r(4)(e))},function(e,t,r){"use strict";r.r(t),r.d(t,"Drawer",(function(){return m}));var n=r(0),o=r.n(n),i=r(5),c=r(1),a=r.n(c),u=r(2),l=r(6),f=r(3),s="C:\\workspace\\src\\riezler.co\\biotic\\packages\\drawer\\src\\drawer.tsx",d=a.a.div.withConfig({displayName:"drawer__StyledDrawer",componentId:"lhphoo-0"})(["max-width:100vw;height:100vh;position:fixed;box-shadow:",";background:var(--drawer-background,#fff);overflow-y:auto;top:0;z-index:11;",";",";--menu-box-shadow:none;--menu-width:auto;--menu-padding:0;--menu-border:none;"],(function(e){return e.isOpen?"var(--shadow-3)":"none"}),(function(e){return e.width?"width: ".concat(e.width):""}),(function(e){return"left"===e.side?"left: 0":"right: 0"})),b=function(){};function m(e){var t=e.open,r=e.children,n=e.maxWidth,c=void 0===n?"auto":n,a=e.onClose,m=void 0===a?b:a,p=e.left,h=void 0===p||p,v=e.scrollable,y=void 0!==v&&v,g=Object(u.useGetContainer)("biotic-drawer-container");Object(u.useOnEscape)((function(){return t&&m({backdrop:!1,escape:!0})})),Object(u.usePreventScroll)(t&&!y);var w="auto"===c?"100vw":"".concat(c,"px"),O={hidden:{transform:h?"translateX(-".concat(w,")"):"translateX(".concat(w,")")},visible:{transform:"translateX(0px)"}},j=o.a.createElement(o.a.Fragment,{__self:this,__source:{fileName:s,lineNumber:96,columnNumber:3}},!y&&o.a.createElement(l.Backdrop,{as:f.motion.div,open:t,initial:"hidden",animate:t?"visible":"hidden",variants:{hidden:{opacity:0},visible:{opacity:1}},onClick:function(){m&&m({backdrop:!0,escape:!1})},__self:this,__source:{fileName:s,lineNumber:98,columnNumber:5}}),o.a.createElement(d,{as:f.motion.div,initial:"hidden",animate:t?"visible":"hidden",variants:O,side:h?"left":"right",width:w,transition:{type:"spring",damping:21,stiffness:130},isOpen:t,__self:this,__source:{fileName:s,lineNumber:107,columnNumber:4}},r));return g?Object(i.createPortal)(j,g):null}}])})); |
{ | ||
"name": "@biotic-ui/drawer", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"description": "React Drawer", | ||
@@ -27,3 +27,3 @@ "main": "lib/main.js", | ||
"devDependencies": { | ||
"@biotic-ui/std": "^0.3.4", | ||
"@biotic-ui/std": "^0.3.5", | ||
"@types/styled-components": "^5.1.4", | ||
@@ -45,3 +45,3 @@ "typescript": "^4.1.2", | ||
}, | ||
"gitHead": "4ebf16340ec48ecc88b8ce216e9eb2e51c83c403", | ||
"gitHead": "7e257489f04521f50f546615eba5cf23be12aee5", | ||
"publishConfig": { | ||
@@ -48,0 +48,0 @@ "access": "public" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
62584