Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@biotic-ui/collapsible

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@biotic-ui/collapsible - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

2

lib/main.js

@@ -1,1 +0,1 @@

!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("react-spring"),require("styled-components"));else if("function"==typeof define&&define.amd)define(["react","react-spring","styled-components"],e);else{var n="object"==typeof exports?e(require("react"),require("react-spring"),require("styled-components")):e(t.React,t[void 0],t[void 0]);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){(function(t){var r,o,i;function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(c,a){"object"==u(e)&&"object"==u(t)?t.exports=a(n(0),n(2)):(o=[n(0),n(2)],void 0===(i="function"==typeof(r=a)?r.apply(e,o):r)||(t.exports=i))}(0,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==u(t)&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}([function(e,n){e.exports=t},function(t,e,n){var r=n(3),o=n(2);t.exports=function(t,e,n){var i=!0,u=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,u="trailing"in n?!!n.trailing:u),r(t,e,{leading:i,maxWait:e,trailing:u})}},function(t,e){t.exports=function(t){var e=u(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(2),o=n(7),i=n(10),u=Math.max,c=Math.min;t.exports=function(t,e,n){var a,f,l,s,d,b,p=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var n=a,r=f;return a=f=void 0,p=e,s=t.apply(r,n)}function g(t){return p=t,d=setTimeout(j,e),y?h(t):s}function O(t){var n=t-b;return void 0===b||n>=e||n<0||v&&t-p>=l}function j(){var t=o();if(O(t))return w(t);d=setTimeout(j,function(t){var n=e-(t-b);return v?c(n,l-(t-p)):n}(t))}function w(t){return d=void 0,m&&a?h(t):(a=f=void 0,s)}function S(){var t=o(),n=O(t);if(a=arguments,f=this,b=t,n){if(void 0===d)return g(b);if(v)return clearTimeout(d),d=setTimeout(j,e),h(b)}return void 0===d&&(d=setTimeout(j,e)),s}return e=i(e)||0,r(n)&&(y=!!n.leading,l=(v="maxWait"in n)?u(i(n.maxWait)||0,e):l,m="trailing"in n?!!n.trailing:m),S.cancel=function(){void 0!==d&&clearTimeout(d),p=0,a=b=f=d=void 0},S.flush=function(){return void 0===d?s:w(o())},S}},function(t,e,n){var r=n(8),o="object"==("undefined"==typeof self?"undefined":u(self))&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e,n){var r=n(4).Symbol;t.exports=r},function(t,n){t.exports=e},function(t,e,n){var r=n(4);t.exports=function(){return r.Date.now()}},function(t,e,n){(function(e){var n="object"==u(e)&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(9))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==("undefined"==typeof window?"undefined":u(window))&&(n=window)}t.exports=n},function(t,e,n){var r=n(2),o=n(11),i=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=c.test(t);return n||a.test(t)?f(t.slice(2),n?2:8):u.test(t)?NaN:+t}},function(t,e,n){var r=n(12),o=n(15);t.exports=function(t){return"symbol"==u(t)||o(t)&&"[object Symbol]"==r(t)}},function(t,e,n){var r=n(5),o=n(13),i=n(14),u=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?o(t):i(t)}},function(t,e,n){var r=n(5),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[c]=n:delete t[c]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==u(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"useCombinedRefs",(function(){return i})),n.d(e,"useLongPress",(function(){return d})),n.d(e,"useOnEscape",(function(){return y})),n.d(e,"usePreventScroll",(function(){return v})),n.d(e,"useScroll",(function(){return S})),n.d(e,"useScrollShadow",(function(){return q})),n.d(e,"SHADOWS",(function(){return $})),n.d(e,"useMatchMedia",(function(){return F})),n.d(e,"useForm",(function(){return K})),n.d(e,"useOnline",(function(){return V})),n.d(e,"useIdleCallback",(function(){return Z})),n.d(e,"useThrottle",(function(){return P})),n.d(e,"useDebounce",(function(){return E})),n.d(e,"useGetContainer",(function(){return et})),n.d(e,"useResize",(function(){return C})),n.d(e,"useWindowSize",(function(){return rt})),n.d(e,"useResizeObserver",(function(){return _}));var r=n(0),o=n.n(r);function i(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=function(t){e.forEach((function(e){if(e)return"function"==typeof e?e(t):void(e.current=t)}))};return Object(r.useCallback)(o,e)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={shouldPreventDefault:!0,delay:300};function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(f({},s),e),o=n.shouldPreventDefault,i=n.delay,c=Object(r.useState)(!1),a=u(c,2),l=a[0],d=a[1],p=Object(r.useRef)(),y=Object(r.useRef)(),v=Object(r.useCallback)((function(e){o&&e.target&&(e.target.addEventListener("touchend",b,{passive:!1}),y.current=e.target),p.current=setTimeout((function(){t(e),d(!0)}),i)}),[t,i,o]),m=Object(r.useCallback)((function(t){p.current&&clearTimeout(p.current),d(!1),o&&y.current&&y.current.removeEventListener("touchend",b)}),[o,l]);return{onTouchStart:function(t){return v(t)},onTouchEnd:function(t){return m(t)}}}var b=function(t){(function(t){return"touches"in t})(t)&&t.touches.length<2&&t.preventDefault&&t.preventDefault()},p=function(){};function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,e=Object(r.useRef)(t);Object(r.useEffect)((function(){e.current=t})),Object(r.useEffect)((function(){function t(t){"Escape"==t.key&&e.current&&e.current(t)}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[])}function v(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Object(r.useEffect)((function(){if(t){var e=document.body.style,n=e.overflow,r=e.paddingRight,o=(document.documentElement.clientWidth,window.innerWidth-document.body.offsetWidth);return document.body.style.paddingRight="calc(".concat(o,"px + ").concat(r,")"),document.body.style.overflow="hidden",function(){document.body.style.overflow=n,document.body.style.paddingRight=r}}}),[t])}var m=n(1),h=n.n(m);function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}(t,e)||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 O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function j(t){return t?t.scrollTop:window.pageYOffset}function w(t){return t?t.scrollLeft:window.pageXOffset}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.current,r=o.a.useState({y:j(n),x:w(n),delta:{y:j(n),x:w(n)}}),i=g(r,2),u=i[0],c=i[1],a=o.a.useRef();o.a.useEffect((function(){a.current=t}));var f=o.a.useCallback(h()((function(){var t={y:j(n),x:w(n),delta:{y:j(n)-u.y,x:w(n)-u.x}};c(t),a.current&&a.current(t)}),500,{leading:!1,trailing:!0}),[n]);return o.a.useEffect((function(){var t=e.current?e.current:window;return t.addEventListener("scroll",f),function(){t.removeEventListener("scroll",f),f.cancel()}}),[e.current]),u}var x=n(3),A=n.n(x);function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(r.useCallback)(A()(t,e,o),n)}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(r.useCallback)(h()(t,e,o),n)}function C(t){var e=Object(r.useRef)();Object(r.useEffect)((function(){e.current=t})),Object(r.useEffect)((function(){function t(t){e.current&&e.current(t)}return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[])}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _(t){var e=Object(r.useRef)(t),n=Object(r.useRef)(),o=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}(t,e)||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(r.useState)(null),2),i=o[0],u=o[1];return Object(r.useEffect)((function(){e.current=t})),Object(r.useEffect)((function(){if(i){var t=new ResizeObserver((function(t){n.current=e.current(t)}));return t.observe(i),function(){t.disconnect(),n.current&&n.current()}}}),[i]),u}var T=n(6),M=n.n(T);function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(t,e):void 0}}(t,e)||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 D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var W="var(--scroll-shadow, var(--default-scroll-shadow))",$={top:"".concat(W," 0px 12px 8px -13px inset"),bottom:"".concat(W," 0px -12px 8px -13px inset"),left:"".concat(W," 12px 0 8px -13px inset"),right:"".concat(W," -12px 0 8px -13px inset")},U={top:!0,bottom:!0,left:!0,right:!0,shadows:$},z=M.a.div.withConfig({displayName:"use_scroll_shadow__ShadowBox",componentId:"nhux4o-0"})(["width:0;height:0;position:fixed;top:0;left:0;pointer-events:none;overflow:hidden;"]);function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=k(k({},U),e),o=Object(r.useState)({top:!1,bottom:!1,left:!1,right:!1}),i=N(o,2),u=i[0],c=i[1],a=Object(r.useState)({bottom:0,right:0}),f=N(a,2),l=f[0],s=f[1],d=E((function(){if(t.current){var e=t.current,r=e.scrollHeight,o=e.scrollWidth,i=e.scrollTop,u=e.scrollLeft,a=e.clientWidth,f=e.clientHeight;c({top:!!n.top&&i>0,bottom:!!n.bottom&&r>Math.ceil(i)+f+5,left:!!n.left&&u>0,right:!!n.right&&o>Math.ceil(u)+a+5})}}),500,[n,c,t],{leading:!0,trailing:!0});Object(r.useEffect)(d,[t,c]),Object(r.useEffect)((function(){return d.cancel}),[d]),Object(r.useEffect)((function(){if(t.current){var e=t.current,n=e.clientWidth,r=e.offsetWidth,o=e.offsetHeight,i=e.clientHeight;s({bottom:o-i,right:r-n})}}),[t,s]);var b=Object(r.useState)({top:0,left:0,width:0,height:0}),p=N(b,2),y=p[0],v=p[1],m=_((function(t){t.forEach((function(t){if(t.target){var e=t.target.getBoundingClientRect();v(e)}}))}));Object(r.useEffect)((function(){m(t.current)}),[t,m]);var h=P((function(){if(t.current){var e=t.current.getBoundingClientRect();v(e)}}),50,[t]);C(h);var g={"--default-scroll-shadow":"rgba(0, 0, 0, 0.3)","--shadow-offset-bottom":"".concat(l.bottom,"px"),"--shadow-offset-right":"".concat(l.right,"px"),top:"".concat(y.top,"px"),left:"".concat(y.left,"px"),width:"".concat(y.width-l.right,"px"),height:"".concat(y.height-l.bottom,"px"),boxShadow:H(u,n.shadows)};return[d,g,z]}function H(t,e){return Object.entries(t).filter((function(t){return!0===t[1]})).map((function(t){return e[t[0]]})).join(",")}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function F(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t,e)||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(r.useState)(!1),2),n=e[0],o=e[1];return Object(r.useEffect)((function(){var e=window.matchMedia(t);o(e.matches);var n=function(t){return o(t.matches)};return e.addListener(n),function(){e.removeListener(n)}}),[o,t]),n}function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){X(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function K(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return J(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(t,e):void 0}}(t,e)||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.")}()}(o.a.useState(t),2),n=e[0],r=e[1];return[n,function(t){var e=t.target,o=e.name,i=e.value;r(G(G({},n),{},X({},o,i)))},r]}function Q(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function V(){var t=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Q(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(t,e):void 0}}(t,e)||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(r.useState)(!0),2),e=t[0],n=t[1];return Object(r.useEffect)((function(){function t(t){n(navigator.onLine)}return window.addEventListener("online",t),window.addEventListener("offline",t),function(){window.removeEventListener("online",t),window.removeEventListener("offline",t)}}),[]),e}function Z(t){var e=Object(r.useRef)(),n=Object(r.useRef)((function(){})),o=Object(r.useRef)((function(){}));Object(r.useEffect)((function(){n.current=window.requestIdleCallback||function(t){return setTimeout((function(){var e=Date.now();t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)},o.current=window.cancelIdleCallback||function(t){clearTimeout(t)}})),Object(r.useEffect)((function(){e.current=t})),Object(r.useEffect)((function(){var t=n.current(e.current);return function(){o.current(t)}}),[])}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function et(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return tt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tt(t,e):void 0}}(t,e)||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(r.useState)(null),2),n=e[0],o=e[1];return Object(r.useEffect)((function(){if(null===n){var e=document.querySelector("#".concat(t));if(null===e){var r=document.createElement("div");r.id=t,document.body.appendChild(r),o(r)}else o(e)}}),[t]),n}function nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rt(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return nt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nt(t,e):void 0}}(t,e)||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(r.useState)({innerHeight:0,innerWidth:0}),2),n=e[0],o=e[1];return Object(r.useEffect)((function(){function t(){o({innerHeight:window.innerHeight,innerWidth:window.innerWidth})}return t(),window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[o]),n}}])}))}).call(this,n(4)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";n.r(e),n.d(e,"Collapsible",(function(){return b})),n.d(e,"useAccordion",(function(){return S})),n.d(e,"Accordion",(function(){return A})),n.d(e,"AccordionItem",(function(){return E})),n.d(e,"AccordionTitle",(function(){return P})),n.d(e,"AccordionConent",(function(){return C}));var r=n(0),o=n.n(r),i=n(2),u=n.n(i),c=n(1),a=n(3),f="C:\\workspace\\src\\riezler.co\\biotic\\packages\\collapsible\\src\\collapsible.js";function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d=u.a.div.withConfig({displayName:"collapsible__StyledCollapsible",componentId:"sc-97p8cv-0"})(["overflow:",";"],(function(t){return t.open?"unset":"hidden"}));function b(t){var e=t.children,n=t.open,r=t.className,i=l(o.a.useState(0),2),u=i[0],s=i[1],b=Object(a.useResizeObserver)((function(t){t.forEach((function(t){t.contentRect&&s(t.contentRect.height)}))})),p=Object(c.useSpring)({height:n?u:0,config:{duration:130}}),y=Object(c.useSpring)({transform:n?"translateY(0px)":"translateY(-".concat(u/4,"px)"),config:{duration:210}});return o.a.createElement(d,{as:c.animated.div,style:p,className:r,open:n,__self:this,__source:{fileName:f,lineNumber:37,columnNumber:3}},o.a.createElement(c.animated.div,{style:y,ref:b,__self:this,__source:{fileName:f,lineNumber:41,columnNumber:4}},e))}var p="C:\\workspace\\src\\riezler.co\\biotic\\packages\\collapsible\\src\\accordion.js";function y(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||m(t)||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 v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||m(t,e)||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 m(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w={open:[],multi:!1};function S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=O(O({},w),t),n=Object(r.useState)(e.open),o=v(n,2),i=o[0],u=o[1],c=function(t){if(!e.multi)return u([t]);i.includes(t)||u([].concat(y(i),[t]))},a=function(t){u(i.filter((function(e){return e!==t})))};return{open:i,onOpen:c,onClose:a}}var x=Object(r.createContext)({open:[],onOpen:function(){},onClose:function(){}});function A(t){var e=t.open,n=t.onClose,i=t.onOpen,u=t.children,c=r.Children.map(u,(function(t,e){return Object(r.cloneElement)(t,{index:e})}));return o.a.createElement(x.Provider,{value:{open:e,onClose:n,onOpen:i},__self:this,__source:{fileName:p,lineNumber:52,columnNumber:3}},c)}function E(t){var e=t.children,n=t.index,i=r.Children.map(e,(function(t){return Object(r.cloneElement)(t,{index:n})}));return o.a.createElement("div",{__self:this,__source:{fileName:p,lineNumber:65,columnNumber:3}},i)}function P(t){var e=t.children,n=t.index,i=Object(r.useContext)(x),u=i.open,c=i.onOpen,a=i.onClose,f=u.includes(n);return o.a.createElement("button",{onClick:function(){(f?a:c)(n)},open:f,__self:this,__source:{fileName:p,lineNumber:81,columnNumber:3}},e)}function C(t){var e=t.children,n=t.index,i=Object(r.useContext)(x).open;return o.a.createElement(b,{open:i.includes(n),__self:this,__source:{fileName:p,lineNumber:91,columnNumber:3}},e)}}])}));
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("react-spring"),require("styled-components"));else if("function"==typeof define&&define.amd)define(["react","react-spring","styled-components"],e);else{var n="object"==typeof exports?e(require("react"),require("react-spring"),require("styled-components")):e(t.React,t[void 0],t[void 0]);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){(function(t){var r,o,i;function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(c,a){"object"==u(e)&&"object"==u(t)?t.exports=a(n(0),n(2)):(o=[n(0),n(2)],void 0===(i="function"==typeof(r=a)?r.apply(e,o):r)||(t.exports=i))}(0,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==u(t)&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}([function(e,n){e.exports=t},function(t,e,n){var r=n(3),o=n(2);t.exports=function(t,e,n){var i=!0,u=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,u="trailing"in n?!!n.trailing:u),r(t,e,{leading:i,maxWait:e,trailing:u})}},function(t,e){t.exports=function(t){var e=u(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(2),o=n(7),i=n(10),u=Math.max,c=Math.min;t.exports=function(t,e,n){var a,f,l,s,d,b,p=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var n=a,r=f;return a=f=void 0,p=e,s=t.apply(r,n)}function g(t){return p=t,d=setTimeout(j,e),y?h(t):s}function O(t){var n=t-b;return void 0===b||n>=e||n<0||v&&t-p>=l}function j(){var t=o();if(O(t))return w(t);d=setTimeout(j,function(t){var n=e-(t-b);return v?c(n,l-(t-p)):n}(t))}function w(t){return d=void 0,m&&a?h(t):(a=f=void 0,s)}function S(){var t=o(),n=O(t);if(a=arguments,f=this,b=t,n){if(void 0===d)return g(b);if(v)return clearTimeout(d),d=setTimeout(j,e),h(b)}return void 0===d&&(d=setTimeout(j,e)),s}return e=i(e)||0,r(n)&&(y=!!n.leading,l=(v="maxWait"in n)?u(i(n.maxWait)||0,e):l,m="trailing"in n?!!n.trailing:m),S.cancel=function(){void 0!==d&&clearTimeout(d),p=0,a=b=f=d=void 0},S.flush=function(){return void 0===d?s:w(o())},S}},function(t,e,n){var r=n(8),o="object"==("undefined"==typeof self?"undefined":u(self))&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e,n){var r=n(4).Symbol;t.exports=r},function(t,n){t.exports=e},function(t,e,n){var r=n(4);t.exports=function(){return r.Date.now()}},function(t,e,n){(function(e){var n="object"==u(e)&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(9))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==("undefined"==typeof window?"undefined":u(window))&&(n=window)}t.exports=n},function(t,e,n){var r=n(2),o=n(11),i=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=c.test(t);return n||a.test(t)?f(t.slice(2),n?2:8):u.test(t)?NaN:+t}},function(t,e,n){var r=n(12),o=n(15);t.exports=function(t){return"symbol"==u(t)||o(t)&&"[object Symbol]"==r(t)}},function(t,e,n){var r=n(5),o=n(13),i=n(14),u=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?o(t):i(t)}},function(t,e,n){var r=n(5),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[c]=n:delete t[c]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==u(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"useCombinedRefs",(function(){return i})),n.d(e,"useLongPress",(function(){return d})),n.d(e,"useOnEscape",(function(){return y})),n.d(e,"usePreventScroll",(function(){return v})),n.d(e,"useScroll",(function(){return S})),n.d(e,"useScrollShadow",(function(){return q})),n.d(e,"SHADOWS",(function(){return $})),n.d(e,"useMatchMedia",(function(){return F})),n.d(e,"useForm",(function(){return K})),n.d(e,"useOnline",(function(){return V})),n.d(e,"useIdleCallback",(function(){return Z})),n.d(e,"useThrottle",(function(){return P})),n.d(e,"useDebounce",(function(){return E})),n.d(e,"useGetContainer",(function(){return et})),n.d(e,"useResize",(function(){return C})),n.d(e,"useWindowSize",(function(){return rt})),n.d(e,"useResizeObserver",(function(){return _}));var r=n(0),o=n.n(r);function i(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=function(t){e.forEach((function(e){if(e)return"function"==typeof e?e(t):void(e.current=t)}))};return Object(r.useCallback)(o,e)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={shouldPreventDefault:!0,delay:300};function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(f({},s),e),o=n.shouldPreventDefault,i=n.delay,c=Object(r.useState)(!1),a=u(c,2),l=a[0],d=a[1],p=Object(r.useRef)(),y=Object(r.useRef)(),v=Object(r.useCallback)((function(e){o&&e.target&&(e.target.addEventListener("touchend",b,{passive:!1}),y.current=e.target),p.current=setTimeout((function(){t(e),d(!0)}),i)}),[t,i,o]),m=Object(r.useCallback)((function(t){p.current&&clearTimeout(p.current),d(!1),o&&y.current&&y.current.removeEventListener("touchend",b)}),[o,l]);return{onTouchStart:function(t){return v(t)},onTouchEnd:function(t){return m(t)}}}var b=function(t){(function(t){return"touches"in t})(t)&&t.touches.length<2&&t.preventDefault&&t.preventDefault()},p=function(){};function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,e=Object(r.useRef)(t);Object(r.useEffect)((function(){e.current=t})),Object(r.useEffect)((function(){function t(t){"Escape"==t.key&&e.current&&e.current(t)}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[])}function v(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Object(r.useEffect)((function(){if(t){var e=document.body.style,n=e.overflow,r=e.paddingRight,o=(document.documentElement.clientWidth,window.innerWidth-document.body.offsetWidth);return document.body.style.paddingRight="calc(".concat(o,"px + ").concat(r,")"),document.body.style.overflow="hidden",function(){document.body.style.overflow=n,document.body.style.paddingRight=r}}}),[t])}var m=n(1),h=n.n(m);function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}(t,e)||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 O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function j(t){return t?t.scrollTop:window.pageYOffset}function w(t){return t?t.scrollLeft:window.pageXOffset}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.current,r=o.a.useState({y:j(n),x:w(n),delta:{y:j(n),x:w(n)}}),i=g(r,2),u=i[0],c=i[1],a=o.a.useRef();o.a.useEffect((function(){a.current=t}));var f=o.a.useCallback(h()((function(){var t={y:j(n),x:w(n),delta:{y:j(n)-u.y,x:w(n)-u.x}};c(t),a.current&&a.current(t)}),500,{leading:!1,trailing:!0}),[n]);return o.a.useEffect((function(){var t=e.current?e.current:window;return t.addEventListener("scroll",f),function(){t.removeEventListener("scroll",f),f.cancel()}}),[e.current]),u}var x=n(3),A=n.n(x);function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(r.useCallback)(A()(t,e,o),n)}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(r.useCallback)(h()(t,e,o),n)}function C(t){var e=Object(r.useRef)();Object(r.useEffect)((function(){e.current=t})),Object(r.useEffect)((function(){function t(t){e.current&&e.current(t)}return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[])}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _(t){var e=Object(r.useRef)(t),n=Object(r.useRef)(),o=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}(t,e)||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(r.useState)(null),2),i=o[0],u=o[1];return Object(r.useEffect)((function(){e.current=t})),Object(r.useEffect)((function(){if(i){var t=new ResizeObserver((function(t){n.current=e.current(t)}));return t.observe(i),function(){t.disconnect(),n.current&&n.current()}}}),[i]),u}var T=n(6),M=n.n(T);function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(t,e):void 0}}(t,e)||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 D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var W="var(--scroll-shadow, var(--default-scroll-shadow))",$={top:"".concat(W," 0px 12px 8px -13px inset"),bottom:"".concat(W," 0px -12px 8px -13px inset"),left:"".concat(W," 12px 0 8px -13px inset"),right:"".concat(W," -12px 0 8px -13px inset")},U={top:!0,bottom:!0,left:!0,right:!0,shadows:$},z=M.a.div.withConfig({displayName:"use_scroll_shadow__ShadowBox",componentId:"nhux4o-0"})(["width:0;height:0;position:fixed;top:0;left:0;pointer-events:none;overflow:hidden;"]);function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=k(k({},U),e),o=Object(r.useState)({top:!1,bottom:!1,left:!1,right:!1}),i=N(o,2),u=i[0],c=i[1],a=Object(r.useState)({bottom:0,right:0}),f=N(a,2),l=f[0],s=f[1],d=E((function(){if(t.current){var e=t.current,r=e.scrollHeight,o=e.scrollWidth,i=e.scrollTop,u=e.scrollLeft,a=e.clientWidth,f=e.clientHeight;c({top:!!n.top&&i>0,bottom:!!n.bottom&&r>Math.ceil(i)+f+5,left:!!n.left&&u>0,right:!!n.right&&o>Math.ceil(u)+a+5})}}),500,[n,c,t],{leading:!0,trailing:!0});Object(r.useEffect)(d,[t,c]),Object(r.useEffect)((function(){return d.cancel}),[d]),Object(r.useEffect)((function(){if(t.current){var e=t.current,n=e.clientWidth,r=e.offsetWidth,o=e.offsetHeight,i=e.clientHeight;s({bottom:o-i,right:r-n})}}),[t,s]);var b=Object(r.useState)({top:0,left:0,width:0,height:0}),p=N(b,2),y=p[0],v=p[1],m=_((function(t){t.forEach((function(t){if(t.target){var e=t.target.getBoundingClientRect();v(e)}}))}));Object(r.useEffect)((function(){m(t.current)}),[t,m]);var h=P((function(){if(t.current){var e=t.current.getBoundingClientRect();v(e)}}),50,[t]);C(h);var g={"--default-scroll-shadow":"rgba(0, 0, 0, 0.3)","--shadow-offset-bottom":"".concat(l.bottom,"px"),"--shadow-offset-right":"".concat(l.right,"px"),top:"".concat(y.top,"px"),left:"".concat(y.left,"px"),width:"".concat(y.width-l.right,"px"),height:"".concat(y.height-l.bottom,"px"),boxShadow:H(u,n.shadows)};return[d,g,z]}function H(t,e){return Object.entries(t).filter((function(t){return!0===t[1]})).map((function(t){return e[t[0]]})).join(",")}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function F(t){var e=Object(r.useMemo)((function(){return window.matchMedia(t).matches}),[t]),n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t,e)||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(r.useState)(e),2),o=n[0],i=n[1];return Object(r.useEffect)((function(){var e=window.matchMedia(t);i(e.matches);var n=function(t){return i(t.matches)};return e.addListener(n),function(){e.removeListener(n)}}),[i,t]),o}function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){X(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function K(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return J(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(t,e):void 0}}(t,e)||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.")}()}(o.a.useState(t),2),n=e[0],r=e[1];return[n,function(t){var e=t.target,o=e.name,i=e.value;r(G(G({},n),{},X({},o,i)))},r]}function Q(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function V(){var t=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Q(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(t,e):void 0}}(t,e)||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(r.useState)(!0),2),e=t[0],n=t[1];return Object(r.useEffect)((function(){function t(t){n(navigator.onLine)}return window.addEventListener("online",t),window.addEventListener("offline",t),function(){window.removeEventListener("online",t),window.removeEventListener("offline",t)}}),[]),e}function Z(t){var e=Object(r.useRef)(),n=Object(r.useRef)((function(){})),o=Object(r.useRef)((function(){}));Object(r.useEffect)((function(){n.current=window.requestIdleCallback||function(t){return setTimeout((function(){var e=Date.now();t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)},o.current=window.cancelIdleCallback||function(t){clearTimeout(t)}})),Object(r.useEffect)((function(){e.current=t})),Object(r.useEffect)((function(){var t=n.current(e.current);return function(){o.current(t)}}),[])}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function et(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return tt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tt(t,e):void 0}}(t,e)||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(r.useState)(null),2),n=e[0],o=e[1];return Object(r.useEffect)((function(){if(null===n){var e=document.querySelector("#".concat(t));if(null===e){var r=document.createElement("div");r.id=t,document.body.appendChild(r),o(r)}else o(e)}}),[t]),n}function nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rt(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return nt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nt(t,e):void 0}}(t,e)||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(r.useState)({innerHeight:0,innerWidth:0}),2),n=e[0],o=e[1];return Object(r.useEffect)((function(){function t(){o({innerHeight:window.innerHeight,innerWidth:window.innerWidth})}return t(),window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[o]),n}}])}))}).call(this,n(4)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";n.r(e),n.d(e,"Collapsible",(function(){return b})),n.d(e,"useAccordion",(function(){return S})),n.d(e,"Accordion",(function(){return A})),n.d(e,"AccordionItem",(function(){return E})),n.d(e,"AccordionTitle",(function(){return P})),n.d(e,"AccordionConent",(function(){return C}));var r=n(0),o=n.n(r),i=n(2),u=n.n(i),c=n(1),a=n(3),f="C:\\workspace\\src\\riezler.co\\biotic\\packages\\collapsible\\src\\collapsible.js";function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d=u.a.div.withConfig({displayName:"collapsible__StyledCollapsible",componentId:"sc-97p8cv-0"})(["overflow:",";"],(function(t){return t.open?"unset":"hidden"}));function b(t){var e=t.children,n=t.open,r=t.className,i=l(o.a.useState(0),2),u=i[0],s=i[1],b=Object(a.useResizeObserver)((function(t){t.forEach((function(t){t.contentRect&&s(t.contentRect.height)}))})),p=Object(c.useSpring)({height:n?u:0,config:{duration:130}}),y=Object(c.useSpring)({transform:n?"translateY(0px)":"translateY(-".concat(u/4,"px)"),config:{duration:210}});return o.a.createElement(d,{as:c.animated.div,style:p,className:r,open:n,__self:this,__source:{fileName:f,lineNumber:37,columnNumber:3}},o.a.createElement(c.animated.div,{style:y,ref:b,__self:this,__source:{fileName:f,lineNumber:41,columnNumber:4}},e))}var p="C:\\workspace\\src\\riezler.co\\biotic\\packages\\collapsible\\src\\accordion.js";function y(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||m(t)||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 v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||m(t,e)||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 m(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w={open:[],multi:!1};function S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=O(O({},w),t),n=Object(r.useState)(e.open),o=v(n,2),i=o[0],u=o[1],c=function(t){if(!e.multi)return u([t]);i.includes(t)||u([].concat(y(i),[t]))},a=function(t){u(i.filter((function(e){return e!==t})))};return{open:i,onOpen:c,onClose:a}}var x=Object(r.createContext)({open:[],onOpen:function(){},onClose:function(){}});function A(t){var e=t.open,n=t.onClose,i=t.onOpen,u=t.children,c=r.Children.map(u,(function(t,e){return Object(r.cloneElement)(t,{index:e})}));return o.a.createElement(x.Provider,{value:{open:e,onClose:n,onOpen:i},__self:this,__source:{fileName:p,lineNumber:52,columnNumber:3}},c)}function E(t){var e=t.children,n=t.index,i=r.Children.map(e,(function(t){return Object(r.cloneElement)(t,{index:n})}));return o.a.createElement("div",{__self:this,__source:{fileName:p,lineNumber:65,columnNumber:3}},i)}function P(t){var e=t.children,n=t.index,i=Object(r.useContext)(x),u=i.open,c=i.onOpen,a=i.onClose,f=u.includes(n);return o.a.createElement("button",{onClick:function(){(f?a:c)(n)},open:f,__self:this,__source:{fileName:p,lineNumber:81,columnNumber:3}},e)}function C(t){var e=t.children,n=t.index,i=Object(r.useContext)(x).open;return o.a.createElement(b,{open:i.includes(n),__self:this,__source:{fileName:p,lineNumber:91,columnNumber:3}},e)}}])}));
{
"name": "@biotic-ui/collapsible",
"version": "0.2.2",
"version": "0.2.3",
"description": "React Collapsible",

@@ -25,3 +25,3 @@ "main": "lib/main.js",

"devDependencies": {
"@biotic-ui/std": "^0.2.2",
"@biotic-ui/std": "^0.2.3",
"webpack": "^4.44.1",

@@ -38,3 +38,3 @@ "webpack-cli": "^3.3.12"

},
"gitHead": "5758a88a6465369252a8bc484a30a14eafa3c119",
"gitHead": "f6beba9bc815aedfc9d63a59ae8e5356f5986951",
"publishConfig": {

@@ -41,0 +41,0 @@ "access": "public"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc