@contentmunch/contentmunch-ui 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import oe, { useState as S, Fragment as s, useRef as de, useCallback as G, useEffect as Q, useMemo as te } from "react";
1
+ import o1, { useState as S, Fragment as s, useRef as d1, useCallback as G, useEffect as Q, useMemo as l1 } from "react";
2
2
  var K = { exports: {} }, B = {};
3
3
  /**
4
4
  * @license React
@@ -9,27 +9,27 @@ var K = { exports: {} }, B = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var le;
13
- function ue() {
14
- if (le) return B;
15
- le = 1;
16
- var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
17
- function r(i, c, a) {
12
+ var t1;
13
+ function y1() {
14
+ if (t1) return B;
15
+ t1 = 1;
16
+ var n = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
17
+ function r(i, c, x) {
18
18
  var o = null;
19
- if (a !== void 0 && (o = "" + a), c.key !== void 0 && (o = "" + c.key), "key" in c) {
20
- a = {};
21
- for (var x in c)
22
- x !== "key" && (a[x] = c[x]);
23
- } else a = c;
24
- return c = a.ref, {
19
+ if (x !== void 0 && (o = "" + x), c.key !== void 0 && (o = "" + c.key), "key" in c) {
20
+ x = {};
21
+ for (var a in c)
22
+ a !== "key" && (x[a] = c[a]);
23
+ } else x = c;
24
+ return c = x.ref, {
25
25
  $$typeof: n,
26
26
  type: i,
27
27
  key: o,
28
28
  ref: c !== void 0 ? c : null,
29
- props: a
29
+ props: x
30
30
  };
31
31
  }
32
- return B.Fragment = t, B.jsx = r, B.jsxs = r, B;
32
+ return B.Fragment = l, B.jsx = r, B.jsxs = r, B;
33
33
  }
34
34
  var J = {};
35
35
  /**
@@ -41,255 +41,255 @@ var J = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var ce;
45
- function ye() {
46
- return ce || (ce = 1, process.env.NODE_ENV !== "production" && function() {
47
- function n(l) {
48
- if (l == null) return null;
49
- if (typeof l == "function")
50
- return l.$$typeof === A ? null : l.displayName || l.name || null;
51
- if (typeof l == "string") return l;
52
- switch (l) {
53
- case b:
44
+ var c1;
45
+ function u1() {
46
+ return c1 || (c1 = 1, process.env.NODE_ENV !== "production" && function() {
47
+ function n(t) {
48
+ if (t == null) return null;
49
+ if (typeof t == "function")
50
+ return t.$$typeof === z ? null : t.displayName || t.name || null;
51
+ if (typeof t == "string") return t;
52
+ switch (t) {
53
+ case g:
54
54
  return "Fragment";
55
- case v:
55
+ case f:
56
56
  return "Profiler";
57
- case E:
57
+ case _:
58
58
  return "StrictMode";
59
- case C:
59
+ case b:
60
60
  return "Suspense";
61
61
  case H:
62
62
  return "SuspenseList";
63
- case M:
63
+ case k:
64
64
  return "Activity";
65
65
  }
66
- if (typeof l == "object")
67
- switch (typeof l.tag == "number" && console.error(
66
+ if (typeof t == "object")
67
+ switch (typeof t.tag == "number" && console.error(
68
68
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
- ), l.$$typeof) {
70
- case g:
69
+ ), t.$$typeof) {
70
+ case N:
71
71
  return "Portal";
72
- case T:
73
- return (l.displayName || "Context") + ".Provider";
74
- case k:
75
- return (l._context.displayName || "Context") + ".Consumer";
76
- case R:
77
- var y = l.render;
78
- return l = l.displayName, l || (l = y.displayName || y.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
72
+ case C:
73
+ return (t.displayName || "Context") + ".Provider";
74
+ case E:
75
+ return (t._context.displayName || "Context") + ".Consumer";
76
+ case A:
77
+ var u = t.render;
78
+ return t = t.displayName, t || (t = u.displayName || u.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
79
79
  case P:
80
- return y = l.displayName || null, y !== null ? y : n(l.type) || "Memo";
80
+ return u = t.displayName || null, u !== null ? u : n(t.type) || "Memo";
81
81
  case m:
82
- y = l._payload, l = l._init;
82
+ u = t._payload, t = t._init;
83
83
  try {
84
- return n(l(y));
84
+ return n(t(u));
85
85
  } catch {
86
86
  }
87
87
  }
88
88
  return null;
89
89
  }
90
- function t(l) {
91
- return "" + l;
90
+ function l(t) {
91
+ return "" + t;
92
92
  }
93
- function r(l) {
93
+ function r(t) {
94
94
  try {
95
- t(l);
96
- var y = !1;
95
+ l(t);
96
+ var u = !1;
97
97
  } catch {
98
- y = !0;
98
+ u = !0;
99
99
  }
100
- if (y) {
101
- y = console;
102
- var w = y.error, _ = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
103
- return w.call(
104
- y,
100
+ if (u) {
101
+ u = console;
102
+ var M = u.error, R = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
103
+ return M.call(
104
+ u,
105
105
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
- _
107
- ), t(l);
106
+ R
107
+ ), l(t);
108
108
  }
109
109
  }
110
- function i(l) {
111
- if (l === b) return "<>";
112
- if (typeof l == "object" && l !== null && l.$$typeof === m)
110
+ function i(t) {
111
+ if (t === g) return "<>";
112
+ if (typeof t == "object" && t !== null && t.$$typeof === m)
113
113
  return "<...>";
114
114
  try {
115
- var y = n(l);
116
- return y ? "<" + y + ">" : "<...>";
115
+ var u = n(t);
116
+ return u ? "<" + u + ">" : "<...>";
117
117
  } catch {
118
118
  return "<...>";
119
119
  }
120
120
  }
121
121
  function c() {
122
- var l = L.A;
123
- return l === null ? null : l.getOwner();
122
+ var t = O.A;
123
+ return t === null ? null : t.getOwner();
124
124
  }
125
- function a() {
125
+ function x() {
126
126
  return Error("react-stack-top-frame");
127
127
  }
128
- function o(l) {
129
- if (X.call(l, "key")) {
130
- var y = Object.getOwnPropertyDescriptor(l, "key").get;
131
- if (y && y.isReactWarning) return !1;
128
+ function o(t) {
129
+ if (X.call(t, "key")) {
130
+ var u = Object.getOwnPropertyDescriptor(t, "key").get;
131
+ if (u && u.isReactWarning) return !1;
132
132
  }
133
- return l.key !== void 0;
133
+ return t.key !== void 0;
134
134
  }
135
- function x(l, y) {
136
- function w() {
135
+ function a(t, u) {
136
+ function M() {
137
137
  $ || ($ = !0, console.error(
138
138
  "%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)",
139
- y
139
+ u
140
140
  ));
141
141
  }
142
- w.isReactWarning = !0, Object.defineProperty(l, "key", {
143
- get: w,
142
+ M.isReactWarning = !0, Object.defineProperty(t, "key", {
143
+ get: M,
144
144
  configurable: !0
145
145
  });
146
146
  }
147
147
  function j() {
148
- var l = n(this.type);
149
- return Y[l] || (Y[l] = !0, console.error(
148
+ var t = n(this.type);
149
+ return Y[t] || (Y[t] = !0, console.error(
150
150
  "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."
151
- )), l = this.props.ref, l !== void 0 ? l : null;
151
+ )), t = this.props.ref, t !== void 0 ? t : null;
152
152
  }
153
- function u(l, y, w, _, D, V, ee, se) {
154
- return w = V.ref, l = {
155
- $$typeof: f,
156
- type: l,
157
- key: y,
158
- props: V,
153
+ function y(t, u, M, R, D, L, e1, s1) {
154
+ return M = L.ref, t = {
155
+ $$typeof: v,
156
+ type: t,
157
+ key: u,
158
+ props: L,
159
159
  _owner: D
160
- }, (w !== void 0 ? w : null) !== null ? Object.defineProperty(l, "ref", {
160
+ }, (M !== void 0 ? M : null) !== null ? Object.defineProperty(t, "ref", {
161
161
  enumerable: !1,
162
162
  get: j
163
- }) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
163
+ }) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
164
164
  configurable: !1,
165
165
  enumerable: !1,
166
166
  writable: !0,
167
167
  value: 0
168
- }), Object.defineProperty(l, "_debugInfo", {
168
+ }), Object.defineProperty(t, "_debugInfo", {
169
169
  configurable: !1,
170
170
  enumerable: !1,
171
171
  writable: !0,
172
172
  value: null
173
- }), Object.defineProperty(l, "_debugStack", {
173
+ }), Object.defineProperty(t, "_debugStack", {
174
174
  configurable: !1,
175
175
  enumerable: !1,
176
176
  writable: !0,
177
- value: ee
178
- }), Object.defineProperty(l, "_debugTask", {
177
+ value: e1
178
+ }), Object.defineProperty(t, "_debugTask", {
179
179
  configurable: !1,
180
180
  enumerable: !1,
181
181
  writable: !0,
182
- value: se
183
- }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
182
+ value: s1
183
+ }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
184
184
  }
185
- function d(l, y, w, _, D, V, ee, se) {
186
- var z = y.children;
187
- if (z !== void 0)
188
- if (_)
189
- if (Z(z)) {
190
- for (_ = 0; _ < z.length; _++)
191
- h(z[_]);
192
- Object.freeze && Object.freeze(z);
185
+ function d(t, u, M, R, D, L, e1, s1) {
186
+ var T = u.children;
187
+ if (T !== void 0)
188
+ if (R)
189
+ if (Z(T)) {
190
+ for (R = 0; R < T.length; R++)
191
+ h(T[R]);
192
+ Object.freeze && Object.freeze(T);
193
193
  } else
194
194
  console.error(
195
195
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
196
196
  );
197
- else h(z);
198
- if (X.call(y, "key")) {
199
- z = n(l);
200
- var F = Object.keys(y).filter(function(je) {
201
- return je !== "key";
197
+ else h(T);
198
+ if (X.call(u, "key")) {
199
+ T = n(t);
200
+ var F = Object.keys(u).filter(function(j1) {
201
+ return j1 !== "key";
202
202
  });
203
- _ = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", re[z + _] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
203
+ R = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", r1[T + R] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
204
204
  `A props object containing a "key" prop is being spread into JSX:
205
205
  let props = %s;
206
206
  <%s {...props} />
207
207
  React keys must be passed directly to JSX without using spread:
208
208
  let props = %s;
209
209
  <%s key={someKey} {...props} />`,
210
- _,
211
- z,
210
+ R,
211
+ T,
212
212
  F,
213
- z
214
- ), re[z + _] = !0);
213
+ T
214
+ ), r1[T + R] = !0);
215
215
  }
216
- if (z = null, w !== void 0 && (r(w), z = "" + w), o(y) && (r(y.key), z = "" + y.key), "key" in y) {
217
- w = {};
218
- for (var ne in y)
219
- ne !== "key" && (w[ne] = y[ne]);
220
- } else w = y;
221
- return z && x(
222
- w,
223
- typeof l == "function" ? l.displayName || l.name || "Unknown" : l
224
- ), u(
225
- l,
226
- z,
227
- V,
216
+ if (T = null, M !== void 0 && (r(M), T = "" + M), o(u) && (r(u.key), T = "" + u.key), "key" in u) {
217
+ M = {};
218
+ for (var n1 in u)
219
+ n1 !== "key" && (M[n1] = u[n1]);
220
+ } else M = u;
221
+ return T && a(
222
+ M,
223
+ typeof t == "function" ? t.displayName || t.name || "Unknown" : t
224
+ ), y(
225
+ t,
226
+ T,
227
+ L,
228
228
  D,
229
229
  c(),
230
- w,
231
- ee,
232
- se
230
+ M,
231
+ e1,
232
+ s1
233
233
  );
234
234
  }
235
- function h(l) {
236
- typeof l == "object" && l !== null && l.$$typeof === f && l._store && (l._store.validated = 1);
235
+ function h(t) {
236
+ typeof t == "object" && t !== null && t.$$typeof === v && t._store && (t._store.validated = 1);
237
237
  }
238
- var p = oe, f = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), T = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), A = Symbol.for("react.client.reference"), L = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, Z = Array.isArray, I = console.createTask ? console.createTask : function() {
238
+ var p = o1, v = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), C = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), O = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, Z = Array.isArray, I = console.createTask ? console.createTask : function() {
239
239
  return null;
240
240
  };
241
241
  p = {
242
- "react-stack-bottom-frame": function(l) {
243
- return l();
242
+ "react-stack-bottom-frame": function(t) {
243
+ return t();
244
244
  }
245
245
  };
246
246
  var $, Y = {}, U = p["react-stack-bottom-frame"].bind(
247
247
  p,
248
- a
249
- )(), W = I(i(a)), re = {};
250
- J.Fragment = b, J.jsx = function(l, y, w, _, D) {
251
- var V = 1e4 > L.recentlyCreatedOwnerStacks++;
248
+ x
249
+ )(), W = I(i(x)), r1 = {};
250
+ J.Fragment = g, J.jsx = function(t, u, M, R, D) {
251
+ var L = 1e4 > O.recentlyCreatedOwnerStacks++;
252
252
  return d(
253
- l,
254
- y,
255
- w,
253
+ t,
254
+ u,
255
+ M,
256
256
  !1,
257
- _,
257
+ R,
258
258
  D,
259
- V ? Error("react-stack-top-frame") : U,
260
- V ? I(i(l)) : W
259
+ L ? Error("react-stack-top-frame") : U,
260
+ L ? I(i(t)) : W
261
261
  );
262
- }, J.jsxs = function(l, y, w, _, D) {
263
- var V = 1e4 > L.recentlyCreatedOwnerStacks++;
262
+ }, J.jsxs = function(t, u, M, R, D) {
263
+ var L = 1e4 > O.recentlyCreatedOwnerStacks++;
264
264
  return d(
265
- l,
266
- y,
267
- w,
265
+ t,
266
+ u,
267
+ M,
268
268
  !0,
269
- _,
269
+ R,
270
270
  D,
271
- V ? Error("react-stack-top-frame") : U,
272
- V ? I(i(l)) : W
271
+ L ? Error("react-stack-top-frame") : U,
272
+ L ? I(i(t)) : W
273
273
  );
274
274
  };
275
275
  }()), J;
276
276
  }
277
- var ie;
278
- function pe() {
279
- return ie || (ie = 1, process.env.NODE_ENV === "production" ? K.exports = ue() : K.exports = ye()), K.exports;
277
+ var i1;
278
+ function p1() {
279
+ return i1 || (i1 = 1, process.env.NODE_ENV === "production" ? K.exports = y1() : K.exports = u1()), K.exports;
280
280
  }
281
- var e = pe();
282
- const Re = ({ variant: n, collapsed: t, children: r }) => {
283
- const { folds: i } = r, [c, a] = S(t ? -1 : 0), o = (d) => d === c ? "fold active" : "fold", x = (d) => "fold-button" + (n ? " fold-button--" + n : "") + (i[d].foldColor ? " fold-button--primary fold-button--" + i[d].foldColor : ""), j = (d) => {
281
+ var e = p1();
282
+ const A1 = ({ variant: n, collapsed: l, children: r }) => {
283
+ const { folds: i } = r, [c, x] = S(l ? -1 : 0), o = (d) => d === c ? "fold active" : "fold", a = (d) => "fold-button" + (n ? " fold-button--" + n : "") + (i[d].foldColor ? " fold-button--primary fold-button--" + i[d].foldColor : ""), j = (d) => {
284
284
  const h = d.which.toString(), p = d.ctrlKey && h.match(/33|34/);
285
285
  if (h.match(/38|40/) || p) {
286
- const f = h.match(/34|40/) ? 1 : -1, g = i.length, b = (c + g + f) % g;
287
- a(b);
286
+ const v = h.match(/34|40/) ? 1 : -1, N = i.length, g = (c + N + v) % N;
287
+ x(g);
288
288
  } else
289
- h === "36" && a(0), h === "35" && a(i.length - 1);
289
+ h === "36" && x(0), h === "35" && x(i.length - 1);
290
290
  d.preventDefault();
291
- }, u = (d) => {
292
- a(c === d ? -1 : d);
291
+ }, y = (d) => {
292
+ x(c === d ? -1 : d);
293
293
  };
294
294
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-accordion", children: i.map(
295
295
  (d, h) => /* @__PURE__ */ e.jsxs(
@@ -301,9 +301,9 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
301
301
  /* @__PURE__ */ e.jsx(
302
302
  "button",
303
303
  {
304
- className: x(h),
304
+ className: a(h),
305
305
  onKeyDown: j,
306
- onClick: () => u(h),
306
+ onClick: () => y(h),
307
307
  children: /* @__PURE__ */ e.jsx("span", { children: d.heading })
308
308
  }
309
309
  ),
@@ -313,14 +313,14 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
313
313
  "muncher-accordion-fold-" + h
314
314
  )
315
315
  ) });
316
- }, me = ({
316
+ }, m1 = ({
317
317
  show: n = !1,
318
- backdropClickHandler: t,
318
+ backdropClickHandler: l,
319
319
  ...r
320
- }) => n ? /* @__PURE__ */ e.jsx("div", { className: "muncher-backdrop", onClick: t, ...r }) : null, fe = ({ variant: n, rounded: t, border: r, children: i, ...c }) => {
321
- const a = "muncher-badge" + (n ? " muncher-badge--" + n : "") + (t ? " muncher-badge--rounded" : "") + (r ? " muncher-badge--border" : "");
322
- return /* @__PURE__ */ e.jsx("div", { className: a, ...c, children: i });
323
- }, ae = {
320
+ }) => n ? /* @__PURE__ */ e.jsx("div", { className: "muncher-backdrop", onClick: l, ...r }) : null, f1 = ({ variant: n, rounded: l, border: r, children: i, ...c }) => {
321
+ const x = "muncher-badge" + (n ? " muncher-badge--" + n : "") + (l ? " muncher-badge--rounded" : "") + (r ? " muncher-badge--border" : "");
322
+ return /* @__PURE__ */ e.jsx("div", { className: x, ...c, children: i });
323
+ }, x1 = {
324
324
  "align-center": /* @__PURE__ */ e.jsxs(s, { children: [
325
325
  /* @__PURE__ */ e.jsx("line", { x1: "18", y1: "10", x2: "6", y2: "10" }),
326
326
  /* @__PURE__ */ e.jsx("line", { x1: "21", y1: "6", x2: "3", y2: "6" }),
@@ -372,6 +372,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
372
372
  /* @__PURE__ */ e.jsx("line", { x1: "3", y1: "15", x2: "21", y2: "15" }),
373
373
  /* @__PURE__ */ e.jsx("line", { x1: "12", y1: "3", x2: "12", y2: "21" })
374
374
  ] }),
375
+ "split-view": /* @__PURE__ */ e.jsxs(s, { children: [
376
+ /* @__PURE__ */ e.jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
377
+ /* @__PURE__ */ e.jsx("line", { x1: "12", y1: "3", x2: "12", y2: "21" })
378
+ ] }),
375
379
  undo: /* @__PURE__ */ e.jsxs(s, { children: [
376
380
  /* @__PURE__ */ e.jsx("polyline", { points: "2 10 2 16 8 16" }),
377
381
  /* @__PURE__ */ e.jsx("path", { d: "m22 16c-1.8136-6.5424-9.5593-9.4823-15.36-4.36l-4.64 4.36" })
@@ -412,6 +416,11 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
412
416
  /* @__PURE__ */ e.jsx("polyline", { points: "16 12 12 8 8 12" }),
413
417
  /* @__PURE__ */ e.jsx("line", { x1: "12", y1: "16", x2: "12", y2: "8" })
414
418
  ] }),
419
+ anchor: /* @__PURE__ */ e.jsxs(s, { children: [
420
+ /* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "5", r: "3" }),
421
+ /* @__PURE__ */ e.jsx("line", { x1: "12", y1: "22", x2: "12", y2: "8" }),
422
+ /* @__PURE__ */ e.jsx("path", { d: "M5 12H2a10 10 0 0 0 20 0h-3" })
423
+ ] }),
415
424
  hamburger: /* @__PURE__ */ e.jsxs(s, { children: [
416
425
  /* @__PURE__ */ e.jsx("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
417
426
  /* @__PURE__ */ e.jsx("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
@@ -471,6 +480,15 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
471
480
  /* @__PURE__ */ e.jsx("polyline", { points: "12 6 12 12 16 14" })
472
481
  ] }),
473
482
  cloud: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx("path", { d: "M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z" }) }),
483
+ "cloud-drizzle": /* @__PURE__ */ e.jsxs(s, { children: [
484
+ /* @__PURE__ */ e.jsx("line", { x1: "8", y1: "19", x2: "8", y2: "21" }),
485
+ /* @__PURE__ */ e.jsx("line", { x1: "8", y1: "13", x2: "8", y2: "15" }),
486
+ /* @__PURE__ */ e.jsx("line", { x1: "16", y1: "19", x2: "16", y2: "21" }),
487
+ /* @__PURE__ */ e.jsx("line", { x1: "16", y1: "13", x2: "16", y2: "15" }),
488
+ /* @__PURE__ */ e.jsx("line", { x1: "12", y1: "21", x2: "12", y2: "23" }),
489
+ /* @__PURE__ */ e.jsx("line", { x1: "12", y1: "15", x2: "12", y2: "17" }),
490
+ /* @__PURE__ */ e.jsx("path", { d: "M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25" })
491
+ ] }),
474
492
  "cloud-lightning": /* @__PURE__ */ e.jsxs(s, { children: [
475
493
  /* @__PURE__ */ e.jsx("path", { d: "M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9" }),
476
494
  /* @__PURE__ */ e.jsx("polyline", { points: "13 11 9 17 15 17 11 23" })
@@ -488,6 +506,86 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
488
506
  }
489
507
  )
490
508
  ] }),
509
+ coffee: /* @__PURE__ */ e.jsxs(s, { children: [
510
+ /* @__PURE__ */ e.jsx("path", { d: "M18 8h1a4 4 0 0 1 0 8h-1" }),
511
+ /* @__PURE__ */ e.jsx("path", { d: "M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z" }),
512
+ /* @__PURE__ */ e.jsx("line", { x1: "6", y1: "1", x2: "6", y2: "4" }),
513
+ /* @__PURE__ */ e.jsx("line", { x1: "10", y1: "1", x2: "10", y2: "4" }),
514
+ /* @__PURE__ */ e.jsx("line", { x1: "14", y1: "1", x2: "14", y2: "4" })
515
+ ] }),
516
+ compass: /* @__PURE__ */ e.jsxs(s, { children: [
517
+ /* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "10" }),
518
+ /* @__PURE__ */ e.jsx("polygon", { points: "16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76" })
519
+ ] }),
520
+ eye: /* @__PURE__ */ e.jsxs(s, { children: [
521
+ /* @__PURE__ */ e.jsx("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
522
+ /* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "3" })
523
+ ] }),
524
+ feather: /* @__PURE__ */ e.jsxs(s, { children: [
525
+ /* @__PURE__ */ e.jsx("path", { d: "M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z" }),
526
+ /* @__PURE__ */ e.jsx("line", { x1: "16", y1: "8", x2: "2", y2: "22" }),
527
+ /* @__PURE__ */ e.jsx("line", { x1: "17.5", y1: "15", x2: "9", y2: "15" })
528
+ ] }),
529
+ globe: /* @__PURE__ */ e.jsxs(s, { children: [
530
+ /* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "10" }),
531
+ /* @__PURE__ */ e.jsx("line", { x1: "2", y1: "12", x2: "22", y2: "12" }),
532
+ /* @__PURE__ */ e.jsx("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
533
+ ] }),
534
+ headphone: /* @__PURE__ */ e.jsxs(s, { children: [
535
+ /* @__PURE__ */ e.jsx("path", { d: "M3 18v-6a9 9 0 0 1 18 0v6" }),
536
+ /* @__PURE__ */ e.jsx(
537
+ "path",
538
+ {
539
+ d: "M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"
540
+ }
541
+ )
542
+ ] }),
543
+ hexagon: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
544
+ "path",
545
+ {
546
+ d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"
547
+ }
548
+ ) }),
549
+ package: /* @__PURE__ */ e.jsxs(s, { children: [
550
+ /* @__PURE__ */ e.jsx("line", { x1: "16.5", y1: "9.4", x2: "7.5", y2: "4.21" }),
551
+ /* @__PURE__ */ e.jsx(
552
+ "path",
553
+ {
554
+ d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"
555
+ }
556
+ ),
557
+ /* @__PURE__ */ e.jsx("polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }),
558
+ /* @__PURE__ */ e.jsx("line", { x1: "12", y1: "22.08", x2: "12", y2: "12" })
559
+ ] }),
560
+ "paper-clip": /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
561
+ "path",
562
+ {
563
+ d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"
564
+ }
565
+ ) }),
566
+ "pen-tool": /* @__PURE__ */ e.jsxs(s, { children: [
567
+ /* @__PURE__ */ e.jsx("path", { d: "M12 19l7-7 3 3-7 7-3-3z" }),
568
+ /* @__PURE__ */ e.jsx("path", { d: "M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z" }),
569
+ /* @__PURE__ */ e.jsx("path", { d: "M2 2l7.586 7.586" }),
570
+ /* @__PURE__ */ e.jsx("circle", { cx: "11", cy: "11", r: "2" })
571
+ ] }),
572
+ pocket: /* @__PURE__ */ e.jsxs(s, { children: [
573
+ /* @__PURE__ */ e.jsx("path", { d: "M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z" }),
574
+ /* @__PURE__ */ e.jsx("polyline", { points: "8 10 12 14 16 10" })
575
+ ] }),
576
+ shield: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }) }),
577
+ watch: /* @__PURE__ */ e.jsxs(s, { children: [
578
+ /* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "7" }),
579
+ /* @__PURE__ */ e.jsx("polyline", { points: "12 9 12 12 13.5 13.5" }),
580
+ /* @__PURE__ */ e.jsx(
581
+ "path",
582
+ {
583
+ d: "M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"
584
+ }
585
+ )
586
+ ] }),
587
+ wind: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx("path", { d: "M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2" }) }),
588
+ zap: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx("polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" }) }),
491
589
  video: /* @__PURE__ */ e.jsxs(s, { children: [
492
590
  /* @__PURE__ */ e.jsx("polygon", { points: "23 7 16 12 23 17 23 7" }),
493
591
  /* @__PURE__ */ e.jsx("rect", { x: "1", y: "5", width: "15", height: "14", rx: "2", ry: "2" })
@@ -804,6 +902,23 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
804
902
  /* @__PURE__ */ e.jsx("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
805
903
  /* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "7", r: "4" })
806
904
  ] }),
905
+ "user-plus": /* @__PURE__ */ e.jsxs(s, { children: [
906
+ /* @__PURE__ */ e.jsx("path", { d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
907
+ /* @__PURE__ */ e.jsx("circle", { cx: "8.5", cy: "7", r: "4" }),
908
+ /* @__PURE__ */ e.jsx("line", { x1: "20", y1: "8", x2: "20", y2: "14" }),
909
+ /* @__PURE__ */ e.jsx("line", { x1: "23", y1: "11", x2: "17", y2: "11" })
910
+ ] }),
911
+ "user-minus": /* @__PURE__ */ e.jsxs(s, { children: [
912
+ /* @__PURE__ */ e.jsx("path", { d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
913
+ /* @__PURE__ */ e.jsx("circle", { cx: "8.5", cy: "7", r: "4" }),
914
+ /* @__PURE__ */ e.jsx("line", { x1: "23", y1: "11", x2: "17", y2: "11" })
915
+ ] }),
916
+ users: /* @__PURE__ */ e.jsxs(s, { children: [
917
+ /* @__PURE__ */ e.jsx("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
918
+ /* @__PURE__ */ e.jsx("circle", { cx: "9", cy: "7", r: "4" }),
919
+ /* @__PURE__ */ e.jsx("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
920
+ /* @__PURE__ */ e.jsx("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
921
+ ] }),
807
922
  "log-in": /* @__PURE__ */ e.jsxs(s, { children: [
808
923
  /* @__PURE__ */ e.jsx("path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" }),
809
924
  /* @__PURE__ */ e.jsx("polyline", { points: "10 17 15 12 10 7" }),
@@ -1054,6 +1169,11 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1054
1169
  /* @__PURE__ */ e.jsx("circle", { cx: "20", cy: "21", r: "1" }),
1055
1170
  /* @__PURE__ */ e.jsx("path", { d: "M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6" })
1056
1171
  ] }),
1172
+ "bar-chart": /* @__PURE__ */ e.jsxs(s, { children: [
1173
+ /* @__PURE__ */ e.jsx("line", { x1: "18", y1: "20", x2: "18", y2: "10" }),
1174
+ /* @__PURE__ */ e.jsx("line", { x1: "12", y1: "20", x2: "12", y2: "4" }),
1175
+ /* @__PURE__ */ e.jsx("line", { x1: "6", y1: "20", x2: "6", y2: "14" })
1176
+ ] }),
1057
1177
  "pie-chart": /* @__PURE__ */ e.jsxs(s, { children: [
1058
1178
  /* @__PURE__ */ e.jsx("path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83" }),
1059
1179
  /* @__PURE__ */ e.jsx("path", { d: "M22 12A10 10 0 0 0 12 2v10z" })
@@ -1080,10 +1200,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1080
1200
  /* @__PURE__ */ e.jsx("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" }),
1081
1201
  /* @__PURE__ */ e.jsx("text", { x: "6", y: "14", fontSize: "6", fontFamily: "'Lucida Grande', sans-serif", children: "360" })
1082
1202
  ] })
1083
- }, N = ({ color: n, name: t, size: r = "small", weight: i = 2, onClick: c, iconString: a, orientation: o, children: x }) => {
1203
+ }, w = ({ color: n, name: l, size: r = "small", weight: i = 2, onClick: c, iconString: x, orientation: o, children: a }) => {
1084
1204
  const j = r ? "muncher-icon--" + r : "muncher-icon--small";
1085
1205
  return /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon", children: [
1086
- x && o && o === "right" ? /* @__PURE__ */ e.jsx("span", { className: "content-left", children: x }) : "",
1206
+ a && o && o === "right" ? /* @__PURE__ */ e.jsx("span", { className: "content-left", children: a }) : "",
1087
1207
  /* @__PURE__ */ e.jsx(
1088
1208
  "svg",
1089
1209
  {
@@ -1096,14 +1216,14 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1096
1216
  strokeLinecap: "round",
1097
1217
  strokeLinejoin: "round",
1098
1218
  onClick: c,
1099
- children: t ? ae[t] : a ? Object(ae)[a] : ""
1219
+ children: l ? x1[l] : x ? Object(x1)[x] : ""
1100
1220
  }
1101
1221
  ),
1102
- x && (!o || o === "left") ? /* @__PURE__ */ e.jsx("span", { className: "content-right", children: x }) : ""
1222
+ a && (!o || o === "left") ? /* @__PURE__ */ e.jsx("span", { className: "content-right", children: a }) : ""
1103
1223
  ] });
1104
- }, Te = ({
1224
+ }, z1 = ({
1105
1225
  variant: n = "primary",
1106
- icon: t = "bell",
1226
+ icon: l = "bell",
1107
1227
  text: r,
1108
1228
  onClick: i,
1109
1229
  ...c
@@ -1114,82 +1234,82 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1114
1234
  onClick: i,
1115
1235
  ...c,
1116
1236
  children: [
1117
- /* @__PURE__ */ e.jsx(N, { name: t }),
1118
- r === "" ? "" : /* @__PURE__ */ e.jsx(fe, { variant: n, children: r })
1237
+ /* @__PURE__ */ e.jsx(w, { name: l }),
1238
+ r === "" ? "" : /* @__PURE__ */ e.jsx(f1, { variant: n, children: r })
1119
1239
  ]
1120
1240
  }
1121
- ), O = ({
1241
+ ), V = ({
1122
1242
  type: n = "button",
1123
- variant: t,
1243
+ variant: l,
1124
1244
  size: r = "medium",
1125
1245
  title: i,
1126
1246
  active: c,
1127
- disabled: a,
1247
+ disabled: x,
1128
1248
  rounded: o,
1129
- onClick: x,
1249
+ onClick: a,
1130
1250
  onMouseDown: j,
1131
- onMouseEnter: u,
1251
+ onMouseEnter: y,
1132
1252
  onMouseLeave: d,
1133
1253
  children: h,
1134
1254
  ...p
1135
1255
  }) => {
1136
- const f = "muncher-button" + (n && n === "nav" ? " muncher-button--nav" : "") + (t ? " muncher-button--" + t : "") + (r ? " muncher-button--" + r : "") + (c ? " muncher-button--active" : "") + (o ? " muncher-button--rounded" : "");
1256
+ const v = "muncher-button" + (n && n === "nav" ? " muncher-button--nav" : "") + (l ? " muncher-button--" + l : "") + (r ? " muncher-button--" + r : "") + (c ? " muncher-button--active" : "") + (o ? " muncher-button--rounded" : "");
1137
1257
  return /* @__PURE__ */ e.jsx(
1138
1258
  "button",
1139
1259
  {
1140
1260
  type: n && n !== "nav" ? n : "button",
1141
- className: f,
1142
- disabled: !!a,
1261
+ className: v,
1262
+ disabled: !!x,
1143
1263
  title: i,
1144
- onClick: x,
1264
+ onClick: a,
1145
1265
  onMouseDown: j,
1146
- onMouseEnter: u,
1266
+ onMouseEnter: y,
1147
1267
  onMouseLeave: d,
1148
1268
  ...p,
1149
1269
  children: h
1150
1270
  }
1151
1271
  );
1152
- }, ve = ({
1272
+ }, v1 = ({
1153
1273
  variant: n,
1154
- size: t = "medium",
1274
+ size: l = "medium",
1155
1275
  title: r,
1156
1276
  active: i,
1157
1277
  disabled: c,
1158
- element: a,
1278
+ element: x,
1159
1279
  onMouseDown: o,
1160
- rounded: x,
1280
+ rounded: a,
1161
1281
  drop: j,
1162
- onClick: u,
1282
+ onClick: y,
1163
1283
  onClose: d,
1164
1284
  showContent: h,
1165
1285
  setShowContent: p,
1166
- withDropIcon: f,
1167
- children: g,
1168
- ...b
1286
+ withDropIcon: v,
1287
+ children: N,
1288
+ ...g
1169
1289
  }) => {
1170
- const E = de(null), v = (C) => {
1171
- C.preventDefault(), u && u(C), p && p(!0);
1172
- }, k = G(() => {
1290
+ const _ = d1(null), f = (b) => {
1291
+ b.preventDefault(), y && y(b), p && p(!0);
1292
+ }, E = G(() => {
1173
1293
  p(!1), d && d();
1174
- }, [d, p]), T = G((C) => {
1175
- C.keyCode === 27 && k();
1176
- }, [k]);
1294
+ }, [d, p]), C = G((b) => {
1295
+ b.keyCode === 27 && E();
1296
+ }, [E]);
1177
1297
  Q(() => {
1178
- const C = (H) => {
1179
- E && E.current && H.target instanceof HTMLElement && !E.current.contains(H.target) && k();
1298
+ const b = (H) => {
1299
+ _ && _.current && H.target instanceof HTMLElement && !_.current.contains(H.target) && E();
1180
1300
  };
1181
- return document.addEventListener("keydown", T, !1), document.addEventListener("mousedown", C), () => {
1182
- document.removeEventListener("keydown", T, !1);
1301
+ return document.addEventListener("keydown", C, !1), document.addEventListener("mousedown", b), () => {
1302
+ document.removeEventListener("keydown", C, !1);
1183
1303
  };
1184
- }, [T, k]);
1185
- const R = () => {
1304
+ }, [C, E]);
1305
+ const A = () => {
1186
1306
  var P;
1187
- const C = (P = E.current) == null ? void 0 : P.offsetLeft, H = window.innerWidth;
1188
- if (C) {
1189
- if (C < 100) return "muncher-dropdown--content";
1190
- if (H - C < 150) return "muncher-dropdown--content drop-left";
1191
- if (H - C < 250) {
1192
- const m = Math.round((H - C) / H * 100);
1307
+ const b = (P = _.current) == null ? void 0 : P.offsetLeft, H = window.innerWidth;
1308
+ if (b) {
1309
+ if (b < 100) return "muncher-dropdown--content";
1310
+ if (H - b < 150) return "muncher-dropdown--content drop-left";
1311
+ if (H - b < 250) {
1312
+ const m = Math.round((H - b) / H * 100);
1193
1313
  if (m > 40 || m < 60) return "muncher-dropdown--content drop-middle";
1194
1314
  }
1195
1315
  }
@@ -1202,21 +1322,21 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1202
1322
  return "muncher-dropdown--content";
1203
1323
  }
1204
1324
  };
1205
- return /* @__PURE__ */ e.jsxs("div", { className: "muncher-dropdown", ref: E, children: [
1325
+ return /* @__PURE__ */ e.jsxs("div", { className: "muncher-dropdown", ref: _, children: [
1206
1326
  /* @__PURE__ */ e.jsxs(
1207
- O,
1327
+ V,
1208
1328
  {
1209
- onMouseDown: v,
1329
+ onMouseDown: f,
1210
1330
  title: r,
1211
1331
  disabled: c,
1212
- rounded: x,
1332
+ rounded: a,
1213
1333
  active: i,
1214
1334
  variant: n,
1215
- size: t,
1216
- ...b,
1335
+ size: l,
1336
+ ...g,
1217
1337
  children: [
1218
- a,
1219
- f ? /* @__PURE__ */ e.jsx(
1338
+ x,
1339
+ v ? /* @__PURE__ */ e.jsx(
1220
1340
  "span",
1221
1341
  {
1222
1342
  className: "small",
@@ -1226,157 +1346,157 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1226
1346
  ]
1227
1347
  }
1228
1348
  ),
1229
- h ? /* @__PURE__ */ e.jsx("div", { className: R(), children: g }) : ""
1349
+ h ? /* @__PURE__ */ e.jsx("div", { className: A(), children: N }) : ""
1230
1350
  ] });
1231
- }, Ae = ({
1351
+ }, R1 = ({
1232
1352
  title: n,
1233
- active: t,
1353
+ active: l,
1234
1354
  disabled: r,
1235
1355
  element: i,
1236
1356
  rounded: c,
1237
- dropLeft: a,
1357
+ dropLeft: x,
1238
1358
  children: o,
1239
- ...x
1240
- }) => /* @__PURE__ */ e.jsxs("div", { className: `muncher-dropdown-nav ${a ? "drop-left" : ""}`, children: [
1359
+ ...a
1360
+ }) => /* @__PURE__ */ e.jsxs("div", { className: `muncher-dropdown-nav ${x ? "drop-left" : ""}`, children: [
1241
1361
  /* @__PURE__ */ e.jsx(
1242
- O,
1362
+ V,
1243
1363
  {
1244
1364
  type: "nav",
1245
1365
  title: n,
1246
1366
  disabled: r,
1247
1367
  rounded: c,
1248
- active: t,
1249
- ...x,
1368
+ active: l,
1369
+ ...a,
1250
1370
  children: i
1251
1371
  }
1252
1372
  ),
1253
1373
  /* @__PURE__ */ e.jsx("div", { className: "muncher-dropdown-nav--content", children: o })
1254
- ] }), ge = (n) => {
1374
+ ] }), g1 = (n) => {
1255
1375
  navigator.clipboard.writeText(n);
1256
- }, be = ({
1376
+ }, b1 = ({
1257
1377
  text: n,
1258
- variant: t = "secondary",
1378
+ variant: l = "secondary",
1259
1379
  size: r = "small"
1260
1380
  }) => {
1261
- const [i, c] = S(), [a, o] = S("copy"), [x, j] = S("copy link"), u = () => {
1262
- ge(n), c("green"), o("check"), j("copied!"), setTimeout(function() {
1381
+ const [i, c] = S(), [x, o] = S("copy"), [a, j] = S("copy link"), y = () => {
1382
+ g1(n), c("green"), o("check"), j("copied!"), setTimeout(function() {
1263
1383
  c(""), o("copy");
1264
1384
  }, 2e3);
1265
1385
  };
1266
1386
  return /* @__PURE__ */ e.jsx(
1267
- O,
1387
+ V,
1268
1388
  {
1269
1389
  size: r,
1270
- variant: t,
1271
- title: x,
1272
- onClick: u,
1273
- children: /* @__PURE__ */ e.jsx(N, { name: a, color: i })
1390
+ variant: l,
1391
+ title: a,
1392
+ onClick: y,
1393
+ children: /* @__PURE__ */ e.jsx(w, { name: x, color: i })
1274
1394
  }
1275
1395
  );
1276
- }, _e = ({
1396
+ }, T1 = ({
1277
1397
  variant: n = "secondary",
1278
- size: t = "medium",
1398
+ size: l = "medium",
1279
1399
  title: r
1280
1400
  }) => {
1281
1401
  const [i, c] = S(!1);
1282
1402
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-share", children: /* @__PURE__ */ e.jsxs(
1283
- ve,
1403
+ v1,
1284
1404
  {
1285
1405
  title: "Share to Social Media",
1286
1406
  showContent: i,
1287
1407
  setShowContent: c,
1288
1408
  variant: n,
1289
- size: t,
1290
- element: /* @__PURE__ */ e.jsx(N, { name: "share", orientation: "right", children: "Share" }),
1409
+ size: l,
1410
+ element: /* @__PURE__ */ e.jsx(w, { name: "share", orientation: "right", children: "Share" }),
1291
1411
  children: [
1292
- /* @__PURE__ */ e.jsx(O, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
1412
+ /* @__PURE__ */ e.jsx(V, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
1293
1413
  "a",
1294
1414
  {
1295
1415
  href: "https://twitter.com/share?url=" + window.location.href + "&text=" + r,
1296
1416
  target: "_blank",
1297
1417
  title: "Share link to Twitter",
1298
- children: /* @__PURE__ */ e.jsx(N, { name: "twitter" })
1418
+ children: /* @__PURE__ */ e.jsx(w, { name: "twitter" })
1299
1419
  }
1300
1420
  ) }),
1301
- /* @__PURE__ */ e.jsx(O, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
1421
+ /* @__PURE__ */ e.jsx(V, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
1302
1422
  "a",
1303
1423
  {
1304
1424
  href: "https://www.facebook.com/sharer/sharer.php?u=" + window.location.href,
1305
1425
  target: "_blank",
1306
1426
  title: "Share link to Facebook",
1307
- children: /* @__PURE__ */ e.jsx(N, { name: "facebook" })
1427
+ children: /* @__PURE__ */ e.jsx(w, { name: "facebook" })
1308
1428
  }
1309
1429
  ) }),
1310
- /* @__PURE__ */ e.jsx(O, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
1430
+ /* @__PURE__ */ e.jsx(V, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
1311
1431
  "a",
1312
1432
  {
1313
1433
  href: "mailto:?subject=" + r + "&body=" + window.location.href,
1314
1434
  target: "_blank",
1315
1435
  title: "share link by Email",
1316
- children: /* @__PURE__ */ e.jsx(N, { name: "mail" })
1436
+ children: /* @__PURE__ */ e.jsx(w, { name: "mail" })
1317
1437
  }
1318
1438
  ) }),
1319
- /* @__PURE__ */ e.jsx(be, { text: window.location.href })
1439
+ /* @__PURE__ */ e.jsx(b1, { text: window.location.href })
1320
1440
  ]
1321
1441
  }
1322
1442
  ) });
1323
- }, we = ({
1443
+ }, M1 = ({
1324
1444
  header: n,
1325
- data: t,
1445
+ data: l,
1326
1446
  filename: r,
1327
1447
  variant: i,
1328
1448
  size: c,
1329
- title: a,
1449
+ title: x,
1330
1450
  active: o,
1331
- disabled: x,
1451
+ disabled: a,
1332
1452
  rounded: j
1333
1453
  }) => {
1334
- const u = encodeURI("data:text/csv;charset=utf-8," + n.join(",") + `
1335
- ` + t.map((d) => d.join(",")).join(`
1454
+ const y = encodeURI("data:text/csv;charset=utf-8," + n.join(",") + `
1455
+ ` + l.map((d) => d.join(",")).join(`
1336
1456
  `));
1337
- return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(O, { variant: i, size: c, active: o, disabled: x, rounded: j, children: /* @__PURE__ */ e.jsx("a", { href: u, download: r + ".csv", children: /* @__PURE__ */ e.jsx(N, { name: "download", children: a || "Download" }) }) }) });
1338
- }, Ne = ({
1457
+ return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(V, { variant: i, size: c, active: o, disabled: a, rounded: j, children: /* @__PURE__ */ e.jsx("a", { href: y, download: r + ".csv", children: /* @__PURE__ */ e.jsx(w, { name: "download", children: x || "Download" }) }) }) });
1458
+ }, w1 = ({
1339
1459
  variant: n = "transparent",
1340
- size: t = "small",
1460
+ size: l = "small",
1341
1461
  title: r,
1342
1462
  sortAsc: i = "true",
1343
1463
  active: c,
1344
- rounded: a,
1464
+ rounded: x,
1345
1465
  onClick: o,
1346
- children: x
1466
+ children: a
1347
1467
  }) => {
1348
- const [j, u] = S(!1), d = () => !c || c && !j ? i ? /* @__PURE__ */ e.jsx(N, { name: "sort-asc" }) : /* @__PURE__ */ e.jsx(N, { name: "sort-desc" }) : i ? /* @__PURE__ */ e.jsx(N, { name: "sort-desc" }) : /* @__PURE__ */ e.jsx(N, { name: "sort-asc" });
1468
+ const [j, y] = S(!1), d = () => !c || c && !j ? i ? /* @__PURE__ */ e.jsx(w, { name: "sort-asc" }) : /* @__PURE__ */ e.jsx(w, { name: "sort-desc" }) : i ? /* @__PURE__ */ e.jsx(w, { name: "sort-desc" }) : /* @__PURE__ */ e.jsx(w, { name: "sort-asc" });
1349
1469
  return /* @__PURE__ */ e.jsxs(
1350
- O,
1470
+ V,
1351
1471
  {
1352
1472
  variant: n,
1353
- size: t,
1473
+ size: l,
1354
1474
  title: r,
1355
- rounded: a,
1475
+ rounded: x,
1356
1476
  onMouseEnter: () => {
1357
- u(!0);
1477
+ y(!0);
1358
1478
  },
1359
1479
  onMouseLeave: () => {
1360
- u(!1);
1480
+ y(!1);
1361
1481
  },
1362
1482
  onClick: o,
1363
1483
  children: [
1364
- x,
1484
+ a,
1365
1485
  c || j ? /* @__PURE__ */ e.jsx(d, {}) : ""
1366
1486
  ]
1367
1487
  }
1368
1488
  );
1369
- }, xe = ({
1489
+ }, a1 = ({
1370
1490
  direction: n,
1371
- size: t = "small",
1491
+ size: l = "small",
1372
1492
  weight: r,
1373
1493
  isDisabled: i,
1374
1494
  variant: c = "primary",
1375
- navIcon: a = "chevron",
1495
+ navIcon: x = "chevron",
1376
1496
  onClick: o
1377
1497
  }) => {
1378
- const x = () => {
1379
- switch (a) {
1498
+ const a = () => {
1499
+ switch (x) {
1380
1500
  case "arrow":
1381
1501
  return n === "left" ? "arrow-left" : "arrow-right";
1382
1502
  case "skip":
@@ -1392,30 +1512,30 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1392
1512
  {
1393
1513
  className: n === "left" ? "muncher-button--navigate muncher-button--navigate-left" : "muncher-button--navigate muncher-button--navigate-right",
1394
1514
  children: /* @__PURE__ */ e.jsx(
1395
- O,
1515
+ V,
1396
1516
  {
1397
1517
  onClick: o,
1398
1518
  disabled: i,
1399
1519
  size: "small",
1400
1520
  variant: c,
1401
1521
  title: n === "left" ? "Navigate Left" : "Navigate Right",
1402
- children: /* @__PURE__ */ e.jsx(N, { name: x(), size: t, weight: r })
1522
+ children: /* @__PURE__ */ e.jsx(w, { name: a(), size: l, weight: r })
1403
1523
  }
1404
1524
  )
1405
1525
  }
1406
1526
  );
1407
- }, q = ({ label: n, onClick: t, id: r, required: i = !1 }) => /* @__PURE__ */ e.jsxs("label", { htmlFor: r, onClick: t, children: [
1527
+ }, q = ({ label: n, onClick: l, id: r, required: i = !1 }) => /* @__PURE__ */ e.jsxs("label", { htmlFor: r, onClick: l, children: [
1408
1528
  n,
1409
1529
  i ? /* @__PURE__ */ e.jsx("span", { className: "required", children: "*" }) : ""
1410
- ] }), ze = ({
1530
+ ] }), _1 = ({
1411
1531
  name: n,
1412
- required: t = !1,
1532
+ required: l = !1,
1413
1533
  onChange: r,
1414
1534
  checked: i = !1,
1415
1535
  label: c,
1416
- ...a
1536
+ ...x
1417
1537
  }) => {
1418
- const [o, x] = S(i || !1);
1538
+ const [o, a] = S(i || !1);
1419
1539
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-checkbox", children: [
1420
1540
  /* @__PURE__ */ e.jsx(
1421
1541
  "input",
@@ -1424,54 +1544,54 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1424
1544
  id: n,
1425
1545
  name: n,
1426
1546
  onChange: (j) => {
1427
- x(j.target.checked), r && r();
1547
+ a(j.target.checked), r && r();
1428
1548
  },
1429
1549
  checked: o,
1430
- required: t,
1431
- ...a
1550
+ required: l,
1551
+ ...x
1432
1552
  }
1433
1553
  ),
1434
1554
  c ? /* @__PURE__ */ e.jsx(
1435
1555
  q,
1436
1556
  {
1437
1557
  label: c,
1438
- required: t,
1558
+ required: l,
1439
1559
  id: n,
1440
1560
  onClick: (j) => {
1441
- j.preventDefault(), x(!o), r && r();
1561
+ j.preventDefault(), a(!o), r && r();
1442
1562
  }
1443
1563
  }
1444
1564
  ) : ""
1445
1565
  ] }) });
1446
- }, he = ({ size: n, ...t }) => /* @__PURE__ */ e.jsx(
1566
+ }, h1 = ({ size: n, ...l }) => /* @__PURE__ */ e.jsx(
1447
1567
  "div",
1448
1568
  {
1449
1569
  className: n ? "muncher-spinner muncher-spinner-" + n : "muncher-spinner",
1450
- ...t
1570
+ ...l
1451
1571
  }
1452
- ), Me = ({
1572
+ ), N1 = ({
1453
1573
  name: n,
1454
- label: t,
1574
+ label: l,
1455
1575
  variant: r = "secondary",
1456
1576
  size: i = "medium",
1457
1577
  required: c,
1458
- active: a,
1578
+ active: x,
1459
1579
  isUploading: o,
1460
- handleOnChange: x,
1580
+ handleOnChange: a,
1461
1581
  warningMessage: j,
1462
- successMessage: u,
1582
+ successMessage: y,
1463
1583
  ...d
1464
1584
  }) => {
1465
- const h = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), p = (f) => {
1466
- x && x(f.currentTarget.files[0]);
1585
+ const h = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (x ? " muncher-button--active" : ""), p = (v) => {
1586
+ a && a(v.currentTarget.files[0]);
1467
1587
  };
1468
1588
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-file-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
1469
1589
  /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: h, children: [
1470
- /* @__PURE__ */ e.jsx(N, { name: "upload" }),
1590
+ /* @__PURE__ */ e.jsx(w, { name: "upload" }),
1471
1591
  " ",
1472
- t || "Upload CSV",
1592
+ l || "Upload CSV",
1473
1593
  c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : "",
1474
- o ? /* @__PURE__ */ e.jsx(he, { size: "tiny" }) : ""
1594
+ o ? /* @__PURE__ */ e.jsx(h1, { size: "tiny" }) : ""
1475
1595
  ] }),
1476
1596
  /* @__PURE__ */ e.jsx(
1477
1597
  "input",
@@ -1486,34 +1606,34 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1486
1606
  }
1487
1607
  ),
1488
1608
  j && j !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: j }) : "",
1489
- u && u !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-success", children: u }) : ""
1609
+ y && y !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-success", children: y }) : ""
1490
1610
  ] }) });
1491
- }, Se = ({
1611
+ }, S1 = ({
1492
1612
  name: n,
1493
- label: t,
1613
+ label: l,
1494
1614
  variant: r = "secondary",
1495
1615
  size: i = "large",
1496
1616
  required: c,
1497
- active: a,
1617
+ active: x,
1498
1618
  setFiles: o,
1499
- error: x,
1619
+ error: a,
1500
1620
  multiple: j = !1,
1501
- maxFiles: u,
1621
+ maxFiles: y,
1502
1622
  ...d
1503
1623
  }) => {
1504
- const [h, p] = S(""), [f, g] = S(""), b = u || 3, E = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), v = (T) => {
1624
+ const [h, p] = S(""), [v, N] = S(""), g = y || 3, _ = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (x ? " muncher-button--active" : ""), f = (C) => {
1505
1625
  if (j) {
1506
- let R = Array.from(T.currentTarget.files);
1507
- R.length > b && (R = R.slice(0, b), g("Only first " + b + " files included")), o(R), p(R.map((C) => C.name).join(", "));
1626
+ let A = Array.from(C.currentTarget.files);
1627
+ A.length > g && (A = A.slice(0, g), N("Only first " + g + " files included")), o(A), p(A.map((b) => b.name).join(", "));
1508
1628
  } else
1509
- o(Array.from(T.currentTarget.files[0])), p(T.currentTarget.files[0].name);
1510
- }, k = () => x && x !== "";
1629
+ o(Array.from(C.currentTarget.files[0])), p(C.currentTarget.files[0].name);
1630
+ }, E = () => a && a !== "";
1511
1631
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-file-input--div", children: [
1512
1632
  /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
1513
- /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: E, children: [
1514
- /* @__PURE__ */ e.jsx(N, { name: "image" }),
1633
+ /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: _, children: [
1634
+ /* @__PURE__ */ e.jsx(w, { name: "image" }),
1515
1635
  " ",
1516
- t,
1636
+ l,
1517
1637
  c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : ""
1518
1638
  ] }),
1519
1639
  /* @__PURE__ */ e.jsx("span", { className: "span-file-name", children: h }),
@@ -1524,53 +1644,53 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1524
1644
  type: "file",
1525
1645
  className: "muncher-file-input",
1526
1646
  name: n,
1527
- onChange: v,
1647
+ onChange: f,
1528
1648
  multiple: j,
1529
1649
  accept: "image/*",
1530
1650
  ...d
1531
1651
  }
1532
1652
  )
1533
1653
  ] }),
1534
- f !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: f }) : "",
1535
- k() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(N, { name: "alert", children: x }) }) : ""
1654
+ v !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: v }) : "",
1655
+ E() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: a }) }) : ""
1536
1656
  ] });
1537
- }, ke = ({
1657
+ }, k1 = ({
1538
1658
  name: n,
1539
- label: t,
1659
+ label: l,
1540
1660
  required: r,
1541
1661
  readOnly: i,
1542
1662
  icon: c,
1543
- hoverIcon: a,
1663
+ hoverIcon: x,
1544
1664
  onHoverIconClick: o,
1545
- type: x = "text",
1665
+ type: a = "text",
1546
1666
  list: j,
1547
- onBlur: u,
1667
+ onBlur: y,
1548
1668
  labelPosition: d = "top",
1549
1669
  onKeyDown: h,
1550
1670
  error: p,
1551
- focus: f = !1,
1552
- placeholder: g,
1553
- onChange: b,
1554
- step: E,
1555
- value: v,
1556
- maxLength: k,
1557
- onEnterPress: T,
1558
- displayLoader: R,
1559
- ...C
1671
+ focus: v = !1,
1672
+ placeholder: N,
1673
+ onChange: g,
1674
+ step: _,
1675
+ value: f,
1676
+ maxLength: E,
1677
+ onEnterPress: C,
1678
+ displayLoader: A,
1679
+ ...b
1560
1680
  }) => {
1561
1681
  const H = () => p && p !== "", P = () => {
1562
- let A = "muncher-input";
1563
- return (c || a) && (A += " muncher-input-icon"), H() && (A += " muncher-input-error"), d === "side" && (A += " muncher-label-side"), A;
1564
- }, m = () => t ? /* @__PURE__ */ e.jsx(q, { label: t, required: r, id: n }) : "", M = (A) => {
1565
- A.key === "Enter" && T && T(), h && h(A);
1682
+ let z = "muncher-input";
1683
+ return (c || x) && (z += " muncher-input-icon"), H() && (z += " muncher-input-error"), d === "side" && (z += " muncher-label-side"), z;
1684
+ }, m = () => l ? /* @__PURE__ */ e.jsx(q, { label: l, required: r, id: n }) : "", k = (z) => {
1685
+ z.key === "Enter" && C && C(), h && h(z);
1566
1686
  };
1567
1687
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
1568
1688
  d !== "side" ? m() : "",
1569
1689
  /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-element", children: [
1570
1690
  d === "side" ? m() : "",
1571
- c ? /* @__PURE__ */ e.jsx(N, { name: c }) : "",
1572
- a ? /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon-hover", children: [
1573
- /* @__PURE__ */ e.jsx(N, { name: a, onClick: o }),
1691
+ c ? /* @__PURE__ */ e.jsx(w, { name: c }) : "",
1692
+ x ? /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon-hover", children: [
1693
+ /* @__PURE__ */ e.jsx(w, { name: x, onClick: o }),
1574
1694
  " "
1575
1695
  ] }) : "",
1576
1696
  /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-wrapper", children: [
@@ -1580,28 +1700,28 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1580
1700
  id: n,
1581
1701
  className: P(),
1582
1702
  name: n,
1583
- autoFocus: f,
1584
- value: v,
1585
- type: x || "text",
1703
+ autoFocus: v,
1704
+ value: f,
1705
+ type: a || "text",
1586
1706
  autoComplete: "off",
1587
- placeholder: g,
1588
- onChange: b,
1707
+ placeholder: N,
1708
+ onChange: g,
1589
1709
  required: r,
1590
1710
  readOnly: i,
1591
1711
  list: j,
1592
- onKeyDown: M,
1593
- onBlur: u,
1594
- step: E,
1595
- maxLength: k,
1596
- ...C
1712
+ onKeyDown: k,
1713
+ onBlur: y,
1714
+ step: _,
1715
+ maxLength: E,
1716
+ ...b
1597
1717
  }
1598
1718
  ),
1599
- R ? /* @__PURE__ */ e.jsx(he, { size: "tiny" }) : ""
1719
+ A ? /* @__PURE__ */ e.jsx(h1, { size: "tiny" }) : ""
1600
1720
  ] })
1601
1721
  ] }),
1602
- H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(N, { name: "alert", children: p }) }) : ""
1722
+ H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: p }) }) : ""
1603
1723
  ] });
1604
- }, He = ({ name: n, required: t = !1, onChange: r, checked: i = !1, label: c, ...a }) => /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-radio", children: [
1724
+ }, H1 = ({ name: n, required: l = !1, onChange: r, checked: i = !1, label: c, ...x }) => /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-radio", children: [
1605
1725
  /* @__PURE__ */ e.jsx(
1606
1726
  "input",
1607
1727
  {
@@ -1609,33 +1729,33 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1609
1729
  name: n,
1610
1730
  onChange: r,
1611
1731
  checked: i,
1612
- ...a
1732
+ ...x
1613
1733
  }
1614
1734
  ),
1615
1735
  c ? /* @__PURE__ */ e.jsx(
1616
1736
  q,
1617
1737
  {
1618
1738
  label: c,
1619
- required: t,
1739
+ required: l,
1620
1740
  onClick: () => {
1621
1741
  r && r();
1622
1742
  }
1623
1743
  }
1624
1744
  ) : ""
1625
- ] }) }), Ce = ({
1745
+ ] }) }), C1 = ({
1626
1746
  name: n,
1627
- options: t,
1747
+ options: l,
1628
1748
  label: r,
1629
1749
  required: i,
1630
1750
  multiple: c,
1631
- error: a,
1751
+ error: x,
1632
1752
  onChange: o,
1633
- value: x,
1753
+ value: a,
1634
1754
  ...j
1635
1755
  }) => {
1636
- const u = () => a && a !== "", d = () => {
1756
+ const y = () => x && x !== "", d = () => {
1637
1757
  let h = "muncher-input";
1638
- return u() && (h += " muncher-input-error"), h;
1758
+ return y() && (h += " muncher-input-error"), h;
1639
1759
  };
1640
1760
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
1641
1761
  r ? /* @__PURE__ */ e.jsx(q, { label: r, required: i, id: n }) : "",
@@ -1645,133 +1765,134 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1645
1765
  id: n,
1646
1766
  className: d(),
1647
1767
  name: n,
1648
- value: x,
1768
+ value: a,
1649
1769
  onChange: o,
1650
1770
  required: i,
1651
1771
  multiple: c,
1652
1772
  ...j,
1653
1773
  children: [
1654
1774
  i ? /* @__PURE__ */ e.jsx("option", { value: "", children: "-- Select --" }) : "",
1655
- t.map(
1775
+ l.map(
1656
1776
  (h, p) => /* @__PURE__ */ e.jsx("option", { value: h.value, children: h.label }, `select-option-${p}`)
1657
1777
  )
1658
1778
  ]
1659
1779
  }
1660
1780
  ) }),
1661
- u() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(N, { name: "alert", children: a }) }) : ""
1781
+ y() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: x }) }) : ""
1662
1782
  ] });
1663
- }, Oe = ({
1783
+ }, V1 = ({
1664
1784
  name: n,
1665
- label: t,
1785
+ label: l,
1666
1786
  required: r,
1667
1787
  readOnly: i = !1,
1668
1788
  rows: c = 6,
1669
- maxLength: a = 1e3,
1789
+ maxLength: x = 1e3,
1670
1790
  focus: o = !1,
1671
- placeholder: x,
1791
+ placeholder: a,
1672
1792
  onChange: j,
1673
- value: u,
1793
+ value: y,
1674
1794
  ...d
1675
1795
  }) => {
1676
- const [h, p] = S(u), f = (g) => {
1677
- p(g.target.value), j && j(g);
1796
+ const [h, p] = S(y), v = (N) => {
1797
+ p(N.target.value), j && j(N);
1678
1798
  };
1679
1799
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
1680
- t ? /* @__PURE__ */ e.jsx(q, { label: t, required: r, id: n }) : "",
1800
+ l ? /* @__PURE__ */ e.jsx(q, { label: l, required: r, id: n }) : "",
1681
1801
  /* @__PURE__ */ e.jsx(
1682
1802
  "textarea",
1683
1803
  {
1684
1804
  id: n,
1685
1805
  className: "muncher-textarea",
1686
1806
  rows: c,
1687
- maxLength: a,
1807
+ maxLength: x,
1688
1808
  name: n,
1689
1809
  autoFocus: o,
1690
- value: u,
1691
- placeholder: x,
1692
- onChange: f,
1810
+ value: y,
1811
+ placeholder: a,
1812
+ onChange: v,
1693
1813
  required: r,
1694
1814
  readOnly: i,
1695
1815
  ...d
1696
1816
  }
1697
1817
  ),
1698
1818
  /* @__PURE__ */ e.jsxs("p", { children: [
1699
- h ? a ? a - h.length : 1e3 : a,
1819
+ h ? x ? x - h.length : 1e3 : x,
1700
1820
  " characters left"
1701
1821
  ] })
1702
1822
  ] });
1703
- }, Ve = ({
1704
- focus: n = !1,
1705
- inputPlaceHolder: t,
1706
- handleInputChange: r,
1707
- showContent: i = !1,
1708
- setShowContent: c,
1709
- readOnly: a,
1710
- value: o,
1711
- label: x,
1712
- error: j,
1713
- required: u,
1714
- onEnterPress: d,
1715
- list: h,
1716
- displayLoader: p,
1717
- children: f
1823
+ }, L1 = ({
1824
+ name: n = "query",
1825
+ focus: l = !1,
1826
+ inputPlaceHolder: r,
1827
+ handleInputChange: i,
1828
+ showContent: c = !1,
1829
+ setShowContent: x,
1830
+ readOnly: o,
1831
+ value: a,
1832
+ label: j,
1833
+ error: y,
1834
+ required: d,
1835
+ onEnterPress: h,
1836
+ list: p,
1837
+ displayLoader: v,
1838
+ children: N
1718
1839
  }) => {
1719
- const g = de(null), b = (k) => {
1720
- c(!0), r(k.target.value);
1721
- }, E = G(() => {
1722
- c(!1);
1723
- }, [c]), v = G((k) => {
1724
- k.keyCode === 27 && E();
1725
- }, [E]);
1840
+ const g = d1(null), _ = (C) => {
1841
+ x(!0), i(C.target.value);
1842
+ }, f = G(() => {
1843
+ x(!1);
1844
+ }, [x]), E = G((C) => {
1845
+ C.keyCode === 27 && f();
1846
+ }, [f]);
1726
1847
  return Q(() => {
1727
- const k = (T) => {
1848
+ const C = (A) => {
1728
1849
  if (g && g !== null) {
1729
- const R = g.current;
1730
- R && !R.contains(T.target) && E();
1850
+ const b = g.current;
1851
+ b && !b.contains(A.target) && f();
1731
1852
  }
1732
1853
  };
1733
- return document.addEventListener("keydown", v, !1), document.addEventListener("mousedown", k), () => {
1734
- document.removeEventListener("keydown", v, !1);
1854
+ return document.addEventListener("keydown", E, !1), document.addEventListener("mousedown", C), () => {
1855
+ document.removeEventListener("keydown", E, !1);
1735
1856
  };
1736
- }, [v, E]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref: g, children: [
1857
+ }, [E, f]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref: g, children: [
1737
1858
  /* @__PURE__ */ e.jsx(
1738
- ke,
1859
+ k1,
1739
1860
  {
1740
- focus: n,
1741
- placeholder: t,
1742
- name: "query",
1743
- onChange: b,
1744
- onEnterPress: d,
1745
- list: h,
1746
- displayLoader: p,
1747
- readOnly: a,
1748
- value: o,
1749
- label: x,
1750
- required: u,
1751
- error: j
1861
+ focus: l,
1862
+ placeholder: r,
1863
+ name: n,
1864
+ onChange: _,
1865
+ onEnterPress: h,
1866
+ list: p,
1867
+ displayLoader: v,
1868
+ readOnly: o,
1869
+ value: a,
1870
+ label: j,
1871
+ required: d,
1872
+ error: y
1752
1873
  }
1753
1874
  ),
1754
- i ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children: f }) : ""
1875
+ c ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children: N }) : ""
1755
1876
  ] });
1756
- }, Le = ({ children: n }) => /* @__PURE__ */ e.jsx("ul", { className: "muncher-ul", children: n }), Pe = ({ isFeatured: n, bulletIcon: t = "arrow-right", bulletWeight: r = 2, bulletSize: i = "small", bulletColor: c, children: a }) => /* @__PURE__ */ e.jsx("li", { className: n ? "muncher-li featured" : "muncher-li", children: /* @__PURE__ */ e.jsx(
1757
- N,
1877
+ }, O1 = ({ children: n }) => /* @__PURE__ */ e.jsx("ul", { className: "muncher-ul", children: n }), P1 = ({ isFeatured: n, bulletIcon: l = "arrow-right", bulletWeight: r = 2, bulletSize: i = "small", bulletColor: c, children: x }) => /* @__PURE__ */ e.jsx("li", { className: n ? "muncher-li featured" : "muncher-li", children: /* @__PURE__ */ e.jsx(
1878
+ w,
1758
1879
  {
1759
- name: t,
1880
+ name: l,
1760
1881
  weight: r,
1761
1882
  size: i,
1762
1883
  color: c,
1763
- children: a
1884
+ children: x
1764
1885
  }
1765
- ) }), De = ({ show: n = !1, setShow: t, children: r, ...i }) => {
1766
- const c = G((a) => {
1767
- a.keyCode === 27 && t(!1);
1768
- }, [t]);
1886
+ ) }), D1 = ({ show: n = !1, setShow: l, children: r, ...i }) => {
1887
+ const c = G((x) => {
1888
+ x.keyCode === 27 && l(!1);
1889
+ }, [l]);
1769
1890
  return Q(() => (document.addEventListener("keydown", c, !1), () => {
1770
1891
  document.removeEventListener("keydown", c, !1);
1771
1892
  }), [c]), Q(() => {
1772
1893
  n ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset";
1773
- }, [n]), /* @__PURE__ */ e.jsxs(oe.Fragment, { children: [
1774
- /* @__PURE__ */ e.jsx(me, { show: n, backdropClickHandler: () => t(!1) }),
1894
+ }, [n]), /* @__PURE__ */ e.jsxs(o1.Fragment, { children: [
1895
+ /* @__PURE__ */ e.jsx(m1, { show: n, backdropClickHandler: () => l(!1) }),
1775
1896
  /* @__PURE__ */ e.jsx(
1776
1897
  "div",
1777
1898
  {
@@ -1785,102 +1906,102 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1785
1906
  }
1786
1907
  )
1787
1908
  ] });
1788
- }, Fe = ({ showHoverEffect: n, onClick: t, children: r }) => {
1909
+ }, F1 = ({ showHoverEffect: n, onClick: l, children: r }) => {
1789
1910
  const i = () => n ? "muncher-paper muncher-paper-hover" : "muncher-paper";
1790
- return /* @__PURE__ */ e.jsx("section", { className: i(), onClick: t, children: r });
1791
- }, Ie = ({ pillCloseHandler: n, children: t, ...r }) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-pill", ...r, children: [
1792
- /* @__PURE__ */ e.jsx("div", { className: "close", onClick: n, children: /* @__PURE__ */ e.jsx(N, { name: "close" }) }),
1911
+ return /* @__PURE__ */ e.jsx("section", { className: i(), onClick: l, children: r });
1912
+ }, I1 = ({ pillCloseHandler: n, children: l, ...r }) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-pill", ...r, children: [
1913
+ /* @__PURE__ */ e.jsx("div", { className: "close", onClick: n, children: /* @__PURE__ */ e.jsx(w, { name: "close" }) }),
1793
1914
  /* @__PURE__ */ e.jsxs("div", { className: "content", children: [
1794
1915
  " ",
1795
- t
1916
+ l
1796
1917
  ] })
1797
- ] }), $e = ({ value: n, max: t, label: r }) => {
1918
+ ] }), $1 = ({ value: n, max: l, label: r }) => {
1798
1919
  const i = () => {
1799
- const c = Math.round(n / t * 100) + "%";
1920
+ const c = Math.round(n / l * 100) + "%";
1800
1921
  return r ? r + " " + c : c;
1801
1922
  };
1802
1923
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-progress", children: [
1803
1924
  /* @__PURE__ */ e.jsx("label", { htmlFor: "progress", children: i() }),
1804
- /* @__PURE__ */ e.jsx("progress", { id: "progress", value: n, max: t, children: i() })
1925
+ /* @__PURE__ */ e.jsx("progress", { id: "progress", value: n, max: l, children: i() })
1805
1926
  ] });
1806
- }, Ye = ({ variant: n, size: t, style: r }) => {
1807
- const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (t ? " muncher-hr--" + t : "") + (r ? " muncher-hr--" + r : "");
1927
+ }, Y1 = ({ variant: n, size: l, style: r }) => {
1928
+ const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (l ? " muncher-hr--" + l : "") + (r ? " muncher-hr--" + r : "");
1808
1929
  return /* @__PURE__ */ e.jsx("hr", { className: i });
1809
- }, Ue = ({ sliderItems: n, navButtonSize: t = "large", navButtonWeight: r = 2, variant: i, navIcon: c, navButtonPlacement: a = "inside" }) => {
1810
- const [o, x] = S(0), [j, u] = S(0), d = () => n.length > 1 && o > 0 ? /* @__PURE__ */ e.jsx(
1811
- xe,
1930
+ }, U1 = ({ sliderItems: n, navButtonSize: l = "large", navButtonWeight: r = 2, variant: i, navIcon: c, navButtonPlacement: x = "inside" }) => {
1931
+ const [o, a] = S(0), [j, y] = S(0), d = () => n.length > 1 && o > 0 ? /* @__PURE__ */ e.jsx(
1932
+ a1,
1812
1933
  {
1813
1934
  direction: "left",
1814
- size: t,
1935
+ size: l,
1815
1936
  variant: i,
1816
1937
  navIcon: c,
1817
1938
  weight: r,
1818
1939
  onClick: () => {
1819
- o === 0 ? (u(-(n.length - 1) * 100), x(n.length - 1)) : (u(j + 100), x(o - 1));
1940
+ o === 0 ? (y(-(n.length - 1) * 100), a(n.length - 1)) : (y(j + 100), a(o - 1));
1820
1941
  }
1821
1942
  }
1822
1943
  ) : "", h = () => n.length > 1 && o < n.length - 1 ? /* @__PURE__ */ e.jsx(
1823
- xe,
1944
+ a1,
1824
1945
  {
1825
1946
  direction: "right",
1826
- size: t,
1947
+ size: l,
1827
1948
  weight: r,
1828
1949
  navIcon: c,
1829
1950
  variant: i,
1830
1951
  onClick: () => {
1831
- o === n.length - 1 ? (x(0), u(0)) : (u(j - 100), x(o + 1));
1952
+ o === n.length - 1 ? (a(0), y(0)) : (y(j - 100), a(o + 1));
1832
1953
  }
1833
1954
  }
1834
1955
  ) : "";
1835
- return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider-wrapper--" + a, children: [
1836
- a === "outside" ? d() : "",
1956
+ return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider-wrapper--" + x, children: [
1957
+ x === "outside" ? d() : "",
1837
1958
  /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider", children: [
1838
- a === "inside" ? d() : "",
1959
+ x === "inside" ? d() : "",
1839
1960
  /* @__PURE__ */ e.jsx("div", { className: "slider-container", style: { width: `${100 * n.length}%` }, children: n.map(
1840
- (p, f) => /* @__PURE__ */ e.jsx(
1961
+ (p, v) => /* @__PURE__ */ e.jsx(
1841
1962
  "div",
1842
1963
  {
1843
1964
  className: "slider-item",
1844
1965
  style: { transform: `translateX(${j}%)` },
1845
1966
  children: p
1846
1967
  },
1847
- "slider-item" + f
1968
+ "slider-item" + v
1848
1969
  )
1849
1970
  ) }),
1850
- a === "inside" ? h() : ""
1971
+ x === "inside" ? h() : ""
1851
1972
  ] }),
1852
- a === "outside" ? h() : ""
1973
+ x === "outside" ? h() : ""
1853
1974
  ] });
1854
- }, We = ({
1975
+ }, W1 = ({
1855
1976
  min: n,
1856
- max: t,
1977
+ max: l,
1857
1978
  minValue: r,
1858
1979
  maxValue: i,
1859
1980
  setMinValue: c,
1860
- setMaxValue: a,
1861
- numberFormatter: o = (x) => new Intl.NumberFormat("en-US", {
1981
+ setMaxValue: x,
1982
+ numberFormatter: o = (a) => new Intl.NumberFormat("en-US", {
1862
1983
  style: "currency",
1863
1984
  currency: "USD"
1864
- }).format(x)
1985
+ }).format(a)
1865
1986
  }) => {
1866
- const x = (d) => {
1987
+ const a = (d) => {
1867
1988
  const h = +d.target.value, p = h < i - 1 ? h : r;
1868
1989
  c(p);
1869
1990
  }, j = (d) => {
1870
1991
  const h = +d.target.value, p = h > r + 1 ? h : i;
1871
- a(p);
1872
- }, u = (d) => o && d ? o(d) : d;
1992
+ x(p);
1993
+ }, y = (d) => o && d ? o(d) : d;
1873
1994
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
1874
- /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: u(r) + " - " + u(i) }) }),
1995
+ /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: y(r) + " - " + y(i) }) }),
1875
1996
  /* @__PURE__ */ e.jsx(
1876
1997
  "input",
1877
1998
  {
1878
1999
  className: "muncher-range",
1879
2000
  type: "range",
1880
2001
  min: n,
1881
- max: t,
2002
+ max: l,
1882
2003
  value: r,
1883
- onChange: x
2004
+ onChange: a
1884
2005
  }
1885
2006
  ),
1886
2007
  /* @__PURE__ */ e.jsx(
@@ -1889,158 +2010,158 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
1889
2010
  className: "muncher-range",
1890
2011
  type: "range",
1891
2012
  min: n,
1892
- max: t,
2013
+ max: l,
1893
2014
  value: i,
1894
2015
  onChange: j
1895
2016
  }
1896
2017
  ),
1897
2018
  /* @__PURE__ */ e.jsxs("div", { className: "slider-values", children: [
1898
- /* @__PURE__ */ e.jsx("div", { className: "slider-min", children: u(n) }),
1899
- /* @__PURE__ */ e.jsx("div", { className: "slider-max", children: u(t) })
2019
+ /* @__PURE__ */ e.jsx("div", { className: "slider-min", children: y(n) }),
2020
+ /* @__PURE__ */ e.jsx("div", { className: "slider-max", children: y(l) })
1900
2021
  ] })
1901
2022
  ] });
1902
- }, Be = ({
2023
+ }, B1 = ({
1903
2024
  min: n,
1904
- max: t,
2025
+ max: l,
1905
2026
  value: r,
1906
2027
  setValue: i,
1907
- numberFormatter: c = (a) => new Intl.NumberFormat("en-US", {
2028
+ numberFormatter: c = (x) => new Intl.NumberFormat("en-US", {
1908
2029
  style: "currency",
1909
2030
  currency: "USD"
1910
- }).format(a)
2031
+ }).format(x)
1911
2032
  }) => {
1912
- const a = (x) => c ? c(x) : x, o = (x) => {
1913
- const j = +x.target.value;
2033
+ const x = (a) => c ? c(a) : a, o = (a) => {
2034
+ const j = +a.target.value;
1914
2035
  i(j);
1915
2036
  };
1916
2037
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
1917
- /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: a(r) }) }),
2038
+ /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: x(r) }) }),
1918
2039
  /* @__PURE__ */ e.jsx(
1919
2040
  "input",
1920
2041
  {
1921
2042
  className: "muncher-range",
1922
2043
  type: "range",
1923
2044
  min: n,
1924
- max: t,
2045
+ max: l,
1925
2046
  value: r,
1926
2047
  onChange: o
1927
2048
  }
1928
2049
  ),
1929
2050
  /* @__PURE__ */ e.jsxs("div", { className: "slider-values", children: [
1930
- /* @__PURE__ */ e.jsx("div", { className: "slider-min", children: a(n) }),
1931
- /* @__PURE__ */ e.jsx("div", { className: "slider-max", children: a(t) })
2051
+ /* @__PURE__ */ e.jsx("div", { className: "slider-min", children: x(n) }),
2052
+ /* @__PURE__ */ e.jsx("div", { className: "slider-max", children: x(l) })
1932
2053
  ] })
1933
2054
  ] });
1934
- }, Je = ({ isFeatured: n, onClick: t }) => /* @__PURE__ */ e.jsx("span", { className: "span-featured", children: /* @__PURE__ */ e.jsx("span", { className: n ? "featured-star" : "un-featured-star", onClick: t }) }), Ge = ({ rating: n, color: t, size: r, ...i }) => {
2055
+ }, J1 = ({ isFeatured: n, onClick: l }) => /* @__PURE__ */ e.jsx("span", { className: "span-featured", children: /* @__PURE__ */ e.jsx("span", { className: n ? "featured-star" : "un-featured-star", onClick: l }) }), G1 = ({ rating: n, color: l, size: r, ...i }) => {
1935
2056
  const c = {
1936
2057
  "--r": n
1937
- }, a = () => {
2058
+ }, x = () => {
1938
2059
  let o = "muncher-star";
1939
- return t && (o += " star-" + t), r && (o += " star-" + r), o;
2060
+ return l && (o += " star-" + l), r && (o += " star-" + r), o;
1940
2061
  };
1941
- return /* @__PURE__ */ e.jsx("span", { className: a(), style: c, ...i });
1942
- }, qe = ({ handleTabSelected: n, children: t }) => {
1943
- const [r, i] = S(0), { tabs: c } = t, a = (o) => {
2062
+ return /* @__PURE__ */ e.jsx("span", { className: x(), style: c, ...i });
2063
+ }, q1 = ({ handleTabSelected: n, children: l }) => {
2064
+ const [r, i] = S(0), { tabs: c } = l, x = (o) => {
1944
2065
  i(o), n && n(o);
1945
2066
  };
1946
2067
  return /* @__PURE__ */ e.jsxs("section", { className: "muncher-tabs", children: [
1947
2068
  /* @__PURE__ */ e.jsx("header", { children: c.map(
1948
- (o, x) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-tab-header--item", children: [
2069
+ (o, a) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-tab-header--item", children: [
1949
2070
  /* @__PURE__ */ e.jsx(
1950
- O,
2071
+ V,
1951
2072
  {
1952
2073
  variant: "transparent",
1953
- active: r === x,
2074
+ active: r === a,
1954
2075
  size: "small",
1955
2076
  title: o.headerTitle,
1956
2077
  onClick: () => {
1957
- a(x);
2078
+ x(a);
1958
2079
  },
1959
2080
  children: o.header
1960
2081
  }
1961
2082
  ),
1962
- x !== c.length - 1 ? /* @__PURE__ */ e.jsx("span", { className: "spacer", children: "|" }) : ""
1963
- ] }, "muncher-tab-header" + x)
2083
+ a !== c.length - 1 ? /* @__PURE__ */ e.jsx("span", { className: "spacer", children: "|" }) : ""
2084
+ ] }, "muncher-tab-header" + a)
1964
2085
  ) }),
1965
2086
  c.map(
1966
- (o, x) => /* @__PURE__ */ e.jsx(
2087
+ (o, a) => /* @__PURE__ */ e.jsx(
1967
2088
  "section",
1968
2089
  {
1969
- className: r === x ? "muncher-tab muncher-tab--active" : "muncher-tab",
2090
+ className: r === a ? "muncher-tab muncher-tab--active" : "muncher-tab",
1970
2091
  children: o.body
1971
2092
  },
1972
- "muncher-tab-" + x
2093
+ "muncher-tab-" + a
1973
2094
  )
1974
2095
  )
1975
2096
  ] });
1976
- }, Xe = ({
2097
+ }, X1 = ({
1977
2098
  fileName: n,
1978
- defaultPageSize: t = 50,
2099
+ defaultPageSize: l = 50,
1979
2100
  skeleton: r,
1980
2101
  handleOnUpload: i,
1981
2102
  sortBy: c,
1982
- excludeDownload: a,
2103
+ excludeDownload: x,
1983
2104
  includeUpload: o,
1984
- isUploading: x,
2105
+ isUploading: a,
1985
2106
  uploadWarningMessage: j,
1986
- uploadSuccessMessage: u,
2107
+ uploadSuccessMessage: y,
1987
2108
  excludePagination: d,
1988
2109
  footer: h,
1989
2110
  children: p
1990
2111
  }) => {
1991
- const { header: f, rows: g } = p, [b, E] = S(c ?? { index: 0 }), [v, k] = S({ num: 0, size: t }), T = (m) => {
1992
- E(
1993
- (M) => M.index === m ? { ...M, desc: !M.desc } : { index: m }
2112
+ const { header: v, rows: N } = p, [g, _] = S(c ?? { index: 0 }), [f, E] = S({ num: 0, size: l }), C = (m) => {
2113
+ _(
2114
+ (k) => k.index === m ? { ...k, desc: !k.desc } : { index: m }
1994
2115
  );
1995
- }, R = te(() => {
1996
- var A;
1997
- const m = [...g], M = (A = f[b.index]) == null ? void 0 : A.sort;
1998
- return M ? m.sort(M) : m.sort((L, X) => {
2116
+ }, A = l1(() => {
2117
+ var z;
2118
+ const m = [...N], k = (z = v[g.index]) == null ? void 0 : z.sort;
2119
+ return k ? m.sort(k) : m.sort((O, X) => {
1999
2120
  var $, Y, U, W;
2000
- const Z = ((Y = ($ = L[b.index]) == null ? void 0 : $.value) == null ? void 0 : Y.toString().toLowerCase()) ?? "", I = ((W = (U = X[b.index]) == null ? void 0 : U.value) == null ? void 0 : W.toString().toLowerCase()) ?? "";
2121
+ const Z = ((Y = ($ = O[g.index]) == null ? void 0 : $.value) == null ? void 0 : Y.toString().toLowerCase()) ?? "", I = ((W = (U = X[g.index]) == null ? void 0 : U.value) == null ? void 0 : W.toString().toLowerCase()) ?? "";
2001
2122
  return Z.localeCompare(I);
2002
- }), b.desc ? m.reverse() : m;
2003
- }, [g, b, f]), C = te(
2004
- () => R.slice(v.num * v.size, (v.num + 1) * v.size),
2005
- [R, v]
2006
- ), H = f.filter((m) => !m.csvExclude).map((m) => typeof m.name == "string" ? m.name : ""), P = g.map(
2007
- (m) => m.filter((M, A) => !f[A].csvExclude).map((M) => M.csv ?? M.value ?? "")
2123
+ }), g.desc ? m.reverse() : m;
2124
+ }, [N, g, v]), b = l1(
2125
+ () => A.slice(f.num * f.size, (f.num + 1) * f.size),
2126
+ [A, f]
2127
+ ), H = v.filter((m) => !m.csvExclude).map((m) => typeof m.name == "string" ? m.name : ""), P = N.map(
2128
+ (m) => m.filter((k, z) => !v[z].csvExclude).map((k) => k.csv ?? k.value ?? "")
2008
2129
  );
2009
2130
  return /* @__PURE__ */ e.jsxs("section", { className: "muncher-table", children: [
2010
- /* @__PURE__ */ e.jsx("div", { className: "row head", children: f.map(
2011
- (m, M) => m.visibility === "hidden" ? null : /* @__PURE__ */ e.jsx(
2131
+ /* @__PURE__ */ e.jsx("div", { className: "row head", children: v.map(
2132
+ (m, k) => m.visibility === "hidden" ? null : /* @__PURE__ */ e.jsx(
2012
2133
  "div",
2013
2134
  {
2014
2135
  title: m.title,
2015
2136
  className: m.visibility ? "col main" : "col",
2016
2137
  children: typeof m.name == "string" ? /* @__PURE__ */ e.jsx("div", { className: "sort-button", children: /* @__PURE__ */ e.jsx(
2017
- Ne,
2138
+ w1,
2018
2139
  {
2019
- onClick: () => T(M),
2020
- active: b.index === M,
2021
- sortAsc: !b.desc,
2140
+ onClick: () => C(k),
2141
+ active: g.index === k,
2142
+ sortAsc: !g.desc,
2022
2143
  children: m.name
2023
2144
  }
2024
2145
  ) }) : m.name
2025
2146
  },
2026
- `row-head-${M}`
2147
+ `row-head-${k}`
2027
2148
  )
2028
2149
  ) }),
2029
- r || C.map((m, M) => /* @__PURE__ */ e.jsx("div", { className: "row", children: m.map(
2030
- (A, L) => f[L].visibility === "hidden" ? null : /* @__PURE__ */ e.jsx(
2150
+ r || b.map((m, k) => /* @__PURE__ */ e.jsx("div", { className: "row", children: m.map(
2151
+ (z, O) => v[O].visibility === "hidden" ? null : /* @__PURE__ */ e.jsx(
2031
2152
  "div",
2032
2153
  {
2033
- className: f[L].visibility ? "col main" : "col",
2034
- children: A.content
2154
+ className: v[O].visibility ? "col main" : "col",
2155
+ children: z.content
2035
2156
  },
2036
- `row-col-${M}-${L}`
2157
+ `row-col-${k}-${O}`
2037
2158
  )
2038
- ) }, `row-${M}`)),
2159
+ ) }, `row-${k}`)),
2039
2160
  h ?? null,
2040
2161
  /* @__PURE__ */ e.jsxs("div", { className: "row-footer", children: [
2041
2162
  /* @__PURE__ */ e.jsxs("div", { className: "row-footer-buttons", children: [
2042
- !a && /* @__PURE__ */ e.jsx(
2043
- we,
2163
+ !x && /* @__PURE__ */ e.jsx(
2164
+ M1,
2044
2165
  {
2045
2166
  filename: n ?? "download",
2046
2167
  variant: "secondary",
@@ -2050,13 +2171,13 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
2050
2171
  }
2051
2172
  ),
2052
2173
  o && /* @__PURE__ */ e.jsx(
2053
- Me,
2174
+ N1,
2054
2175
  {
2055
2176
  name: "csv-input-file",
2056
2177
  handleOnChange: i,
2057
- isUploading: x,
2178
+ isUploading: a,
2058
2179
  warningMessage: j,
2059
- successMessage: u
2180
+ successMessage: y
2060
2181
  }
2061
2182
  )
2062
2183
  ] }),
@@ -2064,7 +2185,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
2064
2185
  /* @__PURE__ */ e.jsxs("div", { className: "left", children: [
2065
2186
  "Rows:",
2066
2187
  /* @__PURE__ */ e.jsx(
2067
- Ce,
2188
+ C1,
2068
2189
  {
2069
2190
  name: "pageSize",
2070
2191
  options: [
@@ -2072,37 +2193,37 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
2072
2193
  { label: "100", value: "100" },
2073
2194
  { label: "500", value: "500" }
2074
2195
  ],
2075
- value: String(v.size),
2076
- onChange: (m) => k({ num: 0, size: parseInt(m.target.value, 10) })
2196
+ value: String(f.size),
2197
+ onChange: (m) => E({ num: 0, size: parseInt(m.target.value, 10) })
2077
2198
  }
2078
2199
  )
2079
2200
  ] }),
2080
2201
  /* @__PURE__ */ e.jsxs("div", { className: "center", children: [
2081
- v.num * v.size + 1,
2202
+ f.num * f.size + 1,
2082
2203
  " -",
2083
- Math.min((v.num + 1) * v.size, g.length),
2204
+ Math.min((f.num + 1) * f.size, N.length),
2084
2205
  " of ",
2085
- g.length
2206
+ N.length
2086
2207
  ] }),
2087
2208
  /* @__PURE__ */ e.jsxs("div", { className: "right", children: [
2088
2209
  /* @__PURE__ */ e.jsx(
2089
- O,
2210
+ V,
2090
2211
  {
2091
2212
  variant: "transparent",
2092
- disabled: v.num === 0,
2213
+ disabled: f.num === 0,
2093
2214
  size: "small",
2094
- onClick: () => k({ ...v, num: v.num - 1 }),
2095
- children: /* @__PURE__ */ e.jsx(N, { name: "chevron-left" })
2215
+ onClick: () => E({ ...f, num: f.num - 1 }),
2216
+ children: /* @__PURE__ */ e.jsx(w, { name: "chevron-left" })
2096
2217
  }
2097
2218
  ),
2098
2219
  /* @__PURE__ */ e.jsx(
2099
- O,
2220
+ V,
2100
2221
  {
2101
2222
  variant: "transparent",
2102
- disabled: (v.num + 1) * v.size >= g.length,
2223
+ disabled: (f.num + 1) * f.size >= N.length,
2103
2224
  size: "small",
2104
- onClick: () => k({ ...v, num: v.num + 1 }),
2105
- children: /* @__PURE__ */ e.jsx(N, { name: "chevron-right" })
2225
+ onClick: () => E({ ...f, num: f.num + 1 }),
2226
+ children: /* @__PURE__ */ e.jsx(w, { name: "chevron-right" })
2106
2227
  }
2107
2228
  )
2108
2229
  ] })
@@ -2111,42 +2232,42 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
2111
2232
  ] });
2112
2233
  };
2113
2234
  export {
2114
- Re as Accordion,
2115
- me as Backdrop,
2116
- fe as Badge,
2117
- O as Button,
2118
- ze as Checkbox,
2119
- be as CopyButton,
2120
- we as CsvButton,
2121
- Me as CsvInput,
2122
- ve as DropdownButton,
2123
- Ae as DropdownNavButton,
2124
- Je as Featured,
2125
- Ye as Hr,
2126
- N as Icon,
2127
- Te as IconBadge,
2128
- Se as ImageInput,
2129
- ke as Input,
2130
- Ue as ItemSlider,
2235
+ A1 as Accordion,
2236
+ m1 as Backdrop,
2237
+ f1 as Badge,
2238
+ V as Button,
2239
+ _1 as Checkbox,
2240
+ b1 as CopyButton,
2241
+ M1 as CsvButton,
2242
+ N1 as CsvInput,
2243
+ v1 as DropdownButton,
2244
+ R1 as DropdownNavButton,
2245
+ J1 as Featured,
2246
+ Y1 as Hr,
2247
+ w as Icon,
2248
+ z1 as IconBadge,
2249
+ S1 as ImageInput,
2250
+ k1 as Input,
2251
+ U1 as ItemSlider,
2131
2252
  q as Label,
2132
- Pe as Li,
2133
- De as Modal,
2134
- xe as NavigateButton,
2135
- Fe as Paper,
2136
- Ie as Pill,
2137
- $e as Progress,
2138
- He as Radio,
2139
- We as RangeSlider,
2140
- Ce as Select,
2141
- _e as ShareButton,
2142
- Be as Slider,
2143
- Ne as SortButton,
2144
- he as Spinner,
2145
- Ge as Star,
2146
- Xe as Table,
2147
- qe as Tabs,
2148
- Ve as TextInputDropdown,
2149
- Oe as Textarea,
2150
- Le as Ul,
2151
- ge as copyToClipboard
2253
+ P1 as Li,
2254
+ D1 as Modal,
2255
+ a1 as NavigateButton,
2256
+ F1 as Paper,
2257
+ I1 as Pill,
2258
+ $1 as Progress,
2259
+ H1 as Radio,
2260
+ W1 as RangeSlider,
2261
+ C1 as Select,
2262
+ T1 as ShareButton,
2263
+ B1 as Slider,
2264
+ w1 as SortButton,
2265
+ h1 as Spinner,
2266
+ G1 as Star,
2267
+ X1 as Table,
2268
+ q1 as Tabs,
2269
+ L1 as TextInputDropdown,
2270
+ V1 as Textarea,
2271
+ O1 as Ul,
2272
+ g1 as copyToClipboard
2152
2273
  };