dropdowns-js 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,14 +3,13 @@
3
3
  "author": "ITA",
4
4
  "description": "A React library providing customizable search dropdown components with single and multi-selection capabilities.",
5
5
  "private": false,
6
- "version": "1.0.5",
6
+ "version": "1.0.6",
7
7
  "type": "module",
8
8
  "module": "dist/dropdowns-js.es.js",
9
- "main": "dist/dropdowns-js.cjs.js",
9
+ "main": "dist/dropdowns-js.es.js",
10
10
  "exports": {
11
11
  ".": {
12
- "import": "./dist/dropdowns-js.es.js",
13
- "require": "./dist/dropdowns-js.cjs.js"
12
+ "import": "./dist/dropdowns-js.es.js"
14
13
  },
15
14
  "./style.css": "./dist/dropdowns-js.css"
16
15
  },
@@ -1,15 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("react");function ze(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ae={exports:{}},ne={};var me;function Ne(){if(me)return ne;me=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(s,g,d){var R=null;if(d!==void 0&&(R=""+d),g.key!==void 0&&(R=""+g.key),"key"in g){d={};for(var x in g)x!=="key"&&(d[x]=g[x])}else d=g;return g=d.ref,{$$typeof:a,type:s,key:R,ref:g!==void 0?g:null,props:d}}return ne.Fragment=n,ne.jsx=i,ne.jsxs=i,ne}var oe={};var be;function Ue(){return be||(be=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===p?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case Q:return"Profiler";case V:return"StrictMode";case I:return"Suspense";case J:return"SuspenseList";case o:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case O:return"Portal";case F:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case u:var c=e.render;return e=e.displayName,e||(e=c.displayName||c.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j:return c=e.displayName||null,c!==null?c:a(e.type)||"Memo";case r:c=e._payload,e=e._init;try{return a(e(c))}catch{}}return null}function n(e){return""+e}function i(e){try{n(e);var c=!1}catch{c=!0}if(c){c=console;var y=c.error,v=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return y.call(c,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",v),n(e)}}function s(e){if(e===L)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===r)return"<...>";try{var c=a(e);return c?"<"+c+">":"<...>"}catch{return"<...>"}}function g(){var e=l.A;return e===null?null:e.getOwner()}function d(){return Error("react-stack-top-frame")}function R(e){if(m.call(e,"key")){var c=Object.getOwnPropertyDescriptor(e,"key").get;if(c&&c.isReactWarning)return!1}return e.key!==void 0}function x(e,c){function y(){X||(X=!0,console.error("%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://react.dev/link/special-props)",c))}y.isReactWarning=!0,Object.defineProperty(e,"key",{get:y,configurable:!0})}function $(){var e=a(this.type);return T[e]||(T[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function f(e,c,y,v,q,D){var S=y.ref;return e={$$typeof:Y,type:e,key:c,props:y,_owner:v},(S!==void 0?S:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:$}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function b(e,c,y,v,q,D){var S=c.children;if(S!==void 0)if(v)if(P(S)){for(v=0;v<S.length;v++)E(S[v]);Object.freeze&&Object.freeze(S)}else console.error("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 E(S);if(m.call(c,"key")){S=a(e);var A=Object.keys(c).filter(function(z){return z!=="key"});v=0<A.length?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}",t[S+v]||(A=0<A.length?"{"+A.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
- let props = %s;
3
- <%s {...props} />
4
- React keys must be passed directly to JSX without using spread:
5
- let props = %s;
6
- <%s key={someKey} {...props} />`,v,S,A,S),t[S+v]=!0)}if(S=null,y!==void 0&&(i(y),S=""+y),R(c)&&(i(c.key),S=""+c.key),"key"in c){y={};for(var U in c)U!=="key"&&(y[U]=c[U])}else y=c;return S&&x(y,typeof e=="function"?e.displayName||e.name||"Unknown":e),f(e,S,y,g(),q,D)}function E(e){M(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===r&&(e._payload.status==="fulfilled"?M(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function M(e){return typeof e=="object"&&e!==null&&e.$$typeof===Y}var k=K,Y=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),F=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),r=Symbol.for("react.lazy"),o=Symbol.for("react.activity"),p=Symbol.for("react.client.reference"),l=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,m=Object.prototype.hasOwnProperty,P=Array.isArray,N=console.createTask?console.createTask:function(){return null};k={react_stack_bottom_frame:function(e){return e()}};var X,T={},Z=k.react_stack_bottom_frame.bind(k,d)(),w=N(s(d)),t={};oe.Fragment=L,oe.jsx=function(e,c,y){var v=1e4>l.recentlyCreatedOwnerStacks++;return b(e,c,y,!1,v?Error("react-stack-top-frame"):Z,v?N(s(e)):w)},oe.jsxs=function(e,c,y){var v=1e4>l.recentlyCreatedOwnerStacks++;return b(e,c,y,!0,v?Error("react-stack-top-frame"):Z,v?N(s(e)):w)}})()),oe}var we;function Ve(){return we||(we=1,process.env.NODE_ENV==="production"?ae.exports=Ne():ae.exports=Ue()),ae.exports}var _=Ve(),ue={exports:{}},ce={exports:{}},B={};var Se;function We(){if(Se)return B;Se=1;var a=typeof Symbol=="function"&&Symbol.for,n=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,s=a?Symbol.for("react.fragment"):60107,g=a?Symbol.for("react.strict_mode"):60108,d=a?Symbol.for("react.profiler"):60114,R=a?Symbol.for("react.provider"):60109,x=a?Symbol.for("react.context"):60110,$=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,b=a?Symbol.for("react.forward_ref"):60112,E=a?Symbol.for("react.suspense"):60113,M=a?Symbol.for("react.suspense_list"):60120,k=a?Symbol.for("react.memo"):60115,Y=a?Symbol.for("react.lazy"):60116,O=a?Symbol.for("react.block"):60121,L=a?Symbol.for("react.fundamental"):60117,V=a?Symbol.for("react.responder"):60118,Q=a?Symbol.for("react.scope"):60119;function W(u){if(typeof u=="object"&&u!==null){var I=u.$$typeof;switch(I){case n:switch(u=u.type,u){case $:case f:case s:case d:case g:case E:return u;default:switch(u=u&&u.$$typeof,u){case x:case b:case Y:case k:case R:return u;default:return I}}case i:return I}}}function F(u){return W(u)===f}return B.AsyncMode=$,B.ConcurrentMode=f,B.ContextConsumer=x,B.ContextProvider=R,B.Element=n,B.ForwardRef=b,B.Fragment=s,B.Lazy=Y,B.Memo=k,B.Portal=i,B.Profiler=d,B.StrictMode=g,B.Suspense=E,B.isAsyncMode=function(u){return F(u)||W(u)===$},B.isConcurrentMode=F,B.isContextConsumer=function(u){return W(u)===x},B.isContextProvider=function(u){return W(u)===R},B.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===n},B.isForwardRef=function(u){return W(u)===b},B.isFragment=function(u){return W(u)===s},B.isLazy=function(u){return W(u)===Y},B.isMemo=function(u){return W(u)===k},B.isPortal=function(u){return W(u)===i},B.isProfiler=function(u){return W(u)===d},B.isStrictMode=function(u){return W(u)===g},B.isSuspense=function(u){return W(u)===E},B.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===s||u===f||u===d||u===g||u===E||u===M||typeof u=="object"&&u!==null&&(u.$$typeof===Y||u.$$typeof===k||u.$$typeof===R||u.$$typeof===x||u.$$typeof===b||u.$$typeof===L||u.$$typeof===V||u.$$typeof===Q||u.$$typeof===O)},B.typeOf=W,B}var G={};var Ee;function Je(){return Ee||(Ee=1,process.env.NODE_ENV!=="production"&&(function(){var a=typeof Symbol=="function"&&Symbol.for,n=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,s=a?Symbol.for("react.fragment"):60107,g=a?Symbol.for("react.strict_mode"):60108,d=a?Symbol.for("react.profiler"):60114,R=a?Symbol.for("react.provider"):60109,x=a?Symbol.for("react.context"):60110,$=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,b=a?Symbol.for("react.forward_ref"):60112,E=a?Symbol.for("react.suspense"):60113,M=a?Symbol.for("react.suspense_list"):60120,k=a?Symbol.for("react.memo"):60115,Y=a?Symbol.for("react.lazy"):60116,O=a?Symbol.for("react.block"):60121,L=a?Symbol.for("react.fundamental"):60117,V=a?Symbol.for("react.responder"):60118,Q=a?Symbol.for("react.scope"):60119;function W(h){return typeof h=="string"||typeof h=="function"||h===s||h===f||h===d||h===g||h===E||h===M||typeof h=="object"&&h!==null&&(h.$$typeof===Y||h.$$typeof===k||h.$$typeof===R||h.$$typeof===x||h.$$typeof===b||h.$$typeof===L||h.$$typeof===V||h.$$typeof===Q||h.$$typeof===O)}function F(h){if(typeof h=="object"&&h!==null){var te=h.$$typeof;switch(te){case n:var ie=h.type;switch(ie){case $:case f:case s:case d:case g:case E:return ie;default:var ve=ie&&ie.$$typeof;switch(ve){case x:case b:case Y:case k:case R:return ve;default:return te}}case i:return te}}}var u=$,I=f,J=x,j=R,r=n,o=b,p=s,l=Y,m=k,P=i,N=d,X=g,T=E,Z=!1;function w(h){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),t(h)||F(h)===$}function t(h){return F(h)===f}function e(h){return F(h)===x}function c(h){return F(h)===R}function y(h){return typeof h=="object"&&h!==null&&h.$$typeof===n}function v(h){return F(h)===b}function q(h){return F(h)===s}function D(h){return F(h)===Y}function S(h){return F(h)===k}function A(h){return F(h)===i}function U(h){return F(h)===d}function z(h){return F(h)===g}function ee(h){return F(h)===E}G.AsyncMode=u,G.ConcurrentMode=I,G.ContextConsumer=J,G.ContextProvider=j,G.Element=r,G.ForwardRef=o,G.Fragment=p,G.Lazy=l,G.Memo=m,G.Portal=P,G.Profiler=N,G.StrictMode=X,G.Suspense=T,G.isAsyncMode=w,G.isConcurrentMode=t,G.isContextConsumer=e,G.isContextProvider=c,G.isElement=y,G.isForwardRef=v,G.isFragment=q,G.isLazy=D,G.isMemo=S,G.isPortal=A,G.isProfiler=U,G.isStrictMode=z,G.isSuspense=ee,G.isValidElementType=W,G.typeOf=F})()),G}var xe;function ke(){return xe||(xe=1,process.env.NODE_ENV==="production"?ce.exports=We():ce.exports=Je()),ce.exports}var le,Te;function Ze(){if(Te)return le;Te=1;var a=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function g(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var R={},x=0;x<10;x++)R["_"+String.fromCharCode(x)]=x;var $=Object.getOwnPropertyNames(R).map(function(b){return R[b]});if($.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(b){f[b]=b}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return le=g()?Object.assign:function(d,R){for(var x,$=s(d),f,b=1;b<arguments.length;b++){x=Object(arguments[b]);for(var E in x)n.call(x,E)&&($[E]=x[E]);if(a){f=a(x);for(var M=0;M<f.length;M++)i.call(x,f[M])&&($[f[M]]=x[f[M]])}}return $},le}var fe,je;function ye(){if(je)return fe;je=1;var a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fe=a,fe}var de,Ce;function Ie(){return Ce||(Ce=1,de=Function.call.bind(Object.prototype.hasOwnProperty)),de}var pe,Re;function Be(){if(Re)return pe;Re=1;var a=function(){};if(process.env.NODE_ENV!=="production"){var n=ye(),i={},s=Ie();a=function(d){var R="Warning: "+d;typeof console<"u"&&console.error(R);try{throw new Error(R)}catch{}}}function g(d,R,x,$,f){if(process.env.NODE_ENV!=="production"){for(var b in d)if(s(d,b)){var E;try{if(typeof d[b]!="function"){var M=Error(($||"React class")+": "+x+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}E=d[b](R,b,$,x,null,n)}catch(Y){E=Y}if(E&&!(E instanceof Error)&&a(($||"React class")+": type specification of "+x+" `"+b+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in i)){i[E.message]=!0;var k=f?f():"";a("Failed "+x+" type: "+E.message+(k??""))}}}}return g.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},pe=g,pe}var he,_e;function Ge(){if(_e)return he;_e=1;var a=ke(),n=Ze(),i=ye(),s=Ie(),g=Be(),d=function(){};process.env.NODE_ENV!=="production"&&(d=function(x){var $="Warning: "+x;typeof console<"u"&&console.error($);try{throw new Error($)}catch{}});function R(){return null}return he=function(x,$){var f=typeof Symbol=="function"&&Symbol.iterator,b="@@iterator";function E(t){var e=t&&(f&&t[f]||t[b]);if(typeof e=="function")return e}var M="<<anonymous>>",k={array:V("array"),bigint:V("bigint"),bool:V("boolean"),func:V("function"),number:V("number"),object:V("object"),string:V("string"),symbol:V("symbol"),any:Q(),arrayOf:W,element:F(),elementType:u(),instanceOf:I,node:o(),objectOf:j,oneOf:J,oneOfType:r,shape:l,exact:m};function Y(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function O(t,e){this.message=t,this.data=e&&typeof e=="object"?e:{},this.stack=""}O.prototype=Error.prototype;function L(t){if(process.env.NODE_ENV!=="production")var e={},c=0;function y(q,D,S,A,U,z,ee){if(A=A||M,z=z||S,ee!==i){if($){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var te=A+":"+S;!e[te]&&c<3&&(d("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+A+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[te]=!0,c++)}}return D[S]==null?q?D[S]===null?new O("The "+U+" `"+z+"` is marked as required "+("in `"+A+"`, but its value is `null`.")):new O("The "+U+" `"+z+"` is marked as required in "+("`"+A+"`, but its value is `undefined`.")):null:t(D,S,A,U,z)}var v=y.bind(null,!1);return v.isRequired=y.bind(null,!0),v}function V(t){function e(c,y,v,q,D,S){var A=c[y],U=X(A);if(U!==t){var z=T(A);return new O("Invalid "+q+" `"+D+"` of type "+("`"+z+"` supplied to `"+v+"`, expected ")+("`"+t+"`."),{expectedType:t})}return null}return L(e)}function Q(){return L(R)}function W(t){function e(c,y,v,q,D){if(typeof t!="function")return new O("Property `"+D+"` of component `"+v+"` has invalid PropType notation inside arrayOf.");var S=c[y];if(!Array.isArray(S)){var A=X(S);return new O("Invalid "+q+" `"+D+"` of type "+("`"+A+"` supplied to `"+v+"`, expected an array."))}for(var U=0;U<S.length;U++){var z=t(S,U,v,q,D+"["+U+"]",i);if(z instanceof Error)return z}return null}return L(e)}function F(){function t(e,c,y,v,q){var D=e[c];if(!x(D)){var S=X(D);return new O("Invalid "+v+" `"+q+"` of type "+("`"+S+"` supplied to `"+y+"`, expected a single ReactElement."))}return null}return L(t)}function u(){function t(e,c,y,v,q){var D=e[c];if(!a.isValidElementType(D)){var S=X(D);return new O("Invalid "+v+" `"+q+"` of type "+("`"+S+"` supplied to `"+y+"`, expected a single ReactElement type."))}return null}return L(t)}function I(t){function e(c,y,v,q,D){if(!(c[y]instanceof t)){var S=t.name||M,A=w(c[y]);return new O("Invalid "+q+" `"+D+"` of type "+("`"+A+"` supplied to `"+v+"`, expected ")+("instance of `"+S+"`."))}return null}return L(e)}function J(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&(arguments.length>1?d("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):d("Invalid argument supplied to oneOf, expected an array.")),R;function e(c,y,v,q,D){for(var S=c[y],A=0;A<t.length;A++)if(Y(S,t[A]))return null;var U=JSON.stringify(t,function(ee,h){var te=T(h);return te==="symbol"?String(h):h});return new O("Invalid "+q+" `"+D+"` of value `"+String(S)+"` "+("supplied to `"+v+"`, expected one of "+U+"."))}return L(e)}function j(t){function e(c,y,v,q,D){if(typeof t!="function")return new O("Property `"+D+"` of component `"+v+"` has invalid PropType notation inside objectOf.");var S=c[y],A=X(S);if(A!=="object")return new O("Invalid "+q+" `"+D+"` of type "+("`"+A+"` supplied to `"+v+"`, expected an object."));for(var U in S)if(s(S,U)){var z=t(S,U,v,q,D+"."+U,i);if(z instanceof Error)return z}return null}return L(e)}function r(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&d("Invalid argument supplied to oneOfType, expected an instance of array."),R;for(var e=0;e<t.length;e++){var c=t[e];if(typeof c!="function")return d("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(c)+" at index "+e+"."),R}function y(v,q,D,S,A){for(var U=[],z=0;z<t.length;z++){var ee=t[z],h=ee(v,q,D,S,A,i);if(h==null)return null;h.data&&s(h.data,"expectedType")&&U.push(h.data.expectedType)}var te=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new O("Invalid "+S+" `"+A+"` supplied to "+("`"+D+"`"+te+"."))}return L(y)}function o(){function t(e,c,y,v,q){return P(e[c])?null:new O("Invalid "+v+" `"+q+"` supplied to "+("`"+y+"`, expected a ReactNode."))}return L(t)}function p(t,e,c,y,v){return new O((t||"React class")+": "+e+" type `"+c+"."+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+v+"`.")}function l(t){function e(c,y,v,q,D){var S=c[y],A=X(S);if(A!=="object")return new O("Invalid "+q+" `"+D+"` of type `"+A+"` "+("supplied to `"+v+"`, expected `object`."));for(var U in t){var z=t[U];if(typeof z!="function")return p(v,q,D,U,T(z));var ee=z(S,U,v,q,D+"."+U,i);if(ee)return ee}return null}return L(e)}function m(t){function e(c,y,v,q,D){var S=c[y],A=X(S);if(A!=="object")return new O("Invalid "+q+" `"+D+"` of type `"+A+"` "+("supplied to `"+v+"`, expected `object`."));var U=n({},c[y],t);for(var z in U){var ee=t[z];if(s(t,z)&&typeof ee!="function")return p(v,q,D,z,T(ee));if(!ee)return new O("Invalid "+q+" `"+D+"` key `"+z+"` supplied to `"+v+"`.\nBad object: "+JSON.stringify(c[y],null," ")+`
7
- Valid keys: `+JSON.stringify(Object.keys(t),null," "));var h=ee(S,z,v,q,D+"."+z,i);if(h)return h}return null}return L(e)}function P(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(P);if(t===null||x(t))return!0;var e=E(t);if(e){var c=e.call(t),y;if(e!==t.entries){for(;!(y=c.next()).done;)if(!P(y.value))return!1}else for(;!(y=c.next()).done;){var v=y.value;if(v&&!P(v[1]))return!1}}else return!1;return!0;default:return!1}}function N(t,e){return t==="symbol"?!0:e?e["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&e instanceof Symbol:!1}function X(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":N(e,t)?"symbol":e}function T(t){if(typeof t>"u"||t===null)return""+t;var e=X(t);if(e==="object"){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function Z(t){var e=T(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function w(t){return!t.constructor||!t.constructor.name?M:t.constructor.name}return k.checkPropTypes=g,k.resetWarningCache=g.resetWarningCache,k.PropTypes=k,k},he}var ge,Oe;function Ke(){if(Oe)return ge;Oe=1;var a=ye();function n(){}function i(){}return i.resetWarningCache=n,ge=function(){function s(R,x,$,f,b,E){if(E!==a){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}}s.isRequired=s;function g(){return s}var d={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:g,element:s,elementType:s,instanceOf:g,node:s,objectOf:g,oneOf:g,oneOfType:g,shape:g,exact:g,checkPropTypes:i,resetWarningCache:n};return d.PropTypes=d,d},ge}var Pe;function Xe(){if(Pe)return ue.exports;if(Pe=1,process.env.NODE_ENV!=="production"){var a=ke(),n=!0;ue.exports=Ge()(a.isElement,n)}else ue.exports=Ke()();return ue.exports}var He=Xe();const C=ze(He);var H={},$e;function Qe(){if($e)return H;$e=1;function a(r){return r?/^[a-zA-Z][a-zA-Z0-9_-]{2,50}$/.test(r):!1}H.isValidUserName=a;function n(r){return r?/^[A-Za-z' -]{2,50}$/.test(r):!1}H.isValidName=n;function i(r){return r?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r):!1}H.isValidEmail=i;function s(r){return r?/^[0-9]{10,15}$/g.test(r):!1}H.isValidPhoneNum=s;function g(r){return r?/^[a-zA-Z0-9.\-\(\) ]{2,}$/.test(r):!1}H.isValidOrganisationName=g;function d(r){return!(!r||r.length<6||/[A-Z]/.test(r)===!1||/[a-z]/.test(r)===!1||/[0-9]/.test(r)===!1||/[\s]/.test(r)||/[\][!"#$%&'()*+,./:;<=>?@^\\_`{|}~-]/.test(r)===!1)}H.isValidPassword=d;function R(r){let o=r.getFullYear(),p=r.getMonth()+1;p=$(p,2);let l=r.getDate();return l=$(l,2),`${o}-${p}-${l}`}H.timeStampYyyyMmDd=R;function x(r){let o=$(r.getHours(),2),p=$(r.getMinutes(),2),l=$(r.getSeconds(),2),m=$(r.getMilliseconds(),3);return`${R(r)}T${o}:${p}:${l}.${m}`}H.timeStampString=x;function $(r,o){let p=r+"";const l=o-p.length;for(let m=1;m<=l;m++)p="0"+p;return p}H.addLeadingZeros=$;function f(r){return new Intl.NumberFormat("en-US",{style:"currency",currency:"ZAR"}).format(r).replace(/ZAR/gi,"R")}H.toZarCurrencyFormat=f;function b(r){return JSON.parse(JSON.stringify(r))}H.deepClone=b;function E(r){const o=[];if(Object.prototype.toString.call(r)!=="[object Object]")return o;for(const p in r){const l=E(r[p]);l.length>0?l.forEach(m=>{o.push(p+"."+m)}):o.push(p)}return o.sort(),o}H.getPaths=E;function M(r){const o=b(r),p=[],l={};for(let m in o)p.push(m);p.sort();for(let m in p){const P=p[m];Object.prototype.toString.call(o[P])==="[object Object]"?l[P]=M(o[P]):l[P]=o[P]}return l}H.getSortedObject=M;function k(r,o){if(E(r).includes(o)===!1)throw console.log(V(r,o),o,r,E(r)),new Error(`Path ${o} does not exist on the object.`);let p=o.split("."),m=b(r)[p[0]];return p.length>1?(p.splice(0,1),k(m,p.join("."))):m}H.get=k;function Y(r,o,p){let l=o.split(".");if(l.length>1){r[l[0]]||(r[l[0]]={});const m=r[l[0]];l.splice(0,1),Y(m,l.join("."),p)}else r[l[0]]=p}H.set=Y;function O(r,o){let p=o.split(".");if(p.length>1){const l=r[p[0]];p.splice(0,1),O(l,p.join("."))}else delete r[p[0]]}H.unset=O;function L(r,...o){if(!o||!o.length)throw new Error("fields must be specified");const p=E(r);let l=0;for(const m in p){const P=p[m];if(o.includes(P))l++;else return!1}return l>0}H.hasOnly=L;function V(r,...o){if(!o||!o.length)throw new Error("fields must be specified");const p=E(r);let l=0;for(const m in o){const P=o[m];if(p.includes(P))l++;else return!1}return l===o.length}H.hasAll=V;function Q(r,...o){return L(r,...o)&&V(r,...o)}H.hasOnlyAll=Q;function W(r,o,p=0,l="asc"){const m=["asc","desc"];if(!["asc","desc"].includes(l))throw new Error(`arraySortDir must be one of ${m}`);if(r.length===0)return-1;let P=p,N=r.length-1;for(;P<N;){if(F(r[P],o)===0)return P;if(F(r[N],o)===0)return N;const X=Math.trunc((P+N)/2),T=F(r[X],o,l);if(T<0)P=X+1;else if(T>0)N=X-1;else return X}return P}H.binarySearch=W;function F(r,o,p="asc"){if(!["asc","desc"].includes(p))throw new Error(`sortDir must be one of ${p}`);const l=p==="desc"?-1:1;return r>o?l:r<o?-l:0}H.compare=F;function u(r,o,p=0,...l){if(r.length===0)return-1;let m=p,P=r.length-1;for(;m<P;){if(j(r[m],o,...l)===0)return m;if(j(r[P],o,...l)===0)return P;let N=Math.trunc((m+P)/2);if(j(r[N],o,...l)<0)m=N+1;else if(j(r[N],o,...l)>0)P=N-1;else return N}return m}H.binarySearchObj=u;function I(r,o,p,...l){let m=p,P=r.length-1;if(m>=r.length)throw new Error("startFrom is outside the bounds of the array.");if(j(o,r[m],...l)>0)throw new Error("targetObj is to the right ('greater than') objArray[startFrom].");for(;m<P;){let N=Math.trunc((m+P)/2);j(o,r[N],...l)===0?m=N+1:j(o,r[N],...l)<0&&(P=N)}return j(o,r[m],...l)===0?-1:m}H.getNextDifferent=I;function J(r,o,...p){if(r.length<=1)return[...r];if(typeof o!="boolean")throw new Error("firstOfDuplicates must be boolean true or false.");const l=[];let m=0;for(;m<r.length-1&&(o&&l.push(r[m]),m=I(r,r[m],m+1,...p),!(m<0));){let P=m-1;o||l.push(r[P])}return l.length===0?o?l.push(r[0]):l.push(r[r.length-1]):j(l[l.length-1],r[r.length-1],...p)!==0&&l.push(r[r.length-1]),l}H.getObjArrayWithNoDuplicates=J;function j(r,o,...p){if(p.length===0)throw new Error("comparisonFields not supplied!");const l=["","asc","desc"];for(const m in p){const P=p[m].split(" "),N=P[0];let X="";if(P.length===2&&(X=P[1]),!l.includes(X))throw new Error("Sort direction must be one of "+l.toString());const T=k(r,N),Z=k(o,N),w=X==="desc"?-1:1;if(T>Z)return w;if(T<Z)return-w}return 0}return H.objCompare=j,H}var re=Qe();const De=K.createContext();function Ae({children:a}){const n=K.useRef({});function i(f,b,E=null,M=!0,...k){if(s(f))throw new Error(`The collection ${f} already exists.`);if(M)n.current[f]=new er(f,b,E,...k);else{const Y=b.map(O=>re.getSortedObject(O));n.current[f]=new Me(f,Y,E,...k)}}function s(f){return n.current[f]!==void 0}function g(f,b){if(!s(f))throw new Error(`Collection ${f} not found.`);n.current[f].updateData(b)}function d(f){if(!s(f))throw new Error(`Collection ${f} not found.`);return n.current[f].getData()}function R(f,b){if(!s(f))throw new Error(`Collection ${f} not found.`);n.current[f].setSelectedItems(b)}function x(f){if(!s(f))throw new Error(`Collection ${f} not found.`);return n.current[f].getSelectedItems()}function $(f){if(!s(f))throw new Error(`Collection ${f} not found.`);return n.current[f].getMaxNumSelections()}return _.jsx(De.Provider,{value:{addCollection:i,collectionExists:s,getCollectionData:d,updateCollection:g,setSelected:R,getSelected:x,getMaxNumSelections:$},children:a})}Ae.propTypes={children:C.element.isRequired};function se(){return K.useContext(De)}class Me{constructor(n,i,s=null,...g){this.sortFields=g,this.collectionName=n,this.selectedItems=[],this.maxNumSelections=s,this.data=[...i],i.length>0&&re.getPaths(i[0])>0&&(this.data=i.map(d=>re.getSortedObject(d))),this.sortData()}sortData(){this.data.sort(this.comparisonFunction)}comparisonFunction=(n,i)=>{if(Object.prototype.toString.call(n)==="[object Object]"&&Object.prototype.toString.call(i)==="[object Object]"){if(this.sortFields.length>0)return re.objCompare(n,i,...this.sortFields)}else{if(this.sortFields.length===1)return re.compare(n,i,this.sortFields[0]);if(this.sortFields.length===0)return re.compare(n,i);throw new Error("Only 1 sort order can be provided for a primitive data type collection.")}return 0};updateData(n){this.data=n.map(s=>re.getSortedObject(s)),this.sortData();let i=null;this.selectedItems=this.selectedItems.filter(s=>this.data.findIndex(g=>(i===null&&(i=re.getPaths(g)),re.objCompare(g,s,...i)===0))>=0),this.selectedItems=this.selectedItems.toSorted(this.comparisonFunction)}setSelectedItems(n){if(this.maxNumSelections!==null&&n.length>this.maxNumSelections)return;let i=null;n=n.filter(s=>this.data.findIndex(g=>(i===null&&(i=re.getPaths(g)),re.objCompare(g,s,...i)===0))>=0),this.selectedItems=n.toSorted(this.comparisonFunction),this.selectedItems=this.selectedItems.map(s=>re.getSortedObject(s))}getData(){return this.data}getSelectedItems(){return this.selectedItems}getCollectionName(){return this.collectionName}getMaxNumSelections(){return this.maxNumSelections}}class er extends Me{constructor(n,i,s=null,...g){super(n,i,s,...g)}comparisonFunction(n,i){return re.compare(n,i,this.sortFields[0])}sortData(n){this.data.sort(this.comparisonFunction)}updateData(n){this.data=[...n],this.sortData(),this.selectedItems=this.selectedItems.filter(i=>this.data.findIndex(s=>s===i)>=0),this.selectedItems=this.selectedItems.toSorted(this.comparisonFunction)}setSelectedItems(n){if(this.maxNumSelections!==null&&n.length>this.maxNumSelections)throw new Error("Selected items exceed the maximum number of allowed selections.");n=n.filter(i=>this.data.findIndex(s=>s===i)>=0),this.selectedItems=n.toSorted(this.comparisonFunction)}}function qe({label:a,collectionName:n,onItemSelected:i=null,dropdownStyle:s,isDisabled:g=!1}){const{getCollectionData:d,setSelected:R,getSelected:x,collectionExists:$}=se(),[f]=K.useState(()=>{const I={backgroundColor:s?.backgroundColor,color:s?.color};return s?.fontSize&&(I.fontSize=s?.fontSize),I}),b=s?.borderColor,[E,M]=K.useState(!1),[k,Y]=K.useState(""),[O,L]=K.useState([]);async function V(I){Y(I.target.value);let J=[];J=d(n),J=J.filter(j=>{const r=j.toUpperCase(),o=I.target.value.toUpperCase();return r.includes(o)}),L(J),J.length===0?F():u()}async function Q(I){Y(I),R(n,[I]),i!==null&&i(),F()}function W(){E?F():u()}function F(){M(!1)}function u(){O.length>0&&M(!0)}return K.useEffect(()=>{if($(n))try{let I;I=d(n),L(I);const J=x(n);J.length>0?Y(J[0]):Y("")}catch{}},[$(n)]),_.jsxs("div",{className:`dropdown-js dropdown-js-rounded
8
- ${b&&`dropdown-js-border ${b}`}`,style:{...g?{pointerEvents:"none"}:{}},children:[_.jsxs("div",{className:"dropdown-js-input-wrapper dropdown-js-rounded",style:f,children:[_.jsx("input",{className:"dropdown-js-input dropdown-js-rounded",autoComplete:"off",type:"text",id:"searchDropDown",name:"searchDropDown",style:f,"aria-label":`Type to Search for ${a}`,"aria-required":!0,onChange:I=>V(I),disabled:g,placeholder:"Type to search",value:k}),_.jsx("div",{className:"dropdown-js-arrow-container dropdown-js-padding dropdown-js-rounded",onClick:I=>W(),children:_.jsx("span",{className:"dropdown-js-arrow dropdown-js-padding",children:E?"-":"+"})})]}),_.jsx("div",{className:`dropdown-js-padding dropdown-js-menu ${!E&&"dropdown-js-hide"}`,id:"dropDown",name:"dropDown",disabled:g,"aria-label":a,style:{...f,marginTop:"3.5px"},children:O.map((I,J)=>_.jsxs("div",{name:I,"aria-label":I,style:{cursor:"pointer"},onClick:j=>Q(I),children:[I,J<O.length-1&&_.jsx("hr",{style:{borderColor:f.color}})]},`${J}#${I}`))})]})}qe.propTypes={label:C.string.isRequired,collectionName:C.string.isRequired,isDisabled:C.bool,onItemSelected:C.func,dropdownStyle:C.shape({color:C.string.isRequired,backgroundColor:C.string.isRequired,fontSize:C.string,borderColor:C.string})};function Le({label:a,collectionName:n,displayName:i,valueName:s,onItemSelected:g=null,dropdownStyle:d,isDisabled:R=!1}){const{getCollectionData:x,setSelected:$,getSelected:f,collectionExists:b}=se(),[E]=K.useState(()=>{const j={backgroundColor:d?.backgroundColor,color:d?.color};return d?.fontSize&&(j.fontSize=d?.fontSize),j}),M=d?.borderColor,[k,Y]=K.useState(null),[O,L]=K.useState([]),[V,Q]=K.useState("");async function W(j){Q(j.target.value);let r=x(n);r=r.filter(o=>{const p=o[i].toUpperCase(),l=j.target.value.toUpperCase();return p.includes(l)}),L(r),J()}function F(j){Q(j[i]),$(n,[j]),g!==null&&g(),I()}function u(){k?I():J()}function I(){Y(!1)}function J(){O.length>0&&Y(!0)}return K.useEffect(()=>{if(!b(n))return;if(!i)throw new Error("displayName must be provided");if(!s)throw new Error("valueName must be provided");let j=[...x(n)];j.forEach((r,o)=>{if(!r[i])throw new Error(`Error in collection ${n}, index ${o}:
9
- field ${i} found`);if(!r[s])throw new Error(`Error in collection ${n}, index ${o}:
10
- field ${s} not found`)}),L(j),j=f(n),j.length>0?Q(j[0][i]):Q("")},[b(n)]),_.jsxs("div",{className:`dropdown-js dropdown-js-rounded
11
- ${M&&`dropdown-js-border ${M}`}`,style:{...R?{pointerEvents:"none"}:{}},children:[_.jsxs("div",{className:"dropdown-js-input-wrapper dropdown-js-rounded",style:E,children:[_.jsx("input",{className:"dropdown-js-input dropdown-js-rounded",style:E,type:"text",id:"searchDropDown",name:"searchDropDown",autoComplete:"off","aria-label":`Type to Search for ${a}`,"aria-required":!0,onChange:j=>W(j),disabled:R,placeholder:"Type to search",value:V}),_.jsx("div",{className:"dropdown-js-arrow-container dropdown-js-padding dropdown-js-rounded",onClick:j=>u(),children:_.jsx("span",{className:"dropdown-js-arrow dropdown-js-padding",children:k?"-":"+"})})]}),_.jsx("div",{className:`dropdown-js-padding dropdown-js-menu ${!k&&"dropdown-js-hide"}`,id:"dropDown",name:"dropDown","aria-label":a,style:{...E,marginTop:"3.5px"},children:O.map((j,r)=>_.jsxs("div",{name:j[i],"aria-label":j[i],style:{cursor:"pointer"},onClick:o=>F(j),children:[j[i],r<O.length-1&&_.jsx("hr",{style:{borderColor:E.color}})]},j[s]))})]})}Le.propTypes={collectionName:C.string.isRequired,label:C.string.isRequired,isDisabled:C.bool,onItemSelected:C.func,dropdownStyle:C.shape({color:C.string.isRequired,backgroundColor:C.string.isRequired,fontSize:C.string,borderColor:C.string})};function Ye({label:a,collectionName:n,displayName:i,valueName:s,isDisabled:g=!1,onItemsSelected:d=null,dropdownStyle:R,buttonStyle:x}){const{collectionExists:$,getCollectionData:f,setSelected:b,getSelected:E,getMaxNumSelections:M}=se(),[k,Y]=K.useState(!1),[O,L]=K.useState([]),[V,Q]=K.useState([]),[W,F]=K.useState(""),[u,I]=K.useState(Math.random()),[J,j]=K.useState(Math.random),r=1e-12,[o]=K.useState(()=>{const w={backgroundColor:R?.backgroundColor,color:R?.color};return R?.fontSize&&(w.fontSize=R?.fontSize),w}),p=R?.borderColor;K.useEffect(()=>{if(!$(n))return;if(!i)throw new Error("displayName must be provided");if(!s)throw new Error("valueName must be provided");const w=[...f(n)];w.forEach((e,c)=>{if(!e[i])throw new Error(`Error in collection ${n}, index ${c}:
12
- field ${i} found`);if(!e[s])throw new Error(`Error in collection ${n}, index ${c}:
13
- field ${s} not found`)}),L(w);const t=[...E(n)];Q(t)},[$(n)]);function l(w){F(w.target.value);const t=[...f(n).filter(e=>{const c=e[i].toUpperCase(),y=w.target.value.toUpperCase();return c.includes(y)})];L(t),t.length>0?Z():T(),I(u+r)}function m(w){let t=[...V];if(P(w))t=t.filter(e=>JSON.stringify(e)!==JSON.stringify(w));else{const e=M(n);if(e!==null&&V.length>=e)return;t.push(w)}b(n,t),Q(t),j(J+r)}function P(w){return V.findIndex(t=>JSON.stringify(t)===JSON.stringify(w))>=0}function N(w){const t=V.filter(e=>JSON.stringify(e)!==JSON.stringify(w));Q(t),b(n,t),j(J+r),d!==null&&d()}function X(){k?T():Z()}function T(){Y(!1),d!==null&&d()}function Z(){O.length>0&&Y(!0)}return _.jsxs("div",{className:`dropdown-js dropdown-js-rounded
14
- ${p&&`dropdown-js-border ${p}`}`,style:{...g?{pointerEvents:"none"}:{}},children:[_.jsxs("div",{className:"dropdown-js-input-wrapper dropdown-js-rounded",style:o,children:[_.jsx("div",{children:_.jsx("input",{className:"dropdown-js-input dropdown-js-rounded",style:o,type:"text",id:"searchDropDown",name:"searchDropDown",autoComplete:"off","aria-label":`Type to Search for ${a}`,"aria-required":!0,onChange:w=>l(w),placeholder:"Type to search",value:W})}),_.jsx("div",{className:"dropdown-js-arrow-container dropdown-js-padding dropdown-js-rounded",onClick:w=>X(),children:_.jsx("span",{className:"dropdown-js-arrow dropdown-js-padding",children:k?"-":"+"})})]}),_.jsx("div",{className:"dropdown-js-padding dropdown-js-selected-wrapper dropdown-js-selected-container",children:_.jsx("div",{className:"dropdown-js-selected-items",children:V.map(w=>_.jsxs("span",{className:"dropdown-js-padding dropdown-js-rounded",style:{...o,margin:"3.5px",marginRight:"0px"},children:[w[i]," ",_.jsx("span",{className:"dropdown-js-padding",style:{cursor:"pointer"},onClick:t=>N(w),children:"×"})]},`${w[s]}${w[i]}`))},J)}),_.jsxs("div",{className:`dropdown-js-padding dropdown-js-menu dropdown-js-rounded ${!k&&"dropdown-js-hide"}`,style:o,id:"dropDown",name:"dropDown","aria-label":a,children:[O.map(w=>_.jsxs("div",{"aria-label":w[i],children:[_.jsx("input",{type:"checkbox",name:`${w[i]}Checkbox`,style:{cursor:"pointer"},checked:P(w),onChange:t=>m(w),value:w[s]}),_.jsx("label",{style:{marginLeft:"5px"},htmlFor:`${w[i]}`,children:w[i]}),_.jsx("hr",{style:{borderColor:o.color}})]},`${w[s]}${w[i]}`)),_.jsx("button",{className:"dropdown-js-padding dropdown-js-round",style:x,title:"Done",disabled:O.length===0,onClick:w=>T(),type:"button",children:"Done"})]},u)]})}Ye.propTypes={label:C.string.isRequired,collectionName:C.string.isRequired,displayName:C.string.isRequired,valueName:C.string.isRequired,isDisabled:C.bool,selectedItem:C.array,onItemsSelected:C.func,dropdownStyle:C.shape({color:C.string.isRequired,backgroundColor:C.string.isRequired,fontSize:C.string,borderColor:C.string}),buttonStyle:C.shape({color:C.string.isRequired,backgroundColor:C.string.isRequired,fontSize:C.string,borderColor:C.string})};function Fe({label:a,collectionName:n,isDisabled:i=!1,onItemsSelected:s=null,dropdownStyle:g,buttonStyle:d}){const{getCollectionData:R,setSelected:x,getSelected:$,getMaxNumSelections:f,collectionExists:b}=se(),[E,M]=K.useState(!1),[k,Y]=K.useState([]),[O,L]=K.useState([]),[V,Q]=K.useState(""),[W,F]=K.useState(Math.random()),[u,I]=K.useState(Math.random()),J=.001,[j]=K.useState(()=>{const T={backgroundColor:g?.backgroundColor,color:g?.color};return g?.fontSize&&(T.fontSize=g?.fontSize),T}),r=g?.borderColor;K.useEffect(()=>{if(!b(n))return;Y(R(n));const T=$(n);L(T)},[b(n)]);function o(T){Q(T.target.value);let Z=R(n).filter(w=>{const t=w.toUpperCase(),e=T.target.value.toUpperCase();return t.includes(e)});Y(Z),Z.length>0?X():N(),F(W+J)}function p(T){let Z=[...O];if(l(T))Z=Z.filter(w=>w!==T);else{const w=f(n);if(w!==null&&O.length>=w)return;Z.push(T)}x(n,Z),L(Z),I(u+J)}function l(T){return O.findIndex(Z=>Z===T)>=0}function m(T){const Z=O.filter(w=>w!==T);L(Z),I(u+J),x(n,Z),s!==null&&s()}function P(){E?N():X()}function N(){M(!1),s!==null&&s()}function X(){k.length>0&&M(!0)}return _.jsxs("div",{className:`dropdown-js dropdown-js-rounded
15
- ${r&&`dropdown-js-border ${r}`}`,style:{...i?{pointerEvents:"none"}:{}},children:[_.jsxs("div",{className:"dropdown-js-input-wrapper dropdown-js-rounded",style:j,children:[_.jsx("div",{children:_.jsx("input",{className:"dropdown-js-input dropdown-js-rounded",style:j,type:"text",id:"searchDropDown",name:"searchDropDown",autoComplete:"off","aria-label":`Type to search for ${a}`,"aria-required":!0,onChange:T=>o(T),placeholder:"Type to search",value:V})}),_.jsx("div",{className:"dropdown-js-arrow-container dropdown-js-padding dropdown-js-rounded",onClick:T=>P(),children:_.jsx("span",{className:"dropdown-js-arrow dropdown-js-padding",children:E?"-":"+"})})]}),_.jsx("div",{className:"dropdown-js-padding dropdown-js-selected-wrapper dropdown-js-selected-container",children:_.jsx("div",{className:"dropdown-js-selected-items",children:O.map((T,Z)=>_.jsxs("span",{className:"dropdown-js-padding dropdown-js-rounded",style:{...j,margin:"3.5px",marginRight:"0px"},children:[T," ",_.jsx("span",{style:{cursor:"pointer"},onClick:w=>m(T),children:"×"})]},`${T}`))},u)}),_.jsxs("div",{className:`dropdown-js-padding dropdown-js-menu dropdown-js-rounded ${!E&&"dropdown-js-hide"}`,style:j,id:"dropDown",name:"dropDown","aria-label":a,children:[k.map((T,Z)=>_.jsxs("div",{"aria-label":T,children:[_.jsx("input",{type:"checkbox",name:`${T}Checkbox`,style:{cursor:"pointer"},checked:l(T),onChange:w=>p(T),value:T}),_.jsx("label",{style:{marginLeft:"5px"},htmlFor:`${T}`,children:T}),_.jsx("hr",{style:{borderColor:j.color}})]},`${Z}#${T}`)),_.jsx("button",{className:"dropdown-js-padding dropdown-js-round",style:d,title:"Done",disabled:k.length===0,onClick:T=>N(),type:"button",children:"Done"})]},W)]})}Fe.propTypes={label:C.string.isRequired,collectionName:C.string.isRequired,isDisabled:C.bool,selectedItem:C.array,onItemsSelected:C.func,dropdownStyle:C.shape({color:C.string.isRequired,backgroundColor:C.string.isRequired,fontSize:C.string,borderColor:C.string}),buttonStyle:C.shape({color:C.string.isRequired,backgroundColor:C.string.isRequired,fontSize:C.string,borderColor:C.string})};exports.CollectionsProvider=Ae;exports.Dropdown=qe;exports.DropdownObj=Le;exports.MultiSelectionDropdown=Fe;exports.MultiSelectionDropdownObj=Ye;exports.useCollectionsContext=se;