@contentmunch/contentmunch-ui 1.0.37 → 1.0.39

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
@@ -67,7 +67,7 @@ function ye() {
67
67
  switch (typeof l.tag == "number" && console.error(
68
68
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
69
  ), l.$$typeof) {
70
- case N:
70
+ case b:
71
71
  return "Portal";
72
72
  case S:
73
73
  return (l.displayName || "Context") + ".Provider";
@@ -99,8 +99,8 @@ function ye() {
99
99
  }
100
100
  if (y) {
101
101
  y = console;
102
- var b = y.error, E = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
103
- return b.call(
102
+ var w = y.error, E = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
103
+ return w.call(
104
104
  y,
105
105
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
106
  E
@@ -133,33 +133,33 @@ function ye() {
133
133
  return l.key !== void 0;
134
134
  }
135
135
  function x(l, y) {
136
- function b() {
136
+ function w() {
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
139
  y
140
140
  ));
141
141
  }
142
- b.isReactWarning = !0, Object.defineProperty(l, "key", {
143
- get: b,
142
+ w.isReactWarning = !0, Object.defineProperty(l, "key", {
143
+ get: w,
144
144
  configurable: !0
145
145
  });
146
146
  }
147
- function d() {
147
+ function j() {
148
148
  var l = n(this.type);
149
149
  return Y[l] || (Y[l] = !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
151
  )), l = this.props.ref, l !== void 0 ? l : null;
152
152
  }
153
- function h(l, y, b, E, D, V, ee, se) {
154
- return b = V.ref, l = {
153
+ function u(l, y, w, E, D, V, ee, se) {
154
+ return w = V.ref, l = {
155
155
  $$typeof: f,
156
156
  type: l,
157
157
  key: y,
158
158
  props: V,
159
159
  _owner: D
160
- }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(l, "ref", {
160
+ }, (w !== void 0 ? w : null) !== null ? Object.defineProperty(l, "ref", {
161
161
  enumerable: !1,
162
- get: d
162
+ get: j
163
163
  }) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
164
164
  configurable: !1,
165
165
  enumerable: !1,
@@ -182,19 +182,19 @@ function ye() {
182
182
  value: se
183
183
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
184
184
  }
185
- function j(l, y, b, E, D, V, ee, se) {
185
+ function d(l, y, w, E, D, V, ee, se) {
186
186
  var R = y.children;
187
187
  if (R !== void 0)
188
188
  if (E)
189
189
  if (Z(R)) {
190
190
  for (E = 0; E < R.length; E++)
191
- u(R[E]);
191
+ h(R[E]);
192
192
  Object.freeze && Object.freeze(R);
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 u(R);
197
+ else h(R);
198
198
  if (X.call(y, "key")) {
199
199
  R = n(l);
200
200
  var F = Object.keys(y).filter(function(je) {
@@ -213,29 +213,29 @@ React keys must be passed directly to JSX without using spread:
213
213
  R
214
214
  ), re[R + E] = !0);
215
215
  }
216
- if (R = null, b !== void 0 && (r(b), R = "" + b), o(y) && (r(y.key), R = "" + y.key), "key" in y) {
217
- b = {};
216
+ if (R = null, w !== void 0 && (r(w), R = "" + w), o(y) && (r(y.key), R = "" + y.key), "key" in y) {
217
+ w = {};
218
218
  for (var ne in y)
219
- ne !== "key" && (b[ne] = y[ne]);
220
- } else b = y;
219
+ ne !== "key" && (w[ne] = y[ne]);
220
+ } else w = y;
221
221
  return R && x(
222
- b,
222
+ w,
223
223
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
224
- ), h(
224
+ ), u(
225
225
  l,
226
226
  R,
227
227
  V,
228
228
  D,
229
229
  c(),
230
- b,
230
+ w,
231
231
  ee,
232
232
  se
233
233
  );
234
234
  }
235
- function u(l) {
235
+ function h(l) {
236
236
  typeof l == "object" && l !== null && l.$$typeof === f && l._store && (l._store.validated = 1);
237
237
  }
238
- var p = oe, f = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), S = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), k = 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"), C = 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 = oe, f = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), S = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), k = 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"), C = 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() {
239
239
  return null;
240
240
  };
241
241
  p = {
@@ -247,24 +247,24 @@ React keys must be passed directly to JSX without using spread:
247
247
  p,
248
248
  a
249
249
  )(), W = I(i(a)), re = {};
250
- J.Fragment = g, J.jsx = function(l, y, b, E, D) {
250
+ J.Fragment = g, J.jsx = function(l, y, w, E, D) {
251
251
  var V = 1e4 > L.recentlyCreatedOwnerStacks++;
252
- return j(
252
+ return d(
253
253
  l,
254
254
  y,
255
- b,
255
+ w,
256
256
  !1,
257
257
  E,
258
258
  D,
259
259
  V ? Error("react-stack-top-frame") : U,
260
260
  V ? I(i(l)) : W
261
261
  );
262
- }, J.jsxs = function(l, y, b, E, D) {
262
+ }, J.jsxs = function(l, y, w, E, D) {
263
263
  var V = 1e4 > L.recentlyCreatedOwnerStacks++;
264
- return j(
264
+ return d(
265
265
  l,
266
266
  y,
267
- b,
267
+ w,
268
268
  !0,
269
269
  E,
270
270
  D,
@@ -279,29 +279,31 @@ function pe() {
279
279
  return ie || (ie = 1, process.env.NODE_ENV === "production" ? K.exports = ue() : K.exports = ye()), K.exports;
280
280
  }
281
281
  var e = pe();
282
- const Re = ({ variant: n, children: t }) => {
283
- const { folds: r } = t, [i, c] = A(0), a = (d) => d === i ? "fold active" : "fold", o = (d) => "fold-button" + (n ? " fold-button--" + n : "") + (r[d].foldColor ? " fold-button--primary fold-button--" + r[d].foldColor : ""), x = (d) => {
284
- const h = d.which.toString(), j = d.ctrlKey && h.match(/33|34/);
285
- if (h.match(/38|40/) || j) {
286
- const u = h.match(/34|40/) ? 1 : -1, p = r.length, f = (i + p + u) % p;
287
- c(f);
282
+ const Re = ({ variant: n, collapsed: t, children: r }) => {
283
+ const { folds: i } = r, [c, a] = A(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) => {
284
+ const h = d.which.toString(), p = d.ctrlKey && h.match(/33|34/);
285
+ if (h.match(/38|40/) || p) {
286
+ const f = h.match(/34|40/) ? 1 : -1, b = i.length, g = (c + b + f) % b;
287
+ a(g);
288
288
  } else
289
- h === "36" && c(0), h === "35" && c(r.length - 1);
289
+ h === "36" && a(0), h === "35" && a(i.length - 1);
290
290
  d.preventDefault();
291
+ }, u = (d) => {
292
+ a(c === d ? -1 : d);
291
293
  };
292
- return /* @__PURE__ */ e.jsx("div", { className: "muncher-accordion", children: r.map(
294
+ return /* @__PURE__ */ e.jsx("div", { className: "muncher-accordion", children: i.map(
293
295
  (d, h) => /* @__PURE__ */ e.jsxs(
294
296
  "div",
295
297
  {
296
- className: a(h),
297
- "aria-expanded": i === h,
298
+ className: o(h),
299
+ "aria-expanded": c === h,
298
300
  children: [
299
301
  /* @__PURE__ */ e.jsx(
300
302
  "button",
301
303
  {
302
- className: o(h),
303
- onKeyDown: x,
304
- onClick: () => c(h),
304
+ className: x(h),
305
+ onKeyDown: j,
306
+ onClick: () => u(h),
305
307
  children: /* @__PURE__ */ e.jsx("span", { children: d.heading })
306
308
  }
307
309
  ),
@@ -1069,14 +1071,14 @@ const Re = ({ variant: n, children: t }) => {
1069
1071
  /* @__PURE__ */ e.jsx("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" }),
1070
1072
  /* @__PURE__ */ e.jsx("text", { x: "6", y: "14", fontSize: "6", fontFamily: "'Lucida Grande', sans-serif", children: "360" })
1071
1073
  ] })
1072
- }, w = ({ color: n, name: t, size: r = "small", weight: i = 2, onClick: c, iconString: a, orientation: o, children: x }) => {
1073
- const d = r ? "muncher-icon--" + r : "muncher-icon--small";
1074
+ }, N = ({ color: n, name: t, size: r = "small", weight: i = 2, onClick: c, iconString: a, orientation: o, children: x }) => {
1075
+ const j = r ? "muncher-icon--" + r : "muncher-icon--small";
1074
1076
  return /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon", children: [
1075
1077
  x && o && o === "right" ? /* @__PURE__ */ e.jsx("span", { className: "content-left", children: x }) : "",
1076
1078
  /* @__PURE__ */ e.jsx(
1077
1079
  "svg",
1078
1080
  {
1079
- className: d,
1081
+ className: j,
1080
1082
  stroke: n || "currentColor",
1081
1083
  xmlns: "http://www.w3.org/2000/svg",
1082
1084
  viewBox: "0 0 24 24",
@@ -1103,7 +1105,7 @@ const Re = ({ variant: n, children: t }) => {
1103
1105
  onClick: i,
1104
1106
  ...c,
1105
1107
  children: [
1106
- /* @__PURE__ */ e.jsx(w, { name: t }),
1108
+ /* @__PURE__ */ e.jsx(N, { name: t }),
1107
1109
  r === "" ? "" : /* @__PURE__ */ e.jsx(fe, { variant: n, children: r })
1108
1110
  ]
1109
1111
  }
@@ -1116,10 +1118,10 @@ const Re = ({ variant: n, children: t }) => {
1116
1118
  disabled: a,
1117
1119
  rounded: o,
1118
1120
  onClick: x,
1119
- onMouseDown: d,
1120
- onMouseEnter: h,
1121
- onMouseLeave: j,
1122
- children: u,
1121
+ onMouseDown: j,
1122
+ onMouseEnter: u,
1123
+ onMouseLeave: d,
1124
+ children: h,
1123
1125
  ...p
1124
1126
  }) => {
1125
1127
  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" : "");
@@ -1131,11 +1133,11 @@ const Re = ({ variant: n, children: t }) => {
1131
1133
  disabled: !!a,
1132
1134
  title: i,
1133
1135
  onClick: x,
1134
- onMouseDown: d,
1135
- onMouseEnter: h,
1136
- onMouseLeave: j,
1136
+ onMouseDown: j,
1137
+ onMouseEnter: u,
1138
+ onMouseLeave: d,
1137
1139
  ...p,
1138
- children: u
1140
+ children: h
1139
1141
  }
1140
1142
  );
1141
1143
  }, ve = ({
@@ -1147,20 +1149,20 @@ const Re = ({ variant: n, children: t }) => {
1147
1149
  element: a,
1148
1150
  onMouseDown: o,
1149
1151
  rounded: x,
1150
- drop: d,
1151
- onClick: h,
1152
- onClose: j,
1153
- showContent: u,
1152
+ drop: j,
1153
+ onClick: u,
1154
+ onClose: d,
1155
+ showContent: h,
1154
1156
  setShowContent: p,
1155
1157
  withDropIcon: f,
1156
- children: N,
1158
+ children: b,
1157
1159
  ...g
1158
1160
  }) => {
1159
1161
  const T = de(null), v = (k) => {
1160
- k.preventDefault(), h && h(k), p && p(!0);
1162
+ k.preventDefault(), u && u(k), p && p(!0);
1161
1163
  }, _ = G(() => {
1162
- p(!1), j && j();
1163
- }, [j, p]), S = G((k) => {
1164
+ p(!1), d && d();
1165
+ }, [d, p]), S = G((k) => {
1164
1166
  k.keyCode === 27 && _();
1165
1167
  }, [_]);
1166
1168
  Q(() => {
@@ -1182,7 +1184,7 @@ const Re = ({ variant: n, children: t }) => {
1182
1184
  if (m > 40 || m < 60) return "muncher-dropdown--content drop-middle";
1183
1185
  }
1184
1186
  }
1185
- switch (d) {
1187
+ switch (j) {
1186
1188
  case "left":
1187
1189
  return "muncher-dropdown--content drop-left";
1188
1190
  case "middle":
@@ -1215,7 +1217,7 @@ const Re = ({ variant: n, children: t }) => {
1215
1217
  ]
1216
1218
  }
1217
1219
  ),
1218
- u ? /* @__PURE__ */ e.jsx("div", { className: z(), children: N }) : ""
1220
+ h ? /* @__PURE__ */ e.jsx("div", { className: z(), children: b }) : ""
1219
1221
  ] });
1220
1222
  }, Ae = ({
1221
1223
  title: n,
@@ -1247,8 +1249,8 @@ const Re = ({ variant: n, children: t }) => {
1247
1249
  variant: t = "secondary",
1248
1250
  size: r = "small"
1249
1251
  }) => {
1250
- const [i, c] = A(), [a, o] = A("copy"), [x, d] = A("copy link"), h = () => {
1251
- ge(n), c("green"), o("check"), d("copied!"), setTimeout(function() {
1252
+ const [i, c] = A(), [a, o] = A("copy"), [x, j] = A("copy link"), u = () => {
1253
+ ge(n), c("green"), o("check"), j("copied!"), setTimeout(function() {
1252
1254
  c(""), o("copy");
1253
1255
  }, 2e3);
1254
1256
  };
@@ -1258,8 +1260,8 @@ const Re = ({ variant: n, children: t }) => {
1258
1260
  size: r,
1259
1261
  variant: t,
1260
1262
  title: x,
1261
- onClick: h,
1262
- children: /* @__PURE__ */ e.jsx(w, { name: a, color: i })
1263
+ onClick: u,
1264
+ children: /* @__PURE__ */ e.jsx(N, { name: a, color: i })
1263
1265
  }
1264
1266
  );
1265
1267
  }, _e = ({
@@ -1276,7 +1278,7 @@ const Re = ({ variant: n, children: t }) => {
1276
1278
  setShowContent: c,
1277
1279
  variant: n,
1278
1280
  size: t,
1279
- element: /* @__PURE__ */ e.jsx(w, { name: "share", orientation: "right", children: "Share" }),
1281
+ element: /* @__PURE__ */ e.jsx(N, { name: "share", orientation: "right", children: "Share" }),
1280
1282
  children: [
1281
1283
  /* @__PURE__ */ e.jsx(O, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
1282
1284
  "a",
@@ -1284,7 +1286,7 @@ const Re = ({ variant: n, children: t }) => {
1284
1286
  href: "https://twitter.com/share?url=" + window.location.href + "&text=" + r,
1285
1287
  target: "_blank",
1286
1288
  title: "Share link to Twitter",
1287
- children: /* @__PURE__ */ e.jsx(w, { name: "twitter" })
1289
+ children: /* @__PURE__ */ e.jsx(N, { name: "twitter" })
1288
1290
  }
1289
1291
  ) }),
1290
1292
  /* @__PURE__ */ e.jsx(O, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
@@ -1293,7 +1295,7 @@ const Re = ({ variant: n, children: t }) => {
1293
1295
  href: "https://www.facebook.com/sharer/sharer.php?u=" + window.location.href,
1294
1296
  target: "_blank",
1295
1297
  title: "Share link to Facebook",
1296
- children: /* @__PURE__ */ e.jsx(w, { name: "facebook" })
1298
+ children: /* @__PURE__ */ e.jsx(N, { name: "facebook" })
1297
1299
  }
1298
1300
  ) }),
1299
1301
  /* @__PURE__ */ e.jsx(O, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
@@ -1302,7 +1304,7 @@ const Re = ({ variant: n, children: t }) => {
1302
1304
  href: "mailto:?subject=" + r + "&body=" + window.location.href,
1303
1305
  target: "_blank",
1304
1306
  title: "share link by Email",
1305
- children: /* @__PURE__ */ e.jsx(w, { name: "mail" })
1307
+ children: /* @__PURE__ */ e.jsx(N, { name: "mail" })
1306
1308
  }
1307
1309
  ) }),
1308
1310
  /* @__PURE__ */ e.jsx(be, { text: window.location.href })
@@ -1318,12 +1320,12 @@ const Re = ({ variant: n, children: t }) => {
1318
1320
  title: a,
1319
1321
  active: o,
1320
1322
  disabled: x,
1321
- rounded: d
1323
+ rounded: j
1322
1324
  }) => {
1323
- const h = encodeURI("data:text/csv;charset=utf-8," + n.join(",") + `
1324
- ` + t.map((j) => j.join(",")).join(`
1325
+ const u = encodeURI("data:text/csv;charset=utf-8," + n.join(",") + `
1326
+ ` + t.map((d) => d.join(",")).join(`
1325
1327
  `));
1326
- return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(O, { variant: i, size: c, active: o, disabled: x, rounded: d, children: /* @__PURE__ */ e.jsx("a", { href: h, download: r + ".csv", children: /* @__PURE__ */ e.jsx(w, { name: "download", children: a || "Download" }) }) }) });
1328
+ 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" }) }) }) });
1327
1329
  }, Ne = ({
1328
1330
  variant: n = "transparent",
1329
1331
  size: t = "small",
@@ -1334,7 +1336,7 @@ const Re = ({ variant: n, children: t }) => {
1334
1336
  onClick: o,
1335
1337
  children: x
1336
1338
  }) => {
1337
- const [d, h] = A(!1), j = () => !c || c && !d ? 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" });
1339
+ const [j, u] = A(!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" });
1338
1340
  return /* @__PURE__ */ e.jsxs(
1339
1341
  O,
1340
1342
  {
@@ -1343,15 +1345,15 @@ const Re = ({ variant: n, children: t }) => {
1343
1345
  title: r,
1344
1346
  rounded: a,
1345
1347
  onMouseEnter: () => {
1346
- h(!0);
1348
+ u(!0);
1347
1349
  },
1348
1350
  onMouseLeave: () => {
1349
- h(!1);
1351
+ u(!1);
1350
1352
  },
1351
1353
  onClick: o,
1352
1354
  children: [
1353
1355
  x,
1354
- c || d ? /* @__PURE__ */ e.jsx(j, {}) : ""
1356
+ c || j ? /* @__PURE__ */ e.jsx(d, {}) : ""
1355
1357
  ]
1356
1358
  }
1357
1359
  );
@@ -1388,7 +1390,7 @@ const Re = ({ variant: n, children: t }) => {
1388
1390
  size: "small",
1389
1391
  variant: c,
1390
1392
  title: n === "left" ? "Navigate Left" : "Navigate Right",
1391
- children: /* @__PURE__ */ e.jsx(w, { name: x(), size: t, weight: r })
1393
+ children: /* @__PURE__ */ e.jsx(N, { name: x(), size: t, weight: r })
1392
1394
  }
1393
1395
  )
1394
1396
  }
@@ -1412,8 +1414,8 @@ const Re = ({ variant: n, children: t }) => {
1412
1414
  type: "checkbox",
1413
1415
  id: n,
1414
1416
  name: n,
1415
- onChange: (d) => {
1416
- x(d.target.checked), r && r();
1417
+ onChange: (j) => {
1418
+ x(j.target.checked), r && r();
1417
1419
  },
1418
1420
  checked: o,
1419
1421
  required: t,
@@ -1426,8 +1428,8 @@ const Re = ({ variant: n, children: t }) => {
1426
1428
  label: c,
1427
1429
  required: t,
1428
1430
  id: n,
1429
- onClick: (d) => {
1430
- d.preventDefault(), x(!o), r && r();
1431
+ onClick: (j) => {
1432
+ j.preventDefault(), x(!o), r && r();
1431
1433
  }
1432
1434
  }
1433
1435
  ) : ""
@@ -1447,16 +1449,16 @@ const Re = ({ variant: n, children: t }) => {
1447
1449
  active: a,
1448
1450
  isUploading: o,
1449
1451
  handleOnChange: x,
1450
- warningMessage: d,
1451
- successMessage: h,
1452
- ...j
1452
+ warningMessage: j,
1453
+ successMessage: u,
1454
+ ...d
1453
1455
  }) => {
1454
- const u = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), p = (f) => {
1456
+ const h = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), p = (f) => {
1455
1457
  x && x(f.currentTarget.files[0]);
1456
1458
  };
1457
1459
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-file-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
1458
- /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: u, children: [
1459
- /* @__PURE__ */ e.jsx(w, { name: "upload" }),
1460
+ /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: h, children: [
1461
+ /* @__PURE__ */ e.jsx(N, { name: "upload" }),
1460
1462
  " ",
1461
1463
  t || "Upload CSV",
1462
1464
  c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : "",
@@ -1471,11 +1473,11 @@ const Re = ({ variant: n, children: t }) => {
1471
1473
  required: c,
1472
1474
  onChange: p,
1473
1475
  accept: "text/csv",
1474
- ...j
1476
+ ...d
1475
1477
  }
1476
1478
  ),
1477
- d && d !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: d }) : "",
1478
- h && h !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-success", children: h }) : ""
1479
+ j && j !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: j }) : "",
1480
+ u && u !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-success", children: u }) : ""
1479
1481
  ] }) });
1480
1482
  }, ze = ({
1481
1483
  name: n,
@@ -1486,26 +1488,26 @@ const Re = ({ variant: n, children: t }) => {
1486
1488
  active: a,
1487
1489
  setFiles: o,
1488
1490
  error: x,
1489
- multiple: d = !1,
1490
- maxFiles: h,
1491
- ...j
1491
+ multiple: j = !1,
1492
+ maxFiles: u,
1493
+ ...d
1492
1494
  }) => {
1493
- const [u, p] = A(""), [f, N] = A(""), g = h || 3, T = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), v = (S) => {
1494
- if (d) {
1495
+ const [h, p] = A(""), [f, b] = A(""), g = u || 3, T = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), v = (S) => {
1496
+ if (j) {
1495
1497
  let z = Array.from(S.currentTarget.files);
1496
- z.length > g && (z = z.slice(0, g), N("Only first " + g + " files included")), o(z), p(z.map((k) => k.name).join(", "));
1498
+ z.length > g && (z = z.slice(0, g), b("Only first " + g + " files included")), o(z), p(z.map((k) => k.name).join(", "));
1497
1499
  } else
1498
1500
  o(Array.from(S.currentTarget.files[0])), p(S.currentTarget.files[0].name);
1499
1501
  }, _ = () => x && x !== "";
1500
1502
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-file-input--div", children: [
1501
1503
  /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
1502
1504
  /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: T, children: [
1503
- /* @__PURE__ */ e.jsx(w, { name: "image" }),
1505
+ /* @__PURE__ */ e.jsx(N, { name: "image" }),
1504
1506
  " ",
1505
1507
  t,
1506
1508
  c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : ""
1507
1509
  ] }),
1508
- /* @__PURE__ */ e.jsx("span", { className: "span-file-name", children: u }),
1510
+ /* @__PURE__ */ e.jsx("span", { className: "span-file-name", children: h }),
1509
1511
  /* @__PURE__ */ e.jsx(
1510
1512
  "input",
1511
1513
  {
@@ -1514,14 +1516,14 @@ const Re = ({ variant: n, children: t }) => {
1514
1516
  className: "muncher-file-input",
1515
1517
  name: n,
1516
1518
  onChange: v,
1517
- multiple: d,
1519
+ multiple: j,
1518
1520
  accept: "image/*",
1519
- ...j
1521
+ ...d
1520
1522
  }
1521
1523
  )
1522
1524
  ] }),
1523
1525
  f !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: f }) : "",
1524
- _() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: x }) }) : ""
1526
+ _() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(N, { name: "alert", children: x }) }) : ""
1525
1527
  ] });
1526
1528
  }, ke = ({
1527
1529
  name: n,
@@ -1532,13 +1534,13 @@ const Re = ({ variant: n, children: t }) => {
1532
1534
  hoverIcon: a,
1533
1535
  onHoverIconClick: o,
1534
1536
  type: x = "text",
1535
- list: d,
1536
- onBlur: h,
1537
- labelPosition: j = "top",
1538
- onKeyDown: u,
1537
+ list: j,
1538
+ onBlur: u,
1539
+ labelPosition: d = "top",
1540
+ onKeyDown: h,
1539
1541
  error: p,
1540
1542
  focus: f = !1,
1541
- placeholder: N,
1543
+ placeholder: b,
1542
1544
  onChange: g,
1543
1545
  step: T,
1544
1546
  value: v,
@@ -1549,17 +1551,17 @@ const Re = ({ variant: n, children: t }) => {
1549
1551
  }) => {
1550
1552
  const H = () => p && p !== "", P = () => {
1551
1553
  let C = "muncher-input";
1552
- return (c || a) && (C += " muncher-input-icon"), H() && (C += " muncher-input-error"), j === "side" && (C += " muncher-label-side"), C;
1554
+ return (c || a) && (C += " muncher-input-icon"), H() && (C += " muncher-input-error"), d === "side" && (C += " muncher-label-side"), C;
1553
1555
  }, m = () => t ? /* @__PURE__ */ e.jsx(q, { label: t, required: r, id: n }) : "", M = (C) => {
1554
- C.key === "Enter" && S && S(), u && u(C);
1556
+ C.key === "Enter" && S && S(), h && h(C);
1555
1557
  };
1556
1558
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
1557
- j !== "side" ? m() : "",
1559
+ d !== "side" ? m() : "",
1558
1560
  /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-element", children: [
1559
- j === "side" ? m() : "",
1560
- c ? /* @__PURE__ */ e.jsx(w, { name: c }) : "",
1561
+ d === "side" ? m() : "",
1562
+ c ? /* @__PURE__ */ e.jsx(N, { name: c }) : "",
1561
1563
  a ? /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon-hover", children: [
1562
- /* @__PURE__ */ e.jsx(w, { name: a, onClick: o }),
1564
+ /* @__PURE__ */ e.jsx(N, { name: a, onClick: o }),
1563
1565
  " "
1564
1566
  ] }) : "",
1565
1567
  /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-wrapper", children: [
@@ -1573,13 +1575,13 @@ const Re = ({ variant: n, children: t }) => {
1573
1575
  value: v,
1574
1576
  type: x || "text",
1575
1577
  autoComplete: "off",
1576
- placeholder: N,
1578
+ placeholder: b,
1577
1579
  onChange: g,
1578
1580
  required: r,
1579
1581
  readOnly: i,
1580
- list: d,
1582
+ list: j,
1581
1583
  onKeyDown: M,
1582
- onBlur: h,
1584
+ onBlur: u,
1583
1585
  step: T,
1584
1586
  maxLength: _,
1585
1587
  ...k
@@ -1588,7 +1590,7 @@ const Re = ({ variant: n, children: t }) => {
1588
1590
  z ? /* @__PURE__ */ e.jsx(he, { size: "tiny" }) : ""
1589
1591
  ] })
1590
1592
  ] }),
1591
- H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: p }) }) : ""
1593
+ H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(N, { name: "alert", children: p }) }) : ""
1592
1594
  ] });
1593
1595
  }, 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: [
1594
1596
  /* @__PURE__ */ e.jsx(
@@ -1620,11 +1622,11 @@ const Re = ({ variant: n, children: t }) => {
1620
1622
  error: a,
1621
1623
  onChange: o,
1622
1624
  value: x,
1623
- ...d
1625
+ ...j
1624
1626
  }) => {
1625
- const h = () => a && a !== "", j = () => {
1626
- let u = "muncher-input";
1627
- return h() && (u += " muncher-input-error"), u;
1627
+ const u = () => a && a !== "", d = () => {
1628
+ let h = "muncher-input";
1629
+ return u() && (h += " muncher-input-error"), h;
1628
1630
  };
1629
1631
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
1630
1632
  r ? /* @__PURE__ */ e.jsx(q, { label: r, required: i, id: n }) : "",
@@ -1632,22 +1634,22 @@ const Re = ({ variant: n, children: t }) => {
1632
1634
  "select",
1633
1635
  {
1634
1636
  id: n,
1635
- className: j(),
1637
+ className: d(),
1636
1638
  name: n,
1637
1639
  value: x,
1638
1640
  onChange: o,
1639
1641
  required: i,
1640
1642
  multiple: c,
1641
- ...d,
1643
+ ...j,
1642
1644
  children: [
1643
1645
  i ? /* @__PURE__ */ e.jsx("option", { value: "", children: "-- Select --" }) : "",
1644
1646
  t.map(
1645
- (u, p) => /* @__PURE__ */ e.jsx("option", { value: u.value, children: u.label }, `select-option-${p}`)
1647
+ (h, p) => /* @__PURE__ */ e.jsx("option", { value: h.value, children: h.label }, `select-option-${p}`)
1646
1648
  )
1647
1649
  ]
1648
1650
  }
1649
1651
  ) }),
1650
- h() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: a }) }) : ""
1652
+ u() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(N, { name: "alert", children: a }) }) : ""
1651
1653
  ] });
1652
1654
  }, Oe = ({
1653
1655
  name: n,
@@ -1658,12 +1660,12 @@ const Re = ({ variant: n, children: t }) => {
1658
1660
  maxLength: a = 1e3,
1659
1661
  focus: o = !1,
1660
1662
  placeholder: x,
1661
- onChange: d,
1662
- value: h,
1663
- ...j
1663
+ onChange: j,
1664
+ value: u,
1665
+ ...d
1664
1666
  }) => {
1665
- const [u, p] = A(h), f = (N) => {
1666
- p(N.target.value), d && d(N);
1667
+ const [h, p] = A(u), f = (b) => {
1668
+ p(b.target.value), j && j(b);
1667
1669
  };
1668
1670
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
1669
1671
  t ? /* @__PURE__ */ e.jsx(q, { label: t, required: r, id: n }) : "",
@@ -1676,16 +1678,16 @@ const Re = ({ variant: n, children: t }) => {
1676
1678
  maxLength: a,
1677
1679
  name: n,
1678
1680
  autoFocus: o,
1679
- value: h,
1681
+ value: u,
1680
1682
  placeholder: x,
1681
1683
  onChange: f,
1682
1684
  required: r,
1683
1685
  readOnly: i,
1684
- ...j
1686
+ ...d
1685
1687
  }
1686
1688
  ),
1687
1689
  /* @__PURE__ */ e.jsxs("p", { children: [
1688
- u ? a ? a - u.length : 1e3 : a,
1690
+ h ? a ? a - h.length : 1e3 : a,
1689
1691
  " characters left"
1690
1692
  ] })
1691
1693
  ] });
@@ -1698,28 +1700,28 @@ const Re = ({ variant: n, children: t }) => {
1698
1700
  readOnly: a,
1699
1701
  value: o,
1700
1702
  label: x,
1701
- error: d,
1702
- required: h,
1703
- children: j
1703
+ error: j,
1704
+ required: u,
1705
+ children: d
1704
1706
  }) => {
1705
- const u = de(null), p = (g) => {
1707
+ const h = de(null), p = (g) => {
1706
1708
  c(!0), r(g.target.value);
1707
1709
  }, f = G(() => {
1708
1710
  c(!1);
1709
- }, [c]), N = G((g) => {
1711
+ }, [c]), b = G((g) => {
1710
1712
  g.keyCode === 27 && f();
1711
1713
  }, [f]);
1712
1714
  return Q(() => {
1713
1715
  const g = (T) => {
1714
- if (u && u !== null) {
1715
- const v = u.current;
1716
+ if (h && h !== null) {
1717
+ const v = h.current;
1716
1718
  v && !v.contains(T.target) && f();
1717
1719
  }
1718
1720
  };
1719
- return document.addEventListener("keydown", N, !1), document.addEventListener("mousedown", g), () => {
1720
- document.removeEventListener("keydown", N, !1);
1721
+ return document.addEventListener("keydown", b, !1), document.addEventListener("mousedown", g), () => {
1722
+ document.removeEventListener("keydown", b, !1);
1721
1723
  };
1722
- }, [N, f]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref: u, children: [
1724
+ }, [b, f]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref: h, children: [
1723
1725
  /* @__PURE__ */ e.jsx(
1724
1726
  ke,
1725
1727
  {
@@ -1730,14 +1732,14 @@ const Re = ({ variant: n, children: t }) => {
1730
1732
  readOnly: a,
1731
1733
  value: o,
1732
1734
  label: x,
1733
- required: h,
1734
- error: d
1735
+ required: u,
1736
+ error: j
1735
1737
  }
1736
1738
  ),
1737
- i ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children: j }) : ""
1739
+ i ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children: d }) : ""
1738
1740
  ] });
1739
1741
  }, 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(
1740
- w,
1742
+ N,
1741
1743
  {
1742
1744
  name: t,
1743
1745
  weight: r,
@@ -1772,7 +1774,7 @@ const Re = ({ variant: n, children: t }) => {
1772
1774
  const i = () => n ? "muncher-paper muncher-paper-hover" : "muncher-paper";
1773
1775
  return /* @__PURE__ */ e.jsx("section", { className: i(), onClick: t, children: r });
1774
1776
  }, Ie = ({ pillCloseHandler: n, children: t, ...r }) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-pill", ...r, children: [
1775
- /* @__PURE__ */ e.jsx("div", { className: "close", onClick: n, children: /* @__PURE__ */ e.jsx(w, { name: "close" }) }),
1777
+ /* @__PURE__ */ e.jsx("div", { className: "close", onClick: n, children: /* @__PURE__ */ e.jsx(N, { name: "close" }) }),
1776
1778
  /* @__PURE__ */ e.jsxs("div", { className: "content", children: [
1777
1779
  " ",
1778
1780
  t
@@ -1790,7 +1792,7 @@ const Re = ({ variant: n, children: t }) => {
1790
1792
  const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (t ? " muncher-hr--" + t : "") + (r ? " muncher-hr--" + r : "");
1791
1793
  return /* @__PURE__ */ e.jsx("hr", { className: i });
1792
1794
  }, Ue = ({ sliderItems: n, navButtonSize: t = "large", navButtonWeight: r = 2, variant: i, navIcon: c, navButtonPlacement: a = "inside" }) => {
1793
- const [o, x] = A(0), [d, h] = A(0), j = () => n.length > 1 && o > 0 ? /* @__PURE__ */ e.jsx(
1795
+ const [o, x] = A(0), [j, u] = A(0), d = () => n.length > 1 && o > 0 ? /* @__PURE__ */ e.jsx(
1794
1796
  xe,
1795
1797
  {
1796
1798
  direction: "left",
@@ -1799,10 +1801,10 @@ const Re = ({ variant: n, children: t }) => {
1799
1801
  navIcon: c,
1800
1802
  weight: r,
1801
1803
  onClick: () => {
1802
- o === 0 ? (h(-(n.length - 1) * 100), x(n.length - 1)) : (h(d + 100), x(o - 1));
1804
+ o === 0 ? (u(-(n.length - 1) * 100), x(n.length - 1)) : (u(j + 100), x(o - 1));
1803
1805
  }
1804
1806
  }
1805
- ) : "", u = () => n.length > 1 && o < n.length - 1 ? /* @__PURE__ */ e.jsx(
1807
+ ) : "", h = () => n.length > 1 && o < n.length - 1 ? /* @__PURE__ */ e.jsx(
1806
1808
  xe,
1807
1809
  {
1808
1810
  direction: "right",
@@ -1811,28 +1813,28 @@ const Re = ({ variant: n, children: t }) => {
1811
1813
  navIcon: c,
1812
1814
  variant: i,
1813
1815
  onClick: () => {
1814
- o === n.length - 1 ? (x(0), h(0)) : (h(d - 100), x(o + 1));
1816
+ o === n.length - 1 ? (x(0), u(0)) : (u(j - 100), x(o + 1));
1815
1817
  }
1816
1818
  }
1817
1819
  ) : "";
1818
1820
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider-wrapper--" + a, children: [
1819
- a === "outside" ? j() : "",
1821
+ a === "outside" ? d() : "",
1820
1822
  /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider", children: [
1821
- a === "inside" ? j() : "",
1823
+ a === "inside" ? d() : "",
1822
1824
  /* @__PURE__ */ e.jsx("div", { className: "slider-container", style: { width: `${100 * n.length}%` }, children: n.map(
1823
1825
  (p, f) => /* @__PURE__ */ e.jsx(
1824
1826
  "div",
1825
1827
  {
1826
1828
  className: "slider-item",
1827
- style: { transform: `translateX(${d}%)` },
1829
+ style: { transform: `translateX(${j}%)` },
1828
1830
  children: p
1829
1831
  },
1830
1832
  "slider-item" + f
1831
1833
  )
1832
1834
  ) }),
1833
- a === "inside" ? u() : ""
1835
+ a === "inside" ? h() : ""
1834
1836
  ] }),
1835
- a === "outside" ? u() : ""
1837
+ a === "outside" ? h() : ""
1836
1838
  ] });
1837
1839
  }, We = ({
1838
1840
  min: n,
@@ -1846,15 +1848,15 @@ const Re = ({ variant: n, children: t }) => {
1846
1848
  currency: "USD"
1847
1849
  }).format(x)
1848
1850
  }) => {
1849
- const x = (j) => {
1850
- const u = +j.target.value, p = u < i - 1 ? u : r;
1851
+ const x = (d) => {
1852
+ const h = +d.target.value, p = h < i - 1 ? h : r;
1851
1853
  c(p);
1852
- }, d = (j) => {
1853
- const u = +j.target.value, p = u > r + 1 ? u : i;
1854
+ }, j = (d) => {
1855
+ const h = +d.target.value, p = h > r + 1 ? h : i;
1854
1856
  a(p);
1855
- }, h = (j) => o && j ? o(j) : j;
1857
+ }, u = (d) => o && d ? o(d) : d;
1856
1858
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
1857
- /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: h(r) + " - " + h(i) }) }),
1859
+ /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: u(r) + " - " + u(i) }) }),
1858
1860
  /* @__PURE__ */ e.jsx(
1859
1861
  "input",
1860
1862
  {
@@ -1874,12 +1876,12 @@ const Re = ({ variant: n, children: t }) => {
1874
1876
  min: n,
1875
1877
  max: t,
1876
1878
  value: i,
1877
- onChange: d
1879
+ onChange: j
1878
1880
  }
1879
1881
  ),
1880
1882
  /* @__PURE__ */ e.jsxs("div", { className: "slider-values", children: [
1881
- /* @__PURE__ */ e.jsx("div", { className: "slider-min", children: h(n) }),
1882
- /* @__PURE__ */ e.jsx("div", { className: "slider-max", children: h(t) })
1883
+ /* @__PURE__ */ e.jsx("div", { className: "slider-min", children: u(n) }),
1884
+ /* @__PURE__ */ e.jsx("div", { className: "slider-max", children: u(t) })
1883
1885
  ] })
1884
1886
  ] });
1885
1887
  }, Be = ({
@@ -1893,8 +1895,8 @@ const Re = ({ variant: n, children: t }) => {
1893
1895
  }).format(a)
1894
1896
  }) => {
1895
1897
  const a = (x) => c ? c(x) : x, o = (x) => {
1896
- const d = +x.target.value;
1897
- i(d);
1898
+ const j = +x.target.value;
1899
+ i(j);
1898
1900
  };
1899
1901
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
1900
1902
  /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: a(r) }) }),
@@ -1965,28 +1967,28 @@ const Re = ({ variant: n, children: t }) => {
1965
1967
  excludeDownload: a,
1966
1968
  includeUpload: o,
1967
1969
  isUploading: x,
1968
- uploadWarningMessage: d,
1969
- uploadSuccessMessage: h,
1970
- excludePagination: j,
1971
- footer: u,
1970
+ uploadWarningMessage: j,
1971
+ uploadSuccessMessage: u,
1972
+ excludePagination: d,
1973
+ footer: h,
1972
1974
  children: p
1973
1975
  }) => {
1974
- const { header: f, rows: N } = p, [g, T] = A(c ?? { index: 0 }), [v, _] = A({ num: 0, size: t }), S = (m) => {
1976
+ const { header: f, rows: b } = p, [g, T] = A(c ?? { index: 0 }), [v, _] = A({ num: 0, size: t }), S = (m) => {
1975
1977
  T(
1976
1978
  (M) => M.index === m ? { ...M, desc: !M.desc } : { index: m }
1977
1979
  );
1978
1980
  }, z = te(() => {
1979
1981
  var C;
1980
- const m = [...N], M = (C = f[g.index]) == null ? void 0 : C.sort;
1982
+ const m = [...b], M = (C = f[g.index]) == null ? void 0 : C.sort;
1981
1983
  return M ? m.sort(M) : m.sort((L, X) => {
1982
1984
  var $, Y, U, W;
1983
1985
  const Z = ((Y = ($ = L[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()) ?? "";
1984
1986
  return Z.localeCompare(I);
1985
1987
  }), g.desc ? m.reverse() : m;
1986
- }, [N, g, f]), k = te(
1988
+ }, [b, g, f]), k = te(
1987
1989
  () => z.slice(v.num * v.size, (v.num + 1) * v.size),
1988
1990
  [z, v]
1989
- ), H = f.filter((m) => !m.csvExclude).map((m) => typeof m.name == "string" ? m.name : ""), P = N.map(
1991
+ ), H = f.filter((m) => !m.csvExclude).map((m) => typeof m.name == "string" ? m.name : ""), P = b.map(
1990
1992
  (m) => m.filter((M, C) => !f[C].csvExclude).map((M) => M.csv ?? M.value ?? "")
1991
1993
  );
1992
1994
  return /* @__PURE__ */ e.jsxs("section", { className: "muncher-table", children: [
@@ -2019,7 +2021,7 @@ const Re = ({ variant: n, children: t }) => {
2019
2021
  `row-col-${M}-${L}`
2020
2022
  )
2021
2023
  ) }, `row-${M}`)),
2022
- u ?? null,
2024
+ h ?? null,
2023
2025
  /* @__PURE__ */ e.jsxs("div", { className: "row-footer", children: [
2024
2026
  /* @__PURE__ */ e.jsxs("div", { className: "row-footer-buttons", children: [
2025
2027
  !a && /* @__PURE__ */ e.jsx(
@@ -2038,12 +2040,12 @@ const Re = ({ variant: n, children: t }) => {
2038
2040
  name: "csv-input-file",
2039
2041
  handleOnChange: i,
2040
2042
  isUploading: x,
2041
- warningMessage: d,
2042
- successMessage: h
2043
+ warningMessage: j,
2044
+ successMessage: u
2043
2045
  }
2044
2046
  )
2045
2047
  ] }),
2046
- !j && /* @__PURE__ */ e.jsxs("div", { className: "pagination", children: [
2048
+ !d && /* @__PURE__ */ e.jsxs("div", { className: "pagination", children: [
2047
2049
  /* @__PURE__ */ e.jsxs("div", { className: "left", children: [
2048
2050
  "Rows:",
2049
2051
  /* @__PURE__ */ e.jsx(
@@ -2063,9 +2065,9 @@ const Re = ({ variant: n, children: t }) => {
2063
2065
  /* @__PURE__ */ e.jsxs("div", { className: "center", children: [
2064
2066
  v.num * v.size + 1,
2065
2067
  " -",
2066
- Math.min((v.num + 1) * v.size, N.length),
2068
+ Math.min((v.num + 1) * v.size, b.length),
2067
2069
  " of ",
2068
- N.length
2070
+ b.length
2069
2071
  ] }),
2070
2072
  /* @__PURE__ */ e.jsxs("div", { className: "right", children: [
2071
2073
  /* @__PURE__ */ e.jsx(
@@ -2075,17 +2077,17 @@ const Re = ({ variant: n, children: t }) => {
2075
2077
  disabled: v.num === 0,
2076
2078
  size: "small",
2077
2079
  onClick: () => _({ ...v, num: v.num - 1 }),
2078
- children: /* @__PURE__ */ e.jsx(w, { name: "chevron-left" })
2080
+ children: /* @__PURE__ */ e.jsx(N, { name: "chevron-left" })
2079
2081
  }
2080
2082
  ),
2081
2083
  /* @__PURE__ */ e.jsx(
2082
2084
  O,
2083
2085
  {
2084
2086
  variant: "transparent",
2085
- disabled: (v.num + 1) * v.size >= N.length,
2087
+ disabled: (v.num + 1) * v.size >= b.length,
2086
2088
  size: "small",
2087
2089
  onClick: () => _({ ...v, num: v.num + 1 }),
2088
- children: /* @__PURE__ */ e.jsx(w, { name: "chevron-right" })
2090
+ children: /* @__PURE__ */ e.jsx(N, { name: "chevron-right" })
2089
2091
  }
2090
2092
  )
2091
2093
  ] })
@@ -2106,7 +2108,7 @@ export {
2106
2108
  Ae as DropdownNavButton,
2107
2109
  Je as Featured,
2108
2110
  Ye as Hr,
2109
- w as Icon,
2111
+ N as Icon,
2110
2112
  Te as IconBadge,
2111
2113
  ze as ImageInput,
2112
2114
  ke as Input,