simple-search-dropdown
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1100,3 +1100,3 @@ import * as v from "react"; | ||
fr.classNames = se.classNames; | ||
_e.forwardRef((r, t) => { | ||
const Tt = _e.forwardRef((r, t) => { | ||
const [o, a] = J(!1), [c, f] = J(!1), [d, l] = J(), [y, C] = J(), [g, R] = J(), P = Ge(null), O = Ge(null); | ||
@@ -1147,2 +1147,5 @@ Ke(() => { | ||
}); | ||
export { | ||
Tt as SearchSelect | ||
}; | ||
//# sourceMappingURL=index.es.js.map |
@@ -1,2 +0,2 @@ | ||
(function(P,G){typeof exports=="object"&&typeof module<"u"?G(require("react")):typeof define=="function"&&define.amd?define(["react"],G):(P=typeof globalThis<"u"?globalThis:P||self,G(P.React))})(this,function(P){"use strict";function G(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>r[o]})}}return t.default=r,Object.freeze(t)}const v=G(P);var de={exports:{}},K={};/** | ||
(function(Y,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(Y=typeof globalThis<"u"?globalThis:Y||self,P(Y["react-beautiful-timeline"]={},Y.React))})(this,function(Y,P){"use strict";function sr(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>r[o]})}}return t.default=r,Object.freeze(t)}const v=sr(P);var de={exports:{}},K={};/** | ||
* @license React | ||
@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var Te;function sr(){if(Te)return K;Te=1;var r=P,t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function d(l,y,C){var g,w={},O=null,x=null;C!==void 0&&(O=""+C),y.key!==void 0&&(O=""+y.key),y.ref!==void 0&&(x=y.ref);for(g in y)n.call(y,g)&&!f.hasOwnProperty(g)&&(w[g]=y[g]);if(l&&l.defaultProps)for(g in y=l.defaultProps,y)w[g]===void 0&&(w[g]=y[g]);return{$$typeof:t,type:l,key:O,ref:x,props:w,_owner:c.current}}return K.Fragment=o,K.jsx=d,K.jsxs=d,K}var Z={};/** | ||
*/var Te;function fr(){if(Te)return K;Te=1;var r=P,t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function d(l,y,C){var g,w={},O=null,x=null;C!==void 0&&(O=""+C),y.key!==void 0&&(O=""+y.key),y.ref!==void 0&&(x=y.ref);for(g in y)n.call(y,g)&&!f.hasOwnProperty(g)&&(w[g]=y[g]);if(l&&l.defaultProps)for(g in y=l.defaultProps,y)w[g]===void 0&&(w[g]=y[g]);return{$$typeof:t,type:l,key:O,ref:x,props:w,_owner:c.current}}return K.Fragment=o,K.jsx=d,K.jsxs=d,K}var Z={};/** | ||
* @license React | ||
@@ -18,11 +18,11 @@ * react-jsx-runtime.development.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var Pe;function fr(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){var r=P,t=Symbol.for("react.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),l=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),D=Symbol.iterator,u="@@iterator";function m(e){if(e===null||typeof e!="object")return null;var a=D&&e[D]||e[u];return typeof a=="function"?a:null}var T=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];I("error",e,i)}}function I(e,a,i){{var s=T.ReactDebugCurrentFrame,b=s.getStackAddendum();b!==""&&(a+="%s",i=i.concat([b]));var S=i.map(function(p){return String(p)});S.unshift("Warning: "+a),Function.prototype.apply.call(console[e],console,S)}}var L=!1,k=!1,N=!1,Y=!1,H=!1,Q;Q=Symbol.for("react.module.reference");function Jr(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===f||H||e===c||e===C||e===g||Y||e===x||L||k||N||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===w||e.$$typeof===d||e.$$typeof===l||e.$$typeof===y||e.$$typeof===Q||e.getModuleId!==void 0))}function qr(e,a,i){var s=e.displayName;if(s)return s;var b=a.displayName||a.name||"";return b!==""?i+"("+b+")":i}function Be(e){return e.displayName||"Context"}function M(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case n:return"Fragment";case o:return"Portal";case f:return"Profiler";case c:return"StrictMode";case C:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var a=e;return Be(a)+".Consumer";case d:var i=e;return Be(i._context)+".Provider";case y:return qr(e,e.render,"ForwardRef");case w:var s=e.displayName||null;return s!==null?s:M(e.type)||"Memo";case O:{var b=e,S=b._payload,p=b._init;try{return M(p(S))}catch{return null}}}return null}var B=Object.assign,ee=0,Ve,$e,Ue,Xe,ze,He,Je;function qe(){}qe.__reactDisabledLog=!0;function Gr(){{if(ee===0){Ve=console.log,$e=console.info,Ue=console.warn,Xe=console.error,ze=console.group,He=console.groupCollapsed,Je=console.groupEnd;var e={configurable:!0,enumerable:!0,value:qe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ee++}}function Kr(){{if(ee--,ee===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B({},e,{value:Ve}),info:B({},e,{value:$e}),warn:B({},e,{value:Ue}),error:B({},e,{value:Xe}),group:B({},e,{value:ze}),groupCollapsed:B({},e,{value:He}),groupEnd:B({},e,{value:Je})})}ee<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=T.ReactCurrentDispatcher,ye;function ce(e,a,i){{if(ye===void 0)try{throw Error()}catch(b){var s=b.stack.trim().match(/\n( *(at )?)/);ye=s&&s[1]||""}return` | ||
`+ye+e}}var be=!1,le;{var Zr=typeof WeakMap=="function"?WeakMap:Map;le=new Zr}function Ge(e,a){if(!e||be)return"";{var i=le.get(e);if(i!==void 0)return i}var s;be=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=pe.current,pe.current=null,Gr();try{if(a){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(A){s=A}Reflect.construct(e,[],p)}else{try{p.call()}catch(A){s=A}e.call(p.prototype)}}else{try{throw Error()}catch(A){s=A}e()}}catch(A){if(A&&s&&typeof A.stack=="string"){for(var h=A.stack.split(` | ||
*/var Pe;function dr(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){var r=P,t=Symbol.for("react.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),l=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),D=Symbol.iterator,u="@@iterator";function m(e){if(e===null||typeof e!="object")return null;var a=D&&e[D]||e[u];return typeof a=="function"?a:null}var T=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];I("error",e,i)}}function I(e,a,i){{var s=T.ReactDebugCurrentFrame,b=s.getStackAddendum();b!==""&&(a+="%s",i=i.concat([b]));var S=i.map(function(p){return String(p)});S.unshift("Warning: "+a),Function.prototype.apply.call(console[e],console,S)}}var L=!1,k=!1,N=!1,B=!1,J=!1,Q;Q=Symbol.for("react.module.reference");function Gr(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===f||J||e===c||e===C||e===g||B||e===x||L||k||N||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===w||e.$$typeof===d||e.$$typeof===l||e.$$typeof===y||e.$$typeof===Q||e.getModuleId!==void 0))}function Kr(e,a,i){var s=e.displayName;if(s)return s;var b=a.displayName||a.name||"";return b!==""?i+"("+b+")":i}function Be(e){return e.displayName||"Context"}function M(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case n:return"Fragment";case o:return"Portal";case f:return"Profiler";case c:return"StrictMode";case C:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var a=e;return Be(a)+".Consumer";case d:var i=e;return Be(i._context)+".Provider";case y:return Kr(e,e.render,"ForwardRef");case w:var s=e.displayName||null;return s!==null?s:M(e.type)||"Memo";case O:{var b=e,S=b._payload,p=b._init;try{return M(p(S))}catch{return null}}}return null}var V=Object.assign,ee=0,Ve,$e,Ue,Xe,ze,He,Je;function qe(){}qe.__reactDisabledLog=!0;function Zr(){{if(ee===0){Ve=console.log,$e=console.info,Ue=console.warn,Xe=console.error,ze=console.group,He=console.groupCollapsed,Je=console.groupEnd;var e={configurable:!0,enumerable:!0,value:qe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ee++}}function Qr(){{if(ee--,ee===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},e,{value:Ve}),info:V({},e,{value:$e}),warn:V({},e,{value:Ue}),error:V({},e,{value:Xe}),group:V({},e,{value:ze}),groupCollapsed:V({},e,{value:He}),groupEnd:V({},e,{value:Je})})}ee<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=T.ReactCurrentDispatcher,ye;function ce(e,a,i){{if(ye===void 0)try{throw Error()}catch(b){var s=b.stack.trim().match(/\n( *(at )?)/);ye=s&&s[1]||""}return` | ||
`+ye+e}}var be=!1,le;{var et=typeof WeakMap=="function"?WeakMap:Map;le=new et}function Ge(e,a){if(!e||be)return"";{var i=le.get(e);if(i!==void 0)return i}var s;be=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=pe.current,pe.current=null,Zr();try{if(a){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(A){s=A}Reflect.construct(e,[],p)}else{try{p.call()}catch(A){s=A}e.call(p.prototype)}}else{try{throw Error()}catch(A){s=A}e()}}catch(A){if(A&&s&&typeof A.stack=="string"){for(var h=A.stack.split(` | ||
`),j=s.stack.split(` | ||
`),R=h.length-1,_=j.length-1;R>=1&&_>=0&&h[R]!==j[_];)_--;for(;R>=1&&_>=0;R--,_--)if(h[R]!==j[_]){if(R!==1||_!==1)do if(R--,_--,_<0||h[R]!==j[_]){var F=` | ||
`+h[R].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),typeof e=="function"&&le.set(e,F),F}while(R>=1&&_>=0);break}}}finally{be=!1,pe.current=S,Kr(),Error.prepareStackTrace=b}var q=e?e.displayName||e.name:"",V=q?ce(q):"";return typeof e=="function"&&le.set(e,V),V}function Qr(e,a,i){return Ge(e,!1)}function et(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function se(e,a,i){if(e==null)return"";if(typeof e=="function")return Ge(e,et(e));if(typeof e=="string")return ce(e);switch(e){case C:return ce("Suspense");case g:return ce("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return Qr(e.render);case w:return se(e.type,a,i);case O:{var s=e,b=s._payload,S=s._init;try{return se(S(b),a,i)}catch{}}}return""}var re=Object.prototype.hasOwnProperty,Ke={},Ze=T.ReactDebugCurrentFrame;function fe(e){if(e){var a=e._owner,i=se(e.type,e._source,a?a.type:null);Ze.setExtraStackFrame(i)}else Ze.setExtraStackFrame(null)}function rt(e,a,i,s,b){{var S=Function.call.bind(re);for(var p in e)if(S(e,p)){var h=void 0;try{if(typeof e[p]!="function"){var j=Error((s||"React class")+": "+i+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}h=e[p](a,p,s,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){h=R}h&&!(h instanceof Error)&&(fe(b),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",i,p,typeof h),fe(null)),h instanceof Error&&!(h.message in Ke)&&(Ke[h.message]=!0,fe(b),E("Failed %s type: %s",i,h.message),fe(null))}}}var tt=Array.isArray;function Ee(e){return tt(e)}function nt(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,i=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function at(e){try{return Qe(e),!1}catch{return!0}}function Qe(e){return""+e}function er(e){if(at(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nt(e)),Qe(e)}var te=T.ReactCurrentOwner,ot={key:!0,ref:!0,__self:!0,__source:!0},rr,tr,Se;Se={};function it(e){if(re.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function ut(e){if(re.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function ct(e,a){if(typeof e.ref=="string"&&te.current&&a&&te.current.stateNode!==a){var i=M(te.current.type);Se[i]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(te.current.type),e.ref),Se[i]=!0)}}function lt(e,a){{var i=function(){rr||(rr=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function st(e,a){{var i=function(){tr||(tr=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var ft=function(e,a,i,s,b,S,p){var h={$$typeof:t,type:e,key:a,ref:i,props:p,_owner:S};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function dt(e,a,i,s,b){{var S,p={},h=null,j=null;i!==void 0&&(er(i),h=""+i),ut(a)&&(er(a.key),h=""+a.key),it(a)&&(j=a.ref,ct(a,b));for(S in a)re.call(a,S)&&!ot.hasOwnProperty(S)&&(p[S]=a[S]);if(e&&e.defaultProps){var R=e.defaultProps;for(S in R)p[S]===void 0&&(p[S]=R[S])}if(h||j){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;h&<(p,_),j&&st(p,_)}return ft(e,h,j,b,s,te.current,p)}}var we=T.ReactCurrentOwner,nr=T.ReactDebugCurrentFrame;function J(e){if(e){var a=e._owner,i=se(e.type,e._source,a?a.type:null);nr.setExtraStackFrame(i)}else nr.setExtraStackFrame(null)}var Re;Re=!1;function Ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function ar(){{if(we.current){var e=M(we.current.type);if(e)return` | ||
`+h[R].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),typeof e=="function"&&le.set(e,F),F}while(R>=1&&_>=0);break}}}finally{be=!1,pe.current=S,Qr(),Error.prepareStackTrace=b}var G=e?e.displayName||e.name:"",$=G?ce(G):"";return typeof e=="function"&&le.set(e,$),$}function rt(e,a,i){return Ge(e,!1)}function tt(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function se(e,a,i){if(e==null)return"";if(typeof e=="function")return Ge(e,tt(e));if(typeof e=="string")return ce(e);switch(e){case C:return ce("Suspense");case g:return ce("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return rt(e.render);case w:return se(e.type,a,i);case O:{var s=e,b=s._payload,S=s._init;try{return se(S(b),a,i)}catch{}}}return""}var re=Object.prototype.hasOwnProperty,Ke={},Ze=T.ReactDebugCurrentFrame;function fe(e){if(e){var a=e._owner,i=se(e.type,e._source,a?a.type:null);Ze.setExtraStackFrame(i)}else Ze.setExtraStackFrame(null)}function nt(e,a,i,s,b){{var S=Function.call.bind(re);for(var p in e)if(S(e,p)){var h=void 0;try{if(typeof e[p]!="function"){var j=Error((s||"React class")+": "+i+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}h=e[p](a,p,s,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){h=R}h&&!(h instanceof Error)&&(fe(b),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",i,p,typeof h),fe(null)),h instanceof Error&&!(h.message in Ke)&&(Ke[h.message]=!0,fe(b),E("Failed %s type: %s",i,h.message),fe(null))}}}var at=Array.isArray;function Ee(e){return at(e)}function ot(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,i=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function it(e){try{return Qe(e),!1}catch{return!0}}function Qe(e){return""+e}function er(e){if(it(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ot(e)),Qe(e)}var te=T.ReactCurrentOwner,ut={key:!0,ref:!0,__self:!0,__source:!0},rr,tr,Se;Se={};function ct(e){if(re.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function lt(e){if(re.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function st(e,a){if(typeof e.ref=="string"&&te.current&&a&&te.current.stateNode!==a){var i=M(te.current.type);Se[i]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(te.current.type),e.ref),Se[i]=!0)}}function ft(e,a){{var i=function(){rr||(rr=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function dt(e,a){{var i=function(){tr||(tr=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var vt=function(e,a,i,s,b,S,p){var h={$$typeof:t,type:e,key:a,ref:i,props:p,_owner:S};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function ht(e,a,i,s,b){{var S,p={},h=null,j=null;i!==void 0&&(er(i),h=""+i),lt(a)&&(er(a.key),h=""+a.key),ct(a)&&(j=a.ref,st(a,b));for(S in a)re.call(a,S)&&!ut.hasOwnProperty(S)&&(p[S]=a[S]);if(e&&e.defaultProps){var R=e.defaultProps;for(S in R)p[S]===void 0&&(p[S]=R[S])}if(h||j){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;h&&ft(p,_),j&&dt(p,_)}return vt(e,h,j,b,s,te.current,p)}}var we=T.ReactCurrentOwner,nr=T.ReactDebugCurrentFrame;function q(e){if(e){var a=e._owner,i=se(e.type,e._source,a?a.type:null);nr.setExtraStackFrame(i)}else nr.setExtraStackFrame(null)}var Re;Re=!1;function Ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function ar(){{if(we.current){var e=M(we.current.type);if(e)return` | ||
Check the render method of \``+e+"`."}return""}}function vt(e){return""}var or={};function ht(e){{var a=ar();if(!a){var i=typeof e=="string"?e:e.displayName||e.name;i&&(a=` | ||
Check the render method of \``+e+"`."}return""}}function gt(e){return""}var or={};function mt(e){{var a=ar();if(!a){var i=typeof e=="string"?e:e.displayName||e.name;i&&(a=` | ||
Check the top-level render call using <`+i+">.")}return a}}function ir(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=ht(a);if(or[i])return;or[i]=!0;var s="";e&&e._owner&&e._owner!==we.current&&(s=" It was passed a child from "+M(e._owner.type)+"."),J(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,s),J(null)}}function ur(e,a){{if(typeof e!="object")return;if(Ee(e))for(var i=0;i<e.length;i++){var s=e[i];Ce(s)&&ir(s,a)}else if(Ce(e))e._store&&(e._store.validated=!0);else if(e){var b=m(e);if(typeof b=="function"&&b!==e.entries)for(var S=b.call(e),p;!(p=S.next()).done;)Ce(p.value)&&ir(p.value,a)}}}function gt(e){{var a=e.type;if(a==null||typeof a=="string")return;var i;if(typeof a=="function")i=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===y||a.$$typeof===w))i=a.propTypes;else return;if(i){var s=M(a);rt(i,e.props,"prop",s,e)}else if(a.PropTypes!==void 0&&!Re){Re=!0;var b=M(a);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function mt(e){{for(var a=Object.keys(e.props),i=0;i<a.length;i++){var s=a[i];if(s!=="children"&&s!=="key"){J(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),J(null);break}}e.ref!==null&&(J(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),J(null))}}var cr={};function lr(e,a,i,s,b,S){{var p=Jr(e);if(!p){var h="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j=vt();j?h+=j:h+=ar();var R;e===null?R="null":Ee(e)?R="array":e!==void 0&&e.$$typeof===t?(R="<"+(M(e.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,h)}var _=dt(e,a,i,b,S);if(_==null)return _;if(p){var F=a.children;if(F!==void 0)if(s)if(Ee(F)){for(var q=0;q<F.length;q++)ur(F[q],e);Object.freeze&&Object.freeze(F)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ur(F,e)}if(re.call(a,"key")){var V=M(e),A=Object.keys(a).filter(function(wt){return wt!=="key"}),_e=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!cr[V+_e]){var St=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX: | ||
Check the top-level render call using <`+i+">.")}return a}}function ir(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=mt(a);if(or[i])return;or[i]=!0;var s="";e&&e._owner&&e._owner!==we.current&&(s=" It was passed a child from "+M(e._owner.type)+"."),q(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,s),q(null)}}function ur(e,a){{if(typeof e!="object")return;if(Ee(e))for(var i=0;i<e.length;i++){var s=e[i];Ce(s)&&ir(s,a)}else if(Ce(e))e._store&&(e._store.validated=!0);else if(e){var b=m(e);if(typeof b=="function"&&b!==e.entries)for(var S=b.call(e),p;!(p=S.next()).done;)Ce(p.value)&&ir(p.value,a)}}}function pt(e){{var a=e.type;if(a==null||typeof a=="string")return;var i;if(typeof a=="function")i=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===y||a.$$typeof===w))i=a.propTypes;else return;if(i){var s=M(a);nt(i,e.props,"prop",s,e)}else if(a.PropTypes!==void 0&&!Re){Re=!0;var b=M(a);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yt(e){{for(var a=Object.keys(e.props),i=0;i<a.length;i++){var s=a[i];if(s!=="children"&&s!=="key"){q(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),q(null);break}}e.ref!==null&&(q(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var cr={};function lr(e,a,i,s,b,S){{var p=Gr(e);if(!p){var h="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j=gt();j?h+=j:h+=ar();var R;e===null?R="null":Ee(e)?R="array":e!==void 0&&e.$$typeof===t?(R="<"+(M(e.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,h)}var _=ht(e,a,i,b,S);if(_==null)return _;if(p){var F=a.children;if(F!==void 0)if(s)if(Ee(F)){for(var G=0;G<F.length;G++)ur(F[G],e);Object.freeze&&Object.freeze(F)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ur(F,e)}if(re.call(a,"key")){var $=M(e),A=Object.keys(a).filter(function(Ct){return Ct!=="key"}),_e=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!cr[$+_e]){var Rt=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX: | ||
let props = %s; | ||
@@ -32,8 +32,8 @@ <%s {...props} /> | ||
let props = %s; | ||
<%s key={someKey} {...props} />`,_e,V,St,V),cr[V+_e]=!0}}return e===n?mt(_):gt(_),_}}function pt(e,a,i){return lr(e,a,i,!0)}function yt(e,a,i){return lr(e,a,i,!1)}var bt=yt,Et=pt;Z.Fragment=n,Z.jsx=bt,Z.jsxs=Et}()),Z}process.env.NODE_ENV==="production"?de.exports=sr():de.exports=fr();var $=de.exports,W=function(){return W=Object.assign||function(t){for(var o,n=1,c=arguments.length;n<c;n++){o=arguments[n];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(t[f]=o[f])}return t},W.apply(this,arguments)};function Oe(r,t){var o={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(o[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,n=Object.getOwnPropertySymbols(r);c<n.length;c++)t.indexOf(n[c])<0&&Object.prototype.propertyIsEnumerable.call(r,n[c])&&(o[n[c]]=r[n[c]]);return o}function dr(r,t,o){if(o||arguments.length===2)for(var n=0,c=t.length,f;n<c;n++)(f||!(n in t))&&(f||(f=Array.prototype.slice.call(t,0,n)),f[n]=t[n]);return r.concat(f||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ne="right-scroll-bar-position",ae="width-before-scroll-bar",vr="with-scroll-bars-hidden",hr="--removed-body-scroll-bar-size";function ve(r,t){return typeof r=="function"?r(t):r&&(r.current=t),r}function gr(r,t){var o=P.useState(function(){return{value:r,callback:t,facade:{get current(){return o.value},set current(n){var c=o.value;c!==n&&(o.value=n,o.callback(n,c))}}}})[0];return o.callback=t,o.facade}var mr=typeof window<"u"?v.useLayoutEffect:v.useEffect,ke=new WeakMap;function pr(r,t){var o=gr(null,function(n){return r.forEach(function(c){return ve(c,n)})});return mr(function(){var n=ke.get(o);if(n){var c=new Set(n),f=new Set(r),d=o.current;c.forEach(function(l){f.has(l)||ve(l,null)}),f.forEach(function(l){c.has(l)||ve(l,d)})}ke.set(o,r)},[r]),o}function yr(r){return r}function br(r,t){t===void 0&&(t=yr);var o=[],n=!1,c={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:r},useMedium:function(f){var d=t(f,n);return o.push(d),function(){o=o.filter(function(l){return l!==d})}},assignSyncMedium:function(f){for(n=!0;o.length;){var d=o;o=[],d.forEach(f)}o={push:function(l){return f(l)},filter:function(){return o}}},assignMedium:function(f){n=!0;var d=[];if(o.length){var l=o;o=[],l.forEach(f),d=o}var y=function(){var g=d;d=[],g.forEach(f)},C=function(){return Promise.resolve().then(y)};C(),o={push:function(g){d.push(g),C()},filter:function(g){return d=d.filter(g),o}}}};return c}function Er(r){r===void 0&&(r={});var t=br(null);return t.options=W({async:!0,ssr:!1},r),t}var xe=function(r){var t=r.sideCar,o=Oe(r,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return v.createElement(n,W({},o))};xe.isSideCarExport=!0;function Sr(r,t){return r.useMedium(t),xe}var je=Er(),he=function(){},oe=v.forwardRef(function(r,t){var o=v.useRef(null),n=v.useState({onScrollCapture:he,onWheelCapture:he,onTouchMoveCapture:he}),c=n[0],f=n[1],d=r.forwardProps,l=r.children,y=r.className,C=r.removeScrollBar,g=r.enabled,w=r.shards,O=r.sideCar,x=r.noIsolation,D=r.inert,u=r.allowPinchZoom,m=r.as,T=m===void 0?"div":m,E=r.gapMode,I=Oe(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=O,k=pr([o,t]),N=W(W({},I),c);return v.createElement(v.Fragment,null,g&&v.createElement(L,{sideCar:je,removeScrollBar:C,shards:w,noIsolation:x,inert:D,setCallbacks:f,allowPinchZoom:!!u,lockRef:o,gapMode:E}),d?v.cloneElement(v.Children.only(l),W(W({},N),{ref:k})):v.createElement(T,W({},N,{className:y,ref:k}),l))});oe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},oe.classNames={fullWidth:ae,zeroRight:ne};var wr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rr(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var t=wr();return t&&r.setAttribute("nonce",t),r}function Cr(r,t){r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}function _r(r){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(r)}var Tr=function(){var r=0,t=null;return{add:function(o){r==0&&(t=Rr())&&(Cr(t,o),_r(t)),r++},remove:function(){r--,!r&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Pr=function(){var r=Tr();return function(t,o){v.useEffect(function(){return r.add(t),function(){r.remove()}},[t&&o])}},Ae=function(){var r=Pr(),t=function(o){var n=o.styles,c=o.dynamic;return r(n,c),null};return t},Or={left:0,top:0,right:0,gap:0},ge=function(r){return parseInt(r||"",10)||0},kr=function(r){var t=window.getComputedStyle(document.body),o=t[r==="padding"?"paddingLeft":"marginLeft"],n=t[r==="padding"?"paddingTop":"marginTop"],c=t[r==="padding"?"paddingRight":"marginRight"];return[ge(o),ge(n),ge(c)]},xr=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return Or;var t=kr(r),o=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-o+t[2]-t[0])}},jr=Ae(),U="data-scroll-locked",Ar=function(r,t,o,n){var c=r.left,f=r.top,d=r.right,l=r.gap;return o===void 0&&(o="margin"),` | ||
.`.concat(vr,` { | ||
<%s key={someKey} {...props} />`,_e,$,Rt,$),cr[$+_e]=!0}}return e===n?yt(_):pt(_),_}}function bt(e,a,i){return lr(e,a,i,!0)}function Et(e,a,i){return lr(e,a,i,!1)}var St=Et,wt=bt;Z.Fragment=n,Z.jsx=St,Z.jsxs=wt}()),Z}process.env.NODE_ENV==="production"?de.exports=fr():de.exports=dr();var U=de.exports,W=function(){return W=Object.assign||function(t){for(var o,n=1,c=arguments.length;n<c;n++){o=arguments[n];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(t[f]=o[f])}return t},W.apply(this,arguments)};function Oe(r,t){var o={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(o[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,n=Object.getOwnPropertySymbols(r);c<n.length;c++)t.indexOf(n[c])<0&&Object.prototype.propertyIsEnumerable.call(r,n[c])&&(o[n[c]]=r[n[c]]);return o}function vr(r,t,o){if(o||arguments.length===2)for(var n=0,c=t.length,f;n<c;n++)(f||!(n in t))&&(f||(f=Array.prototype.slice.call(t,0,n)),f[n]=t[n]);return r.concat(f||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ne="right-scroll-bar-position",ae="width-before-scroll-bar",hr="with-scroll-bars-hidden",gr="--removed-body-scroll-bar-size";function ve(r,t){return typeof r=="function"?r(t):r&&(r.current=t),r}function mr(r,t){var o=P.useState(function(){return{value:r,callback:t,facade:{get current(){return o.value},set current(n){var c=o.value;c!==n&&(o.value=n,o.callback(n,c))}}}})[0];return o.callback=t,o.facade}var pr=typeof window<"u"?v.useLayoutEffect:v.useEffect,ke=new WeakMap;function yr(r,t){var o=mr(null,function(n){return r.forEach(function(c){return ve(c,n)})});return pr(function(){var n=ke.get(o);if(n){var c=new Set(n),f=new Set(r),d=o.current;c.forEach(function(l){f.has(l)||ve(l,null)}),f.forEach(function(l){c.has(l)||ve(l,d)})}ke.set(o,r)},[r]),o}function br(r){return r}function Er(r,t){t===void 0&&(t=br);var o=[],n=!1,c={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:r},useMedium:function(f){var d=t(f,n);return o.push(d),function(){o=o.filter(function(l){return l!==d})}},assignSyncMedium:function(f){for(n=!0;o.length;){var d=o;o=[],d.forEach(f)}o={push:function(l){return f(l)},filter:function(){return o}}},assignMedium:function(f){n=!0;var d=[];if(o.length){var l=o;o=[],l.forEach(f),d=o}var y=function(){var g=d;d=[],g.forEach(f)},C=function(){return Promise.resolve().then(y)};C(),o={push:function(g){d.push(g),C()},filter:function(g){return d=d.filter(g),o}}}};return c}function Sr(r){r===void 0&&(r={});var t=Er(null);return t.options=W({async:!0,ssr:!1},r),t}var xe=function(r){var t=r.sideCar,o=Oe(r,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return v.createElement(n,W({},o))};xe.isSideCarExport=!0;function wr(r,t){return r.useMedium(t),xe}var je=Sr(),he=function(){},oe=v.forwardRef(function(r,t){var o=v.useRef(null),n=v.useState({onScrollCapture:he,onWheelCapture:he,onTouchMoveCapture:he}),c=n[0],f=n[1],d=r.forwardProps,l=r.children,y=r.className,C=r.removeScrollBar,g=r.enabled,w=r.shards,O=r.sideCar,x=r.noIsolation,D=r.inert,u=r.allowPinchZoom,m=r.as,T=m===void 0?"div":m,E=r.gapMode,I=Oe(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=O,k=yr([o,t]),N=W(W({},I),c);return v.createElement(v.Fragment,null,g&&v.createElement(L,{sideCar:je,removeScrollBar:C,shards:w,noIsolation:x,inert:D,setCallbacks:f,allowPinchZoom:!!u,lockRef:o,gapMode:E}),d?v.cloneElement(v.Children.only(l),W(W({},N),{ref:k})):v.createElement(T,W({},N,{className:y,ref:k}),l))});oe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},oe.classNames={fullWidth:ae,zeroRight:ne};var Rr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Cr(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var t=Rr();return t&&r.setAttribute("nonce",t),r}function _r(r,t){r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}function Tr(r){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(r)}var Pr=function(){var r=0,t=null;return{add:function(o){r==0&&(t=Cr())&&(_r(t,o),Tr(t)),r++},remove:function(){r--,!r&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Or=function(){var r=Pr();return function(t,o){v.useEffect(function(){return r.add(t),function(){r.remove()}},[t&&o])}},Ae=function(){var r=Or(),t=function(o){var n=o.styles,c=o.dynamic;return r(n,c),null};return t},kr={left:0,top:0,right:0,gap:0},ge=function(r){return parseInt(r||"",10)||0},xr=function(r){var t=window.getComputedStyle(document.body),o=t[r==="padding"?"paddingLeft":"marginLeft"],n=t[r==="padding"?"paddingTop":"marginTop"],c=t[r==="padding"?"paddingRight":"marginRight"];return[ge(o),ge(n),ge(c)]},jr=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return kr;var t=xr(r),o=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-o+t[2]-t[0])}},Ar=Ae(),X="data-scroll-locked",Dr=function(r,t,o,n){var c=r.left,f=r.top,d=r.right,l=r.gap;return o===void 0&&(o="margin"),` | ||
.`.concat(hr,` { | ||
overflow: hidden `).concat(n,`; | ||
padding-right: `).concat(l,"px ").concat(n,`; | ||
} | ||
body[`).concat(U,`] { | ||
body[`).concat(X,`] { | ||
overflow: hidden `).concat(n,`; | ||
@@ -67,9 +67,9 @@ overscroll-behavior: contain; | ||
body[`).concat(U,`] { | ||
`).concat(hr,": ").concat(l,`px; | ||
body[`).concat(X,`] { | ||
`).concat(gr,": ").concat(l,`px; | ||
} | ||
`)},De=function(){var r=parseInt(document.body.getAttribute(U)||"0",10);return isFinite(r)?r:0},Dr=function(){v.useEffect(function(){return document.body.setAttribute(U,(De()+1).toString()),function(){var r=De()-1;r<=0?document.body.removeAttribute(U):document.body.setAttribute(U,r.toString())}},[])},Ir=function(r){var t=r.noRelative,o=r.noImportant,n=r.gapMode,c=n===void 0?"margin":n;Dr();var f=v.useMemo(function(){return xr(c)},[c]);return v.createElement(jr,{styles:Ar(f,!t,c,o?"":"!important")})},me=!1;if(typeof window<"u")try{var ie=Object.defineProperty({},"passive",{get:function(){return me=!0,!0}});window.addEventListener("test",ie,ie),window.removeEventListener("test",ie,ie)}catch{me=!1}var X=me?{passive:!1}:!1,Fr=function(r){return r.tagName==="TEXTAREA"},Ie=function(r,t){if(!(r instanceof Element))return!1;var o=window.getComputedStyle(r);return o[t]!=="hidden"&&!(o.overflowY===o.overflowX&&!Fr(r)&&o[t]==="visible")},Lr=function(r){return Ie(r,"overflowY")},Wr=function(r){return Ie(r,"overflowX")},Fe=function(r,t){var o=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var c=Le(r,n);if(c){var f=We(r,n),d=f[1],l=f[2];if(d>l)return!0}n=n.parentNode}while(n&&n!==o.body);return!1},Mr=function(r){var t=r.scrollTop,o=r.scrollHeight,n=r.clientHeight;return[t,o,n]},Nr=function(r){var t=r.scrollLeft,o=r.scrollWidth,n=r.clientWidth;return[t,o,n]},Le=function(r,t){return r==="v"?Lr(t):Wr(t)},We=function(r,t){return r==="v"?Mr(t):Nr(t)},Yr=function(r,t){return r==="h"&&t==="rtl"?-1:1},Br=function(r,t,o,n,c){var f=Yr(r,window.getComputedStyle(t).direction),d=f*n,l=o.target,y=t.contains(l),C=!1,g=d>0,w=0,O=0;do{var x=We(r,l),D=x[0],u=x[1],m=x[2],T=u-m-f*D;(D||T)&&Le(r,l)&&(w+=T,O+=D),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!y&&l!==document.body||y&&(t.contains(l)||t===l));return(g&&(Math.abs(w)<1||!c)||!g&&(Math.abs(O)<1||!c))&&(C=!0),C},ue=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Me=function(r){return[r.deltaX,r.deltaY]},Ne=function(r){return r&&"current"in r?r.current:r},Vr=function(r,t){return r[0]===t[0]&&r[1]===t[1]},$r=function(r){return` | ||
`)},De=function(){var r=parseInt(document.body.getAttribute(X)||"0",10);return isFinite(r)?r:0},Ir=function(){v.useEffect(function(){return document.body.setAttribute(X,(De()+1).toString()),function(){var r=De()-1;r<=0?document.body.removeAttribute(X):document.body.setAttribute(X,r.toString())}},[])},Fr=function(r){var t=r.noRelative,o=r.noImportant,n=r.gapMode,c=n===void 0?"margin":n;Ir();var f=v.useMemo(function(){return jr(c)},[c]);return v.createElement(Ar,{styles:Dr(f,!t,c,o?"":"!important")})},me=!1;if(typeof window<"u")try{var ie=Object.defineProperty({},"passive",{get:function(){return me=!0,!0}});window.addEventListener("test",ie,ie),window.removeEventListener("test",ie,ie)}catch{me=!1}var z=me?{passive:!1}:!1,Lr=function(r){return r.tagName==="TEXTAREA"},Ie=function(r,t){if(!(r instanceof Element))return!1;var o=window.getComputedStyle(r);return o[t]!=="hidden"&&!(o.overflowY===o.overflowX&&!Lr(r)&&o[t]==="visible")},Wr=function(r){return Ie(r,"overflowY")},Mr=function(r){return Ie(r,"overflowX")},Fe=function(r,t){var o=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var c=Le(r,n);if(c){var f=We(r,n),d=f[1],l=f[2];if(d>l)return!0}n=n.parentNode}while(n&&n!==o.body);return!1},Nr=function(r){var t=r.scrollTop,o=r.scrollHeight,n=r.clientHeight;return[t,o,n]},Yr=function(r){var t=r.scrollLeft,o=r.scrollWidth,n=r.clientWidth;return[t,o,n]},Le=function(r,t){return r==="v"?Wr(t):Mr(t)},We=function(r,t){return r==="v"?Nr(t):Yr(t)},Br=function(r,t){return r==="h"&&t==="rtl"?-1:1},Vr=function(r,t,o,n,c){var f=Br(r,window.getComputedStyle(t).direction),d=f*n,l=o.target,y=t.contains(l),C=!1,g=d>0,w=0,O=0;do{var x=We(r,l),D=x[0],u=x[1],m=x[2],T=u-m-f*D;(D||T)&&Le(r,l)&&(w+=T,O+=D),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!y&&l!==document.body||y&&(t.contains(l)||t===l));return(g&&(Math.abs(w)<1||!c)||!g&&(Math.abs(O)<1||!c))&&(C=!0),C},ue=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Me=function(r){return[r.deltaX,r.deltaY]},Ne=function(r){return r&&"current"in r?r.current:r},$r=function(r,t){return r[0]===t[0]&&r[1]===t[1]},Ur=function(r){return` | ||
.block-interactivity-`.concat(r,` {pointer-events: none;} | ||
.allow-interactivity-`).concat(r,` {pointer-events: all;} | ||
`)},Ur=0,z=[];function Xr(r){var t=v.useRef([]),o=v.useRef([0,0]),n=v.useRef(),c=v.useState(Ur++)[0],f=v.useState(Ae)[0],d=v.useRef(r);v.useEffect(function(){d.current=r},[r]),v.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var u=dr([r.lockRef.current],(r.shards||[]).map(Ne),!0).filter(Boolean);return u.forEach(function(m){return m.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),u.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var l=v.useCallback(function(u,m){if("touches"in u&&u.touches.length===2)return!d.current.allowPinchZoom;var T=ue(u),E=o.current,I="deltaX"in u?u.deltaX:E[0]-T[0],L="deltaY"in u?u.deltaY:E[1]-T[1],k,N=u.target,Y=Math.abs(I)>Math.abs(L)?"h":"v";if("touches"in u&&Y==="h"&&N.type==="range")return!1;var H=Fe(Y,N);if(!H)return!0;if(H?k=Y:(k=Y==="v"?"h":"v",H=Fe(Y,N)),!H)return!1;if(!n.current&&"changedTouches"in u&&(I||L)&&(n.current=k),!k)return!0;var Q=n.current||k;return Br(Q,m,u,Q==="h"?I:L,!0)},[]),y=v.useCallback(function(u){var m=u;if(!(!z.length||z[z.length-1]!==f)){var T="deltaY"in m?Me(m):ue(m),E=t.current.filter(function(k){return k.name===m.type&&(k.target===m.target||m.target===k.shadowParent)&&Vr(k.delta,T)})[0];if(E&&E.should){m.cancelable&&m.preventDefault();return}if(!E){var I=(d.current.shards||[]).map(Ne).filter(Boolean).filter(function(k){return k.contains(m.target)}),L=I.length>0?l(m,I[0]):!d.current.noIsolation;L&&m.cancelable&&m.preventDefault()}}},[]),C=v.useCallback(function(u,m,T,E){var I={name:u,delta:m,target:T,should:E,shadowParent:zr(T)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(L){return L!==I})},1)},[]),g=v.useCallback(function(u){o.current=ue(u),n.current=void 0},[]),w=v.useCallback(function(u){C(u.type,Me(u),u.target,l(u,r.lockRef.current))},[]),O=v.useCallback(function(u){C(u.type,ue(u),u.target,l(u,r.lockRef.current))},[]);v.useEffect(function(){return z.push(f),r.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:O}),document.addEventListener("wheel",y,X),document.addEventListener("touchmove",y,X),document.addEventListener("touchstart",g,X),function(){z=z.filter(function(u){return u!==f}),document.removeEventListener("wheel",y,X),document.removeEventListener("touchmove",y,X),document.removeEventListener("touchstart",g,X)}},[]);var x=r.removeScrollBar,D=r.inert;return v.createElement(v.Fragment,null,D?v.createElement(f,{styles:$r(c)}):null,x?v.createElement(Ir,{gapMode:r.gapMode}):null)}function zr(r){for(var t=null;r!==null;)r instanceof ShadowRoot&&(t=r.host,r=r.host),r=r.parentNode;return t}const Hr=Sr(je,Xr);var Ye=v.forwardRef(function(r,t){return v.createElement(oe,W({},r,{ref:t,sideCar:Hr}))});Ye.classNames=oe.classNames,P.forwardRef((r,t)=>{const[o,n]=P.useState(!1),[c,f]=P.useState(!1),[d,l]=P.useState(),[y,C]=P.useState(),[g,w]=P.useState(),O=P.useRef(null),x=P.useRef(null);P.useEffect(()=>{if(c){f(!1);return}if(g!=null&&g.length&&y&&w(void 0),r.data&&typeof r.data=="function"){const u=r.data(y);if(u instanceof Promise){u.then(m=>{w(m)});return}w(u)}else r.data&&w(r.data)},[c]);const D=u=>{const m=u.target;O.current&&!O.current.contains(m)&&x.current&&!x.current.contains(m)&&n(!1)};return P.useEffect(()=>(document.addEventListener("mousedown",D),()=>{document.removeEventListener("mousedown",D)}),[]),$.jsxs("div",{children:[$.jsx("input",{ref:O,onFocus:()=>n(!0),className:"p-2 bg-gray-200 cursor-pointer focus:cursor-text",type:"text",placeholder:r.placeholder,onBlur:r.onBlur,value:(d==null?void 0:d.label)||y,onChange:u=>{C(u.target.value.toLowerCase()),f(!0),r.onChange&&r.onChange(u)}}),$.jsx("input",{ref:t,name:r.name,disabled:!0,className:"hidden",type:"text",value:d==null?void 0:d.value}),o&&g&&g.length>0&&$.jsx(Ye,{children:$.jsx("div",{ref:x,className:"absolute z-10 w-full bg-white border border-gray-300 rounded mt-1",children:g.filter(u=>String(u.label).toLowerCase().indexOf(y??"")>-1).map((u,m)=>$.jsx("div",{className:"p-2 cursor-pointer hover:bg-gray-100",onClick:()=>{l(u),n(!1)},children:u.label},m))})})]})})}); | ||
`)},Xr=0,H=[];function zr(r){var t=v.useRef([]),o=v.useRef([0,0]),n=v.useRef(),c=v.useState(Xr++)[0],f=v.useState(Ae)[0],d=v.useRef(r);v.useEffect(function(){d.current=r},[r]),v.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var u=vr([r.lockRef.current],(r.shards||[]).map(Ne),!0).filter(Boolean);return u.forEach(function(m){return m.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),u.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var l=v.useCallback(function(u,m){if("touches"in u&&u.touches.length===2)return!d.current.allowPinchZoom;var T=ue(u),E=o.current,I="deltaX"in u?u.deltaX:E[0]-T[0],L="deltaY"in u?u.deltaY:E[1]-T[1],k,N=u.target,B=Math.abs(I)>Math.abs(L)?"h":"v";if("touches"in u&&B==="h"&&N.type==="range")return!1;var J=Fe(B,N);if(!J)return!0;if(J?k=B:(k=B==="v"?"h":"v",J=Fe(B,N)),!J)return!1;if(!n.current&&"changedTouches"in u&&(I||L)&&(n.current=k),!k)return!0;var Q=n.current||k;return Vr(Q,m,u,Q==="h"?I:L,!0)},[]),y=v.useCallback(function(u){var m=u;if(!(!H.length||H[H.length-1]!==f)){var T="deltaY"in m?Me(m):ue(m),E=t.current.filter(function(k){return k.name===m.type&&(k.target===m.target||m.target===k.shadowParent)&&$r(k.delta,T)})[0];if(E&&E.should){m.cancelable&&m.preventDefault();return}if(!E){var I=(d.current.shards||[]).map(Ne).filter(Boolean).filter(function(k){return k.contains(m.target)}),L=I.length>0?l(m,I[0]):!d.current.noIsolation;L&&m.cancelable&&m.preventDefault()}}},[]),C=v.useCallback(function(u,m,T,E){var I={name:u,delta:m,target:T,should:E,shadowParent:Hr(T)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(L){return L!==I})},1)},[]),g=v.useCallback(function(u){o.current=ue(u),n.current=void 0},[]),w=v.useCallback(function(u){C(u.type,Me(u),u.target,l(u,r.lockRef.current))},[]),O=v.useCallback(function(u){C(u.type,ue(u),u.target,l(u,r.lockRef.current))},[]);v.useEffect(function(){return H.push(f),r.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:O}),document.addEventListener("wheel",y,z),document.addEventListener("touchmove",y,z),document.addEventListener("touchstart",g,z),function(){H=H.filter(function(u){return u!==f}),document.removeEventListener("wheel",y,z),document.removeEventListener("touchmove",y,z),document.removeEventListener("touchstart",g,z)}},[]);var x=r.removeScrollBar,D=r.inert;return v.createElement(v.Fragment,null,D?v.createElement(f,{styles:Ur(c)}):null,x?v.createElement(Fr,{gapMode:r.gapMode}):null)}function Hr(r){for(var t=null;r!==null;)r instanceof ShadowRoot&&(t=r.host,r=r.host),r=r.parentNode;return t}const Jr=wr(je,zr);var Ye=v.forwardRef(function(r,t){return v.createElement(oe,W({},r,{ref:t,sideCar:Jr}))});Ye.classNames=oe.classNames;const qr=P.forwardRef((r,t)=>{const[o,n]=P.useState(!1),[c,f]=P.useState(!1),[d,l]=P.useState(),[y,C]=P.useState(),[g,w]=P.useState(),O=P.useRef(null),x=P.useRef(null);P.useEffect(()=>{if(c){f(!1);return}if(g!=null&&g.length&&y&&w(void 0),r.data&&typeof r.data=="function"){const u=r.data(y);if(u instanceof Promise){u.then(m=>{w(m)});return}w(u)}else r.data&&w(r.data)},[c]);const D=u=>{const m=u.target;O.current&&!O.current.contains(m)&&x.current&&!x.current.contains(m)&&n(!1)};return P.useEffect(()=>(document.addEventListener("mousedown",D),()=>{document.removeEventListener("mousedown",D)}),[]),U.jsxs("div",{children:[U.jsx("input",{ref:O,onFocus:()=>n(!0),className:"p-2 bg-gray-200 cursor-pointer focus:cursor-text",type:"text",placeholder:r.placeholder,onBlur:r.onBlur,value:(d==null?void 0:d.label)||y,onChange:u=>{C(u.target.value.toLowerCase()),f(!0),r.onChange&&r.onChange(u)}}),U.jsx("input",{ref:t,name:r.name,disabled:!0,className:"hidden",type:"text",value:d==null?void 0:d.value}),o&&g&&g.length>0&&U.jsx(Ye,{children:U.jsx("div",{ref:x,className:"absolute z-10 w-full bg-white border border-gray-300 rounded mt-1",children:g.filter(u=>String(u.label).toLowerCase().indexOf(y??"")>-1).map((u,m)=>U.jsx("div",{className:"p-2 cursor-pointer hover:bg-gray-100",onClick:()=>{l(u),n(!1)},children:u.label},m))})})]})});Y.SearchSelect=qr,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "simple-search-dropdown", | ||
"private": false, | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "./dist/index.umd.js", | ||
@@ -10,3 +10,3 @@ "module": "./dist/index.es.js", | ||
"files": [ | ||
"/dist" | ||
"dist" | ||
], | ||
@@ -13,0 +13,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1325
351639
8