New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hudoro/dropdown

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hudoro/dropdown - npm Package Compare versions

Comparing version 0.0.2-beta.5 to 0.0.2-beta.6

602

dist/dropdown.es.js

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

import K, { useState as ie, useRef as dr, useEffect as se } from "react";
import K, { useState as ae, useRef as dr, useEffect as se } from "react";
var le = { exports: {} }, L = {};

@@ -17,16 +17,16 @@ /**

Fe = 1;
var d = K, b = Symbol.for("react.element"), R = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, _ = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, O = { key: !0, ref: !0, __self: !0, __source: !0 };
function S(C, v, P) {
var d = K, m = Symbol.for("react.element"), R = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, _ = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
function O(C, h, P) {
var g, l = {}, y = null, F = null;
P !== void 0 && (y = "" + P), v.key !== void 0 && (y = "" + v.key), v.ref !== void 0 && (F = v.ref);
for (g in v)
x.call(v, g) && !O.hasOwnProperty(g) && (l[g] = v[g]);
P !== void 0 && (y = "" + P), h.key !== void 0 && (y = "" + h.key), h.ref !== void 0 && (F = h.ref);
for (g in h)
x.call(h, g) && !k.hasOwnProperty(g) && (l[g] = h[g]);
if (C && C.defaultProps)
for (g in v = C.defaultProps, v)
l[g] === void 0 && (l[g] = v[g]);
return { $$typeof: b, type: C, key: y, ref: F, props: l, _owner: _.current };
for (g in h = C.defaultProps, h)
l[g] === void 0 && (l[g] = h[g]);
return { $$typeof: m, type: C, key: y, ref: F, props: l, _owner: _.current };
}
return L.Fragment = R, L.jsx = S, L.jsxs = S, L;
return L.Fragment = R, L.jsx = O, L.jsxs = O, L;
}
var Y = {};
var z = {};
/**

@@ -44,14 +44,14 @@ * @license React

return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
var d = K, b = Symbol.for("react.element"), R = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), C = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), M = Symbol.iterator, U = "@@iterator";
var d = K, m = Symbol.for("react.element"), R = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), C = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), Y = Symbol.iterator, M = "@@iterator";
function H(e) {
if (e === null || typeof e != "object")
return null;
var r = M && e[M] || e[U];
var r = Y && e[Y] || e[M];
return typeof r == "function" ? r : null;
}
var D = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function h(e) {
function v(e) {
{
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
n[t - 1] = arguments[t];
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
n[o - 1] = arguments[o];
s("error", e, n);

@@ -62,6 +62,6 @@ }

{
var t = D.ReactDebugCurrentFrame, i = t.getStackAddendum();
i !== "" && (r += "%s", n = n.concat([i]));
var u = n.map(function(a) {
return String(a);
var o = D.ReactDebugCurrentFrame, a = o.getStackAddendum();
a !== "" && (r += "%s", n = n.concat([a]));
var u = n.map(function(t) {
return String(t);
});

@@ -74,3 +74,3 @@ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);

function Ne(e) {
return !!(typeof e == "string" || typeof e == "function" || e === x || e === O || $e || e === _ || e === P || e === g || X || e === F || w || W || j || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === l || e.$$typeof === S || e.$$typeof === C || e.$$typeof === v || // This needs to include all possible module reference object
return !!(typeof e == "string" || typeof e == "function" || e === x || e === k || $e || e === _ || e === P || e === g || X || e === F || w || W || j || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === l || e.$$typeof === O || e.$$typeof === C || e.$$typeof === h || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -82,7 +82,7 @@ // we don't know which Flight build this will end up being used

function Ve(e, r, n) {
var t = e.displayName;
if (t)
return t;
var i = r.displayName || r.name || "";
return i !== "" ? n + "(" + i + ")" : n;
var o = e.displayName;
if (o)
return o;
var a = r.displayName || r.name || "";
return a !== "" ? n + "(" + a + ")" : n;
}

@@ -92,6 +92,6 @@ function ce(e) {

}
function T(e) {
function S(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
if (typeof e.tag == "number" && v("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;

@@ -105,3 +105,3 @@ if (typeof e == "string")

return "Portal";
case O:
case k:
return "Profiler";

@@ -120,14 +120,14 @@ case _:

return ce(r) + ".Consumer";
case S:
case O:
var n = e;
return ce(n._context) + ".Provider";
case v:
case h:
return Ve(e, e.render, "ForwardRef");
case l:
var t = e.displayName || null;
return t !== null ? t : T(e.type) || "Memo";
var o = e.displayName || null;
return o !== null ? o : S(e.type) || "Memo";
case y: {
var i = e, u = i._payload, a = i._init;
var a = e, u = a._payload, t = a._init;
try {
return T(a(u));
return S(t(u));
} catch {

@@ -140,14 +140,14 @@ return null;

}
var I = Object.assign, N = 0, de, fe, pe, ve, he, ge, be;
function me() {
var I = Object.assign, N = 0, de, fe, pe, he, ve, ge, me;
function be() {
}
me.__reactDisabledLog = !0;
be.__reactDisabledLog = !0;
function Le() {
{
if (N === 0) {
de = console.log, fe = console.info, pe = console.warn, ve = console.error, he = console.group, ge = console.groupCollapsed, be = console.groupEnd;
de = console.log, fe = console.info, pe = console.warn, he = console.error, ve = console.group, ge = console.groupCollapsed, me = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: me,
value: be,
writable: !0

@@ -168,3 +168,3 @@ };

}
function Ye() {
function ze() {
{

@@ -188,6 +188,6 @@ if (N--, N === 0) {

error: I({}, e, {
value: ve
value: he
}),
group: I({}, e, {
value: he
value: ve
}),

@@ -198,11 +198,11 @@ groupCollapsed: I({}, e, {

groupEnd: I({}, e, {
value: be
value: me
})
});
}
N < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
N < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var Z = D.ReactCurrentDispatcher, Q;
function B(e, r, n) {
function U(e, r, n) {
{

@@ -212,5 +212,5 @@ if (Q === void 0)

throw Error();
} catch (i) {
var t = i.stack.trim().match(/\n( *(at )?)/);
Q = t && t[1] || "";
} catch (a) {
var o = a.stack.trim().match(/\n( *(at )?)/);
Q = o && o[1] || "";
}

@@ -221,6 +221,6 @@ return `

}
var ee = !1, z;
var ee = !1, B;
{
var Me = typeof WeakMap == "function" ? WeakMap : Map;
z = new Me();
var Ye = typeof WeakMap == "function" ? WeakMap : Map;
B = new Ye();
}

@@ -231,9 +231,9 @@ function xe(e, r) {

{
var n = z.get(e);
var n = B.get(e);
if (n !== void 0)
return n;
}
var t;
var o;
ee = !0;
var i = Error.prepareStackTrace;
var a = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;

@@ -244,6 +244,6 @@ var u;

if (r) {
var a = function() {
var t = function() {
throw Error();
};
if (Object.defineProperty(a.prototype, "props", {
if (Object.defineProperty(t.prototype, "props", {
set: function() {

@@ -254,14 +254,14 @@ throw Error();

try {
Reflect.construct(a, []);
} catch (k) {
t = k;
Reflect.construct(t, []);
} catch (T) {
o = T;
}
Reflect.construct(e, [], a);
Reflect.construct(e, [], t);
} else {
try {
a.call();
} catch (k) {
t = k;
t.call();
} catch (T) {
o = T;
}
e.call(a.prototype);
e.call(t.prototype);
}

@@ -271,21 +271,21 @@ } else {

throw Error();
} catch (k) {
t = k;
} catch (T) {
o = T;
}
e();
}
} catch (k) {
if (k && t && typeof k.stack == "string") {
for (var o = k.stack.split(`
`), m = t.stack.split(`
`), f = o.length - 1, p = m.length - 1; f >= 1 && p >= 0 && o[f] !== m[p]; )
} catch (T) {
if (T && o && typeof T.stack == "string") {
for (var i = T.stack.split(`
`), b = o.stack.split(`
`), f = i.length - 1, p = b.length - 1; f >= 1 && p >= 0 && i[f] !== b[p]; )
p--;
for (; f >= 1 && p >= 0; f--, p--)
if (o[f] !== m[p]) {
if (i[f] !== b[p]) {
if (f !== 1 || p !== 1)
do
if (f--, p--, p < 0 || o[f] !== m[p]) {
if (f--, p--, p < 0 || i[f] !== b[p]) {
var E = `
` + o[f].replace(" at new ", " at ");
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && z.set(e, E), E;
` + i[f].replace(" at new ", " at ");
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, E), E;
}

@@ -297,11 +297,11 @@ while (f >= 1 && p >= 0);

} finally {
ee = !1, Z.current = u, Ye(), Error.prepareStackTrace = i;
ee = !1, Z.current = u, ze(), Error.prepareStackTrace = a;
}
var $ = e ? e.displayName || e.name : "", De = $ ? B($) : "";
return typeof e == "function" && z.set(e, De), De;
var $ = e ? e.displayName || e.name : "", De = $ ? U($) : "";
return typeof e == "function" && B.set(e, De), De;
}
function Ue(e, r, n) {
function Me(e, r, n) {
return xe(e, !1);
}
function Be(e) {
function Ue(e) {
var r = e.prototype;

@@ -314,21 +314,21 @@ return !!(r && r.isReactComponent);

if (typeof e == "function")
return xe(e, Be(e));
return xe(e, Ue(e));
if (typeof e == "string")
return B(e);
return U(e);
switch (e) {
case P:
return B("Suspense");
return U("Suspense");
case g:
return B("SuspenseList");
return U("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case v:
return Ue(e.render);
case h:
return Me(e.render);
case l:
return q(e.type, r, n);
case y: {
var t = e, i = t._payload, u = t._init;
var o = e, a = o._payload, u = o._init;
try {
return q(u(i), r, n);
return q(u(a), r, n);
} catch {

@@ -348,18 +348,18 @@ }

}
function ze(e, r, n, t, i) {
function Be(e, r, n, o, a) {
{
var u = Function.call.bind(J);
for (var a in e)
if (u(e, a)) {
var o = void 0;
for (var t in e)
if (u(e, t)) {
var i = void 0;
try {
if (typeof e[a] != "function") {
var m = Error((t || "React class") + ": " + n + " type `" + a + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[a] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw m.name = "Invariant Violation", m;
if (typeof e[t] != "function") {
var b = Error((o || "React class") + ": " + n + " type `" + t + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[t] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw b.name = "Invariant Violation", b;
}
o = e[a](r, a, t, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
i = e[t](r, t, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (f) {
o = f;
i = f;
}
o && !(o instanceof Error) && (G(i), h("%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).", t || "React class", n, a, typeof o), G(null)), o instanceof Error && !(o.message in ye) && (ye[o.message] = !0, G(i), h("Failed %s type: %s", n, o.message), G(null));
i && !(i instanceof Error) && (G(a), v("%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).", o || "React class", n, t, typeof i), G(null)), i instanceof Error && !(i.message in ye) && (ye[i.message] = !0, G(a), v("Failed %s type: %s", n, i.message), G(null));
}

@@ -390,3 +390,3 @@ }

if (Ge(e))
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), Ee(e);
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), Ee(e);
}

@@ -418,4 +418,4 @@ var V = D.ReactCurrentOwner, Ke = {

if (typeof e.ref == "string" && V.current && r && V.current.stateNode !== r) {
var n = T(V.current.type);
ne[n] || (h('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', T(V.current.type), e.ref), ne[n] = !0);
var n = S(V.current.type);
ne[n] || (v('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', S(V.current.type), e.ref), ne[n] = !0);
}

@@ -426,3 +426,3 @@ }

var n = function() {
_e || (_e = !0, h("%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)", r));
_e || (_e = !0, v("%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)", r));
};

@@ -438,3 +438,3 @@ n.isReactWarning = !0, Object.defineProperty(e, "key", {

var n = function() {
Ce || (Ce = !0, h("%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)", r));
Ce || (Ce = !0, v("%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)", r));
};

@@ -447,6 +447,6 @@ n.isReactWarning = !0, Object.defineProperty(e, "ref", {

}
var rr = function(e, r, n, t, i, u, a) {
var o = {
var rr = function(e, r, n, o, a, u, t) {
var i = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: b,
$$typeof: m,
// Built-in properties that belong on the element

@@ -456,7 +456,7 @@ type: e,

ref: n,
props: a,
props: t,
// Record the component responsible for creating this element.
_owner: u
};
return o._store = {}, Object.defineProperty(o._store, "validated", {
return i._store = {}, Object.defineProperty(i._store, "validated", {
configurable: !1,

@@ -466,33 +466,33 @@ enumerable: !1,

value: !1
}), Object.defineProperty(o, "_self", {
}), Object.defineProperty(i, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: t
}), Object.defineProperty(o, "_source", {
value: o
}), Object.defineProperty(i, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: i
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
value: a
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
};
function nr(e, r, n, t, i) {
function nr(e, r, n, o, a) {
{
var u, a = {}, o = null, m = null;
n !== void 0 && (Re(n), o = "" + n), Xe(r) && (Re(r.key), o = "" + r.key), He(r) && (m = r.ref, Ze(r, i));
var u, t = {}, i = null, b = null;
n !== void 0 && (Re(n), i = "" + n), Xe(r) && (Re(r.key), i = "" + r.key), He(r) && (b = r.ref, Ze(r, a));
for (u in r)
J.call(r, u) && !Ke.hasOwnProperty(u) && (a[u] = r[u]);
J.call(r, u) && !Ke.hasOwnProperty(u) && (t[u] = r[u]);
if (e && e.defaultProps) {
var f = e.defaultProps;
for (u in f)
a[u] === void 0 && (a[u] = f[u]);
t[u] === void 0 && (t[u] = f[u]);
}
if (o || m) {
if (i || b) {
var p = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
o && Qe(a, p), m && er(a, p);
i && Qe(t, p), b && er(t, p);
}
return rr(e, o, m, i, t, V.current, a);
return rr(e, i, b, a, o, V.current, t);
}
}
var te = D.ReactCurrentOwner, je = D.ReactDebugCurrentFrame;
var oe = D.ReactCurrentOwner, je = D.ReactDebugCurrentFrame;
function A(e) {

@@ -505,11 +505,11 @@ if (e) {

}
var oe;
oe = !1;
function ae(e) {
return typeof e == "object" && e !== null && e.$$typeof === b;
var ie;
ie = !1;
function te(e) {
return typeof e == "object" && e !== null && e.$$typeof === m;
}
function Te() {
function Se() {
{
if (te.current) {
var e = T(te.current.type);
if (oe.current) {
var e = S(oe.current.type);
if (e)

@@ -523,3 +523,3 @@ return `

}
function tr(e) {
function or(e) {
{

@@ -535,6 +535,6 @@ if (e !== void 0) {

}
var ke = {};
function or(e) {
var Te = {};
function ir(e) {
{
var r = Te();
var r = Se();
if (!r) {

@@ -549,3 +549,3 @@ var n = typeof e == "string" ? e : e.displayName || e.name;

}
function Oe(e, r) {
function ke(e, r) {
{

@@ -555,11 +555,11 @@ if (!e._store || e._store.validated || e.key != null)

e._store.validated = !0;
var n = or(r);
if (ke[n])
var n = ir(r);
if (Te[n])
return;
ke[n] = !0;
var t = "";
e && e._owner && e._owner !== te.current && (t = " It was passed a child from " + T(e._owner.type) + "."), A(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, t), A(null);
Te[n] = !0;
var o = "";
e && e._owner && e._owner !== oe.current && (o = " It was passed a child from " + S(e._owner.type) + "."), A(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), A(null);
}
}
function Se(e, r) {
function Oe(e, r) {
{

@@ -570,16 +570,16 @@ if (typeof e != "object")

for (var n = 0; n < e.length; n++) {
var t = e[n];
ae(t) && Oe(t, r);
var o = e[n];
te(o) && ke(o, r);
}
else if (ae(e))
else if (te(e))
e._store && (e._store.validated = !0);
else if (e) {
var i = H(e);
if (typeof i == "function" && i !== e.entries)
for (var u = i.call(e), a; !(a = u.next()).done; )
ae(a.value) && Oe(a.value, r);
var a = H(e);
if (typeof a == "function" && a !== e.entries)
for (var u = a.call(e), t; !(t = u.next()).done; )
te(t.value) && ke(t.value, r);
}
}
}
function ar(e) {
function tr(e) {
{

@@ -592,3 +592,3 @@ var r = e.type;

n = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.

@@ -600,52 +600,52 @@ r.$$typeof === l))

if (n) {
var t = T(r);
ze(n, e.props, "prop", t, e);
} else if (r.PropTypes !== void 0 && !oe) {
oe = !0;
var i = T(r);
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
var o = S(r);
Be(n, e.props, "prop", o, e);
} else if (r.PropTypes !== void 0 && !ie) {
ie = !0;
var a = S(r);
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", a || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ir(e) {
function ar(e) {
{
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
var t = r[n];
if (t !== "children" && t !== "key") {
A(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), A(null);
var o = r[n];
if (o !== "children" && o !== "key") {
A(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), A(null);
break;
}
}
e.ref !== null && (A(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
e.ref !== null && (A(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
}
}
function Pe(e, r, n, t, i, u) {
function Pe(e, r, n, o, a, u) {
{
var a = Ne(e);
if (!a) {
var o = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " 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 m = tr(i);
m ? o += m : o += Te();
var t = Ne(e);
if (!t) {
var i = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " 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 b = or(a);
b ? i += b : i += Se();
var f;
e === null ? f = "null" : re(e) ? f = "array" : e !== void 0 && e.$$typeof === b ? (f = "<" + (T(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, o);
e === null ? f = "null" : re(e) ? f = "array" : e !== void 0 && e.$$typeof === m ? (f = "<" + (S(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, i);
}
var p = nr(e, r, n, i, u);
var p = nr(e, r, n, a, u);
if (p == null)
return p;
if (a) {
if (t) {
var E = r.children;
if (E !== void 0)
if (t)
if (o)
if (re(E)) {
for (var $ = 0; $ < E.length; $++)
Se(E[$], e);
Oe(E[$], e);
Object.freeze && Object.freeze(E);
} else
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
v("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
Se(E, e);
Oe(E, e);
}
return e === x ? ir(p) : ar(p), p;
return e === x ? ar(p) : tr(p), p;
}

@@ -660,9 +660,155 @@ }

var ur = lr, cr = sr;
Y.Fragment = x, Y.jsx = ur, Y.jsxs = cr;
}()), Y;
z.Fragment = x, z.jsx = ur, z.jsxs = cr;
}()), z;
}
process.env.NODE_ENV === "production" ? le.exports = fr() : le.exports = pr();
var c = le.exports;
const vr = `@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
const hr = `@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
:root {
/* gray */
--hsd-ui-color-gray-50: #f9fafb;
--hsd-ui-color-gray-100: #f3f4f6;
--hsd-ui-color-gray-200: #e5e7eb;
--hsd-ui-color-gray-300: #d1d5db;
--hsd-ui-color-gray-400: #9ca3af;
--hsd-ui-color-gray-500: #6b7280;
--hsd-ui-color-gray-600: #4b5563;
--hsd-ui-color-gray-700: #374151;
--hsd-ui-color-gray-800: #1f2937;
--hsd-ui-color-gray-900: #111827;
--hsd-ui-color-gray-950: #030712;
/* red */
--hsd-ui-color-red-50: #fef2f2;
--hsd-ui-color-red-100: #fee2e2;
--hsd-ui-color-red-200: #fecaca;
--hsd-ui-color-red-300: #fca5a5;
--hsd-ui-color-red-400: #f87171;
--hsd-ui-color-red-500: #ef4444;
--hsd-ui-color-red-600: rgb(220, 38, 38);
--hsd-ui-color-red-700: #b91c1c;
--hsd-ui-color-red-800: #991b1b;
--hsd-ui-color-red-900: #7f1d1d;
--hsd-ui-color-red-950: #450a0a;
/* orange */
--hsd-ui-color-orange-50: #fff7ed;
--hsd-ui-color-orange-100: #ffedd5;
--hsd-ui-color-orange-200: #fed7aa;
--hsd-ui-color-orange-300: #fdba74;
--hsd-ui-color-orange-400: #fb923c;
--hsd-ui-color-orange-500: #f97316;
--hsd-ui-color-orange-600: #ea580c;
--hsd-ui-color-orange-700: #c2410c;
--hsd-ui-color-orange-800: #9a3412;
--hsd-ui-color-orange-900: #7c2d12;
--hsd-ui-color-orange-950: #431407;
/* yellow */
--hsd-ui-color-yellow-50: #fefce8;
--hsd-ui-color-yellow-100: #fef9c3;
--hsd-ui-color-yellow-200: #fef08a;
--hsd-ui-color-yellow-300: #fde047;
--hsd-ui-color-yellow-400: #facc15;
--hsd-ui-color-yellow-500: #eab308;
--hsd-ui-color-yellow-600: rgb(202, 138, 4);
--hsd-ui-color-yellow-700: #a16207;
--hsd-ui-color-yellow-800: #854d0e;
--hsd-ui-color-yellow-900: #713f12;
--hsd-ui-color-yellow-950: #422006;
/* green */
--hsd-ui-color-green-50: #f0fdf4;
--hsd-ui-color-green-100: #dcfce7;
--hsd-ui-color-green-200: #bbf7d0;
--hsd-ui-color-green-300: #86efac;
--hsd-ui-color-green-400: #4ade80;
--hsd-ui-color-green-500: #22c55e;
--hsd-ui-color-green-600: #16a34a;
--hsd-ui-color-green-700: #15803d;
--hsd-ui-color-green-800: #166534;
--hsd-ui-color-green-900: #14532d;
--hsd-ui-color-green-950: #052e16;
/* blue */
--hsd-ui-color-blue-50: #eff6ff;
--hsd-ui-color-blue-100: #dbeafe;
--hsd-ui-color-blue-200: #bfdbfe;
--hsd-ui-color-blue-300: #93c5fd;
--hsd-ui-color-blue-400: #60a5fa;
--hsd-ui-color-blue-500: #3b82f6;
--hsd-ui-color-blue-600: #2563eb;
--hsd-ui-color-blue-700: #1d4ed8;
--hsd-ui-color-blue-800: #1e40af;
--hsd-ui-color-blue-900: #1e3a8a;
--hsd-ui-color-blue-950: #172554;
/* purple */
--hsd-ui-color-purple-50: #f5f3ff;
--hsd-ui-color-purple-100: #f3e8ff;
--hsd-ui-color-purple-200: #e9d5ff;
--hsd-ui-color-purple-300: #d8b4fe;
--hsd-ui-color-purple-400: #c084fc;
--hsd-ui-color-purple-500: #a855f7;
--hsd-ui-color-purple-600: #9333ea;
--hsd-ui-color-purple-700: #7e22ce;
--hsd-ui-color-purple-800: #6b21a8;
--hsd-ui-color-purple-900: #581c87;
--hsd-ui-color-purple-950: #3b0764;
/* radii */
--hsd-ui-radii-none: 0; /* 0px */
--hsd-ui-radii-xs: 0.0625rem; /* 1px */
--hsd-ui-radii-sm: 0.125rem; /* 2px */
--hsd-ui-radii-base: 0.25rem; /* 4px */
--hsd-ui-radii-md: 0.375rem; /* 6px */
--hsd-ui-radii-lg: 0.5rem; /* 8px */
--hsd-ui-radii-xl: 0.75rem; /* 12px */
--hsd-ui-radii-2xl: 1rem; /* 16px */
--hsd-ui-radii-3xl: 1.5rem; /* 24px */
--hsd-ui-radii-full: 9999px; /* 9999px */
--hsd-ui-radii-4xl: 2.18rem; /* 35px */
/* spacing */
--hsd-ui-spacing-0: 0rem;
--hsd-ui-spacing-1: 0.25rem; /* 4px */
--hsd-ui-spacing-2: 0.5rem; /* 8px */
--hsd-ui-spacing-3: 0.75rem; /* 12px */
--hsd-ui-spacing-4: 1rem; /* 16px */
--hsd-ui-spacing-5: 1.25rem; /* 20px */
--hsd-ui-spacing-6: 1.5rem; /* 24px */
--hsd-ui-spacing-8: 2rem; /* 32px */
--hsd-ui-spacing-10: 2.5rem; /* 40px */
--hsd-ui-spacing-12: 3rem; /* 48px */
--hsd-ui-spacing-16: 4rem; /* 64px */
--hsd-ui-spacing-20: 5rem; /* 80px */
--hsd-ui-spacing-24: 6rem; /* 96px */
--hsd-ui-spacing-32: 8rem; /* 128px */
--hsd-ui-spacing-40: 10rem; /* 160px */
--hsd-ui-spacing-48: 12rem; /* 192px */
--hsd-ui-spacing-56: 14rem; /* 224px */
--hsd-ui-spacing-64: 16rem; /* 256px */
/* spacing by type */
--hsd-ui-spacing-xs: 0.25rem; /* 4px */
--hsd-ui-spacing-sm: 0.5rem; /* 8px */
--hsd-ui-spacing-md: 1rem; /* 16px */
--hsd-ui-spacing-lg: 1.5rem; /* 24px */
/* font-size */
--hsd-ui-fontSizes-xs: 0.75rem; /* 12px */
--hsd-ui-fontSizes-sm: 0.875rem; /* 14px */
--hsd-ui-fontSizes-md: 1rem; /* 16px */
--hsd-ui-fontSizes-lg: 1.125rem; /* 18px */
--hsd-ui-fontSizes-xl: 1.25rem; /* 20px */
--hsd-ui-fontSizes-2xl: 1.5rem; /* 24px */
--hsd-ui-fontSizes-3xl: 1.875rem; /* 30px */
--hsd-ui-fontSizes-4xl: 2.25rem; /* 36px */
--hsd-ui-fontSizes-5xl: 3rem; /* 48px */
--hsd-ui-fontSizes-6xl: 4rem; /* 64px */
/* font-weight */
--hsd-ui-fontWeights-normal: 400;
}
* {

@@ -672,3 +818,3 @@ margin: 0;

font-family: "Poppins", sans-serif;
font-weight: 400;
font-weight: var(--hsd-ui-fontWeights-normal);
font-style: normal;

@@ -679,29 +825,29 @@ box-sizing: border-box;

.hsd-input-dropdown-size-sm {
--baseFont: 16px;
--height: 32px;
--borderRadius: 4px;
--paddingInline: 8px;
--baseFont: var(--hsd-ui-fontSizes-md);
--height: var(--hsd-ui-spacing-8);
--borderRadius: var(--hsd-ui-radii-base);
--paddingInline: var(--hsd-ui-spacing-sm);
--borderWidth: 1px;
--baseColor: #d1d5db;
--activeColor: #1976d2;
--baseColor: var(--hsd-ui-color-gray-300);
--activeColor: var(--hsd-ui-color-blue-500);
}
.hsd-input-dropdown-size-md {
--baseFont: 16px;
--height: 40px;
--borderRadius: 8px;
--paddingInline: 12px;
--borderWidth: 1.3px;
--baseColor: #d1d5db;
--activeColor: #1976d2;
--baseFont: var(--hsd-ui-fontSizes-md);
--height: var(--hsd-ui-spacing-10);
--borderRadius: var(--hsd-ui-radii-lg);
--paddingInline: var(--hsd-ui-spacing-3);
--borderWidth: 1px;
--baseColor: var(--hsd-ui-color-gray-300);
--activeColor: var(--hsd-ui-color-blue-500);
}
.hsd-input-dropdown-size-lg {
--baseFont: 20px;
--height: 48px;
--borderRadius: 8px;
--paddingInline: 12px;
--borderWidth: 1.3px;
--baseColor: #d1d5db;
--activeColor: #1976d2;
--baseFont: var(--hsd-ui-fontSizes-xl);
--height: var(--hsd-ui-spacing-12);
--borderRadius: var(--hsd-ui-radii-lg);
--paddingInline: var(--hsd-ui-spacing-3);
--borderWidth: 1px;
--baseColor: var(--hsd-ui-color-gray-300);
--activeColor: var(--hsd-ui-color-blue-500);
}

@@ -722,3 +868,3 @@

.hsd-input-dropdown-container.active {
border-color: #64b5f6;
border-color: var(--hsd-ui-color-blue-500);
box-shadow: 0px 0px 0px var(--Spacing-2, 2px) rgba(100, 181, 246, 0.2);

@@ -819,35 +965,35 @@ background-color: #fffeff;

`;
function hr(d) {
const [b, R] = ie(d), x = dr(null), _ = (O) => {
x.current && !x.current.contains(O.target) && R(!1);
function vr(d) {
const [m, R] = ae(d), x = dr(null), _ = (k) => {
x.current && !x.current.contains(k.target) && R(!1);
};
return se(() => (document.addEventListener("click", _, !0), () => {
document.removeEventListener("click", _, !0);
}), []), { ref: x, isComponentVisible: b, setIsComponentVisible: R };
}), []), { ref: x, isComponentVisible: m, setIsComponentVisible: R };
}
const We = "hudoro-input-dropdown-styles", gr = (d) => {
if (!document.getElementById(We)) {
const b = document.createElement("style");
b.id = We, b.textContent = d, document.head.appendChild(b);
const m = document.createElement("style");
m.id = We, m.textContent = d, document.head.appendChild(m);
}
};
gr(vr);
gr(hr);
const yr = ({
dropdownLists: d,
onChange: b,
onChange: m,
defaultValue: R,
size: x = "md",
multiSelect: _,
searchAble: O,
iconLeft: S,
searchAble: k,
iconLeft: O,
placeholder: C,
onSearch: v
onSearch: h
}) => {
const [P, g] = ie(""), [l, y] = ie(), { isComponentVisible: F, ref: M, setIsComponentVisible: U } = hr(!1), H = d == null ? void 0 : d.filter(
const [P, g] = ae(""), [l, y] = ae(), { isComponentVisible: F, ref: Y, setIsComponentVisible: M } = vr(!1), H = d == null ? void 0 : d.filter(
(s) => s.label.toLowerCase().includes(P.toLowerCase())
), D = () => {
U((s) => !s), g("");
}, h = (s, w) => {
M((s) => !s), g("");
}, v = (s, w) => {
if (!_)
y([{ label: s, value: w }]), b([{ label: s, value: w }]), U(!1);
y([{ label: s, value: w }]), m([{ label: s, value: w }]), M(!1);
else if (l == null ? void 0 : l.find((j) => j.value === w)) {

@@ -857,6 +1003,6 @@ const j = [

];
y(j), b(j);
y(j), m(j);
} else {
const j = [...l || [], { label: s, value: w }];
y(j), b(j);
y(j), m(j);
}

@@ -874,7 +1020,7 @@ };

className: `hsd-input-dropdown-container hsd-input-dropdown-size-${x} ${F ? "active" : ""}`,
ref: M,
ref: Y,
onClick: D,
children: [
/* @__PURE__ */ c.jsxs("div", { className: "hsd-input-dropdown-preview-container", children: [
S ? /* @__PURE__ */ c.jsx(c.Fragment, { children: K.cloneElement(S, {
O ? /* @__PURE__ */ c.jsx(c.Fragment, { children: K.cloneElement(O, {
width: Ae(x),

@@ -894,3 +1040,3 @@ color: "#939E99"

) : /* @__PURE__ */ c.jsx("p", { className: "hsd-input-dropdown-placeholder", children: C || "Search" }) }),
/* @__PURE__ */ c.jsx(mr, { strokeWidth: 2, width: Ae(x) })
/* @__PURE__ */ c.jsx(br, { strokeWidth: 2, width: Ae(x) })
] }),

@@ -903,4 +1049,4 @@ F ? /* @__PURE__ */ c.jsxs(

children: [
O ? /* @__PURE__ */ c.jsxs("div", { className: "hsd-input-dropdown-container-dropdown-search", children: [
/* @__PURE__ */ c.jsx("div", { style: { display: "flex" }, children: /* @__PURE__ */ c.jsx(br, { strokeWidth: 2, width: 20 }) }),
k ? /* @__PURE__ */ c.jsxs("div", { className: "hsd-input-dropdown-container-dropdown-search", children: [
/* @__PURE__ */ c.jsx("div", { style: { display: "flex" }, children: /* @__PURE__ */ c.jsx(mr, { strokeWidth: 2, width: 20 }) }),
/* @__PURE__ */ c.jsx(

@@ -910,3 +1056,3 @@ "input",

onChange: (s) => {
g(s.target.value), v && v(s.target.value);
g(s.target.value), h && h(s.target.value);
}

@@ -920,3 +1066,3 @@ }

className: `hsd-input-dropdwon-item ${l != null && l.find((W) => W.value === s.value) ? "active" : ""}`,
onClick: () => h(s.label, s.value),
onClick: () => v(s.label, s.value),
children: [

@@ -940,3 +1086,3 @@ s.icon ? /* @__PURE__ */ c.jsx("div", { children: K.cloneElement(s.icon, {

);
}, br = ({ ...d }) => /* @__PURE__ */ c.jsxs(
}, mr = ({ ...d }) => /* @__PURE__ */ c.jsxs(
"svg",

@@ -973,3 +1119,3 @@ {

}
), mr = ({ ...d }) => /* @__PURE__ */ c.jsx(
), br = ({ ...d }) => /* @__PURE__ */ c.jsx(
"svg",

@@ -976,0 +1122,0 @@ {

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

(function(I,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],b):(I=typeof globalThis<"u"?globalThis:I||self,b(I.Dropdown={},I.React))})(this,function(I,b){"use strict";var Z={exports:{}},Y={};/**
(function(I,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(I=typeof globalThis<"u"?globalThis:I||self,m(I.Dropdown={},I.React))})(this,function(I,m){"use strict";var Z={exports:{}},z={};/**
* @license React

@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/var le;function Ae(){if(le)return Y;le=1;var d=b,m=Symbol.for("react.element"),_=Symbol.for("react.fragment"),y=Object.prototype.hasOwnProperty,C=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O={key:!0,ref:!0,__self:!0,__source:!0};function P(j,v,D){var g,l={},w=null,W=null;D!==void 0&&(w=""+D),v.key!==void 0&&(w=""+v.key),v.ref!==void 0&&(W=v.ref);for(g in v)y.call(v,g)&&!O.hasOwnProperty(g)&&(l[g]=v[g]);if(j&&j.defaultProps)for(g in v=j.defaultProps,v)l[g]===void 0&&(l[g]=v[g]);return{$$typeof:m,type:j,key:w,ref:W,props:l,_owner:C.current}}return Y.Fragment=_,Y.jsx=P,Y.jsxs=P,Y}var M={};/**
*/var le;function Ae(){if(le)return z;le=1;var d=m,b=Symbol.for("react.element"),_=Symbol.for("react.fragment"),y=Object.prototype.hasOwnProperty,C=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O={key:!0,ref:!0,__self:!0,__source:!0};function P(S,h,D){var g,l={},w=null,W=null;D!==void 0&&(w=""+D),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(W=h.ref);for(g in h)y.call(h,g)&&!O.hasOwnProperty(g)&&(l[g]=h[g]);if(S&&S.defaultProps)for(g in h=S.defaultProps,h)l[g]===void 0&&(l[g]=h[g]);return{$$typeof:b,type:S,key:w,ref:W,props:l,_owner:C.current}}return z.Fragment=_,z.jsx=P,z.jsxs=P,z}var Y={};/**
* @license React

@@ -18,7 +18,7 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/var ue;function Ne(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var d=b,m=Symbol.for("react.element"),_=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),j=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),z=Symbol.iterator,J="@@iterator";function Q(e){if(e===null||typeof e!="object")return null;var r=z&&e[z]||e[J];return typeof r=="function"?r:null}var F=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),t=1;t<r;t++)n[t-1]=arguments[t];s("error",e,n)}}function s(e,r,n){{var t=F.ReactDebugCurrentFrame,i=t.getStackAddendum();i!==""&&(r+="%s",n=n.concat([i]));var u=n.map(function(a){return String(a)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var E=!1,N=!1,T=!1,q=!1,Be=!1,fe;fe=Symbol.for("react.module.reference");function ze(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===O||Be||e===C||e===D||e===g||q||e===W||E||N||T||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===l||e.$$typeof===P||e.$$typeof===j||e.$$typeof===v||e.$$typeof===fe||e.getModuleId!==void 0))}function Je(e,r,n){var t=e.displayName;if(t)return t;var i=r.displayName||r.name||"";return i!==""?n+"("+i+")":n}function pe(e){return e.displayName||"Context"}function S(e){if(e==null)return null;if(typeof e.tag=="number"&&h("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 y:return"Fragment";case _:return"Portal";case O:return"Profiler";case C:return"StrictMode";case D:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j:var r=e;return pe(r)+".Consumer";case P:var n=e;return pe(n._context)+".Provider";case v:return Je(e,e.render,"ForwardRef");case l:var t=e.displayName||null;return t!==null?t:S(e.type)||"Memo";case w:{var i=e,u=i._payload,a=i._init;try{return S(a(u))}catch{return null}}}return null}var A=Object.assign,U=0,ve,he,ge,be,me,xe,ye;function we(){}we.__reactDisabledLog=!0;function Ge(){{if(U===0){ve=console.log,he=console.info,ge=console.warn,be=console.error,me=console.group,xe=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function $e(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:ve}),info:A({},e,{value:he}),warn:A({},e,{value:ge}),error:A({},e,{value:be}),group:A({},e,{value:me}),groupCollapsed:A({},e,{value:xe}),groupEnd:A({},e,{value:ye})})}U<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=F.ReactCurrentDispatcher,re;function G(e,r,n){{if(re===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);re=t&&t[1]||""}return`
`+re+e}}var ne=!1,$;{var Ke=typeof WeakMap=="function"?WeakMap:Map;$=new Ke}function Ee(e,r){if(!e||ne)return"";{var n=$.get(e);if(n!==void 0)return n}var t;ne=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=ee.current,ee.current=null,Ge();try{if(r){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(k){t=k}Reflect.construct(e,[],a)}else{try{a.call()}catch(k){t=k}e.call(a.prototype)}}else{try{throw Error()}catch(k){t=k}e()}}catch(k){if(k&&t&&typeof k.stack=="string"){for(var o=k.stack.split(`
`),x=t.stack.split(`
`),f=o.length-1,p=x.length-1;f>=1&&p>=0&&o[f]!==x[p];)p--;for(;f>=1&&p>=0;f--,p--)if(o[f]!==x[p]){if(f!==1||p!==1)do if(f--,p--,p<0||o[f]!==x[p]){var R=`
`+o[f].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,R),R}while(f>=1&&p>=0);break}}}finally{ne=!1,ee.current=u,$e(),Error.prepareStackTrace=i}var L=e?e.displayName||e.name:"",We=L?G(L):"";return typeof e=="function"&&$.set(e,We),We}function He(e,r,n){return Ee(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,n){if(e==null)return"";if(typeof e=="function")return Ee(e,Xe(e));if(typeof e=="string")return G(e);switch(e){case D:return G("Suspense");case g:return G("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return He(e.render);case l:return K(e.type,r,n);case w:{var t=e,i=t._payload,u=t._init;try{return K(u(i),r,n)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Re={},_e=F.ReactDebugCurrentFrame;function X(e){if(e){var r=e._owner,n=K(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(n)}else _e.setExtraStackFrame(null)}function Ze(e,r,n,t,i){{var u=Function.call.bind(H);for(var a in e)if(u(e,a)){var o=void 0;try{if(typeof e[a]!="function"){var x=Error((t||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}o=e[a](r,a,t,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){o=f}o&&!(o instanceof Error)&&(X(i),h("%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).",t||"React class",n,a,typeof o),X(null)),o instanceof Error&&!(o.message in Re)&&(Re[o.message]=!0,X(i),h("Failed %s type: %s",n,o.message),X(null))}}}var Qe=Array.isArray;function te(e){return Qe(e)}function qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function er(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function je(e){if(er(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(e)),Ce(e)}var B=F.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Te,Se,oe;oe={};function nr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var n=S(B.current.type);oe[n]||(h('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',S(B.current.type),e.ref),oe[n]=!0)}}function ar(e,r){{var n=function(){Te||(Te=!0,h("%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)",r))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function ir(e,r){{var n=function(){Se||(Se=!0,h("%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)",r))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var sr=function(e,r,n,t,i,u,a){var o={$$typeof:m,type:e,key:r,ref:n,props:a,_owner:u};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function lr(e,r,n,t,i){{var u,a={},o=null,x=null;n!==void 0&&(je(n),o=""+n),tr(r)&&(je(r.key),o=""+r.key),nr(r)&&(x=r.ref,or(r,i));for(u in r)H.call(r,u)&&!rr.hasOwnProperty(u)&&(a[u]=r[u]);if(e&&e.defaultProps){var f=e.defaultProps;for(u in f)a[u]===void 0&&(a[u]=f[u])}if(o||x){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ar(a,p),x&&ir(a,p)}return sr(e,o,x,i,t,B.current,a)}}var ae=F.ReactCurrentOwner,ke=F.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,n=K(e.type,e._source,r?r.type:null);ke.setExtraStackFrame(n)}else ke.setExtraStackFrame(null)}var ie;ie=!1;function se(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}function Oe(){{if(ae.current){var e=S(ae.current.type);if(e)return`
*/var ue;function Ne(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var d=m,b=Symbol.for("react.element"),_=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),S=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),B=Symbol.iterator,J="@@iterator";function Q(e){if(e===null||typeof e!="object")return null;var r=B&&e[B]||e[J];return typeof r=="function"?r:null}var F=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];s("error",e,n)}}function s(e,r,n){{var o=F.ReactDebugCurrentFrame,a=o.getStackAddendum();a!==""&&(r+="%s",n=n.concat([a]));var u=n.map(function(t){return String(t)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var E=!1,N=!1,j=!1,q=!1,Ue=!1,fe;fe=Symbol.for("react.module.reference");function Be(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===O||Ue||e===C||e===D||e===g||q||e===W||E||N||j||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===l||e.$$typeof===P||e.$$typeof===S||e.$$typeof===h||e.$$typeof===fe||e.getModuleId!==void 0))}function Je(e,r,n){var o=e.displayName;if(o)return o;var a=r.displayName||r.name||"";return a!==""?n+"("+a+")":n}function pe(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&v("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 y:return"Fragment";case _:return"Portal";case O:return"Profiler";case C:return"StrictMode";case D:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return pe(r)+".Consumer";case P:var n=e;return pe(n._context)+".Provider";case h:return Je(e,e.render,"ForwardRef");case l:var o=e.displayName||null;return o!==null?o:T(e.type)||"Memo";case w:{var a=e,u=a._payload,t=a._init;try{return T(t(u))}catch{return null}}}return null}var A=Object.assign,M=0,he,ve,ge,me,be,xe,ye;function we(){}we.__reactDisabledLog=!0;function Ge(){{if(M===0){he=console.log,ve=console.info,ge=console.warn,me=console.error,be=console.group,xe=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function $e(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:he}),info:A({},e,{value:ve}),warn:A({},e,{value:ge}),error:A({},e,{value:me}),group:A({},e,{value:be}),groupCollapsed:A({},e,{value:xe}),groupEnd:A({},e,{value:ye})})}M<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=F.ReactCurrentDispatcher,re;function G(e,r,n){{if(re===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);re=o&&o[1]||""}return`
`+re+e}}var ne=!1,$;{var Ke=typeof WeakMap=="function"?WeakMap:Map;$=new Ke}function Ee(e,r){if(!e||ne)return"";{var n=$.get(e);if(n!==void 0)return n}var o;ne=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=ee.current,ee.current=null,Ge();try{if(r){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(k){o=k}Reflect.construct(e,[],t)}else{try{t.call()}catch(k){o=k}e.call(t.prototype)}}else{try{throw Error()}catch(k){o=k}e()}}catch(k){if(k&&o&&typeof k.stack=="string"){for(var i=k.stack.split(`
`),x=o.stack.split(`
`),f=i.length-1,p=x.length-1;f>=1&&p>=0&&i[f]!==x[p];)p--;for(;f>=1&&p>=0;f--,p--)if(i[f]!==x[p]){if(f!==1||p!==1)do if(f--,p--,p<0||i[f]!==x[p]){var R=`
`+i[f].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,R),R}while(f>=1&&p>=0);break}}}finally{ne=!1,ee.current=u,$e(),Error.prepareStackTrace=a}var L=e?e.displayName||e.name:"",We=L?G(L):"";return typeof e=="function"&&$.set(e,We),We}function He(e,r,n){return Ee(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,n){if(e==null)return"";if(typeof e=="function")return Ee(e,Xe(e));if(typeof e=="string")return G(e);switch(e){case D:return G("Suspense");case g:return G("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return He(e.render);case l:return K(e.type,r,n);case w:{var o=e,a=o._payload,u=o._init;try{return K(u(a),r,n)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Re={},_e=F.ReactDebugCurrentFrame;function X(e){if(e){var r=e._owner,n=K(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(n)}else _e.setExtraStackFrame(null)}function Ze(e,r,n,o,a){{var u=Function.call.bind(H);for(var t in e)if(u(e,t)){var i=void 0;try{if(typeof e[t]!="function"){var x=Error((o||"React class")+": "+n+" type `"+t+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[t]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}i=e[t](r,t,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){i=f}i&&!(i instanceof Error)&&(X(a),v("%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).",o||"React class",n,t,typeof i),X(null)),i instanceof Error&&!(i.message in Re)&&(Re[i.message]=!0,X(a),v("Failed %s type: %s",n,i.message),X(null))}}}var Qe=Array.isArray;function oe(e){return Qe(e)}function qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function er(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Se(e){if(er(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(e)),Ce(e)}var U=F.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},je,Te,ie;ie={};function nr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function or(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ir(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var n=T(U.current.type);ie[n]||(v('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',T(U.current.type),e.ref),ie[n]=!0)}}function tr(e,r){{var n=function(){je||(je=!0,v("%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)",r))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function ar(e,r){{var n=function(){Te||(Te=!0,v("%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)",r))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var sr=function(e,r,n,o,a,u,t){var i={$$typeof:b,type:e,key:r,ref:n,props:t,_owner:u};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function lr(e,r,n,o,a){{var u,t={},i=null,x=null;n!==void 0&&(Se(n),i=""+n),or(r)&&(Se(r.key),i=""+r.key),nr(r)&&(x=r.ref,ir(r,a));for(u in r)H.call(r,u)&&!rr.hasOwnProperty(u)&&(t[u]=r[u]);if(e&&e.defaultProps){var f=e.defaultProps;for(u in f)t[u]===void 0&&(t[u]=f[u])}if(i||x){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&tr(t,p),x&&ar(t,p)}return sr(e,i,x,a,o,U.current,t)}}var te=F.ReactCurrentOwner,ke=F.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,n=K(e.type,e._source,r?r.type:null);ke.setExtraStackFrame(n)}else ke.setExtraStackFrame(null)}var ae;ae=!1;function se(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function Oe(){{if(te.current){var e=T(te.current.type);if(e)return`

@@ -29,4 +29,150 @@ Check the render method of \``+e+"`."}return""}}function ur(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),n=e.lineNumber;return`

Check the top-level render call using <`+n+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=cr(r);if(Pe[n])return;Pe[n]=!0;var t="";e&&e._owner&&e._owner!==ae.current&&(t=" It was passed a child from "+S(e._owner.type)+"."),V(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,t),V(null)}}function Fe(e,r){{if(typeof e!="object")return;if(te(e))for(var n=0;n<e.length;n++){var t=e[n];se(t)&&De(t,r)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var i=Q(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),a;!(a=u.next()).done;)se(a.value)&&De(a.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===l))n=r.propTypes;else return;if(n){var t=S(r);Ze(n,e.props,"prop",t,e)}else if(r.PropTypes!==void 0&&!ie){ie=!0;var i=S(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var t=r[n];if(t!=="children"&&t!=="key"){V(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",t),V(null);break}}e.ref!==null&&(V(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function Ie(e,r,n,t,i,u){{var a=ze(e);if(!a){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 x=ur(i);x?o+=x:o+=Oe();var f;e===null?f="null":te(e)?f="array":e!==void 0&&e.$$typeof===m?(f="<"+(S(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,o)}var p=lr(e,r,n,i,u);if(p==null)return p;if(a){var R=r.children;if(R!==void 0)if(t)if(te(R)){for(var L=0;L<R.length;L++)Fe(R[L],e);Object.freeze&&Object.freeze(R)}else h("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 Fe(R,e)}return e===y?fr(p):dr(p),p}}function pr(e,r,n){return Ie(e,r,n,!0)}function vr(e,r,n){return Ie(e,r,n,!1)}var hr=vr,gr=pr;M.Fragment=y,M.jsx=hr,M.jsxs=gr}()),M}process.env.NODE_ENV==="production"?Z.exports=Ae():Z.exports=Ne();var c=Z.exports;const Ve=`@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
Check the top-level render call using <`+n+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=cr(r);if(Pe[n])return;Pe[n]=!0;var o="";e&&e._owner&&e._owner!==te.current&&(o=" It was passed a child from "+T(e._owner.type)+"."),V(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),V(null)}}function Fe(e,r){{if(typeof e!="object")return;if(oe(e))for(var n=0;n<e.length;n++){var o=e[n];se(o)&&De(o,r)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var a=Q(e);if(typeof a=="function"&&a!==e.entries)for(var u=a.call(e),t;!(t=u.next()).done;)se(t.value)&&De(t.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===l))n=r.propTypes;else return;if(n){var o=T(r);Ze(n,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!ae){ae=!0;var a=T(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",a||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var o=r[n];if(o!=="children"&&o!=="key"){V(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),V(null);break}}e.ref!==null&&(V(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function Ie(e,r,n,o,a,u){{var t=Be(e);if(!t){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" 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 x=ur(a);x?i+=x:i+=Oe();var f;e===null?f="null":oe(e)?f="array":e!==void 0&&e.$$typeof===b?(f="<"+(T(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,i)}var p=lr(e,r,n,a,u);if(p==null)return p;if(t){var R=r.children;if(R!==void 0)if(o)if(oe(R)){for(var L=0;L<R.length;L++)Fe(R[L],e);Object.freeze&&Object.freeze(R)}else v("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 Fe(R,e)}return e===y?fr(p):dr(p),p}}function pr(e,r,n){return Ie(e,r,n,!0)}function hr(e,r,n){return Ie(e,r,n,!1)}var vr=hr,gr=pr;Y.Fragment=y,Y.jsx=vr,Y.jsxs=gr}()),Y}process.env.NODE_ENV==="production"?Z.exports=Ae():Z.exports=Ne();var c=Z.exports;const Ve=`@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
:root {
/* gray */
--hsd-ui-color-gray-50: #f9fafb;
--hsd-ui-color-gray-100: #f3f4f6;
--hsd-ui-color-gray-200: #e5e7eb;
--hsd-ui-color-gray-300: #d1d5db;
--hsd-ui-color-gray-400: #9ca3af;
--hsd-ui-color-gray-500: #6b7280;
--hsd-ui-color-gray-600: #4b5563;
--hsd-ui-color-gray-700: #374151;
--hsd-ui-color-gray-800: #1f2937;
--hsd-ui-color-gray-900: #111827;
--hsd-ui-color-gray-950: #030712;
/* red */
--hsd-ui-color-red-50: #fef2f2;
--hsd-ui-color-red-100: #fee2e2;
--hsd-ui-color-red-200: #fecaca;
--hsd-ui-color-red-300: #fca5a5;
--hsd-ui-color-red-400: #f87171;
--hsd-ui-color-red-500: #ef4444;
--hsd-ui-color-red-600: rgb(220, 38, 38);
--hsd-ui-color-red-700: #b91c1c;
--hsd-ui-color-red-800: #991b1b;
--hsd-ui-color-red-900: #7f1d1d;
--hsd-ui-color-red-950: #450a0a;
/* orange */
--hsd-ui-color-orange-50: #fff7ed;
--hsd-ui-color-orange-100: #ffedd5;
--hsd-ui-color-orange-200: #fed7aa;
--hsd-ui-color-orange-300: #fdba74;
--hsd-ui-color-orange-400: #fb923c;
--hsd-ui-color-orange-500: #f97316;
--hsd-ui-color-orange-600: #ea580c;
--hsd-ui-color-orange-700: #c2410c;
--hsd-ui-color-orange-800: #9a3412;
--hsd-ui-color-orange-900: #7c2d12;
--hsd-ui-color-orange-950: #431407;
/* yellow */
--hsd-ui-color-yellow-50: #fefce8;
--hsd-ui-color-yellow-100: #fef9c3;
--hsd-ui-color-yellow-200: #fef08a;
--hsd-ui-color-yellow-300: #fde047;
--hsd-ui-color-yellow-400: #facc15;
--hsd-ui-color-yellow-500: #eab308;
--hsd-ui-color-yellow-600: rgb(202, 138, 4);
--hsd-ui-color-yellow-700: #a16207;
--hsd-ui-color-yellow-800: #854d0e;
--hsd-ui-color-yellow-900: #713f12;
--hsd-ui-color-yellow-950: #422006;
/* green */
--hsd-ui-color-green-50: #f0fdf4;
--hsd-ui-color-green-100: #dcfce7;
--hsd-ui-color-green-200: #bbf7d0;
--hsd-ui-color-green-300: #86efac;
--hsd-ui-color-green-400: #4ade80;
--hsd-ui-color-green-500: #22c55e;
--hsd-ui-color-green-600: #16a34a;
--hsd-ui-color-green-700: #15803d;
--hsd-ui-color-green-800: #166534;
--hsd-ui-color-green-900: #14532d;
--hsd-ui-color-green-950: #052e16;
/* blue */
--hsd-ui-color-blue-50: #eff6ff;
--hsd-ui-color-blue-100: #dbeafe;
--hsd-ui-color-blue-200: #bfdbfe;
--hsd-ui-color-blue-300: #93c5fd;
--hsd-ui-color-blue-400: #60a5fa;
--hsd-ui-color-blue-500: #3b82f6;
--hsd-ui-color-blue-600: #2563eb;
--hsd-ui-color-blue-700: #1d4ed8;
--hsd-ui-color-blue-800: #1e40af;
--hsd-ui-color-blue-900: #1e3a8a;
--hsd-ui-color-blue-950: #172554;
/* purple */
--hsd-ui-color-purple-50: #f5f3ff;
--hsd-ui-color-purple-100: #f3e8ff;
--hsd-ui-color-purple-200: #e9d5ff;
--hsd-ui-color-purple-300: #d8b4fe;
--hsd-ui-color-purple-400: #c084fc;
--hsd-ui-color-purple-500: #a855f7;
--hsd-ui-color-purple-600: #9333ea;
--hsd-ui-color-purple-700: #7e22ce;
--hsd-ui-color-purple-800: #6b21a8;
--hsd-ui-color-purple-900: #581c87;
--hsd-ui-color-purple-950: #3b0764;
/* radii */
--hsd-ui-radii-none: 0; /* 0px */
--hsd-ui-radii-xs: 0.0625rem; /* 1px */
--hsd-ui-radii-sm: 0.125rem; /* 2px */
--hsd-ui-radii-base: 0.25rem; /* 4px */
--hsd-ui-radii-md: 0.375rem; /* 6px */
--hsd-ui-radii-lg: 0.5rem; /* 8px */
--hsd-ui-radii-xl: 0.75rem; /* 12px */
--hsd-ui-radii-2xl: 1rem; /* 16px */
--hsd-ui-radii-3xl: 1.5rem; /* 24px */
--hsd-ui-radii-full: 9999px; /* 9999px */
--hsd-ui-radii-4xl: 2.18rem; /* 35px */
/* spacing */
--hsd-ui-spacing-0: 0rem;
--hsd-ui-spacing-1: 0.25rem; /* 4px */
--hsd-ui-spacing-2: 0.5rem; /* 8px */
--hsd-ui-spacing-3: 0.75rem; /* 12px */
--hsd-ui-spacing-4: 1rem; /* 16px */
--hsd-ui-spacing-5: 1.25rem; /* 20px */
--hsd-ui-spacing-6: 1.5rem; /* 24px */
--hsd-ui-spacing-8: 2rem; /* 32px */
--hsd-ui-spacing-10: 2.5rem; /* 40px */
--hsd-ui-spacing-12: 3rem; /* 48px */
--hsd-ui-spacing-16: 4rem; /* 64px */
--hsd-ui-spacing-20: 5rem; /* 80px */
--hsd-ui-spacing-24: 6rem; /* 96px */
--hsd-ui-spacing-32: 8rem; /* 128px */
--hsd-ui-spacing-40: 10rem; /* 160px */
--hsd-ui-spacing-48: 12rem; /* 192px */
--hsd-ui-spacing-56: 14rem; /* 224px */
--hsd-ui-spacing-64: 16rem; /* 256px */
/* spacing by type */
--hsd-ui-spacing-xs: 0.25rem; /* 4px */
--hsd-ui-spacing-sm: 0.5rem; /* 8px */
--hsd-ui-spacing-md: 1rem; /* 16px */
--hsd-ui-spacing-lg: 1.5rem; /* 24px */
/* font-size */
--hsd-ui-fontSizes-xs: 0.75rem; /* 12px */
--hsd-ui-fontSizes-sm: 0.875rem; /* 14px */
--hsd-ui-fontSizes-md: 1rem; /* 16px */
--hsd-ui-fontSizes-lg: 1.125rem; /* 18px */
--hsd-ui-fontSizes-xl: 1.25rem; /* 20px */
--hsd-ui-fontSizes-2xl: 1.5rem; /* 24px */
--hsd-ui-fontSizes-3xl: 1.875rem; /* 30px */
--hsd-ui-fontSizes-4xl: 2.25rem; /* 36px */
--hsd-ui-fontSizes-5xl: 3rem; /* 48px */
--hsd-ui-fontSizes-6xl: 4rem; /* 64px */
/* font-weight */
--hsd-ui-fontWeights-normal: 400;
}
* {

@@ -36,3 +182,3 @@ margin: 0;

font-family: "Poppins", sans-serif;
font-weight: 400;
font-weight: var(--hsd-ui-fontWeights-normal);
font-style: normal;

@@ -43,29 +189,29 @@ box-sizing: border-box;

.hsd-input-dropdown-size-sm {
--baseFont: 16px;
--height: 32px;
--borderRadius: 4px;
--paddingInline: 8px;
--baseFont: var(--hsd-ui-fontSizes-md);
--height: var(--hsd-ui-spacing-8);
--borderRadius: var(--hsd-ui-radii-base);
--paddingInline: var(--hsd-ui-spacing-sm);
--borderWidth: 1px;
--baseColor: #d1d5db;
--activeColor: #1976d2;
--baseColor: var(--hsd-ui-color-gray-300);
--activeColor: var(--hsd-ui-color-blue-500);
}
.hsd-input-dropdown-size-md {
--baseFont: 16px;
--height: 40px;
--borderRadius: 8px;
--paddingInline: 12px;
--borderWidth: 1.3px;
--baseColor: #d1d5db;
--activeColor: #1976d2;
--baseFont: var(--hsd-ui-fontSizes-md);
--height: var(--hsd-ui-spacing-10);
--borderRadius: var(--hsd-ui-radii-lg);
--paddingInline: var(--hsd-ui-spacing-3);
--borderWidth: 1px;
--baseColor: var(--hsd-ui-color-gray-300);
--activeColor: var(--hsd-ui-color-blue-500);
}
.hsd-input-dropdown-size-lg {
--baseFont: 20px;
--height: 48px;
--borderRadius: 8px;
--paddingInline: 12px;
--borderWidth: 1.3px;
--baseColor: #d1d5db;
--activeColor: #1976d2;
--baseFont: var(--hsd-ui-fontSizes-xl);
--height: var(--hsd-ui-spacing-12);
--borderRadius: var(--hsd-ui-radii-lg);
--paddingInline: var(--hsd-ui-spacing-3);
--borderWidth: 1px;
--baseColor: var(--hsd-ui-color-gray-300);
--activeColor: var(--hsd-ui-color-blue-500);
}

@@ -86,3 +232,3 @@

.hsd-input-dropdown-container.active {
border-color: #64b5f6;
border-color: var(--hsd-ui-color-blue-500);
box-shadow: 0px 0px 0px var(--Spacing-2, 2px) rgba(100, 181, 246, 0.2);

@@ -182,2 +328,2 @@ background-color: #fffeff;

}
`;function Le(d){const[m,_]=b.useState(d),y=b.useRef(null),C=O=>{y.current&&!y.current.contains(O.target)&&_(!1)};return b.useEffect(()=>(document.addEventListener("click",C,!0),()=>{document.removeEventListener("click",C,!0)}),[]),{ref:y,isComponentVisible:m,setIsComponentVisible:_}}const ce="hudoro-input-dropdown-styles";(d=>{if(!document.getElementById(ce)){const m=document.createElement("style");m.id=ce,m.textContent=d,document.head.appendChild(m)}})(Ve);const Ye=({dropdownLists:d,onChange:m,defaultValue:_,size:y="md",multiSelect:C,searchAble:O,iconLeft:P,placeholder:j,onSearch:v})=>{const[D,g]=b.useState(""),[l,w]=b.useState(),{isComponentVisible:W,ref:z,setIsComponentVisible:J}=Le(!1),Q=d==null?void 0:d.filter(s=>s.label.toLowerCase().includes(D.toLowerCase())),F=()=>{J(s=>!s),g("")},h=(s,E)=>{if(!C)w([{label:s,value:E}]),m([{label:s,value:E}]),J(!1);else if(l==null?void 0:l.find(T=>T.value===E)){const T=[...l?l.filter(q=>q.value!==E):[]];w(T),m(T)}else{const T=[...l||[],{label:s,value:E}];w(T),m(T)}};return b.useEffect(()=>{_&&w(_)},[_]),b.useEffect(()=>{if(l)for(let s of l)d.find(N=>N.value===s.value)||w([])},[d]),console.log("value",l),c.jsxs("div",{className:`hsd-input-dropdown-container hsd-input-dropdown-size-${y} ${W?"active":""}`,ref:z,onClick:F,children:[c.jsxs("div",{className:"hsd-input-dropdown-preview-container",children:[P?c.jsx(c.Fragment,{children:b.cloneElement(P,{width:de(y),color:"#939E99"})}):null,c.jsx("div",{className:"hsd-input-dropdown-container-preview-item",children:l!=null&&l.length?l==null?void 0:l.map((s,E)=>C?c.jsx("p",{style:{minWidth:"max-content"},className:"hsd-input-dropdown-preview-item",children:s==null?void 0:s.label},E):c.jsx("p",{style:{minWidth:"max-content"},children:s==null?void 0:s.label},E)):c.jsx("p",{className:"hsd-input-dropdown-placeholder",children:j||"Search"})}),c.jsx(Ue,{strokeWidth:2,width:de(y)})]}),W?c.jsxs("div",{className:"hsd-input-dropdown-lists-container",onClick:s=>s.stopPropagation(),children:[O?c.jsxs("div",{className:"hsd-input-dropdown-container-dropdown-search",children:[c.jsx("div",{style:{display:"flex"},children:c.jsx(Me,{strokeWidth:2,width:20})}),c.jsx("input",{onChange:s=>{g(s.target.value),v&&v(s.target.value)}})]}):null,c.jsx("div",{className:"hsd-input-dropdwon-item-container",children:Q.map((s,E)=>c.jsxs("div",{className:`hsd-input-dropdwon-item ${l!=null&&l.find(N=>N.value===s.value)?"active":""}`,onClick:()=>h(s.label,s.value),children:[s.icon?c.jsx("div",{children:b.cloneElement(s.icon,{width:16})}):null,c.jsxs("div",{children:[" ",c.jsx("p",{children:s.label})]})]},E))})]}):null]})},Me=({...d})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",...d,viewBox:"0 0 20 20",fill:"none",children:[c.jsx("circle",{cx:"9.80547",cy:"9.8055",r:"7.49047",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M15.0153 15.4043L17.9519 18.3333",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ue=({...d})=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...d,viewBox:"0 0 24 24",fill:"none",color:"#1976D2",children:c.jsx("path",{d:"M4 9L12 17L20 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),de=d=>{if(d==="sm")return 16;if(d==="md")return 20;if(d==="lg")return 20};I.Dropdown=Ye,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
`;function Le(d){const[b,_]=m.useState(d),y=m.useRef(null),C=O=>{y.current&&!y.current.contains(O.target)&&_(!1)};return m.useEffect(()=>(document.addEventListener("click",C,!0),()=>{document.removeEventListener("click",C,!0)}),[]),{ref:y,isComponentVisible:b,setIsComponentVisible:_}}const ce="hudoro-input-dropdown-styles";(d=>{if(!document.getElementById(ce)){const b=document.createElement("style");b.id=ce,b.textContent=d,document.head.appendChild(b)}})(Ve);const ze=({dropdownLists:d,onChange:b,defaultValue:_,size:y="md",multiSelect:C,searchAble:O,iconLeft:P,placeholder:S,onSearch:h})=>{const[D,g]=m.useState(""),[l,w]=m.useState(),{isComponentVisible:W,ref:B,setIsComponentVisible:J}=Le(!1),Q=d==null?void 0:d.filter(s=>s.label.toLowerCase().includes(D.toLowerCase())),F=()=>{J(s=>!s),g("")},v=(s,E)=>{if(!C)w([{label:s,value:E}]),b([{label:s,value:E}]),J(!1);else if(l==null?void 0:l.find(j=>j.value===E)){const j=[...l?l.filter(q=>q.value!==E):[]];w(j),b(j)}else{const j=[...l||[],{label:s,value:E}];w(j),b(j)}};return m.useEffect(()=>{_&&w(_)},[_]),m.useEffect(()=>{if(l)for(let s of l)d.find(N=>N.value===s.value)||w([])},[d]),console.log("value",l),c.jsxs("div",{className:`hsd-input-dropdown-container hsd-input-dropdown-size-${y} ${W?"active":""}`,ref:B,onClick:F,children:[c.jsxs("div",{className:"hsd-input-dropdown-preview-container",children:[P?c.jsx(c.Fragment,{children:m.cloneElement(P,{width:de(y),color:"#939E99"})}):null,c.jsx("div",{className:"hsd-input-dropdown-container-preview-item",children:l!=null&&l.length?l==null?void 0:l.map((s,E)=>C?c.jsx("p",{style:{minWidth:"max-content"},className:"hsd-input-dropdown-preview-item",children:s==null?void 0:s.label},E):c.jsx("p",{style:{minWidth:"max-content"},children:s==null?void 0:s.label},E)):c.jsx("p",{className:"hsd-input-dropdown-placeholder",children:S||"Search"})}),c.jsx(Me,{strokeWidth:2,width:de(y)})]}),W?c.jsxs("div",{className:"hsd-input-dropdown-lists-container",onClick:s=>s.stopPropagation(),children:[O?c.jsxs("div",{className:"hsd-input-dropdown-container-dropdown-search",children:[c.jsx("div",{style:{display:"flex"},children:c.jsx(Ye,{strokeWidth:2,width:20})}),c.jsx("input",{onChange:s=>{g(s.target.value),h&&h(s.target.value)}})]}):null,c.jsx("div",{className:"hsd-input-dropdwon-item-container",children:Q.map((s,E)=>c.jsxs("div",{className:`hsd-input-dropdwon-item ${l!=null&&l.find(N=>N.value===s.value)?"active":""}`,onClick:()=>v(s.label,s.value),children:[s.icon?c.jsx("div",{children:m.cloneElement(s.icon,{width:16})}):null,c.jsxs("div",{children:[" ",c.jsx("p",{children:s.label})]})]},E))})]}):null]})},Ye=({...d})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",...d,viewBox:"0 0 20 20",fill:"none",children:[c.jsx("circle",{cx:"9.80547",cy:"9.8055",r:"7.49047",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M15.0153 15.4043L17.9519 18.3333",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),Me=({...d})=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...d,viewBox:"0 0 24 24",fill:"none",color:"#1976D2",children:c.jsx("path",{d:"M4 9L12 17L20 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),de=d=>{if(d==="sm")return 16;if(d==="md")return 20;if(d==="lg")return 20};I.Dropdown=ze,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
{
"name": "@hudoro/dropdown",
"version": "0.0.2-beta.5",
"version": "0.0.2-beta.6",
"description": "dropdown component for Hudoro UI",

@@ -5,0 +5,0 @@ "author": "Prawito Hudoro",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc