@oneclick.dev/cms-core-modules 0.0.95 → 0.0.97

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.
@@ -1,5 +1,5 @@
1
- import { isRef as vt, shallowRef as Mt, watch as Se, ref as A, watchEffect as _t, defineComponent as ne, h as Z, unref as b, inject as j, resolveComponent as m, openBlock as D, createElementBlock as E, Fragment as K, createElementVNode as $, toDisplayString as N, createVNode as r, withCtx as i, renderList as le, createTextVNode as S, createCommentVNode as Y, computed as Ie, createBlock as O, normalizeClass as ie, markRaw as Oe, withModifiers as It, resolveDynamicComponent as ot, useTemplateRef as Pt, reactive as ye, onMounted as Pe, nextTick as Be, provide as ae } from "vue";
2
- import { useFlowBuilder as St, useProjectSettings as At, useFirebaseIntegration as kt, useModulePermissions as me, useModuleStorage as we, useModuleRoute as Tt, useModuleBreadcrumbs as Et } from "@oneclick.dev/cms-kit";
1
+ import { isRef as vt, shallowRef as Mt, watch as Se, ref as k, watchEffect as _t, defineComponent as ne, h as Z, unref as b, inject as j, resolveComponent as m, openBlock as D, createElementBlock as E, Fragment as K, createElementVNode as $, toDisplayString as N, createVNode as r, withCtx as i, renderList as le, createTextVNode as S, createCommentVNode as Y, computed as Ie, createBlock as O, normalizeClass as ie, markRaw as Oe, withModifiers as It, resolveDynamicComponent as ot, useTemplateRef as Pt, reactive as ye, onMounted as Pe, nextTick as Be, provide as ae } from "vue";
2
+ import { useFlowBuilder as St, useProjectSettings as kt, useFirebaseIntegration as At, useModulePermissions as me, useModuleStorage as we, useModuleRoute as Tt, useModuleBreadcrumbs as Et } from "@oneclick.dev/cms-kit";
3
3
  import { i as Lt, v as xe, c as Me, d as zt } from "./utils-BVKy9S2J.mjs";
4
4
  import { ChevronsLeft as Ht, ChevronLeft as Gt, ChevronRight as Ot, ChevronsRight as Bt, Table2 as Ct, icons as lt, ArrowUpDown as Qe, Info as Ut, Check as Le, Trash2 as Nt, Plus as Re, ChevronUp as qt, ChevronDown as rt, X as jt, CalendarIcon as Yt, MousePointerClick as Kt } from "lucide-vue-next";
5
5
  import Xt from "@oneclick.dev/cms-kit/components";
@@ -166,15 +166,15 @@ const sn = {
166
166
  e.getHeaderGroups = z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, l) => {
167
167
  var s, a;
168
168
  const u = (s = n?.map((x) => t.find((v) => v.id === x)).filter(Boolean)) != null ? s : [], d = (a = l?.map((x) => t.find((v) => v.id === x)).filter(Boolean)) != null ? a : [], f = t.filter((x) => !(n != null && n.includes(x.id)) && !(l != null && l.includes(x.id)));
169
- return Ae(o, [...u, ...f, ...d], e);
170
- }, H(e.options, se, "getHeaderGroups")), e.getCenterHeaderGroups = z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, l) => (t = t.filter((s) => !(n != null && n.includes(s.id)) && !(l != null && l.includes(s.id))), Ae(o, t, e, "center")), H(e.options, se, "getCenterHeaderGroups")), e.getLeftHeaderGroups = z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
169
+ return ke(o, [...u, ...f, ...d], e);
170
+ }, H(e.options, se, "getHeaderGroups")), e.getCenterHeaderGroups = z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, l) => (t = t.filter((s) => !(n != null && n.includes(s.id)) && !(l != null && l.includes(s.id))), ke(o, t, e, "center")), H(e.options, se, "getCenterHeaderGroups")), e.getLeftHeaderGroups = z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
171
171
  var l;
172
172
  const s = (l = n?.map((a) => t.find((u) => u.id === a)).filter(Boolean)) != null ? l : [];
173
- return Ae(o, s, e, "left");
173
+ return ke(o, s, e, "left");
174
174
  }, H(e.options, se, "getLeftHeaderGroups")), e.getRightHeaderGroups = z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
175
175
  var l;
176
176
  const s = (l = n?.map((a) => t.find((u) => u.id === a)).filter(Boolean)) != null ? l : [];
177
- return Ae(o, s, e, "right");
177
+ return ke(o, s, e, "right");
178
178
  }, H(e.options, se, "getRightHeaderGroups")), e.getFooterGroups = z(() => [e.getHeaderGroups()], (o) => [...o].reverse(), H(e.options, se, "getFooterGroups")), e.getLeftFooterGroups = z(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), H(e.options, se, "getLeftFooterGroups")), e.getCenterFooterGroups = z(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), H(e.options, se, "getCenterFooterGroups")), e.getRightFooterGroups = z(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), H(e.options, se, "getRightFooterGroups")), e.getFlatHeaders = z(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), H(e.options, se, "getFlatHeaders")), e.getLeftFlatHeaders = z(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), H(e.options, se, "getLeftFlatHeaders")), e.getCenterFlatHeaders = z(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), H(e.options, se, "getCenterFlatHeaders")), e.getRightFlatHeaders = z(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), H(e.options, se, "getRightFlatHeaders")), e.getCenterLeafHeaders = z(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
179
179
  var n;
180
180
  return !((n = t.subHeaders) != null && n.length);
@@ -190,7 +190,7 @@ const sn = {
190
190
  }, H(e.options, se, "getLeafHeaders"));
191
191
  }
192
192
  };
193
- function Ae(e, o, t, n) {
193
+ function ke(e, o, t, n) {
194
194
  var l, s;
195
195
  let a = 0;
196
196
  const u = function(v, p) {
@@ -681,7 +681,7 @@ const xn = {
681
681
  function Rn(e) {
682
682
  return e || (typeof document < "u" ? document : null);
683
683
  }
684
- const ke = {
684
+ const Ae = {
685
685
  size: 150,
686
686
  minSize: 20,
687
687
  maxSize: Number.MAX_SAFE_INTEGER
@@ -693,7 +693,7 @@ const ke = {
693
693
  isResizingColumn: !1,
694
694
  columnSizingStart: []
695
695
  }), bn = {
696
- getDefaultColumnDef: () => ke,
696
+ getDefaultColumnDef: () => Ae,
697
697
  getInitialState: (e) => ({
698
698
  columnSizing: {},
699
699
  columnSizingInfo: qe(),
@@ -709,7 +709,7 @@ const ke = {
709
709
  e.getSize = () => {
710
710
  var t, n, l;
711
711
  const s = o.getState().columnSizing[e.id];
712
- return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : ke.minSize, (n = s ?? e.columnDef.size) != null ? n : ke.size), (l = e.columnDef.maxSize) != null ? l : ke.maxSize);
712
+ return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Ae.minSize, (n = s ?? e.columnDef.size) != null ? n : Ae.size), (l = e.columnDef.maxSize) != null ? l : Ae.maxSize);
713
713
  }, e.getStart = z((t) => [t, he(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((l, s) => l + s.getSize(), 0), H(o.options, "debugColumns", "getStart")), e.getAfter = z((t) => [t, he(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((l, s) => l + s.getSize(), 0), H(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
714
714
  o.setColumnSizing((t) => {
715
715
  let {
@@ -1358,7 +1358,7 @@ function tt(e, o, t) {
1358
1358
  }
1359
1359
  }), l ? "all" : s ? "some" : !1;
1360
1360
  }
1361
- const nt = /([0-9]+)/gm, An = (e, o, t) => $t(Ce(e.getValue(t)).toLowerCase(), Ce(o.getValue(t)).toLowerCase()), kn = (e, o, t) => $t(Ce(e.getValue(t)), Ce(o.getValue(t))), Tn = (e, o, t) => ut(Ce(e.getValue(t)).toLowerCase(), Ce(o.getValue(t)).toLowerCase()), En = (e, o, t) => ut(Ce(e.getValue(t)), Ce(o.getValue(t))), Ln = (e, o, t) => {
1361
+ const nt = /([0-9]+)/gm, kn = (e, o, t) => $t(Ce(e.getValue(t)).toLowerCase(), Ce(o.getValue(t)).toLowerCase()), An = (e, o, t) => $t(Ce(e.getValue(t)), Ce(o.getValue(t))), Tn = (e, o, t) => ut(Ce(e.getValue(t)).toLowerCase(), Ce(o.getValue(t)).toLowerCase()), En = (e, o, t) => ut(Ce(e.getValue(t)), Ce(o.getValue(t))), Ln = (e, o, t) => {
1362
1362
  const n = e.getValue(t), l = o.getValue(t);
1363
1363
  return n > l ? 1 : n < l ? -1 : 0;
1364
1364
  }, zn = (e, o, t) => ut(e.getValue(t), o.getValue(t));
@@ -1389,8 +1389,8 @@ function $t(e, o) {
1389
1389
  return t.length - n.length;
1390
1390
  }
1391
1391
  const Ve = {
1392
- alphanumeric: An,
1393
- alphanumericCaseSensitive: kn,
1392
+ alphanumeric: kn,
1393
+ alphanumericCaseSensitive: An,
1394
1394
  text: Tn,
1395
1395
  textCaseSensitive: En,
1396
1396
  datetime: Ln,
@@ -1936,7 +1936,7 @@ function Wn(e) {
1936
1936
  immediate: !0
1937
1937
  });
1938
1938
  }
1939
- const l = A(n.initialState);
1939
+ const l = k(n.initialState);
1940
1940
  return _t(() => {
1941
1941
  n.setOptions((s) => {
1942
1942
  var a;
@@ -2286,7 +2286,7 @@ const wo = (e, o = {}) => {
2286
2286
  row: {}
2287
2287
  },
2288
2288
  setup(e) {
2289
- const o = e, t = j("data"), n = j("isPerformingDataTableAction", A(!1)), { runFlow: l } = St(), s = Ie(() => [!0, "true"].includes(Jt(o.action.visible, [
2289
+ const o = e, t = j("data"), n = j("isPerformingDataTableAction", k(!1)), { runFlow: l } = St(), s = Ie(() => [!0, "true"].includes(Jt(o.action.visible, [
2290
2290
  {
2291
2291
  name: "item",
2292
2292
  value: {
@@ -2359,10 +2359,10 @@ const wo = (e, o = {}) => {
2359
2359
  })) : Y("", !0);
2360
2360
  };
2361
2361
  }
2362
- }), yo = { class: "mx-auto w-full max-w-sm mt-8" }, Ro = { class: "w-full flex flex-col gap-2" }, bo = ["innerHTML"], Do = /* @__PURE__ */ ne({
2362
+ }), yo = { class: "mx-auto w-full max-w-sm mt-8" }, Ro = { class: "w-full flex flex-col gap-2 mb-4" }, bo = ["innerHTML"], Do = /* @__PURE__ */ ne({
2363
2363
  __name: "DataTableMobileRowActionDrawer",
2364
2364
  setup(e, { expose: o }) {
2365
- const t = A(!1), n = A([]);
2365
+ const t = k(!1), n = k([]);
2366
2366
  Se(
2367
2367
  t,
2368
2368
  (a) => {
@@ -2398,7 +2398,7 @@ const wo = (e, o = {}) => {
2398
2398
  $("div", Ro, [
2399
2399
  (D(!0), E(K, null, le(b(n), (v) => (D(), O(d, {
2400
2400
  variant: "outline",
2401
- class: "w-full",
2401
+ class: "w-full h-11 border-none bg-foreground! text-background! rounded-lg",
2402
2402
  key: v,
2403
2403
  onClick: (p) => s(v)
2404
2404
  }, {
@@ -2411,14 +2411,11 @@ const wo = (e, o = {}) => {
2411
2411
  _: 2
2412
2412
  }, 1032, ["onClick"]))), 128))
2413
2413
  ]),
2414
- u[2] || (u[2] = $("div", { class: "p-4 pb-0" }, [
2415
- $("div", { class: "mt-3 h-[40px]" })
2416
- ], -1)),
2417
2414
  r(f, { "as-child": "" }, {
2418
2415
  default: i(() => [
2419
2416
  r(d, {
2420
2417
  variant: "outline",
2421
- class: "w-full mb-8"
2418
+ class: "w-full mb-8 h-11 shadow-none! border-none! active:bg-black/5 dark:active:bg-white/5! rounded-lg"
2422
2419
  }, {
2423
2420
  default: i(() => [...u[1] || (u[1] = [
2424
2421
  S(" Cancel ", -1)
@@ -2443,7 +2440,7 @@ const wo = (e, o = {}) => {
2443
2440
  }, Vo = /* @__PURE__ */ ne({
2444
2441
  __name: "DataTable",
2445
2442
  setup(e, { expose: o }) {
2446
- const { Button: t, Checkbox: n } = Xt, { $dragAndDrop: l } = useNuxtApp(), { formatCurrency: s } = At(), a = j("integrationId", A("")), u = j("resourcePath", A("")), d = j("table"), f = j("data"), C = j("columns"), x = j("sortMode", A(!1)), v = j("sortModeProperty", A("")), p = j("filters", A([])), w = j("itemActions", A([])), g = j("isPerformingDataTableAction", A(!1)), _ = Pt("mobileActionDrawer"), c = Ie(() => {
2443
+ const { Button: t, Checkbox: n } = Xt, { $dragAndDrop: l } = useNuxtApp(), { formatCurrency: s } = kt(), a = j("integrationId", k("")), u = j("resourcePath", k("")), d = j("table"), f = j("data"), C = j("columns"), x = j("sortMode", k(!1)), v = j("sortModeProperty", k("")), p = j("filters", k([])), w = j("itemActions", k([])), g = j("isPerformingDataTableAction", k(!1)), _ = Pt("mobileActionDrawer"), c = Ie(() => {
2447
2444
  let L = [];
2448
2445
  return x.value ? L.push({
2449
2446
  id: "drag-handle",
@@ -2496,7 +2493,7 @@ const wo = (e, o = {}) => {
2496
2493
  let U = !!p.value.find((h) => h.property === R.property);
2497
2494
  R.visible && (R.type === "text" ? L.push({
2498
2495
  id: R.property,
2499
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2496
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2500
2497
  header: ({ column: h }) => Z(t, {
2501
2498
  variant: "ghost",
2502
2499
  disabled: x.value,
@@ -2505,15 +2502,15 @@ const wo = (e, o = {}) => {
2505
2502
  cell: ({ row: h }) => Z("div", {}, h.getValue(R.property)),
2506
2503
  ...U ? {
2507
2504
  enableColumnFilter: !0,
2508
- filterFn: (h, k, P) => {
2505
+ filterFn: (h, A, P) => {
2509
2506
  if (!Array.isArray(P) || P.length === 0) return !0;
2510
- const Q = h.getValue(k);
2507
+ const Q = h.getValue(A);
2511
2508
  return P.includes(Q);
2512
2509
  }
2513
2510
  } : {}
2514
2511
  }) : R.type === "number" ? L.push({
2515
2512
  id: R.property,
2516
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2513
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2517
2514
  header: ({ column: h }) => Z(t, {
2518
2515
  variant: "ghost",
2519
2516
  disabled: x.value,
@@ -2522,22 +2519,22 @@ const wo = (e, o = {}) => {
2522
2519
  cell: ({ row: h }) => Z("div", { class: "" }, isNaN(h.getValue(R.property)) ? h.getValue(R.property) : parseFloat(h.getValue(R.property))?.toFixed(2)?.replace(".00", ""))
2523
2520
  }) : R.type === "date" ? L.push({
2524
2521
  id: R.property,
2525
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2522
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2526
2523
  header: R.label,
2527
2524
  cell: ({ row: h }) => Z("div", { class: "" }, h.getValue(R.property))
2528
2525
  }) : R.type === "datetime" ? L.push({
2529
2526
  id: R.property,
2530
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2527
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2531
2528
  header: R.label,
2532
2529
  cell: ({ row: h }) => Z("div", { class: "" }, new Date(h.getValue(R.property))?.toLocaleString() ?? "")
2533
2530
  }) : R.type === "boolean" ? L.push({
2534
2531
  id: R.property,
2535
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2532
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2536
2533
  header: R.label,
2537
2534
  cell: ({ row: h }) => Z(n, { defaultValue: h.getValue(R.property), disabled: !0, class: "border-ring disabled:cursor-default disabled:opacity-100" })
2538
2535
  }) : R.type === "URL" ? L.push({
2539
2536
  id: R.property,
2540
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2537
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2541
2538
  header: R.label,
2542
2539
  cell: ({ row: h }) => Z(
2543
2540
  "a",
@@ -2545,74 +2542,74 @@ const wo = (e, o = {}) => {
2545
2542
  href: h.getValue(R.property),
2546
2543
  target: "_blank",
2547
2544
  class: "text-primary",
2548
- onClick: (k) => k.stopPropagation(),
2549
- onPointerdown: (k) => k.stopPropagation(),
2550
- onKeydown: (k) => {
2551
- (k.key === "Enter" || k.key === " ") && k.stopPropagation();
2545
+ onClick: (A) => A.stopPropagation(),
2546
+ onPointerdown: (A) => A.stopPropagation(),
2547
+ onKeydown: (A) => {
2548
+ (A.key === "Enter" || A.key === " ") && A.stopPropagation();
2552
2549
  }
2553
2550
  },
2554
2551
  h.getValue(R.property)
2555
2552
  )
2556
2553
  }) : R.type === "email" ? L.push({
2557
2554
  id: R.property,
2558
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2555
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2559
2556
  header: R.label,
2560
2557
  cell: ({ row: h }) => Z(
2561
2558
  "a",
2562
2559
  {
2563
2560
  href: `mailto:${h.getValue(R.property)}`,
2564
2561
  class: "text-primary",
2565
- onClick: (k) => k.stopPropagation(),
2566
- onPointerdown: (k) => k.stopPropagation(),
2567
- onKeydown: (k) => {
2568
- (k.key === "Enter" || k.key === " ") && k.stopPropagation();
2562
+ onClick: (A) => A.stopPropagation(),
2563
+ onPointerdown: (A) => A.stopPropagation(),
2564
+ onKeydown: (A) => {
2565
+ (A.key === "Enter" || A.key === " ") && A.stopPropagation();
2569
2566
  }
2570
2567
  },
2571
2568
  h.getValue(R.property)
2572
2569
  )
2573
2570
  }) : R.type === "phone" ? L.push({
2574
2571
  id: R.property,
2575
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2572
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2576
2573
  header: R.label,
2577
2574
  cell: ({ row: h }) => Z(
2578
2575
  "a",
2579
2576
  {
2580
2577
  href: `tel:${h.getValue(R.property)}`,
2581
2578
  class: "text-primary",
2582
- onClick: (k) => k.stopPropagation(),
2583
- onPointerdown: (k) => k.stopPropagation(),
2584
- onKeydown: (k) => {
2585
- (k.key === "Enter" || k.key === " ") && k.stopPropagation();
2579
+ onClick: (A) => A.stopPropagation(),
2580
+ onPointerdown: (A) => A.stopPropagation(),
2581
+ onKeydown: (A) => {
2582
+ (A.key === "Enter" || A.key === " ") && A.stopPropagation();
2586
2583
  }
2587
2584
  },
2588
2585
  h.getValue(R.property)
2589
2586
  )
2590
2587
  }) : R.type === "currency" ? L.push({
2591
2588
  id: R.property,
2592
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2589
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2593
2590
  header: R.label,
2594
2591
  cell: ({ row: h }) => Z("div", { class: "" }, s(h.getValue(R.property)))
2595
2592
  }) : R.type === "image" ? L.push({
2596
2593
  id: R.property,
2597
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2594
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2598
2595
  header: R.label,
2599
2596
  cell: ({ row: h }) => h.getValue(R.property) ? Z("img", { src: h.getValue(R.property), alt: R.label, class: "size-16 object-cover" }) : ""
2600
2597
  }) : R.type === "array" ? L.push({
2601
2598
  id: R.property,
2602
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2599
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2603
2600
  header: R.label,
2604
2601
  cell: ({ row: h }) => {
2605
- const k = h.getValue(R.property);
2606
- return Array.isArray(k) ? Z("div", {}, k.map((P, Q) => Z("div", { key: Q }, P.toString()))) : Z("div", {}, "");
2602
+ const A = h.getValue(R.property);
2603
+ return Array.isArray(A) ? Z("div", {}, A.map((P, Q) => Z("div", { key: Q }, P.toString()))) : Z("div", {}, "");
2607
2604
  }
2608
2605
  }) : R.type === "html" && L.push({
2609
2606
  id: R.property,
2610
- accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((k, P) => k?.[P], h) : h[R.property],
2607
+ accessorFn: (h) => R.property.includes(".") ? R.property.split(".").reduce((A, P) => A?.[P], h) : h[R.property],
2611
2608
  header: R.label,
2612
2609
  cell: ({ row: h }) => {
2613
- let k = document.createElement("div");
2614
- k.innerHTML = h.getValue(R.property) || "";
2615
- const P = k.innerText || k.textContent || "";
2610
+ let A = document.createElement("div");
2611
+ A.innerHTML = h.getValue(R.property) || "";
2612
+ const P = A.innerText || A.textContent || "";
2616
2613
  return Z("div", { class: "", innerHTML: P.length > 100 ? P.substring(0, 100) + "..." : P });
2617
2614
  }
2618
2615
  }));
@@ -2621,7 +2618,7 @@ const wo = (e, o = {}) => {
2621
2618
  enableHiding: !1,
2622
2619
  cell: ({ row: R }) => Z("div", { class: "data-table-row-actions flex items-center justify-center gap-2" }, w.value.map((U) => Z(xo, { action: U, row: R })))
2623
2620
  }), L;
2624
- }), I = A(""), y = A([]), F = A([]), V = A({}), M = A({}), G = A({}), B = A({
2621
+ }), I = k(""), y = k([]), F = k([]), V = k({}), M = k({}), G = k({}), B = k({
2625
2622
  pageIndex: 0,
2626
2623
  pageSize: 10
2627
2624
  }), X = ye({
@@ -2691,7 +2688,7 @@ const wo = (e, o = {}) => {
2691
2688
  });
2692
2689
  const [W, q] = l([], {
2693
2690
  plugins: [en()]
2694
- }), te = A(10), oe = A(0), T = () => {
2691
+ }), te = k(10), oe = k(0), T = () => {
2695
2692
  te.value = B.value.pageSize, oe.value = B.value.pageIndex, B.value = {
2696
2693
  pageIndex: 0,
2697
2694
  pageSize: 1e4
@@ -2710,16 +2707,16 @@ const wo = (e, o = {}) => {
2710
2707
  };
2711
2708
  return o({
2712
2709
  saveSortMode: async () => {
2713
- const { update: L } = kt(a.value);
2710
+ const { update: L } = At(a.value);
2714
2711
  f.value.forEach((R) => {
2715
2712
  R[v.value] !== q.value.findIndex((U) => U.id === R.id) && (R[v.value] = q.value.findIndex((U) => U.id === R.id), L(u.value, R.id, { [v.value]: R[v.value] }));
2716
2713
  });
2717
2714
  }
2718
2715
  }), (L, R) => {
2719
- const U = m("TooltipTrigger"), h = m("TooltipContent"), k = m("Tooltip"), P = m("TableHead"), Q = m("TableRow"), re = m("TableHeader"), ee = m("TableCell"), be = m("TableBody"), Ge = m("Table");
2716
+ const U = m("TooltipTrigger"), h = m("TooltipContent"), A = m("Tooltip"), P = m("TableHead"), Q = m("TableRow"), re = m("TableHeader"), ee = m("TableCell"), be = m("TableBody"), Ge = m("Table");
2720
2717
  return D(), E(K, null, [
2721
2718
  $("div", {
2722
- class: ie(["w-full rounded-md border bg-background dark:bg-input/30 shadow-xs shadow-xs", { "cursor-wait": b(g) }])
2719
+ class: ie(["border bg-background dark:bg-input/30 shadow-xs shadow-xs -mx-[17px] w-[calc(100%+34px)] @md:mx-0 @md:w-full @md:rounded-md", { "cursor-wait": b(g) }])
2723
2720
  }, [
2724
2721
  r(Ge, null, {
2725
2722
  default: i(() => [
@@ -2738,7 +2735,7 @@ const wo = (e, o = {}) => {
2738
2735
  render: ve.column.columnDef.header,
2739
2736
  props: ve.getContext()
2740
2737
  }, null, 8, ["render", "props"])),
2741
- b(C)?.find((pe) => pe.property === ve.column.columnDef.id)?.showInfoButton ? (D(), O(k, { key: 1 }, {
2738
+ b(C)?.find((pe) => pe.property === ve.column.columnDef.id)?.showInfoButton ? (D(), O(A, { key: 1 }, {
2742
2739
  default: i(() => [
2743
2740
  r(U, { "as-child": "" }, {
2744
2741
  default: i(() => [
@@ -2842,11 +2839,11 @@ const wo = (e, o = {}) => {
2842
2839
  }), $o = { class: "grid grid-cols-3 gap-2 mb-2 py-2" }, ho = { class: "flex flex-col items-start gap-1.5" }, Mo = { class: "flex flex-col items-start gap-1.5" }, Io = { class: "flex flex-col gap-1.5" }, Po = {
2843
2840
  key: 0,
2844
2841
  class: "flex flex-col gap-2 mb-4"
2845
- }, Ao = { class: "flex flex-col gap-1.5" }, ko = { class: "flex flex-col items-start gap-1.5 col-span-4" }, To = { class: "flex flex-col items-start gap-1.5 col-span-4" }, Eo = /* @__PURE__ */ ne({
2842
+ }, ko = { class: "flex flex-col gap-1.5" }, Ao = { class: "flex flex-col items-start gap-1.5 col-span-4" }, To = { class: "flex flex-col items-start gap-1.5 col-span-4" }, Eo = /* @__PURE__ */ ne({
2846
2843
  __name: "StatDialog",
2847
2844
  emits: ["statAdded", "statEdited", "statRemoved"],
2848
2845
  setup(e, { expose: o, emit: t }) {
2849
- const n = t, l = j("columns"), s = A(!1), a = A("add"), u = A(null), d = ye({
2846
+ const n = t, l = j("columns"), s = k(!1), a = k("add"), u = k(null), d = ye({
2850
2847
  label: "",
2851
2848
  method: "",
2852
2849
  field: "",
@@ -2871,8 +2868,8 @@ const wo = (e, o = {}) => {
2871
2868
  return o({
2872
2869
  openDialog: f
2873
2870
  }), (w, g) => {
2874
- const _ = m("DialogTitle"), c = m("DialogDescription"), I = m("DialogHeader"), y = m("Label"), F = m("Input"), V = m("SelectValue"), M = m("SelectTrigger"), G = m("SelectItem"), B = m("SelectContent"), X = m("Select"), W = m("ComboboxTrigger"), q = m("ComboboxInput"), te = m("ComboboxAnchor"), oe = m("ComboboxItem"), T = m("ComboboxGroup"), J = m("ComboboxList"), L = m("Combobox"), R = m("Button"), U = m("DialogFooter"), h = m("DialogScrollContent"), k = m("Dialog");
2875
- return D(), O(k, {
2871
+ const _ = m("DialogTitle"), c = m("DialogDescription"), I = m("DialogHeader"), y = m("Label"), F = m("Input"), V = m("SelectValue"), M = m("SelectTrigger"), G = m("SelectItem"), B = m("SelectContent"), X = m("Select"), W = m("ComboboxTrigger"), q = m("ComboboxInput"), te = m("ComboboxAnchor"), oe = m("ComboboxItem"), T = m("ComboboxGroup"), J = m("ComboboxList"), L = m("Combobox"), R = m("Button"), U = m("DialogFooter"), h = m("DialogScrollContent"), A = m("Dialog");
2872
+ return D(), O(A, {
2876
2873
  open: s.value,
2877
2874
  "onUpdate:open": g[4] || (g[4] = (P) => s.value = P)
2878
2875
  }, {
@@ -3058,7 +3055,7 @@ const wo = (e, o = {}) => {
3058
3055
  default: i(() => [
3059
3056
  r(te, { class: "w-full" }, {
3060
3057
  default: i(() => [
3061
- $("div", Ao, [
3058
+ $("div", ko, [
3062
3059
  r(W, null, {
3063
3060
  default: i(() => [
3064
3061
  r(y, { class: "text-xs text-muted-foreground" }, {
@@ -3109,7 +3106,7 @@ const wo = (e, o = {}) => {
3109
3106
  ]),
3110
3107
  _: 2
3111
3108
  }, 1032, ["modelValue", "onUpdate:modelValue"]),
3112
- $("div", ko, [
3109
+ $("div", Ao, [
3113
3110
  r(y, { class: "text-xs text-muted-foreground" }, {
3114
3111
  default: i(() => [...g[15] || (g[15] = [
3115
3112
  S("Condition", -1)
@@ -3251,7 +3248,7 @@ const wo = (e, o = {}) => {
3251
3248
  }), Lo = { class: "flex flex-wrap gap-2 mb-4" }, zo = ["onClick"], Ho = { class: "text-2xl font-bold" }, Go = { class: "text-xs text-muted-foreground truncate w-full text-center" }, Oo = /* @__PURE__ */ ne({
3252
3249
  __name: "Stats",
3253
3250
  setup(e) {
3254
- const o = j("data"), { isAdmin: t } = me(), { getModuleData: n, setModuleData: l } = we(), s = A(), a = A([]), u = (y) => {
3251
+ const o = j("data"), { isAdmin: t } = me(), { getModuleData: n, setModuleData: l } = we(), s = k(), a = k([]), u = (y) => {
3255
3252
  let F = crypto.randomUUID();
3256
3253
  (!a.value || a?.value?.length === 0) && (a.value = []), a.value.push({ ...y, id: F }), l("stats", a.value);
3257
3254
  }, d = (y) => {
@@ -3641,7 +3638,7 @@ const wo = (e, o = {}) => {
3641
3638
  },
3642
3639
  emits: ["update:open"],
3643
3640
  setup(e, { emit: o }) {
3644
- const { setModuleData: t } = we(), n = e, l = o, s = j("columns"), a = A([]), u = Ie({
3641
+ const { setModuleData: t } = we(), n = e, l = o, s = j("columns"), a = k([]), u = Ie({
3645
3642
  get() {
3646
3643
  return n.open;
3647
3644
  },
@@ -3659,7 +3656,7 @@ const wo = (e, o = {}) => {
3659
3656
  type: "text",
3660
3657
  showInfoButton: !1,
3661
3658
  infoTooltipText: ""
3662
- }), f = A(!1), C = () => {
3659
+ }), f = k(!1), C = () => {
3663
3660
  f.value = !1, d.property = "", d.label = "", d.visible = !0, d.type = "text", d.showInfoButton = !1, d.infoTooltipText = "";
3664
3661
  }, x = () => {
3665
3662
  a.value || (a.value = []);
@@ -3679,7 +3676,7 @@ const wo = (e, o = {}) => {
3679
3676
  a.value = a.value.filter((g) => !g._remove), t("columns", a.value), s.value = a.value, C(), u.value = !1;
3680
3677
  };
3681
3678
  return (g, _) => {
3682
- const c = m("DropdownMenuItem"), I = m("DialogTrigger"), y = m("DialogTitle"), F = m("DialogDescription"), V = m("DialogHeader"), M = m("Button"), G = m("PopoverTrigger"), B = m("Label"), X = m("Input"), W = m("Checkbox"), q = m("SelectValue"), te = m("SelectTrigger"), oe = m("SelectLabel"), T = m("SelectItem"), J = m("SelectGroup"), L = m("SelectContent"), R = m("Select"), U = m("PopoverContent"), h = m("Popover"), k = m("Accordion"), P = m("DialogFooter"), Q = m("DialogScrollContent"), re = m("Dialog");
3679
+ const c = m("DropdownMenuItem"), I = m("DialogTrigger"), y = m("DialogTitle"), F = m("DialogDescription"), V = m("DialogHeader"), M = m("Button"), G = m("PopoverTrigger"), B = m("Label"), X = m("Input"), W = m("Checkbox"), q = m("SelectValue"), te = m("SelectTrigger"), oe = m("SelectLabel"), T = m("SelectItem"), J = m("SelectGroup"), L = m("SelectContent"), R = m("Select"), U = m("PopoverContent"), h = m("Popover"), A = m("Accordion"), P = m("DialogFooter"), Q = m("DialogScrollContent"), re = m("Dialog");
3683
3680
  return D(), O(re, {
3684
3681
  open: u.value,
3685
3682
  "onUpdate:open": [
@@ -3966,7 +3963,7 @@ const wo = (e, o = {}) => {
3966
3963
  _: 1
3967
3964
  }, 8, ["open"])
3968
3965
  ]),
3969
- r(k, {
3966
+ r(A, {
3970
3967
  type: "single",
3971
3968
  collapsible: "",
3972
3969
  class: "w-full"
@@ -4032,7 +4029,7 @@ const wo = (e, o = {}) => {
4032
4029
  }), al = /* @__PURE__ */ ne({
4033
4030
  __name: "ColumnDropdown",
4034
4031
  setup(e) {
4035
- const { isAdmin: o } = me(), t = j("columns"), n = A(null), l = A(null), s = A(!1), a = A(!1), u = () => {
4032
+ const { isAdmin: o } = me(), t = j("columns"), n = k(null), l = k(null), s = k(!1), a = k(!1), u = () => {
4036
4033
  l.value = n.value;
4037
4034
  }, d = (C) => {
4038
4035
  a.value = C, C || (s.value = !1);
@@ -4132,7 +4129,7 @@ const wo = (e, o = {}) => {
4132
4129
  setup(e, { emit: o }) {
4133
4130
  const { isAdmin: t } = me(), n = o, l = e, s = (v) => {
4134
4131
  u.value = v;
4135
- }, a = j("columns"), u = A(!1), d = A("");
4132
+ }, a = j("columns"), u = k(!1), d = k("");
4136
4133
  Se(u, (v) => {
4137
4134
  v && (d.value = l.savedField ?? "");
4138
4135
  });
@@ -4292,7 +4289,7 @@ const wo = (e, o = {}) => {
4292
4289
  }, _l = /* @__PURE__ */ ne({
4293
4290
  __name: "SortMode",
4294
4291
  setup(e) {
4295
- const { getModuleData: o, setModuleData: t } = we(), { isAdmin: n } = me(), l = j("table"), s = j("data"), a = j("sortMode", A(!1)), u = j("sortModeProperty", A("")), d = j("saveSortMode", () => {
4292
+ const { getModuleData: o, setModuleData: t } = we(), { isAdmin: n } = me(), l = j("table"), s = j("data"), a = j("sortMode", k(!1)), u = j("sortModeProperty", k("")), d = j("saveSortMode", () => {
4296
4293
  }), f = (w) => {
4297
4294
  u.value = w.field, t("sortMode", w);
4298
4295
  };
@@ -4300,7 +4297,7 @@ const wo = (e, o = {}) => {
4300
4297
  let w = await o("sortMode");
4301
4298
  u.value = w?.field ?? "";
4302
4299
  });
4303
- const C = A(0), x = () => {
4300
+ const C = k(0), x = () => {
4304
4301
  a.value = !0, C.value = l?.value?.getState().pagination.pageSize, l?.value?.setPageSize(s.value.length);
4305
4302
  }, v = () => {
4306
4303
  a.value = !1, l?.value?.setPageSize(C.value);
@@ -4409,7 +4406,7 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
4409
4406
  setup(e, { emit: o }) {
4410
4407
  const { isAdmin: t } = me(), n = o, l = e, s = (w) => {
4411
4408
  d.value = w;
4412
- }, a = j("sortMode"), u = j("columns"), d = A(!1), f = A(""), C = A("");
4409
+ }, a = j("sortMode"), u = j("columns"), d = k(!1), f = k(""), C = k("");
4413
4410
  Se(d, (w) => {
4414
4411
  w && (f.value = l.savedField ?? "", C.value = l.savedDefaultDate ?? "today");
4415
4412
  });
@@ -4421,7 +4418,7 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
4421
4418
  n("saved", { field: f.value, defaultDate: C.value }), v();
4422
4419
  };
4423
4420
  return (w, g) => {
4424
- const _ = m("DialogTrigger"), c = m("DialogTitle"), I = m("DialogDescription"), y = m("DialogHeader"), F = m("Label"), V = m("ComboboxTrigger"), M = m("ComboboxInput"), G = m("ComboboxAnchor"), B = m("ComboboxItem"), X = m("ComboboxGroup"), W = m("ComboboxList"), q = m("Combobox"), te = m("SelectValue"), oe = m("SelectTrigger"), T = m("SelectItem"), J = m("SelectLabel"), L = m("SelectGroup"), R = m("SelectContent"), U = m("Select"), h = m("Button"), k = m("DialogFooter"), P = m("DialogScrollContent"), Q = m("Dialog");
4421
+ const _ = m("DialogTrigger"), c = m("DialogTitle"), I = m("DialogDescription"), y = m("DialogHeader"), F = m("Label"), V = m("ComboboxTrigger"), M = m("ComboboxInput"), G = m("ComboboxAnchor"), B = m("ComboboxItem"), X = m("ComboboxGroup"), W = m("ComboboxList"), q = m("Combobox"), te = m("SelectValue"), oe = m("SelectTrigger"), T = m("SelectItem"), J = m("SelectLabel"), L = m("SelectGroup"), R = m("SelectContent"), U = m("Select"), h = m("Button"), A = m("DialogFooter"), P = m("DialogScrollContent"), Q = m("Dialog");
4425
4422
  return D(), O(Q, {
4426
4423
  open: d.value,
4427
4424
  "onUpdate:open": [
@@ -4632,7 +4629,7 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
4632
4629
  }, 8, ["modelValue"])
4633
4630
  ])
4634
4631
  ]),
4635
- r(k, null, {
4632
+ r(A, null, {
4636
4633
  default: i(() => [
4637
4634
  $("div", Rl, [
4638
4635
  l.savedField ? (D(), O(h, {
@@ -4679,10 +4676,10 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
4679
4676
  setup(e) {
4680
4677
  const { getModuleData: o, setModuleData: t } = we(), { isAdmin: n } = me(), l = j("sortMode"), s = j("dateRangeFilter"), a = j("getTableData"), u = new tn("en-US", {
4681
4678
  dateStyle: "medium"
4682
- }), d = A({
4679
+ }), d = k({
4683
4680
  start: new De(2022, 1, 20),
4684
4681
  end: new De(2022, 1, 20).subtract({ days: 20 })
4685
- }), f = A(!1), C = A(""), x = A("today"), v = (_) => {
4682
+ }), f = k(!1), C = k(""), x = k("today"), v = (_) => {
4686
4683
  C.value = _.field, x.value = _.defaultDate, t("dateRangeFilter", _);
4687
4684
  }, p = (_) => {
4688
4685
  const c = Sl()?.[_], I = c[0].split("-")?.map((F) => parseInt(F)), y = c[1] ? c[1].split("-")?.map((F) => parseInt(F)) : [];
@@ -4906,13 +4903,13 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
4906
4903
  ], 2)) : Y("", !0);
4907
4904
  };
4908
4905
  }
4909
- }), hl = { class: "grid grid-cols-3 gap-2 mb-2 py-2" }, Ml = { class: "flex flex-col items-start gap-1.5" }, Il = { class: "flex flex-col items-start gap-1.5" }, Pl = { class: "grid gap-4" }, Al = { class: "grid grid-cols-4 items-center gap-4" }, kl = { class: "grid grid-cols-4 items-center gap-4" }, Tl = { class: "grid grid-cols-4 items-center gap-4" }, El = { class: "flex justify-end gap-2" }, Ll = /* @__PURE__ */ ne({
4906
+ }), hl = { class: "grid grid-cols-3 gap-2 mb-2 py-2" }, Ml = { class: "flex flex-col items-start gap-1.5" }, Il = { class: "flex flex-col items-start gap-1.5" }, Pl = { class: "grid gap-4" }, kl = { class: "grid grid-cols-4 items-center gap-4" }, Al = { class: "grid grid-cols-4 items-center gap-4" }, Tl = { class: "grid grid-cols-4 items-center gap-4" }, El = { class: "flex justify-end gap-2" }, Ll = /* @__PURE__ */ ne({
4910
4907
  __name: "FilterDialog",
4911
4908
  emits: ["filterAdded", "filterEdited", "filterRemoved"],
4912
4909
  setup(e, { expose: o, emit: t }) {
4913
4910
  const n = t;
4914
4911
  j("columns");
4915
- const l = A(!1), s = A("add"), a = A(null), u = A(!1), d = ye({
4912
+ const l = k(!1), s = k("add"), a = k(null), u = k(!1), d = ye({
4916
4913
  label: "",
4917
4914
  property: "",
4918
4915
  options: []
@@ -5029,7 +5026,7 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
5029
5026
  r(W, { class: "w-80" }, {
5030
5027
  default: i(() => [
5031
5028
  $("div", Pl, [
5032
- $("div", Al, [
5029
+ $("div", kl, [
5033
5030
  r(V, {
5034
5031
  for: "value",
5035
5032
  class: "text-right"
@@ -5046,7 +5043,7 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
5046
5043
  "onUpdate:modelValue": c[2] || (c[2] = (J) => f.value = J)
5047
5044
  }, null, 8, ["modelValue"])
5048
5045
  ]),
5049
- $("div", kl, [
5046
+ $("div", Al, [
5050
5047
  r(V, {
5051
5048
  for: "label",
5052
5049
  class: "text-right"
@@ -5168,7 +5165,7 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
5168
5165
  }), zl = { class: "flex flex-wrap gap-2 mb-4" }, Hl = { class: "truncate w-full text-left font-medium" }, Gl = ["onClick"], Ol = /* @__PURE__ */ ne({
5169
5166
  __name: "Filters",
5170
5167
  setup(e) {
5171
- const o = j("table"), t = j("data"), n = j("filters", A([])), { getModuleData: l, setModuleData: s } = we(), { isAdmin: a } = me(), u = A(), d = A(!1), f = () => {
5168
+ const o = j("table"), t = j("data"), n = j("filters", k([])), { getModuleData: l, setModuleData: s } = we(), { isAdmin: a } = me(), u = k(), d = k(!1), f = () => {
5172
5169
  d.value || !o.value || !n.value?.length || !t.value?.length || !n.value.every((w) => o.value.getColumn(w.property)) || (d.value = !0, n.value.forEach((w) => {
5173
5170
  const g = w.options?.filter((_) => _.checked).map((_) => _.value);
5174
5171
  o.value.getColumn(w.property)?.setFilterValue(g?.length ? g : void 0);
@@ -5281,7 +5278,7 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
5281
5278
  __name: "ActionDialog",
5282
5279
  emits: ["actionAdded", "actionEdited", "actionRemoved"],
5283
5280
  setup(e, { expose: o, emit: t }) {
5284
- const n = t, l = A(!1), s = A("add"), a = A(null), u = ye({
5281
+ const n = t, l = k(!1), s = k("add"), a = k(null), u = ye({
5285
5282
  label: "",
5286
5283
  icon: "",
5287
5284
  visible: "true",
@@ -5407,7 +5404,7 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
5407
5404
  }), Yl = { class: "grid gap-4 py-4" }, Kl = /* @__PURE__ */ ne({
5408
5405
  __name: "Actions",
5409
5406
  setup(e) {
5410
- const { setModuleData: o } = we(), { isAdmin: t } = me(), n = A(), l = j("itemActions", A([])), s = (d) => {
5407
+ const { setModuleData: o } = we(), { isAdmin: t } = me(), n = k(), l = j("itemActions", k([])), s = (d) => {
5411
5408
  let f = crypto.randomUUID();
5412
5409
  (!l.value || l?.value?.length === 0) && (l.value = []), l.value.push({ ...d, id: f }), o("itemActions", l.value);
5413
5410
  }, a = (d) => {
@@ -5495,7 +5492,7 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
5495
5492
  }), Xl = { class: "grid grid-cols-2 gap-2 mb-2 py-2" }, Jl = { class: "flex flex-col items-start gap-1.5" }, Ql = { class: "flex flex-col items-start gap-1.5" }, Wl = /* @__PURE__ */ ne({
5496
5493
  __name: "CtaActionDialog",
5497
5494
  setup(e, { expose: o }) {
5498
- const { setModuleData: t } = we(), n = j("ctaButtonSettings", A({})), l = A(!1), s = A("add"), a = A(null), u = ye({
5495
+ const { setModuleData: t } = we(), n = j("ctaButtonSettings", k({})), l = k(!1), s = k("add"), a = k(null), u = ye({
5499
5496
  label: "",
5500
5497
  icon: "",
5501
5498
  flow: {}
@@ -5630,7 +5627,7 @@ const Cl = ["disabled"], wl = { class: "flex flex-col items-start gap-4 py-4" },
5630
5627
  setup(e) {
5631
5628
  const o = e, t = Tt(), { isAdmin: n } = me(), { getModuleData: l } = we(), { runFlow: s } = St();
5632
5629
  Et(() => []);
5633
- const a = A(), u = A(), d = A([]), f = A([]), C = A(), x = A(!1), v = A(""), p = A(), w = A([]), g = A([]), _ = A(!1), c = A(null), I = Ie(() => o.config?.getItems?.integration), y = async () => {
5630
+ const a = k(), u = k(), d = k([]), f = k([]), C = k(), x = k(!1), v = k(""), p = k(), w = k([]), g = k([]), _ = k(!1), c = k(null), I = Ie(() => o.config?.getItems?.integration), y = async () => {
5634
5631
  const W = await l("dateRangeFilter");
5635
5632
  let q;
5636
5633
  W && (q = {