@hudoro/accordion
Advanced tools
Comparing version 0.0.1-beta.12 to 0.0.1-beta.13
@@ -1,8 +0,8 @@ | ||
import Or, { createContext as de, useRef as ve, useContext as pe } from "react"; | ||
var Q = { exports: {} }, Y = {}; | ||
import Ce, { createContext as ke, useRef as Re, useContext as Se } from "react"; | ||
var F = { exports: {} }, A = {}; | ||
/** | ||
* @license React | ||
* react-jsx-runtime.production.min.js | ||
* react-jsx-runtime.production.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
@@ -12,15 +12,23 @@ * This source code is licensed under the MIT license found in the | ||
*/ | ||
var Tr; | ||
function he() { | ||
if (Tr) return Y; | ||
Tr = 1; | ||
var y = Or, v = Symbol.for("react.element"), c = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, s = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function T(_, d, x) { | ||
var p, m = {}, w = null, O = null; | ||
x !== void 0 && (w = "" + x), d.key !== void 0 && (w = "" + d.key), d.ref !== void 0 && (O = d.ref); | ||
for (p in d) R.call(d, p) && !S.hasOwnProperty(p) && (m[p] = d[p]); | ||
if (_ && _.defaultProps) for (p in d = _.defaultProps, d) m[p] === void 0 && (m[p] = d[p]); | ||
return { $$typeof: v, type: _, key: w, ref: O, props: m, _owner: s.current }; | ||
var ge; | ||
function Ae() { | ||
if (ge) return A; | ||
ge = 1; | ||
var u = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment"); | ||
function c(b, a, f) { | ||
var v = null; | ||
if (f !== void 0 && (v = "" + f), a.key !== void 0 && (v = "" + a.key), "key" in a) { | ||
f = {}; | ||
for (var E in a) | ||
E !== "key" && (f[E] = a[E]); | ||
} else f = a; | ||
return a = f.ref, { | ||
$$typeof: u, | ||
type: b, | ||
key: v, | ||
ref: a !== void 0 ? a : null, | ||
props: f | ||
}; | ||
} | ||
return Y.Fragment = c, Y.jsx = T, Y.jsxs = T, Y; | ||
return A.Fragment = s, A.jsx = c, A.jsxs = c, A; | ||
} | ||
@@ -32,3 +40,3 @@ var N = {}; | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
@@ -38,237 +46,207 @@ * This source code is licensed under the MIT license found in the | ||
*/ | ||
var Cr; | ||
function ge() { | ||
return Cr || (Cr = 1, process.env.NODE_ENV !== "production" && function() { | ||
var y = Or, v = Symbol.for("react.element"), c = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), L = Symbol.iterator, I = "@@iterator"; | ||
function jr(r) { | ||
if (r === null || typeof r != "object") | ||
return null; | ||
var e = L && r[L] || r[I]; | ||
return typeof e == "function" ? e : null; | ||
} | ||
var A = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function h(r) { | ||
{ | ||
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), t = 1; t < e; t++) | ||
n[t - 1] = arguments[t]; | ||
kr("error", r, n); | ||
} | ||
} | ||
function kr(r, e, n) { | ||
{ | ||
var t = A.ReactDebugCurrentFrame, i = t.getStackAddendum(); | ||
i !== "" && (e += "%s", n = n.concat([i])); | ||
var u = n.map(function(o) { | ||
return String(o); | ||
}); | ||
u.unshift("Warning: " + e), Function.prototype.apply.call(console[r], console, u); | ||
} | ||
} | ||
var Ar = !1, Dr = !1, Fr = !1, Lr = !1, Ir = !1, rr; | ||
rr = Symbol.for("react.module.reference"); | ||
function $r(r) { | ||
return !!(typeof r == "string" || typeof r == "function" || r === R || r === S || Ir || r === s || r === x || r === p || Lr || r === O || Ar || Dr || Fr || typeof r == "object" && r !== null && (r.$$typeof === w || r.$$typeof === m || r.$$typeof === T || r.$$typeof === _ || r.$$typeof === d || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
// we don't know which Flight build this will end up being used | ||
// with. | ||
r.$$typeof === rr || r.getModuleId !== void 0)); | ||
} | ||
function Wr(r, e, n) { | ||
var t = r.displayName; | ||
if (t) | ||
return t; | ||
var i = e.displayName || e.name || ""; | ||
return i !== "" ? n + "(" + i + ")" : n; | ||
} | ||
function er(r) { | ||
return r.displayName || "Context"; | ||
} | ||
function C(r) { | ||
if (r == null) | ||
return null; | ||
if (typeof r.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function") | ||
return r.displayName || r.name || null; | ||
if (typeof r == "string") | ||
return r; | ||
switch (r) { | ||
case R: | ||
var he; | ||
function Ne() { | ||
return he || (he = 1, process.env.NODE_ENV !== "production" && function() { | ||
function u(e) { | ||
if (e == null) return null; | ||
if (typeof e == "function") | ||
return e.$$typeof === _e ? null : e.displayName || e.name || null; | ||
if (typeof e == "string") return e; | ||
switch (e) { | ||
case q: | ||
return "Fragment"; | ||
case c: | ||
case pe: | ||
return "Portal"; | ||
case S: | ||
case K: | ||
return "Profiler"; | ||
case s: | ||
case Q: | ||
return "StrictMode"; | ||
case x: | ||
case z: | ||
return "Suspense"; | ||
case p: | ||
case B: | ||
return "SuspenseList"; | ||
} | ||
if (typeof r == "object") | ||
switch (r.$$typeof) { | ||
case _: | ||
var e = r; | ||
return er(e) + ".Consumer"; | ||
case T: | ||
var n = r; | ||
return er(n._context) + ".Provider"; | ||
case d: | ||
return Wr(r, r.render, "ForwardRef"); | ||
case m: | ||
var t = r.displayName || null; | ||
return t !== null ? t : C(r.type) || "Memo"; | ||
case w: { | ||
var i = r, u = i._payload, o = i._init; | ||
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 ee: | ||
return (e.displayName || "Context") + ".Provider"; | ||
case D: | ||
return (e._context.displayName || "Context") + ".Consumer"; | ||
case U: | ||
var r = e.render; | ||
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e; | ||
case V: | ||
return r = e.displayName || null, r !== null ? r : u(e.type) || "Memo"; | ||
case G: | ||
r = e._payload, e = e._init; | ||
try { | ||
return C(o(u)); | ||
return u(e(r)); | ||
} catch { | ||
return null; | ||
} | ||
} | ||
} | ||
return null; | ||
} | ||
var P = Object.assign, $ = 0, nr, tr, ar, or, ir, ur, sr; | ||
function cr() { | ||
function s(e) { | ||
return "" + e; | ||
} | ||
cr.__reactDisabledLog = !0; | ||
function Yr() { | ||
{ | ||
if ($ === 0) { | ||
nr = console.log, tr = console.info, ar = console.warn, or = console.error, ir = console.group, ur = console.groupCollapsed, sr = console.groupEnd; | ||
var r = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: cr, | ||
writable: !0 | ||
}; | ||
Object.defineProperties(console, { | ||
info: r, | ||
log: r, | ||
warn: r, | ||
error: r, | ||
group: r, | ||
groupCollapsed: r, | ||
groupEnd: r | ||
}); | ||
} | ||
$++; | ||
function c(e) { | ||
try { | ||
s(e); | ||
var r = !1; | ||
} catch { | ||
r = !0; | ||
} | ||
if (r) { | ||
r = console; | ||
var o = r.error, t = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
return o.call( | ||
r, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
t | ||
), s(e); | ||
} | ||
} | ||
function Nr() { | ||
{ | ||
if ($--, $ === 0) { | ||
var r = { | ||
configurable: !0, | ||
enumerable: !0, | ||
writable: !0 | ||
}; | ||
Object.defineProperties(console, { | ||
log: P({}, r, { | ||
value: nr | ||
}), | ||
info: P({}, r, { | ||
value: tr | ||
}), | ||
warn: P({}, r, { | ||
value: ar | ||
}), | ||
error: P({}, r, { | ||
value: or | ||
}), | ||
group: P({}, r, { | ||
value: ir | ||
}), | ||
groupCollapsed: P({}, r, { | ||
value: ur | ||
}), | ||
groupEnd: P({}, r, { | ||
value: sr | ||
}) | ||
}); | ||
} | ||
$ < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
function b() { | ||
} | ||
function a() { | ||
if (R === 0) { | ||
ne = console.log, te = console.info, ae = console.warn, ce = console.error, ie = console.group, ue = console.groupCollapsed, se = console.groupEnd; | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: b, | ||
writable: !0 | ||
}; | ||
Object.defineProperties(console, { | ||
info: e, | ||
log: e, | ||
warn: e, | ||
error: e, | ||
group: e, | ||
groupCollapsed: e, | ||
groupEnd: e | ||
}); | ||
} | ||
R++; | ||
} | ||
var B = A.ReactCurrentDispatcher, J; | ||
function M(r, e, n) { | ||
{ | ||
if (J === void 0) | ||
try { | ||
throw Error(); | ||
} catch (i) { | ||
var t = i.stack.trim().match(/\n( *(at )?)/); | ||
J = t && t[1] || ""; | ||
} | ||
return ` | ||
` + J + r; | ||
function f() { | ||
if (R--, R === 0) { | ||
var e = { configurable: !0, enumerable: !0, writable: !0 }; | ||
Object.defineProperties(console, { | ||
log: x({}, e, { value: ne }), | ||
info: x({}, e, { value: te }), | ||
warn: x({}, e, { value: ae }), | ||
error: x({}, e, { value: ce }), | ||
group: x({}, e, { value: ie }), | ||
groupCollapsed: x({}, e, { value: ue }), | ||
groupEnd: x({}, e, { value: se }) | ||
}); | ||
} | ||
0 > R && console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
); | ||
} | ||
var K = !1, V; | ||
{ | ||
var Mr = typeof WeakMap == "function" ? WeakMap : Map; | ||
V = new Mr(); | ||
function v(e) { | ||
if (H === void 0) | ||
try { | ||
throw Error(); | ||
} catch (o) { | ||
var r = o.stack.trim().match(/\n( *(at )?)/); | ||
H = r && r[1] || "", le = -1 < o.stack.indexOf(` | ||
at`) ? " (<anonymous>)" : -1 < o.stack.indexOf("@") ? "@unknown:0:0" : ""; | ||
} | ||
return ` | ||
` + H + e + le; | ||
} | ||
function lr(r, e) { | ||
if (!r || K) | ||
return ""; | ||
{ | ||
var n = V.get(r); | ||
if (n !== void 0) | ||
return n; | ||
} | ||
var t; | ||
K = !0; | ||
var i = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var u; | ||
u = B.current, B.current = null, Yr(); | ||
function E(e, r) { | ||
if (!e || X) return ""; | ||
var o = I.get(e); | ||
if (o !== void 0) return o; | ||
X = !0, o = Error.prepareStackTrace, Error.prepareStackTrace = void 0; | ||
var t = null; | ||
t = w.H, w.H = null, a(); | ||
try { | ||
if (e) { | ||
var o = function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(o.prototype, "props", { | ||
set: function() { | ||
throw Error(); | ||
} | ||
}), typeof Reflect == "object" && Reflect.construct) { | ||
var l = { | ||
DetermineComponentFrameRoot: function() { | ||
try { | ||
Reflect.construct(o, []); | ||
} catch (b) { | ||
t = b; | ||
if (r) { | ||
var m = function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(m.prototype, "props", { | ||
set: function() { | ||
throw Error(); | ||
} | ||
}), typeof Reflect == "object" && Reflect.construct) { | ||
try { | ||
Reflect.construct(m, []); | ||
} catch (h) { | ||
var M = h; | ||
} | ||
Reflect.construct(e, [], m); | ||
} else { | ||
try { | ||
m.call(); | ||
} catch (h) { | ||
M = h; | ||
} | ||
e.call(m.prototype); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (h) { | ||
M = h; | ||
} | ||
(m = e()) && typeof m.catch == "function" && m.catch(function() { | ||
}); | ||
} | ||
} catch (h) { | ||
if (h && M && typeof h.stack == "string") | ||
return [h.stack, M.stack]; | ||
} | ||
Reflect.construct(r, [], o); | ||
} else { | ||
try { | ||
o.call(); | ||
} catch (b) { | ||
t = b; | ||
} | ||
r.call(o.prototype); | ||
return [null, null]; | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (b) { | ||
t = b; | ||
} | ||
r(); | ||
} | ||
} catch (b) { | ||
if (b && t && typeof b.stack == "string") { | ||
for (var a = b.stack.split(` | ||
`), g = t.stack.split(` | ||
`), l = a.length - 1, f = g.length - 1; l >= 1 && f >= 0 && a[l] !== g[f]; ) | ||
f--; | ||
for (; l >= 1 && f >= 0; l--, f--) | ||
if (a[l] !== g[f]) { | ||
if (l !== 1 || f !== 1) | ||
}; | ||
l.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; | ||
var i = Object.getOwnPropertyDescriptor( | ||
l.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
i && i.configurable && Object.defineProperty( | ||
l.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var n = l.DetermineComponentFrameRoot(), g = n[0], C = n[1]; | ||
if (g && C) { | ||
var d = g.split(` | ||
`), p = C.split(` | ||
`); | ||
for (n = i = 0; i < d.length && !d[i].includes( | ||
"DetermineComponentFrameRoot" | ||
); ) | ||
i++; | ||
for (; n < p.length && !p[n].includes( | ||
"DetermineComponentFrameRoot" | ||
); ) | ||
n++; | ||
if (i === d.length || n === p.length) | ||
for (i = d.length - 1, n = p.length - 1; 1 <= i && 0 <= n && d[i] !== p[n]; ) | ||
n--; | ||
for (; 1 <= i && 0 <= n; i--, n--) | ||
if (d[i] !== p[n]) { | ||
if (i !== 1 || n !== 1) | ||
do | ||
if (l--, f--, f < 0 || a[l] !== g[f]) { | ||
var E = ` | ||
` + a[l].replace(" at new ", " at "); | ||
return r.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", r.displayName)), typeof r == "function" && V.set(r, E), E; | ||
if (i--, n--, 0 > n || d[i] !== p[n]) { | ||
var S = ` | ||
` + d[i].replace( | ||
" at new ", | ||
" at " | ||
); | ||
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && I.set(e, S), S; | ||
} | ||
while (l >= 1 && f >= 0); | ||
while (1 <= i && 0 <= n); | ||
break; | ||
@@ -278,356 +256,190 @@ } | ||
} finally { | ||
K = !1, B.current = u, Nr(), Error.prepareStackTrace = i; | ||
X = !1, w.H = t, f(), Error.prepareStackTrace = o; | ||
} | ||
var F = r ? r.displayName || r.name : "", j = F ? M(F) : ""; | ||
return typeof r == "function" && V.set(r, j), j; | ||
return d = (d = e ? e.displayName || e.name : "") ? v(d) : "", typeof e == "function" && I.set(e, d), d; | ||
} | ||
function Vr(r, e, n) { | ||
return lr(r, !1); | ||
} | ||
function Ur(r) { | ||
var e = r.prototype; | ||
return !!(e && e.isReactComponent); | ||
} | ||
function U(r, e, n) { | ||
if (r == null) | ||
return ""; | ||
if (typeof r == "function") | ||
return lr(r, Ur(r)); | ||
if (typeof r == "string") | ||
return M(r); | ||
switch (r) { | ||
case x: | ||
return M("Suspense"); | ||
case p: | ||
return M("SuspenseList"); | ||
function _(e) { | ||
if (e == null) return ""; | ||
if (typeof e == "function") { | ||
var r = e.prototype; | ||
return E( | ||
e, | ||
!(!r || !r.isReactComponent) | ||
); | ||
} | ||
if (typeof r == "object") | ||
switch (r.$$typeof) { | ||
case d: | ||
return Vr(r.render); | ||
case m: | ||
return U(r.type, e, n); | ||
case w: { | ||
var t = r, i = t._payload, u = t._init; | ||
if (typeof e == "string") return v(e); | ||
switch (e) { | ||
case z: | ||
return v("Suspense"); | ||
case B: | ||
return v("SuspenseList"); | ||
} | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case U: | ||
return e = E(e.render, !1), e; | ||
case V: | ||
return _(e.type); | ||
case G: | ||
r = e._payload, e = e._init; | ||
try { | ||
return U(u(i), e, n); | ||
return _(e(r)); | ||
} catch { | ||
} | ||
} | ||
} | ||
return ""; | ||
} | ||
var W = Object.prototype.hasOwnProperty, fr = {}, dr = A.ReactDebugCurrentFrame; | ||
function q(r) { | ||
if (r) { | ||
var e = r._owner, n = U(r.type, r._source, e ? e.type : null); | ||
dr.setExtraStackFrame(n); | ||
} else | ||
dr.setExtraStackFrame(null); | ||
function T() { | ||
var e = w.A; | ||
return e === null ? null : e.getOwner(); | ||
} | ||
function qr(r, e, n, t, i) { | ||
{ | ||
var u = Function.call.bind(W); | ||
for (var o in r) | ||
if (u(r, o)) { | ||
var a = void 0; | ||
try { | ||
if (typeof r[o] != "function") { | ||
var g = Error((t || "React class") + ": " + n + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw g.name = "Invariant Violation", g; | ||
} | ||
a = r[o](e, o, t, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (l) { | ||
a = l; | ||
} | ||
a && !(a instanceof Error) && (q(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, o, typeof a), q(null)), a instanceof Error && !(a.message in fr) && (fr[a.message] = !0, q(i), h("Failed %s type: %s", n, a.message), q(null)); | ||
} | ||
function O(e) { | ||
if (oe.call(e, "key")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
if (r && r.isReactWarning) return !1; | ||
} | ||
return e.key !== void 0; | ||
} | ||
var Br = Array.isArray; | ||
function z(r) { | ||
return Br(r); | ||
} | ||
function Jr(r) { | ||
{ | ||
var e = typeof Symbol == "function" && Symbol.toStringTag, n = e && r[Symbol.toStringTag] || r.constructor.name || "Object"; | ||
return n; | ||
function P(e, r) { | ||
function o() { | ||
de || (de = !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)", | ||
r | ||
)); | ||
} | ||
o.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
get: o, | ||
configurable: !0 | ||
}); | ||
} | ||
function Kr(r) { | ||
try { | ||
return vr(r), !1; | ||
} catch { | ||
return !0; | ||
} | ||
function Y() { | ||
var e = u(this.type); | ||
return fe[e] || (fe[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 vr(r) { | ||
return "" + r; | ||
} | ||
function pr(r) { | ||
if (Kr(r)) | ||
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Jr(r)), vr(r); | ||
} | ||
var hr = A.ReactCurrentOwner, zr = { | ||
key: !0, | ||
ref: !0, | ||
__self: !0, | ||
__source: !0 | ||
}, gr, br; | ||
function Gr(r) { | ||
if (W.call(r, "ref")) { | ||
var e = Object.getOwnPropertyDescriptor(r, "ref").get; | ||
if (e && e.isReactWarning) | ||
return !1; | ||
} | ||
return r.ref !== void 0; | ||
} | ||
function Xr(r) { | ||
if (W.call(r, "key")) { | ||
var e = Object.getOwnPropertyDescriptor(r, "key").get; | ||
if (e && e.isReactWarning) | ||
return !1; | ||
} | ||
return r.key !== void 0; | ||
} | ||
function Hr(r, e) { | ||
typeof r.ref == "string" && hr.current; | ||
} | ||
function Zr(r, e) { | ||
{ | ||
var n = function() { | ||
gr || (gr = !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)", e)); | ||
}; | ||
n.isReactWarning = !0, Object.defineProperty(r, "key", { | ||
get: n, | ||
configurable: !0 | ||
}); | ||
} | ||
} | ||
function Qr(r, e) { | ||
{ | ||
var n = function() { | ||
br || (br = !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)", e)); | ||
}; | ||
n.isReactWarning = !0, Object.defineProperty(r, "ref", { | ||
get: n, | ||
configurable: !0 | ||
}); | ||
} | ||
} | ||
var re = function(r, e, n, t, i, u, o) { | ||
var a = { | ||
// This tag allows us to uniquely identify this as a React Element | ||
$$typeof: v, | ||
// Built-in properties that belong on the element | ||
type: r, | ||
key: e, | ||
ref: n, | ||
props: o, | ||
// Record the component responsible for creating this element. | ||
_owner: u | ||
}; | ||
return a._store = {}, Object.defineProperty(a._store, "validated", { | ||
function L(e, r, o, t, l, i) { | ||
return o = i.ref, e = { | ||
$$typeof: W, | ||
type: e, | ||
key: r, | ||
props: i, | ||
_owner: l | ||
}, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", { | ||
enumerable: !1, | ||
get: Y | ||
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !0, | ||
value: !1 | ||
}), Object.defineProperty(a, "_self", { | ||
value: 0 | ||
}), Object.defineProperty(e, "_debugInfo", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: t | ||
}), Object.defineProperty(a, "_source", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: i | ||
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a; | ||
}; | ||
function ee(r, e, n, t, i) { | ||
{ | ||
var u, o = {}, a = null, g = null; | ||
n !== void 0 && (pr(n), a = "" + n), Xr(e) && (pr(e.key), a = "" + e.key), Gr(e) && (g = e.ref, Hr(e, i)); | ||
for (u in e) | ||
W.call(e, u) && !zr.hasOwnProperty(u) && (o[u] = e[u]); | ||
if (r && r.defaultProps) { | ||
var l = r.defaultProps; | ||
for (u in l) | ||
o[u] === void 0 && (o[u] = l[u]); | ||
} | ||
if (a || g) { | ||
var f = typeof r == "function" ? r.displayName || r.name || "Unknown" : r; | ||
a && Zr(o, f), g && Qr(o, f); | ||
} | ||
return re(r, a, g, i, t, hr.current, o); | ||
} | ||
writable: !0, | ||
value: null | ||
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e; | ||
} | ||
var G = A.ReactCurrentOwner, yr = A.ReactDebugCurrentFrame; | ||
function D(r) { | ||
if (r) { | ||
var e = r._owner, n = U(r.type, r._source, e ? e.type : null); | ||
yr.setExtraStackFrame(n); | ||
function k(e, r, o, t, l, i) { | ||
if (typeof e == "string" || typeof e == "function" || e === q || e === K || e === Q || e === z || e === B || e === ye || typeof e == "object" && e !== null && (e.$$typeof === G || e.$$typeof === V || e.$$typeof === ee || e.$$typeof === D || e.$$typeof === U || e.$$typeof === Te || e.getModuleId !== void 0)) { | ||
var n = r.children; | ||
if (n !== void 0) | ||
if (t) | ||
if (J(n)) { | ||
for (t = 0; t < n.length; t++) | ||
j(n[t], e); | ||
Object.freeze && Object.freeze(n); | ||
} 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 j(n, e); | ||
} else | ||
yr.setExtraStackFrame(null); | ||
} | ||
var X; | ||
X = !1; | ||
function H(r) { | ||
return typeof r == "object" && r !== null && r.$$typeof === v; | ||
} | ||
function mr() { | ||
{ | ||
if (G.current) { | ||
var r = C(G.current.type); | ||
if (r) | ||
return ` | ||
Check the render method of \`` + r + "`."; | ||
} | ||
return ""; | ||
n = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (n += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? t = "null" : J(e) ? t = "array" : e !== void 0 && e.$$typeof === W ? (t = "<" + (u(e.type) || "Unknown") + " />", n = " Did you accidentally export a JSX literal instead of a component?") : t = typeof e, console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
t, | ||
n | ||
); | ||
if (oe.call(r, "key")) { | ||
n = u(e); | ||
var g = Object.keys(r).filter(function(d) { | ||
return d !== "key"; | ||
}); | ||
t = 0 < g.length ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}", ve[n + t] || (g = 0 < g.length ? "{" + g.join(": ..., ") + ": ...}" : "{}", console.error( | ||
`A props object containing a "key" prop is being spread into JSX: | ||
let props = %s; | ||
<%s {...props} /> | ||
React keys must be passed directly to JSX without using spread: | ||
let props = %s; | ||
<%s key={someKey} {...props} />`, | ||
t, | ||
n, | ||
g, | ||
n | ||
), ve[n + t] = !0); | ||
} | ||
if (n = null, o !== void 0 && (c(o), n = "" + o), O(r) && (c(r.key), n = "" + r.key), "key" in r) { | ||
o = {}; | ||
for (var C in r) | ||
C !== "key" && (o[C] = r[C]); | ||
} else o = r; | ||
return n && P( | ||
o, | ||
typeof e == "function" ? e.displayName || e.name || "Unknown" : e | ||
), L(e, n, i, l, T(), o); | ||
} | ||
function ne(r) { | ||
return ""; | ||
} | ||
var Er = {}; | ||
function te(r) { | ||
{ | ||
var e = mr(); | ||
if (!e) { | ||
var n = typeof r == "string" ? r : r.displayName || r.name; | ||
n && (e = ` | ||
Check the top-level render call using <` + n + ">."); | ||
} | ||
return e; | ||
} | ||
} | ||
function Rr(r, e) { | ||
{ | ||
if (!r._store || r._store.validated || r.key != null) | ||
return; | ||
r._store.validated = !0; | ||
var n = te(e); | ||
if (Er[n]) | ||
return; | ||
Er[n] = !0; | ||
var t = ""; | ||
r && r._owner && r._owner !== G.current && (t = " It was passed a child from " + C(r._owner.type) + "."), D(r), 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), D(null); | ||
} | ||
} | ||
function _r(r, e) { | ||
{ | ||
if (typeof r != "object") | ||
return; | ||
if (z(r)) | ||
for (var n = 0; n < r.length; n++) { | ||
var t = r[n]; | ||
H(t) && Rr(t, e); | ||
function j(e, r) { | ||
if (typeof e == "object" && e && e.$$typeof !== je) { | ||
if (J(e)) | ||
for (var o = 0; o < e.length; o++) { | ||
var t = e[o]; | ||
$(t) && Z(t, r); | ||
} | ||
else if (H(r)) | ||
r._store && (r._store.validated = !0); | ||
else if (r) { | ||
var i = jr(r); | ||
if (typeof i == "function" && i !== r.entries) | ||
for (var u = i.call(r), o; !(o = u.next()).done; ) | ||
H(o.value) && Rr(o.value, e); | ||
} | ||
else if ($(e)) | ||
e._store && (e._store.validated = 1); | ||
else if (e === null || typeof e != "object" ? o = null : (o = re && e[re] || e["@@iterator"], o = typeof o == "function" ? o : null), typeof o == "function" && o !== e.entries && (o = o.call(e), o !== e)) | ||
for (; !(e = o.next()).done; ) | ||
$(e.value) && Z(e.value, r); | ||
} | ||
} | ||
function ae(r) { | ||
{ | ||
var e = r.type; | ||
if (e == null || typeof e == "string") | ||
return; | ||
var n; | ||
if (typeof e == "function") | ||
n = e.propTypes; | ||
else if (typeof e == "object" && (e.$$typeof === d || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
e.$$typeof === m)) | ||
n = e.propTypes; | ||
else | ||
return; | ||
if (n) { | ||
var t = C(e); | ||
qr(n, r.props, "prop", t, r); | ||
} else if (e.PropTypes !== void 0 && !X) { | ||
X = !0; | ||
var i = C(e); | ||
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown"); | ||
} | ||
typeof e.getDefaultProps == "function" && !e.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
} | ||
function $(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === W; | ||
} | ||
function oe(r) { | ||
{ | ||
for (var e = Object.keys(r.props), n = 0; n < e.length; n++) { | ||
var t = e[n]; | ||
if (t !== "children" && t !== "key") { | ||
D(r), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), D(null); | ||
break; | ||
} | ||
} | ||
r.ref !== null && (D(r), h("Invalid attribute `ref` supplied to `React.Fragment`."), D(null)); | ||
function Z(e, r) { | ||
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = we(r), !Ee[r])) { | ||
Ee[r] = !0; | ||
var o = ""; | ||
e && e._owner != null && e._owner !== T() && (o = null, typeof e._owner.tag == "number" ? o = u(e._owner.type) : typeof e._owner.name == "string" && (o = e._owner.name), o = " It was passed a child from " + o + "."); | ||
var t = w.getCurrentStack; | ||
w.getCurrentStack = function() { | ||
var l = _(e.type); | ||
return t && (l += t() || ""), l; | ||
}, console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
r, | ||
o | ||
), w.getCurrentStack = t; | ||
} | ||
} | ||
var wr = {}; | ||
function xr(r, e, n, t, i, u) { | ||
{ | ||
var o = $r(r); | ||
if (!o) { | ||
var a = ""; | ||
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (a += " 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 g = ne(); | ||
g ? a += g : a += mr(); | ||
var l; | ||
r === null ? l = "null" : z(r) ? l = "array" : r !== void 0 && r.$$typeof === v ? (l = "<" + (C(r.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof r, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a); | ||
} | ||
var f = ee(r, e, n, i, u); | ||
if (f == null) | ||
return f; | ||
if (o) { | ||
var E = e.children; | ||
if (E !== void 0) | ||
if (t) | ||
if (z(E)) { | ||
for (var F = 0; F < E.length; F++) | ||
_r(E[F], r); | ||
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."); | ||
else | ||
_r(E, r); | ||
} | ||
if (W.call(e, "key")) { | ||
var j = C(r), b = Object.keys(e).filter(function(fe) { | ||
return fe !== "key"; | ||
}), Z = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}"; | ||
if (!wr[j + Z]) { | ||
var le = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}"; | ||
h(`A props object containing a "key" prop is being spread into JSX: | ||
let props = %s; | ||
<%s {...props} /> | ||
React keys must be passed directly to JSX without using spread: | ||
let props = %s; | ||
<%s key={someKey} {...props} />`, Z, j, le, j), wr[j + Z] = !0; | ||
} | ||
} | ||
return r === R ? oe(f) : ae(f), f; | ||
} | ||
function we(e) { | ||
var r = "", o = T(); | ||
return o && (o = u(o.type)) && (r = ` | ||
Check the render method of \`` + o + "`."), r || (e = u(e)) && (r = ` | ||
Check the top-level render call using <` + e + ">."), r; | ||
} | ||
function ie(r, e, n) { | ||
return xr(r, e, n, !0); | ||
} | ||
function ue(r, e, n) { | ||
return xr(r, e, n, !1); | ||
} | ||
var se = ue, ce = ie; | ||
N.Fragment = R, N.jsx = se, N.jsxs = ce; | ||
var xe = Ce, W = Symbol.for("react.transitional.element"), pe = Symbol.for("react.portal"), q = Symbol.for("react.fragment"), Q = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), V = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), ye = Symbol.for("react.offscreen"), re = Symbol.iterator, _e = Symbol.for("react.client.reference"), w = xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, oe = Object.prototype.hasOwnProperty, x = Object.assign, Te = Symbol.for("react.client.reference"), J = Array.isArray, R = 0, ne, te, ae, ce, ie, ue, se; | ||
b.__reactDisabledLog = !0; | ||
var H, le, X = !1, I = new (typeof WeakMap == "function" ? WeakMap : Map)(), je = Symbol.for("react.client.reference"), de, fe = {}, ve = {}, Ee = {}; | ||
N.Fragment = q, N.jsx = function(e, r, o, t, l) { | ||
return k(e, r, o, !1, t, l); | ||
}, N.jsxs = function(e, r, o, t, l) { | ||
return k(e, r, o, !0, t, l); | ||
}; | ||
}()), N; | ||
} | ||
process.env.NODE_ENV === "production" ? Q.exports = he() : Q.exports = ge(); | ||
var k = Q.exports; | ||
const be = `.hudoro-accordion { | ||
process.env.NODE_ENV === "production" ? F.exports = Ae() : F.exports = Ne(); | ||
var y = F.exports; | ||
const Oe = `.hudoro-accordion { | ||
border-radius: var(--hsd-ui-radii-md, 6px); | ||
@@ -690,35 +502,35 @@ border: var(--hsd-ui-border, 1px) solid var(--hsd-ui-color-gray-200, #e5e7eb); | ||
} | ||
`, Sr = "hudoro-accordion-styles", ye = (y) => { | ||
if (!document.getElementById(Sr)) { | ||
const v = document.createElement("style"); | ||
v.id = Sr, v.textContent = y, document.head.appendChild(v); | ||
`, be = "hudoro-accordion-styles", Pe = (u) => { | ||
if (!document.getElementById(be)) { | ||
const s = document.createElement("style"); | ||
s.id = be, s.textContent = u, document.head.appendChild(s); | ||
} | ||
}; | ||
ye(be); | ||
const Pr = de({ allowMultiple: !1 }), Ee = ({ children: y, allowMultiple: v = !1 }) => { | ||
const c = ve([]), R = (s) => { | ||
var T, _, d, x, p, m, w, O, L; | ||
const S = (T = c.current) == null ? void 0 : T.find( | ||
(I) => I === s | ||
Pe(Oe); | ||
const me = ke({ allowMultiple: !1 }), Le = ({ children: u, allowMultiple: s = !1 }) => { | ||
const c = Re([]), b = (a) => { | ||
var v, E, _, T, O, P, Y, L, k; | ||
const f = (v = c.current) == null ? void 0 : v.find( | ||
(j) => j === a | ||
); | ||
v ? S ? S && ((x = s.querySelector(".hudoro-accordion-arrow")) == null || x.classList.remove("hudoro-accordion-arrow-active"), s.classList.remove("active"), c.current = c.current.filter( | ||
(I) => I !== s | ||
)) : (s.classList.add("active"), (_ = s.querySelector(".hudoro-accordion-arrow")) == null || _.classList.add("hudoro-accordion-arrow-active"), (d = c.current) == null || d.push(s)) : (p = c.current) != null && p.length ? c.current[0] === s ? ((m = c.current[0].querySelector(".hudoro-accordion-arrow")) == null || m.classList.remove("hudoro-accordion-arrow-active"), c.current[0].classList.remove("active"), c.current = []) : ((w = c.current[0].querySelector(".hudoro-accordion-arrow")) == null || w.classList.remove("hudoro-accordion-arrow-active"), c.current[0].classList.remove("active"), c.current = [], s.classList.add("active"), c.current[0] = s, (O = c.current[0].querySelector(".hudoro-accordion-arrow")) == null || O.classList.add("hudoro-accordion-arrow-active")) : (s.classList.add("active"), (L = s.querySelector(".hudoro-accordion-arrow")) == null || L.classList.add("hudoro-accordion-arrow-active"), c.current.push(s)); | ||
s ? f ? f && ((T = a.querySelector(".hudoro-accordion-arrow")) == null || T.classList.remove("hudoro-accordion-arrow-active"), a.classList.remove("active"), c.current = c.current.filter( | ||
(j) => j !== a | ||
)) : (a.classList.add("active"), (E = a.querySelector(".hudoro-accordion-arrow")) == null || E.classList.add("hudoro-accordion-arrow-active"), (_ = c.current) == null || _.push(a)) : (O = c.current) != null && O.length ? c.current[0] === a ? ((P = c.current[0].querySelector(".hudoro-accordion-arrow")) == null || P.classList.remove("hudoro-accordion-arrow-active"), c.current[0].classList.remove("active"), c.current = []) : ((Y = c.current[0].querySelector(".hudoro-accordion-arrow")) == null || Y.classList.remove("hudoro-accordion-arrow-active"), c.current[0].classList.remove("active"), c.current = [], a.classList.add("active"), c.current[0] = a, (L = c.current[0].querySelector(".hudoro-accordion-arrow")) == null || L.classList.add("hudoro-accordion-arrow-active")) : (a.classList.add("active"), (k = a.querySelector(".hudoro-accordion-arrow")) == null || k.classList.add("hudoro-accordion-arrow-active"), c.current.push(a)); | ||
}; | ||
return /* @__PURE__ */ k.jsx(Pr.Provider, { value: { allowMultiple: v, handlePushRef: R }, children: /* @__PURE__ */ k.jsx("div", { className: "hudoro-accordion", children: y }) }); | ||
}, Re = ({ children: y }) => /* @__PURE__ */ k.jsx("div", { className: "hudoro-accordion-item", children: y }), _e = ({ | ||
children: y, | ||
expand: v = !0 | ||
return /* @__PURE__ */ y.jsx(me.Provider, { value: { allowMultiple: s, handlePushRef: b }, children: /* @__PURE__ */ y.jsx("div", { className: "hudoro-accordion", children: u }) }); | ||
}, Me = ({ children: u }) => /* @__PURE__ */ y.jsx("div", { className: "hudoro-accordion-item", children: u }), $e = ({ | ||
children: u, | ||
expand: s = !0 | ||
}) => { | ||
const { handlePushRef: c } = pe(Pr), R = (s) => { | ||
s.currentTarget.parentElement && c && c(s.currentTarget.parentElement); | ||
const { handlePushRef: c } = Se(me), b = (a) => { | ||
a.currentTarget.parentElement && c && c(a.currentTarget.parentElement); | ||
}; | ||
return /* @__PURE__ */ k.jsxs( | ||
return /* @__PURE__ */ y.jsxs( | ||
"button", | ||
{ | ||
className: "hudoro-accordion-button", | ||
onClick: (s) => v ? R(s) : {}, | ||
onClick: (a) => s ? b(a) : {}, | ||
children: [ | ||
y, | ||
v ? /* @__PURE__ */ k.jsx( | ||
u, | ||
s ? /* @__PURE__ */ y.jsx( | ||
"svg", | ||
@@ -732,3 +544,3 @@ { | ||
className: "hudoro-accordion-arrow", | ||
children: /* @__PURE__ */ k.jsx( | ||
children: /* @__PURE__ */ y.jsx( | ||
"path", | ||
@@ -748,15 +560,15 @@ { | ||
); | ||
}, we = ({ children: y }) => /* @__PURE__ */ k.jsx( | ||
}, We = ({ children: u }) => /* @__PURE__ */ y.jsx( | ||
"div", | ||
{ | ||
className: "hudoro-accordion-panel", | ||
onClick: (v) => v.stopPropagation(), | ||
children: y | ||
onClick: (s) => s.stopPropagation(), | ||
children: u | ||
} | ||
); | ||
export { | ||
Ee as Accordion, | ||
_e as AccordionButton, | ||
Re as AccordionItem, | ||
we as AccordionPanel | ||
Le as Accordion, | ||
$e as AccordionButton, | ||
Me as AccordionItem, | ||
We as AccordionPanel | ||
}; |
@@ -1,26 +0,23 @@ | ||
(function(R,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(R=typeof globalThis<"u"?globalThis:R||self,x(R.Accordion={},R.React))})(this,function(R,x){"use strict";var K={exports:{}},W={};/** | ||
(function(h,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(h=typeof globalThis<"u"?globalThis:h||self,m(h.Accordion={},h.React))})(this,function(h,m){"use strict";var q={exports:{}},S={};/** | ||
* @license React | ||
* react-jsx-runtime.production.min.js | ||
* react-jsx-runtime.production.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/var ne;function ke(){if(ne)return W;ne=1;var b=x,v=Symbol.for("react.element"),s=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,c=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function C(w,d,S){var p,m={},T=null,k=null;S!==void 0&&(T=""+S),d.key!==void 0&&(T=""+d.key),d.ref!==void 0&&(k=d.ref);for(p in d)_.call(d,p)&&!j.hasOwnProperty(p)&&(m[p]=d[p]);if(w&&w.defaultProps)for(p in d=w.defaultProps,d)m[p]===void 0&&(m[p]=d[p]);return{$$typeof:v,type:w,key:T,ref:k,props:m,_owner:c.current}}return W.Fragment=s,W.jsx=C,W.jsxs=C,W}var Y={};/** | ||
*/var K;function xe(){if(K)return S;K=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(p,a,f){var v=null;if(f!==void 0&&(v=""+f),a.key!==void 0&&(v=""+a.key),"key"in a){f={};for(var E in a)E!=="key"&&(f[E]=a[E])}else f=a;return a=f.ref,{$$typeof:u,type:p,key:v,ref:a!==void 0?a:null,props:f}}return S.Fragment=s,S.jsx=c,S.jsxs=c,S}var A={};/** | ||
* @license React | ||
* react-jsx-runtime.development.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/var te;function Ae(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var b=x,v=Symbol.for("react.element"),s=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),w=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),M=Symbol.iterator,N="@@iterator";function Ye(e){if(e===null||typeof e!="object")return null;var r=M&&e[M]||e[N];return typeof r=="function"?r:null}var F=b.__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];Me("error",e,n)}}function Me(e,r,n){{var t=F.ReactDebugCurrentFrame,i=t.getStackAddendum();i!==""&&(r+="%s",n=n.concat([i]));var u=n.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ne=!1,Ve=!1,Ue=!1,$e=!1,Be=!1,ie;ie=Symbol.for("react.module.reference");function qe(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===j||Be||e===c||e===S||e===p||$e||e===k||Ne||Ve||Ue||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===m||e.$$typeof===C||e.$$typeof===w||e.$$typeof===d||e.$$typeof===ie||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 ue(e){return e.displayName||"Context"}function P(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 _:return"Fragment";case s:return"Portal";case j:return"Profiler";case c:return"StrictMode";case S:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var r=e;return ue(r)+".Consumer";case C:var n=e;return ue(n._context)+".Provider";case d:return Je(e,e.render,"ForwardRef");case m:var t=e.displayName||null;return t!==null?t:P(e.type)||"Memo";case T:{var i=e,u=i._payload,o=i._init;try{return P(o(u))}catch{return null}}}return null}var A=Object.assign,V=0,ce,se,le,fe,de,ve,pe;function he(){}he.__reactDisabledLog=!0;function Ke(){{if(V===0){ce=console.log,se=console.info,le=console.warn,fe=console.error,de=console.group,ve=console.groupCollapsed,pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function ze(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:ce}),info:A({},e,{value:se}),warn:A({},e,{value:le}),error:A({},e,{value:fe}),group:A({},e,{value:de}),groupCollapsed:A({},e,{value:ve}),groupEnd:A({},e,{value:pe})})}V<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=F.ReactCurrentDispatcher,G;function $(e,r,n){{if(G===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);G=t&&t[1]||""}return` | ||
`+G+e}}var X=!1,B;{var Ge=typeof WeakMap=="function"?WeakMap:Map;B=new Ge}function ge(e,r){if(!e||X)return"";{var n=B.get(e);if(n!==void 0)return n}var t;X=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=z.current,z.current=null,Ke();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(y){t=y}Reflect.construct(e,[],o)}else{try{o.call()}catch(y){t=y}e.call(o.prototype)}}else{try{throw Error()}catch(y){t=y}e()}}catch(y){if(y&&t&&typeof y.stack=="string"){for(var a=y.stack.split(` | ||
`),g=t.stack.split(` | ||
`),l=a.length-1,f=g.length-1;l>=1&&f>=0&&a[l]!==g[f];)f--;for(;l>=1&&f>=0;l--,f--)if(a[l]!==g[f]){if(l!==1||f!==1)do if(l--,f--,f<0||a[l]!==g[f]){var E=` | ||
`+a[l].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,E),E}while(l>=1&&f>=0);break}}}finally{X=!1,z.current=u,ze(),Error.prepareStackTrace=i}var I=e?e.displayName||e.name:"",D=I?$(I):"";return typeof e=="function"&&B.set(e,D),D}function Xe(e,r,n){return ge(e,!1)}function He(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function q(e,r,n){if(e==null)return"";if(typeof e=="function")return ge(e,He(e));if(typeof e=="string")return $(e);switch(e){case S:return $("Suspense");case p:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Xe(e.render);case m:return q(e.type,r,n);case T:{var t=e,i=t._payload,u=t._init;try{return q(u(i),r,n)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,ye={},be=F.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,n=q(e.type,e._source,r?r.type:null);be.setExtraStackFrame(n)}else be.setExtraStackFrame(null)}function Ze(e,r,n,t,i){{var u=Function.call.bind(U);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var g=Error((t||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}a=e[o](r,o,t,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(J(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,o,typeof a),J(null)),a instanceof Error&&!(a.message in ye)&&(ye[a.message]=!0,J(i),h("Failed %s type: %s",n,a.message),J(null))}}}var Qe=Array.isArray;function H(e){return Qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function rr(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function Ee(e){if(rr(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),me(e)}var Re=F.ReactCurrentOwner,nr={key:!0,ref:!0,__self:!0,__source:!0},_e,we;function tr(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ar(e){if(U.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){typeof e.ref=="string"&&Re.current}function ir(e,r){{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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function ur(e,r){{var n=function(){we||(we=!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 cr=function(e,r,n,t,i,u,o){var a={$$typeof:v,type:e,key:r,ref:n,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function sr(e,r,n,t,i){{var u,o={},a=null,g=null;n!==void 0&&(Ee(n),a=""+n),ar(r)&&(Ee(r.key),a=""+r.key),tr(r)&&(g=r.ref,or(r,i));for(u in r)U.call(r,u)&&!nr.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var l=e.defaultProps;for(u in l)o[u]===void 0&&(o[u]=l[u])}if(a||g){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(o,f),g&&ur(o,f)}return cr(e,a,g,i,t,Re.current,o)}}var Z=F.ReactCurrentOwner,Te=F.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,n=q(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(n)}else Te.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===v}function xe(){{if(Z.current){var e=P(Z.current.type);if(e)return` | ||
Check the render method of \``+e+"`."}return""}}function lr(e){return""}var Se={};function fr(e){{var r=xe();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=` | ||
Check the top-level render call using <`+n+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=fr(r);if(Se[n])return;Se[n]=!0;var t="";e&&e._owner&&e._owner!==Z.current&&(t=" It was passed a child from "+P(e._owner.type)+"."),L(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),L(null)}}function Pe(e,r){{if(typeof e!="object")return;if(H(e))for(var n=0;n<e.length;n++){var t=e[n];ee(t)&&Ce(t,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var i=Ye(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)ee(o.value)&&Ce(o.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===d||r.$$typeof===m))n=r.propTypes;else return;if(n){var t=P(r);Ze(n,e.props,"prop",t,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var i=P(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 vr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var t=r[n];if(t!=="children"&&t!=="key"){L(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",t),L(null);break}}e.ref!==null&&(L(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}var Oe={};function je(e,r,n,t,i,u){{var o=qe(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 g=lr();g?a+=g:a+=xe();var l;e===null?l="null":H(e)?l="array":e!==void 0&&e.$$typeof===v?(l="<"+(P(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=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",l,a)}var f=sr(e,r,n,i,u);if(f==null)return f;if(o){var E=r.children;if(E!==void 0)if(t)if(H(E)){for(var I=0;I<E.length;I++)Pe(E[I],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.");else Pe(E,e)}if(U.call(r,"key")){var D=P(e),y=Object.keys(r).filter(function(mr){return mr!=="key"}),re=y.length>0?"{key: someKey, "+y.join(": ..., ")+": ...}":"{key: someKey}";if(!Oe[D+re]){var br=y.length>0?"{"+y.join(": ..., ")+": ...}":"{}";h(`A props object containing a "key" prop is being spread into JSX: | ||
*/var D;function ye(){return D||(D=1,process.env.NODE_ENV!=="production"&&function(){function u(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case Ae:return"Portal";case te:return"Profiler";case ne:return"StrictMode";case G:return"Suspense";case J:return"SuspenseList"}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 ce:return(e.displayName||"Context")+".Provider";case ae:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return r=e.displayName||null,r!==null?r:u(e.type)||"Memo";case I:r=e._payload,e=e._init;try{return u(e(r))}catch{}}return null}function s(e){return""+e}function c(e){try{s(e);var r=!1}catch{r=!0}if(r){r=console;var o=r.error,t=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),s(e)}}function p(){}function a(){if(O===0){se=console.log,le=console.info,de=console.warn,fe=console.error,ve=console.group,he=console.groupCollapsed,Ee=console.groupEnd;var e={configurable:!0,enumerable:!0,value:p,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}O++}function f(){if(O--,O===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:se}),info:T({},e,{value:le}),warn:T({},e,{value:de}),error:T({},e,{value:fe}),group:T({},e,{value:ve}),groupCollapsed:T({},e,{value:he}),groupEnd:T({},e,{value:Ee})})}0>O&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function v(e){if(F===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);F=r&&r[1]||"",ge=-1<o.stack.indexOf(` | ||
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return` | ||
`+F+e+ge}function E(e,r){if(!e||Z)return"";var o=Q.get(e);if(o!==void 0)return o;Z=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var t=null;t=y.H,y.H=null,a();try{var l={DetermineComponentFrameRoot:function(){try{if(r){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(b){var U=b}Reflect.construct(e,[],w)}else{try{w.call()}catch(b){U=b}e.call(w.prototype)}}else{try{throw Error()}catch(b){U=b}(w=e())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(b){if(b&&U&&typeof b.stack=="string")return[b.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=l.DetermineComponentFrameRoot(),g=n[0],k=n[1];if(g&&k){var d=g.split(` | ||
`),j=k.split(` | ||
`);for(n=i=0;i<d.length&&!d[i].includes("DetermineComponentFrameRoot");)i++;for(;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;if(i===d.length||n===j.length)for(i=d.length-1,n=j.length-1;1<=i&&0<=n&&d[i]!==j[n];)n--;for(;1<=i&&0<=n;i--,n--)if(d[i]!==j[n]){if(i!==1||n!==1)do if(i--,n--,0>n||d[i]!==j[n]){var P=` | ||
`+d[i].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(1<=i&&0<=n);break}}}finally{Z=!1,y.H=t,f(),Error.prepareStackTrace=o}return d=(d=e?e.displayName||e.name:"")?v(d):"",typeof e=="function"&&Q.set(e,d),d}function _(e){if(e==null)return"";if(typeof e=="function"){var r=e.prototype;return E(e,!(!r||!r.isReactComponent))}if(typeof e=="string")return v(e);switch(e){case G:return v("Suspense");case J:return v("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case V:return e=E(e.render,!1),e;case H:return _(e.type);case I:r=e._payload,e=e._init;try{return _(e(r))}catch{}}return""}function C(){var e=y.A;return e===null?null:e.getOwner()}function Y(e){if(ue.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function M(e,r){function o(){be||(be=!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)",r))}o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}function L(){var e=u(this.type);return me[e]||(me[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 W(e,r,o,t,l,i){return o=i.ref,e={$$typeof:B,type:e,key:r,props:i,_owner:l},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:L}):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.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function N(e,r,o,t,l,i){if(typeof e=="string"||typeof e=="function"||e===$||e===te||e===ne||e===G||e===J||e===Ne||typeof e=="object"&&e!==null&&(e.$$typeof===I||e.$$typeof===H||e.$$typeof===ce||e.$$typeof===ae||e.$$typeof===V||e.$$typeof===Pe||e.getModuleId!==void 0)){var n=r.children;if(n!==void 0)if(t)if(X(n)){for(t=0;t<n.length;t++)R(n[t],e);Object.freeze&&Object.freeze(n)}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 R(n,e)}else n="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?t="null":X(e)?t="array":e!==void 0&&e.$$typeof===B?(t="<"+(u(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):t=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",t,n);if(ue.call(r,"key")){n=u(e);var g=Object.keys(r).filter(function(d){return d!=="key"});t=0<g.length?"{key: someKey, "+g.join(": ..., ")+": ...}":"{key: someKey}",pe[n+t]||(g=0<g.length?"{"+g.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX: | ||
let props = %s; | ||
@@ -30,3 +27,7 @@ <%s {...props} /> | ||
let props = %s; | ||
<%s key={someKey} {...props} />`,re,D,br,D),Oe[D+re]=!0}}return e===_?vr(f):dr(f),f}}function pr(e,r,n){return je(e,r,n,!0)}function hr(e,r,n){return je(e,r,n,!1)}var gr=hr,yr=pr;Y.Fragment=_,Y.jsx=gr,Y.jsxs=yr}()),Y}process.env.NODE_ENV==="production"?K.exports=ke():K.exports=Ae();var O=K.exports;const De=`.hudoro-accordion { | ||
<%s key={someKey} {...props} />`,t,n,g,n),pe[n+t]=!0)}if(n=null,o!==void 0&&(c(o),n=""+o),Y(r)&&(c(r.key),n=""+r.key),"key"in r){o={};for(var k in r)k!=="key"&&(o[k]=r[k])}else o=r;return n&&M(o,typeof e=="function"?e.displayName||e.name||"Unknown":e),W(e,n,i,l,C(),o)}function R(e,r){if(typeof e=="object"&&e&&e.$$typeof!==Ye){if(X(e))for(var o=0;o<e.length;o++){var t=e[o];z(t)&&oe(t,r)}else if(z(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?o=null:(o=ie&&e[ie]||e["@@iterator"],o=typeof o=="function"?o:null),typeof o=="function"&&o!==e.entries&&(o=o.call(e),o!==e))for(;!(e=o.next()).done;)z(e.value)&&oe(e.value,r)}}function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===B}function oe(e,r){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,r=ke(r),!we[r])){we[r]=!0;var o="";e&&e._owner!=null&&e._owner!==C()&&(o=null,typeof e._owner.tag=="number"?o=u(e._owner.type):typeof e._owner.name=="string"&&(o=e._owner.name),o=" It was passed a child from "+o+".");var t=y.getCurrentStack;y.getCurrentStack=function(){var l=_(e.type);return t&&(l+=t()||""),l},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,o),y.getCurrentStack=t}}function ke(e){var r="",o=C();return o&&(o=u(o.type))&&(r=` | ||
Check the render method of \``+o+"`."),r||(e=u(e))&&(r=` | ||
Check the top-level render call using <`+e+">."),r}var Se=m,B=Symbol.for("react.transitional.element"),Ae=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),ce=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),ie=Symbol.iterator,Oe=Symbol.for("react.client.reference"),y=Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=Object.prototype.hasOwnProperty,T=Object.assign,Pe=Symbol.for("react.client.reference"),X=Array.isArray,O=0,se,le,de,fe,ve,he,Ee;p.__reactDisabledLog=!0;var F,ge,Z=!1,Q=new(typeof WeakMap=="function"?WeakMap:Map),Ye=Symbol.for("react.client.reference"),be,me={},pe={},we={};A.Fragment=$,A.jsx=function(e,r,o,t,l){return N(e,r,o,!1,t,l)},A.jsxs=function(e,r,o,t,l){return N(e,r,o,!0,t,l)}}()),A}process.env.NODE_ENV==="production"?q.exports=xe():q.exports=ye();var x=q.exports;const Te=`.hudoro-accordion { | ||
border-radius: var(--hsd-ui-radii-md, 6px); | ||
@@ -89,2 +90,2 @@ border: var(--hsd-ui-border, 1px) solid var(--hsd-ui-color-gray-200, #e5e7eb); | ||
} | ||
`,ae="hudoro-accordion-styles";(b=>{if(!document.getElementById(ae)){const v=document.createElement("style");v.id=ae,v.textContent=b,document.head.appendChild(v)}})(De);const oe=x.createContext({allowMultiple:!1}),Fe=({children:b,allowMultiple:v=!1})=>{const s=x.useRef([]),_=c=>{var C,w,d,S,p,m,T,k,M;const j=(C=s.current)==null?void 0:C.find(N=>N===c);v?j?j&&((S=c.querySelector(".hudoro-accordion-arrow"))==null||S.classList.remove("hudoro-accordion-arrow-active"),c.classList.remove("active"),s.current=s.current.filter(N=>N!==c)):(c.classList.add("active"),(w=c.querySelector(".hudoro-accordion-arrow"))==null||w.classList.add("hudoro-accordion-arrow-active"),(d=s.current)==null||d.push(c)):(p=s.current)!=null&&p.length?s.current[0]===c?((m=s.current[0].querySelector(".hudoro-accordion-arrow"))==null||m.classList.remove("hudoro-accordion-arrow-active"),s.current[0].classList.remove("active"),s.current=[]):((T=s.current[0].querySelector(".hudoro-accordion-arrow"))==null||T.classList.remove("hudoro-accordion-arrow-active"),s.current[0].classList.remove("active"),s.current=[],c.classList.add("active"),s.current[0]=c,(k=s.current[0].querySelector(".hudoro-accordion-arrow"))==null||k.classList.add("hudoro-accordion-arrow-active")):(c.classList.add("active"),(M=c.querySelector(".hudoro-accordion-arrow"))==null||M.classList.add("hudoro-accordion-arrow-active"),s.current.push(c))};return O.jsx(oe.Provider,{value:{allowMultiple:v,handlePushRef:_},children:O.jsx("div",{className:"hudoro-accordion",children:b})})},Le=({children:b})=>O.jsx("div",{className:"hudoro-accordion-item",children:b}),Ie=({children:b,expand:v=!0})=>{const{handlePushRef:s}=x.useContext(oe),_=c=>{c.currentTarget.parentElement&&s&&s(c.currentTarget.parentElement)};return O.jsxs("button",{className:"hudoro-accordion-button",onClick:c=>v?_(c):{},children:[b,v?O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",className:"hudoro-accordion-arrow",children:O.jsx("path",{d:"M4 9.5L12 17.5L20 9.5",stroke:"#111827",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}):null]})},We=({children:b})=>O.jsx("div",{className:"hudoro-accordion-panel",onClick:v=>v.stopPropagation(),children:b});R.Accordion=Fe,R.AccordionButton=Ie,R.AccordionItem=Le,R.AccordionPanel=We,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}); | ||
`,ee="hudoro-accordion-styles";(u=>{if(!document.getElementById(ee)){const s=document.createElement("style");s.id=ee,s.textContent=u,document.head.appendChild(s)}})(Te);const re=m.createContext({allowMultiple:!1}),je=({children:u,allowMultiple:s=!1})=>{const c=m.useRef([]),p=a=>{var v,E,_,C,Y,M,L,W,N;const f=(v=c.current)==null?void 0:v.find(R=>R===a);s?f?f&&((C=a.querySelector(".hudoro-accordion-arrow"))==null||C.classList.remove("hudoro-accordion-arrow-active"),a.classList.remove("active"),c.current=c.current.filter(R=>R!==a)):(a.classList.add("active"),(E=a.querySelector(".hudoro-accordion-arrow"))==null||E.classList.add("hudoro-accordion-arrow-active"),(_=c.current)==null||_.push(a)):(Y=c.current)!=null&&Y.length?c.current[0]===a?((M=c.current[0].querySelector(".hudoro-accordion-arrow"))==null||M.classList.remove("hudoro-accordion-arrow-active"),c.current[0].classList.remove("active"),c.current=[]):((L=c.current[0].querySelector(".hudoro-accordion-arrow"))==null||L.classList.remove("hudoro-accordion-arrow-active"),c.current[0].classList.remove("active"),c.current=[],a.classList.add("active"),c.current[0]=a,(W=c.current[0].querySelector(".hudoro-accordion-arrow"))==null||W.classList.add("hudoro-accordion-arrow-active")):(a.classList.add("active"),(N=a.querySelector(".hudoro-accordion-arrow"))==null||N.classList.add("hudoro-accordion-arrow-active"),c.current.push(a))};return x.jsx(re.Provider,{value:{allowMultiple:s,handlePushRef:p},children:x.jsx("div",{className:"hudoro-accordion",children:u})})},_e=({children:u})=>x.jsx("div",{className:"hudoro-accordion-item",children:u}),Ce=({children:u,expand:s=!0})=>{const{handlePushRef:c}=m.useContext(re),p=a=>{a.currentTarget.parentElement&&c&&c(a.currentTarget.parentElement)};return x.jsxs("button",{className:"hudoro-accordion-button",onClick:a=>s?p(a):{},children:[u,s?x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",className:"hudoro-accordion-arrow",children:x.jsx("path",{d:"M4 9.5L12 17.5L20 9.5",stroke:"#111827",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}):null]})},Re=({children:u})=>x.jsx("div",{className:"hudoro-accordion-panel",onClick:s=>s.stopPropagation(),children:u});h.Accordion=je,h.AccordionButton=Ce,h.AccordionItem=_e,h.AccordionPanel=Re,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}); |
{ | ||
"name": "@hudoro/accordion", | ||
"version": "0.0.1-beta.12", | ||
"version": "0.0.1-beta.13", | ||
"description": "Accordion component for Hudoro UI", | ||
@@ -28,4 +28,2 @@ "author": "Prawito Hudoro", | ||
"@types/node": "^20.11.5", | ||
"@types/react": "^18.2.48", | ||
"@types/react-dom": "^18.2.18", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
@@ -36,4 +34,6 @@ "tsconfig-paths": "^4.2.0", | ||
"vite-plugin-dts": "^3.7.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
"@types/react": "^19.0.8", | ||
"@types/react-dom": "^19.0.3", | ||
"react": "^19.0.0", | ||
"react-dom": "^19.0.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "peerDependencies": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
38844
716
1