@oneclick.dev/cms-core-modules 0.0.34 → 0.0.35

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/dist/index.mjs CHANGED
@@ -820,8 +820,8 @@ const ho = {
820
820
  var k, b;
821
821
  const D = t.options.columnResizeDirection === "rtl" ? -1 : 1, E = (M - ((k = V == null ? void 0 : V.startOffset) != null ? k : 0)) * D, O = Math.max(E / ((b = V == null ? void 0 : V.startSize) != null ? b : 0), -0.999999);
822
822
  return V.columnSizingStart.forEach((L) => {
823
- let [ee, B] = L;
824
- a[ee] = Math.round(Math.max(B + B * O, 0) * 100) / 100;
823
+ let [ee, j] = L;
824
+ a[ee] = Math.round(Math.max(j + j * O, 0) * 100) / 100;
825
825
  }), {
826
826
  ...V,
827
827
  deltaOffset: E,
@@ -2270,7 +2270,7 @@ const Hd = /* @__PURE__ */ ce({
2270
2270
  __name: "DataTable",
2271
2271
  setup(e, { expose: t }) {
2272
2272
  const { Button: n, Checkbox: o } = Ya, { $dragAndDrop: r } = useNuxtApp(), { formatCurrency: i } = Xa(), s = se("integrationId", oe("")), u = se("resourcePath", oe("")), l = se("table"), a = se("data"), c = se("columns"), p = se("sortMode", oe(!1)), v = se("sortModeProperty", oe("")), m = se("filters", oe([])), g = se("itemActions", oe([])), _ = ve(() => {
2273
- var Q;
2273
+ var J;
2274
2274
  let F = [];
2275
2275
  return p.value ? F.push({
2276
2276
  id: "drag-handle",
@@ -2309,11 +2309,11 @@ const Hd = /* @__PURE__ */ ce({
2309
2309
  }),
2310
2310
  enableSorting: !1,
2311
2311
  enableHiding: !1
2312
- }), (Q = c.value) == null || Q.forEach((T) => {
2312
+ }), (J = c.value) == null || J.forEach((T) => {
2313
2313
  let te = !!m.value.find((A) => A.property === T.property);
2314
2314
  T.visible && (T.type === "text" ? F.push({
2315
2315
  id: T.property,
2316
- accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, j) => R == null ? void 0 : R[j], A) : A[T.property],
2316
+ accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, B) => R == null ? void 0 : R[B], A) : A[T.property],
2317
2317
  header: ({ column: A }) => Xe(n, {
2318
2318
  variant: "ghost",
2319
2319
  disabled: p.value,
@@ -2322,32 +2322,32 @@ const Hd = /* @__PURE__ */ ce({
2322
2322
  cell: ({ row: A }) => Xe("div", {}, A.getValue(T.property)),
2323
2323
  ...te ? {
2324
2324
  enableColumnFilter: !0,
2325
- filterFn: (A, R, j) => {
2326
- if (!Array.isArray(j) || j.length === 0) return !0;
2325
+ filterFn: (A, R, B) => {
2326
+ if (!Array.isArray(B) || B.length === 0) return !0;
2327
2327
  const G = A.getValue(R);
2328
- return j.includes(G);
2328
+ return B.includes(G);
2329
2329
  }
2330
2330
  } : {}
2331
2331
  }) : T.type === "number" ? F.push({
2332
2332
  id: T.property,
2333
- accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, j) => R == null ? void 0 : R[j], A) : A[T.property],
2333
+ accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, B) => R == null ? void 0 : R[B], A) : A[T.property],
2334
2334
  header: ({ column: A }) => Xe(n, {
2335
2335
  variant: "ghost",
2336
2336
  disabled: p.value,
2337
2337
  onClick: () => A.toggleSorting(A.getIsSorted() === "asc")
2338
2338
  }, () => [T.label, Xe(Tr, { class: "ml-2 size-4" })]),
2339
2339
  cell: ({ row: A }) => {
2340
- var R, j;
2341
- return Xe("div", { class: "" }, isNaN(A.getValue(T.property)) ? A.getValue(T.property) : (j = (R = parseFloat(A.getValue(T.property))) == null ? void 0 : R.toFixed(2)) == null ? void 0 : j.replace(".00", ""));
2340
+ var R, B;
2341
+ return Xe("div", { class: "" }, isNaN(A.getValue(T.property)) ? A.getValue(T.property) : (B = (R = parseFloat(A.getValue(T.property))) == null ? void 0 : R.toFixed(2)) == null ? void 0 : B.replace(".00", ""));
2342
2342
  }
2343
2343
  }) : T.type === "date" ? F.push({
2344
2344
  id: T.property,
2345
- accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, j) => R == null ? void 0 : R[j], A) : A[T.property],
2345
+ accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, B) => R == null ? void 0 : R[B], A) : A[T.property],
2346
2346
  header: T.label,
2347
2347
  cell: ({ row: A }) => Xe("div", { class: "" }, A.getValue(T.property))
2348
2348
  }) : T.type === "datetime" ? F.push({
2349
2349
  id: T.property,
2350
- accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, j) => R == null ? void 0 : R[j], A) : A[T.property],
2350
+ accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, B) => R == null ? void 0 : R[B], A) : A[T.property],
2351
2351
  header: T.label,
2352
2352
  cell: ({ row: A }) => {
2353
2353
  var R;
@@ -2355,32 +2355,32 @@ const Hd = /* @__PURE__ */ ce({
2355
2355
  }
2356
2356
  }) : T.type === "boolean" ? F.push({
2357
2357
  id: T.property,
2358
- accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, j) => R == null ? void 0 : R[j], A) : A[T.property],
2358
+ accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, B) => R == null ? void 0 : R[B], A) : A[T.property],
2359
2359
  header: T.label,
2360
2360
  cell: ({ row: A }) => Xe(o, { defaultValue: A.getValue(T.property), disabled: !0, class: "border-ring disabled:cursor-default disabled:opacity-100" })
2361
2361
  }) : T.type === "URL" ? F.push({
2362
2362
  id: T.property,
2363
- accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, j) => R == null ? void 0 : R[j], A) : A[T.property],
2363
+ accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, B) => R == null ? void 0 : R[B], A) : A[T.property],
2364
2364
  header: T.label,
2365
2365
  cell: ({ row: A }) => Xe("a", { href: A.getValue(T.property), target: "_blank", class: "text-primary" }, A.getValue(T.property))
2366
2366
  }) : T.type === "email" ? F.push({
2367
2367
  id: T.property,
2368
- accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, j) => R == null ? void 0 : R[j], A) : A[T.property],
2368
+ accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, B) => R == null ? void 0 : R[B], A) : A[T.property],
2369
2369
  header: T.label,
2370
2370
  cell: ({ row: A }) => Xe("a", { href: `mailto:${A.getValue(T.property)}`, class: "text-primary" }, A.getValue(T.property))
2371
2371
  }) : T.type === "phone" ? F.push({
2372
2372
  id: T.property,
2373
- accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, j) => R == null ? void 0 : R[j], A) : A[T.property],
2373
+ accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, B) => R == null ? void 0 : R[B], A) : A[T.property],
2374
2374
  header: T.label,
2375
2375
  cell: ({ row: A }) => Xe("a", { href: `tel:${A.getValue(T.property)}`, class: "text-primary" }, A.getValue(T.property))
2376
2376
  }) : T.type === "currency" ? F.push({
2377
2377
  id: T.property,
2378
- accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, j) => R == null ? void 0 : R[j], A) : A[T.property],
2378
+ accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, B) => R == null ? void 0 : R[B], A) : A[T.property],
2379
2379
  header: T.label,
2380
2380
  cell: ({ row: A }) => Xe("div", { class: "" }, i(A.getValue(T.property)))
2381
2381
  }) : T.type === "image" && F.push({
2382
2382
  id: T.property,
2383
- accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, j) => R == null ? void 0 : R[j], A) : A[T.property],
2383
+ accessorFn: (A) => T.property.includes(".") ? T.property.split(".").reduce((R, B) => R == null ? void 0 : R[B], A) : A[T.property],
2384
2384
  header: T.label,
2385
2385
  cell: ({ row: A }) => A.getValue(T.property) ? Xe("img", { src: A.getValue(T.property), alt: T.label, class: "size-16 object-cover" }) : ""
2386
2386
  }));
@@ -2403,12 +2403,12 @@ const Hd = /* @__PURE__ */ ce({
2403
2403
  onGlobalFilterChange(F) {
2404
2404
  Cn(F, I);
2405
2405
  },
2406
- globalFilterFn: (F, Q, T) => {
2406
+ globalFilterFn: (F, J, T) => {
2407
2407
  const te = T.toLowerCase();
2408
2408
  return c.value.map((R) => R.property).some((R) => {
2409
2409
  var G;
2410
- const j = (G = F.original) == null ? void 0 : G[R];
2411
- return typeof j == "string" && j.toLowerCase().includes(te);
2410
+ const B = (G = F.original) == null ? void 0 : G[R];
2411
+ return typeof B == "string" && B.toLowerCase().includes(te);
2412
2412
  });
2413
2413
  },
2414
2414
  getCoreRowModel: xd(),
@@ -2450,14 +2450,14 @@ const Hd = /* @__PURE__ */ ce({
2450
2450
  };
2451
2451
  l.value = Ed(F);
2452
2452
  }), me(p, (F) => {
2453
- var Q;
2454
- F ? ee() : (Q = l == null ? void 0 : l.value) == null || Q.setPageSize(L.value);
2453
+ var J;
2454
+ F ? ee() : (J = l == null ? void 0 : l.value) == null || J.setPageSize(L.value);
2455
2455
  });
2456
2456
  const [E, O] = r([], {
2457
2457
  plugins: [$o()]
2458
2458
  }), L = oe(0), ee = () => {
2459
- var F, Q;
2460
- L.value = (F = l == null ? void 0 : l.value) == null ? void 0 : F.getState().pagination.pageSize, (Q = l == null ? void 0 : l.value) == null || Q.setPageSize(1e4), O.value = ((a == null ? void 0 : a.value) ?? []).slice().sort((T, te) => {
2459
+ var F, J;
2460
+ L.value = (F = l == null ? void 0 : l.value) == null ? void 0 : F.getState().pagination.pageSize, (J = l == null ? void 0 : l.value) == null || J.setPageSize(1e4), O.value = ((a == null ? void 0 : a.value) ?? []).slice().sort((T, te) => {
2461
2461
  const A = T[v.value] ?? 0, R = te[v.value] ?? 0;
2462
2462
  return A - R;
2463
2463
  }).map((T, te) => ({
@@ -2468,20 +2468,20 @@ const Hd = /* @__PURE__ */ ce({
2468
2468
  [v.value]: te
2469
2469
  },
2470
2470
  getVisibleCells: () => {
2471
- var A, R, j;
2472
- return (j = (R = (A = l == null ? void 0 : l.value) == null ? void 0 : A.getRowModel().rows) == null ? void 0 : R.find((G) => G.original.id === T.id)) == null ? void 0 : j.getVisibleCells();
2471
+ var A, R, B;
2472
+ return (B = (R = (A = l == null ? void 0 : l.value) == null ? void 0 : A.getRowModel().rows) == null ? void 0 : R.find((G) => G.original.id === T.id)) == null ? void 0 : B.getVisibleCells();
2473
2473
  }
2474
2474
  }));
2475
2475
  };
2476
2476
  return t({
2477
2477
  saveSortMode: async () => {
2478
2478
  const { update: F } = ri(s.value);
2479
- a.value.forEach((Q) => {
2480
- Q[v.value] !== O.value.findIndex((T) => T.id === Q.id) && (Q[v.value] = O.value.findIndex((T) => T.id === Q.id), F(u.value, Q.id, { [v.value]: Q[v.value] }));
2479
+ a.value.forEach((J) => {
2480
+ J[v.value] !== O.value.findIndex((T) => T.id === J.id) && (J[v.value] = O.value.findIndex((T) => T.id === J.id), F(u.value, J.id, { [v.value]: J[v.value] }));
2481
2481
  });
2482
2482
  }
2483
- }), (F, Q) => {
2484
- const T = y("TableHead"), te = y("TableRow"), A = y("TableHeader"), R = y("TableCell"), j = y("TableBody"), G = y("Table");
2483
+ }), (F, J) => {
2484
+ const T = y("TableHead"), te = y("TableRow"), A = y("TableHeader"), R = y("TableCell"), B = y("TableBody"), G = y("Table");
2485
2485
  return w(), P(le, null, [
2486
2486
  S("div", Gd, [
2487
2487
  d(G, null, {
@@ -2510,7 +2510,7 @@ const Hd = /* @__PURE__ */ ce({
2510
2510
  ]),
2511
2511
  _: 1
2512
2512
  }),
2513
- d(j, {
2513
+ d(B, {
2514
2514
  ref_key: "dragContainer",
2515
2515
  ref: E
2516
2516
  }, {
@@ -2563,7 +2563,7 @@ const Hd = /* @__PURE__ */ ce({
2563
2563
  colspan: 999,
2564
2564
  class: "h-24 text-center"
2565
2565
  }, {
2566
- default: f(() => Q[0] || (Q[0] = [
2566
+ default: f(() => J[0] || (J[0] = [
2567
2567
  C(" No results. ")
2568
2568
  ])),
2569
2569
  _: 1,
@@ -2616,7 +2616,7 @@ const Hd = /* @__PURE__ */ ce({
2616
2616
  return t({
2617
2617
  openDialog: a
2618
2618
  }), (g, _) => {
2619
- const I = y("DialogTitle"), x = y("DialogDescription"), M = y("DialogHeader"), V = y("Label"), k = y("Input"), b = y("SelectValue"), D = y("SelectTrigger"), E = y("SelectItem"), O = y("SelectContent"), L = y("Select"), ee = y("ComboboxTrigger"), B = y("ComboboxInput"), F = y("ComboboxAnchor"), Q = y("ComboboxItem"), T = y("ComboboxGroup"), te = y("ComboboxList"), A = y("Combobox"), R = y("Button"), j = y("DialogFooter"), G = y("DialogScrollContent"), U = y("Dialog");
2619
+ const I = y("DialogTitle"), x = y("DialogDescription"), M = y("DialogHeader"), V = y("Label"), k = y("Input"), b = y("SelectValue"), D = y("SelectTrigger"), E = y("SelectItem"), O = y("SelectContent"), L = y("Select"), ee = y("ComboboxTrigger"), j = y("ComboboxInput"), F = y("ComboboxAnchor"), J = y("ComboboxItem"), T = y("ComboboxGroup"), te = y("ComboboxList"), A = y("Combobox"), R = y("Button"), B = y("DialogFooter"), G = y("DialogScrollContent"), U = y("Dialog");
2620
2620
  return w(), Z(U, {
2621
2621
  open: i.value,
2622
2622
  "onUpdate:open": _[4] || (_[4] = (q) => i.value = q)
@@ -2749,7 +2749,7 @@ const Hd = /* @__PURE__ */ ce({
2749
2749
  ]),
2750
2750
  _: 1
2751
2751
  }),
2752
- d(B, {
2752
+ d(j, {
2753
2753
  modelValue: l.field,
2754
2754
  "onUpdate:modelValue": _[2] || (_[2] = ($) => l.field = $),
2755
2755
  hideIcon: "",
@@ -2763,7 +2763,7 @@ const Hd = /* @__PURE__ */ ce({
2763
2763
  default: f(() => [
2764
2764
  d(T, null, {
2765
2765
  default: f(() => [
2766
- (w(!0), P(le, null, Ie(h(r), ($) => (w(), Z(Q, {
2766
+ (w(!0), P(le, null, Ie(h(r), ($) => (w(), Z(J, {
2767
2767
  key: $.property,
2768
2768
  value: $.property,
2769
2769
  onSelect: () => {
@@ -2827,7 +2827,7 @@ const Hd = /* @__PURE__ */ ce({
2827
2827
  ]),
2828
2828
  _: 1
2829
2829
  }),
2830
- d(B, {
2830
+ d(j, {
2831
2831
  modelValue: $.field,
2832
2832
  "onUpdate:modelValue": (H) => $.field = H,
2833
2833
  hideIcon: "",
@@ -2841,7 +2841,7 @@ const Hd = /* @__PURE__ */ ce({
2841
2841
  default: f(() => [
2842
2842
  d(T, null, {
2843
2843
  default: f(() => [
2844
- (w(!0), P(le, null, Ie(h(r), (H) => (w(), Z(Q, {
2844
+ (w(!0), P(le, null, Ie(h(r), (H) => (w(), Z(J, {
2845
2845
  key: H.property,
2846
2846
  value: H.property,
2847
2847
  onSelect: () => {
@@ -2986,7 +2986,7 @@ const Hd = /* @__PURE__ */ ce({
2986
2986
  __: [24]
2987
2987
  })
2988
2988
  ]),
2989
- d(j, null, {
2989
+ d(B, null, {
2990
2990
  default: f(() => [
2991
2991
  s.value === "edit" ? (w(), Z(R, {
2992
2992
  key: 0,
@@ -3173,7 +3173,7 @@ const Hd = /* @__PURE__ */ ce({
3173
3173
  n("columns", s.value), i.value = s.value, c(), u.value = !1;
3174
3174
  };
3175
3175
  return (m, g) => {
3176
- const _ = y("DropdownMenuItem"), I = y("DialogTrigger"), x = y("DialogTitle"), M = y("DialogDescription"), V = y("DialogHeader"), k = y("Button"), b = y("PopoverTrigger"), D = y("Label"), E = y("Input"), O = y("Checkbox"), L = y("SelectValue"), ee = y("SelectTrigger"), B = y("SelectLabel"), F = y("SelectItem"), Q = y("SelectGroup"), T = y("SelectContent"), te = y("Select"), A = y("PopoverContent"), R = y("Popover"), j = y("DialogFooter"), G = y("DialogScrollContent"), U = y("Dialog");
3176
+ const _ = y("DropdownMenuItem"), I = y("DialogTrigger"), x = y("DialogTitle"), M = y("DialogDescription"), V = y("DialogHeader"), k = y("Button"), b = y("PopoverTrigger"), D = y("Label"), E = y("Input"), O = y("Checkbox"), L = y("SelectValue"), ee = y("SelectTrigger"), j = y("SelectLabel"), F = y("SelectItem"), J = y("SelectGroup"), T = y("SelectContent"), te = y("Select"), A = y("PopoverContent"), R = y("Popover"), B = y("DialogFooter"), G = y("DialogScrollContent"), U = y("Dialog");
3177
3177
  return w(), Z(U, {
3178
3178
  open: u.value,
3179
3179
  "onUpdate:open": [
@@ -3319,9 +3319,9 @@ const Hd = /* @__PURE__ */ ce({
3319
3319
  }),
3320
3320
  d(T, null, {
3321
3321
  default: f(() => [
3322
- d(Q, null, {
3322
+ d(J, null, {
3323
3323
  default: f(() => [
3324
- d(B, null, {
3324
+ d(j, null, {
3325
3325
  default: f(() => g[15] || (g[15] = [
3326
3326
  C("Types")
3327
3327
  ])),
@@ -3515,9 +3515,9 @@ const Hd = /* @__PURE__ */ ce({
3515
3515
  }),
3516
3516
  d(T, null, {
3517
3517
  default: f(() => [
3518
- d(Q, null, {
3518
+ d(J, null, {
3519
3519
  default: f(() => [
3520
- d(B, null, {
3520
+ d(j, null, {
3521
3521
  default: f(() => g[32] || (g[32] = [
3522
3522
  C("Types")
3523
3523
  ])),
@@ -3619,7 +3619,7 @@ const Hd = /* @__PURE__ */ ce({
3619
3619
  ])
3620
3620
  ]))), 128))
3621
3621
  ]),
3622
- d(j, null, {
3622
+ d(B, null, {
3623
3623
  default: f(() => [
3624
3624
  d(k, { onClick: v }, {
3625
3625
  default: f(() => g[43] || (g[43] = [
@@ -3759,8 +3759,8 @@ const Hd = /* @__PURE__ */ ce({
3759
3759
  o("saved", { field: l.value }), c();
3760
3760
  };
3761
3761
  return (v, m) => {
3762
- const g = y("DialogTrigger"), _ = y("DialogTitle"), I = y("DialogDescription"), x = y("DialogHeader"), M = y("Label"), V = y("ComboboxTrigger"), k = y("ComboboxInput"), b = y("ComboboxAnchor"), D = y("ComboboxItem"), E = y("ComboboxGroup"), O = y("ComboboxList"), L = y("Combobox"), ee = y("Button"), B = y("DialogFooter"), F = y("DialogScrollContent"), Q = y("Dialog");
3763
- return w(), Z(Q, {
3762
+ const g = y("DialogTrigger"), _ = y("DialogTitle"), I = y("DialogDescription"), x = y("DialogHeader"), M = y("Label"), V = y("ComboboxTrigger"), k = y("ComboboxInput"), b = y("ComboboxAnchor"), D = y("ComboboxItem"), E = y("ComboboxGroup"), O = y("ComboboxList"), L = y("Combobox"), ee = y("Button"), j = y("DialogFooter"), F = y("DialogScrollContent"), J = y("Dialog");
3763
+ return w(), Z(J, {
3764
3764
  open: u.value,
3765
3765
  "onUpdate:open": [
3766
3766
  m[3] || (m[3] = (T) => u.value = T),
@@ -3862,7 +3862,7 @@ const Hd = /* @__PURE__ */ ce({
3862
3862
  _: 1
3863
3863
  }, 8, ["modelValue"])
3864
3864
  ]),
3865
- d(B, null, {
3865
+ d(j, null, {
3866
3866
  default: f(() => [
3867
3867
  S("div", kc, [
3868
3868
  r.savedField ? (w(), Z(ee, {
@@ -4609,7 +4609,7 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
4609
4609
  o("saved", { field: a.value, defaultDate: c.value }), v();
4610
4610
  };
4611
4611
  return (g, _) => {
4612
- const I = y("DialogTrigger"), x = y("DialogTitle"), M = y("DialogDescription"), V = y("DialogHeader"), k = y("Label"), b = y("ComboboxTrigger"), D = y("ComboboxInput"), E = y("ComboboxAnchor"), O = y("ComboboxItem"), L = y("ComboboxGroup"), ee = y("ComboboxList"), B = y("Combobox"), F = y("SelectValue"), Q = y("SelectTrigger"), T = y("SelectItem"), te = y("SelectLabel"), A = y("SelectGroup"), R = y("SelectContent"), j = y("Select"), G = y("Button"), U = y("DialogFooter"), q = y("DialogScrollContent"), $ = y("Dialog");
4612
+ const I = y("DialogTrigger"), x = y("DialogTitle"), M = y("DialogDescription"), V = y("DialogHeader"), k = y("Label"), b = y("ComboboxTrigger"), D = y("ComboboxInput"), E = y("ComboboxAnchor"), O = y("ComboboxItem"), L = y("ComboboxGroup"), ee = y("ComboboxList"), j = y("Combobox"), F = y("SelectValue"), J = y("SelectTrigger"), T = y("SelectItem"), te = y("SelectLabel"), A = y("SelectGroup"), R = y("SelectContent"), B = y("Select"), G = y("Button"), U = y("DialogFooter"), q = y("DialogScrollContent"), $ = y("Dialog");
4613
4613
  return w(), Z($, {
4614
4614
  open: l.value,
4615
4615
  "onUpdate:open": [
@@ -4651,7 +4651,7 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
4651
4651
  _: 1
4652
4652
  }),
4653
4653
  S("div", of, [
4654
- d(B, {
4654
+ d(j, {
4655
4655
  by: "label",
4656
4656
  class: "w-full",
4657
4657
  resetSearchTermOnBlur: !1,
@@ -4720,12 +4720,12 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
4720
4720
  _: 1,
4721
4721
  __: [8]
4722
4722
  }),
4723
- d(j, {
4723
+ d(B, {
4724
4724
  modelValue: c.value,
4725
4725
  "onUpdate:modelValue": _[3] || (_[3] = (H) => c.value = H)
4726
4726
  }, {
4727
4727
  default: f(() => [
4728
- d(Q, { class: "w-[180px]" }, {
4728
+ d(J, { class: "w-[180px]" }, {
4729
4729
  default: f(() => [
4730
4730
  d(F, { placeholder: "Select a fruit" })
4731
4731
  ]),
@@ -4908,12 +4908,12 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
4908
4908
  const I = await t("dateRangeFilter");
4909
4909
  c.value = (I == null ? void 0 : I.field) ?? "", p.value = (I == null ? void 0 : I.defaultDate) ?? "today", m(p.value), _();
4910
4910
  }), (I, x) => {
4911
- const M = y("Button"), V = y("PopoverTrigger"), k = y("RangeCalendar"), b = y("DropdownMenuTrigger"), D = y("DropdownMenuItem"), E = y("DropdownMenuSeparator"), O = y("DropdownMenuLabel"), L = y("DropdownMenuGroup"), ee = y("DropdownMenuContent"), B = y("DropdownMenu"), F = y("PopoverContent"), Q = y("Popover");
4911
+ const M = y("Button"), V = y("PopoverTrigger"), k = y("RangeCalendar"), b = y("DropdownMenuTrigger"), D = y("DropdownMenuItem"), E = y("DropdownMenuSeparator"), O = y("DropdownMenuLabel"), L = y("DropdownMenuGroup"), ee = y("DropdownMenuContent"), j = y("DropdownMenu"), F = y("PopoverContent"), J = y("Popover");
4912
4912
  return c.value || h(o)() ? (w(), P("div", {
4913
4913
  key: 0,
4914
4914
  class: Ze(["flex flex-col items-start gap-1", h(r) ? "opacity-50 pointer-events-none" : ""])
4915
4915
  }, [
4916
- d(Q, {
4916
+ d(J, {
4917
4917
  open: a.value,
4918
4918
  "onUpdate:open": x[14] || (x[14] = (T) => a.value = T)
4919
4919
  }, {
@@ -4955,7 +4955,7 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
4955
4955
  "onUpdate:startValue": x[1] || (x[1] = (T) => l.value.start = T)
4956
4956
  }, null, 8, ["modelValue"]),
4957
4957
  S("div", df, [
4958
- d(B, null, {
4958
+ d(j, null, {
4959
4959
  default: f(() => [
4960
4960
  d(b, { "as-child": "" }, {
4961
4961
  default: f(() => [
@@ -5167,13 +5167,13 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
5167
5167
  return t({
5168
5168
  openDialog: c
5169
5169
  }), (I, x) => {
5170
- const M = y("DialogTitle"), V = y("DialogDescription"), k = y("DialogHeader"), b = y("Label"), D = y("Input"), E = y("Button"), O = y("PopoverTrigger"), L = y("Checkbox"), ee = y("PopoverContent"), B = y("Popover"), F = y("DialogFooter"), Q = y("DialogScrollContent"), T = y("Dialog");
5170
+ const M = y("DialogTitle"), V = y("DialogDescription"), k = y("DialogHeader"), b = y("Label"), D = y("Input"), E = y("Button"), O = y("PopoverTrigger"), L = y("Checkbox"), ee = y("PopoverContent"), j = y("Popover"), F = y("DialogFooter"), J = y("DialogScrollContent"), T = y("Dialog");
5171
5171
  return w(), Z(T, {
5172
5172
  open: r.value,
5173
5173
  "onUpdate:open": x[6] || (x[6] = (te) => r.value = te)
5174
5174
  }, {
5175
5175
  default: f(() => [
5176
- d(Q, { class: "sm:max-w-2xl" }, {
5176
+ d(J, { class: "sm:max-w-2xl" }, {
5177
5177
  default: f(() => [
5178
5178
  d(k, null, {
5179
5179
  default: f(() => [
@@ -5237,7 +5237,7 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
5237
5237
  __: [9]
5238
5238
  }),
5239
5239
  x[16] || (x[16] = S("p", { class: "text-xs text-muted-foreground mb-2" }, " Define all options for this filter. ", -1)),
5240
- d(B, {
5240
+ d(j, {
5241
5241
  open: u.value,
5242
5242
  "onUpdate:open": x[5] || (x[5] = (te) => u.value = te)
5243
5243
  }, {
@@ -5868,49 +5868,53 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
5868
5868
  const t = e, n = Rt(), { isAdmin: o } = St(), { getModuleData: r } = qt(), { navigateTo: i } = Rt(), { setModuleBreadcrumbs: s } = Zo(), { runFlow: u } = Bs();
5869
5869
  s([]);
5870
5870
  const l = oe(), a = oe(), c = oe([]), p = oe([]), v = oe(), m = oe(!1), g = oe(""), _ = oe(), I = oe([]), x = oe([]), M = oe({}), V = ve(() => {
5871
- var B, F;
5872
- return (F = (B = t.config) == null ? void 0 : B.getItems) == null ? void 0 : F.integration;
5871
+ var j, F;
5872
+ return (F = (j = t.config) == null ? void 0 : j.getItems) == null ? void 0 : F.integration;
5873
5873
  }), k = async () => {
5874
5874
  var te, A;
5875
- const B = await r("dateRangeFilter");
5875
+ const j = await r("dateRangeFilter");
5876
5876
  let F;
5877
- return B && (F = {
5877
+ j && (F = {
5878
5878
  name: "dateRangeFilter",
5879
5879
  type: "dateRangeFilter",
5880
5880
  value: {
5881
5881
  from: (te = _.value) == null ? void 0 : te[0],
5882
5882
  to: (A = _.value) == null ? void 0 : A[1]
5883
5883
  }
5884
- }), [...Object.entries(n.query).map(([R, j]) => ({
5884
+ });
5885
+ const J = Object.entries(n.query).map(([R, B]) => ({
5885
5886
  name: E(R),
5886
5887
  type: "routeQueryParam",
5887
- value: j ?? null
5888
- })) || [], F].filter(Boolean);
5888
+ value: B ?? null
5889
+ })) || [];
5890
+ return console.log("route.query", n.query), console.log("routeQueryVars", J), [...J, F].filter(Boolean);
5889
5891
  }, b = async () => {
5890
5892
  var T, te;
5891
- let B = (T = t.config) != null && T.getItems ? JSON.parse(JSON.stringify((te = t.config) == null ? void 0 : te.getItems)) : null;
5892
- if (!B) return;
5893
- const F = await k(), Q = await u(B, F);
5894
- c.value = Q || [];
5893
+ let j = (T = t.config) != null && T.getItems ? JSON.parse(JSON.stringify((te = t.config) == null ? void 0 : te.getItems)) : null;
5894
+ if (!j) return;
5895
+ const F = await k();
5896
+ console.log("cccc", j, F);
5897
+ const J = await u(j, F);
5898
+ c.value = J || [];
5895
5899
  }, D = async () => {
5896
5900
  p.value = await r("columns"), x.value = await r("itemActions") || [], M.value = await r("ctaButtonSettings");
5897
5901
  };
5898
- function E(B) {
5899
- return B.replace(/-([a-z])/g, (F, Q) => Q.toUpperCase());
5902
+ function E(j) {
5903
+ return j.replace(/-([a-z])/g, (F, J) => J.toUpperCase());
5900
5904
  }
5901
5905
  const O = () => {
5902
5906
  a.value.saveSortMode(), m.value = !1;
5903
5907
  }, L = async () => {
5904
- const B = await k(), F = await u(M.value.flow, B);
5908
+ const j = await k(), F = await u(M.value.flow, j);
5905
5909
  console.log(F);
5906
5910
  }, ee = () => {
5907
5911
  Md(c.value, "data.csv");
5908
5912
  };
5909
5913
  return lt(() => {
5910
5914
  b(), D();
5911
- }), Le("data", c), Le("columns", p), Le("table", v), Le("sortMode", m), Le("sortModeProperty", g), Le("dateRangeFilter", _), Le("filters", I), Le("itemActions", x), Le("ctaButtonSettings", M), Le("integrationId", V), Le("getTableData", b), Le("saveSortMode", O), (B, F) => {
5915
+ }), Le("data", c), Le("columns", p), Le("table", v), Le("sortMode", m), Le("sortModeProperty", g), Le("dateRangeFilter", _), Le("filters", I), Le("itemActions", x), Le("ctaButtonSettings", M), Le("integrationId", V), Le("getTableData", b), Le("saveSortMode", O), (j, F) => {
5912
5916
  var T;
5913
- const Q = y("Button");
5917
+ const J = y("Button");
5914
5918
  return w(), P(le, null, [
5915
5919
  S("div", Ff, [
5916
5920
  S("div", zf, [
@@ -5926,7 +5930,7 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
5926
5930
  S("div", jf, [
5927
5931
  h(o)() ? (w(), Z(Mf, { key: 0 })) : ie("", !0),
5928
5932
  (T = M.value) != null && T.enabled ? (w(), P("div", Bf, [
5929
- d(Q, { onClick: L }, {
5933
+ d(J, { onClick: L }, {
5930
5934
  default: f(() => {
5931
5935
  var te, A;
5932
5936
  return [
@@ -5941,7 +5945,7 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
5941
5945
  class: "text-xs text-primary hover:underline",
5942
5946
  onClick: F[0] || (F[0] = (te) => l.value.openDialog())
5943
5947
  }, "Settings")) : ie("", !0)
5944
- ])) : h(o)() ? (w(), Z(Q, {
5948
+ ])) : h(o)() ? (w(), Z(J, {
5945
5949
  key: 2,
5946
5950
  variant: "outline",
5947
5951
  class: "border-primary dark:border-primary border-dashed text-primary dark:text-primary",
@@ -5960,7 +5964,7 @@ const nf = ["disabled"], of = { class: "flex flex-col items-start gap-4 py-4" },
5960
5964
  ref_key: "tableRef",
5961
5965
  ref: a
5962
5966
  }, null, 512),
5963
- d(Q, { onClick: ee }, {
5967
+ d(J, { onClick: ee }, {
5964
5968
  default: f(() => F[3] || (F[3] = [
5965
5969
  C(" Download data ")
5966
5970
  ])),
@@ -6380,7 +6384,7 @@ const _p = { class: "relative" }, yp = {
6380
6384
  r("Loaded products", { module: "products" }), i("Product saved without proper SEO", { module: "products" }), s("Product failed to save", { module: "products" }), c();
6381
6385
  }), (k, b) => {
6382
6386
  var Pe;
6383
- const D = y("Input"), E = y("Button"), O = y("PopoverTrigger"), L = y("ComboboxTrigger"), ee = y("ComboboxAnchor"), B = y("ComboboxInput"), F = y("ComboboxEmpty"), Q = y("ComboboxItemIndicator"), T = y("ComboboxItem"), te = y("ScrollArea"), A = y("ComboboxGroup"), R = y("ComboboxList"), j = y("Combobox"), G = y("Checkbox"), U = y("PopoverContent"), q = y("Popover"), $ = y("SegmentedControlButton"), H = y("SegmentedControl"), de = y("PaginationFirst"), Ee = y("PaginationPrev"), W = y("PaginationListItem"), ne = y("PaginationEllipsis"), ye = y("PaginationNext"), K = y("PaginationLast"), be = y("PaginationList"), Ve = y("Pagination");
6387
+ const D = y("Input"), E = y("Button"), O = y("PopoverTrigger"), L = y("ComboboxTrigger"), ee = y("ComboboxAnchor"), j = y("ComboboxInput"), F = y("ComboboxEmpty"), J = y("ComboboxItemIndicator"), T = y("ComboboxItem"), te = y("ScrollArea"), A = y("ComboboxGroup"), R = y("ComboboxList"), B = y("Combobox"), G = y("Checkbox"), U = y("PopoverContent"), q = y("Popover"), $ = y("SegmentedControlButton"), H = y("SegmentedControl"), de = y("PaginationFirst"), Ee = y("PaginationPrev"), W = y("PaginationListItem"), ne = y("PaginationEllipsis"), ye = y("PaginationNext"), Q = y("PaginationLast"), be = y("PaginationList"), Ve = y("Pagination");
6384
6388
  return w(), P("div", _p, [
6385
6389
  S("div", yp, [
6386
6390
  S("div", bp, [
@@ -6430,7 +6434,7 @@ const _p = { class: "relative" }, yp = {
6430
6434
  d(U, { class: "w-64" }, {
6431
6435
  default: f(() => [
6432
6436
  b[15] || (b[15] = S("p", { class: "text-sm font-medium text-muted-foreground mb-4" }, " Filter by Category ", -1)),
6433
- d(j, {
6437
+ d(B, {
6434
6438
  modelValue: M.value.collections,
6435
6439
  "onUpdate:modelValue": b[1] || (b[1] = (Te) => M.value.collections = Te),
6436
6440
  by: "label",
@@ -6461,7 +6465,7 @@ const _p = { class: "relative" }, yp = {
6461
6465
  d(R, null, {
6462
6466
  default: f(() => [
6463
6467
  S("div", Rp, [
6464
- d(B, { placeholder: "Select category..." })
6468
+ d(j, { placeholder: "Select category..." })
6465
6469
  ]),
6466
6470
  d(F, null, {
6467
6471
  default: f(() => b[10] || (b[10] = [
@@ -6480,7 +6484,7 @@ const _p = { class: "relative" }, yp = {
6480
6484
  }, {
6481
6485
  default: f(() => [
6482
6486
  C(Y(Te.label) + " ", 1),
6483
- d(Q, null, {
6487
+ d(J, null, {
6484
6488
  default: f(() => [
6485
6489
  d(h(Dn), {
6486
6490
  class: Ze(h(gn)("ml-auto size-4"))
@@ -6630,7 +6634,7 @@ const _p = { class: "relative" }, yp = {
6630
6634
  }, null, 8, ["index"]))
6631
6635
  ], 64))), 256)),
6632
6636
  d(ye),
6633
- d(K)
6637
+ d(Q)
6634
6638
  ]),
6635
6639
  _: 1
6636
6640
  })
@@ -7614,7 +7618,7 @@ function Ll(e, t, n) {
7614
7618
  type: s,
7615
7619
  validate: M.value ? A : void 0,
7616
7620
  schema: V ? t : void 0
7617
- }), B = ve(() => L.value[0]);
7621
+ }), j = ve(() => L.value[0]);
7618
7622
  m && wm({
7619
7623
  value: b,
7620
7624
  prop: m,
@@ -7624,11 +7628,11 @@ function Ll(e, t, n) {
7624
7628
  const F = (W, ne = !1) => {
7625
7629
  E.touched = !0, ne && T();
7626
7630
  };
7627
- async function Q(W) {
7631
+ async function J(W) {
7628
7632
  var ne, ye;
7629
7633
  if (I != null && I.validateSchema) {
7630
- const { results: K } = await I.validateSchema(W);
7631
- return (ne = K[he(x)]) !== null && ne !== void 0 ? ne : { valid: !0, errors: [] };
7634
+ const { results: Q } = await I.validateSchema(W);
7635
+ return (ne = Q[he(x)]) !== null && ne !== void 0 ? ne : { valid: !0, errors: [] };
7632
7636
  }
7633
7637
  return M.value ? Al(b.value, M.value, {
7634
7638
  name: he(x),
@@ -7637,7 +7641,7 @@ function Ll(e, t, n) {
7637
7641
  bails: i
7638
7642
  }) : { valid: !0, errors: [] };
7639
7643
  }
7640
- const T = Hr(async () => (E.pending = !0, E.validated = !0, Q("validated-only")), (W) => (ee.pendingUnmount[de.id] || (O({ errors: W.errors }), E.pending = !1, E.valid = W.valid), W)), te = Hr(async () => Q("silent"), (W) => (E.valid = W.valid, W));
7644
+ const T = Hr(async () => (E.pending = !0, E.validated = !0, J("validated-only")), (W) => (ee.pendingUnmount[de.id] || (O({ errors: W.errors }), E.pending = !1, E.valid = W.valid), W)), te = Hr(async () => J("silent"), (W) => (E.valid = W.valid, W));
7641
7645
  function A(W) {
7642
7646
  return (W == null ? void 0 : W.mode) === "silent" ? te() : T();
7643
7647
  }
@@ -7650,7 +7654,7 @@ function Ll(e, t, n) {
7650
7654
  return T();
7651
7655
  (!I || !I.validateSchema) && te();
7652
7656
  });
7653
- function j(W) {
7657
+ function B(W) {
7654
7658
  E.touched = W;
7655
7659
  }
7656
7660
  function G(W) {
@@ -7684,7 +7688,7 @@ function Ll(e, t, n) {
7684
7688
  value: H,
7685
7689
  meta: E,
7686
7690
  errors: L,
7687
- errorMessage: B,
7691
+ errorMessage: j,
7688
7692
  type: s,
7689
7693
  checkedValue: u,
7690
7694
  uncheckedValue: c,
@@ -7696,7 +7700,7 @@ function Ll(e, t, n) {
7696
7700
  handleChange: R,
7697
7701
  handleBlur: F,
7698
7702
  setState: O,
7699
- setTouched: j,
7703
+ setTouched: B,
7700
7704
  setErrors: $,
7701
7705
  setValue: q
7702
7706
  };
@@ -7711,11 +7715,11 @@ function Ll(e, t, n) {
7711
7715
  const Ee = ve(() => {
7712
7716
  const W = M.value;
7713
7717
  return !W || bt(W) || Ao(W) || Mt(W) || Array.isArray(W) ? {} : Object.keys(W).reduce((ne, ye) => {
7714
- const K = Kp(W[ye]).map((be) => be.__locatorRef).reduce((be, Ve) => {
7718
+ const Q = Kp(W[ye]).map((be) => be.__locatorRef).reduce((be, Ve) => {
7715
7719
  const Pe = xt(I.values, Ve) || I.values[Ve];
7716
7720
  return Pe !== void 0 && (be[Ve] = Pe), be;
7717
7721
  }, {});
7718
- return Object.assign(ne, K), ne;
7722
+ return Object.assign(ne, Q), ne;
7719
7723
  }, {});
7720
7724
  });
7721
7725
  return me(Ee, (W, ne) => {
@@ -7730,15 +7734,15 @@ function Ll(e, t, n) {
7730
7734
  return;
7731
7735
  }
7732
7736
  ee.pendingUnmount[de.id] = !0;
7733
- const K = I.getPathState(ye);
7734
- if (Array.isArray(K == null ? void 0 : K.id) && (K != null && K.multiple) ? K != null && K.id.includes(de.id) : (K == null ? void 0 : K.id) === de.id) {
7735
- if (K != null && K.multiple && Array.isArray(K.value)) {
7736
- const Ve = K.value.findIndex((Pe) => gt(Pe, he(de.checkedValue)));
7737
+ const Q = I.getPathState(ye);
7738
+ if (Array.isArray(Q == null ? void 0 : Q.id) && (Q != null && Q.multiple) ? Q != null && Q.id.includes(de.id) : (Q == null ? void 0 : Q.id) === de.id) {
7739
+ if (Q != null && Q.multiple && Array.isArray(Q.value)) {
7740
+ const Ve = Q.value.findIndex((Pe) => gt(Pe, he(de.checkedValue)));
7737
7741
  if (Ve > -1) {
7738
- const Pe = [...K.value];
7742
+ const Pe = [...Q.value];
7739
7743
  Pe.splice(Ve, 1), I.setFieldValue(ye, Pe);
7740
7744
  }
7741
- Array.isArray(K.id) && K.id.splice(K.id.indexOf(de.id), 1);
7745
+ Array.isArray(Q.id) && Q.id.splice(Q.id.indexOf(de.id), 1);
7742
7746
  } else
7743
7747
  I.unsetPathValue(he(x));
7744
7748
  I.removePathState(ye, k);
@@ -7846,7 +7850,7 @@ function Cm(e) {
7846
7850
  }, {})), k = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), b = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: D, originalInitialValues: E, setInitialValues: O } = Vm(c, a, e), L = km(c, a, E, x), ee = ve(() => c.value.reduce((z, N) => {
7847
7851
  const X = xt(a, he(N.path));
7848
7852
  return Pt(z, he(N.path), X), z;
7849
- }, {})), B = e == null ? void 0 : e.validationSchema;
7853
+ }, {})), j = e == null ? void 0 : e.validationSchema;
7850
7854
  function F(z, N) {
7851
7855
  var X, ae;
7852
7856
  const _e = ve(() => xt(D.value, he(z))), Re = v.value[he(z)], Se = (N == null ? void 0 : N.type) === "checkbox" || (N == null ? void 0 : N.type) === "radio";
@@ -7859,7 +7863,7 @@ function Cm(e) {
7859
7863
  ct !== -1 && G.splice(ct, 1);
7860
7864
  const Be = ve(() => {
7861
7865
  var $t, Ln, ir, sr;
7862
- const lr = he(B);
7866
+ const lr = he(j);
7863
7867
  if (Mt(lr))
7864
7868
  return (Ln = ($t = lr.describe) === null || $t === void 0 ? void 0 : $t.call(lr, he(z)).required) !== null && Ln !== void 0 ? Ln : !1;
7865
7869
  const ar = he(N == null ? void 0 : N.schema);
@@ -7897,12 +7901,12 @@ function Cm(e) {
7897
7901
  });
7898
7902
  }), ht;
7899
7903
  }
7900
- const Q = Gi(Fe, 5), T = Gi(Fe, 5), te = Hr(async (z) => await (z === "silent" ? Q() : T()), (z, [N]) => {
7904
+ const J = Gi(Fe, 5), T = Gi(Fe, 5), te = Hr(async (z) => await (z === "silent" ? J() : T()), (z, [N]) => {
7901
7905
  const X = _t(ne.errorBag.value), _e = [
7902
7906
  .../* @__PURE__ */ new Set([..._t(z.results), ...c.value.map((Re) => Re.path), ...X])
7903
7907
  ].sort().reduce((Re, Se) => {
7904
7908
  var He;
7905
- const tt = Se, ct = R(tt) || j(tt), Be = ((He = z.results[tt]) === null || He === void 0 ? void 0 : He.errors) || [], ft = he(ct == null ? void 0 : ct.path) || tt, ht = $m({ errors: Be, valid: !Be.length }, Re.results[ft]);
7909
+ const tt = Se, ct = R(tt) || B(tt), Be = ((He = z.results[tt]) === null || He === void 0 ? void 0 : He.errors) || [], ft = he(ct == null ? void 0 : ct.path) || tt, ht = $m({ errors: Be, valid: !Be.length }, Re.results[ft]);
7906
7910
  return Re.results[ft] = ht, ht.valid || (Re.errors[ft] = ht.errors[0]), ct && p.value[ft] && delete p.value[ft], ct ? (ct.valid = ht.valid, N === "silent" || N === "validated-only" && !ct.validated || g(ct, ht.errors), Re) : (g(ft, Be), Re);
7907
7911
  }, {
7908
7912
  valid: z.valid,
@@ -7923,7 +7927,7 @@ function Cm(e) {
7923
7927
  const N = typeof z == "string" ? Yn(z) : z;
7924
7928
  return typeof N == "string" ? v.value[N] : N;
7925
7929
  }
7926
- function j(z) {
7930
+ function B(z) {
7927
7931
  return c.value.filter((X) => z.startsWith(he(X.path))).reduce((X, ae) => X ? ae.path.length > X.path.length ? ae : X : ae, void 0);
7928
7932
  }
7929
7933
  let G = [], U;
@@ -7995,14 +7999,14 @@ function Cm(e) {
7995
7999
  controlledValues: ee,
7996
8000
  errorBag: I,
7997
8001
  errors: x,
7998
- schema: B,
8002
+ schema: j,
7999
8003
  submitCount: u,
8000
8004
  meta: L,
8001
8005
  isSubmitting: i,
8002
8006
  isValidating: s,
8003
8007
  fieldArrays: l,
8004
8008
  keepValuesOnUnmount: b,
8005
- validateSchema: h(B) ? te : void 0,
8009
+ validateSchema: h(j) ? te : void 0,
8006
8010
  validate: ut,
8007
8011
  setFieldError: g,
8008
8012
  validateField: ot,
@@ -8036,7 +8040,7 @@ function Cm(e) {
8036
8040
  const ae = Ne(N), _e = typeof z == "string" ? z : z.path;
8037
8041
  R(_e) || F(_e), Pt(a, _e, ae), X && ot(_e);
8038
8042
  }
8039
- function K(z, N = !0) {
8043
+ function Q(z, N = !0) {
8040
8044
  _t(a).forEach((X) => {
8041
8045
  delete a[X];
8042
8046
  }), _t(z).forEach((X) => {
@@ -8095,10 +8099,10 @@ function Cm(e) {
8095
8099
  }
8096
8100
  function et(z, N) {
8097
8101
  let X = Ne(z != null && z.values ? z.values : E.value);
8098
- X = N != null && N.force ? X : uo(E.value, X), X = Mt(B) && bt(B.cast) ? B.cast(X) : X, O(X, { force: N == null ? void 0 : N.force }), A((ae) => {
8102
+ X = N != null && N.force ? X : uo(E.value, X), X = Mt(j) && bt(j.cast) ? j.cast(X) : X, O(X, { force: N == null ? void 0 : N.force }), A((ae) => {
8099
8103
  var _e;
8100
8104
  ae.__flags.pendingReset = !0, ae.validated = !1, ae.touched = ((_e = z == null ? void 0 : z.touched) === null || _e === void 0 ? void 0 : _e[he(ae.path)]) || !1, ye(he(ae.path), xt(X, he(ae.path)), !1), g(he(ae.path), void 0);
8101
- }), N != null && N.force ? K(X, !1) : be(X, !1), _((z == null ? void 0 : z.errors) || {}), u.value = (z == null ? void 0 : z.submitCount) || 0, st(() => {
8105
+ }), N != null && N.force ? Q(X, !1) : be(X, !1), _((z == null ? void 0 : z.errors) || {}), u.value = (z == null ? void 0 : z.submitCount) || 0, st(() => {
8102
8106
  ut({ mode: "silent" }), A((ae) => {
8103
8107
  ae.__flags.pendingReset = !1;
8104
8108
  });
@@ -8138,7 +8142,7 @@ function Cm(e) {
8138
8142
  async function ot(z, N) {
8139
8143
  var X;
8140
8144
  const ae = R(z);
8141
- if (ae && (N == null ? void 0 : N.mode) !== "silent" && (ae.validated = !0), B) {
8145
+ if (ae && (N == null ? void 0 : N.mode) !== "silent" && (ae.validated = !0), j) {
8142
8146
  const { results: Re } = await te((N == null ? void 0 : N.mode) || "validated-only");
8143
8147
  return Re[z] || { errors: [], valid: !0 };
8144
8148
  }
@@ -8154,7 +8158,7 @@ function Cm(e) {
8154
8158
  Pt(D.value, z, Ne(N)), X && Pt(E.value, z, Ne(N));
8155
8159
  }
8156
8160
  async function Fe() {
8157
- const z = h(B);
8161
+ const z = h(j);
8158
8162
  if (!z)
8159
8163
  return { valid: !0, results: {}, errors: {}, source: "none" };
8160
8164
  s.value = !0;
@@ -8173,7 +8177,7 @@ function Cm(e) {
8173
8177
  return;
8174
8178
  }
8175
8179
  ne.validateSchema && ne.validateSchema("silent");
8176
- }), We(B) && me(B, () => {
8180
+ }), We(j) && me(j, () => {
8177
8181
  var z;
8178
8182
  (z = ne.validateSchema) === null || z === void 0 || z.call(ne, "validated-only");
8179
8183
  }), Le(vi, ne), process.env.NODE_ENV !== "production" && (pm(ne), me(() => Object.assign(Object.assign({ errors: I.value }, L.value), { values: a, isSubmitting: i.value, isValidating: s.value, submitCount: u.value }), Tn, {
@@ -8961,15 +8965,15 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
8961
8965
  b.name.trim() ? b.nameError = void 0 : b.nameError = "Option name is required.";
8962
8966
  }, x = (b, D, E) => {
8963
8967
  var ee;
8964
- const O = b.target, L = (ee = l.value.find((B) => B.id === D)) == null ? void 0 : ee.values;
8968
+ const O = b.target, L = (ee = l.value.find((j) => j.id === D)) == null ? void 0 : ee.values;
8965
8969
  if (b.key === "Backspace" && O.value === "" && (L == null ? void 0 : L.length) > 2) {
8966
8970
  _(D, E);
8967
8971
  return;
8968
8972
  }
8969
8973
  }, M = (b, D, E) => {
8970
- var B;
8974
+ var j;
8971
8975
  b.target;
8972
- const O = (B = l.value.find((F) => F.id === D)) == null ? void 0 : B.values, L = O == null ? void 0 : O[E];
8976
+ const O = (j = l.value.find((F) => F.id === D)) == null ? void 0 : j.values, L = O == null ? void 0 : O[E];
8973
8977
  L.touched = !0, (O == null ? void 0 : O.every((F) => F.value.trim() !== "")) && m(D);
8974
8978
  }, V = (b, D) => {
8975
8979
  const E = l.value.find((L) => L.id === b), O = E == null ? void 0 : E.values.every((L, ee) => L.value.trim() !== "" || ee === D);
@@ -8994,7 +8998,7 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
8994
8998
  L.minified ? (w(), P("div", {
8995
8999
  key: 1,
8996
9000
  class: "flex gap-4 p-6 border-b last:border-b-0 hover:bg-accent dark:hover:bg-accent/50 cursor-pointer transition-colors duration-200",
8997
- onClick: (B) => h(l)[ee].minified = !1
9001
+ onClick: (j) => h(l)[ee].minified = !1
8998
9002
  }, [
8999
9003
  S("div", null, [
9000
9004
  S("div", {
@@ -9008,10 +9012,10 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9008
9012
  S("div", wg, [
9009
9013
  S("p", Sg, Y(L.name), 1),
9010
9014
  S("div", Cg, [
9011
- (w(!0), P(le, null, Ie(L.values, (B) => (w(), P(le, {
9012
- key: B.id
9015
+ (w(!0), P(le, null, Ie(L.values, (j) => (w(), P(le, {
9016
+ key: j.id
9013
9017
  }, [
9014
- B.value ? (w(), P("span", kg, Y(B.value), 1)) : ie("", !0)
9018
+ j.value ? (w(), P("span", kg, Y(j.value), 1)) : ie("", !0)
9015
9019
  ], 64))), 128))
9016
9020
  ])
9017
9021
  ])
@@ -9027,8 +9031,8 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9027
9031
  S("div", mg, [
9028
9032
  d(E, {
9029
9033
  modelValue: L.name,
9030
- "onUpdate:modelValue": (B) => L.name = B,
9031
- onBlur: (B) => I(L),
9034
+ "onUpdate:modelValue": (j) => L.name = j,
9035
+ onBlur: (j) => I(L),
9032
9036
  "aria-invalid": L.nameError ? "true" : "false",
9033
9037
  placeholder: "Color",
9034
9038
  spellcheck: "false"
@@ -9045,30 +9049,30 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9045
9049
  D[2] || (D[2] = S("label", { class: "block text-sm mb-2" }, "Option values", -1)),
9046
9050
  S("div", {
9047
9051
  ref_for: !0,
9048
- ref: (B) => {
9049
- B && a.value[L.id] && (a.value[L.id].listRef = B);
9052
+ ref: (j) => {
9053
+ j && a.value[L.id] && (a.value[L.id].listRef = j);
9050
9054
  }
9051
9055
  }, [
9052
- a.value[L.id] ? (w(!0), P(le, { key: 0 }, Ie(a.value[L.id].valuesArray, (B, F) => (w(), P("div", {
9053
- key: B.id,
9056
+ a.value[L.id] ? (w(!0), P(le, { key: 0 }, Ie(a.value[L.id].valuesArray, (j, F) => (w(), P("div", {
9057
+ key: j.id,
9054
9058
  class: "relative flex items-center mb-2"
9055
9059
  }, [
9056
- B.touched ? (w(), P("div", _g, [
9060
+ j.touched ? (w(), P("div", _g, [
9057
9061
  d(h(ur), { class: "size-4 text-gray-400" })
9058
9062
  ])) : ie("", !0),
9059
9063
  d(E, {
9060
- modelValue: B.value,
9061
- "onUpdate:modelValue": (Q) => B.value = Q,
9064
+ modelValue: j.value,
9065
+ "onUpdate:modelValue": (J) => j.value = J,
9062
9066
  placeholder: "Option value",
9063
9067
  class: "pr-12",
9064
- onKeydown: (Q) => x(Q, L.id, F),
9065
- onKeyup: (Q) => M(Q, L.id, F),
9066
- onBlur: (Q) => V(L.id, F),
9068
+ onKeydown: (J) => x(J, L.id, F),
9069
+ onKeyup: (J) => M(J, L.id, F),
9070
+ onBlur: (J) => V(L.id, F),
9067
9071
  spellcheck: "false"
9068
9072
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onKeydown", "onKeyup", "onBlur"]),
9069
- a.value[L.id].valuesArray.length > 2 && B.touched ? (w(), P("button", {
9073
+ a.value[L.id].valuesArray.length > 2 && j.touched ? (w(), P("button", {
9070
9074
  key: 1,
9071
- onClick: (Q) => _(L.id, F),
9075
+ onClick: (J) => _(L.id, F),
9072
9076
  class: "absolute right-2 top-1/2 -translate-y-1/2 ml-2 p-2 text-muted-foreground hover:text-muted",
9073
9077
  type: "button"
9074
9078
  }, [
@@ -9081,7 +9085,7 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9081
9085
  d(O, {
9082
9086
  size: "sm",
9083
9087
  variant: "outline",
9084
- onClick: (B) => g(ee),
9088
+ onClick: (j) => g(ee),
9085
9089
  class: "text-red-500 hover:text-red-600"
9086
9090
  }, {
9087
9091
  default: f(() => D[3] || (D[3] = [
@@ -9092,7 +9096,7 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9092
9096
  }, 1032, ["onClick"]),
9093
9097
  d(O, {
9094
9098
  size: "sm",
9095
- onClick: (B) => h(l)[ee].minified = !0,
9099
+ onClick: (j) => h(l)[ee].minified = !0,
9096
9100
  disabled: L.name.trim() === ""
9097
9101
  }, {
9098
9102
  default: f(() => D[4] || (D[4] = [
@@ -9174,10 +9178,10 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9174
9178
  watch(o.options, () => {
9175
9179
  l.value === "" && v();
9176
9180
  }, { immediate: !0, deep: !0 }), watch(p, (A) => {
9177
- var j;
9181
+ var B;
9178
9182
  if (!A) return [];
9179
9183
  let R = [];
9180
- (j = Object.keys(A)) == null || j.forEach((G) => {
9184
+ (B = Object.keys(A)) == null || B.forEach((G) => {
9181
9185
  R.push({
9182
9186
  combinedOptions: G,
9183
9187
  name: _(G),
@@ -9191,26 +9195,26 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9191
9195
  }, { deep: !0 });
9192
9196
  function m(A) {
9193
9197
  return A.reduce(
9194
- (R, j) => R.flatMap((G) => j.map((U) => [...G, U])),
9198
+ (R, B) => R.flatMap((G) => B.map((U) => [...G, U])),
9195
9199
  [[]]
9196
9200
  );
9197
9201
  }
9198
9202
  function g(A) {
9199
- return A.slice().sort((R, j) => R.optionId.localeCompare(j.optionId)).map(({ optionId: R, valueId: j }) => `${R}:${j}`).join("|");
9203
+ return A.slice().sort((R, B) => R.optionId.localeCompare(B.optionId)).map(({ optionId: R, valueId: B }) => `${R}:${B}`).join("|");
9200
9204
  }
9201
- const _ = (A) => A.split("|").map((j) => {
9202
- const [G, U] = j.split(":");
9205
+ const _ = (A) => A.split("|").map((B) => {
9206
+ const [G, U] = B.split(":");
9203
9207
  return { optionId: G, valueId: U };
9204
- }).map((j) => {
9208
+ }).map((B) => {
9205
9209
  var q, $;
9206
- const G = (q = o.options) == null ? void 0 : q[j.optionId], U = ($ = G == null ? void 0 : G.values) == null ? void 0 : $.find((H) => H.id === j.valueId);
9210
+ const G = (q = o.options) == null ? void 0 : q[B.optionId], U = ($ = G == null ? void 0 : G.values) == null ? void 0 : $.find((H) => H.id === B.valueId);
9207
9211
  return (U == null ? void 0 : U.value) || "";
9208
- }).join(" "), I = (A) => A.split("|").map((j) => {
9209
- const [G, U] = j.split(":");
9212
+ }).join(" "), I = (A) => A.split("|").map((B) => {
9213
+ const [G, U] = B.split(":");
9210
9214
  return { optionId: G, valueId: U };
9211
- }).map((j) => {
9215
+ }).map((B) => {
9212
9216
  var q, $;
9213
- const G = (q = o.options) == null ? void 0 : q[j.optionId], U = ($ = G == null ? void 0 : G.values) == null ? void 0 : $.find((H) => H.id === j.valueId);
9217
+ const G = (q = o.options) == null ? void 0 : q[B.optionId], U = ($ = G == null ? void 0 : G.values) == null ? void 0 : $.find((H) => H.id === B.valueId);
9214
9218
  return {
9215
9219
  optionId: G == null ? void 0 : G.id,
9216
9220
  option: G == null ? void 0 : G.name,
@@ -9219,56 +9223,56 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9219
9223
  };
9220
9224
  }), x = computed(() => {
9221
9225
  const A = Object.values(o.options).map(
9222
- (j) => j.values.map((G) => ({
9223
- optionId: j.id,
9224
- optionName: j.name,
9226
+ (B) => B.values.map((G) => ({
9227
+ optionId: B.id,
9228
+ optionName: B.name,
9225
9229
  valueId: G.id,
9226
9230
  value: G.value
9227
9231
  }))
9228
9232
  );
9229
- return m(A).map((j) => {
9230
- const G = g(j);
9233
+ return m(A).map((B) => {
9234
+ const G = g(B);
9231
9235
  return p.value[G] || (p.value[G] = { price: 0, stock: 0 }), {
9232
9236
  key: G,
9233
- options: j,
9237
+ options: B,
9234
9238
  ...p.value[G]
9235
9239
  };
9236
9240
  });
9237
9241
  }), M = computed(() => {
9238
9242
  let A = [...x.value];
9239
9243
  return u.value && (A = A.filter((R) => {
9240
- var j;
9241
- return (j = R.options) == null ? void 0 : j.find((G) => G.value.toLowerCase().includes(u.value.toLowerCase()));
9244
+ var B;
9245
+ return (B = R.options) == null ? void 0 : B.find((G) => G.value.toLowerCase().includes(u.value.toLowerCase()));
9242
9246
  })), A;
9243
9247
  }), V = (A, R) => {
9244
- const j = M.value.filter((G) => {
9248
+ const B = M.value.filter((G) => {
9245
9249
  var U, q;
9246
9250
  return ((q = (U = G.options) == null ? void 0 : U.find(($) => $.optionId === l.value)) == null ? void 0 : q.valueId) === R;
9247
9251
  });
9248
- j && j.forEach((G) => {
9252
+ B && B.forEach((G) => {
9249
9253
  p.value[g(G.options)].image = A;
9250
9254
  });
9251
- }, k = (A) => x.value.filter((j) => {
9255
+ }, k = (A) => x.value.filter((B) => {
9252
9256
  var G, U;
9253
- return ((U = (G = j.options) == null ? void 0 : G.find((q) => q.optionId === l.value)) == null ? void 0 : U.valueId) === A;
9254
- }).every((j) => !j.image), b = (A) => {
9257
+ return ((U = (G = B.options) == null ? void 0 : G.find((q) => q.optionId === l.value)) == null ? void 0 : U.valueId) === A;
9258
+ }).every((B) => !B.image), b = (A) => {
9255
9259
  const R = x.value.filter((G) => {
9256
9260
  var U, q;
9257
9261
  return ((q = (U = G.options) == null ? void 0 : U.find(($) => $.optionId === l.value)) == null ? void 0 : q.valueId) === A;
9258
9262
  });
9259
9263
  return R.filter((G, U) => G.image && R.findIndex((q) => q.image === G.image) === U).length === 1;
9260
9264
  }, D = (A) => {
9261
- var j;
9262
- return (j = x.value.filter((G) => {
9265
+ var B;
9266
+ return (B = x.value.filter((G) => {
9263
9267
  var U, q;
9264
9268
  return ((q = (U = G.options) == null ? void 0 : U.find(($) => $.optionId === l.value)) == null ? void 0 : q.valueId) === A;
9265
- }).filter((G) => G.image)[0]) == null ? void 0 : j.image;
9269
+ }).filter((G) => G.image)[0]) == null ? void 0 : B.image;
9266
9270
  }, E = (A) => {
9267
- var j;
9268
- return (j = x.value.filter((G) => {
9271
+ var B;
9272
+ return (B = x.value.filter((G) => {
9269
9273
  var U, q;
9270
9274
  return ((q = (U = G.options) == null ? void 0 : U.find(($) => $.optionId === l.value)) == null ? void 0 : q.valueId) === A;
9271
- }).filter((G) => G.image)[1]) == null ? void 0 : j.image;
9275
+ }).filter((G) => G.image)[1]) == null ? void 0 : B.image;
9272
9276
  }, O = (A) => {
9273
9277
  var G;
9274
9278
  const R = x.value.filter((U) => {
@@ -9276,26 +9280,26 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9276
9280
  return (q = U.options) == null ? void 0 : q.find(($) => $.valueId === A);
9277
9281
  });
9278
9282
  if (R.length === 0) return "0";
9279
- const j = R.map((U) => U.price);
9280
- return Math.min(...j) === Math.max(...j) ? ((G = j[0]) == null ? void 0 : G.toString()) || "0" : `${Math.min(...j)} - ${Math.max(...j)}`;
9283
+ const B = R.map((U) => U.price);
9284
+ return Math.min(...B) === Math.max(...B) ? ((G = B[0]) == null ? void 0 : G.toString()) || "0" : `${Math.min(...B)} - ${Math.max(...B)}`;
9281
9285
  }, L = (A) => x.value.filter((R) => {
9282
- var j;
9283
- return (j = R.options) == null ? void 0 : j.find((G) => G.valueId === A);
9284
- }).reduce((R, j) => R + j.stock, 0), ee = () => {
9285
- var R, j, G;
9286
+ var B;
9287
+ return (B = R.options) == null ? void 0 : B.find((G) => G.valueId === A);
9288
+ }).reduce((R, B) => R + B.stock, 0), ee = () => {
9289
+ var R, B, G;
9286
9290
  let A = 0;
9287
- return (G = (j = (R = o.options) == null ? void 0 : R[l.value]) == null ? void 0 : j.values) == null || G.forEach((U) => {
9291
+ return (G = (B = (R = o.options) == null ? void 0 : R[l.value]) == null ? void 0 : B.values) == null || G.forEach((U) => {
9288
9292
  A += L(U.id);
9289
9293
  }), A;
9290
- }, B = ref(null), F = ref(""), Q = async (A, R) => {
9291
- A.preventDefault(), B.value = R, F.value = "TODO";
9294
+ }, j = ref(null), F = ref(""), J = async (A, R) => {
9295
+ A.preventDefault(), j.value = R, F.value = "TODO";
9292
9296
  }, T = (A) => {
9293
- B.value = null, F.value = "";
9297
+ j.value = null, F.value = "";
9294
9298
  }, te = (A) => {
9295
- p.value = A.reduce((R, j) => (R[j.combinedOptions] = {
9296
- price: j.price,
9297
- stock: j.inventoryCount,
9298
- image: j.image
9299
+ p.value = A.reduce((R, B) => (R[B.combinedOptions] = {
9300
+ price: B.price,
9301
+ stock: B.inventoryCount,
9302
+ image: B.image
9299
9303
  }, R), {});
9300
9304
  };
9301
9305
  return onMounted(() => {
@@ -9303,7 +9307,7 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9303
9307
  }), t({
9304
9308
  setVariantMap: te
9305
9309
  }), (A, R) => {
9306
- const j = y("SelectValue"), G = y("SelectTrigger"), U = y("SelectItem"), q = y("SelectContent"), $ = y("Select"), H = y("Button"), de = y("Input"), Ee = y("PopoverTrigger"), W = y("RadioGroupItem"), ne = y("Label"), ye = y("RadioGroup"), K = y("PopoverContent"), be = y("Popover"), Ve = y("Checkbox"), Pe = y("TooltipTrigger"), Te = y("TooltipContent"), Ye = y("Tooltip"), rt = y("MediaPickerDialog"), Qe = y("NumberFieldInput"), Ae = y("NumberFieldContent"), et = y("NumberField"), ut = y("NumberFieldDecrement"), ot = y("NumberFieldIncrement");
9310
+ const B = y("SelectValue"), G = y("SelectTrigger"), U = y("SelectItem"), q = y("SelectContent"), $ = y("Select"), H = y("Button"), de = y("Input"), Ee = y("PopoverTrigger"), W = y("RadioGroupItem"), ne = y("Label"), ye = y("RadioGroup"), Q = y("PopoverContent"), be = y("Popover"), Ve = y("Checkbox"), Pe = y("TooltipTrigger"), Te = y("TooltipContent"), Ye = y("Tooltip"), rt = y("MediaPickerDialog"), Qe = y("NumberFieldInput"), Ae = y("NumberFieldContent"), et = y("NumberField"), ut = y("NumberFieldDecrement"), ot = y("NumberFieldIncrement");
9307
9311
  return w(), P("div", null, [
9308
9312
  S("div", $g, [
9309
9313
  Object.keys(e.options).length > 1 ? (w(), P("div", Ig, [
@@ -9315,7 +9319,7 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9315
9319
  default: f(() => [
9316
9320
  d(G, { size: "sm" }, {
9317
9321
  default: f(() => [
9318
- d(j, { placeholder: "Option" })
9322
+ d(B, { placeholder: "Option" })
9319
9323
  ]),
9320
9324
  _: 1
9321
9325
  }),
@@ -9409,7 +9413,7 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9409
9413
  ]),
9410
9414
  _: 2
9411
9415
  }, 1024),
9412
- d(K, null, {
9416
+ d(Q, null, {
9413
9417
  default: f(() => [
9414
9418
  d(ye, {
9415
9419
  modelValue: pe.groupBy,
@@ -9591,10 +9595,10 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9591
9595
  d(de, {
9592
9596
  modelValue: h(F),
9593
9597
  "onUpdate:modelValue": R[8] || (R[8] = (Fe) => We(F) ? F.value = Fe : null),
9594
- class: Ze(["dark:bg-transparent dark:border-ring/50", h(B) === pe.id ? "" : "text-transparent"]),
9598
+ class: Ze(["dark:bg-transparent dark:border-ring/50", h(j) === pe.id ? "" : "text-transparent"]),
9595
9599
  onClick: R[9] || (R[9] = Yt(() => {
9596
9600
  }, ["stop"])),
9597
- onFocus: (Fe) => Q(Fe, pe.id),
9601
+ onFocus: (Fe) => J(Fe, pe.id),
9598
9602
  onBlur: (Fe) => T(pe.id)
9599
9603
  }, null, 8, ["modelValue", "class", "onFocus", "onBlur"])
9600
9604
  ]),
@@ -9618,7 +9622,7 @@ const ug = /* @__PURE__ */ Sn(lg, [["render", ag]]), dg = {
9618
9622
  ]),
9619
9623
  _: 2
9620
9624
  }, 1024),
9621
- h(B) !== pe.id ? (w(), P("span", ev, Y(O(pe.id)), 1)) : ie("", !0)
9625
+ h(j) !== pe.id ? (w(), P("span", ev, Y(O(pe.id)), 1)) : ie("", !0)
9622
9626
  ])
9623
9627
  ]),
9624
9628
  S("td", tv, [
@@ -12882,7 +12886,7 @@ const sh = { class: "relative @container" }, lh = { class: "flex flex-row gap-4
12882
12886
  { text: "New Product", href: "/products/new", disabled: !0 }
12883
12887
  ]) : _();
12884
12888
  }), (V, k) => {
12885
- const b = y("Button"), D = y("MenubarTrigger"), E = y("MenubarMenu"), O = y("MenubarShortcut"), L = y("MenubarItem"), ee = y("MenubarSeparator"), B = y("MenubarContent"), F = y("Menubar");
12889
+ const b = y("Button"), D = y("MenubarTrigger"), E = y("MenubarMenu"), O = y("MenubarShortcut"), L = y("MenubarItem"), ee = y("MenubarSeparator"), j = y("MenubarContent"), F = y("Menubar");
12886
12890
  return w(), P("div", sh, [
12887
12891
  S("div", lh, [
12888
12892
  S("div", ah, [
@@ -12934,7 +12938,7 @@ const sh = { class: "relative @container" }, lh = { class: "flex flex-row gap-4
12934
12938
  _: 1,
12935
12939
  __: [2]
12936
12940
  }),
12937
- d(B, null, {
12941
+ d(j, null, {
12938
12942
  default: f(() => [
12939
12943
  d(L, null, {
12940
12944
  default: f(() => [
@@ -12988,7 +12992,7 @@ const sh = { class: "relative @container" }, lh = { class: "flex flex-row gap-4
12988
12992
  _: 1,
12989
12993
  __: [8]
12990
12994
  }),
12991
- d(B, null, {
12995
+ d(j, null, {
12992
12996
  default: f(() => [
12993
12997
  h(n)("edit-product") ? (w(), Z(L, {
12994
12998
  key: 0,
@@ -13567,7 +13571,7 @@ const sh = { class: "relative @container" }, lh = { class: "flex flex-row gap-4
13567
13571
  return [
13568
13572
  (L = O.action) != null && L.integration ? (w(), Z(x, {
13569
13573
  key: 0,
13570
- type: (ee = h(u).find((B) => B.id === O.action.integration)) == null ? void 0 : ee.type,
13574
+ type: (ee = h(u).find((j) => j.id === O.action.integration)) == null ? void 0 : ee.type,
13571
13575
  class: "size-5"
13572
13576
  }, null, 8, ["type"])) : ie("", !0),
13573
13577
  S("p", Fh, Y(O.label), 1)
@@ -14655,7 +14659,7 @@ const N_ = (e) => e === ln || Xl(e), L_ = (e) => er(e) && e.nodeType === 11, er
14655
14659
  const t = bn(e) || ln;
14656
14660
  return /object|function/.test(typeof Element) ? e instanceof Element || e instanceof t.Element : e.nodeType === 1 && typeof e.nodeName == "string";
14657
14661
  }, G_ = (e) => er(e) && !!e.constructor && /function Object\b/.test(e.constructor.toString()), q_ = (e) => er(e) && typeof e.length < "u" && Ql(e.splice);
14658
- var J = {
14662
+ var K = {
14659
14663
  window: N_,
14660
14664
  docFrag: L_,
14661
14665
  object: er,
@@ -14681,7 +14685,7 @@ const Je = {
14681
14685
  };
14682
14686
  function W_(e) {
14683
14687
  const t = Ue.Element, n = e.navigator || {};
14684
- Je.supportsTouch = "ontouchstart" in e || J.func(e.DocumentTouch) && Ue.document instanceof e.DocumentTouch, Je.supportsPointerEvent = n.pointerEnabled !== !1 && !!Ue.PointerEvent, Je.isIOS = /iP(hone|od|ad)/.test(n.platform), Je.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), Je.isIe9 = /MSIE 9/.test(n.userAgent), Je.isOperaMobile = n.appName === "Opera" && Je.supportsTouch && /Presto/.test(n.userAgent), Je.prefixedMatchesSelector = "matches" in t.prototype ? "matches" : "webkitMatchesSelector" in t.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in t.prototype ? "mozMatchesSelector" : "oMatchesSelector" in t.prototype ? "oMatchesSelector" : "msMatchesSelector", Je.pEventTypes = Je.supportsPointerEvent ? Ue.PointerEvent === e.MSPointerEvent ? {
14688
+ Je.supportsTouch = "ontouchstart" in e || K.func(e.DocumentTouch) && Ue.document instanceof e.DocumentTouch, Je.supportsPointerEvent = n.pointerEnabled !== !1 && !!Ue.PointerEvent, Je.isIOS = /iP(hone|od|ad)/.test(n.platform), Je.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), Je.isIe9 = /MSIE 9/.test(n.userAgent), Je.isOperaMobile = n.appName === "Opera" && Je.supportsTouch && /Presto/.test(n.userAgent), Je.prefixedMatchesSelector = "matches" in t.prototype ? "matches" : "webkitMatchesSelector" in t.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in t.prototype ? "mozMatchesSelector" : "oMatchesSelector" in t.prototype ? "oMatchesSelector" : "msMatchesSelector", Je.pEventTypes = Je.supportsPointerEvent ? Ue.PointerEvent === e.MSPointerEvent ? {
14685
14689
  up: "MSPointerUp",
14686
14690
  down: "MSPointerDown",
14687
14691
  over: "mouseover",
@@ -14711,7 +14715,7 @@ function zn(e) {
14711
14715
  const t = {};
14712
14716
  for (const n in e) {
14713
14717
  const o = e[n];
14714
- J.plainObject(o) ? t[n] = zn(o) : J.array(o) ? t[n] = ta(o) : t[n] = o;
14718
+ K.plainObject(o) ? t[n] = zn(o) : K.array(o) ? t[n] = ta(o) : t[n] = o;
14715
14719
  }
14716
14720
  return t;
14717
14721
  }
@@ -14741,14 +14745,14 @@ var $n = {
14741
14745
  };
14742
14746
  function pn(e, t) {
14743
14747
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : (r) => !0, o = arguments.length > 3 ? arguments[3] : void 0;
14744
- if (o = o || {}, J.string(e) && e.search(" ") !== -1 && (e = hs(e)), J.array(e))
14748
+ if (o = o || {}, K.string(e) && e.search(" ") !== -1 && (e = hs(e)), K.array(e))
14745
14749
  return e.forEach((r) => pn(r, t, n, o)), o;
14746
- if (J.object(e) && (t = e, e = ""), J.func(t) && n(e))
14750
+ if (K.object(e) && (t = e, e = ""), K.func(t) && n(e))
14747
14751
  o[e] = o[e] || [], o[e].push(t);
14748
- else if (J.array(t))
14752
+ else if (K.array(t))
14749
14753
  for (const r of t)
14750
14754
  pn(e, r, n, o);
14751
- else if (J.object(t))
14755
+ else if (K.object(t))
14752
14756
  for (const r in t) {
14753
14757
  const i = hs(r).map((s) => `${e}${s}`);
14754
14758
  pn(i, t[r], n, o);
@@ -14805,7 +14809,7 @@ function mn(e, t) {
14805
14809
  return !1;
14806
14810
  }
14807
14811
  function oa(e, t) {
14808
- for (; J.element(e); ) {
14812
+ for (; K.element(e); ) {
14809
14813
  if (xn(e, t))
14810
14814
  return e;
14811
14815
  e = an(e);
@@ -14814,8 +14818,8 @@ function oa(e, t) {
14814
14818
  }
14815
14819
  function an(e) {
14816
14820
  let t = e.parentNode;
14817
- if (J.docFrag(t)) {
14818
- for (; (t = t.host) && J.docFrag(t); )
14821
+ if (K.docFrag(t)) {
14822
+ for (; (t = t.host) && K.docFrag(t); )
14819
14823
  ;
14820
14824
  return t;
14821
14825
  }
@@ -14825,7 +14829,7 @@ function xn(e, t) {
14825
14829
  return ln !== Jl && (t = t.replace(/\/deep\//g, " ")), e[Je.prefixedMatchesSelector](t);
14826
14830
  }
14827
14831
  function Xr(e, t, n) {
14828
- for (; J.element(e); ) {
14832
+ for (; K.element(e); ) {
14829
14833
  if (xn(e, t))
14830
14834
  return !0;
14831
14835
  if (e = an(e), e === n)
@@ -14862,7 +14866,7 @@ function bi(e) {
14862
14866
  return t;
14863
14867
  }
14864
14868
  function bs(e) {
14865
- return J.string(e) ? (Ue.document.querySelector(e), !0) : !1;
14869
+ return K.string(e) ? (Ue.document.querySelector(e), !0) : !1;
14866
14870
  }
14867
14871
  const X_ = ["webkit", "moz"];
14868
14872
  function ra(e, t) {
@@ -14909,7 +14913,7 @@ function ty(e, t) {
14909
14913
  return t = t || {}, Je.isOperaMobile && ia(e) ? Bo("screen", e, t) : Bo("client", e, t), t;
14910
14914
  }
14911
14915
  function Uo(e) {
14912
- return J.number(e.pointerId) ? e.pointerId : e.identifier;
14916
+ return K.number(e.pointerId) ? e.pointerId : e.identifier;
14913
14917
  }
14914
14918
  function ny(e, t, n) {
14915
14919
  const o = t.length > 1 ? sa(t) : t[0];
@@ -14917,7 +14921,7 @@ function ny(e, t, n) {
14917
14921
  }
14918
14922
  function xi(e) {
14919
14923
  const t = [];
14920
- return J.array(e) ? (t[0] = e[0], t[1] = e[1]) : e.type === "touchend" ? e.touches.length === 1 ? (t[0] = e.touches[0], t[1] = e.changedTouches[0]) : e.touches.length === 0 && (t[0] = e.changedTouches[0], t[1] = e.changedTouches[1]) : (t[0] = e.touches[0], t[1] = e.touches[1]), t;
14924
+ return K.array(e) ? (t[0] = e[0], t[1] = e[1]) : e.type === "touchend" ? e.touches.length === 1 ? (t[0] = e.touches[0], t[1] = e.changedTouches[0]) : e.touches.length === 0 && (t[0] = e.changedTouches[0], t[1] = e.changedTouches[1]) : (t[0] = e.touches[0], t[1] = e.touches[1]), t;
14921
14925
  }
14922
14926
  function sa(e) {
14923
14927
  const t = {
@@ -14959,14 +14963,14 @@ function iy(e, t) {
14959
14963
  return 180 * Math.atan2(s, i) / Math.PI;
14960
14964
  }
14961
14965
  function sy(e) {
14962
- return J.string(e.pointerType) ? e.pointerType : J.number(e.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][e.pointerType] : (
14966
+ return K.string(e.pointerType) ? e.pointerType : K.number(e.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][e.pointerType] : (
14963
14967
  // if the PointerEvent API isn't available, then the "pointer" must
14964
14968
  // be either a MouseEvent, TouchEvent, or Touch object
14965
14969
  /touch/.test(e.type || "") || e instanceof Ue.Touch ? "touch" : "mouse"
14966
14970
  );
14967
14971
  }
14968
14972
  function la(e) {
14969
- const t = J.func(e.composedPath) ? e.composedPath() : e.path;
14973
+ const t = K.func(e.composedPath) ? e.composedPath() : e.path;
14970
14974
  return [ys(t ? t[0] : e.target), ys(e.currentTarget)];
14971
14975
  }
14972
14976
  function Gn() {
@@ -15091,7 +15095,7 @@ function ly(e) {
15091
15095
  function c(v, m) {
15092
15096
  const g = qn(m), _ = new ay(v), I = o[v.type], [x] = la(v);
15093
15097
  let M = x;
15094
- for (; J.element(M); ) {
15098
+ for (; K.element(M); ) {
15095
15099
  for (let V = 0; V < I.length; V++) {
15096
15100
  const k = I[V], {
15097
15101
  selector: b,
@@ -15129,7 +15133,7 @@ class ay {
15129
15133
  }
15130
15134
  }
15131
15135
  function qn(e) {
15132
- return J.object(e) ? {
15136
+ return K.object(e) ? {
15133
15137
  capture: !!e.capture,
15134
15138
  passive: !!e.passive
15135
15139
  } : {
@@ -15145,7 +15149,7 @@ var uy = {
15145
15149
  install: ly
15146
15150
  };
15147
15151
  const dy = function(e) {
15148
- return /^(always|never|auto)$/.test(e) ? (this.options.preventDefault = e, this) : J.bool(e) ? (this.options.preventDefault = e ? "always" : "never", this) : this.options.preventDefault;
15152
+ return /^(always|never|auto)$/.test(e) ? (this.options.preventDefault = e, this) : K.bool(e) ? (this.options.preventDefault = e ? "always" : "never", this) : this.options.preventDefault;
15149
15153
  };
15150
15154
  function cy(e, t, n) {
15151
15155
  const o = e.options.preventDefault;
@@ -15159,7 +15163,7 @@ function cy(e, t, n) {
15159
15163
  if (!(i && i.events) || i.events.passive !== !1)
15160
15164
  return;
15161
15165
  }
15162
- /^(mouse|pointer|touch)*(down|start)/i.test(n.type) || J.element(n.target) && xn(n.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *") || n.preventDefault();
15166
+ /^(mouse|pointer|touch)*(down|start)/i.test(n.type) || K.element(n.target) && xn(n.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *") || n.preventDefault();
15163
15167
  }
15164
15168
  }
15165
15169
  function fy(e) {
@@ -15205,7 +15209,7 @@ function ua(e, t, n) {
15205
15209
  }
15206
15210
  function po(e, t, n, o) {
15207
15211
  let r = e;
15208
- return J.string(r) ? r = ua(r, t, n) : J.func(r) && (r = r(...o)), J.element(r) && (r = bi(r)), r;
15212
+ return K.string(r) ? r = ua(r, t, n) : K.func(r) && (r = r(...o)), K.element(r) && (r = bi(r)), r;
15209
15213
  }
15210
15214
  function or(e) {
15211
15215
  return e && {
@@ -15988,18 +15992,18 @@ class Sy {
15988
15992
  this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new na(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = n.actions, this.target = t, this._context = n.context || o, this._win = bn(bs(t) ? this._context : t), this._doc = this._win.document, this._scopeEvents = r, this.set(n);
15989
15993
  }
15990
15994
  setOnEvents(t, n) {
15991
- return J.func(n.onstart) && this.on(`${t}start`, n.onstart), J.func(n.onmove) && this.on(`${t}move`, n.onmove), J.func(n.onend) && this.on(`${t}end`, n.onend), J.func(n.oninertiastart) && this.on(`${t}inertiastart`, n.oninertiastart), this;
15995
+ return K.func(n.onstart) && this.on(`${t}start`, n.onstart), K.func(n.onmove) && this.on(`${t}move`, n.onmove), K.func(n.onend) && this.on(`${t}end`, n.onend), K.func(n.oninertiastart) && this.on(`${t}inertiastart`, n.oninertiastart), this;
15992
15996
  }
15993
15997
  updatePerActionListeners(t, n, o) {
15994
15998
  var r;
15995
15999
  const i = (r = this._actions.map[t]) == null ? void 0 : r.filterEventType, s = (u) => (i == null || i(u)) && mo(u, this._actions);
15996
- (J.array(n) || J.object(n)) && this._onOff(Xt.Off, t, n, void 0, s), (J.array(o) || J.object(o)) && this._onOff(Xt.On, t, o, void 0, s);
16000
+ (K.array(n) || K.object(n)) && this._onOff(Xt.Off, t, n, void 0, s), (K.array(o) || K.object(o)) && this._onOff(Xt.On, t, o, void 0, s);
15997
16001
  }
15998
16002
  setPerAction(t, n) {
15999
16003
  const o = this._defaults;
16000
16004
  for (const r in n) {
16001
16005
  const i = r, s = this.options[t], u = n[i];
16002
- i === "listeners" && this.updatePerActionListeners(t, s.listeners, u), J.array(u) ? s[i] = ta(u) : J.plainObject(u) ? (s[i] = Ce(s[i] || {}, zn(u)), J.object(o.perAction[i]) && "enabled" in o.perAction[i] && (s[i].enabled = u.enabled !== !1)) : J.bool(u) && J.object(o.perAction[i]) ? s[i].enabled = u : s[i] = u;
16006
+ i === "listeners" && this.updatePerActionListeners(t, s.listeners, u), K.array(u) ? s[i] = ta(u) : K.plainObject(u) ? (s[i] = Ce(s[i] || {}, zn(u)), K.object(o.perAction[i]) && "enabled" in o.perAction[i] && (s[i].enabled = u.enabled !== !1)) : K.bool(u) && K.object(o.perAction[i]) ? s[i].enabled = u : s[i] = u;
16003
16007
  }
16004
16008
  }
16005
16009
  /**
@@ -16010,7 +16014,7 @@ class Sy {
16010
16014
  * @return {Rect} The object's bounding rectangle.
16011
16015
  */
16012
16016
  getRect(t) {
16013
- return t = t || (J.element(this.target) ? this.target : null), J.string(this.target) && (t = t || this._context.querySelector(this.target)), bi(t);
16017
+ return t = t || (K.element(this.target) ? this.target : null), K.string(this.target) && (t = t || this._context.querySelector(this.target)), bi(t);
16014
16018
  }
16015
16019
  /**
16016
16020
  * Returns or sets the function used to calculate the interactable's
@@ -16021,14 +16025,14 @@ class Sy {
16021
16025
  * @return {function | object} The checker function or this Interactable
16022
16026
  */
16023
16027
  rectChecker(t) {
16024
- return J.func(t) ? (this.getRect = (n) => {
16028
+ return K.func(t) ? (this.getRect = (n) => {
16025
16029
  const o = Ce({}, t.apply(this, n));
16026
16030
  return "width" in o || (o.width = o.right - o.left, o.height = o.bottom - o.top), o;
16027
16031
  }, this) : t === null ? (delete this.getRect, this) : this.getRect;
16028
16032
  }
16029
16033
  /** @internal */
16030
16034
  _backCompatOption(t, n) {
16031
- if (bs(n) || J.object(n)) {
16035
+ if (bs(n) || K.object(n)) {
16032
16036
  this.options[t] = n;
16033
16037
  for (const o in this._actions.map)
16034
16038
  this.options[o][t] = n;
@@ -16065,7 +16069,7 @@ class Sy {
16065
16069
  const {
16066
16070
  target: t
16067
16071
  } = this;
16068
- return J.string(t) ? Array.from(this._context.querySelectorAll(t)) : J.func(t) && t.getAllElements ? t.getAllElements() : J.element(t) ? [t] : [];
16072
+ return K.string(t) ? Array.from(this._context.querySelectorAll(t)) : K.func(t) && t.getAllElements ? t.getAllElements() : K.element(t) ? [t] : [];
16069
16073
  }
16070
16074
  /**
16071
16075
  * Gets the selector context Node of the Interactable. The default is
@@ -16085,11 +16089,11 @@ class Sy {
16085
16089
  }
16086
16090
  /** @internal */
16087
16091
  testAllow(t, n, o) {
16088
- return t ? J.element(o) ? J.string(t) ? Xr(o, t, n) : J.element(t) ? mn(t, o) : !1 : !1 : !0;
16092
+ return t ? K.element(o) ? K.string(t) ? Xr(o, t, n) : K.element(t) ? mn(t, o) : !1 : !1 : !0;
16089
16093
  }
16090
16094
  /** @internal */
16091
16095
  testIgnore(t, n, o) {
16092
- return !t || !J.element(o) ? !1 : J.string(t) ? Xr(o, t, n) : J.element(t) ? mn(t, o) : !1;
16096
+ return !t || !K.element(o) ? !1 : K.string(t) ? Xr(o, t, n) : K.element(t) ? mn(t, o) : !1;
16093
16097
  }
16094
16098
  /**
16095
16099
  * Calls listeners for the given InteractEvent type bound globally
@@ -16104,12 +16108,12 @@ class Sy {
16104
16108
  }
16105
16109
  /** @internal */
16106
16110
  _onOff(t, n, o, r, i) {
16107
- J.object(n) && !J.array(n) && (r = o, o = null);
16111
+ K.object(n) && !K.array(n) && (r = o, o = null);
16108
16112
  const s = pn(n, o, i);
16109
16113
  for (let u in s) {
16110
16114
  u === "wheel" && (u = Je.wheelEvent);
16111
16115
  for (const l of s[u])
16112
- mo(u, this._actions) ? this.events[t === Xt.On ? "on" : "off"](u, l) : J.string(this.target) ? this._scopeEvents[t === Xt.On ? "addDelegate" : "removeDelegate"](this.target, this._context, u, l, r) : this._scopeEvents[t === Xt.On ? "add" : "remove"](this.target, u, l, r);
16116
+ mo(u, this._actions) ? this.events[t === Xt.On ? "on" : "off"](u, l) : K.string(this.target) ? this._scopeEvents[t === Xt.On ? "addDelegate" : "removeDelegate"](this.target, this._context, u, l, r) : this._scopeEvents[t === Xt.On ? "add" : "remove"](this.target, u, l, r);
16113
16117
  }
16114
16118
  return this;
16115
16119
  }
@@ -16147,7 +16151,7 @@ class Sy {
16147
16151
  */
16148
16152
  set(t) {
16149
16153
  const n = this._defaults;
16150
- J.object(t) || (t = {}), this.options = zn(n.base);
16154
+ K.object(t) || (t = {}), this.options = zn(n.base);
16151
16155
  for (const o in this._actions.methodDict) {
16152
16156
  const r = o, i = this._actions.methodDict[r];
16153
16157
  this.options[r] = {}, this.setPerAction(r, Ce(Ce({}, n.perAction), n.actions[r])), this[i](t[r]);
@@ -16157,7 +16161,7 @@ class Sy {
16157
16161
  this.rectChecker(t.getRect);
16158
16162
  continue;
16159
16163
  }
16160
- J.func(this[o]) && this[o](t[o]);
16164
+ K.func(this[o]) && this[o](t[o]);
16161
16165
  }
16162
16166
  return this;
16163
16167
  }
@@ -16166,7 +16170,7 @@ class Sy {
16166
16170
  * action capabilities and event listeners
16167
16171
  */
16168
16172
  unset() {
16169
- if (J.string(this.target))
16173
+ if (K.string(this.target))
16170
16174
  for (const t in this._scopeEvents.delegatedEvents) {
16171
16175
  const n = this._scopeEvents.delegatedEvents[t];
16172
16176
  for (let o = n.length - 1; o >= 0; o--) {
@@ -16193,7 +16197,7 @@ class Cy {
16193
16197
  } = n;
16194
16198
  const {
16195
16199
  target: r
16196
- } = o, i = J.string(r) ? this.selectorMap[r] : r[this.scope.id], s = tr(i, (u) => u === o);
16200
+ } = o, i = K.string(r) ? this.selectorMap[r] : r[this.scope.id], s = tr(i, (u) => u === o);
16197
16201
  i.splice(s, 1);
16198
16202
  }
16199
16203
  });
@@ -16203,7 +16207,7 @@ class Cy {
16203
16207
  actions: this.scope.actions
16204
16208
  });
16205
16209
  const o = new this.scope.Interactable(t, n, this.scope.document, this.scope.events);
16206
- return this.scope.addDocument(o._doc), this.list.push(o), J.string(t) ? (this.selectorMap[t] || (this.selectorMap[t] = []), this.selectorMap[t].push(o)) : (o.target[this.scope.id] || Object.defineProperty(t, this.scope.id, {
16210
+ return this.scope.addDocument(o._doc), this.list.push(o), K.string(t) ? (this.selectorMap[t] || (this.selectorMap[t] = []), this.selectorMap[t].push(o)) : (o.target[this.scope.id] || Object.defineProperty(t, this.scope.id, {
16207
16211
  value: [],
16208
16212
  configurable: !0
16209
16213
  }), t[this.scope.id].push(o)), this.scope.fire("interactable:new", {
@@ -16214,16 +16218,16 @@ class Cy {
16214
16218
  }), o;
16215
16219
  }
16216
16220
  getExisting(t, n) {
16217
- const o = n && n.context || this.scope.document, r = J.string(t), i = r ? this.selectorMap[t] : t[this.scope.id];
16221
+ const o = n && n.context || this.scope.document, r = K.string(t), i = r ? this.selectorMap[t] : t[this.scope.id];
16218
16222
  if (i)
16219
16223
  return Ro(i, (s) => s._context === o && (r || s.inContext(t)));
16220
16224
  }
16221
16225
  forEachMatch(t, n) {
16222
16226
  for (const o of this.list) {
16223
16227
  let r;
16224
- if ((J.string(o.target) ? (
16228
+ if ((K.string(o.target) ? (
16225
16229
  // target is a selector and the element matches
16226
- J.element(t) && xn(t, o.target)
16230
+ K.element(t) && xn(t, o.target)
16227
16231
  ) : (
16228
16232
  // target is the element
16229
16233
  t === o.target
@@ -16243,12 +16247,12 @@ function ky(e) {
16243
16247
  }, t.isSet = function(n, o) {
16244
16248
  return !!this.scope.interactables.get(n, o && o.context);
16245
16249
  }, t.on = fo(function(n, o, r) {
16246
- if (J.string(n) && n.search(" ") !== -1 && (n = n.trim().split(/ +/)), J.array(n)) {
16250
+ if (K.string(n) && n.search(" ") !== -1 && (n = n.trim().split(/ +/)), K.array(n)) {
16247
16251
  for (const i of n)
16248
16252
  this.on(i, o, r);
16249
16253
  return this;
16250
16254
  }
16251
- if (J.object(n)) {
16255
+ if (K.object(n)) {
16252
16256
  for (const i in n)
16253
16257
  this.on(i, n[i], o);
16254
16258
  return this;
@@ -16257,12 +16261,12 @@ function ky(e) {
16257
16261
  options: r
16258
16262
  }), this;
16259
16263
  }, "The interact.on() method is being deprecated"), t.off = fo(function(n, o, r) {
16260
- if (J.string(n) && n.search(" ") !== -1 && (n = n.trim().split(/ +/)), J.array(n)) {
16264
+ if (K.string(n) && n.search(" ") !== -1 && (n = n.trim().split(/ +/)), K.array(n)) {
16261
16265
  for (const i of n)
16262
16266
  this.off(i, o, r);
16263
16267
  return this;
16264
16268
  }
16265
- if (J.object(n)) {
16269
+ if (K.object(n)) {
16266
16270
  for (const i in n)
16267
16271
  this.off(i, n[i], o);
16268
16272
  return this;
@@ -16284,7 +16288,7 @@ function ky(e) {
16284
16288
  n.stop();
16285
16289
  return this;
16286
16290
  }, t.pointerMoveTolerance = function(n) {
16287
- return J.number(n) ? (this.scope.interactions.pointerMoveTolerance = n, this) : this.scope.interactions.pointerMoveTolerance;
16291
+ return K.number(n) ? (this.scope.interactions.pointerMoveTolerance = n, this) : this.scope.interactions.pointerMoveTolerance;
16288
16292
  }, t.addDocument = function(n, o) {
16289
16293
  this.scope.addDocument(n, o);
16290
16294
  }, t.removeDocument = function(n) {
@@ -16411,7 +16415,7 @@ class Vy {
16411
16415
  }
16412
16416
  }
16413
16417
  function $y(e, t) {
16414
- return e.isInitialized = !0, J.window(t) && Kl(t), Ue.init(t), Je.init(t), $n.init(t), e.window = t, e.document = t.document, e.usePlugin(wy), e.usePlugin(uy), e;
16418
+ return e.isInitialized = !0, K.window(t) && Kl(t), Ue.init(t), Je.init(t), $n.init(t), e.window = t, e.document = t.document, e.usePlugin(wy), e.usePlugin(uy), e;
16415
16419
  }
16416
16420
  function Cs(e) {
16417
16421
  return e && e.replace(/\/.*$/, "");
@@ -16449,10 +16453,10 @@ function Dy(e, t, n, o, r) {
16449
16453
  return r.fire("auto-start:check", u), u.action;
16450
16454
  }
16451
16455
  function Ey(e) {
16452
- return J.bool(e) ? (this.options.styleCursor = e, this) : e === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
16456
+ return K.bool(e) ? (this.options.styleCursor = e, this) : e === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
16453
16457
  }
16454
16458
  function My(e) {
16455
- return J.func(e) ? (this.options.actionChecker = e, this) : e === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
16459
+ return K.func(e) ? (this.options.actionChecker = e, this) : e === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
16456
16460
  }
16457
16461
  var Ty = {
16458
16462
  id: "auto-start/interactableMethods",
@@ -16549,7 +16553,7 @@ function va(e, t, n, o, r) {
16549
16553
  function l(a) {
16550
16554
  i.push(a), s.push(u);
16551
16555
  }
16552
- for (; J.element(u); ) {
16556
+ for (; K.element(u); ) {
16553
16557
  i = [], s = [], r.interactables.forEachMatch(u, l);
16554
16558
  const a = Ny(e, t, n, i, s, o, r);
16555
16559
  if (a.action && !a.interactable.options[a.action.name].manualStart)
@@ -16587,7 +16591,7 @@ function rr(e, t, n, o) {
16587
16591
  return u > 0;
16588
16592
  }
16589
16593
  function _a(e, t) {
16590
- return J.number(e) ? (t.autoStart.maxInteractions = e, this) : t.autoStart.maxInteractions;
16594
+ return K.number(e) ? (t.autoStart.maxInteractions = e, this) : t.autoStart.maxInteractions;
16591
16595
  }
16592
16596
  function Kr(e, t, n) {
16593
16597
  const {
@@ -16608,7 +16612,7 @@ function ya(e, t) {
16608
16612
  let i = "";
16609
16613
  if (r.name) {
16610
16614
  const s = n.options[r.name].cursorChecker;
16611
- J.func(s) ? i = s(r, n, o, e._interacting) : i = t.actions.map[r.name].getCursor(r);
16615
+ K.func(s) ? i = s(r, n, o, e._interacting) : i = t.actions.map[r.name].getCursor(r);
16612
16616
  }
16613
16617
  Kr(e.element, i || "", t);
16614
16618
  }
@@ -16648,7 +16652,7 @@ function Ly(e, t) {
16648
16652
  return m;
16649
16653
  }
16650
16654
  };
16651
- for (; J.element(p); ) {
16655
+ for (; K.element(p); ) {
16652
16656
  const m = t.interactables.forEachMatch(p, v);
16653
16657
  if (m) {
16654
16658
  n.prepared.name = "drag", n.interactable = m, n.element = p;
@@ -16774,7 +16778,7 @@ const ke = {
16774
16778
  };
16775
16779
  if (a.x || a.y) {
16776
16780
  const c = Vs(i);
16777
- J.window(i) ? i.scrollBy(a.x, a.y) : i && (i.scrollLeft += a.x, i.scrollTop += a.y);
16781
+ K.window(i) ? i.scrollBy(a.x, a.y) : i && (i.scrollLeft += a.x, i.scrollTop += a.y);
16778
16782
  const p = Vs(i), v = {
16779
16783
  x: p.x - c.x,
16780
16784
  y: p.y - c.y
@@ -16812,7 +16816,7 @@ const ke = {
16812
16816
  interactable: u,
16813
16817
  element: l
16814
16818
  } = t, a = t.prepared.name, c = u.options[a].autoScroll, p = ks(c.container, u, l);
16815
- if (J.window(p))
16819
+ if (K.window(p))
16816
16820
  s = n.clientX < ke.margin, o = n.clientY < ke.margin, r = n.clientX > p.innerWidth - ke.margin, i = n.clientY > p.innerHeight - ke.margin;
16817
16821
  else {
16818
16822
  const v = yi(p);
@@ -16822,10 +16826,10 @@ const ke = {
16822
16826
  }
16823
16827
  };
16824
16828
  function ks(e, t, n) {
16825
- return (J.string(e) ? ua(e, t, n) : e) || bn(n);
16829
+ return (K.string(e) ? ua(e, t, n) : e) || bn(n);
16826
16830
  }
16827
16831
  function Vs(e) {
16828
- return J.window(e) && (e = window.document.body), {
16832
+ return K.window(e) && (e = window.document.body), {
16829
16833
  x: e.scrollLeft,
16830
16834
  y: e.scrollTop
16831
16835
  };
@@ -16880,7 +16884,7 @@ function $s(e) {
16880
16884
  }
16881
16885
  }
16882
16886
  const Yy = function(e) {
16883
- return J.object(e) ? (this.options.drag.enabled = e.enabled !== !1, this.setPerAction("drag", e), this.setOnEvents("drag", e), /^(xy|x|y|start)$/.test(e.lockAxis) && (this.options.drag.lockAxis = e.lockAxis), /^(xy|x|y)$/.test(e.startAxis) && (this.options.drag.startAxis = e.startAxis), this) : J.bool(e) ? (this.options.drag.enabled = e, this) : this.options.drag;
16887
+ return K.object(e) ? (this.options.drag.enabled = e.enabled !== !1, this.setPerAction("drag", e), this.setOnEvents("drag", e), /^(xy|x|y|start)$/.test(e.lockAxis) && (this.options.drag.lockAxis = e.lockAxis), /^(xy|x|y)$/.test(e.startAxis) && (this.options.drag.startAxis = e.startAxis), this) : K.bool(e) ? (this.options.drag.enabled = e, this) : this.options.drag;
16884
16888
  }, Do = {
16885
16889
  id: "actions/drag",
16886
16890
  install: Zy,
@@ -16941,7 +16945,7 @@ function Jy(e) {
16941
16945
  const s = Ce({}, t.coords.cur.page), u = n.options.resize;
16942
16946
  if (!(!(u && u.enabled) || // check mouseButton setting if the pointer is down
16943
16947
  t.pointerIsDown && /mouse|pointer/.test(t.pointerType) && !(i & u.mouseButtons))) {
16944
- if (J.object(u.edges)) {
16948
+ if (K.object(u.edges)) {
16945
16949
  const l = {
16946
16950
  left: !1,
16947
16951
  right: !1,
@@ -16965,13 +16969,13 @@ function Jy(e) {
16965
16969
  }
16966
16970
  }
16967
16971
  function Ky(e, t, n) {
16968
- return J.object(t) ? (e.options.resize.enabled = t.enabled !== !1, e.setPerAction("resize", t), e.setOnEvents("resize", t), J.string(t.axis) && /^x$|^y$|^xy$/.test(t.axis) ? e.options.resize.axis = t.axis : t.axis === null && (e.options.resize.axis = n.defaults.actions.resize.axis), J.bool(t.preserveAspectRatio) ? e.options.resize.preserveAspectRatio = t.preserveAspectRatio : J.bool(t.square) && (e.options.resize.square = t.square), e) : J.bool(t) ? (e.options.resize.enabled = t, e) : e.options.resize;
16972
+ return K.object(t) ? (e.options.resize.enabled = t.enabled !== !1, e.setPerAction("resize", t), e.setOnEvents("resize", t), K.string(t.axis) && /^x$|^y$|^xy$/.test(t.axis) ? e.options.resize.axis = t.axis : t.axis === null && (e.options.resize.axis = n.defaults.actions.resize.axis), K.bool(t.preserveAspectRatio) ? e.options.resize.preserveAspectRatio = t.preserveAspectRatio : K.bool(t.square) && (e.options.resize.square = t.square), e) : K.bool(t) ? (e.options.resize.enabled = t, e) : e.options.resize;
16969
16973
  }
16970
16974
  function Qy(e, t, n, o, r, i, s) {
16971
16975
  if (!t)
16972
16976
  return !1;
16973
16977
  if (t === !0) {
16974
- const u = J.number(i.width) ? i.width : i.right - i.left, l = J.number(i.height) ? i.height : i.bottom - i.top;
16978
+ const u = K.number(i.width) ? i.width : i.right - i.left, l = K.number(i.height) ? i.height : i.bottom - i.top;
16975
16979
  if (s = Math.min(s, Math.abs((e === "left" || e === "right" ? u : l) / 2)), u < 0 && (e === "left" ? e = "right" : e === "right" && (e = "left")), l < 0 && (e === "top" ? e = "bottom" : e === "bottom" && (e = "top")), e === "left") {
16976
16980
  const a = u >= 0 ? i.left : i.right;
16977
16981
  return n.x < a + s;
@@ -16985,7 +16989,7 @@ function Qy(e, t, n, o, r, i, s) {
16985
16989
  if (e === "bottom")
16986
16990
  return n.y > (l >= 0 ? i.bottom : i.top) - s;
16987
16991
  }
16988
- return J.element(o) ? J.element(t) ? (
16992
+ return K.element(o) ? K.element(t) ? (
16989
16993
  // the value is an element to use as a resize handle
16990
16994
  t === o
16991
16995
  ) : (
@@ -17662,7 +17666,7 @@ function hb(e) {
17662
17666
  t.x = Math.max(Math.min(u.right - i.right, t.x), u.left + i.left), t.y = Math.max(Math.min(u.bottom - i.bottom, t.y), u.top + i.top);
17663
17667
  }
17664
17668
  function wn(e, t, n) {
17665
- return J.func(e) ? po(e, t.interactable, t.element, [n.x, n.y, t]) : po(e, t.interactable, t.element);
17669
+ return K.func(e) ? po(e, t.interactable, t.element, [n.x, n.y, t]) : po(e, t.interactable, t.element);
17666
17670
  }
17667
17671
  const _b = {
17668
17672
  restriction: null,
@@ -17859,10 +17863,10 @@ function Pb(e) {
17859
17863
  for (let m = 0, g = r.targets.length; m < g; m++) {
17860
17864
  const _ = r.targets[m];
17861
17865
  let I;
17862
- J.func(_) ? I = _(p, v, t._proxy, c, m) : I = _, I && l.push({
17863
- x: (J.number(I.x) ? I.x : p) + c.x,
17864
- y: (J.number(I.y) ? I.y : v) + c.y,
17865
- range: J.number(I.range) ? I.range : r.range,
17866
+ K.func(_) ? I = _(p, v, t._proxy, c, m) : I = _, I && l.push({
17867
+ x: (K.number(I.x) ? I.x : p) + c.x,
17868
+ y: (K.number(I.y) ? I.y : v) + c.y,
17869
+ range: K.number(I.range) ? I.range : r.range,
17866
17870
  source: _,
17867
17871
  index: m,
17868
17872
  offset: c
@@ -17960,7 +17964,7 @@ function Lb(e) {
17960
17964
  n.options = Ce({}, r), n.options.targets = [];
17961
17965
  for (const l of r.targets || []) {
17962
17966
  let a;
17963
- if (J.func(l) ? a = l(s.x, s.y, t) : a = l, !!a) {
17967
+ if (K.func(l) ? a = l(s.x, s.y, t) : a = l, !!a) {
17964
17968
  for (const [c, p] of n.targetFields)
17965
17969
  if (c in a || p in a) {
17966
17970
  a.x = a[c], a.y = a[p];
@@ -18061,9 +18065,9 @@ function Wb(e) {
18061
18065
  _onOff: r
18062
18066
  } = n.prototype;
18063
18067
  n.prototype._onOff = function(i, s, u, l, a) {
18064
- if (J.string(this.target) || this.target.addEventListener)
18068
+ if (K.string(this.target) || this.target.addEventListener)
18065
18069
  return r.call(this, i, s, u, l, a);
18066
- J.object(s) && !J.array(s) && (l = u, u = null);
18070
+ K.object(s) && !K.array(s) && (l = u, u = null);
18067
18071
  const c = pn(s, u, a);
18068
18072
  for (const p in c)
18069
18073
  mo(p, e.actions) || e.logger.warn(Qr + `Can't add native "${p}" event listener to target without \`addEventListener(type, listener, options)\` prop.`);
@@ -18119,7 +18123,7 @@ function Sa(e, t, n) {
18119
18123
  }
18120
18124
  function Zb(e, t, n) {
18121
18125
  let o = e;
18122
- for (; J.element(o); ) {
18126
+ for (; K.element(o); ) {
18123
18127
  if (Sa(o, t, n))
18124
18128
  return !0;
18125
18129
  o = an(o);
@@ -18488,7 +18492,7 @@ const Da = (e, t) => {
18488
18492
  setup(e, { expose: t, emit: n }) {
18489
18493
  const o = e, r = n, i = {
18490
18494
  el: void 0,
18491
- calcXY: Q
18495
+ calcXY: J
18492
18496
  };
18493
18497
  t(i);
18494
18498
  const s = se("emitter"), u = se("gridLayout");
@@ -18536,10 +18540,10 @@ const Da = (e, t) => {
18536
18540
  "no-touch": h(v)
18537
18541
  })), p = ve(() => a.resizable && !o.static), v = ve(() => (a.draggable || a.resizable) && !o.static), m = ve(() => u.props.isMirrored), g = ve(() => h(m) ? "vue-resizable-handle vue-rtl-resizable-handle" : "vue-resizable-handle");
18538
18542
  function _() {
18539
- s.on("updateWidth", j), s.on("setDraggable", I), s.on("setResizable", x), s.on("setBounded", M), s.on("setTransformScale", V), s.on("setRowHeight", k), s.on("setMaxRows", b), s.on("directionchange", D), s.on("setColNum", E);
18543
+ s.on("updateWidth", B), s.on("setDraggable", I), s.on("setResizable", x), s.on("setBounded", M), s.on("setTransformScale", V), s.on("setRowHeight", k), s.on("setMaxRows", b), s.on("directionchange", D), s.on("setColNum", E);
18540
18544
  }
18541
18545
  _(), oi(() => {
18542
- s.off("updateWidth", j), s.off("setDraggable", I), s.off("setResizable", x), s.off("setBounded", M), s.off("setTransformScale", V), s.off("setRowHeight", k), s.off("setMaxRows", b), s.off("directionchange", D), s.off("setColNum", E), l && l.unset();
18546
+ s.off("updateWidth", B), s.off("setDraggable", I), s.off("setResizable", x), s.off("setBounded", M), s.off("setTransformScale", V), s.off("setRowHeight", k), s.off("setMaxRows", b), s.off("directionchange", D), s.off("setColNum", E), l && l.unset();
18543
18547
  }), lt(() => {
18544
18548
  const $ = { ...u.props, ...u.state };
18545
18549
  $.responsive && $.lastBreakpoint ? a.cols = Ia($.lastBreakpoint, $.cols) : a.cols = $.colNum, a.rowHeight = $.rowHeight, a.containerWidth = $.width !== null ? $.width : 100, a.margin = $.margin !== void 0 ? $.margin : [10, 10], a.maxRows = $.maxRows, o.isDraggable === null ? a.draggable = $.isDraggable : a.draggable = o.isDraggable, o.isResizable === null ? a.resizable = $.isResizable : a.resizable = o.isResizable, o.isBounded === null ? a.bounded = $.isBounded : a.bounded = o.isBounded, a.transformScale = $.transformScale, a.useCssTransforms = $.useCssTransforms, a.useStyleCursor = $.useStyleCursor, O();
@@ -18652,7 +18656,7 @@ const Da = (e, t) => {
18652
18656
  ne.w
18653
18657
  ]);
18654
18658
  }
18655
- function B($) {
18659
+ function j($) {
18656
18660
  if (o.static || a.isResizing) return;
18657
18661
  const H = Ts($);
18658
18662
  if (H === null) return;
@@ -18660,21 +18664,21 @@ const Da = (e, t) => {
18660
18664
  switch ($.type) {
18661
18665
  case "dragstart": {
18662
18666
  a.previousX = a.innerX, a.previousY = a.innerY;
18663
- const ye = $.target.offsetParent.getBoundingClientRect(), K = $.target.getBoundingClientRect(), be = K.left / a.transformScale, Ve = ye.left / a.transformScale, Pe = K.right / a.transformScale, Te = ye.right / a.transformScale, Ye = K.top / a.transformScale, rt = ye.top / a.transformScale;
18667
+ const ye = $.target.offsetParent.getBoundingClientRect(), Q = $.target.getBoundingClientRect(), be = Q.left / a.transformScale, Ve = ye.left / a.transformScale, Pe = Q.right / a.transformScale, Te = ye.right / a.transformScale, Ye = Q.top / a.transformScale, rt = ye.top / a.transformScale;
18664
18668
  h(m) ? W.left = (Pe - Te) * -1 : W.left = be - Ve, W.top = Ye - rt, a.dragging = W, a.isDragging = !0;
18665
18669
  break;
18666
18670
  }
18667
18671
  case "dragend": {
18668
18672
  if (!a.isDragging) return;
18669
- const ye = $.target.offsetParent.getBoundingClientRect(), K = $.target.getBoundingClientRect(), be = K.left / a.transformScale, Ve = ye.left / a.transformScale, Pe = K.right / a.transformScale, Te = ye.right / a.transformScale, Ye = K.top / a.transformScale, rt = ye.top / a.transformScale;
18673
+ const ye = $.target.offsetParent.getBoundingClientRect(), Q = $.target.getBoundingClientRect(), be = Q.left / a.transformScale, Ve = ye.left / a.transformScale, Pe = Q.right / a.transformScale, Te = ye.right / a.transformScale, Ye = Q.top / a.transformScale, rt = ye.top / a.transformScale;
18670
18674
  h(m) ? W.left = (Pe - Te) * -1 : W.left = be - Ve, W.top = Ye - rt, a.dragging = null, a.isDragging = !1;
18671
18675
  break;
18672
18676
  }
18673
18677
  case "dragmove": {
18674
18678
  const ye = As(a.lastX, a.lastY, de, Ee);
18675
18679
  if (h(m) ? W.left = a.dragging.left - ye.deltaX / a.transformScale : W.left = a.dragging.left + ye.deltaX / a.transformScale, W.top = a.dragging.top + ye.deltaY / a.transformScale, a.bounded) {
18676
- const K = $.target.offsetParent.clientHeight - te(o.h, a.rowHeight, a.margin[1]);
18677
- W.top = A(W.top, 0, K);
18680
+ const Q = $.target.offsetParent.clientHeight - te(o.h, a.rowHeight, a.margin[1]);
18681
+ W.top = A(W.top, 0, Q);
18678
18682
  const be = T(), Ve = a.containerWidth - te(o.w, be, a.margin[0]);
18679
18683
  W.left = A(W.left, 0, Ve);
18680
18684
  }
@@ -18684,7 +18688,7 @@ const Da = (e, t) => {
18684
18688
  }
18685
18689
  O();
18686
18690
  let ne;
18687
- h(m), ne = Q(W.top, W.left), a.lastX = de, a.lastY = Ee, (a.innerX !== ne.x || a.innerY !== ne.y) && r("move", o.i, ne.x, ne.y), $.type === "dragend" && (a.previousX !== a.innerX || a.previousY !== a.innerY) && r("moved", o.i, ne.x, ne.y), s.emit("dragEvent", [
18691
+ h(m), ne = J(W.top, W.left), a.lastX = de, a.lastY = Ee, (a.innerX !== ne.x || a.innerY !== ne.y) && r("move", o.i, ne.x, ne.y), $.type === "dragend" && (a.previousX !== a.innerX || a.previousY !== a.innerY) && r("moved", o.i, ne.x, ne.y), s.emit("dragEvent", [
18688
18692
  $.type,
18689
18693
  o.i,
18690
18694
  ne.x,
@@ -18714,7 +18718,7 @@ const Da = (e, t) => {
18714
18718
  height: Ee === 1 / 0 ? Ee : Math.round(a.rowHeight * Ee + Math.max(0, Ee - 1) * a.margin[1])
18715
18719
  }, ne;
18716
18720
  }
18717
- function Q($, H) {
18721
+ function J($, H) {
18718
18722
  const de = T();
18719
18723
  let Ee = Math.round((H - a.margin[0]) / (de + a.margin[0])), W = Math.round(($ - a.margin[1]) / (a.rowHeight + a.margin[1]));
18720
18724
  return Ee = Math.max(Math.min(Ee, a.cols - a.innerW), 0), W = Math.max(Math.min(W, a.maxRows - a.innerH), 0), { x: Ee, y: W };
@@ -18735,7 +18739,7 @@ const Da = (e, t) => {
18735
18739
  let W = Math.round((H + a.margin[0]) / (Ee + a.margin[0])), ne = 0;
18736
18740
  return de ? ne = Math.ceil(($ + a.margin[1]) / (a.rowHeight + a.margin[1])) : ne = Math.round(($ + a.margin[1]) / (a.rowHeight + a.margin[1])), W = Math.max(Math.min(W, a.cols - a.innerX), 0), ne = Math.max(Math.min(ne, a.maxRows - a.innerY), 0), { w: W, h: ne };
18737
18741
  }
18738
- function j($, H) {
18742
+ function B($, H) {
18739
18743
  a.containerWidth = $, H != null && (a.cols = H);
18740
18744
  }
18741
18745
  function G() {
@@ -18746,7 +18750,7 @@ const Da = (e, t) => {
18746
18750
  ...o.dragOption
18747
18751
  };
18748
18752
  l.draggable($), a.dragEventSet || (a.dragEventSet = !0, l.on("dragstart dragmove dragend", (H) => {
18749
- B(H);
18753
+ j(H);
18750
18754
  }));
18751
18755
  } else
18752
18756
  l.draggable({
@@ -19049,27 +19053,27 @@ var Cx = {
19049
19053
  function b() {
19050
19054
  if (x.position === "static") {
19051
19055
  m.style.setProperty("position", "relative", a.important ? "important" : "");
19052
- var O = function(L, ee, B, F) {
19053
- function Q(te) {
19056
+ var O = function(L, ee, j, F) {
19057
+ function J(te) {
19054
19058
  return te.replace(/[^-\d\.]/g, "");
19055
19059
  }
19056
- var T = B[F];
19057
- T !== "auto" && Q(T) !== "0" && (L.warn("An element that is positioned static has style." + F + "=" + T + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + F + " will be set to 0. Element: ", ee), ee.style.setProperty(F, "0", a.important ? "important" : ""));
19060
+ var T = j[F];
19061
+ T !== "auto" && J(T) !== "0" && (L.warn("An element that is positioned static has style." + F + "=" + T + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + F + " will be set to 0. Element: ", ee), ee.style.setProperty(F, "0", a.important ? "important" : ""));
19058
19062
  };
19059
19063
  O(t, m, x, "top"), O(t, m, x, "right"), O(t, m, x, "bottom"), O(t, m, x, "left");
19060
19064
  }
19061
19065
  }
19062
19066
  function D() {
19063
19067
  I || b();
19064
- function O(ee, B) {
19068
+ function O(ee, j) {
19065
19069
  if (!ee.contentDocument) {
19066
19070
  var F = o(ee);
19067
19071
  F.checkForObjectDocumentTimeoutId && window.clearTimeout(F.checkForObjectDocumentTimeoutId), F.checkForObjectDocumentTimeoutId = setTimeout(function() {
19068
- F.checkForObjectDocumentTimeoutId = 0, O(ee, B);
19072
+ F.checkForObjectDocumentTimeoutId = 0, O(ee, j);
19069
19073
  }, 100);
19070
19074
  return;
19071
19075
  }
19072
- B(ee.contentDocument);
19076
+ j(ee.contentDocument);
19073
19077
  }
19074
19078
  var L = this;
19075
19079
  O(L, function(ee) {
@@ -19128,12 +19132,12 @@ var Cx = {
19128
19132
  };
19129
19133
  }
19130
19134
  function p(k, b, D) {
19131
- function E(B, F) {
19135
+ function E(j, F) {
19132
19136
  F = F || function(T) {
19133
19137
  k.head.appendChild(T);
19134
19138
  };
19135
- var Q = k.createElement("style");
19136
- return Q.innerHTML = B, Q.id = b, F(Q), Q;
19139
+ var J = k.createElement("style");
19140
+ return J.innerHTML = j, J.id = b, F(J), J;
19137
19141
  }
19138
19142
  if (!k.getElementById(b)) {
19139
19143
  var O = D + "_animation", L = D + "_animation_active", ee = `/* Created by the element-resize-detector library. */
@@ -19180,52 +19184,52 @@ var Cx = {
19180
19184
  D || (D = b, b = k, k = null), k = k || {};
19181
19185
  function E() {
19182
19186
  if (k.debug) {
19183
- var K = Array.prototype.slice.call(arguments);
19184
- if (K.unshift(r.get(b), "Scroll: "), t.log.apply)
19185
- t.log.apply(null, K);
19187
+ var Q = Array.prototype.slice.call(arguments);
19188
+ if (Q.unshift(r.get(b), "Scroll: "), t.log.apply)
19189
+ t.log.apply(null, Q);
19186
19190
  else
19187
- for (var be = 0; be < K.length; be++)
19188
- t.log(K[be]);
19191
+ for (var be = 0; be < Q.length; be++)
19192
+ t.log(Q[be]);
19189
19193
  }
19190
19194
  }
19191
- function O(K) {
19195
+ function O(Q) {
19192
19196
  function be(Ve) {
19193
19197
  var Pe = Ve.getRootNode && Ve.getRootNode().contains(Ve);
19194
19198
  return Ve === Ve.ownerDocument.body || Ve.ownerDocument.body.contains(Ve) || Pe;
19195
19199
  }
19196
- return !be(K) || window.getComputedStyle(K) === null;
19200
+ return !be(Q) || window.getComputedStyle(Q) === null;
19197
19201
  }
19198
- function L(K) {
19199
- var be = o(K).container.childNodes[0], Ve = window.getComputedStyle(be);
19202
+ function L(Q) {
19203
+ var be = o(Q).container.childNodes[0], Ve = window.getComputedStyle(be);
19200
19204
  return !Ve.width || Ve.width.indexOf("px") === -1;
19201
19205
  }
19202
19206
  function ee() {
19203
- var K = window.getComputedStyle(b), be = {};
19204
- return be.position = K.position, be.width = b.offsetWidth, be.height = b.offsetHeight, be.top = K.top, be.right = K.right, be.bottom = K.bottom, be.left = K.left, be.widthCSS = K.width, be.heightCSS = K.height, be;
19207
+ var Q = window.getComputedStyle(b), be = {};
19208
+ return be.position = Q.position, be.width = b.offsetWidth, be.height = b.offsetHeight, be.top = Q.top, be.right = Q.right, be.bottom = Q.bottom, be.left = Q.left, be.widthCSS = Q.width, be.heightCSS = Q.height, be;
19205
19209
  }
19206
- function B() {
19207
- var K = ee();
19210
+ function j() {
19211
+ var Q = ee();
19208
19212
  o(b).startSize = {
19209
- width: K.width,
19210
- height: K.height
19213
+ width: Q.width,
19214
+ height: Q.height
19211
19215
  }, E("Element start size", o(b).startSize);
19212
19216
  }
19213
19217
  function F() {
19214
19218
  o(b).listeners = [];
19215
19219
  }
19216
- function Q() {
19220
+ function J() {
19217
19221
  if (E("storeStyle invoked."), !o(b)) {
19218
19222
  E("Aborting because element has been uninstalled");
19219
19223
  return;
19220
19224
  }
19221
- var K = ee();
19222
- o(b).style = K;
19225
+ var Q = ee();
19226
+ o(b).style = Q;
19223
19227
  }
19224
- function T(K, be, Ve) {
19225
- o(K).lastWidth = be, o(K).lastHeight = Ve;
19228
+ function T(Q, be, Ve) {
19229
+ o(Q).lastWidth = be, o(Q).lastHeight = Ve;
19226
19230
  }
19227
- function te(K) {
19228
- return _(K).childNodes[0];
19231
+ function te(Q) {
19232
+ return _(Q).childNodes[0];
19229
19233
  }
19230
19234
  function A() {
19231
19235
  return 2 * i.width + 1;
@@ -19233,35 +19237,35 @@ var Cx = {
19233
19237
  function R() {
19234
19238
  return 2 * i.height + 1;
19235
19239
  }
19236
- function j(K) {
19237
- return K + 10 + A();
19240
+ function B(Q) {
19241
+ return Q + 10 + A();
19238
19242
  }
19239
- function G(K) {
19240
- return K + 10 + R();
19243
+ function G(Q) {
19244
+ return Q + 10 + R();
19241
19245
  }
19242
- function U(K) {
19243
- return K * 2 + A();
19246
+ function U(Q) {
19247
+ return Q * 2 + A();
19244
19248
  }
19245
- function q(K) {
19246
- return K * 2 + R();
19249
+ function q(Q) {
19250
+ return Q * 2 + R();
19247
19251
  }
19248
- function $(K, be, Ve) {
19249
- var Pe = _(K), Te = I(K), Ye = j(be), rt = G(Ve), Qe = U(be), Ae = q(Ve);
19252
+ function $(Q, be, Ve) {
19253
+ var Pe = _(Q), Te = I(Q), Ye = B(be), rt = G(Ve), Qe = U(be), Ae = q(Ve);
19250
19254
  Pe.scrollLeft = Ye, Pe.scrollTop = rt, Te.scrollLeft = Qe, Te.scrollTop = Ae;
19251
19255
  }
19252
19256
  function H() {
19253
- var K = o(b).container;
19254
- if (!K) {
19255
- K = document.createElement("div"), K.className = u, K.style.cssText = a(["visibility: hidden", "display: inline", "width: 0px", "height: 0px", "z-index: -1", "overflow: hidden", "margin: 0", "padding: 0"]), o(b).container = K, v(K), b.appendChild(K);
19257
+ var Q = o(b).container;
19258
+ if (!Q) {
19259
+ Q = document.createElement("div"), Q.className = u, Q.style.cssText = a(["visibility: hidden", "display: inline", "width: 0px", "height: 0px", "z-index: -1", "overflow: hidden", "margin: 0", "padding: 0"]), o(b).container = Q, v(Q), b.appendChild(Q);
19256
19260
  var be = function() {
19257
19261
  o(b).onRendered && o(b).onRendered();
19258
19262
  };
19259
- m(K, "animationstart", be), o(b).onAnimationStart = be;
19263
+ m(Q, "animationstart", be), o(b).onAnimationStart = be;
19260
19264
  }
19261
- return K;
19265
+ return Q;
19262
19266
  }
19263
19267
  function de() {
19264
- function K() {
19268
+ function Q() {
19265
19269
  var je = o(b).style;
19266
19270
  if (je.position === "static") {
19267
19271
  b.style.setProperty("position", "relative", k.important ? "important" : "");
@@ -19282,7 +19286,7 @@ var Cx = {
19282
19286
  E("Aborting because element has been uninstalled");
19283
19287
  return;
19284
19288
  }
19285
- K();
19289
+ Q();
19286
19290
  var Ve = o(b).container;
19287
19291
  Ve || (Ve = H());
19288
19292
  var Pe = i.width, Te = i.height, Ye = a(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%", "left: 0px", "top: 0px"]), rt = a(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden"].concat(be(-(1 + Pe), -(1 + Te), -Te, -Pe))), Qe = a(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]), Ae = a(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]), et = a(["position: absolute", "left: 0", "top: 0"]), ut = a(["position: absolute", "width: 200%", "height: 200%"]), ot = document.createElement("div"), pe = document.createElement("div"), Ge = document.createElement("div"), Vt = document.createElement("div"), Fe = document.createElement("div"), qe = document.createElement("div");
@@ -19298,8 +19302,8 @@ var Cx = {
19298
19302
  m(Ge, "scroll", dt), m(Fe, "scroll", vt), o(b).onExpandScroll = dt, o(b).onShrinkScroll = vt;
19299
19303
  }
19300
19304
  function Ee() {
19301
- function K(Qe, Ae, et) {
19302
- var ut = te(Qe), ot = j(Ae), pe = G(et);
19305
+ function Q(Qe, Ae, et) {
19306
+ var ut = te(Qe), ot = B(Ae), pe = G(et);
19303
19307
  ut.style.setProperty("width", ot + "px", k.important ? "important" : ""), ut.style.setProperty("height", pe + "px", k.important ? "important" : "");
19304
19308
  }
19305
19309
  function be(Qe) {
@@ -19318,7 +19322,7 @@ var Cx = {
19318
19322
  var ot = b.offsetWidth, pe = b.offsetHeight;
19319
19323
  (ot !== Ae || pe !== et) && t.warn(r.get(b), "Scroll: Size changed before updating detector elements.");
19320
19324
  }
19321
- K(b, Ae, et);
19325
+ Q(b, Ae, et);
19322
19326
  }
19323
19327
  }), n.add(1, function() {
19324
19328
  if (!o(b)) {
@@ -19381,21 +19385,21 @@ var Cx = {
19381
19385
  }
19382
19386
  o(b).onRendered = Te, o(b).onExpand = Ye, o(b).onShrink = Ye;
19383
19387
  var rt = o(b).style;
19384
- K(b, rt.width, rt.height);
19388
+ Q(b, rt.width, rt.height);
19385
19389
  }
19386
19390
  function W() {
19387
19391
  if (E("finalizeDomMutation invoked."), !o(b)) {
19388
19392
  E("Aborting because element has been uninstalled");
19389
19393
  return;
19390
19394
  }
19391
- var K = o(b).style;
19392
- T(b, K.width, K.height), $(b, K.width, K.height);
19395
+ var Q = o(b).style;
19396
+ T(b, Q.width, Q.height), $(b, Q.width, Q.height);
19393
19397
  }
19394
19398
  function ne() {
19395
19399
  D(b);
19396
19400
  }
19397
19401
  function ye() {
19398
- E("Installing..."), F(), B(), n.add(0, Q), n.add(1, de), n.add(2, Ee), n.add(3, W), n.add(4, ne);
19402
+ E("Installing..."), F(), j(), n.add(0, J), n.add(1, de), n.add(2, Ee), n.add(3, W), n.add(4, ne);
19399
19403
  }
19400
19404
  E("Making detectable..."), O(b) ? (E("Element is detached"), H(), E("Waiting until element is attached..."), o(b).onRendered = function() {
19401
19405
  E("Element is now attached"), ye();
@@ -19467,14 +19471,14 @@ var Ox = function(e) {
19467
19471
  throw new Error("Invalid strategy name: " + p);
19468
19472
  var g = {};
19469
19473
  function _(M, V, k) {
19470
- function b(B) {
19471
- var F = l.get(B);
19472
- eo(F, function(Q) {
19473
- Q(B);
19474
+ function b(j) {
19475
+ var F = l.get(j);
19476
+ eo(F, function(J) {
19477
+ J(j);
19474
19478
  });
19475
19479
  }
19476
- function D(B, F, Q) {
19477
- l.add(F, Q), B && Q(F);
19480
+ function D(j, F, J) {
19481
+ l.add(F, J), j && J(F);
19478
19482
  }
19479
19483
  if (k || (k = V, V = M, M = {}), !V)
19480
19484
  throw new Error("At least one element required.");
@@ -19488,23 +19492,23 @@ var Ox = function(e) {
19488
19492
  return r.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");
19489
19493
  var E = 0, O = Zt(M, "callOnAdd", u.callOnAdd), L = Zt(M, "onReady", function() {
19490
19494
  }), ee = Zt(M, "debug", u.debug);
19491
- eo(V, function(B) {
19492
- Wt.getState(B) || (Wt.initState(B), t.set(B));
19493
- var F = t.get(B);
19494
- if (ee && r.log("Attaching listener to element", F, B), !a.isDetectable(B)) {
19495
- if (ee && r.log(F, "Not detectable."), a.isBusy(B)) {
19496
- ee && r.log(F, "System busy making it detectable"), D(O, B, k), g[F] = g[F] || [], g[F].push(function() {
19495
+ eo(V, function(j) {
19496
+ Wt.getState(j) || (Wt.initState(j), t.set(j));
19497
+ var F = t.get(j);
19498
+ if (ee && r.log("Attaching listener to element", F, j), !a.isDetectable(j)) {
19499
+ if (ee && r.log(F, "Not detectable."), a.isBusy(j)) {
19500
+ ee && r.log(F, "System busy making it detectable"), D(O, j, k), g[F] = g[F] || [], g[F].push(function() {
19497
19501
  E++, E === V.length && L();
19498
19502
  });
19499
19503
  return;
19500
19504
  }
19501
- return ee && r.log(F, "Making detectable..."), a.markBusy(B, !0), c.makeDetectable({ debug: ee, important: v }, B, function(Q) {
19502
- if (ee && r.log(F, "onElementDetectable"), Wt.getState(Q)) {
19503
- a.markAsDetectable(Q), a.markBusy(Q, !1), c.addListener(Q, b), D(O, Q, k);
19504
- var T = Wt.getState(Q);
19505
+ return ee && r.log(F, "Making detectable..."), a.markBusy(j, !0), c.makeDetectable({ debug: ee, important: v }, j, function(J) {
19506
+ if (ee && r.log(F, "onElementDetectable"), Wt.getState(J)) {
19507
+ a.markAsDetectable(J), a.markBusy(J, !1), c.addListener(J, b), D(O, J, k);
19508
+ var T = Wt.getState(J);
19505
19509
  if (T && T.startSize) {
19506
- var te = Q.offsetWidth, A = Q.offsetHeight;
19507
- (T.startSize.width !== te || T.startSize.height !== A) && b(Q);
19510
+ var te = J.offsetWidth, A = J.offsetHeight;
19511
+ (T.startSize.width !== te || T.startSize.height !== A) && b(J);
19508
19512
  }
19509
19513
  g[F] && eo(g[F], function(R) {
19510
19514
  R();
@@ -19514,7 +19518,7 @@ var Ox = function(e) {
19514
19518
  delete g[F], E++, E === V.length && L();
19515
19519
  });
19516
19520
  }
19517
- ee && r.log(F, "Already detecable, adding listener."), D(O, B, k), E++;
19521
+ ee && r.log(F, "Already detecable, adding listener."), D(O, j, k), E++;
19518
19522
  }), E === V.length && L();
19519
19523
  }
19520
19524
  function I(M) {
@@ -19749,11 +19753,11 @@ const jx = {
19749
19753
  return !0;
19750
19754
  let E = !1, O = 0;
19751
19755
  for (; O < b.length; ) {
19752
- const L = b[O], ee = Object.keys(L), B = D[O], F = Object.keys(B), Q = [.../* @__PURE__ */ new Set([...ee, ...F])];
19756
+ const L = b[O], ee = Object.keys(L), j = D[O], F = Object.keys(j), J = [.../* @__PURE__ */ new Set([...ee, ...F])];
19753
19757
  let T = 0;
19754
- for (; T < Q.length; ) {
19755
- const te = Q[T];
19756
- if (L[te] !== B[te]) {
19758
+ for (; T < J.length; ) {
19759
+ const te = J[T];
19760
+ if (L[te] !== j[te]) {
19757
19761
  E = !0;
19758
19762
  break;
19759
19763
  }
@@ -19786,33 +19790,33 @@ const jx = {
19786
19790
  return `${Jb(l.layout) * (o.rowHeight + D) + D}px`;
19787
19791
  }
19788
19792
  function _([b, D, E, O, L, ee] = []) {
19789
- let B = Es(l.layout, D);
19790
- if (B == null && (B = { x: 0, y: 0 }), b === "dragstart" && !o.verticalCompact && (l.positionsBeforeDrag = l.layout.reduce((F, { i: Q, x: T, y: te }) => ({
19793
+ let j = Es(l.layout, D);
19794
+ if (j == null && (j = { x: 0, y: 0 }), b === "dragstart" && !o.verticalCompact && (l.positionsBeforeDrag = l.layout.reduce((F, { i: J, x: T, y: te }) => ({
19791
19795
  ...F,
19792
- [Q]: { x: T, y: te }
19793
- }), {})), b === "dragmove" || b === "dragstart" ? (l.placeholder.x = B.x, l.placeholder.y = B.y, l.placeholder.w = ee, l.placeholder.h = L, l.isDragging = !0) : l.isDragging = !1, l.layout = ti(l.layout, B, E, O, !0, o.preventCollision), o.restoreOnDrag ? (B.static = !0, Qn(l.layout, o.verticalCompact, l.positionsBeforeDrag), B.static = !1) : Qn(l.layout, o.verticalCompact), v(), b === "dragend" && delete l.positionsBeforeDrag, c(o.layout, l.layout)) {
19796
+ [J]: { x: T, y: te }
19797
+ }), {})), b === "dragmove" || b === "dragstart" ? (l.placeholder.x = j.x, l.placeholder.y = j.y, l.placeholder.w = ee, l.placeholder.h = L, l.isDragging = !0) : l.isDragging = !1, l.layout = ti(l.layout, j, E, O, !0, o.preventCollision), o.restoreOnDrag ? (j.static = !0, Qn(l.layout, o.verticalCompact, l.positionsBeforeDrag), j.static = !1) : Qn(l.layout, o.verticalCompact), v(), b === "dragend" && delete l.positionsBeforeDrag, c(o.layout, l.layout)) {
19794
19798
  const F = fn(l.layout);
19795
19799
  r("layout-updated", F), r("update:layout", F);
19796
19800
  }
19797
19801
  }
19798
19802
  function I([b, D, E, O, L, ee] = []) {
19799
- let B = Es(l.layout, D);
19800
- B == null && (B = { h: 0, w: 0 });
19803
+ let j = Es(l.layout, D);
19804
+ j == null && (j = { h: 0, w: 0 });
19801
19805
  let F;
19802
19806
  if (o.preventCollision) {
19803
- const Q = ka(l.layout, { ...B, w: ee, h: L }).filter(
19804
- (T) => T.i !== B.i
19807
+ const J = ka(l.layout, { ...j, w: ee, h: L }).filter(
19808
+ (T) => T.i !== j.i
19805
19809
  );
19806
- if (F = Q.length > 0, F) {
19810
+ if (F = J.length > 0, F) {
19807
19811
  let T = 1 / 0, te = 1 / 0;
19808
- Q.forEach((A) => {
19809
- A.x > B.x && (T = Math.min(T, A.x)), A.y > B.y && (te = Math.min(te, A.y));
19810
- }), Number.isFinite(T) && (B.w = T - B.x), Number.isFinite(te) && (B.h = te - B.y);
19812
+ J.forEach((A) => {
19813
+ A.x > j.x && (T = Math.min(T, A.x)), A.y > j.y && (te = Math.min(te, A.y));
19814
+ }), Number.isFinite(T) && (j.w = T - j.x), Number.isFinite(te) && (j.h = te - j.y);
19811
19815
  }
19812
19816
  }
19813
- if (F || (B.w = ee, B.h = L), b === "resizestart" || b === "resizemove" ? (l.placeholder.x = E, l.placeholder.y = O, l.placeholder.w = B.w, l.placeholder.h = B.h, l.isDragging = !0) : l.isDragging = !1, o.responsive && x(), Qn(l.layout, o.verticalCompact), v(), c(o.layout, l.layout)) {
19814
- const Q = fn(l.layout);
19815
- r("layout-updated", Q), r("update:layout", Q);
19817
+ if (F || (j.w = ee, j.h = L), b === "resizestart" || b === "resizemove" ? (l.placeholder.x = E, l.placeholder.y = O, l.placeholder.w = j.w, l.placeholder.h = j.h, l.isDragging = !0) : l.isDragging = !1, o.responsive && x(), Qn(l.layout, o.verticalCompact), v(), c(o.layout, l.layout)) {
19818
+ const J = fn(l.layout);
19819
+ r("layout-updated", J), r("update:layout", J);
19816
19820
  }
19817
19821
  }
19818
19822
  function x() {
@@ -20252,16 +20256,16 @@ const f1 = /* @__PURE__ */ Sn(d1, [["render", c1]]), p1 = { class: "grid w-full
20252
20256
  const E = (U) => {
20253
20257
  r.value = U;
20254
20258
  };
20255
- let O, L, ee, B;
20256
- const F = oe(!1), Q = (U) => {
20259
+ let O, L, ee, j;
20260
+ const F = oe(!1), J = (U) => {
20257
20261
  if (!s.value || U.target.closest(".vue-grid-item")) return;
20258
20262
  F.value = !0;
20259
20263
  const H = O.getBoundingClientRect(), de = O.scrollTop, Ee = O.scrollLeft;
20260
- ee = U.clientX - H.left + Ee, B = U.clientY - H.top + de, L.style.left = ee + "px", L.style.top = B + "px", L.style.width = "0px", L.style.height = "0px", L.style.opacity = "1";
20264
+ ee = U.clientX - H.left + Ee, j = U.clientY - H.top + de, L.style.left = ee + "px", L.style.top = j + "px", L.style.width = "0px", L.style.height = "0px", L.style.opacity = "1";
20261
20265
  }, T = (U) => {
20262
20266
  if (!s.value || !F.value) return;
20263
- const q = O.getBoundingClientRect(), $ = O.scrollTop, H = O.scrollLeft, de = U.clientX - q.left + H, Ee = U.clientY - q.top + $, W = Math.min(ee, de), ne = Math.min(B, Ee), ye = Math.abs(ee - de), K = Math.abs(B - Ee);
20264
- L.style.left = W + "px", L.style.top = ne + "px", L.style.width = ye + "px", L.style.height = K + "px";
20267
+ const q = O.getBoundingClientRect(), $ = O.scrollTop, H = O.scrollLeft, de = U.clientX - q.left + H, Ee = U.clientY - q.top + $, W = Math.min(ee, de), ne = Math.min(j, Ee), ye = Math.abs(ee - de), Q = Math.abs(j - Ee);
20268
+ L.style.left = W + "px", L.style.top = ne + "px", L.style.width = ye + "px", L.style.height = Q + "px";
20265
20269
  }, te = () => {
20266
20270
  if (!s.value) return;
20267
20271
  F.value = !1, L.style.opacity = "0";
@@ -20281,10 +20285,10 @@ const f1 = /* @__PURE__ */ Sn(d1, [["render", c1]]), p1 = { class: "grid w-full
20281
20285
  }
20282
20286
  async function R(U) {
20283
20287
  s.value && U.key === "Backspace" && !A() && (i.value.length > 0 || r.value) && (U.preventDefault(), await t.confirm(`Are you sure you want to delete ${i.value.length > 1 ? "these " + i.value.length + " items" : "this item"}?`) && (i.value.length > 0 ? i.value.forEach(($) => {
20284
- j($);
20285
- }) : j(r.value.i)), i.value = [], r.value = null);
20288
+ B($);
20289
+ }) : B(r.value.i)), i.value = [], r.value = null);
20286
20290
  }
20287
- const j = (U) => {
20291
+ const B = (U) => {
20288
20292
  n.layout.splice(n.layout.findIndex((q) => q.i === U), 1);
20289
20293
  }, G = (U) => Object.keys(U).includes("visibility") ? ![!0, "true", 1].includes(Xo(U.visibility.trim(), u == null ? void 0 : u.value)) : !1;
20290
20294
  return lt(() => {
@@ -20296,7 +20300,7 @@ const f1 = /* @__PURE__ */ Sn(d1, [["render", c1]]), p1 = { class: "grid w-full
20296
20300
  ref: l,
20297
20301
  id: "custom-module-wrapper",
20298
20302
  class: Ze(["relative block w-full overflow-auto bg-muted/80 border border-ring/50 dark:border-ring rounded-xl", { "select-none": h(o) || F.value }]),
20299
- onMousedown: Q
20303
+ onMousedown: J
20300
20304
  }, [
20301
20305
  S("div", C1, [
20302
20306
  S("div", {
@@ -20440,7 +20444,7 @@ const f1 = /* @__PURE__ */ Sn(d1, [["render", c1]]), p1 = { class: "grid w-full
20440
20444
  name: $.label,
20441
20445
  type: "apiActionResponse",
20442
20446
  value: $.action ?? null
20443
- }))) || [], j = Object.entries(c.elementValues ?? {}).map(([$, H]) => ({
20447
+ }))) || [], B = Object.entries(c.elementValues ?? {}).map(([$, H]) => ({
20444
20448
  name: $,
20445
20449
  type: "element",
20446
20450
  value: {
@@ -20451,10 +20455,10 @@ const f1 = /* @__PURE__ */ Sn(d1, [["render", c1]]), p1 = { class: "grid w-full
20451
20455
  type: "routeQueryParam",
20452
20456
  value: H ?? null
20453
20457
  })) || [];
20454
- return [...A, ...R, ...j, ...G].filter(($) => $.name);
20458
+ return [...A, ...R, ...B, ...G].filter(($) => $.name);
20455
20459
  });
20456
20460
  function m(A) {
20457
- return A.replace(/-([a-z])/g, (R, j) => j.toUpperCase());
20461
+ return A.replace(/-([a-z])/g, (R, B) => B.toUpperCase());
20458
20462
  }
20459
20463
  const g = ve(() => {
20460
20464
  const A = Object.fromEntries(
@@ -20469,11 +20473,11 @@ const f1 = /* @__PURE__ */ Sn(d1, [["render", c1]]), p1 = { class: "grid w-full
20469
20473
  value: I(R.expression, A)
20470
20474
  }));
20471
20475
  }), _ = ve(() => [...v.value, ...g.value]), I = (A, R) => x(A, R), x = (A, R = {}) => {
20472
- var j;
20476
+ var B;
20473
20477
  try {
20474
20478
  const G = document.createElement("iframe");
20475
20479
  G.style.display = "none", document.body.appendChild(G);
20476
- const U = (j = G.contentWindow) == null ? void 0 : j.Function;
20480
+ const U = (B = G.contentWindow) == null ? void 0 : B.Function;
20477
20481
  return document.body.removeChild(G), U == null ? void 0 : U(...Object.keys(R), "'use strict';" + A)(...Object.values(R));
20478
20482
  } catch (G) {
20479
20483
  return console.error("Sandbox error:", G), "";
@@ -20508,33 +20512,33 @@ const f1 = /* @__PURE__ */ Sn(d1, [["render", c1]]), p1 = { class: "grid w-full
20508
20512
  c[R] = p.value[R];
20509
20513
  });
20510
20514
  }
20511
- function B() {
20515
+ function j() {
20512
20516
  var R;
20513
20517
  let A = JSON.parse(JSON.stringify(c));
20514
- (R = A.apiActions) == null || R.forEach((j) => {
20515
- j.action.response = null, j.firedAt = null, j.hasFired = !1;
20518
+ (R = A.apiActions) == null || R.forEach((B) => {
20519
+ B.action.response = null, B.firedAt = null, B.hasFired = !1;
20516
20520
  }), A.elementValues = {}, O("state", A), i.value = !1;
20517
20521
  }
20518
20522
  async function F() {
20519
20523
  var R;
20520
20524
  const A = await E("state");
20521
- A && ((R = Object.keys(A)) == null || R.forEach((j) => {
20522
- c[j] = A[j];
20525
+ A && ((R = Object.keys(A)) == null || R.forEach((B) => {
20526
+ c[B] = A[B];
20523
20527
  }));
20524
20528
  }
20525
- function Q() {
20529
+ function J() {
20526
20530
  var A;
20527
20531
  (A = c.layout) == null || A.forEach((R) => {
20528
20532
  Object.keys(R).includes("defaultValue") && (c.elementValues[R.variableName] = R.defaultValue);
20529
20533
  });
20530
20534
  }
20531
20535
  const T = async () => {
20532
- await F(), Q(), console.log("accc", c.apiActions), te();
20536
+ await F(), J(), console.log("accc", c.apiActions), te();
20533
20537
  }, te = () => {
20534
20538
  async function A(R) {
20535
20539
  console.log("loadAction", R);
20536
- const { fireAction: j } = Mo(R.action.integration);
20537
- let G = await j(R.action, _.value);
20540
+ const { fireAction: B } = Mo(R.action.integration);
20541
+ let G = await B(R.action, _.value);
20538
20542
  c.apiActions.find((U) => U.id === R.id).action.response = G;
20539
20543
  }
20540
20544
  c.apiActions.forEach((R) => {
@@ -20544,11 +20548,11 @@ const f1 = /* @__PURE__ */ Sn(d1, [["render", c1]]), p1 = { class: "grid w-full
20544
20548
  return lt(() => {
20545
20549
  T();
20546
20550
  }), (A, R) => {
20547
- const j = y("Button");
20551
+ const B = y("Button");
20548
20552
  return w(), P("div", $1, [
20549
20553
  h(n) ? (w(), P("div", I1, [
20550
20554
  i.value ? (w(), P("div", R1, [
20551
- d(j, {
20555
+ d(B, {
20552
20556
  variant: "outline",
20553
20557
  onClick: ee
20554
20558
  }, {
@@ -20558,14 +20562,14 @@ const f1 = /* @__PURE__ */ Sn(d1, [["render", c1]]), p1 = { class: "grid w-full
20558
20562
  _: 1,
20559
20563
  __: [2]
20560
20564
  }),
20561
- d(j, { onClick: B }, {
20565
+ d(B, { onClick: j }, {
20562
20566
  default: f(() => R[3] || (R[3] = [
20563
20567
  C("Save")
20564
20568
  ])),
20565
20569
  _: 1,
20566
20570
  __: [3]
20567
20571
  })
20568
- ])) : (w(), Z(j, {
20572
+ ])) : (w(), Z(B, {
20569
20573
  key: 0,
20570
20574
  onClick: L
20571
20575
  }, {