@bagelink/vue 1.10.21 → 1.10.23

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
@@ -2,7 +2,7 @@ var $1 = Object.defineProperty;
2
2
  var S1 = (e, t, n) => t in e ? $1(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var pt = (e, t, n) => S1(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as Xs from "vue";
5
- import { defineComponent as Ee, reactive as Zt, provide as Oa, openBlock as $, createElementBlock as L, renderSlot as Ae, ref as R, computed as U, inject as Pr, watch as Fe, normalizeClass as ue, createElementVNode as M, unref as y, createVNode as W, createCommentVNode as z, toDisplayString as le, Transition as ja, withCtx as _e, Fragment as Se, renderList as Ie, createBlock as re, normalizeStyle as ze, createTextVNode as Ze, onMounted as dt, onUnmounted as gn, useSlots as lr, resolveDirective as mn, withDirectives as it, resolveDynamicComponent as Kt, mergeProps as xt, withKeys as Xt, withModifiers as gt, toValue as ut, getCurrentScope as C1, onScopeDispose as E1, nextTick as kt, isRef as mo, getCurrentInstance as Nl, shallowRef as Qr, isVNode as ef, h as At, useCssVars as qc, useModel as on, vModelCheckbox as is, mergeModels as ln, onBeforeUnmount as ga, Teleport as k1, TransitionGroup as ss, normalizeProps as sl, guardReactiveProps as ul, createSlots as Gc, vModelText as va, Comment as T1, Text as gm, resolveComponent as Sn, vModelRadio as A1, vModelDynamic as x1, useAttrs as D1, watchEffect as vm, onUpdated as Yc, isMemoSame as L1, onBeforeUpdate as M1, effectScope as P1, createApp as Ol, pushScopeId as I1, popScopeId as N1, withScopeId as O1, toRaw as R1, toHandlers as F1, markRaw as _m, shallowReactive as V1 } from "vue";
5
+ import { defineComponent as Ee, reactive as Zt, provide as Oa, openBlock as $, createElementBlock as L, renderSlot as Ae, ref as R, computed as U, inject as Pr, watch as Fe, normalizeClass as ue, createElementVNode as M, unref as y, createVNode as q, createCommentVNode as z, toDisplayString as le, Transition as ja, withCtx as _e, Fragment as Se, renderList as Ie, createBlock as re, normalizeStyle as ze, createTextVNode as Ze, onMounted as dt, onUnmounted as gn, useSlots as lr, resolveDirective as mn, withDirectives as it, resolveDynamicComponent as Kt, mergeProps as xt, withKeys as Xt, withModifiers as gt, toValue as ut, getCurrentScope as C1, onScopeDispose as E1, nextTick as kt, isRef as mo, getCurrentInstance as Nl, shallowRef as Qr, isVNode as ef, h as At, useCssVars as qc, useModel as on, vModelCheckbox as is, mergeModels as ln, onBeforeUnmount as ga, Teleport as k1, TransitionGroup as ss, normalizeProps as sl, guardReactiveProps as ul, createSlots as Gc, vModelText as va, Comment as T1, Text as gm, resolveComponent as Sn, vModelRadio as A1, vModelDynamic as x1, useAttrs as D1, watchEffect as vm, onUpdated as Yc, isMemoSame as L1, onBeforeUpdate as M1, effectScope as P1, createApp as Ol, pushScopeId as I1, popScopeId as N1, withScopeId as O1, toRaw as R1, toHandlers as F1, markRaw as _m, shallowReactive as V1 } from "vue";
6
6
  import { RouterLink as B1, useRoute as H1 } from "vue-router";
7
7
  const hF = /* @__PURE__ */ Ee({
8
8
  __name: "Accordion",
@@ -56,7 +56,7 @@ const hF = /* @__PURE__ */ Ee({
56
56
  key: 0,
57
57
  class: ue(["accordion-icon", [d.iconClass, { open: o.value && d.iconType === "expand_more" }]])
58
58
  }, [
59
- W(y(We), { icon: s.value }, null, 8, ["icon"])
59
+ q(y(We), { icon: s.value }, null, 8, ["icon"])
60
60
  ], 2)) : z("", !0),
61
61
  Ae(d.$slots, "head", {}, () => [
62
62
  M("span", z1, le(d.label), 1)
@@ -65,10 +65,10 @@ const hF = /* @__PURE__ */ Ee({
65
65
  key: 1,
66
66
  class: ue(["accordion-icon", [d.iconClass, { open: o.value && d.iconType === "expand_more" }]])
67
67
  }, [
68
- W(y(We), { icon: s.value }, null, 8, ["icon"])
68
+ q(y(We), { icon: s.value }, null, 8, ["icon"])
69
69
  ], 2)) : z("", !0)
70
70
  ], 8, U1),
71
- W(ja, { name: "expand" }, {
71
+ q(ja, { name: "expand" }, {
72
72
  default: _e(() => [
73
73
  o.value ? ($(), L("div", {
74
74
  key: 0,
@@ -102,14 +102,14 @@ const hF = /* @__PURE__ */ Ee({
102
102
  o.value = await d.json() ?? [], (h = l.value) == null || h.show();
103
103
  }
104
104
  return (u, c) => ($(), L("div", q1, [
105
- W(y(Xn), {
105
+ q(y(Xn), {
106
106
  ref_key: "suggestion",
107
107
  ref: l,
108
108
  noAutoFocus: !0,
109
109
  placement: "bottom-start"
110
110
  }, {
111
111
  trigger: _e(() => [
112
- W(y(Ct), {
112
+ q(y(Ct), {
113
113
  modelValue: a.value,
114
114
  "onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d),
115
115
  placeholder: y(r)("addressSearch.placeholder"),
@@ -117,7 +117,7 @@ const hF = /* @__PURE__ */ Ee({
117
117
  }, null, 8, ["modelValue", "placeholder"])
118
118
  ]),
119
119
  default: _e(() => [
120
- W(y(X9), { class: "-mt-2 hm-300px" }, {
120
+ q(y(X9), { class: "-mt-2 hm-300px" }, {
121
121
  default: _e(() => [
122
122
  ($(!0), L(Se, null, Ie(o.value, (d, h) => ($(), re(y(qr), {
123
123
  key: h,
@@ -499,7 +499,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
499
499
  Ae(r.$slots, "default", {}, () => [
500
500
  M("p", K1, le(r.message), 1)
501
501
  ], !0),
502
- W(ce, {
502
+ q(ce, {
503
503
  flat: "",
504
504
  thin: "",
505
505
  class: "alert_close",
@@ -608,7 +608,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
608
608
  }, [
609
609
  M("div", Z1, [
610
610
  M("div", Q1, [
611
- W(y(We), {
611
+ q(y(We), {
612
612
  name: f.icon,
613
613
  size: "1.2",
614
614
  color: f.color,
@@ -617,7 +617,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
617
617
  M("p", e_, le(f.title), 1)
618
618
  ]),
619
619
  f.percentageChange !== 0 ? ($(), L("div", t_, [
620
- W(y(We), {
620
+ q(y(We), {
621
621
  name: f.percentageChange > 0 ? "trending_up" : "trending_down",
622
622
  size: "1",
623
623
  class: ue(f.percentageChange > 0 ? "color-success" : "color-danger")
@@ -696,7 +696,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
696
696
  default: _e(() => [
697
697
  M("div", r_, [
698
698
  M("div", a_, [
699
- W(y(We), {
699
+ q(y(We), {
700
700
  name: o.icon,
701
701
  size: "1",
702
702
  color: o.color,
@@ -713,7 +713,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
713
713
  class: "kpi-trend flex gap-025 txt12 bold ms-auto",
714
714
  style: ze({ color: a.value })
715
715
  }, [
716
- W(y(We), {
716
+ q(y(We), {
717
717
  name: n.value ? "trending_up" : "trending_down"
718
718
  }, null, 8, ["name"]),
719
719
  M("span", null, le(Math.abs(o.percentageChange).toFixed(1)) + "%", 1)
@@ -840,7 +840,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
840
840
  }, [
841
841
  M("div", f_, [
842
842
  M("div", p_, [
843
- W(y(We), {
843
+ q(y(We), {
844
844
  name: k.icon,
845
845
  size: "1.2",
846
846
  color: k.color,
@@ -849,7 +849,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
849
849
  M("p", h_, le(k.title), 1)
850
850
  ]),
851
851
  k.percentageChange !== 0 ? ($(), L("div", m_, [
852
- W(y(We), {
852
+ q(y(We), {
853
853
  name: k.percentageChange > 0 ? "trending_up" : "trending_down",
854
854
  size: "1",
855
855
  class: ue(k.percentageChange > 0 ? "color-success" : "color-danger")
@@ -1097,7 +1097,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
1097
1097
  visible: !1
1098
1098
  };
1099
1099
  F < 3 && console.log(`Segment ${F} visible! - delay: ${H}ms, elapsed: ${B.toFixed(0)}ms`);
1100
- const ie = I * Math.PI / 180, X = N * Math.PI / 180, G = n.size / 2 - 10, K = n.donut ? G * n.thickness : 0, oe = N - I, me = oe > 180 ? 1 : 0, Ce = n.donut ? w(ie, X, G, K, me) : S(ie, X, G, me);
1100
+ const ie = I * Math.PI / 180, X = N * Math.PI / 180, W = n.size / 2 - 10, K = n.donut ? W * n.thickness : 0, oe = N - I, me = oe > 180 ? 1 : 0, Ce = n.donut ? w(ie, X, W, K, me) : S(ie, X, W, me);
1101
1101
  return {
1102
1102
  ...O,
1103
1103
  percentage: C,
@@ -1142,7 +1142,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
1142
1142
  }, [
1143
1143
  M("div", x_, [
1144
1144
  M("div", D_, [
1145
- W(y(We), {
1145
+ q(y(We), {
1146
1146
  name: x.icon,
1147
1147
  size: "1.2",
1148
1148
  color: x.color,
@@ -1151,7 +1151,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
1151
1151
  M("p", L_, le(x.title), 1)
1152
1152
  ]),
1153
1153
  x.percentageChange !== 0 ? ($(), L("div", M_, [
1154
- W(y(We), {
1154
+ q(y(We), {
1155
1155
  class: ue(["line-height-1", x.percentageChange > 0 ? "color-success" : "color-danger"]),
1156
1156
  name: x.percentageChange > 0 ? "trending_up" : "trending_down",
1157
1157
  size: "1"
@@ -1361,7 +1361,7 @@ ${t.event.url}`), `https://calendar.google.com/calendar/render?${_.toString()}`;
1361
1361
  height: y(yr)(u.height)
1362
1362
  })
1363
1363
  }, [
1364
- W(y(We), { name: "broken_image" })
1364
+ q(y(We), { name: "broken_image" })
1365
1365
  ], 4)) : ($(), re(y(vc), {
1366
1366
  key: 3,
1367
1367
  class: "img-web-kit",
@@ -2547,7 +2547,7 @@ const Ab = ["src"], xb = ["autoplay", "muted", "loop", "controls", "playsinline"
2547
2547
  );
2548
2548
  if (H === -1)
2549
2549
  return;
2550
- const B = N.getHours() * 60 + N.getMinutes(), pe = V.getHours() * 60 + V.getMinutes(), ie = B / Sa * oa, X = Math.max((pe - B) / Sa * oa, 30), G = {
2550
+ const B = N.getHours() * 60 + N.getMinutes(), pe = V.getHours() * 60 + V.getMinutes(), ie = B / Sa * oa, X = Math.max((pe - B) / Sa * oa, 30), W = {
2551
2551
  ...I,
2552
2552
  top: ie,
2553
2553
  height: X,
@@ -2556,21 +2556,21 @@ const Ab = ["src"], xb = ["autoplay", "muted", "loop", "controls", "playsinline"
2556
2556
  overlappingEvents: 0,
2557
2557
  position: 0
2558
2558
  };
2559
- k[H] || (k[H] = []), k[H].push(G);
2559
+ k[H] || (k[H] = []), k[H].push(W);
2560
2560
  }), Object.entries(k).forEach(([I, N]) => {
2561
2561
  N.sort((B, pe) => new Date(B.start_time).getTime() - new Date(pe.start_time).getTime());
2562
2562
  const V = [];
2563
2563
  let H = [];
2564
2564
  N.forEach((B) => {
2565
2565
  H.length === 0 ? H = [B] : H.some((ie) => {
2566
- const X = new Date(B.start_time).getTime(), G = new Date(B.end_time).getTime(), K = new Date(ie.start_time).getTime(), oe = new Date(ie.end_time).getTime();
2567
- return !(G <= K || X >= oe);
2566
+ const X = new Date(B.start_time).getTime(), W = new Date(B.end_time).getTime(), K = new Date(ie.start_time).getTime(), oe = new Date(ie.end_time).getTime();
2567
+ return !(W <= K || X >= oe);
2568
2568
  }) ? H.push(B) : (H.length > 0 && V.push([...H]), H = [B]);
2569
2569
  }), H.length > 0 && V.push(H), V.forEach((B) => {
2570
2570
  if (B.length > 1) {
2571
2571
  const X = (100 - 2 * (B.length - 1)) / B.length;
2572
- B.forEach((G, K) => {
2573
- G.overlappingEvents = B.length, G.position = K, G.width = X, G.left = K * (X + 2);
2572
+ B.forEach((W, K) => {
2573
+ W.overlappingEvents = B.length, W.position = K, W.width = X, W.left = K * (X + 2);
2574
2574
  });
2575
2575
  }
2576
2576
  C.push(...B);
@@ -2865,14 +2865,14 @@ const Ab = ["src"], xb = ["autoplay", "muted", "loop", "controls", "playsinline"
2865
2865
  Ze(" " + le(y(rn)(o.value, "YYYY")), 1)
2866
2866
  ]),
2867
2867
  M("div", Sy, [
2868
- W(y(Xn), {
2868
+ q(y(Xn), {
2869
2869
  thin: "",
2870
2870
  value: l.value,
2871
2871
  iconEnd: "keyboard_arrow_down",
2872
2872
  color: "gray"
2873
2873
  }, {
2874
2874
  default: _e(() => [
2875
- ($(), L(Se, null, Ie(c, (T, P) => W(y(qr), {
2875
+ ($(), L(Se, null, Ie(c, (T, P) => q(y(qr), {
2876
2876
  key: P,
2877
2877
  thin: "",
2878
2878
  title: P,
@@ -2881,20 +2881,20 @@ const Ab = ["src"], xb = ["autoplay", "muted", "loop", "controls", "playsinline"
2881
2881
  ]),
2882
2882
  _: 1
2883
2883
  }, 8, ["value"]),
2884
- W(y(ce), {
2884
+ q(y(ce), {
2885
2885
  icon: "calendar",
2886
2886
  thin: "",
2887
2887
  color: "gray",
2888
2888
  value: "Today",
2889
2889
  onClick: E[0] || (E[0] = (T) => p(/* @__PURE__ */ new Date()))
2890
2890
  }),
2891
- W(y(ce), {
2891
+ q(y(ce), {
2892
2892
  icon: "chevron_left",
2893
2893
  color: "gray",
2894
2894
  thin: "",
2895
2895
  onClick: E[1] || (E[1] = (T) => p(y(Er)(o.value, { [l.value]: -1 })))
2896
2896
  }),
2897
- W(y(ce), {
2897
+ q(y(ce), {
2898
2898
  icon: "chevron_right",
2899
2899
  color: "gray",
2900
2900
  thin: "",
@@ -2921,7 +2921,7 @@ const Ab = ["src"], xb = ["autoplay", "muted", "loop", "controls", "playsinline"
2921
2921
  ]),
2922
2922
  _: 3
2923
2923
  }, 40, ["events", "start-date", "week-start"])),
2924
- W(Pb, {
2924
+ q(Pb, {
2925
2925
  event: i.value,
2926
2926
  position: u.value,
2927
2927
  show: s.value,
@@ -3103,17 +3103,17 @@ const Ab = ["src"], xb = ["autoplay", "muted", "loop", "controls", "playsinline"
3103
3103
  function X() {
3104
3104
  E && clearInterval(E);
3105
3105
  }
3106
- function G(he) {
3106
+ function W(he) {
3107
3107
  p.value && (he.preventDefault(), he.stopPropagation());
3108
3108
  }
3109
3109
  async function K() {
3110
3110
  if (await kt(), !s.value || !i.value)
3111
3111
  return;
3112
3112
  Array.from(i.value.querySelectorAll("img, a")).forEach((Ne) => {
3113
- Ne.setAttribute("draggable", "false"), Ne.removeEventListener("click", G, !0), Ne.addEventListener("click", G, !0);
3113
+ Ne.setAttribute("draggable", "false"), Ne.removeEventListener("click", W, !0), Ne.addEventListener("click", W, !0);
3114
3114
  }), Array.from(i.value.children).forEach((Ne) => {
3115
3115
  const se = Ne;
3116
- se.setAttribute("draggable", "false"), se.removeEventListener("click", G, !0), se.addEventListener("click", G, !0);
3116
+ se.setAttribute("draggable", "false"), se.removeEventListener("click", W, !0), se.addEventListener("click", W, !0);
3117
3117
  });
3118
3118
  }
3119
3119
  function oe(he) {
@@ -3230,7 +3230,7 @@ const Ab = ["src"], xb = ["autoplay", "muted", "loop", "controls", "playsinline"
3230
3230
  window.addEventListener("resize", ie), H(), ie(), B(), K(), i.value && (d.value = i.value.children.length), r.autoplay && (E = setInterval(I, r.autoPlaySpeed));
3231
3231
  }), gn(() => {
3232
3232
  s.value && i.value && Array.from(i.value.children).forEach((he) => {
3233
- he.removeEventListener("click", G);
3233
+ he.removeEventListener("click", W);
3234
3234
  }), window.removeEventListener("resize", ie), document.removeEventListener("mousemove", me), document.removeEventListener("mouseup", Ce), X(), w && clearTimeout(w);
3235
3235
  }), Fe(() => r.index, (he) => {
3236
3236
  k(he);
@@ -3340,7 +3340,7 @@ ${d}}` : p.map(([f, m]) => {
3340
3340
  );
3341
3341
  }
3342
3342
  function s(u, c) {
3343
- var ie, X, G;
3343
+ var ie, X, W;
3344
3344
  const d = l(u);
3345
3345
  if (!d)
3346
3346
  return;
@@ -3432,7 +3432,7 @@ ${d}}` : p.map(([f, m]) => {
3432
3432
  m && m.length > 0 && (B.default = () => m.map((K) => i(K, c)).filter(Boolean)), N && k !== void 0 && (B.default = () => String(k ?? "")), w && Object.entries(w).forEach(([K, oe]) => {
3433
3433
  B[K] = () => Array.isArray(oe) ? oe.map((me) => typeof me == "function" ? me({ row: h, field: u }) : ef(me) ? me : s(me, c)) : [];
3434
3434
  });
3435
- const pe = u.id ? (G = c == null ? void 0 : c[u.id]) == null ? void 0 : G.call(c, { row: h, field: u }) : void 0;
3435
+ const pe = u.id ? (W = c == null ? void 0 : c[u.id]) == null ? void 0 : W.call(c, { row: h, field: u }) : void 0;
3436
3436
  return t === "preview" ? !a && (k == null || typeof k == "string" && k.length === 0) ? void 0 : At("div", { class: "preview-field" }, [
3437
3437
  At("div", { class: "field-label" }, `${u.label || gs(u.id || "")}:`),
3438
3438
  At("div", { class: "field-value" }, [
@@ -3777,7 +3777,7 @@ const By = { class: "row first-row" }, Hy = { key: 0 }, Uy = ["onClick"], zy = {
3777
3777
  M("div", {
3778
3778
  class: ue(["list-arrows", { sorted: y(c) === (N == null ? void 0 : N.id) }])
3779
3779
  }, [
3780
- W(y(We), {
3780
+ q(y(We), {
3781
3781
  class: ue({ desc: y(d) === "DESC" }),
3782
3782
  icon: "keyboard_arrow_up"
3783
3783
  }, null, 8, ["class"])
@@ -3856,13 +3856,13 @@ function Wu(e = {}) {
3856
3856
  };
3857
3857
  let s = 0, u = 0, c = 0, d = 0, h = 0, p, f = null, m = -1, _ = 0;
3858
3858
  const g = 150, v = /* @__PURE__ */ new Map();
3859
- function b(G) {
3859
+ function b(W) {
3860
3860
  if (!l)
3861
3861
  return null;
3862
- const K = G.cloneNode(!0), oe = G.getBoundingClientRect();
3862
+ const K = W.cloneNode(!0), oe = W.getBoundingClientRect();
3863
3863
  return K.style.position = "fixed", K.style.margin = "0", K.style.top = `${oe.top}px`, K.style.left = `${oe.left}px`, K.style.width = `${oe.width}px`, K.style.height = `${oe.height}px`, K.style.transform = "translate3d(0, 0, 0)", K.style.pointerEvents = "none", K.style.zIndex = "9999", K.style.cursor = "grabbing", K.style.willChange = "transform", K.classList.add(i.ghostClass), document.body.appendChild(K), K;
3864
3864
  }
3865
- function S(G) {
3865
+ function S(W) {
3866
3866
  if (!l)
3867
3867
  return null;
3868
3868
  const K = document.createElement("div");
@@ -3870,26 +3870,26 @@ function Wu(e = {}) {
3870
3870
  const oe = document.createElement("div");
3871
3871
  return oe.style.position = "absolute", oe.style.left = "-4px", oe.style.top = "-3px", oe.style.width = "8px", oe.style.height = "8px", oe.style.borderRadius = "50%", oe.style.background = "var(--primary-color, #0066ff)", K.appendChild(oe), document.body.appendChild(K), K;
3872
3872
  }
3873
- function w(G, K) {
3873
+ function w(W, K) {
3874
3874
  if (!a.value)
3875
3875
  return;
3876
- const oe = G.getBoundingClientRect();
3876
+ const oe = W.getBoundingClientRect();
3877
3877
  a.value.style.display = "block", a.value.style.width = `${oe.width}px`, a.value.style.left = `${oe.left}px`, K ? a.value.style.top = `${oe.bottom}px` : a.value.style.top = `${oe.top}px`;
3878
3878
  }
3879
- function E(G) {
3880
- let K = G;
3879
+ function E(W) {
3880
+ let K = W;
3881
3881
  for (; K && (!("__drag_group" in K) || K.dataset.draggable === "false"); )
3882
3882
  K = K.parentElement;
3883
3883
  return K;
3884
3884
  }
3885
- function T(G) {
3886
- return G.style.opacity = "0.4", G.style.transform = "scale(0.95)", G.offsetHeight;
3885
+ function T(W) {
3886
+ return W.style.opacity = "0.4", W.style.transform = "scale(0.95)", W.offsetHeight;
3887
3887
  }
3888
- function P(G) {
3889
- return G.style.opacity = "0.5", 2;
3888
+ function P(W) {
3889
+ return W.style.opacity = "0.5", 2;
3890
3890
  }
3891
- function x(G) {
3892
- v.clear(), G.forEach((K, oe) => {
3891
+ function x(W) {
3892
+ v.clear(), W.forEach((K, oe) => {
3893
3893
  const me = K.getBoundingClientRect();
3894
3894
  v.set(oe, {
3895
3895
  top: me.top,
@@ -3897,12 +3897,12 @@ function Wu(e = {}) {
3897
3897
  });
3898
3898
  });
3899
3899
  }
3900
- function O(G, K, oe, me) {
3900
+ function O(W, K, oe, me) {
3901
3901
  const Ce = Date.now();
3902
3902
  if (Ce - _ < g)
3903
3903
  return m !== -1 ? m : oe;
3904
3904
  v.size === 0 && x(K);
3905
- const ke = G.clientY, He = K.indexOf(me), Ge = v.get(He);
3905
+ const ke = W.clientY, He = K.indexOf(me), Ge = v.get(He);
3906
3906
  if (!Ge)
3907
3907
  return oe;
3908
3908
  const Be = Ge.bottom - Ge.top, Re = ke - Ge.top, Ye = Be * 0.3, he = Be * 0.7;
@@ -3912,41 +3912,41 @@ function Wu(e = {}) {
3912
3912
  function F() {
3913
3913
  if (l) {
3914
3914
  if (document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", H), document.removeEventListener("keydown", C), document.removeEventListener("touchmove", pe), document.removeEventListener("touchend", ie), document.removeEventListener("touchcancel", ie), window.removeEventListener("blur", F), r.value && (r.value.style.opacity = "0", r.value.style.transform += " scale(0.8)", setTimeout(() => {
3915
- var G, K;
3916
- (K = (G = r.value) == null ? void 0 : G.parentNode) == null || K.removeChild(r.value), r.value = null;
3915
+ var W, K;
3916
+ (K = (W = r.value) == null ? void 0 : W.parentNode) == null || K.removeChild(r.value), r.value = null;
3917
3917
  }, 150)), a.value && (a.value.style.opacity = "0", setTimeout(() => {
3918
- var G, K;
3919
- (K = (G = a.value) == null ? void 0 : G.parentNode) == null || K.removeChild(a.value), a.value = null;
3918
+ var W, K;
3919
+ (K = (W = a.value) == null ? void 0 : W.parentNode) == null || K.removeChild(a.value), a.value = null;
3920
3920
  }, 150)), n.value) {
3921
- const G = n.value.__drag_list;
3922
- G == null || G.forEach((K) => {
3921
+ const W = n.value.__drag_list;
3922
+ W == null || W.forEach((K) => {
3923
3923
  K.style.transition = "", K.style.transform = "", K.style.opacity = "";
3924
3924
  }), n.value.classList.remove(i.dragClass), n.value = null;
3925
3925
  }
3926
3926
  t.value = !1, o.value = null, l && (document.body.style.userSelect = "", document.body.style.webkitUserSelect = "", document.body.style.cursor = ""), f && (cancelAnimationFrame(f), f = null), m = -1, _ = 0, v.clear();
3927
3927
  }
3928
3928
  }
3929
- function C(G) {
3930
- G.key === "Escape" && t.value && F();
3929
+ function C(W) {
3930
+ W.key === "Escape" && t.value && F();
3931
3931
  }
3932
- function k(G) {
3932
+ function k(W) {
3933
3933
  var me;
3934
- if (!l || i.disabled || G.button !== 0 || G.ctrlKey || G.metaKey || G.shiftKey || G.altKey)
3934
+ if (!l || i.disabled || W.button !== 0 || W.ctrlKey || W.metaKey || W.shiftKey || W.altKey)
3935
3935
  return;
3936
- const K = E(G.target);
3936
+ const K = E(W.target);
3937
3937
  if (!K || K.dataset.draggable === "false")
3938
3938
  return;
3939
3939
  if (i.handle) {
3940
- const Ce = G.target.closest(i.handle);
3940
+ const Ce = W.target.closest(i.handle);
3941
3941
  if (!Ce || !K.contains(Ce))
3942
3942
  return;
3943
3943
  }
3944
- G.preventDefault(), t.value = !0, n.value = K, s = G.clientX, u = G.clientY;
3944
+ W.preventDefault(), t.value = !0, n.value = K, s = W.clientX, u = W.clientY;
3945
3945
  const oe = K.getBoundingClientRect();
3946
- c = oe.left, d = oe.top, r.value = b(K), r.value && (r.value.style.left = `${c}px`, r.value.style.top = `${d}px`), i.mode === "line" && (a.value = S()), K.classList.add(i.dragClass), h = i.mode === "ghost" ? T(K) : P(K), (me = i.onStart) == null || me.call(i, G), l && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", F), document.addEventListener("mousemove", V), document.addEventListener("mouseup", H), document.addEventListener("keydown", C));
3946
+ c = oe.left, d = oe.top, r.value = b(K), r.value && (r.value.style.left = `${c}px`, r.value.style.top = `${d}px`), i.mode === "line" && (a.value = S()), K.classList.add(i.dragClass), h = i.mode === "ghost" ? T(K) : P(K), (me = i.onStart) == null || me.call(i, W), l && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", F), document.addEventListener("mousemove", V), document.addEventListener("mouseup", H), document.addEventListener("keydown", C));
3947
3947
  }
3948
- function I(G) {
3949
- let K = G.parentElement;
3948
+ function I(W) {
3949
+ let K = W.parentElement;
3950
3950
  for (; K; ) {
3951
3951
  const { overflow: oe, overflowY: me } = window.getComputedStyle(K);
3952
3952
  if (/auto|scroll/.test(oe + me))
@@ -3955,31 +3955,31 @@ function Wu(e = {}) {
3955
3955
  }
3956
3956
  return document.scrollingElement || document.documentElement || document.body;
3957
3957
  }
3958
- function N(G) {
3958
+ function N(W) {
3959
3959
  n.value && (f && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
3960
3960
  const K = I(n.value), oe = K.getBoundingClientRect(), me = 50, Ce = Math.min(20, oe.height * 0.1), { scrollTop: ke } = K, He = K.scrollHeight - K.clientHeight;
3961
- if (G.clientY - oe.top < me) {
3961
+ if (W.clientY - oe.top < me) {
3962
3962
  const Ge = Math.max(0, ke - Ce);
3963
3963
  K.scrollTop = Ge;
3964
- } else if (oe.bottom - G.clientY < me) {
3964
+ } else if (oe.bottom - W.clientY < me) {
3965
3965
  const Ge = Math.min(He, ke + Ce);
3966
3966
  K.scrollTop = Ge;
3967
3967
  }
3968
3968
  }));
3969
3969
  }
3970
- function V(G) {
3970
+ function V(W) {
3971
3971
  if (!t.value || !n.value)
3972
3972
  return;
3973
3973
  if (r.value) {
3974
- const Ge = G.clientX - s, Be = G.clientY - u;
3974
+ const Ge = W.clientX - s, Be = W.clientY - u;
3975
3975
  r.value.style.transform = `translate3d(${Ge}px, ${Be}px, 0)`;
3976
3976
  }
3977
- const oe = n.value.__drag_list.filter((Ge) => Ge.dataset.draggable !== "false"), me = oe.indexOf(n.value), Ce = document.elementFromPoint(G.clientX, G.clientY), ke = E(Ce);
3977
+ const oe = n.value.__drag_list.filter((Ge) => Ge.dataset.draggable !== "false"), me = oe.indexOf(n.value), Ce = document.elementFromPoint(W.clientX, W.clientY), ke = E(Ce);
3978
3978
  if (!ke || ke.__drag_group !== n.value.__drag_group) {
3979
3979
  a.value && (a.value.style.display = "none");
3980
3980
  return;
3981
3981
  }
3982
- const He = O(G, oe, me, ke);
3982
+ const He = O(W, oe, me, ke);
3983
3983
  if (o.value !== ke || o.value.__intended_index !== He) {
3984
3984
  if (o.value = ke, o.value.__intended_index = He, a.value && i.mode === "line") {
3985
3985
  const Be = He > me;
@@ -3998,9 +3998,9 @@ function Wu(e = {}) {
3998
3998
  }
3999
3999
  });
4000
4000
  }
4001
- N(G);
4001
+ N(W);
4002
4002
  }
4003
- function H(G) {
4003
+ function H(W) {
4004
4004
  var ke;
4005
4005
  if (!t.value || !n.value || !o.value) {
4006
4006
  F();
@@ -4016,31 +4016,31 @@ function Wu(e = {}) {
4016
4016
  K.forEach((Ge) => {
4017
4017
  Ge.style.transition = "none", Ge.style.transform = "";
4018
4018
  }), document.body.offsetHeight;
4019
- const He = new MouseEvent("mouseup", G);
4019
+ const He = new MouseEvent("mouseup", W);
4020
4020
  He.oldIndex = me, He.newIndex = Ce, He.item = n.value.__drag_data, (ke = i.onEnd) == null || ke.call(i, He);
4021
4021
  }
4022
4022
  F();
4023
4023
  }
4024
- function B(G) {
4024
+ function B(W) {
4025
4025
  var He;
4026
- if (!l || i.disabled || !G.target)
4026
+ if (!l || i.disabled || !W.target)
4027
4027
  return;
4028
- const K = G.touches[0];
4028
+ const K = W.touches[0];
4029
4029
  if (!K)
4030
4030
  return;
4031
- const oe = G.target, me = E(oe);
4031
+ const oe = W.target, me = E(oe);
4032
4032
  if (!me)
4033
4033
  return;
4034
4034
  const { handle: Ce } = i;
4035
4035
  if (Ce && !oe.closest(Ce))
4036
4036
  return;
4037
- G.preventDefault(), t.value = !0, n.value = me, s = K.clientX, u = K.clientY;
4037
+ W.preventDefault(), t.value = !0, n.value = me, s = K.clientX, u = K.clientY;
4038
4038
  const ke = me.getBoundingClientRect();
4039
- c = ke.left, d = ke.top, r.value = b(me), r.value && (r.value.style.left = `${c}px`, r.value.style.top = `${d}px`), i.mode === "line" && (a.value = S()), n.value.classList.add(i.dragClass), h = i.mode === "ghost" ? T(n.value) : P(n.value), (He = i.onStart) == null || He.call(i, G), l && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", F), document.addEventListener("touchmove", pe, { passive: !1 }), document.addEventListener("touchend", ie), document.addEventListener("touchcancel", ie));
4039
+ c = ke.left, d = ke.top, r.value = b(me), r.value && (r.value.style.left = `${c}px`, r.value.style.top = `${d}px`), i.mode === "line" && (a.value = S()), n.value.classList.add(i.dragClass), h = i.mode === "ghost" ? T(n.value) : P(n.value), (He = i.onStart) == null || He.call(i, W), l && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", F), document.addEventListener("touchmove", pe, { passive: !1 }), document.addEventListener("touchend", ie), document.addEventListener("touchcancel", ie));
4040
4040
  }
4041
- function pe(G) {
4042
- G.preventDefault();
4043
- const K = G.touches[0];
4041
+ function pe(W) {
4042
+ W.preventDefault();
4043
+ const K = W.touches[0];
4044
4044
  if (!K)
4045
4045
  return;
4046
4046
  const oe = {
@@ -4050,8 +4050,8 @@ function Wu(e = {}) {
4050
4050
  };
4051
4051
  V(oe), N(oe);
4052
4052
  }
4053
- function ie(G) {
4054
- const K = G.changedTouches[0];
4053
+ function ie(W) {
4054
+ const K = W.changedTouches[0];
4055
4055
  if (!K)
4056
4056
  return;
4057
4057
  const oe = {
@@ -4061,11 +4061,11 @@ function Wu(e = {}) {
4061
4061
  };
4062
4062
  H(oe), document.removeEventListener("touchmove", pe), document.removeEventListener("touchend", ie), document.removeEventListener("touchcancel", ie);
4063
4063
  }
4064
- function X(G) {
4064
+ function X(W) {
4065
4065
  if (!l)
4066
4066
  return;
4067
4067
  p == null || p(), t.value = !1, n.value = null, r.value = null, a.value = null, o.value = null;
4068
- const K = Array.from(G.children);
4068
+ const K = Array.from(W.children);
4069
4069
  K.forEach((me) => {
4070
4070
  delete me.__drag_group, delete me.__drag_index, delete me.__drag_list;
4071
4071
  });
@@ -4188,7 +4188,7 @@ const AF = /* @__PURE__ */ Ee({
4188
4188
  }, [
4189
4189
  Ae(d.$slots, "default", {}, void 0, !0),
4190
4190
  a.value && !d.disabled ? ($(), L("div", Xy, [
4191
- W(y(We), {
4191
+ q(y(We), {
4192
4192
  name: "download",
4193
4193
  color: "white",
4194
4194
  size: "2"
@@ -5241,16 +5241,16 @@ const Ow = {
5241
5241
  emits: /* @__PURE__ */ ln(["show", "hide"], ["update:shown"]),
5242
5242
  setup(e, { expose: t, emit: n }) {
5243
5243
  const r = e, a = n, o = on(e, "shown"), l = R(null), i = R(null), s = R("body"), { isMobile: u, innerWidth: c } = Ds(), d = U(() => r.disablePlacement && u.value), h = U(() => c.value < 910), p = U(
5244
- () => h.value ? r.triggers.map((G) => G === "hover" ? "click" : G) : r.triggers
5244
+ () => h.value ? r.triggers.map((W) => W === "hover" ? "click" : W) : r.triggers
5245
5245
  ), f = U(() => p.value.includes("click")), m = U(() => p.value.includes("hover")), _ = U(() => r.popperTriggers.length > 0 ? r.popperTriggers.includes("hover") : r.triggers.includes("hover") && !h.value), g = U(() => {
5246
5246
  if (r.icon !== void 0 && r.icon !== "") return r.icon;
5247
5247
  if (r.value === void 0 || r.value === "") return "more_vert";
5248
5248
  }), v = U(() => r.delay !== void 0 ? typeof r.delay == "number" ? { show: r.delay, hide: r.delay } : r.delay : r.triggers.includes("hover") && !h.value ? { show: 0, hide: 10 } : { show: 0, hide: 0 }), b = /* @__PURE__ */ new Map();
5249
5249
  async function S() {
5250
5250
  var Ce;
5251
- const G = (Ce = l.value) == null ? void 0 : Ce.firstElementChild;
5252
- if (!i.value || !G || d.value) return;
5253
- const K = r.placement === "auto", { x: oe, y: me } = await Hw(G, i.value, {
5251
+ const W = (Ce = l.value) == null ? void 0 : Ce.firstElementChild;
5252
+ if (!i.value || !W || d.value) return;
5253
+ const K = r.placement === "auto", { x: oe, y: me } = await Hw(W, i.value, {
5254
5254
  placement: K ? void 0 : r.placement,
5255
5255
  strategy: "fixed",
5256
5256
  middleware: [
@@ -5262,18 +5262,18 @@ const Ow = {
5262
5262
  i.value && (i.value.style.left = `${oe}px`, i.value.style.top = `${me}px`);
5263
5263
  }
5264
5264
  function w() {
5265
- var G;
5266
- return !!((G = i.value) != null && G.matches(":popover-open"));
5265
+ var W;
5266
+ return !!((W = i.value) != null && W.matches(":popover-open"));
5267
5267
  }
5268
5268
  async function E() {
5269
- var G;
5270
- r.disabled || w() || (s.value = ((G = l.value) == null ? void 0 : G.closest("dialog[open]")) ?? "body", r.showGroup && b.has(r.showGroup) && b.get(r.showGroup).forEach((K) => K()), await kt(), i.value && (i.value.style.opacity = "0", i.value.showPopover(), await S(), i.value.style.opacity = ""));
5269
+ var W;
5270
+ r.disabled || w() || (s.value = ((W = l.value) == null ? void 0 : W.closest("dialog[open]")) ?? "body", r.showGroup && b.has(r.showGroup) && b.get(r.showGroup).forEach((K) => K()), await kt(), i.value && (i.value.style.opacity = "0", i.value.showPopover(), await S(), i.value.style.opacity = ""));
5271
5271
  }
5272
5272
  function T() {
5273
- var G, K;
5273
+ var W, K;
5274
5274
  if (w()) {
5275
5275
  if (!r.noAutoFocus) {
5276
- const oe = (G = l.value) == null ? void 0 : G.querySelector(
5276
+ const oe = (W = l.value) == null ? void 0 : W.querySelector(
5277
5277
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
5278
5278
  );
5279
5279
  oe == null || oe.focus();
@@ -5285,20 +5285,20 @@ const Ow = {
5285
5285
  function x() {
5286
5286
  T();
5287
5287
  }
5288
- Fe(o, (G) => {
5289
- G && !w() ? E() : !G && w() && T();
5288
+ Fe(o, (W) => {
5289
+ W && !w() ? E() : !W && w() && T();
5290
5290
  });
5291
- function O(G) {
5292
- G.newState === "open" ? (o.value = !0, kt(S), a("show")) : (o.value = !1, a("hide"));
5291
+ function O(W) {
5292
+ W.newState === "open" ? (o.value = !0, kt(S), a("show")) : (o.value = !1, a("hide"));
5293
5293
  }
5294
- function F(G) {
5294
+ function F(W) {
5295
5295
  var oe, me;
5296
5296
  if (!r.autoHide || !w()) return;
5297
- const K = G.target;
5297
+ const K = W.target;
5298
5298
  (oe = i.value) != null && oe.contains(K) || (me = l.value) != null && me.contains(K) || T();
5299
5299
  }
5300
- function C(G) {
5301
- G.key === "Escape" && w() && (G.stopPropagation(), T());
5300
+ function C(W) {
5301
+ W.key === "Escape" && w() && (W.stopPropagation(), T());
5302
5302
  }
5303
5303
  let k, I;
5304
5304
  function N() {
@@ -5325,34 +5325,34 @@ const Ow = {
5325
5325
  return dt(() => {
5326
5326
  document.addEventListener("pointerdown", F, !0), document.addEventListener("keydown", C), document.addEventListener("scroll", X, { capture: !0, passive: !0 }), r.showGroup && (b.has(r.showGroup) || b.set(r.showGroup, /* @__PURE__ */ new Set()), b.get(r.showGroup).add(T));
5327
5327
  }), ga(() => {
5328
- var G, K;
5329
- document.removeEventListener("pointerdown", F, !0), document.removeEventListener("keydown", C), document.removeEventListener("scroll", X, !0), N(), r.showGroup && ((G = b.get(r.showGroup)) == null || G.delete(T)), w() && ((K = i.value) == null || K.hidePopover());
5330
- }), t({ show: P, hide: x, shown: o }), (G, K) => ($(), L("div", Uw, [
5328
+ var W, K;
5329
+ document.removeEventListener("pointerdown", F, !0), document.removeEventListener("keydown", C), document.removeEventListener("scroll", X, !0), N(), r.showGroup && ((W = b.get(r.showGroup)) == null || W.delete(T)), w() && ((K = i.value) == null || K.hidePopover());
5330
+ }), t({ show: P, hide: x, shown: o }), (W, K) => ($(), L("div", Uw, [
5331
5331
  M("div", xt({
5332
5332
  ref_key: "triggerWrapRef",
5333
5333
  ref: l
5334
- }, G.$attrs, {
5334
+ }, W.$attrs, {
5335
5335
  onMouseenter: H,
5336
5336
  onMouseleave: B,
5337
5337
  onFocus: H,
5338
5338
  onBlur: B
5339
5339
  }), [
5340
- Ae(G.$slots, "trigger", {
5340
+ Ae(W.$slots, "trigger", {
5341
5341
  show: y(P),
5342
5342
  hide: x,
5343
5343
  shown: o.value
5344
5344
  }, () => [
5345
- W(y(ce), {
5346
- class: ue(G.triggerClass),
5347
- iconEnd: G.iconEnd,
5345
+ q(y(ce), {
5346
+ class: ue(W.triggerClass),
5347
+ iconEnd: W.iconEnd,
5348
5348
  icon: g.value,
5349
- value: G.value,
5350
- thin: G.thin,
5351
- flat: G.flat,
5352
- outline: G.outline,
5353
- round: G.round,
5354
- color: G.color,
5355
- disabled: G.disabled,
5349
+ value: W.value,
5350
+ thin: W.thin,
5351
+ flat: W.flat,
5352
+ outline: W.outline,
5353
+ round: W.round,
5354
+ color: W.color,
5355
+ disabled: W.disabled,
5356
5356
  onClick: V
5357
5357
  }, null, 8, ["class", "iconEnd", "icon", "value", "thin", "flat", "outline", "round", "color", "disabled"])
5358
5358
  ])
@@ -5374,7 +5374,7 @@ const Ow = {
5374
5374
  M("div", {
5375
5375
  class: ue(["bgl-dropdown__content", { "display-flex column": r.card }])
5376
5376
  }, [
5377
- Ae(G.$slots, "default", {
5377
+ Ae(W.$slots, "default", {
5378
5378
  hide: x,
5379
5379
  show: y(P),
5380
5380
  shown: o.value
@@ -5462,12 +5462,12 @@ const Ow = {
5462
5462
  true: l("select.yes"),
5463
5463
  false: l("select.no")
5464
5464
  }
5465
- })), f = /* @__PURE__ */ new Map(), m = U(() => (o.value || []).map((X, G) => (f.has(G) || f.set(G, h()), {
5466
- id: f.get(G),
5465
+ })), f = /* @__PURE__ */ new Map(), m = U(() => (o.value || []).map((X, W) => (f.has(W) || f.set(W, h()), {
5466
+ id: f.get(W),
5467
5467
  field: X.field,
5468
5468
  operator: X.op,
5469
5469
  value: Array.isArray(X.value) ? X.value.map(String) : X.value === null ? "null" : X.value === void 0 ? "" : String(X.value),
5470
- connector: G > 0 ? X.connector || "and" : ""
5470
+ connector: W > 0 ? X.connector || "and" : ""
5471
5471
  }))), _ = U(() => [
5472
5472
  { label: p.value.operators.eq, value: "eq" },
5473
5473
  { label: p.value.operators.ne, value: "ne" },
@@ -5482,8 +5482,8 @@ const Ow = {
5482
5482
  { label: p.value.operators.in, value: "in" },
5483
5483
  { label: p.value.operators.nin, value: "nin" }
5484
5484
  ]);
5485
- function g(ie, X, G) {
5486
- if (G && X)
5485
+ function g(ie, X, W) {
5486
+ if (W && X)
5487
5487
  return _.value.filter((K) => ["in", "nin", "pr"].includes(K.value));
5488
5488
  if (X)
5489
5489
  return _.value.filter((K) => ["eq", "ne", "pr"].includes(K.value));
@@ -5516,19 +5516,19 @@ const Ow = {
5516
5516
  return typeof ie == "number" || typeof ie == "boolean" || ie === null ? ie : ie === "true" ? !0 : ie === "false" ? !1 : ie === "null" ? null : !Number.isNaN(Number(ie)) && ie.trim() !== "" ? Number(ie) : ie;
5517
5517
  }
5518
5518
  function T(ie, X) {
5519
- const G = [...o.value], K = G[ie];
5519
+ const W = [...o.value], K = W[ie];
5520
5520
  if (!K) return;
5521
5521
  const oe = { ...K };
5522
- X.field !== void 0 && (oe.field = X.field), X.op !== void 0 && (oe.op = X.op), X.value !== void 0 && (oe.value = Array.isArray(X.value) ? X.value : E(X.value)), X.connector !== void 0 && (oe.connector = X.connector), G[ie] = oe, o.value = G, c();
5522
+ X.field !== void 0 && (oe.field = X.field), X.op !== void 0 && (oe.op = X.op), X.value !== void 0 && (oe.value = Array.isArray(X.value) ? X.value : E(X.value)), X.connector !== void 0 && (oe.connector = X.connector), W[ie] = oe, o.value = W, c();
5523
5523
  }
5524
5524
  function P() {
5525
5525
  var oe;
5526
- const ie = ((oe = n.fields[0]) == null ? void 0 : oe.value) || "field", X = S(ie), G = {
5526
+ const ie = ((oe = n.fields[0]) == null ? void 0 : oe.value) || "field", X = S(ie), W = {
5527
5527
  field: ie,
5528
5528
  op: X ? "in" : "eq",
5529
5529
  value: X ? [] : "",
5530
5530
  connector: a.value.length > 0 ? "and" : void 0
5531
- }, K = [...o.value, G];
5531
+ }, K = [...o.value, W];
5532
5532
  o.value = K, console.log("[Filter] addCondition - skipping flush (incomplete)");
5533
5533
  }
5534
5534
  function x(ie) {
@@ -5540,7 +5540,7 @@ const Ow = {
5540
5540
  }
5541
5541
  function F(ie) {
5542
5542
  var X;
5543
- return ((X = n.fields.find((G) => G.value === ie)) == null ? void 0 : X.type) || "string";
5543
+ return ((X = n.fields.find((W) => W.value === ie)) == null ? void 0 : X.type) || "string";
5544
5544
  }
5545
5545
  function C(ie) {
5546
5546
  return ie !== "pr";
@@ -5554,28 +5554,28 @@ const Ow = {
5554
5554
  }
5555
5555
  function V(ie, X) {
5556
5556
  var ke;
5557
- const G = N(ie);
5558
- if (G < 0) return;
5557
+ const W = N(ie);
5558
+ if (W < 0) return;
5559
5559
  const K = v(X), oe = !!(K != null && K.multiple && (K != null && K.options)), me = g((K == null ? void 0 : K.type) || "string", !!(K != null && K.options), oe), Ce = oe ? "in" : ((ke = me[0]) == null ? void 0 : ke.value) ?? "eq";
5560
- T(G, {
5560
+ T(W, {
5561
5561
  field: X,
5562
5562
  op: Ce,
5563
5563
  value: oe ? [] : ""
5564
5564
  });
5565
5565
  }
5566
5566
  function H(ie, X) {
5567
- const G = N(ie);
5568
- if (G < 0) return;
5569
- const K = m.value[G], oe = (K == null ? void 0 : K.operator) === "in" || (K == null ? void 0 : K.operator) === "nin", me = X === "in" || X === "nin", Ce = { op: X };
5570
- oe && !me ? Ce.value = "" : !oe && me && (Ce.value = []), T(G, Ce);
5567
+ const W = N(ie);
5568
+ if (W < 0) return;
5569
+ const K = m.value[W], oe = (K == null ? void 0 : K.operator) === "in" || (K == null ? void 0 : K.operator) === "nin", me = X === "in" || X === "nin", Ce = { op: X };
5570
+ oe && !me ? Ce.value = "" : !oe && me && (Ce.value = []), T(W, Ce);
5571
5571
  }
5572
5572
  function B(ie, X) {
5573
- const G = N(ie);
5574
- G >= 0 && T(G, { value: X });
5573
+ const W = N(ie);
5574
+ W >= 0 && T(W, { value: X });
5575
5575
  }
5576
5576
  function pe(ie, X) {
5577
- const G = N(ie);
5578
- G >= 0 && T(G, { connector: X });
5577
+ const W = N(ie);
5578
+ W >= 0 && T(W, { connector: X });
5579
5579
  }
5580
5580
  return (ie, X) => ($(), re(y(Xn), {
5581
5581
  flat: "",
@@ -5589,91 +5589,91 @@ const Ow = {
5589
5589
  M("div", qw, [
5590
5590
  M("div", Gw, [
5591
5591
  m.value.length === 0 ? ($(), L("div", Yw, [
5592
- W(y(We), { name: "info" }),
5592
+ q(y(We), { name: "info" }),
5593
5593
  M("div", Xw, le(p.value.noActiveFilters), 1)
5594
5594
  ])) : z("", !0),
5595
- W(ss, { name: "condition" }, {
5595
+ q(ss, { name: "condition" }, {
5596
5596
  default: _e(() => [
5597
- ($(!0), L(Se, null, Ie(m.value, (G, K) => ($(), L("div", {
5598
- key: G.id,
5597
+ ($(!0), L(Se, null, Ie(m.value, (W, K) => ($(), L("div", {
5598
+ key: W.id,
5599
5599
  class: ue(["grid gap-025 align-items-center pt-025", {
5600
- "": K > 0 && G.connector === "or",
5601
- "pt-075 border-top-or": K > 0 && G.connector === "or",
5600
+ "": K > 0 && W.connector === "or",
5601
+ "pt-075 border-top-or": K > 0 && W.connector === "or",
5602
5602
  "first-filter-row": K === 0,
5603
5603
  "filter-row": K > 0
5604
5604
  }])
5605
5605
  }, [
5606
5606
  K > 0 ? ($(), L("div", Kw, [
5607
- W(y(Yt), {
5608
- "model-value": G.connector || "and",
5607
+ q(y(Yt), {
5608
+ "model-value": W.connector || "and",
5609
5609
  options: [
5610
5610
  { label: p.value.connectors.and, value: "and" },
5611
5611
  { label: p.value.connectors.or, value: "or" }
5612
5612
  ],
5613
5613
  class: "m-0 and-or-select txt-12",
5614
- "onUpdate:modelValue": (oe) => pe(G.id, oe)
5614
+ "onUpdate:modelValue": (oe) => pe(W.id, oe)
5615
5615
  }, null, 8, ["model-value", "options", "onUpdate:modelValue"])
5616
5616
  ])) : z("", !0),
5617
- W(y(Yt), {
5618
- "model-value": G.field,
5617
+ q(y(Yt), {
5618
+ "model-value": W.field,
5619
5619
  options: ie.fields,
5620
5620
  placeholder: p.value.placeholders.selectField,
5621
5621
  class: "m-0 light-input borderHover",
5622
- "onUpdate:modelValue": (oe) => V(G.id, oe)
5622
+ "onUpdate:modelValue": (oe) => V(W.id, oe)
5623
5623
  }, null, 8, ["model-value", "options", "placeholder", "onUpdate:modelValue"]),
5624
- W(y(Yt), {
5625
- "model-value": G.operator,
5626
- options: g(F(G.field), !!b(G.field), S(G.field)),
5624
+ q(y(Yt), {
5625
+ "model-value": W.operator,
5626
+ options: g(F(W.field), !!b(W.field), S(W.field)),
5627
5627
  class: "m-0 light-input borderHover",
5628
- "onUpdate:modelValue": (oe) => H(G.id, oe)
5628
+ "onUpdate:modelValue": (oe) => H(W.id, oe)
5629
5629
  }, null, 8, ["model-value", "options", "onUpdate:modelValue"]),
5630
- C(G.operator) ? ($(), L(Se, { key: 1 }, [
5631
- b(G.field) && k(G.operator) ? ($(), re(y(Yt), {
5632
- key: 0,
5633
- "model-value": Array.isArray(G.value) ? G.value : [],
5634
- options: b(G.field),
5630
+ C(W.operator) ? ($(), L(Se, { key: 1 }, [
5631
+ b(W.field) && k(W.operator) ? ($(), re(y(Yt), {
5632
+ key: `${W.id}-${W.field}-multi`,
5633
+ "model-value": Array.isArray(W.value) ? W.value : [],
5634
+ options: b(W.field),
5635
5635
  placeholder: p.value.placeholders.selectOption,
5636
5636
  class: "m-0 light-input borderHover",
5637
5637
  searchable: "",
5638
5638
  multiselect: "",
5639
- "onUpdate:modelValue": (oe) => B(G.id, oe)
5640
- }, null, 8, ["model-value", "options", "placeholder", "onUpdate:modelValue"])) : b(G.field) ? ($(), re(y(Yt), {
5641
- key: 1,
5642
- "model-value": G.value,
5643
- options: b(G.field),
5639
+ "onUpdate:modelValue": (oe) => B(W.id, oe)
5640
+ }, null, 8, ["model-value", "options", "placeholder", "onUpdate:modelValue"])) : b(W.field) ? ($(), re(y(Yt), {
5641
+ key: `${W.id}-${W.field}-single`,
5642
+ "model-value": W.value,
5643
+ options: b(W.field),
5644
5644
  placeholder: p.value.placeholders.selectOption,
5645
5645
  class: "m-0 light-input borderHover",
5646
5646
  searchable: "",
5647
- "onUpdate:modelValue": (oe) => B(G.id, oe)
5648
- }, null, 8, ["model-value", "options", "placeholder", "onUpdate:modelValue"])) : F(G.field) === "boolean" ? ($(), re(y(Yt), {
5649
- key: 2,
5650
- "model-value": G.value,
5647
+ "onUpdate:modelValue": (oe) => B(W.id, oe)
5648
+ }, null, 8, ["model-value", "options", "placeholder", "onUpdate:modelValue"])) : F(W.field) === "boolean" ? ($(), re(y(Yt), {
5649
+ key: `${W.id}-${W.field}-bool`,
5650
+ "model-value": W.value,
5651
5651
  options: w.value,
5652
5652
  placeholder: p.value.placeholders.selectOption,
5653
5653
  class: "m-0 light-input borderHover",
5654
- "onUpdate:modelValue": (oe) => B(G.id, oe)
5655
- }, null, 8, ["model-value", "options", "placeholder", "onUpdate:modelValue"])) : F(G.field) === "date" ? ($(), re(y(Pi), {
5656
- key: 3,
5657
- "model-value": G.value,
5654
+ "onUpdate:modelValue": (oe) => B(W.id, oe)
5655
+ }, null, 8, ["model-value", "options", "placeholder", "onUpdate:modelValue"])) : F(W.field) === "date" ? ($(), re(y(Pi), {
5656
+ key: `${W.id}-${W.field}-date`,
5657
+ "model-value": W.value,
5658
5658
  placeholder: p.value.placeholders.selectDate,
5659
5659
  class: "m-0 light-input borderHover",
5660
- "onUpdate:modelValue": (oe) => B(G.id, String(oe))
5661
- }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : F(G.field) === "number" ? ($(), re(y(Ct), {
5662
- key: 4,
5663
- "model-value": G.value,
5660
+ "onUpdate:modelValue": (oe) => B(W.id, String(oe))
5661
+ }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : F(W.field) === "number" ? ($(), re(y(Ct), {
5662
+ key: `${W.id}-${W.field}-number`,
5663
+ "model-value": W.value,
5664
5664
  placeholder: "0",
5665
5665
  type: "number",
5666
5666
  class: "m-0 light-input borderHover",
5667
- "onUpdate:modelValue": (oe) => B(G.id, oe)
5667
+ "onUpdate:modelValue": (oe) => B(W.id, oe)
5668
5668
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : ($(), re(y(Ct), {
5669
5669
  key: 5,
5670
- "model-value": G.value,
5670
+ "model-value": W.value,
5671
5671
  placeholder: p.value.placeholders.enterValue,
5672
5672
  class: "m-0 light-input borderHover",
5673
- "onUpdate:modelValue": (oe) => B(G.id, oe)
5673
+ "onUpdate:modelValue": (oe) => B(W.id, oe)
5674
5674
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]))
5675
5675
  ], 64)) : ($(), L("div", Jw)),
5676
- W(y(ce), {
5676
+ q(y(ce), {
5677
5677
  icon: "close",
5678
5678
  thin: "",
5679
5679
  flat: "",
@@ -5687,7 +5687,7 @@ const Ow = {
5687
5687
  })
5688
5688
  ]),
5689
5689
  M("div", Zw, [
5690
- W(y(ce), {
5690
+ q(y(ce), {
5691
5691
  icon: "add",
5692
5692
  flat: "",
5693
5693
  thin: "",
@@ -5712,7 +5712,7 @@ const Ow = {
5712
5712
  thin: "",
5713
5713
  color: "green-light",
5714
5714
  value: y(l)("filter.buttons.save"),
5715
- onClick: X[0] || (X[0] = (G) => r("save", o.value.filter(u)))
5715
+ onClick: X[0] || (X[0] = (W) => r("save", o.value.filter(u)))
5716
5716
  }, null, 8, ["disabled", "value"])) : z("", !0)
5717
5717
  ])
5718
5718
  ])
@@ -7880,7 +7880,7 @@ const _s = /* @__PURE__ */ Ee({
7880
7880
  ], !0)
7881
7881
  ])) : z("", !0),
7882
7882
  M("div", A2, [
7883
- W(ja, {
7883
+ q(ja, {
7884
7884
  name: _.value === "right" ? "slide-right" : "slide-left",
7885
7885
  mode: "out-in"
7886
7886
  }, {
@@ -7891,7 +7891,7 @@ const _s = /* @__PURE__ */ Ee({
7891
7891
  ref: E,
7892
7892
  class: "bgl-form-container"
7893
7893
  }, [
7894
- W(y(_s), xt({
7894
+ q(y(_s), xt({
7895
7895
  ref_key: "formRef",
7896
7896
  ref: o,
7897
7897
  modelValue: l.value,
@@ -8292,7 +8292,7 @@ const _s = /* @__PURE__ */ Ee({
8292
8292
  }, null, 8, ["onDragstart"])), [
8293
8293
  [k, y(ct)("Drag to reorder")]
8294
8294
  ]) : z("", !0),
8295
- W(y(ce), {
8295
+ q(y(ce), {
8296
8296
  "full-width": "",
8297
8297
  "align-txt": "start",
8298
8298
  class: "px-05",
@@ -8316,7 +8316,7 @@ const _s = /* @__PURE__ */ Ee({
8316
8316
  [k, y(ct)(F.deleteTooltip || "Delete")]
8317
8317
  ]) : z("", !0)
8318
8318
  ]),
8319
- W(ja, { name: "array-collapse" }, {
8319
+ q(ja, { name: "array-collapse" }, {
8320
8320
  default: _e(() => [
8321
8321
  l.value[N] ? z("", !0) : ($(), L("div", U2, [
8322
8322
  Ae(F.$slots, "default", {
@@ -8614,7 +8614,7 @@ const K2 = {
8614
8614
  }, null, 8, a$)), [
8615
8615
  [va, o.value]
8616
8616
  ]),
8617
- W(y(ce), {
8617
+ q(y(ce), {
8618
8618
  class: ue({ "not-allowed opacity-3": !o.value }),
8619
8619
  round: "",
8620
8620
  flat: "",
@@ -9193,7 +9193,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9193
9193
  isToday: O,
9194
9194
  isNotInMonth: F,
9195
9195
  isHighlighted: C
9196
- } = _(), { selectMonth: k, selectYear: I, previousMonth: N, nextMonth: V, previousYear: H, nextYear: B } = g(), { hours: pe, minutes: ie, handleHourInput: X, handleMinuteInput: G } = v();
9196
+ } = _(), { selectMonth: k, selectYear: I, previousMonth: N, nextMonth: V, previousYear: H, nextYear: B } = g(), { hours: pe, minutes: ie, handleHourInput: X, handleMinuteInput: W } = v();
9197
9197
  function K(oe) {
9198
9198
  var me, Ce;
9199
9199
  if (oe)
@@ -9211,14 +9211,14 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9211
9211
  M("div", l$, [
9212
9212
  M("div", i$, [
9213
9213
  i.value === "days" ? ($(), L(Se, { key: 0 }, [
9214
- W(y(ce), {
9214
+ q(y(ce), {
9215
9215
  flat: "",
9216
9216
  thin: "",
9217
9217
  icon: "chevron_left",
9218
9218
  onClick: y(N)
9219
9219
  }, null, 8, ["onClick"]),
9220
9220
  M("div", s$, [
9221
- W(y(ce), {
9221
+ q(y(ce), {
9222
9222
  flat: "",
9223
9223
  thin: "",
9224
9224
  class: "month-btn",
@@ -9229,7 +9229,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9229
9229
  ]),
9230
9230
  _: 1
9231
9231
  }),
9232
- W(y(ce), {
9232
+ q(y(ce), {
9233
9233
  flat: "",
9234
9234
  thin: "",
9235
9235
  class: "year-btn",
@@ -9241,21 +9241,21 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9241
9241
  _: 1
9242
9242
  })
9243
9243
  ]),
9244
- W(y(ce), {
9244
+ q(y(ce), {
9245
9245
  flat: "",
9246
9246
  thin: "",
9247
9247
  icon: "chevron_right",
9248
9248
  onClick: y(V)
9249
9249
  }, null, 8, ["onClick"])
9250
9250
  ], 64)) : ($(), L(Se, { key: 1 }, [
9251
- W(y(ce), {
9251
+ q(y(ce), {
9252
9252
  flat: "",
9253
9253
  thin: "",
9254
9254
  icon: "chevron_left",
9255
9255
  onClick: y(H)
9256
9256
  }, null, 8, ["onClick"]),
9257
9257
  M("span", u$, le(y(w).formatted.year), 1),
9258
- W(y(ce), {
9258
+ q(y(ce), {
9259
9259
  flat: "",
9260
9260
  thin: "",
9261
9261
  icon: "chevron_right",
@@ -9303,7 +9303,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9303
9303
  ]),
9304
9304
  oe.enableTime && i.value === "days" ? ($(), L("div", h$, [
9305
9305
  M("div", m$, [
9306
- W(y(Wr), {
9306
+ q(y(Wr), {
9307
9307
  center: "",
9308
9308
  modelValue: y(pe),
9309
9309
  disabled: !y(m),
@@ -9314,7 +9314,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9314
9314
  "onUpdate:modelValue": y(X)
9315
9315
  }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"]),
9316
9316
  me[2] || (me[2] = M("p", { class: "pb-075" }, " : ", -1)),
9317
- W(y(Wr), {
9317
+ q(y(Wr), {
9318
9318
  center: "",
9319
9319
  modelValue: y(ie),
9320
9320
  disabled: !y(m),
@@ -9322,7 +9322,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9322
9322
  max: 59,
9323
9323
  padZero: 2,
9324
9324
  layout: "vertical",
9325
- "onUpdate:modelValue": y(G)
9325
+ "onUpdate:modelValue": y(W)
9326
9326
  }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
9327
9327
  ])
9328
9328
  ])) : z("", !0)
@@ -9435,7 +9435,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9435
9435
  Ze(le(y(ct)(w.label || w.placeholder)), 1),
9436
9436
  w.required ? ($(), L("span", b$, " *")) : z("", !0)
9437
9437
  ])) : z("", !0),
9438
- W(y(Xn), {
9438
+ q(y(Xn), {
9439
9439
  shown: i.value,
9440
9440
  placement: "bottom-start",
9441
9441
  autoHide: !1,
@@ -9448,7 +9448,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9448
9448
  ref: u,
9449
9449
  class: "date-picker-container"
9450
9450
  }, [
9451
- W(y(Ct), {
9451
+ q(y(Ct), {
9452
9452
  modelValue: a.value,
9453
9453
  "onUpdate:modelValue": E[0] || (E[0] = (T) => a.value = T),
9454
9454
  iconStart: "calendar",
@@ -9476,7 +9476,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9476
9476
  onClick: E[3] || (E[3] = gt(() => {
9477
9477
  }, ["stop"]))
9478
9478
  }, [
9479
- W(v$, {
9479
+ q(v$, {
9480
9480
  modelValue: r.value,
9481
9481
  "onUpdate:modelValue": E[2] || (E[2] = (T) => r.value = T),
9482
9482
  min: w.min,
@@ -9802,7 +9802,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9802
9802
  title: a.description
9803
9803
  }, [
9804
9804
  a.label ? ($(), L("label", I$, [
9805
- W(l, { input: a.label }, null, 8, ["input"])
9805
+ q(l, { input: a.label }, null, 8, ["input"])
9806
9806
  ])) : z("", !0),
9807
9807
  M("textarea", {
9808
9808
  value: a.modelValue,
@@ -9882,7 +9882,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9882
9882
  class: "label",
9883
9883
  for: a
9884
9884
  }, le(s.label), 1)) : z("", !0),
9885
- W(y(Ct), {
9885
+ q(y(Ct), {
9886
9886
  id: a,
9887
9887
  ref_key: "textareaRef",
9888
9888
  ref: r,
@@ -9896,42 +9896,42 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
9896
9896
  }, null, 8, ["modelValue", "dir", "placeholder", "maxlength"])
9897
9897
  ]),
9898
9898
  s.showFormatting ? ($(), L("div", B$, [
9899
- W(y(ce), {
9899
+ q(y(ce), {
9900
9900
  thin: "",
9901
9901
  "icon-size": "0.9",
9902
9902
  flat: "",
9903
9903
  icon: "format_bold",
9904
9904
  onClick: u[1] || (u[1] = (c) => l("bold"))
9905
9905
  }),
9906
- W(y(ce), {
9906
+ q(y(ce), {
9907
9907
  thin: "",
9908
9908
  "icon-size": "0.9",
9909
9909
  flat: "",
9910
9910
  icon: "format_italic",
9911
9911
  onClick: u[2] || (u[2] = (c) => l("italic"))
9912
9912
  }),
9913
- W(y(ce), {
9913
+ q(y(ce), {
9914
9914
  thin: "",
9915
9915
  "icon-size": "0.9",
9916
9916
  flat: "",
9917
9917
  icon: "format_underlined",
9918
9918
  onClick: u[3] || (u[3] = (c) => l("underline"))
9919
9919
  }),
9920
- W(y(ce), {
9920
+ q(y(ce), {
9921
9921
  thin: "",
9922
9922
  "icon-size": "0.9",
9923
9923
  flat: "",
9924
9924
  icon: "code",
9925
9925
  onClick: u[4] || (u[4] = (c) => l("code"))
9926
9926
  }),
9927
- W(y(ce), {
9927
+ q(y(ce), {
9928
9928
  thin: "",
9929
9929
  "icon-size": "0.9",
9930
9930
  flat: "",
9931
9931
  icon: "notes",
9932
9932
  onClick: u[5] || (u[5] = (c) => l("pre"))
9933
9933
  }),
9934
- W(y(ce), {
9934
+ q(y(ce), {
9935
9935
  thin: "",
9936
9936
  "icon-size": "0.9",
9937
9937
  flat: "",
@@ -10126,7 +10126,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
10126
10126
  onClick: c
10127
10127
  }, null, 8, ["class"])) : z("", !0),
10128
10128
  m.spinner && (!m.layout || !a.includes(m.layout)) ? ($(), L("div", Y$, [
10129
- W(y(ce), {
10129
+ q(y(ce), {
10130
10130
  icon: "add",
10131
10131
  flat: "",
10132
10132
  thin: "",
@@ -10135,7 +10135,7 @@ const l$ = { class: "calendar-section m_border-none px-05 pb-05 pt-025 m_p-0" },
10135
10135
  tabindex: "-1",
10136
10136
  onClick: u
10137
10137
  }, null, 8, ["disabled"]),
10138
- W(y(ce), {
10138
+ q(y(ce), {
10139
10139
  icon: "remove",
10140
10140
  flat: "",
10141
10141
  thin: "",
@@ -11773,7 +11773,7 @@ const Cg = () => (/* @__PURE__ */ new Date()).getTime(), dS = (e, t, n) => {
11773
11773
  return $(), L("div", {
11774
11774
  class: ue(["relative passwordInput", { "relative mb-2": t.strengthMeter, "has-error": !!t.error, underlined: t.underlined }])
11775
11775
  }, [
11776
- W(y(Ct), xt({
11776
+ q(y(Ct), xt({
11777
11777
  modelValue: r.value,
11778
11778
  "onUpdate:modelValue": f[0] || (f[0] = (_) => r.value = _)
11779
11779
  }, t, {
@@ -11784,7 +11784,7 @@ const Cg = () => (/* @__PURE__ */ new Date()).getTime(), dS = (e, t, n) => {
11784
11784
  underlined: t.underlined
11785
11785
  }), null, 16, ["modelValue", "type", "name", "error", "underlined"]),
11786
11786
  M("div", hS, [
11787
- W(y(ce), {
11787
+ q(y(ce), {
11788
11788
  flat: "",
11789
11789
  thin: "",
11790
11790
  class: "mx-05",
@@ -12292,7 +12292,7 @@ const Cg = () => (/* @__PURE__ */ new Date()).getTime(), dS = (e, t, n) => {
12292
12292
  }, null, 8, ["icon"])) : z("", !0),
12293
12293
  I.hideLabel ? z("", !0) : ($(), L("p", HS, le(d.value > 0 ? g.value : I.underlined ? "" : y(ct)(I.placeholder) || "Select..."), 1)),
12294
12294
  I.clearable && d.value > 0 ? ($(), L("div", US, [
12295
- W(y(ce), {
12295
+ q(y(ce), {
12296
12296
  flat: "",
12297
12297
  thin: "",
12298
12298
  icon: "clear",
@@ -12341,7 +12341,7 @@ const Cg = () => (/* @__PURE__ */ new Date()).getTime(), dS = (e, t, n) => {
12341
12341
  height: "25px",
12342
12342
  class: "mx-1 my-1"
12343
12343
  })) : z("", !0),
12344
- W(y(Gn), {
12344
+ q(y(Gn), {
12345
12345
  class: "p-05",
12346
12346
  frame: "",
12347
12347
  style: ze({ width: I.fullWidth ? "100%" : "auto" }),
@@ -14501,7 +14501,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14501
14501
  onClick: b[0] || (b[0] = (E) => y(c)())
14502
14502
  }, null, 8, ["value"])) : z("", !0),
14503
14503
  y(o).length > 0 ? ($(), L("div", VE, [
14504
- W(y(Va), { size: "20" }),
14504
+ q(y(Va), { size: "20" }),
14505
14505
  M("span", BE, le(y(a)("upload.uploading", { count: y(o).length, plural: y(o).length > 1 ? "s" : "" })), 1)
14506
14506
  ])) : z("", !0),
14507
14507
  ($(!0), L(Se, null, Ie(y(l), (E) => ($(), L("div", {
@@ -14509,7 +14509,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14509
14509
  class: "txt-gray txt-12 flex"
14510
14510
  }, [
14511
14511
  M("div", HE, [
14512
- it(W(y(ce), {
14512
+ it(q(y(ce), {
14513
14513
  color: "gray",
14514
14514
  thin: "",
14515
14515
  icon: "delete",
@@ -14517,7 +14517,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14517
14517
  }, null, 8, ["onClick"]), [
14518
14518
  [S, "Delete"]
14519
14519
  ]),
14520
- it(W(y(ce), {
14520
+ it(q(y(ce), {
14521
14521
  color: "gray",
14522
14522
  thin: "",
14523
14523
  icon: "autorenew",
@@ -14525,7 +14525,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14525
14525
  }, null, 512), [
14526
14526
  [S, "Replace"]
14527
14527
  ]),
14528
- W(y(ce), {
14528
+ q(y(ce), {
14529
14529
  icon: "download",
14530
14530
  color: "gray",
14531
14531
  thin: "",
@@ -14533,7 +14533,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14533
14533
  download: g(E)
14534
14534
  }, null, 8, ["href", "download"]),
14535
14535
  M("div", UE, [
14536
- W(y(We), {
14536
+ q(y(We), {
14537
14537
  icon: "draft",
14538
14538
  size: 1.5
14539
14539
  }),
@@ -14580,7 +14580,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14580
14580
  class: "multi-preview"
14581
14581
  })),
14582
14582
  M("p", qE, le(g(E)), 1),
14583
- W(y(ce), {
14583
+ q(y(ce), {
14584
14584
  thin: "",
14585
14585
  flat: "",
14586
14586
  icon: "delete",
@@ -14610,7 +14610,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14610
14610
  style: ze([{ "--p": E.progress }, { "--b": "2px" }])
14611
14611
  }, [
14612
14612
  E.progress < 100 ? ($(), L("span", XE, le(E.progress.toFixed(0)), 1)) : z("", !0),
14613
- W(y(We), {
14613
+ q(y(We), {
14614
14614
  class: "success",
14615
14615
  icon: "check_circle"
14616
14616
  })
@@ -14624,7 +14624,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14624
14624
  M("div", {
14625
14625
  class: ue(["flex opacity-8 z-99 gap-025 absolute top-0 start-0", { "mx-auto end-0 mt-1 justify-content-center": v.oval, "m-05": !v.oval }])
14626
14626
  }, [
14627
- it(W(y(ce), {
14627
+ it(q(y(ce), {
14628
14628
  color: "white",
14629
14629
  frame: "",
14630
14630
  thin: "",
@@ -14633,7 +14633,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14633
14633
  }, null, 8, ["onClick"]), [
14634
14634
  [S, "Delete"]
14635
14635
  ]),
14636
- it(W(y(ce), {
14636
+ it(q(y(ce), {
14637
14637
  color: "white",
14638
14638
  frame: "",
14639
14639
  thin: "",
@@ -14642,7 +14642,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14642
14642
  }, null, 512), [
14643
14643
  [S, "Replace"]
14644
14644
  ]),
14645
- it(W(y(ce), {
14645
+ it(q(y(ce), {
14646
14646
  color: "white",
14647
14647
  frame: "",
14648
14648
  thin: "",
@@ -14654,7 +14654,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14654
14654
  ])
14655
14655
  ], 2),
14656
14656
  h(E) ? ($(), L("div", JE, [
14657
- it(W(y(cl), {
14657
+ it(q(y(cl), {
14658
14658
  class: "single-preview",
14659
14659
  pathKey: E,
14660
14660
  alt: ""
@@ -14675,7 +14675,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14675
14675
  key: E.name,
14676
14676
  class: ue(["single-image-item-preview", { "bgl_fill-image": v.fill }])
14677
14677
  }, [
14678
- W(y(Va), {
14678
+ q(y(Va), {
14679
14679
  type: "bar",
14680
14680
  progress: E.progress,
14681
14681
  class: "absolute bottom-05 end start w-100px mx-auto rounded overflow-hidden"
@@ -14858,7 +14858,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
14858
14858
  }, null, 44, ik))), 128))
14859
14859
  ], 32),
14860
14860
  M("div", sk, [
14861
- W(y(ce), {
14861
+ q(y(ce), {
14862
14862
  value: "Advanced Settings",
14863
14863
  icon: "settings",
14864
14864
  class: "bg-gray-30 color-black",
@@ -15032,7 +15032,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
15032
15032
  }, {
15033
15033
  default: _e(({ hide: _ }) => [
15034
15034
  M("div", pk, [
15035
- W(y(ce), {
15035
+ q(y(ce), {
15036
15036
  thin: "",
15037
15037
  flat: "",
15038
15038
  icon: "format_align_left",
@@ -15041,7 +15041,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
15041
15041
  s("alignLeft"), _();
15042
15042
  }
15043
15043
  }, null, 8, ["class", "onClick"]),
15044
- W(y(ce), {
15044
+ q(y(ce), {
15045
15045
  thin: "",
15046
15046
  flat: "",
15047
15047
  icon: "format_align_center",
@@ -15050,7 +15050,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
15050
15050
  s("alignCenter"), _();
15051
15051
  }
15052
15052
  }, null, 8, ["class", "onClick"]),
15053
- W(y(ce), {
15053
+ q(y(ce), {
15054
15054
  thin: "",
15055
15055
  flat: "",
15056
15056
  icon: "format_align_right",
@@ -15059,7 +15059,7 @@ const OE = { class: "bagel-input" }, RE = { key: 0 }, FE = {
15059
15059
  s("alignRight"), _();
15060
15060
  }
15061
15061
  }, null, 8, ["class", "onClick"]),
15062
- W(y(ce), {
15062
+ q(y(ce), {
15063
15063
  thin: "",
15064
15064
  flat: "",
15065
15065
  icon: "format_align_justify",
@@ -15578,7 +15578,7 @@ function Ek(e) {
15578
15578
  if (pe === ie)
15579
15579
  return X;
15580
15580
  if (pe.nodeType === Node.TEXT_NODE) {
15581
- const G = f.doc.createTreeWalker(
15581
+ const W = f.doc.createTreeWalker(
15582
15582
  X,
15583
15583
  NodeFilter.SHOW_TEXT,
15584
15584
  null
@@ -15592,9 +15592,9 @@ function Ek(e) {
15592
15592
  let me = oe.nextNode();
15593
15593
  for (; me && me !== pe; )
15594
15594
  K++, me = oe.nextNode();
15595
- let Ce = G.nextNode(), ke = 0;
15595
+ let Ce = W.nextNode(), ke = 0;
15596
15596
  for (; Ce && ke < K; )
15597
- ke++, Ce = G.nextNode();
15597
+ ke++, Ce = W.nextNode();
15598
15598
  return Ce;
15599
15599
  }
15600
15600
  return X.firstChild;
@@ -16721,7 +16721,7 @@ const Mk = { key: 0 }, Pk = {
16721
16721
  // left, center, right
16722
16722
  direction: "ltr"
16723
16723
  // ltr, rtl
16724
- }), G = R(!1), K = R({ x: 0, y: 0 }), oe = R(null);
16724
+ }), W = R(!1), K = R({ x: 0, y: 0 }), oe = R(null);
16725
16725
  let me = null;
16726
16726
  const Ce = U(() => {
16727
16727
  const A = X.value;
@@ -17324,7 +17324,7 @@ const Mk = { key: 0 }, Pk = {
17324
17324
  const { range: fe } = me;
17325
17325
  fe.insertNode(D), fe.setStartAfter(D), fe.collapse(!0);
17326
17326
  const te = A.getSelection();
17327
- te && (te.removeAllRanges(), te.addRange(fe)), Be(A), q(A);
17327
+ te && (te.removeAllRanges(), te.addRange(fe)), Be(A), G(A);
17328
17328
  }
17329
17329
  function Je() {
17330
17330
  if (!(me != null && me.existingTable))
@@ -17564,13 +17564,13 @@ const Mk = { key: 0 }, Pk = {
17564
17564
  });
17565
17565
  function qs(A) {
17566
17566
  const J = A.target.closest("td, th");
17567
- J && J.closest("table") && (A.preventDefault(), oe.value = J, K.value = { x: A.clientX, y: A.clientY }, G.value = !0);
17567
+ J && J.closest("table") && (A.preventDefault(), oe.value = J, K.value = { x: A.clientX, y: A.clientY }, W.value = !0);
17568
17568
  }
17569
17569
  const No = U(() => i.state.debug), Xl = U(() => ke.test(r.modelValue)), Kl = U(() => typeof r.height == "number" ? `${r.height}px` : typeof r.height == "string" ? r.height : "240px");
17570
17570
  gn(() => {
17571
17571
  i.cleanup();
17572
17572
  });
17573
- function q(A) {
17573
+ function G(A) {
17574
17574
  function D() {
17575
17575
  A.querySelectorAll("table:not([data-edit-button-added])").forEach((fe, te) => {
17576
17576
  var ye;
@@ -17738,7 +17738,7 @@ const Mk = { key: 0 }, Pk = {
17738
17738
  } else if (ye.nodeType === Node.ELEMENT_NODE) {
17739
17739
  const Le = ye;
17740
17740
  Le.tagName === "TABLE" ? setTimeout(() => {
17741
- nt(Le), q(A);
17741
+ nt(Le), G(A);
17742
17742
  }, 100) : ["BLOCKQUOTE", "UL", "OL"].includes(Le.tagName) && (Le.dir || (Le.dir = A.body.dir || "ltr"), (Le.tagName === "UL" || Le.tagName === "OL") && Le.querySelectorAll("li").forEach((Ue) => {
17743
17743
  Ue.dir || (Ue.dir = Le.dir);
17744
17744
  }));
@@ -18042,7 +18042,7 @@ const Mk = { key: 0 }, Pk = {
18042
18042
  K.value = {
18043
18043
  x: Qe.left + Le.clientX,
18044
18044
  y: Qe.top + Le.clientY
18045
- }, G.value = !0;
18045
+ }, W.value = !0;
18046
18046
  }
18047
18047
  }), te.addEventListener("click", (Le) => {
18048
18048
  te.querySelectorAll(".table-cell-selected").forEach((Qe) => {
@@ -18050,7 +18050,7 @@ const Mk = { key: 0 }, Pk = {
18050
18050
  });
18051
18051
  const Ue = Le.target.closest("td, th");
18052
18052
  Ue && Ue.closest("table") && (Ue.classList.add("table-cell-selected"), oe.value = Ue);
18053
- }), Y(te), q(te), Be(te), !te.body.innerHTML.trim() || !te.body.querySelector("p,h1,h2,h3,h4,h5,h6,blockquote,ul,ol,table")) {
18053
+ }), Y(te), G(te), Be(te), !te.body.innerHTML.trim() || !te.body.querySelector("p,h1,h2,h3,h4,h5,h6,blockquote,ul,ol,table")) {
18054
18054
  const Le = te.createElement("p");
18055
18055
  Le.dir = te.body.dir, te.body.appendChild(Le);
18056
18056
  const je = te.createRange();
@@ -18098,9 +18098,9 @@ const Mk = { key: 0 }, Pk = {
18098
18098
  }, { flush: "post" }), Fe(() => r.modelValue, (A, D) => {
18099
18099
  const J = i.state.doc ? Jt(i.state.doc ?? null) : "";
18100
18100
  A !== J && (!D || Math.abs(A.length - D.length) > 50 ? (u.value = !1, i.state.content = A, i.updateState.content("html"), setTimeout(() => {
18101
- i.state.doc && (Be(i.state.doc), q(i.state.doc));
18101
+ i.state.doc && (Be(i.state.doc), G(i.state.doc));
18102
18102
  }, 100)) : setTimeout(() => {
18103
- i.state.doc && q(i.state.doc);
18103
+ i.state.doc && G(i.state.doc);
18104
18104
  }, 50));
18105
18105
  }), Fe(() => i.state.content, () => {
18106
18106
  var A;
@@ -18112,7 +18112,7 @@ const Mk = { key: 0 }, Pk = {
18112
18112
  }
18113
18113
  });
18114
18114
  function $e() {
18115
- G.value = !1;
18115
+ W.value = !1;
18116
18116
  }
18117
18117
  typeof window < "u" && window.addEventListener("click", $e), ga(() => {
18118
18118
  typeof window < "u" && window.removeEventListener("click", $e);
@@ -18186,7 +18186,7 @@ const Mk = { key: 0 }, Pk = {
18186
18186
  ], 2),
18187
18187
  A.debug ? ($(), L("div", Pk, [
18188
18188
  D[76] || (D[76] = M("p", { class: "txt12 txt-gray mb-0 p-0" }, " Debug ", -1)),
18189
- W(y(ce), {
18189
+ q(y(ce), {
18190
18190
  thin: "",
18191
18191
  color: "gray",
18192
18192
  icon: "visibility",
@@ -18198,7 +18198,7 @@ const Mk = { key: 0 }, Pk = {
18198
18198
  _: 1,
18199
18199
  __: [72]
18200
18200
  }),
18201
- W(y(ce), {
18201
+ q(y(ce), {
18202
18202
  thin: "",
18203
18203
  color: "gray",
18204
18204
  icon: "delete",
@@ -18210,7 +18210,7 @@ const Mk = { key: 0 }, Pk = {
18210
18210
  _: 1,
18211
18211
  __: [73]
18212
18212
  }, 8, ["onClick"]),
18213
- W(y(ce), {
18213
+ q(y(ce), {
18214
18214
  thin: "",
18215
18215
  color: "gray",
18216
18216
  icon: "download",
@@ -18222,7 +18222,7 @@ const Mk = { key: 0 }, Pk = {
18222
18222
  _: 1,
18223
18223
  __: [74]
18224
18224
  }, 8, ["onClick"]),
18225
- W(y(ce), {
18225
+ q(y(ce), {
18226
18226
  thin: "",
18227
18227
  color: "gray",
18228
18228
  icon: "content_copy",
@@ -18250,21 +18250,21 @@ const Mk = { key: 0 }, Pk = {
18250
18250
  })
18251
18251
  }, [
18252
18252
  M("div", Ik, [
18253
- W(y(ce), {
18253
+ q(y(ce), {
18254
18254
  thin: "",
18255
18255
  flat: "",
18256
18256
  icon: "format_bold",
18257
18257
  class: ue({ active: y(i).state.selectedStyles.has("bold") }),
18258
18258
  onClick: D[3] || (D[3] = (Z) => De("bold"))
18259
18259
  }, null, 8, ["class"]),
18260
- W(y(ce), {
18260
+ q(y(ce), {
18261
18261
  thin: "",
18262
18262
  flat: "",
18263
18263
  icon: "format_italic",
18264
18264
  class: ue({ active: y(i).state.selectedStyles.has("italic") }),
18265
18265
  onClick: D[4] || (D[4] = (Z) => De("italic"))
18266
18266
  }, null, 8, ["class"]),
18267
- W(y(ce), {
18267
+ q(y(ce), {
18268
18268
  thin: "",
18269
18269
  flat: "",
18270
18270
  icon: "format_underlined",
@@ -18272,7 +18272,7 @@ const Mk = { key: 0 }, Pk = {
18272
18272
  onClick: D[5] || (D[5] = (Z) => De("underline"))
18273
18273
  }, null, 8, ["class"]),
18274
18274
  D[77] || (D[77] = M("span", { class: "separator" }, "|", -1)),
18275
- W(y(ce), {
18275
+ q(y(ce), {
18276
18276
  thin: "",
18277
18277
  flat: "",
18278
18278
  icon: "add_link",
@@ -18280,7 +18280,7 @@ const Mk = { key: 0 }, Pk = {
18280
18280
  })
18281
18281
  ])
18282
18282
  ], 4)) : z("", !0),
18283
- G.value ? ($(), L("div", {
18283
+ W.value ? ($(), L("div", {
18284
18284
  key: 2,
18285
18285
  class: "table-context-menu",
18286
18286
  style: ze({
@@ -18299,7 +18299,7 @@ const Mk = { key: 0 }, Pk = {
18299
18299
  D[78] || (D[78] = M("span", null, "Table Actions", -1)),
18300
18300
  M("button", {
18301
18301
  class: "close-btn",
18302
- onClick: D[7] || (D[7] = (Z) => G.value = !1)
18302
+ onClick: D[7] || (D[7] = (Z) => W.value = !1)
18303
18303
  }, " × ")
18304
18304
  ]),
18305
18305
  M("div", Ok, [
@@ -18312,7 +18312,7 @@ const Mk = { key: 0 }, Pk = {
18312
18312
  icon: "start",
18313
18313
  class: "context-menu-btn",
18314
18314
  onClick: D[8] || (D[8] = (Z) => {
18315
- Vt(), G.value = !1;
18315
+ Vt(), W.value = !1;
18316
18316
  })
18317
18317
  }, {
18318
18318
  default: _e(() => D[79] || (D[79] = [
@@ -18330,7 +18330,7 @@ const Mk = { key: 0 }, Pk = {
18330
18330
  icon: "text_select_move_down",
18331
18331
  class: "context-menu-btn",
18332
18332
  onClick: D[9] || (D[9] = (Z) => {
18333
- It(), G.value = !1;
18333
+ It(), W.value = !1;
18334
18334
  })
18335
18335
  }, {
18336
18336
  default: _e(() => D[80] || (D[80] = [
@@ -18348,7 +18348,7 @@ const Mk = { key: 0 }, Pk = {
18348
18348
  icon: "call_split",
18349
18349
  class: "context-menu-btn",
18350
18350
  onClick: D[10] || (D[10] = (Z) => {
18351
- Ot(), G.value = !1;
18351
+ Ot(), W.value = !1;
18352
18352
  })
18353
18353
  }, {
18354
18354
  default: _e(() => D[81] || (D[81] = [
@@ -18358,7 +18358,7 @@ const Mk = { key: 0 }, Pk = {
18358
18358
  __: [81]
18359
18359
  })) : z("", !0),
18360
18360
  ql.value || Gl.value || Yl.value ? ($(), L("div", Rk)) : z("", !0),
18361
- W(y(ce), {
18361
+ q(y(ce), {
18362
18362
  "full-width": "",
18363
18363
  "align-txt": "start",
18364
18364
  thin: "",
@@ -18366,7 +18366,7 @@ const Mk = { key: 0 }, Pk = {
18366
18366
  icon: "add_row_above",
18367
18367
  class: "context-menu-btn",
18368
18368
  onClick: D[11] || (D[11] = (Z) => {
18369
- jt(), G.value = !1;
18369
+ jt(), W.value = !1;
18370
18370
  })
18371
18371
  }, {
18372
18372
  default: _e(() => D[82] || (D[82] = [
@@ -18375,7 +18375,7 @@ const Mk = { key: 0 }, Pk = {
18375
18375
  _: 1,
18376
18376
  __: [82]
18377
18377
  }),
18378
- W(y(ce), {
18378
+ q(y(ce), {
18379
18379
  "full-width": "",
18380
18380
  "align-txt": "start",
18381
18381
  thin: "",
@@ -18383,7 +18383,7 @@ const Mk = { key: 0 }, Pk = {
18383
18383
  icon: "add_row_below",
18384
18384
  class: "context-menu-btn",
18385
18385
  onClick: D[12] || (D[12] = (Z) => {
18386
- Kn(), G.value = !1;
18386
+ Kn(), W.value = !1;
18387
18387
  })
18388
18388
  }, {
18389
18389
  default: _e(() => D[83] || (D[83] = [
@@ -18392,7 +18392,7 @@ const Mk = { key: 0 }, Pk = {
18392
18392
  _: 1,
18393
18393
  __: [83]
18394
18394
  }),
18395
- W(y(ce), {
18395
+ q(y(ce), {
18396
18396
  "full-width": "",
18397
18397
  "align-txt": "start",
18398
18398
  thin: "",
@@ -18400,7 +18400,7 @@ const Mk = { key: 0 }, Pk = {
18400
18400
  icon: "remove",
18401
18401
  class: "context-menu-btn",
18402
18402
  onClick: D[13] || (D[13] = (Z) => {
18403
- Io(), G.value = !1;
18403
+ Io(), W.value = !1;
18404
18404
  })
18405
18405
  }, {
18406
18406
  default: _e(() => D[84] || (D[84] = [
@@ -18410,7 +18410,7 @@ const Mk = { key: 0 }, Pk = {
18410
18410
  __: [84]
18411
18411
  }),
18412
18412
  D[88] || (D[88] = M("div", { class: "context-menu-separator" }, null, -1)),
18413
- W(y(ce), {
18413
+ q(y(ce), {
18414
18414
  "full-width": "",
18415
18415
  "align-txt": "start",
18416
18416
  thin: "",
@@ -18418,7 +18418,7 @@ const Mk = { key: 0 }, Pk = {
18418
18418
  icon: "add_column_left",
18419
18419
  class: "context-menu-btn",
18420
18420
  onClick: D[14] || (D[14] = (Z) => {
18421
- Wl(), G.value = !1;
18421
+ Wl(), W.value = !1;
18422
18422
  })
18423
18423
  }, {
18424
18424
  default: _e(() => D[85] || (D[85] = [
@@ -18427,7 +18427,7 @@ const Mk = { key: 0 }, Pk = {
18427
18427
  _: 1,
18428
18428
  __: [85]
18429
18429
  }),
18430
- W(y(ce), {
18430
+ q(y(ce), {
18431
18431
  "full-width": "",
18432
18432
  "align-txt": "start",
18433
18433
  thin: "",
@@ -18435,7 +18435,7 @@ const Mk = { key: 0 }, Pk = {
18435
18435
  icon: "add_column_right",
18436
18436
  class: "context-menu-btn",
18437
18437
  onClick: D[15] || (D[15] = (Z) => {
18438
- js(), G.value = !1;
18438
+ js(), W.value = !1;
18439
18439
  })
18440
18440
  }, {
18441
18441
  default: _e(() => D[86] || (D[86] = [
@@ -18444,7 +18444,7 @@ const Mk = { key: 0 }, Pk = {
18444
18444
  _: 1,
18445
18445
  __: [86]
18446
18446
  }),
18447
- W(y(ce), {
18447
+ q(y(ce), {
18448
18448
  "full-width": "",
18449
18449
  "align-txt": "start",
18450
18450
  thin: "",
@@ -18452,7 +18452,7 @@ const Mk = { key: 0 }, Pk = {
18452
18452
  icon: "remove",
18453
18453
  class: "context-menu-btn",
18454
18454
  onClick: D[16] || (D[16] = (Z) => {
18455
- Ws(), G.value = !1;
18455
+ Ws(), W.value = !1;
18456
18456
  })
18457
18457
  }, {
18458
18458
  default: _e(() => D[87] || (D[87] = [
@@ -18465,20 +18465,20 @@ const Mk = { key: 0 }, Pk = {
18465
18465
  ])
18466
18466
  ], 4)) : z("", !0)
18467
18467
  ], 16),
18468
- W(y(rr), {
18468
+ q(y(rr), {
18469
18469
  visible: b.value,
18470
18470
  "onUpdate:visible": D[21] || (D[21] = (Z) => b.value = Z),
18471
18471
  title: "Add Link",
18472
18472
  width: "400"
18473
18473
  }, {
18474
18474
  footer: _e(() => [
18475
- W(y(ce), {
18475
+ q(y(ce), {
18476
18476
  value: "Cancel",
18477
18477
  flat: "",
18478
18478
  thin: "",
18479
18479
  onClick: D[20] || (D[20] = (Z) => b.value = !1)
18480
18480
  }),
18481
- W(y(ce), {
18481
+ q(y(ce), {
18482
18482
  value: "Add Link",
18483
18483
  disabled: !ee(S.value.url),
18484
18484
  onClick: Oe
@@ -18486,7 +18486,7 @@ const Mk = { key: 0 }, Pk = {
18486
18486
  ]),
18487
18487
  default: _e(() => [
18488
18488
  M("div", Fk, [
18489
- W(Ct, {
18489
+ q(Ct, {
18490
18490
  modelValue: S.value.url,
18491
18491
  "onUpdate:modelValue": D[18] || (D[18] = (Z) => S.value.url = Z),
18492
18492
  label: "URL",
@@ -18494,7 +18494,7 @@ const Mk = { key: 0 }, Pk = {
18494
18494
  placeholder: "https://example.com",
18495
18495
  onKeydown: Xt(Oe, ["enter"])
18496
18496
  }, null, 8, ["modelValue"]),
18497
- W(y(ce), {
18497
+ q(y(ce), {
18498
18498
  icon: "open_in_new",
18499
18499
  class: "mb-05 radius-1",
18500
18500
  flat: "",
@@ -18502,7 +18502,7 @@ const Mk = { key: 0 }, Pk = {
18502
18502
  onClick: j
18503
18503
  }, null, 8, ["disabled"])
18504
18504
  ]),
18505
- W(kn, {
18505
+ q(kn, {
18506
18506
  modelValue: S.value.openInNewTab,
18507
18507
  "onUpdate:modelValue": D[19] || (D[19] = (Z) => S.value.openInNewTab = Z),
18508
18508
  label: "Open in new tab",
@@ -18517,7 +18517,7 @@ const Mk = { key: 0 }, Pk = {
18517
18517
  class: "editor-tooltip",
18518
18518
  style: ze({ left: `${E.value.x}px`, top: `${E.value.y}px` })
18519
18519
  }, le(E.value.message), 5)) : z("", !0),
18520
- W(y(rr), {
18520
+ q(y(rr), {
18521
18521
  visible: P.value,
18522
18522
  "onUpdate:visible": D[30] || (D[30] = (Z) => P.value = Z),
18523
18523
  title: (te = y(O)) != null && te.existingImage ? "Edit Image" : "Insert Image",
@@ -18527,7 +18527,7 @@ const Mk = { key: 0 }, Pk = {
18527
18527
  var Z, Le;
18528
18528
  return [
18529
18529
  M("div", Bk, [
18530
- W(y(ce), {
18530
+ q(y(ce), {
18531
18531
  value: "Cancel",
18532
18532
  flat: "",
18533
18533
  thin: "",
@@ -18542,7 +18542,7 @@ const Mk = { key: 0 }, Pk = {
18542
18542
  icon: "delete",
18543
18543
  onClick: yt
18544
18544
  })) : z("", !0),
18545
- W(y(ce), {
18545
+ q(y(ce), {
18546
18546
  class: "ms-auto",
18547
18547
  value: (Le = y(O)) != null && Le.existingImage ? "Save Changes" : "Insert Image",
18548
18548
  disabled: !x.value.src,
@@ -18552,14 +18552,14 @@ const Mk = { key: 0 }, Pk = {
18552
18552
  ];
18553
18553
  }),
18554
18554
  default: _e(() => [
18555
- W(Ri, {
18555
+ q(Ri, {
18556
18556
  modelValue: Xe.value,
18557
18557
  "onUpdate:modelValue": D[22] || (D[22] = (Z) => Xe.value = Z),
18558
18558
  label: "Image",
18559
18559
  type: "image",
18560
18560
  onKeydown: Xt(Pe, ["enter"])
18561
18561
  }, null, 8, ["modelValue"]),
18562
- W(Ct, {
18562
+ q(Ct, {
18563
18563
  modelValue: x.value.src,
18564
18564
  "onUpdate:modelValue": D[23] || (D[23] = (Z) => x.value.src = Z),
18565
18565
  label: "Image URL",
@@ -18567,21 +18567,21 @@ const Mk = { key: 0 }, Pk = {
18567
18567
  placeholder: "https://example.com/image.jpg",
18568
18568
  onKeydown: Xt(Pe, ["enter"])
18569
18569
  }, null, 8, ["modelValue"]),
18570
- W(Ct, {
18570
+ q(Ct, {
18571
18571
  modelValue: x.value.alt,
18572
18572
  "onUpdate:modelValue": D[24] || (D[24] = (Z) => x.value.alt = Z),
18573
18573
  label: "Alt Text",
18574
18574
  placeholder: "Describe the image"
18575
18575
  }, null, 8, ["modelValue"]),
18576
18576
  M("div", Vk, [
18577
- W(Ct, {
18577
+ q(Ct, {
18578
18578
  modelValue: x.value.width,
18579
18579
  "onUpdate:modelValue": D[25] || (D[25] = (Z) => x.value.width = Z),
18580
18580
  label: "Width",
18581
18581
  placeholder: "100% or 500px or auto",
18582
18582
  help: "Examples: 100%, 500px, auto"
18583
18583
  }, null, 8, ["modelValue"]),
18584
- W(Ct, {
18584
+ q(Ct, {
18585
18585
  modelValue: x.value.height,
18586
18586
  "onUpdate:modelValue": D[26] || (D[26] = (Z) => x.value.height = Z),
18587
18587
  label: "Height",
@@ -18589,13 +18589,13 @@ const Mk = { key: 0 }, Pk = {
18589
18589
  help: "Examples: auto, 300px"
18590
18590
  }, null, 8, ["modelValue"])
18591
18591
  ]),
18592
- W(Ct, {
18592
+ q(Ct, {
18593
18593
  modelValue: x.value.credit,
18594
18594
  "onUpdate:modelValue": D[27] || (D[27] = (Z) => x.value.credit = Z),
18595
18595
  label: "Photo Credit",
18596
18596
  placeholder: "Photographer name (optional)"
18597
18597
  }, null, 8, ["modelValue"]),
18598
- W(kn, {
18598
+ q(kn, {
18599
18599
  modelValue: x.value.figcaption,
18600
18600
  "onUpdate:modelValue": D[28] || (D[28] = (Z) => x.value.figcaption = Z),
18601
18601
  label: "Show alt text as caption",
@@ -18604,7 +18604,7 @@ const Mk = { key: 0 }, Pk = {
18604
18604
  ]),
18605
18605
  _: 1
18606
18606
  }, 8, ["visible", "title"]),
18607
- W(y(rr), {
18607
+ q(y(rr), {
18608
18608
  visible: F.value,
18609
18609
  "onUpdate:visible": D[36] || (D[36] = (Z) => F.value = Z),
18610
18610
  title: (ne = y(k)) != null && ne.existingEmbed ? "Edit Embed" : "Insert Embed",
@@ -18614,7 +18614,7 @@ const Mk = { key: 0 }, Pk = {
18614
18614
  var Z, Le;
18615
18615
  return [
18616
18616
  M("div", Uk, [
18617
- W(y(ce), {
18617
+ q(y(ce), {
18618
18618
  value: "Cancel",
18619
18619
  flat: "",
18620
18620
  thin: "",
@@ -18629,7 +18629,7 @@ const Mk = { key: 0 }, Pk = {
18629
18629
  icon: "delete",
18630
18630
  onClick: Lt
18631
18631
  })) : z("", !0),
18632
- W(y(ce), {
18632
+ q(y(ce), {
18633
18633
  value: (Le = y(k)) != null && Le.existingEmbed ? "Save Changes" : "Insert Embed",
18634
18634
  disabled: !C.value.src,
18635
18635
  class: "ms-auto",
@@ -18639,7 +18639,7 @@ const Mk = { key: 0 }, Pk = {
18639
18639
  ];
18640
18640
  }),
18641
18641
  default: _e(() => [
18642
- W(Ct, {
18642
+ q(Ct, {
18643
18643
  modelValue: C.value.src,
18644
18644
  "onUpdate:modelValue": D[31] || (D[31] = (Z) => C.value.src = Z),
18645
18645
  label: "Embed URL or Code",
@@ -18648,20 +18648,20 @@ const Mk = { key: 0 }, Pk = {
18648
18648
  onKeydown: Xt(et, ["enter"])
18649
18649
  }, null, 8, ["modelValue"]),
18650
18650
  M("div", Hk, [
18651
- W(Ct, {
18651
+ q(Ct, {
18652
18652
  modelValue: C.value.width,
18653
18653
  "onUpdate:modelValue": D[32] || (D[32] = (Z) => C.value.width = Z),
18654
18654
  label: "Width",
18655
18655
  placeholder: "560"
18656
18656
  }, null, 8, ["modelValue"]),
18657
- W(Ct, {
18657
+ q(Ct, {
18658
18658
  modelValue: C.value.height,
18659
18659
  "onUpdate:modelValue": D[33] || (D[33] = (Z) => C.value.height = Z),
18660
18660
  label: "Height",
18661
18661
  placeholder: "315"
18662
18662
  }, null, 8, ["modelValue"])
18663
18663
  ]),
18664
- W(Ct, {
18664
+ q(Ct, {
18665
18665
  modelValue: C.value.alt,
18666
18666
  "onUpdate:modelValue": D[34] || (D[34] = (Z) => C.value.alt = Z),
18667
18667
  label: "Caption",
@@ -18670,7 +18670,7 @@ const Mk = { key: 0 }, Pk = {
18670
18670
  ]),
18671
18671
  _: 1
18672
18672
  }, 8, ["visible", "title"]),
18673
- W(y(rr), {
18673
+ q(y(rr), {
18674
18674
  visible: H.value,
18675
18675
  "onUpdate:visible": D[49] || (D[49] = (Z) => H.value = Z),
18676
18676
  title: (ae = y(pe)) != null && ae.existingVideo ? "Edit Video" : "Insert Video",
@@ -18680,7 +18680,7 @@ const Mk = { key: 0 }, Pk = {
18680
18680
  var Z;
18681
18681
  return [
18682
18682
  M("div", Yk, [
18683
- W(y(ce), {
18683
+ q(y(ce), {
18684
18684
  value: "Cancel",
18685
18685
  flat: "",
18686
18686
  thin: "",
@@ -18695,7 +18695,7 @@ const Mk = { key: 0 }, Pk = {
18695
18695
  icon: "delete",
18696
18696
  onClick: Dt
18697
18697
  })) : z("", !0),
18698
- W(y(ce), {
18698
+ q(y(ce), {
18699
18699
  value: "Insert Video",
18700
18700
  class: "ms-auto",
18701
18701
  disabled: !B.value.src || !Te(B.value.src),
@@ -18706,7 +18706,7 @@ const Mk = { key: 0 }, Pk = {
18706
18706
  }),
18707
18707
  default: _e(() => [
18708
18708
  M("div", zk, [
18709
- W(Ct, {
18709
+ q(Ct, {
18710
18710
  modelValue: B.value.src,
18711
18711
  "onUpdate:modelValue": D[37] || (D[37] = (Z) => B.value.src = Z),
18712
18712
  label: "Video URL or Embed Code",
@@ -18716,17 +18716,17 @@ const Mk = { key: 0 }, Pk = {
18716
18716
  onKeydown: Xt(ft, ["enter"])
18717
18717
  }, null, 8, ["modelValue", "class"]),
18718
18718
  B.value.src && !Te(B.value.src) ? ($(), L("div", jk, [
18719
- W(y(We), { name: "warning" }),
18719
+ q(y(We), { name: "warning" }),
18720
18720
  D[89] || (D[89] = M("p", { class: "txt12" }, " Please enter a valid video URL or iframe embed code ", -1))
18721
18721
  ])) : z("", !0),
18722
- W(Ct, {
18722
+ q(Ct, {
18723
18723
  modelValue: B.value.width,
18724
18724
  "onUpdate:modelValue": D[38] || (D[38] = (Z) => B.value.width = Z),
18725
18725
  label: "Width",
18726
18726
  placeholder: "100% or 500px or 50vw",
18727
18727
  help: "Examples: 100%, 500px, 50vw, 300"
18728
18728
  }, null, 8, ["modelValue"]),
18729
- W(Yt, {
18729
+ q(Yt, {
18730
18730
  modelValue: B.value.aspectRatio,
18731
18731
  "onUpdate:modelValue": D[39] || (D[39] = (Z) => B.value.aspectRatio = Z),
18732
18732
  label: "Aspect Ratio",
@@ -18740,14 +18740,14 @@ const Mk = { key: 0 }, Pk = {
18740
18740
  ]
18741
18741
  }, null, 8, ["modelValue"]),
18742
18742
  B.value.aspectRatio === "custom" ? ($(), L("div", Wk, [
18743
- W(Ct, {
18743
+ q(Ct, {
18744
18744
  modelValue: B.value.customWidth,
18745
18745
  "onUpdate:modelValue": D[40] || (D[40] = (Z) => B.value.customWidth = Z),
18746
18746
  label: "Width ratio",
18747
18747
  placeholder: "16",
18748
18748
  type: "number"
18749
18749
  }, null, 8, ["modelValue"]),
18750
- W(Ct, {
18750
+ q(Ct, {
18751
18751
  modelValue: B.value.customHeight,
18752
18752
  "onUpdate:modelValue": D[41] || (D[41] = (Z) => B.value.customHeight = Z),
18753
18753
  label: "Height ratio",
@@ -18756,27 +18756,27 @@ const Mk = { key: 0 }, Pk = {
18756
18756
  }, null, 8, ["modelValue"])
18757
18757
  ])) : z("", !0),
18758
18758
  M("div", qk, [
18759
- W(kn, {
18759
+ q(kn, {
18760
18760
  modelValue: B.value.controls,
18761
18761
  "onUpdate:modelValue": D[42] || (D[42] = (Z) => B.value.controls = Z),
18762
18762
  label: "Show controls"
18763
18763
  }, null, 8, ["modelValue"]),
18764
- W(kn, {
18764
+ q(kn, {
18765
18765
  modelValue: B.value.autoplay,
18766
18766
  "onUpdate:modelValue": D[43] || (D[43] = (Z) => B.value.autoplay = Z),
18767
18767
  label: "Autoplay"
18768
18768
  }, null, 8, ["modelValue"]),
18769
- W(kn, {
18769
+ q(kn, {
18770
18770
  modelValue: B.value.mute,
18771
18771
  "onUpdate:modelValue": D[44] || (D[44] = (Z) => B.value.mute = Z),
18772
18772
  label: "Mute"
18773
18773
  }, null, 8, ["modelValue"]),
18774
- W(kn, {
18774
+ q(kn, {
18775
18775
  modelValue: B.value.loop,
18776
18776
  "onUpdate:modelValue": D[45] || (D[45] = (Z) => B.value.loop = Z),
18777
18777
  label: "Loop"
18778
18778
  }, null, 8, ["modelValue"]),
18779
- W(kn, {
18779
+ q(kn, {
18780
18780
  modelValue: B.value.showCaption,
18781
18781
  "onUpdate:modelValue": D[46] || (D[46] = (Z) => B.value.showCaption = Z),
18782
18782
  class: "grid-span-2",
@@ -18800,7 +18800,7 @@ const Mk = { key: 0 }, Pk = {
18800
18800
  default: _e(() => [
18801
18801
  D[90] || (D[90] = M("p", { class: "label" }, " Preview: ", -1)),
18802
18802
  M("div", Gk, [
18803
- W(y(Pm), {
18803
+ q(y(Pm), {
18804
18804
  src: B.value.src,
18805
18805
  class: "",
18806
18806
  "aspect-ratio": B.value.aspectRatio === "custom" && B.value.customWidth && B.value.customHeight ? `${B.value.customWidth}:${B.value.customHeight}` : B.value.aspectRatio,
@@ -18818,7 +18818,7 @@ const Mk = { key: 0 }, Pk = {
18818
18818
  ]),
18819
18819
  _: 1
18820
18820
  }, 8, ["visible", "title"]),
18821
- W(y(rr), {
18821
+ q(y(rr), {
18822
18822
  visible: ie.value,
18823
18823
  "onUpdate:visible": D[71] || (D[71] = (Z) => ie.value = Z),
18824
18824
  title: (ye = y(me)) != null && ye.existingTable ? "Edit Table" : "Insert Table",
@@ -18831,14 +18831,14 @@ const Mk = { key: 0 }, Pk = {
18831
18831
  M("p", { class: "label grid-span-4 m_grid-span-2" }, " Table Structure "),
18832
18832
  M("div", { class: "line" })
18833
18833
  ], -1)),
18834
- W(Wr, {
18834
+ q(Wr, {
18835
18835
  modelValue: X.value.rows,
18836
18836
  "onUpdate:modelValue": D[50] || (D[50] = (Z) => X.value.rows = Z),
18837
18837
  min: 1,
18838
18838
  max: 20,
18839
18839
  label: "Rows"
18840
18840
  }, null, 8, ["modelValue"]),
18841
- W(Wr, {
18841
+ q(Wr, {
18842
18842
  modelValue: X.value.cols,
18843
18843
  "onUpdate:modelValue": D[51] || (D[51] = (Z) => X.value.cols = Z),
18844
18844
  min: 1,
@@ -18848,7 +18848,7 @@ const Mk = { key: 0 }, Pk = {
18848
18848
  M("div", Kk, [
18849
18849
  D[91] || (D[91] = M("label", { class: "label" }, "Cell Text Alignment", -1)),
18850
18850
  M("div", Jk, [
18851
- W(y(ce), {
18851
+ q(y(ce), {
18852
18852
  class: ue({ activeBtn: X.value.alignment === "left" }),
18853
18853
  flat: "",
18854
18854
  thin: "",
@@ -18856,7 +18856,7 @@ const Mk = { key: 0 }, Pk = {
18856
18856
  title: "Align Left",
18857
18857
  onClick: D[52] || (D[52] = (Z) => X.value.alignment = "left")
18858
18858
  }, null, 8, ["class"]),
18859
- W(y(ce), {
18859
+ q(y(ce), {
18860
18860
  class: ue({ activeBtn: X.value.alignment === "center" }),
18861
18861
  flat: "",
18862
18862
  thin: "",
@@ -18864,7 +18864,7 @@ const Mk = { key: 0 }, Pk = {
18864
18864
  title: "Align Center",
18865
18865
  onClick: D[53] || (D[53] = (Z) => X.value.alignment = "center")
18866
18866
  }, null, 8, ["class"]),
18867
- W(y(ce), {
18867
+ q(y(ce), {
18868
18868
  class: ue({ activeBtn: X.value.alignment === "right" }),
18869
18869
  flat: "",
18870
18870
  thin: "",
@@ -18877,7 +18877,7 @@ const Mk = { key: 0 }, Pk = {
18877
18877
  M("div", Zk, [
18878
18878
  D[92] || (D[92] = M("label", { class: "label" }, "Text Direction", -1)),
18879
18879
  M("div", Qk, [
18880
- W(y(ce), {
18880
+ q(y(ce), {
18881
18881
  class: ue({ activeBtn: X.value.direction === "ltr" }),
18882
18882
  flat: "",
18883
18883
  thin: "",
@@ -18885,7 +18885,7 @@ const Mk = { key: 0 }, Pk = {
18885
18885
  title: "Left to Right",
18886
18886
  onClick: D[55] || (D[55] = (Z) => X.value.direction = "ltr")
18887
18887
  }, null, 8, ["class"]),
18888
- W(y(ce), {
18888
+ q(y(ce), {
18889
18889
  class: ue({ activeBtn: X.value.direction === "rtl" }),
18890
18890
  flat: "",
18891
18891
  thin: "",
@@ -18900,33 +18900,33 @@ const Mk = { key: 0 }, Pk = {
18900
18900
  M("p", { class: "label grid-span-4 m_grid-span-2" }, " Table Style "),
18901
18901
  M("div", { class: "line" })
18902
18902
  ], -1)),
18903
- W(Wr, {
18903
+ q(Wr, {
18904
18904
  modelValue: X.value.width,
18905
18905
  "onUpdate:modelValue": D[57] || (D[57] = (Z) => X.value.width = Z),
18906
18906
  label: "Width (%)",
18907
18907
  min: 25,
18908
18908
  max: 100
18909
18909
  }, null, 8, ["modelValue"]),
18910
- W(Wr, {
18910
+ q(Wr, {
18911
18911
  modelValue: X.value.cellPadding,
18912
18912
  "onUpdate:modelValue": D[58] || (D[58] = (Z) => X.value.cellPadding = Z),
18913
18913
  label: "Cell Padding (px)",
18914
18914
  min: 2,
18915
18915
  max: 20
18916
18916
  }, null, 8, ["modelValue"]),
18917
- W(Wr, {
18917
+ q(Wr, {
18918
18918
  modelValue: X.value.borderWidth,
18919
18919
  "onUpdate:modelValue": D[59] || (D[59] = (Z) => X.value.borderWidth = Z),
18920
18920
  label: "Border Width (px)",
18921
18921
  min: 0,
18922
18922
  max: 5
18923
18923
  }, null, 8, ["modelValue"]),
18924
- W(y(Hr), {
18924
+ q(y(Hr), {
18925
18925
  modelValue: X.value.borderColor,
18926
18926
  "onUpdate:modelValue": D[60] || (D[60] = (Z) => X.value.borderColor = Z),
18927
18927
  label: "Border Color"
18928
18928
  }, null, 8, ["modelValue"]),
18929
- W(kn, {
18929
+ q(kn, {
18930
18930
  modelValue: X.value.fixedLayout,
18931
18931
  "onUpdate:modelValue": D[61] || (D[61] = (Z) => X.value.fixedLayout = Z),
18932
18932
  label: "Fixed cell width (doesn't change by content)",
@@ -18937,13 +18937,13 @@ const Mk = { key: 0 }, Pk = {
18937
18937
  M("p", { class: "label grid-span-4 m_grid-span-2" }, " Cell Colors: "),
18938
18938
  M("div", { class: "line" })
18939
18939
  ], -1)),
18940
- W(y(Hr), {
18940
+ q(y(Hr), {
18941
18941
  modelValue: X.value.cellBgColor,
18942
18942
  "onUpdate:modelValue": D[62] || (D[62] = (Z) => X.value.cellBgColor = Z),
18943
18943
  class: "grid-span-2 m_grid-span-1",
18944
18944
  label: "Background Color"
18945
18945
  }, null, 8, ["modelValue"]),
18946
- W(y(Hr), {
18946
+ q(y(Hr), {
18947
18947
  modelValue: X.value.cellTextColor,
18948
18948
  "onUpdate:modelValue": D[63] || (D[63] = (Z) => X.value.cellTextColor = Z),
18949
18949
  class: "grid-span-2 m_grid-span-1",
@@ -18954,40 +18954,40 @@ const Mk = { key: 0 }, Pk = {
18954
18954
  M("p", { class: "label grid-span-4 m_grid-span-2" }, " Row Styles: "),
18955
18955
  M("div", { class: "line" })
18956
18956
  ], -1)),
18957
- W(kn, {
18957
+ q(kn, {
18958
18958
  modelValue: X.value.showHeaders,
18959
18959
  "onUpdate:modelValue": D[64] || (D[64] = (Z) => X.value.showHeaders = Z),
18960
18960
  label: "Show header row",
18961
18961
  class: "grid-span-4 m_grid-span-2"
18962
18962
  }, null, 8, ["modelValue"]),
18963
18963
  X.value.showHeaders ? ($(), L("div", eT, [
18964
- W(y(Hr), {
18964
+ q(y(Hr), {
18965
18965
  modelValue: X.value.headerBgColor,
18966
18966
  "onUpdate:modelValue": D[65] || (D[65] = (Z) => X.value.headerBgColor = Z),
18967
18967
  class: "grid-span-2 m_grid-span-1",
18968
18968
  label: "Header Background Color"
18969
18969
  }, null, 8, ["modelValue"]),
18970
- W(y(Hr), {
18970
+ q(y(Hr), {
18971
18971
  modelValue: X.value.headerTextColor,
18972
18972
  "onUpdate:modelValue": D[66] || (D[66] = (Z) => X.value.headerTextColor = Z),
18973
18973
  class: "grid-span-2 m_grid-span-1",
18974
18974
  label: "Header Text Color"
18975
18975
  }, null, 8, ["modelValue"])
18976
18976
  ])) : z("", !0),
18977
- W(kn, {
18977
+ q(kn, {
18978
18978
  modelValue: X.value.alternateRows,
18979
18979
  "onUpdate:modelValue": D[67] || (D[67] = (Z) => X.value.alternateRows = Z),
18980
18980
  label: "Alternating Row Colors",
18981
18981
  class: "grid-span-4 m_grid-span-2"
18982
18982
  }, null, 8, ["modelValue"]),
18983
18983
  X.value.alternateRows ? ($(), L("div", tT, [
18984
- W(y(Hr), {
18984
+ q(y(Hr), {
18985
18985
  modelValue: X.value.alternateRowBgColor,
18986
18986
  "onUpdate:modelValue": D[68] || (D[68] = (Z) => X.value.alternateRowBgColor = Z),
18987
18987
  class: "grid-span-2 m_grid-span-1",
18988
18988
  label: "Alternate Row Background:"
18989
18989
  }, null, 8, ["modelValue"]),
18990
- W(y(Hr), {
18990
+ q(y(Hr), {
18991
18991
  modelValue: X.value.alternateRowTextColor,
18992
18992
  "onUpdate:modelValue": D[69] || (D[69] = (Z) => X.value.alternateRowTextColor = Z),
18993
18993
  class: "grid-span-2 m_grid-span-1",
@@ -19009,7 +19009,7 @@ const Mk = { key: 0 }, Pk = {
19009
19009
  footer: _e(() => {
19010
19010
  var Z, Le;
19011
19011
  return [
19012
- W(y(ce), {
19012
+ q(y(ce), {
19013
19013
  value: "Cancel",
19014
19014
  flat: "",
19015
19015
  thin: "",
@@ -19024,7 +19024,7 @@ const Mk = { key: 0 }, Pk = {
19024
19024
  icon: "delete",
19025
19025
  onClick: Je
19026
19026
  })) : z("", !0),
19027
- W(y(ce), {
19027
+ q(y(ce), {
19028
19028
  value: (Le = y(me)) != null && Le.existingTable ? "Save" : "Insert Table",
19029
19029
  class: "ms-auto",
19030
19030
  onClick: ve
@@ -20406,8 +20406,8 @@ ot.prototype = /** @lends Sortable.prototype */
20406
20406
  fromSortable: h,
20407
20407
  target: r,
20408
20408
  completed: v,
20409
- onMove: function(X, G) {
20410
- return ni(Bt, n, Ve, a, X, cn(X), t, G);
20409
+ onMove: function(X, W) {
20410
+ return ni(Bt, n, Ve, a, X, cn(X), t, W);
20411
20411
  },
20412
20412
  changed: b
20413
20413
  }, pe));
@@ -21206,7 +21206,7 @@ const ZT = {
21206
21206
  class: ue(["header-col", y(sa)(v.fieldtype, "pascal")])
21207
21207
  }, le(v.label), 3))), 128))
21208
21208
  ]),
21209
- W(y(QT), {
21209
+ q(y(QT), {
21210
21210
  modelValue: l.value,
21211
21211
  "onUpdate:modelValue": f[0] || (f[0] = (v) => l.value = v),
21212
21212
  animation: "150",
@@ -21217,7 +21217,7 @@ const ZT = {
21217
21217
  onEnd: h
21218
21218
  }, {
21219
21219
  default: _e(() => [
21220
- W(ss, null, {
21220
+ q(ss, null, {
21221
21221
  default: _e(() => [
21222
21222
  ($(!0), L(Se, null, Ie(p.modelValue, (v, b) => {
21223
21223
  var S;
@@ -21226,13 +21226,13 @@ const ZT = {
21226
21226
  class: "flex table-row"
21227
21227
  }, [
21228
21228
  M("div", a4, [
21229
- W(y(We), { icon: "more_vert" })
21229
+ q(y(We), { icon: "more_vert" })
21230
21230
  ]),
21231
21231
  ($(!0), L(Se, null, Ie((S = y(s)) == null ? void 0 : S.fields, (w) => ($(), L("div", {
21232
21232
  key: `${w.fieldname}${v.id}`,
21233
21233
  class: ue(["table-cell", y(sa)(w.fieldtype, "pascal")])
21234
21234
  }, [
21235
- W(m, {
21235
+ q(m, {
21236
21236
  "no-label": "",
21237
21237
  "field-meta": w,
21238
21238
  "bagel-app": y(a),
@@ -21241,7 +21241,7 @@ const ZT = {
21241
21241
  }, null, 8, ["field-meta", "bagel-app", "model-value", "onUpdate:modelValue"])
21242
21242
  ], 2))), 128)),
21243
21243
  M("div", o4, [
21244
- W(y(We), {
21244
+ q(y(We), {
21245
21245
  icon: "delete",
21246
21246
  onClick: (w) => d(b)
21247
21247
  }, null, 8, ["onClick"])
@@ -21255,7 +21255,7 @@ const ZT = {
21255
21255
  _: 1
21256
21256
  }, 8, ["modelValue"])
21257
21257
  ]),
21258
- W(y(ce), {
21258
+ q(y(ce), {
21259
21259
  thin: "",
21260
21260
  flat: "",
21261
21261
  icon: "add",
@@ -23038,7 +23038,7 @@ const c5 = {
23038
23038
  "aria-haspopup": "listbox",
23039
23039
  "aria-expanded": u.value
23040
23040
  }, [
23041
- W(y(Xn), {
23041
+ q(y(Xn), {
23042
23042
  shown: u.value,
23043
23043
  "onUpdate:shown": k[2] || (k[2] = (N) => u.value = N),
23044
23044
  placement: "bottom-start",
@@ -23081,7 +23081,7 @@ const c5 = {
23081
23081
  "aria-selected": p.value === N.iso2,
23082
23082
  onClick: (V) => m(N)
23083
23083
  }, [
23084
- W(y(vf), {
23084
+ q(y(vf), {
23085
23085
  country: N.iso2
23086
23086
  }, null, 8, ["country"]),
23087
23087
  M("p", g5, le(N.name), 1),
@@ -27774,34 +27774,34 @@ const c5 = {
27774
27774
  { value: c.DATE, label: "Date" },
27775
27775
  { value: c.DATETIME, label: "Date & Time" },
27776
27776
  { value: c.BOOLEAN, label: "Boolean" }
27777
- ], h = R(null), p = R([]), f = R([]), m = R(""), _ = R(!0), g = R(!1), v = R(!1), b = R([]), S = R(!1), w = R([]), E = R(!1), T = R(null), P = R(!1), x = R(null), O = R(""), F = R(""), C = R(!1), k = R(null), I = R(""), N = R(""), V = Zt({}), H = Zt({}), B = Zt({}), pe = Zt({}), ie = Zt({}), X = Zt({}), G = Zt({}), K = Zt({}), oe = Zt({}), me = Zt({}), Ce = Zt({}), ke = Zt({}), He = R({}), { renderField: Ge } = us({
27777
+ ], h = R(null), p = R([]), f = R([]), m = R(""), _ = R(!0), g = R(!1), v = R(!1), b = R([]), S = R(!1), w = R([]), E = R(!1), T = R(null), P = R(!1), x = R(null), O = R(""), F = R(""), C = R(!1), k = R(null), I = R(""), N = R(""), V = Zt({}), H = Zt({}), B = Zt({}), pe = Zt({}), ie = Zt({}), X = Zt({}), W = Zt({}), K = Zt({}), oe = Zt({}), me = Zt({}), Ce = Zt({}), ke = Zt({}), He = R({}), { renderField: Ge } = us({
27778
27778
  mode: "form",
27779
27779
  getFormData: () => He.value,
27780
- onUpdateModelValue: (q, Y) => {
27781
- if (q.id)
27782
- if (q.id.includes(".")) {
27783
- const [xe, de] = q.id.split(".");
27780
+ onUpdateModelValue: (G, Y) => {
27781
+ if (G.id)
27782
+ if (G.id.includes(".")) {
27783
+ const [xe, de] = G.id.split(".");
27784
27784
  Ce[xe] || (Ce[xe] = {}), Ce[xe][de] = Y;
27785
27785
  } else
27786
- H[q.id] = Y;
27786
+ H[G.id] = Y;
27787
27787
  }
27788
27788
  });
27789
- function Be(q) {
27790
- if (!V[q] || !p.value || p.value.length === 0)
27789
+ function Be(G) {
27790
+ if (!V[G] || !p.value || p.value.length === 0)
27791
27791
  return [];
27792
- const Y = p.value.map((de) => de[V[q]]).filter((de) => de != null && de !== "");
27793
- return [...new Set(Y)].filter((de) => !B[q] || B[q].length === 0 ? !0 : !B[q].some(
27792
+ const Y = p.value.map((de) => de[V[G]]).filter((de) => de != null && de !== "");
27793
+ return [...new Set(Y)].filter((de) => !B[G] || B[G].length === 0 ? !0 : !B[G].some(
27794
27794
  ($e) => $e.sourceValue == de || $e.sourceValue === de.toString()
27795
27795
  ));
27796
27796
  }
27797
- const Re = U(() => !T.value || !T.value.id ? [] : Be(T.value.id)), Ye = U(() => Re.value.map((q) => ({
27798
- value: String(q),
27799
- label: String(q)
27797
+ const Re = U(() => !T.value || !T.value.id ? [] : Be(T.value.id)), Ye = U(() => Re.value.map((G) => ({
27798
+ value: String(G),
27799
+ label: String(G)
27800
27800
  })));
27801
- function he(q, Y) {
27802
- if (!q || !Y || !Array.isArray(Y) || Y.length === 0)
27801
+ function he(G, Y) {
27802
+ if (!G || !Y || !Array.isArray(Y) || Y.length === 0)
27803
27803
  return null;
27804
- const xe = String(q).toLowerCase().trim(), de = Y.find((Xe) => {
27804
+ const xe = String(G).toLowerCase().trim(), de = Y.find((Xe) => {
27805
27805
  const A = typeof Xe == "object" && Xe !== null ? Xe : { label: String(Xe) };
27806
27806
  return A ? `${A.label}`.toLowerCase().trim() === xe : !1;
27807
27807
  });
@@ -27822,33 +27822,33 @@ const c5 = {
27822
27822
  }
27823
27823
  return null;
27824
27824
  }
27825
- Fe(O, (q) => {
27825
+ Fe(O, (G) => {
27826
27826
  var Y;
27827
27827
  if ((Y = T.value) != null && Y.options) {
27828
- const xe = he(q, T.value.options);
27828
+ const xe = he(G, T.value.options);
27829
27829
  xe && (F.value = xe);
27830
27830
  }
27831
27831
  });
27832
- function De(q) {
27833
- if (B[q] || (B[q] = []), O.value && F.value) {
27834
- const Y = B[q].findIndex(
27832
+ function De(G) {
27833
+ if (B[G] || (B[G] = []), O.value && F.value) {
27834
+ const Y = B[G].findIndex(
27835
27835
  (xe) => xe.sourceValue === O.value
27836
27836
  );
27837
- Y >= 0 ? B[q][Y].targetValue = F.value : B[q].push({
27838
- fieldId: q,
27837
+ Y >= 0 ? B[G][Y].targetValue = F.value : B[G].push({
27838
+ fieldId: G,
27839
27839
  sourceValue: O.value,
27840
27840
  targetValue: F.value
27841
27841
  }), O.value = "", F.value = "";
27842
27842
  }
27843
27843
  }
27844
- function Ne(q) {
27845
- if (!q || !Array.isArray(q))
27844
+ function Ne(G) {
27845
+ if (!G || !Array.isArray(G))
27846
27846
  return [];
27847
27847
  const Y = [], xe = /* @__PURE__ */ new Set();
27848
27848
  function de($e) {
27849
27849
  $e && $e.id && $e.label && !xe.has($e.id) && (xe.add($e.id), $e.options || ($e.options = []), $e.attrs && $e.attrs.options && $e.attrs.options.length > 0 && ($e.options = $e.attrs.options), Y.push($e));
27850
27850
  }
27851
- return q.forEach(($e) => {
27851
+ return G.forEach(($e) => {
27852
27852
  $e && $e.id && $e.label && de($e), $e && $e.children && Array.isArray($e.children) && $e.children.forEach((Xe) => {
27853
27853
  Xe && Xe.id && Xe.label && (Xe.$el === "array" && Xe.attrs && Xe.attrs.schema ? (de(Xe), Array.isArray(Xe.attrs.schema) && Xe.attrs.schema.forEach((A) => {
27854
27854
  if (A && A.id && A.label) {
@@ -27865,23 +27865,23 @@ const c5 = {
27865
27865
  }), Y;
27866
27866
  }
27867
27867
  const se = U(() => Ne(ut(n.schema) || []));
27868
- function Oe(q) {
27869
- return q.isArrayField && q.parentField ? !1 : q.attrs && q.attrs.required === !0 || q.required === !0 || q.attrs && q.attrs.attrs && q.attrs.attrs.required === !0;
27868
+ function Oe(G) {
27869
+ return G.isArrayField && G.parentField ? !1 : G.attrs && G.attrs.required === !0 || G.required === !0 || G.attrs && G.attrs.attrs && G.attrs.attrs.required === !0;
27870
27870
  }
27871
- function j(q) {
27871
+ function j(G) {
27872
27872
  var Y;
27873
- return q.isArrayField && q.parentField ? {
27874
- description: `Required only if ${((Y = se.value.find((de) => de.id === q.parentField)) == null ? void 0 : Y.label) || q.parentField} has items`,
27873
+ return G.isArrayField && G.parentField ? {
27874
+ description: `Required only if ${((Y = se.value.find((de) => de.id === G.parentField)) == null ? void 0 : Y.label) || G.parentField} has items`,
27875
27875
  isConditional: !0
27876
27876
  } : {
27877
27877
  description: "",
27878
27878
  isConditional: !1
27879
27879
  };
27880
27880
  }
27881
- async function ee(q) {
27881
+ async function ee(G) {
27882
27882
  g.value = !0;
27883
27883
  try {
27884
- f.value = await l(q), m.value = f.value[0], await we();
27884
+ f.value = await l(G), m.value = f.value[0], await we();
27885
27885
  } catch (Y) {
27886
27886
  console.error("Error parsing file:", Y);
27887
27887
  } finally {
@@ -27892,24 +27892,24 @@ const c5 = {
27892
27892
  if (!(!h.value || !m.value)) {
27893
27893
  g.value = !0;
27894
27894
  try {
27895
- const { headers: q, data: Y } = await o(h.value, m.value, _.value);
27896
- w.value = q, p.value = Y, tt(), setTimeout(() => {
27895
+ const { headers: G, data: Y } = await o(h.value, m.value, _.value);
27896
+ w.value = G, p.value = Y, tt(), setTimeout(() => {
27897
27897
  Kn();
27898
27898
  }, 100);
27899
- } catch (q) {
27900
- console.error("Error loading sheet data:", q);
27899
+ } catch (G) {
27900
+ console.error("Error loading sheet data:", G);
27901
27901
  } finally {
27902
27902
  g.value = !1;
27903
27903
  }
27904
27904
  }
27905
27905
  }
27906
27906
  function Pe() {
27907
- const q = /* @__PURE__ */ new Set(), Y = /* @__PURE__ */ new Map();
27907
+ const G = /* @__PURE__ */ new Set(), Y = /* @__PURE__ */ new Map();
27908
27908
  Object.keys(V).forEach((xe) => {
27909
27909
  const de = se.value.find(($e) => $e.id === xe);
27910
- de && (de.$el === "array" ? q.add(de.id) : de.isArrayField && de.parentField && (Y.has(de.parentField) || Y.set(de.parentField, /* @__PURE__ */ new Set()), Y.get(de.parentField).add(de.id)));
27910
+ de && (de.$el === "array" ? G.add(de.id) : de.isArrayField && de.parentField && (Y.has(de.parentField) || Y.set(de.parentField, /* @__PURE__ */ new Set()), Y.get(de.parentField).add(de.id)));
27911
27911
  });
27912
- for (const xe of q)
27912
+ for (const xe of G)
27913
27913
  se.value.filter(($e) => $e.parentField === xe).forEach(($e) => {
27914
27914
  $e.disabled = !0, $e.disabledReason = `Parent field "${xe}" is already mapped`;
27915
27915
  });
@@ -27920,21 +27920,21 @@ const c5 = {
27920
27920
  }
27921
27921
  }
27922
27922
  function tt() {
27923
- Object.keys(V).forEach((q) => {
27924
- delete V[q];
27925
- }), se.value.forEach((q) => {
27926
- q.disabled = !1, q.disabledReason = "";
27927
- }), w.value.length > 0 && se.value.forEach((q) => {
27928
- const Y = sa(q.id, "camel"), xe = sa(q.id, "pascal"), de = sa(q.label.replace(/\s+/g, "_"), "camel"), $e = sa(q.label.replace(/\s+/g, "_"), "pascal"), Xe = w.value.find(
27929
- (A) => A.toLowerCase() === q.id.toLowerCase() || A.toLowerCase() === q.label.toLowerCase() || A.toLowerCase() === Y.toLowerCase() || A.toLowerCase() === xe.toLowerCase() || A.toLowerCase() === de.toLowerCase() || A.toLowerCase() === $e.toLowerCase() || sa(A.replace(/\s+/g, "_"), "camel").toLowerCase() === Y.toLowerCase() || sa(A.replace(/\s+/g, "_"), "camel").toLowerCase() === de.toLowerCase()
27923
+ Object.keys(V).forEach((G) => {
27924
+ delete V[G];
27925
+ }), se.value.forEach((G) => {
27926
+ G.disabled = !1, G.disabledReason = "";
27927
+ }), w.value.length > 0 && se.value.forEach((G) => {
27928
+ const Y = sa(G.id, "camel"), xe = sa(G.id, "pascal"), de = sa(G.label.replace(/\s+/g, "_"), "camel"), $e = sa(G.label.replace(/\s+/g, "_"), "pascal"), Xe = w.value.find(
27929
+ (A) => A.toLowerCase() === G.id.toLowerCase() || A.toLowerCase() === G.label.toLowerCase() || A.toLowerCase() === Y.toLowerCase() || A.toLowerCase() === xe.toLowerCase() || A.toLowerCase() === de.toLowerCase() || A.toLowerCase() === $e.toLowerCase() || sa(A.replace(/\s+/g, "_"), "camel").toLowerCase() === Y.toLowerCase() || sa(A.replace(/\s+/g, "_"), "camel").toLowerCase() === de.toLowerCase()
27930
27930
  );
27931
- if (Xe && !q.disabled)
27932
- V[q.id] = Xe;
27931
+ if (Xe && !G.disabled)
27932
+ V[G.id] = Xe;
27933
27933
  else {
27934
27934
  const A = w.value.find(
27935
- (D) => D.toLowerCase().includes(q.id.toLowerCase()) || D.toLowerCase().includes(q.label.toLowerCase()) || D.toLowerCase().includes(Y.toLowerCase()) || D.toLowerCase().includes(de.toLowerCase()) || q.id.toLowerCase().includes(D.toLowerCase()) || q.label.toLowerCase().includes(D.toLowerCase())
27935
+ (D) => D.toLowerCase().includes(G.id.toLowerCase()) || D.toLowerCase().includes(G.label.toLowerCase()) || D.toLowerCase().includes(Y.toLowerCase()) || D.toLowerCase().includes(de.toLowerCase()) || G.id.toLowerCase().includes(D.toLowerCase()) || G.label.toLowerCase().includes(D.toLowerCase())
27936
27936
  );
27937
- A && !q.disabled && (V[q.id] = A);
27937
+ A && !G.disabled && (V[G.id] = A);
27938
27938
  }
27939
27939
  }), Pe(), vt();
27940
27940
  }
@@ -27943,16 +27943,16 @@ const c5 = {
27943
27943
  S.value = !1;
27944
27944
  return;
27945
27945
  }
27946
- const q = se.value.filter((Y) => Y.isArrayField && Y.parentField ? !1 : Y.attrs && Y.attrs.required === !0 || Y.required === !0 || Y.attrs && Y.attrs.attrs && Y.attrs.attrs.required === !0);
27947
- if (q.length === 0) {
27946
+ const G = se.value.filter((Y) => Y.isArrayField && Y.parentField ? !1 : Y.attrs && Y.attrs.required === !0 || Y.required === !0 || Y.attrs && Y.attrs.attrs && Y.attrs.attrs.required === !0);
27947
+ if (G.length === 0) {
27948
27948
  S.value = Object.keys(V).some((Y) => !!V[Y]) || Object.keys(H).length > 0;
27949
27949
  return;
27950
27950
  }
27951
- S.value = q.every((Y) => !!V[Y.id] || Me(Y.id));
27951
+ S.value = G.every((Y) => !!V[Y.id] || Me(Y.id));
27952
27952
  }
27953
27953
  function et() {
27954
27954
  Kn();
27955
- const q = [];
27955
+ const G = [];
27956
27956
  for (let Y = 0; Y < p.value.length; Y++) {
27957
27957
  const xe = p.value[Y], de = {};
27958
27958
  se.value.forEach((A) => {
@@ -28009,7 +28009,7 @@ const c5 = {
28009
28009
  if (!ye.id)
28010
28010
  return;
28011
28011
  let Z = null, Le = !1;
28012
- if (G[A][ye.id] && fe[G[A][ye.id]] !== void 0 ? (Z = fe[G[A][ye.id]], Z === "" && Ce[A][ye.id] !== void 0 && (Z = Ce[A][ye.id], Le = !0)) : Ce[A][ye.id] !== void 0 && (Z = Ce[A][ye.id], Le = !0), Z === null)
28012
+ if (W[A][ye.id] && fe[W[A][ye.id]] !== void 0 ? (Z = fe[W[A][ye.id]], Z === "" && Ce[A][ye.id] !== void 0 && (Z = Ce[A][ye.id], Le = !0)) : Ce[A][ye.id] !== void 0 && (Z = Ce[A][ye.id], Le = !0), Z === null)
28013
28013
  return;
28014
28014
  if (!Le && ke[A][ye.id] && ke[A][ye.id].length > 0) {
28015
28015
  const Qe = ke[A][ye.id].find(
@@ -28021,21 +28021,21 @@ const c5 = {
28021
28021
  Z = Ot(Z, Ue), te[ye.id] = Z;
28022
28022
  }), Object.keys(te).length > 0 && de[A].push(te);
28023
28023
  });
28024
- }), Object.values(de).some((A) => !(A == null || A === "" || Array.isArray(A) && A.length === 0)) && q.push(de);
28024
+ }), Object.values(de).some((A) => !(A == null || A === "" || Array.isArray(A) && A.length === 0)) && G.push(de);
28025
28025
  }
28026
- b.value = q, v.value = !0;
28026
+ b.value = G, v.value = !0;
28027
28027
  }
28028
28028
  function ge() {
28029
- return se.value.filter((q) => q.$el !== "array").map((q) => ({
28030
- key: q.id,
28031
- title: q.label,
28032
- formatter: q.isArrayField ? Te : void 0
28029
+ return se.value.filter((G) => G.$el !== "array").map((G) => ({
28030
+ key: G.id,
28031
+ title: G.label,
28032
+ formatter: G.isArrayField ? Te : void 0
28033
28033
  }));
28034
28034
  }
28035
- function Te(q, Y, xe) {
28035
+ function Te(G, Y, xe) {
28036
28036
  const de = se.value.find((D) => D.id === xe);
28037
28037
  if (!de || !de.isArrayField || !de.parentField)
28038
- return q;
28038
+ return G;
28039
28039
  const [$e, Xe] = xe.split("."), A = Y[$e];
28040
28040
  return Array.isArray(A) && A.length > 0 ? A.map((D) => D[Xe]).filter((D) => D !== void 0).join(", ") : "";
28041
28041
  }
@@ -28043,13 +28043,13 @@ const c5 = {
28043
28043
  function Dt() {
28044
28044
  r("processedData", b.value), v.value = !1;
28045
28045
  }
28046
- function fn(q, Y) {
28047
- const xe = V[q];
28048
- if (xe && xe !== Y && (V[q] = "", se.value.forEach((de) => {
28046
+ function fn(G, Y) {
28047
+ const xe = V[G];
28048
+ if (xe && xe !== Y && (V[G] = "", se.value.forEach((de) => {
28049
28049
  de.disabled = !1, de.disabledReason = "";
28050
28050
  })), Y) {
28051
- V[q] = Y;
28052
- const de = se.value.find(($e) => $e.id === q);
28051
+ V[G] = Y;
28052
+ const de = se.value.find(($e) => $e.id === G);
28053
28053
  if (de && (de.$el === "array" && se.value.filter((Xe) => Xe.parentField === de.id).forEach((Xe) => {
28054
28054
  Xe.disabled = !0, Xe.disabledReason = `Parent field "${de.id}" is already mapped`;
28055
28055
  }), de.isArrayField && de.parentField)) {
@@ -28059,12 +28059,12 @@ const c5 = {
28059
28059
  }
28060
28060
  Pe(), vt();
28061
28061
  }
28062
- function Rn(q, Y) {
28063
- const xe = q.target;
28062
+ function Rn(G, Y) {
28063
+ const xe = G.target;
28064
28064
  xe && fn(Y, xe.value);
28065
28065
  }
28066
- async function ve(q) {
28067
- if (h.value = q[0], !!h.value) {
28066
+ async function ve(G) {
28067
+ if (h.value = G[0], !!h.value) {
28068
28068
  g.value = !0;
28069
28069
  try {
28070
28070
  await ee(h.value);
@@ -28078,63 +28078,63 @@ const c5 = {
28078
28078
  vm(() => {
28079
28079
  m.value && we();
28080
28080
  });
28081
- function Me(q) {
28082
- return H[q] !== void 0 && H[q] !== null && H[q] !== "";
28081
+ function Me(G) {
28082
+ return H[G] !== void 0 && H[G] !== null && H[G] !== "";
28083
28083
  }
28084
- function Je(q) {
28084
+ function Je(G) {
28085
28085
  try {
28086
- q.options || (q.options = []), q.attrs && q.attrs.options && (q.options = q.attrs.options), T.value = q, B[q.id] || (B[q.id] = []), E.value = !0;
28086
+ G.options || (G.options = []), G.attrs && G.attrs.options && (G.options = G.attrs.options), T.value = G, B[G.id] || (B[G.id] = []), E.value = !0;
28087
28087
  } catch (Y) {
28088
28088
  console.error("Error opening transform dialog:", Y), alert("An error occurred while opening the transform dialog. See console for details.");
28089
28089
  }
28090
28090
  }
28091
- function nt(q, Y) {
28092
- B[q] && B[q].length > Y && B[q].splice(Y, 1);
28091
+ function nt(G, Y) {
28092
+ B[G] && B[G].length > Y && B[G].splice(Y, 1);
28093
28093
  }
28094
- function yt(q) {
28095
- x.value = q, P.value = !0;
28094
+ function yt(G) {
28095
+ x.value = G, P.value = !0;
28096
28096
  }
28097
- async function Lt(q, Y) {
28097
+ async function Lt(G, Y) {
28098
28098
  if (!Y)
28099
28099
  return;
28100
28100
  const xe = Y[0];
28101
- ie[q] = xe;
28101
+ ie[G] = xe;
28102
28102
  try {
28103
28103
  const de = await l(xe), $e = de.length > 0 ? de[0] : "", { data: Xe } = await o(xe, $e, !0);
28104
- X[q] = Xe, G[q] || (G[q] = {});
28104
+ X[G] = Xe, W[G] || (W[G] = {});
28105
28105
  } catch (de) {
28106
28106
  console.error("Error processing related file:", de);
28107
28107
  }
28108
28108
  }
28109
- function Jt(q) {
28109
+ function Jt(G) {
28110
28110
  try {
28111
- const Y = se.value.find((A) => A.id === q);
28111
+ const Y = se.value.find((A) => A.id === G);
28112
28112
  if (!Y) {
28113
- console.error("Field not found:", q);
28113
+ console.error("Field not found:", G);
28114
28114
  return;
28115
28115
  }
28116
28116
  let xe = Y.options || Y.attrs && Y.attrs.options;
28117
- if (!V[q] || !p.value || p.value.length === 0) {
28118
- console.warn("No data or mapping found for field:", q);
28117
+ if (!V[G] || !p.value || p.value.length === 0) {
28118
+ console.warn("No data or mapping found for field:", G);
28119
28119
  return;
28120
28120
  }
28121
28121
  if (!xe) {
28122
- console.warn("No options found for field:", q);
28122
+ console.warn("No options found for field:", G);
28123
28123
  return;
28124
28124
  }
28125
- Array.isArray(xe) || (console.warn("Options is not an array for field:", q), xe = []);
28126
- const de = Be(q);
28127
- B[q] || (B[q] = []);
28125
+ Array.isArray(xe) || (console.warn("Options is not an array for field:", G), xe = []);
28126
+ const de = Be(G);
28127
+ B[G] || (B[G] = []);
28128
28128
  let $e = 0;
28129
28129
  const Xe = [];
28130
28130
  de.forEach((A) => {
28131
28131
  const D = String(A), J = he(D, xe);
28132
28132
  if (J) {
28133
- const fe = B[q].findIndex(
28133
+ const fe = B[G].findIndex(
28134
28134
  (te) => te.sourceValue === D
28135
28135
  );
28136
- fe >= 0 ? B[q][fe].targetValue = J : B[q].push({
28137
- fieldId: q,
28136
+ fe >= 0 ? B[G][fe].targetValue = J : B[G].push({
28137
+ fieldId: G,
28138
28138
  sourceValue: D,
28139
28139
  targetValue: J
28140
28140
  }), $e++;
@@ -28147,7 +28147,7 @@ ${Xe.length} values could not be automatically matched.`);
28147
28147
  console.error("Error auto-populating transformations:", Y), alert("An error occurred while trying to auto-populate transformations. See console for details.");
28148
28148
  }
28149
28149
  }
28150
- function Vt(q) {
28150
+ function Vt(G) {
28151
28151
  const Y = [
28152
28152
  /^\d{4}-\d{2}-\d{2}$/,
28153
28153
  // YYYY-MM-DD
@@ -28161,77 +28161,77 @@ ${Xe.length} values could not be automatically matched.`);
28161
28161
  // D MMMM YYYY
28162
28162
  ];
28163
28163
  for (const xe of Y)
28164
- if (xe.test(q))
28164
+ if (xe.test(G))
28165
28165
  return xe;
28166
28166
  return null;
28167
28167
  }
28168
- function It(q) {
28169
- if (!q)
28168
+ function It(G) {
28169
+ if (!G)
28170
28170
  return null;
28171
- const Y = new Date(q);
28171
+ const Y = new Date(G);
28172
28172
  if (!Number.isNaN(Y.getTime()))
28173
28173
  return Y;
28174
- if (Vt(q)) {
28175
- if (/^\d{2}\/\d{2}\/\d{4}$/.test(q)) {
28176
- const [de, $e, Xe] = q.split("/").map(Number);
28174
+ if (Vt(G)) {
28175
+ if (/^\d{2}\/\d{2}\/\d{4}$/.test(G)) {
28176
+ const [de, $e, Xe] = G.split("/").map(Number);
28177
28177
  return new Date(Xe, de - 1, $e);
28178
28178
  }
28179
- if (/^\d{2}\.\d{2}\.\d{4}$/.test(q)) {
28180
- const [de, $e, Xe] = q.split(".").map(Number);
28179
+ if (/^\d{2}\.\d{2}\.\d{4}$/.test(G)) {
28180
+ const [de, $e, Xe] = G.split(".").map(Number);
28181
28181
  return new Date(Xe, $e - 1, de);
28182
- } else if (/^\d{1,2}\s[a-z]{3,9}\s\d{4}$/i.test(q))
28183
- return new Date(q);
28182
+ } else if (/^\d{1,2}\s[a-z]{3,9}\s\d{4}$/i.test(G))
28183
+ return new Date(G);
28184
28184
  }
28185
28185
  return null;
28186
28186
  }
28187
- function Ot(q, Y) {
28188
- if (q == null || q === "")
28187
+ function Ot(G, Y) {
28188
+ if (G == null || G === "")
28189
28189
  return null;
28190
28190
  try {
28191
28191
  switch (Y) {
28192
28192
  case c.STRING:
28193
- return String(q);
28193
+ return String(G);
28194
28194
  case c.NUMBER: {
28195
- const xe = Number(q);
28195
+ const xe = Number(G);
28196
28196
  return Number.isNaN(xe) ? null : xe;
28197
28197
  }
28198
28198
  case c.BOOLEAN:
28199
- if (typeof q == "boolean")
28200
- return q;
28201
- if (typeof q == "string") {
28202
- const xe = q.toLowerCase().trim();
28199
+ if (typeof G == "boolean")
28200
+ return G;
28201
+ if (typeof G == "string") {
28202
+ const xe = G.toLowerCase().trim();
28203
28203
  if (["true", "yes", "1", "on"].includes(xe))
28204
28204
  return !0;
28205
28205
  if (["false", "no", "0", "off"].includes(xe))
28206
28206
  return !1;
28207
28207
  }
28208
- return !!q;
28208
+ return !!G;
28209
28209
  case c.DATE:
28210
28210
  case c.DATETIME:
28211
- if (i(q)) {
28212
- const xe = s(q);
28211
+ if (i(G)) {
28212
+ const xe = s(G);
28213
28213
  return u(xe, Y === c.DATETIME);
28214
28214
  }
28215
- if (typeof q == "string") {
28216
- const xe = It(q);
28215
+ if (typeof G == "string") {
28216
+ const xe = It(G);
28217
28217
  if (xe)
28218
28218
  return u(xe, Y === c.DATETIME);
28219
28219
  }
28220
- return q instanceof Date ? u(q, Y === c.DATETIME) : null;
28220
+ return G instanceof Date ? u(G, Y === c.DATETIME) : null;
28221
28221
  default:
28222
- return q;
28222
+ return G;
28223
28223
  }
28224
28224
  } catch (xe) {
28225
- return console.error("Error converting value:", q, "to type:", Y, xe), null;
28225
+ return console.error("Error converting value:", G, "to type:", Y, xe), null;
28226
28226
  }
28227
28227
  }
28228
- function jt(q) {
28229
- return q == null ? c.STRING : typeof q == "number" || typeof q == "string" && !Number.isNaN(Number(q)) ? i(Number(q)) ? c.DATE : c.NUMBER : typeof q == "boolean" || typeof q == "string" && ["true", "false", "yes", "no"].includes(q.toLowerCase()) ? c.BOOLEAN : q instanceof Date ? c.DATETIME : typeof q == "string" && (Vt(q) || !Number.isNaN(new Date(q).getTime())) ? c.DATE : c.STRING;
28228
+ function jt(G) {
28229
+ return G == null ? c.STRING : typeof G == "number" || typeof G == "string" && !Number.isNaN(Number(G)) ? i(Number(G)) ? c.DATE : c.NUMBER : typeof G == "boolean" || typeof G == "string" && ["true", "false", "yes", "no"].includes(G.toLowerCase()) ? c.BOOLEAN : G instanceof Date ? c.DATETIME : typeof G == "string" && (Vt(G) || !Number.isNaN(new Date(G).getTime())) ? c.DATE : c.STRING;
28230
28230
  }
28231
28231
  function Kn() {
28232
- se.value.forEach((q) => {
28233
- if (!pe[q.id] && V[q.id]) {
28234
- const Y = p.value.slice(0, 5).map((xe) => xe[V[q.id]]).filter((xe) => xe != null && xe !== "");
28232
+ se.value.forEach((G) => {
28233
+ if (!pe[G.id] && V[G.id]) {
28234
+ const Y = p.value.slice(0, 5).map((xe) => xe[V[G.id]]).filter((xe) => xe != null && xe !== "");
28235
28235
  if (Y.length > 0) {
28236
28236
  const xe = Y.map(jt), de = {};
28237
28237
  xe.forEach((A) => {
@@ -28240,52 +28240,52 @@ ${Xe.length} values could not be automatically matched.`);
28240
28240
  let $e = 0, Xe = c.STRING;
28241
28241
  Object.entries(de).forEach(([A, D]) => {
28242
28242
  D > $e && ($e = D, Xe = A);
28243
- }), pe[q.id] = Xe;
28243
+ }), pe[G.id] = Xe;
28244
28244
  } else
28245
- pe[q.id] = c.STRING;
28245
+ pe[G.id] = c.STRING;
28246
28246
  }
28247
28247
  });
28248
28248
  }
28249
- function Io(q, Y) {
28249
+ function Io(G, Y) {
28250
28250
  try {
28251
- console.log("Opening related transform dialog for field:", Y.id, "in parent:", q), Y.options || (Y.options = []), Y.attrs && Y.attrs.options && (console.log("Copying options from attrs for related field:", Y.id), Y.options = Array.isArray(Y.attrs.options) ? Y.attrs.options : []), k.value = { parentId: q, field: Y }, ke[q] || (ke[q] = {}), ke[q][Y.id] || (ke[q][Y.id] = []), C.value = !0, I.value = "", N.value = "";
28251
+ console.log("Opening related transform dialog for field:", Y.id, "in parent:", G), Y.options || (Y.options = []), Y.attrs && Y.attrs.options && (console.log("Copying options from attrs for related field:", Y.id), Y.options = Array.isArray(Y.attrs.options) ? Y.attrs.options : []), k.value = { parentId: G, field: Y }, ke[G] || (ke[G] = {}), ke[G][Y.id] || (ke[G][Y.id] = []), C.value = !0, I.value = "", N.value = "";
28252
28252
  } catch (xe) {
28253
28253
  console.error("Error opening related transform dialog:", xe), alert("An error occurred while opening the related transform dialog. See console for details.");
28254
28254
  }
28255
28255
  }
28256
- function Wl(q, Y) {
28257
- if (!G[q][Y] || !X[q] || X[q].length === 0)
28256
+ function Wl(G, Y) {
28257
+ if (!W[G][Y] || !X[G] || X[G].length === 0)
28258
28258
  return [];
28259
- const xe = X[q].map(($e) => $e[G[q][Y]]).filter(($e) => $e != null && $e !== "");
28260
- return [...new Set(xe)].filter(($e) => !ke[q][Y] || ke[q][Y].length === 0 ? !0 : !ke[q][Y].some(
28259
+ const xe = X[G].map(($e) => $e[W[G][Y]]).filter(($e) => $e != null && $e !== "");
28260
+ return [...new Set(xe)].filter(($e) => !ke[G][Y] || ke[G][Y].length === 0 ? !0 : !ke[G][Y].some(
28261
28261
  (Xe) => Xe.sourceValue == $e || Xe.sourceValue === $e.toString()
28262
28262
  ));
28263
28263
  }
28264
28264
  const js = U(() => {
28265
28265
  if (!k.value)
28266
28266
  return [];
28267
- const { parentId: q, field: Y } = k.value;
28268
- return Wl(q, Y.id);
28269
- }), Ws = U(() => js.value.map((q) => ({
28270
- value: String(q),
28271
- label: String(q)
28267
+ const { parentId: G, field: Y } = k.value;
28268
+ return Wl(G, Y.id);
28269
+ }), Ws = U(() => js.value.map((G) => ({
28270
+ value: String(G),
28271
+ label: String(G)
28272
28272
  })));
28273
- function ql(q, Y) {
28274
- if (ke[q] || (ke[q] = {}), ke[q][Y] || (ke[q][Y] = []), I.value && N.value) {
28275
- const xe = ke[q][Y].findIndex(
28273
+ function ql(G, Y) {
28274
+ if (ke[G] || (ke[G] = {}), ke[G][Y] || (ke[G][Y] = []), I.value && N.value) {
28275
+ const xe = ke[G][Y].findIndex(
28276
28276
  (de) => de.sourceValue === I.value
28277
28277
  );
28278
- xe >= 0 ? ke[q][Y][xe].targetValue = N.value : ke[q][Y].push({
28278
+ xe >= 0 ? ke[G][Y][xe].targetValue = N.value : ke[G][Y].push({
28279
28279
  fieldId: Y,
28280
28280
  sourceValue: I.value,
28281
28281
  targetValue: N.value
28282
28282
  }), I.value = "", N.value = "";
28283
28283
  }
28284
28284
  }
28285
- function Gl(q, Y, xe) {
28286
- ke[q][Y] && ke[q][Y].length > xe && ke[q][Y].splice(xe, 1);
28285
+ function Gl(G, Y, xe) {
28286
+ ke[G][Y] && ke[G][Y].length > xe && ke[G][Y].splice(xe, 1);
28287
28287
  }
28288
- function Yl(q, Y) {
28288
+ function Yl(G, Y) {
28289
28289
  var xe;
28290
28290
  try {
28291
28291
  const de = (xe = k.value) == null ? void 0 : xe.field;
@@ -28294,7 +28294,7 @@ ${Xe.length} values could not be automatically matched.`);
28294
28294
  return;
28295
28295
  }
28296
28296
  let $e = de.options || de.attrs && de.attrs.options;
28297
- if (!G[q][Y] || !X[q] || X[q].length === 0) {
28297
+ if (!W[G][Y] || !X[G] || X[G].length === 0) {
28298
28298
  console.warn("No data or mapping found for related field:", Y);
28299
28299
  return;
28300
28300
  }
@@ -28303,17 +28303,17 @@ ${Xe.length} values could not be automatically matched.`);
28303
28303
  return;
28304
28304
  }
28305
28305
  Array.isArray($e) || (console.warn("Options is not an array for related field:", Y), $e = []);
28306
- const Xe = Wl(q, Y);
28307
- ke[q] || (ke[q] = {}), ke[q][Y] || (ke[q][Y] = []);
28306
+ const Xe = Wl(G, Y);
28307
+ ke[G] || (ke[G] = {}), ke[G][Y] || (ke[G][Y] = []);
28308
28308
  let A = 0;
28309
28309
  const D = [];
28310
28310
  Xe.forEach((J) => {
28311
28311
  const fe = String(J), te = he(fe, $e);
28312
28312
  if (te) {
28313
- const ne = ke[q][Y].findIndex(
28313
+ const ne = ke[G][Y].findIndex(
28314
28314
  (ae) => ae.sourceValue === fe
28315
28315
  );
28316
- ne >= 0 ? ke[q][Y][ne].targetValue = te : ke[q][Y].push({
28316
+ ne >= 0 ? ke[G][Y][ne].targetValue = te : ke[G][Y].push({
28317
28317
  fieldId: Y,
28318
28318
  sourceValue: fe,
28319
28319
  targetValue: te
@@ -28327,16 +28327,16 @@ ${D.length} values could not be automatically matched.`);
28327
28327
  console.error("Error auto-populating related transformations:", de), alert("An error occurred while trying to auto-populate related transformations. See console for details.");
28328
28328
  }
28329
28329
  }
28330
- function qs(q) {
28331
- H[q] === void 0 && (H[q] = null);
28330
+ function qs(G) {
28331
+ H[G] === void 0 && (H[G] = null);
28332
28332
  }
28333
- function No(q, Y) {
28334
- Ce[q] || (Ce[q] = {}), Ce[q][Y] === void 0 && (Ce[q][Y] = null);
28333
+ function No(G, Y) {
28334
+ Ce[G] || (Ce[G] = {}), Ce[G][Y] === void 0 && (Ce[G][Y] = null);
28335
28335
  }
28336
- function Xl(q) {
28337
- let Y = q.$el || "text";
28338
- if (pe[q.id])
28339
- switch (pe[q.id]) {
28336
+ function Xl(G) {
28337
+ let Y = G.$el || "text";
28338
+ if (pe[G.id])
28339
+ switch (pe[G.id]) {
28340
28340
  case c.NUMBER:
28341
28341
  Y = "number";
28342
28342
  break;
@@ -28347,15 +28347,15 @@ ${D.length} values could not be automatically matched.`);
28347
28347
  Y = "toggle";
28348
28348
  break;
28349
28349
  }
28350
- return q.id && (He.value[q.id] = H[q.id]), {
28351
- ...q,
28350
+ return G.id && (He.value[G.id] = H[G.id]), {
28351
+ ...G,
28352
28352
  $el: Y,
28353
28353
  placeholder: "Set default..."
28354
28354
  };
28355
28355
  }
28356
- function Kl(q, Y) {
28356
+ function Kl(G, Y) {
28357
28357
  let xe = Y.$el || "text";
28358
- const de = `${q}.${Y.id}`;
28358
+ const de = `${G}.${Y.id}`;
28359
28359
  if (me[de])
28360
28360
  switch (me[de]) {
28361
28361
  case c.NUMBER:
@@ -28374,9 +28374,9 @@ ${D.length} values could not be automatically matched.`);
28374
28374
  $el: xe,
28375
28375
  placeholder: "Set default..."
28376
28376
  };
28377
- return He.value[de] = Ce[q][Y.id], $e;
28377
+ return He.value[de] = Ce[G][Y.id], $e;
28378
28378
  }
28379
- return (q, Y) => {
28379
+ return (G, Y) => {
28380
28380
  const xe = mn("tooltip");
28381
28381
  return $(), re(y(Gn), { class: "upload-data-container h-100p grid overflow-hidden list-wrap" }, {
28382
28382
  default: _e(() => [
@@ -28385,16 +28385,16 @@ ${D.length} values could not be automatically matched.`);
28385
28385
  textContent: le(n.title || "Upload and Map Data")
28386
28386
  }, null, 8, k5),
28387
28387
  h.value ? z("", !0) : ($(), L("div", T5, [
28388
- W(y(lf), {
28388
+ q(y(lf), {
28389
28389
  accept: ".csv,.xls,.xlsx",
28390
28390
  class: "max-h300px w-500px",
28391
28391
  browse: "",
28392
28392
  onAddFiles: ve
28393
28393
  }, {
28394
28394
  default: _e(() => [
28395
- W(y(Gn), { class: "flex flex-column items-center justify-center outline-dashed outline-3 bg-input hover h-100p justify-content-center txt-center" }, {
28395
+ q(y(Gn), { class: "flex flex-column items-center justify-center outline-dashed outline-3 bg-input hover h-100p justify-content-center txt-center" }, {
28396
28396
  default: _e(() => [
28397
- W(y(We), {
28397
+ q(y(We), {
28398
28398
  name: "upload",
28399
28399
  size: "5"
28400
28400
  }),
@@ -28421,7 +28421,7 @@ ${D.length} values could not be automatically matched.`);
28421
28421
  onClick: Y[0] || (Y[0] = (de) => h.value = null)
28422
28422
  }, {
28423
28423
  default: _e(() => [
28424
- W(y(We), {
28424
+ q(y(We), {
28425
28425
  icon: "draft",
28426
28426
  size: "1.5",
28427
28427
  weight: "300"
@@ -28441,7 +28441,7 @@ ${D.length} values could not be automatically matched.`);
28441
28441
  options: f.value,
28442
28442
  label: y(a)("importData.selectSheet")
28443
28443
  }, null, 8, ["modelValue", "options", "label"])) : z("", !0),
28444
- W(y(kn), {
28444
+ q(y(kn), {
28445
28445
  modelValue: _.value,
28446
28446
  "onUpdate:modelValue": Y[2] || (Y[2] = (de) => _.value = de),
28447
28447
  label: y(a)("importData.hasHeaders"),
@@ -28481,7 +28481,7 @@ ${D.length} values could not be automatically matched.`);
28481
28481
  j(de).isConditional ? ($(), L("div", B5, le(j(de).description), 1)) : z("", !0)
28482
28482
  ]),
28483
28483
  M("div", H5, [
28484
- W(y(Yt), {
28484
+ q(y(Yt), {
28485
28485
  modelValue: V[de.id],
28486
28486
  "onUpdate:modelValue": ($e) => V[de.id] = $e,
28487
28487
  icon: "table_chart",
@@ -28499,7 +28499,7 @@ ${D.length} values could not be automatically matched.`);
28499
28499
  ])
28500
28500
  ]),
28501
28501
  M("div", null, [
28502
- W(y(Yt), {
28502
+ q(y(Yt), {
28503
28503
  modelValue: pe[de.id],
28504
28504
  "onUpdate:modelValue": ($e) => pe[de.id] = $e,
28505
28505
  options: d,
@@ -28508,7 +28508,7 @@ ${D.length} values could not be automatically matched.`);
28508
28508
  ]),
28509
28509
  M("div", null, [
28510
28510
  M("div", z5, [
28511
- it(W(y(ce), {
28511
+ it(q(y(ce), {
28512
28512
  thin: "",
28513
28513
  disabled: de.disabled,
28514
28514
  icon: "transform",
@@ -28530,7 +28530,7 @@ ${D.length} values could not be automatically matched.`);
28530
28530
  ], 2))), 128))
28531
28531
  ]),
28532
28532
  S.value ? ($(), L("div", j5, [
28533
- W(y(ce), { onClick: et }, {
28533
+ q(y(ce), { onClick: et }, {
28534
28534
  default: _e(() => Y[34] || (Y[34] = [
28535
28535
  Ze(" Preview Data ")
28536
28536
  ])),
@@ -28542,7 +28542,7 @@ ${D.length} values could not be automatically matched.`);
28542
28542
  ])))
28543
28543
  ])) : z("", !0)
28544
28544
  ]),
28545
- W(y(rr), {
28545
+ q(y(rr), {
28546
28546
  visible: E.value,
28547
28547
  "onUpdate:visible": Y[10] || (Y[10] = (de) => E.value = de),
28548
28548
  title: "Configure Transformations",
@@ -28555,7 +28555,7 @@ ${D.length} values could not be automatically matched.`);
28555
28555
  Y[37] || (Y[37] = Ze("Create transformations for ")),
28556
28556
  M("strong", null, le(T.value.label), 1)
28557
28557
  ]),
28558
- W(y(ce), {
28558
+ q(y(ce), {
28559
28559
  icon: "auto_awesome",
28560
28560
  thin: "",
28561
28561
  value: "Autodetect",
@@ -28575,7 +28575,7 @@ ${D.length} values could not be automatically matched.`);
28575
28575
  }, [
28576
28576
  M("p", Y5, le(de.sourceValue), 1),
28577
28577
  M("p", X5, le(de.targetValue), 1),
28578
- it(W(y(ce), {
28578
+ it(q(y(ce), {
28579
28579
  class: "mb-05",
28580
28580
  thin: "",
28581
28581
  icon: "delete",
@@ -28618,7 +28618,7 @@ ${D.length} values could not be automatically matched.`);
28618
28618
  placeholder: y(a)("importData.targetValue")
28619
28619
  }, null, 8, ["modelValue", "placeholder"]))
28620
28620
  ]),
28621
- it(W(y(ce), {
28621
+ it(q(y(ce), {
28622
28622
  class: "mb-05",
28623
28623
  thin: "",
28624
28624
  icon: "add",
@@ -28631,7 +28631,7 @@ ${D.length} values could not be automatically matched.`);
28631
28631
  ])
28632
28632
  ]),
28633
28633
  M("div", Q5, [
28634
- W(y(ce), {
28634
+ q(y(ce), {
28635
28635
  class: "ms-auto",
28636
28636
  value: "$t:importData.close",
28637
28637
  onClick: Y[9] || (Y[9] = (de) => E.value = !1)
@@ -28641,7 +28641,7 @@ ${D.length} values could not be automatically matched.`);
28641
28641
  ]),
28642
28642
  _: 1
28643
28643
  }, 8, ["visible"]),
28644
- W(y(rr), {
28644
+ q(y(rr), {
28645
28645
  visible: P.value,
28646
28646
  "onUpdate:visible": Y[16] || (Y[16] = (de) => P.value = de),
28647
28647
  title: "Configure Related Data",
@@ -28654,13 +28654,13 @@ ${D.length} values could not be automatically matched.`);
28654
28654
  M("p", t9, " Upload a file with related data for " + le(x.value.label), 1),
28655
28655
  ie[x.value.id] ? ($(), L("div", r9, [
28656
28656
  M("div", a9, [
28657
- W(y(Ip), null, {
28657
+ q(y(Ip), null, {
28658
28658
  default: _e(() => [
28659
28659
  Ze(le(ie[x.value.id].name), 1)
28660
28660
  ]),
28661
28661
  _: 1
28662
28662
  }),
28663
- W(y(ce), {
28663
+ q(y(ce), {
28664
28664
  thin: "",
28665
28665
  round: "",
28666
28666
  value: "$t:importData.changeFile",
@@ -28670,13 +28670,13 @@ ${D.length} values could not be automatically matched.`);
28670
28670
  X[x.value.id] ? ($(), L("div", o9, [
28671
28671
  Y[44] || (Y[44] = M("h4", null, "Configure Relationship", -1)),
28672
28672
  M("div", l9, [
28673
- W(y(Yt), {
28673
+ q(y(Yt), {
28674
28674
  modelValue: oe[x.value.id],
28675
28675
  "onUpdate:modelValue": Y[13] || (Y[13] = ($e) => oe[x.value.id] = $e),
28676
28676
  options: w.value,
28677
28677
  label: y(a)("importData.sourceKeyField")
28678
28678
  }, null, 8, ["modelValue", "options", "label"]),
28679
- W(y(Yt), {
28679
+ q(y(Yt), {
28680
28680
  modelValue: K[x.value.id],
28681
28681
  "onUpdate:modelValue": Y[14] || (Y[14] = ($e) => K[x.value.id] = $e),
28682
28682
  options: Object.keys(X[x.value.id][0] || {}),
@@ -28702,9 +28702,9 @@ ${D.length} values could not be automatically matched.`);
28702
28702
  }, [
28703
28703
  M("td", null, le($e.label), 1),
28704
28704
  M("td", null, [
28705
- W(y(Yt), {
28706
- modelValue: G[x.value.id][$e.id],
28707
- "onUpdate:modelValue": (D) => G[x.value.id][$e.id] = D,
28705
+ q(y(Yt), {
28706
+ modelValue: W[x.value.id][$e.id],
28707
+ "onUpdate:modelValue": (D) => W[x.value.id][$e.id] = D,
28708
28708
  options: Object.keys(X[x.value.id][0] || {}),
28709
28709
  placeholder: y(a)("importData.selectColumn")
28710
28710
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "placeholder"])
@@ -28716,16 +28716,16 @@ ${D.length} values could not be automatically matched.`);
28716
28716
  ])
28717
28717
  ]),
28718
28718
  M("td", null, [
28719
- W(y(Yt), {
28719
+ q(y(Yt), {
28720
28720
  modelValue: me[`${x.value.id}.${$e.id}`],
28721
28721
  "onUpdate:modelValue": (D) => me[`${x.value.id}.${$e.id}`] = D,
28722
28722
  options: d,
28723
- disabled: !((Xe = G[x.value.id]) != null && Xe[$e.id]) && !((A = Ce[x.value.id]) != null && A[$e.id])
28723
+ disabled: !((Xe = W[x.value.id]) != null && Xe[$e.id]) && !((A = Ce[x.value.id]) != null && A[$e.id])
28724
28724
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
28725
28725
  ]),
28726
28726
  M("td", null, [
28727
28727
  M("div", s9, [
28728
- W(y(ce), {
28728
+ q(y(ce), {
28729
28729
  thin: "",
28730
28730
  icon: "transform",
28731
28731
  onClick: (D) => Io(x.value.id, $e)
@@ -28744,15 +28744,15 @@ ${D.length} values could not be automatically matched.`);
28744
28744
  ])
28745
28745
  ])) : z("", !0)
28746
28746
  ])) : ($(), L("div", n9, [
28747
- W(y(lf), {
28747
+ q(y(lf), {
28748
28748
  accept: ".csv,.xls,.xlsx",
28749
28749
  browse: "",
28750
28750
  onAddFiles: Y[11] || (Y[11] = ($e) => Lt(x.value.id, $e))
28751
28751
  }, {
28752
28752
  default: _e(() => [
28753
- W(y(Gn), { class: "flex flex-column items-center justify-center outline-dashed outline-3 hover bg-input" }, {
28753
+ q(y(Gn), { class: "flex flex-column items-center justify-center outline-dashed outline-3 hover bg-input" }, {
28754
28754
  default: _e(() => [
28755
- W(y(We), {
28755
+ q(y(We), {
28756
28756
  name: "upload",
28757
28757
  size: "5"
28758
28758
  }),
@@ -28768,7 +28768,7 @@ ${D.length} values could not be automatically matched.`);
28768
28768
  })
28769
28769
  ])),
28770
28770
  M("div", u9, [
28771
- W(y(ce), {
28771
+ q(y(ce), {
28772
28772
  class: "ms-auto",
28773
28773
  value: "$t:importData.close",
28774
28774
  onClick: Y[15] || (Y[15] = ($e) => P.value = !1)
@@ -28779,7 +28779,7 @@ ${D.length} values could not be automatically matched.`);
28779
28779
  }),
28780
28780
  _: 1
28781
28781
  }, 8, ["visible"]),
28782
- W(y(rr), {
28782
+ q(y(rr), {
28783
28783
  visible: v.value,
28784
28784
  "onUpdate:visible": Y[20] || (Y[20] = (de) => v.value = de),
28785
28785
  title: "Data Preview & Edit",
@@ -28787,7 +28787,7 @@ ${D.length} values could not be automatically matched.`);
28787
28787
  }, {
28788
28788
  default: _e(() => [
28789
28789
  M("div", null, [
28790
- W(y(vA), {
28790
+ q(y(vA), {
28791
28791
  modelValue: b.value,
28792
28792
  "onUpdate:modelValue": Y[17] || (Y[17] = (de) => b.value = de),
28793
28793
  class: "popupPreviewSpreadsheet",
@@ -28798,13 +28798,13 @@ ${D.length} values could not be automatically matched.`);
28798
28798
  M("div", null, [
28799
28799
  M("p", c9, " Showing all " + le(b.value.length) + " records. You can edit values directly. ", 1),
28800
28800
  M("div", d9, [
28801
- W(y(ce), {
28801
+ q(y(ce), {
28802
28802
  flat: "",
28803
28803
  thin: "",
28804
28804
  value: "$t:importData.cancel",
28805
28805
  onClick: Y[18] || (Y[18] = (de) => v.value = !1)
28806
28806
  }),
28807
- W(y(ce), {
28807
+ q(y(ce), {
28808
28808
  value: "$t:importData.importData",
28809
28809
  onClick: Y[19] || (Y[19] = (de) => Dt())
28810
28810
  })
@@ -28813,7 +28813,7 @@ ${D.length} values could not be automatically matched.`);
28813
28813
  ]),
28814
28814
  _: 1
28815
28815
  }, 8, ["visible"]),
28816
- W(y(rr), {
28816
+ q(y(rr), {
28817
28817
  visible: C.value,
28818
28818
  "onUpdate:visible": Y[28] || (Y[28] = (de) => C.value = de),
28819
28819
  title: "Configure Related Transformations",
@@ -28830,7 +28830,7 @@ ${D.length} values could not be automatically matched.`);
28830
28830
  ]),
28831
28831
  M("div", null, [
28832
28832
  M("div", null, [
28833
- W(y(ce), {
28833
+ q(y(ce), {
28834
28834
  thin: "",
28835
28835
  icon: "auto_awesome",
28836
28836
  value: "Autolink",
@@ -28856,7 +28856,7 @@ ${D.length} values could not be automatically matched.`);
28856
28856
  M("td", null, le(A.sourceValue), 1),
28857
28857
  M("td", null, le(A.targetValue), 1),
28858
28858
  M("td", null, [
28859
- it(W(y(ce), {
28859
+ it(q(y(ce), {
28860
28860
  thin: "",
28861
28861
  icon: "delete",
28862
28862
  color: "red",
@@ -28872,7 +28872,7 @@ ${D.length} values could not be automatically matched.`);
28872
28872
  ]))), 128)),
28873
28873
  M("tr", null, [
28874
28874
  M("td", null, [
28875
- (Xe = G[k.value.parentId]) != null && Xe[k.value.field.id] ? ($(), re(y(Yt), {
28875
+ (Xe = W[k.value.parentId]) != null && Xe[k.value.field.id] ? ($(), re(y(Yt), {
28876
28876
  key: 0,
28877
28877
  modelValue: I.value,
28878
28878
  "onUpdate:modelValue": Y[22] || (Y[22] = (A) => I.value = A),
@@ -28906,7 +28906,7 @@ ${D.length} values could not be automatically matched.`);
28906
28906
  ])
28907
28907
  ]),
28908
28908
  M("td", null, [
28909
- it(W(y(ce), {
28909
+ it(q(y(ce), {
28910
28910
  thin: "",
28911
28911
  icon: "add",
28912
28912
  color: "primary",
@@ -28923,7 +28923,7 @@ ${D.length} values could not be automatically matched.`);
28923
28923
  ])
28924
28924
  ]),
28925
28925
  M("div", null, [
28926
- W(y(ce), {
28926
+ q(y(ce), {
28927
28927
  value: "$t:importData.close",
28928
28928
  onClick: Y[27] || (Y[27] = (A) => C.value = !1)
28929
28929
  })
@@ -29144,7 +29144,7 @@ ${D.length} values could not be automatically matched.`);
29144
29144
  aside_frame: t.frame
29145
29145
  }, "overflow-hidden flex column flex-stretch gap-1 w100p pt-1 pb-05 h-100p"])
29146
29146
  }, [
29147
- W(u, {
29147
+ q(u, {
29148
29148
  to: "/",
29149
29149
  class: ue(["decoration-none flex px-05", {
29150
29150
  "gap-05": y(a).isOpen.value,
@@ -29178,7 +29178,7 @@ ${D.length} values could not be automatically matched.`);
29178
29178
  onClick: c.action
29179
29179
  }, {
29180
29180
  default: _e(() => [
29181
- W(y(We), {
29181
+ q(y(We), {
29182
29182
  name: c.icon,
29183
29183
  size: "1.2"
29184
29184
  }, null, 8, ["name"]),
@@ -29226,7 +29226,7 @@ ${D.length} values could not be automatically matched.`);
29226
29226
  onClick: r.action
29227
29227
  }, {
29228
29228
  default: _e(() => [
29229
- W(y(We), {
29229
+ q(y(We), {
29230
29230
  icon: r.icon,
29231
29231
  size: 1.4,
29232
29232
  class: "m-0 line-height-14"
@@ -29290,14 +29290,14 @@ ${D.length} values could not be automatically matched.`);
29290
29290
  return $(), L("div", {
29291
29291
  class: ue(["vh-100 relative p-05 bgl_sidebar", { wideNav: o.value }])
29292
29292
  }, [
29293
- W(y(ce), {
29293
+ q(y(ce), {
29294
29294
  thin: "",
29295
29295
  color: "white",
29296
29296
  class: "mb-05 absolute toggleNav z-2 border",
29297
29297
  icon: "keyboard_arrow_right",
29298
29298
  onClick: y(l)
29299
29299
  }, null, 8, ["onClick"]),
29300
- W(y(Gn), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
29300
+ q(y(Gn), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
29301
29301
  default: _e(() => [
29302
29302
  !o.value || !y(a)["brand-open"] ? Ae(i.$slots, "brand", { key: 0 }, void 0, !0) : z("", !0),
29303
29303
  o.value ? Ae(i.$slots, "brand-open", { key: 1 }, void 0, !0) : z("", !0),
@@ -29308,11 +29308,11 @@ ${D.length} values could not be automatically matched.`);
29308
29308
  ...c.action && { onClick: c.action }
29309
29309
  }, { class: "nav-button px-075 me-auto w-100" }), {
29310
29310
  default: _e(() => [
29311
- W(y(We), {
29311
+ q(y(We), {
29312
29312
  icon: c.icon,
29313
29313
  size: 1.4
29314
29314
  }, null, 8, ["icon"]),
29315
- W(ja, { name: "showP" }, {
29315
+ q(ja, { name: "showP" }, {
29316
29316
  default: _e(() => [
29317
29317
  i.open ? ($(), L("p", L9, le(c.label), 1)) : z("", !0)
29318
29318
  ]),
@@ -29450,7 +29450,7 @@ const F9 = { key: 0 }, CV = /* @__PURE__ */ Ee({
29450
29450
  }
29451
29451
  });
29452
29452
  return (c, d) => ($(), L(Se, null, [
29453
- W(y(yv), {
29453
+ q(y(yv), {
29454
29454
  modelValue: s.value,
29455
29455
  "onUpdate:modelValue": d[0] || (d[0] = (h) => s.value = h),
29456
29456
  flat: c.flat,
@@ -29859,20 +29859,20 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
29859
29859
  iconEnd: "keyboard_arrow_down"
29860
29860
  }, {
29861
29861
  trigger: _e(({ show: a }) => [
29862
- W(y(ce), {
29862
+ q(y(ce), {
29863
29863
  thin: "",
29864
29864
  flat: "",
29865
29865
  class: ue(r.class),
29866
29866
  onClick: (o) => a()
29867
29867
  }, {
29868
29868
  default: _e(() => [
29869
- W(y(We), {
29869
+ q(y(We), {
29870
29870
  name: r.icon,
29871
29871
  size: "0.8",
29872
29872
  style: { "margin-bottom": "-0.1rem" }
29873
29873
  }, null, 8, ["name"]),
29874
29874
  M("p", l6, le(r.label), 1),
29875
- W(y(We), {
29875
+ q(y(We), {
29876
29876
  name: "keyboard_arrow_down",
29877
29877
  size: "0.8",
29878
29878
  style: { "margin-bottom": "-0.1rem" }
@@ -29894,7 +29894,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
29894
29894
  }
29895
29895
  }, {
29896
29896
  default: _e(() => [
29897
- W(y(We), {
29897
+ q(y(We), {
29898
29898
  name: a.icon,
29899
29899
  size: "0.8",
29900
29900
  style: { "margin-bottom": "-0.1rem" }
@@ -29917,7 +29917,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
29917
29917
  }
29918
29918
  }, {
29919
29919
  default: _e(() => [
29920
- W(y(We), {
29920
+ q(y(We), {
29921
29921
  name: r.icon,
29922
29922
  size: "0.9",
29923
29923
  style: { "margin-bottom": "-0.1rem" }
@@ -29983,7 +29983,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
29983
29983
  class: ue(["fixed", d.value]),
29984
29984
  onClick: h
29985
29985
  }, null, 8, ["class"])) : z("", !0),
29986
- W(y(Gn), {
29986
+ q(y(Gn), {
29987
29987
  class: ue(["modal m_pt-0", { "pt-0": f.thin, "pt-1": !f.thin, "m_mt-5": s.value, "display-flex column": f.side }]),
29988
29988
  style: ze({ ...i.value, "--bgl-box-bg": "var(--bgl-popup-bg)" }),
29989
29989
  thin: f.thin,
@@ -30094,12 +30094,12 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30094
30094
  zIndex: 9999
30095
30095
  }, {
30096
30096
  footer: _e(() => [
30097
- W(y(ce), {
30097
+ q(y(ce), {
30098
30098
  color: d.value,
30099
30099
  value: u.value,
30100
30100
  onClick: p[0] || (p[0] = (f) => o(!1))
30101
30101
  }, null, 8, ["color", "value"]),
30102
- W(y(ce), {
30102
+ q(y(ce), {
30103
30103
  color: c.value,
30104
30104
  value: s.value,
30105
30105
  onClick: p[1] || (p[1] = (f) => o(!0))
@@ -30196,7 +30196,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30196
30196
  name: "footer",
30197
30197
  fn: _e(() => [
30198
30198
  M("div", p6, [
30199
- W(y(ce), {
30199
+ q(y(ce), {
30200
30200
  thin: "",
30201
30201
  flat: "",
30202
30202
  value: p.cancelText || "Cancel",
@@ -30267,7 +30267,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30267
30267
  onClick: r,
30268
30268
  onKeypress: Xt(r, ["enter"])
30269
30269
  }, [
30270
- W(y(We), {
30270
+ q(y(We), {
30271
30271
  icon: "chevron_right",
30272
30272
  class: "top-arrow"
30273
30273
  })
@@ -30285,7 +30285,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30285
30285
  }
30286
30286
  }, {
30287
30287
  default: _e(() => [
30288
- W(y(We), {
30288
+ q(y(We), {
30289
30289
  icon: l.icon
30290
30290
  }, null, 8, ["icon"]),
30291
30291
  M("div", y6, le(l.label), 1)
@@ -30305,7 +30305,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30305
30305
  }
30306
30306
  }, {
30307
30307
  default: _e(() => [
30308
- W(y(We), {
30308
+ q(y(We), {
30309
30309
  icon: l.icon
30310
30310
  }, null, 8, ["icon"]),
30311
30311
  M("div", $6, le(l.label), 1)
@@ -30467,7 +30467,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30467
30467
  }, null, 8, ["class", "value", "onClick"])) : b.type === "ellipsis" ? ($(), L("div", T6, " ... ")) : z("", !0)
30468
30468
  ], 64))), 128))
30469
30469
  ], 64)) : ($(), L(Se, { key: 1 }, [
30470
- W(y(ce), {
30470
+ q(y(ce), {
30471
30471
  flat: "",
30472
30472
  thin: "",
30473
30473
  disabled: n.value <= 1,
@@ -30475,7 +30475,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30475
30475
  onClick: h
30476
30476
  }, null, 8, ["disabled"]),
30477
30477
  M("span", A6, le(p((g = r.value) == null ? void 0 : g.start)) + "-" + le(p((v = r.value) == null ? void 0 : v.end)) + " / " + le(t.totalItems), 1),
30478
- W(y(ce), {
30478
+ q(y(ce), {
30479
30479
  flat: "",
30480
30480
  thin: "",
30481
30481
  disabled: n.value >= i.value,
@@ -30629,7 +30629,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30629
30629
  _: 2
30630
30630
  }, 1024)) : Ae(t.$slots, "default", { key: 0 }, () => [
30631
30631
  M("div", O6, [
30632
- W(Va)
30632
+ q(Va)
30633
30633
  ])
30634
30634
  ], !0)
30635
30635
  ]),
@@ -30840,7 +30840,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30840
30840
  const Me = s.value;
30841
30841
  if (E.value.loop)
30842
30842
  if (s.value - ve < 0) {
30843
- G();
30843
+ W();
30844
30844
  const nt = s.value + i.value.length, yt = w.value, Lt = nt + yt, Jt = (E.value.rtl ? 1 : -1) * Lt * (u.value / w.value), Vt = E.value.draggable ? f.value.endX - f.value.startX : 0;
30845
30845
  l.value && (l.value.style[d.value] = `translate3d(${Jt + Vt}px, 0, 0)`), s.value = nt - ve;
30846
30846
  } else
@@ -30855,7 +30855,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30855
30855
  const Me = s.value;
30856
30856
  if (E.value.loop)
30857
30857
  if (s.value + ve > i.value.length - w.value) {
30858
- G();
30858
+ W();
30859
30859
  const nt = s.value - i.value.length, yt = w.value, Lt = nt + yt, Jt = (E.value.rtl ? 1 : -1) * Lt * (u.value / w.value), Vt = E.value.draggable ? f.value.endX - f.value.startX : 0;
30860
30860
  l.value && (l.value.style[d.value] = `translate3d(${Jt + Vt}px, 0, 0)`), s.value = nt + ve;
30861
30861
  } else
@@ -30870,7 +30870,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30870
30870
  const Me = s.value;
30871
30871
  s.value = E.value.loop ? ve % i.value.length : Math.min(Math.max(ve, 0), i.value.length - w.value), Me !== s.value && (B(), E.value.onChange());
30872
30872
  }
30873
- function G() {
30873
+ function W() {
30874
30874
  l.value && (l.value.style.webkitTransition = `all 0ms ${E.value.easing}`, l.value.style.transition = `all 0ms ${E.value.easing}`);
30875
30875
  }
30876
30876
  function K() {
@@ -30927,7 +30927,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30927
30927
  }
30928
30928
  function Ge(ve) {
30929
30929
  if (!(p.value || !x.value) && (ve.stopPropagation(), f.value.letItGo === null && (f.value.letItGo = Math.abs(f.value.startY - ve.touches[0].pageY) < Math.abs(f.value.startX - ve.touches[0].pageX)), h.value && f.value.letItGo && (ve.preventDefault(), f.value.endX = ve.touches[0].pageX, Math.abs(f.value.endX - f.value.startX) > Np && (m.value = !0, f.value.preventClick = !0), l.value))) {
30930
- G();
30930
+ W();
30931
30931
  const nt = (E.value.loop ? s.value + w.value : s.value) * (u.value / w.value), yt = f.value.endX - f.value.startX, Lt = E.value.rtl ? nt + yt : nt - yt;
30932
30932
  l.value.style[d.value] = `translate3d(${(E.value.rtl ? 1 : -1) * Lt}px, 0, 0)`;
30933
30933
  }
@@ -30965,7 +30965,7 @@ const K9 = ["width", "height"], J9 = ["r", "stroke", "stroke-width"], Z9 = ["r",
30965
30965
  }
30966
30966
  function Ye(ve) {
30967
30967
  if (!(p.value || !x.value) && (ve.preventDefault(), h.value && (f.value.endX = ve.pageX, Math.abs(f.value.endX - f.value.startX) > Np && (m.value = !0, f.value.preventClick = !0), o.value && (o.value.style.cursor = "-webkit-grabbing"), l.value))) {
30968
- G();
30968
+ W();
30969
30969
  const nt = (E.value.loop ? s.value + w.value : s.value) * (u.value / w.value), yt = f.value.endX - f.value.startX, Lt = E.value.rtl ? nt + yt : nt - yt;
30970
30970
  l.value.style[d.value] = `translate3d(${(E.value.rtl ? 1 : -1) * Lt}px, 0, 0)`;
30971
30971
  }
@@ -31558,7 +31558,7 @@ const Y6 = ["value"], X6 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder
31558
31558
  onDblclick: (b) => s.$emit("cellEditStart", d, n(v)),
31559
31559
  onKeydown: (b) => s.$emit("cellKeyDown", b, d, n(v))
31560
31560
  }, [
31561
- W(Q6, {
31561
+ q(Q6, {
31562
31562
  col: g,
31563
31563
  row: c,
31564
31564
  "row-index": d,
@@ -31661,7 +31661,7 @@ const Y6 = ["value"], X6 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder
31661
31661
  }
31662
31662
  V.value = null, H.value = null;
31663
31663
  }
31664
- function G(Re = !1) {
31664
+ function W(Re = !1) {
31665
31665
  kt(() => {
31666
31666
  X(Re), kt(() => {
31667
31667
  var Ye;
@@ -31723,7 +31723,7 @@ const Y6 = ["value"], X6 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder
31723
31723
  M("div", cA, [
31724
31724
  Re.label ? ($(), L("label", dA, le(Re.label), 1)) : z("", !0),
31725
31725
  M("div", fA, [
31726
- W(y(Ct), {
31726
+ q(y(Ct), {
31727
31727
  ref_key: "searchInputRef",
31728
31728
  ref: me,
31729
31729
  modelValue: oe.value,
@@ -31732,42 +31732,42 @@ const Y6 = ["value"], X6 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder
31732
31732
  placeholder: "Search",
31733
31733
  class: "m-0 max-w200px"
31734
31734
  }, null, 8, ["modelValue"]),
31735
- W(y(Xn), {
31735
+ q(y(Xn), {
31736
31736
  flat: "",
31737
31737
  thin: "",
31738
31738
  icon: "more_vert"
31739
31739
  }, {
31740
31740
  default: _e(() => [
31741
- W(y(qr), {
31741
+ q(y(qr), {
31742
31742
  title: "Paste",
31743
31743
  icon: "paste",
31744
31744
  onClick: y(N)
31745
31745
  }, null, 8, ["onClick"]),
31746
- W(y(qr), {
31746
+ q(y(qr), {
31747
31747
  title: "Copy",
31748
31748
  icon: "copy",
31749
31749
  onClick: y(I)
31750
31750
  }, null, 8, ["onClick"]),
31751
- W(y(qr), {
31751
+ q(y(qr), {
31752
31752
  title: "Undo",
31753
31753
  icon: "undo",
31754
31754
  disabled: !y(x),
31755
31755
  onClick: y(C)
31756
31756
  }, null, 8, ["disabled", "onClick"]),
31757
- W(y(qr), {
31757
+ q(y(qr), {
31758
31758
  title: "Redo",
31759
31759
  icon: "redo",
31760
31760
  disabled: !y(O),
31761
31761
  onClick: y(k)
31762
31762
  }, null, 8, ["disabled", "onClick"]),
31763
- W(y(kd), {
31763
+ q(y(kd), {
31764
31764
  modelValue: y(a),
31765
31765
  "onUpdate:modelValue": Ye[1] || (Ye[1] = (he) => mo(a) ? a.value = he : null),
31766
31766
  label: y(r)("spreadsheet.wrapText")
31767
31767
  }, null, 8, ["modelValue", "label"]),
31768
- W(y(Xn), { placement: "auto-end" }, {
31768
+ q(y(Xn), { placement: "auto-end" }, {
31769
31769
  trigger: _e(({ show: he }) => [
31770
- W(y(qr), {
31770
+ q(y(qr), {
31771
31771
  title: "Column Visibility",
31772
31772
  icon: "view_column",
31773
31773
  onClick: (De) => he()
@@ -31776,14 +31776,14 @@ const Y6 = ["value"], X6 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder
31776
31776
  default: _e(() => [
31777
31777
  M("div", pA, [
31778
31778
  M("div", hA, [
31779
- W(y(ce), {
31779
+ q(y(ce), {
31780
31780
  flat: "",
31781
31781
  thin: "",
31782
31782
  small: "",
31783
31783
  value: "$t:spreadsheet.selectAll",
31784
31784
  onClick: Ye[2] || (Ye[2] = (he) => d.value = y(c).map((De) => De.key))
31785
31785
  }),
31786
- W(y(ce), {
31786
+ q(y(ce), {
31787
31787
  flat: "",
31788
31788
  thin: "",
31789
31789
  small: "",
@@ -31836,11 +31836,11 @@ const Y6 = ["value"], X6 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder
31836
31836
  onCellEditStart: ie,
31837
31837
  onCellKeyDown: Ge,
31838
31838
  onUpdateCell: K,
31839
- onStopEditing: G,
31839
+ onStopEditing: W,
31840
31840
  onSetInputRef: pe
31841
31841
  }, null, 8, ["columns", "rows", "column-widths", "sort-column", "sort-direction", "selection-start", "selection-end", "editing-cell", "wrap-text", "onSortColumn", "onResizeStart", "onSelectRow", "onCellMouseDown", "onCellMouseOver"])) : z("", !0),
31842
31842
  M("div", gA, [
31843
- W(Op, {
31843
+ q(Op, {
31844
31844
  columns: y(u),
31845
31845
  rows: ke.value,
31846
31846
  "is-fixed": !1,
@@ -31862,7 +31862,7 @@ const Y6 = ["value"], X6 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder
31862
31862
  onCellEditStart: ie,
31863
31863
  onCellKeyDown: Ge,
31864
31864
  onUpdateCell: K,
31865
- onStopEditing: G,
31865
+ onStopEditing: W,
31866
31866
  onSetInputRef: pe
31867
31867
  }, null, 8, ["columns", "rows", "show-row-numbers", "column-widths", "empty-message", "sort-column", "sort-direction", "selection-start", "selection-end", "editing-cell", "base-column-index", "wrap-text", "onSortColumn", "onResizeStart", "onSelectRow", "onCellMouseDown", "onCellMouseOver"])
31868
31868
  ])
@@ -33316,9 +33316,9 @@ function jA() {
33316
33316
  else {
33317
33317
  const {
33318
33318
  clientWidth: X,
33319
- offsetWidth: G
33319
+ offsetWidth: W
33320
33320
  } = F;
33321
- P = N + V + H + B + pe + (G - X);
33321
+ P = N + V + H + B + pe + (W - X);
33322
33322
  }
33323
33323
  }
33324
33324
  k && (F.style.transform = k), I && (F.style.webkitTransform = I), n.roundLengths && (P = Math.floor(P));
@@ -36190,7 +36190,7 @@ const Zx = {
36190
36190
  isLast: s,
36191
36191
  currentIndex: u
36192
36192
  }), (w, E) => ($(), L("div", eD, [
36193
- W(y(Zx), xt(m.value, {
36193
+ q(y(Zx), xt(m.value, {
36194
36194
  class: "swiper",
36195
36195
  onSwiper: S,
36196
36196
  onSlideChange: g,
@@ -36232,7 +36232,7 @@ const Zx = {
36232
36232
  Ae(w.$slots, "prev-button", {
36233
36233
  prev: () => b("prev")
36234
36234
  }, () => [
36235
- W(y(We), {
36235
+ q(y(We), {
36236
36236
  name: "chevron_left",
36237
36237
  class: "user-select-none hover z-99 color-primary",
36238
36238
  size: 2
@@ -36246,7 +36246,7 @@ const Zx = {
36246
36246
  Ae(w.$slots, "next-button", {
36247
36247
  next: () => b("next")
36248
36248
  }, () => [
36249
- W(y(We), {
36249
+ q(y(We), {
36250
36250
  name: "chevron_right",
36251
36251
  class: "user-select-none hover z-99 color-primary",
36252
36252
  size: 2
@@ -36389,7 +36389,7 @@ const dD = /* @__PURE__ */ Ee({
36389
36389
  };
36390
36390
  });
36391
36391
  Fe(() => f.value, (se) => {
36392
- const { x: Oe, y: j } = G();
36392
+ const { x: Oe, y: j } = W();
36393
36393
  u.value = Math.max(-Oe, Math.min(Oe, u.value)), d.value = Math.max(-j, Math.min(j, d.value)), se !== 1 && (T.value = !1);
36394
36394
  });
36395
36395
  function N() {
@@ -36421,7 +36421,7 @@ const dD = /* @__PURE__ */ Ee({
36421
36421
  if (!T.value) {
36422
36422
  const Pe = j - C.value;
36423
36423
  Pe > 0 && (O.value = ee / Pe, F.value = we / Pe);
36424
- const tt = G(), vt = tt.x, et = tt.y, ge = u.value + ee / o.value, Te = d.value + we / l.value;
36424
+ const tt = W(), vt = tt.x, et = tt.y, ge = u.value + ee / o.value, Te = d.value + we / l.value;
36425
36425
  u.value = Math.max(-vt, Math.min(vt, ge)), d.value = Math.max(-et, Math.min(et, Te)), C.value = j;
36426
36426
  }
36427
36427
  }
@@ -36432,7 +36432,7 @@ const dD = /* @__PURE__ */ Ee({
36432
36432
  O.value = 0, F.value = 0, k.value && (cancelAnimationFrame(k.value), k.value = void 0);
36433
36433
  return;
36434
36434
  }
36435
- const se = G(), Oe = u.value + O.value * 16 / o.value, j = d.value + F.value * 16 / l.value;
36435
+ const se = W(), Oe = u.value + O.value * 16 / o.value, j = d.value + F.value * 16 / l.value;
36436
36436
  u.value = Math.max(-se.x, Math.min(se.x, Oe)), d.value = Math.max(-se.y, Math.min(se.y, j)), O.value *= 0.95, F.value *= 0.95, k.value = requestAnimationFrame(pe);
36437
36437
  }
36438
36438
  const ie = go(() => {
@@ -36440,11 +36440,11 @@ const dD = /* @__PURE__ */ Ee({
36440
36440
  }, 50);
36441
36441
  function X() {
36442
36442
  if (f.value < e.minScale ? f.value = e.minScale : f.value > e.maxScale && V(e.maxScale / f.value), e.limitTranslation) {
36443
- const se = G();
36443
+ const se = W();
36444
36444
  Math.abs(u.value) > se.x && (u.value *= se.x / Math.abs(u.value)), Math.abs(d.value) > se.y && (d.value *= se.y / Math.abs(d.value));
36445
36445
  }
36446
36446
  }
36447
- function G() {
36447
+ function W() {
36448
36448
  const se = Math.max(0, (f.value - 1) / 2);
36449
36449
  return {
36450
36450
  x: se,
@@ -37150,7 +37150,7 @@ const kD = {
37150
37150
  onClose: c
37151
37151
  }, {
37152
37152
  footer: _e(() => [
37153
- W(ce, {
37153
+ q(ce, {
37154
37154
  flat: "",
37155
37155
  onClick: u
37156
37156
  }, {
@@ -37159,7 +37159,7 @@ const kD = {
37159
37159
  ]),
37160
37160
  _: 1
37161
37161
  }),
37162
- W(ce, {
37162
+ q(ce, {
37163
37163
  color: d.confirmColor,
37164
37164
  onClick: s
37165
37165
  }, {
@@ -37569,7 +37569,7 @@ function ZD(e, t = {}) {
37569
37569
  we += ee;
37570
37570
  return we;
37571
37571
  }
37572
- function G(j) {
37572
+ function W(j) {
37573
37573
  let ee = "";
37574
37574
  for (; ; ) {
37575
37575
  const we = j.currentChar();
@@ -37768,7 +37768,7 @@ function ZD(e, t = {}) {
37768
37768
  if (O(j))
37769
37769
  return we = h(ee, 1, he(j)), ee.braceNest = 0, ee.inLinked = !1, we;
37770
37770
  if (F(j))
37771
- return h(ee, 0, G(j));
37771
+ return h(ee, 0, W(j));
37772
37772
  break;
37773
37773
  }
37774
37774
  }
@@ -39552,7 +39552,7 @@ function p0(e, t, n) {
39552
39552
  }
39553
39553
  }
39554
39554
  function vh(e) {
39555
- return W(gm, null, e, 0);
39555
+ return q(gm, null, e, 0);
39556
39556
  }
39557
39557
  function po() {
39558
39558
  const e = "currentInstance";
@@ -39674,7 +39674,7 @@ function zd(e = {}) {
39674
39674
  function X(...ge) {
39675
39675
  return ie((Te) => Reflect.apply(gh, null, [Te, ...ge]), () => xc(...ge), "translate", (Te) => Reflect.apply(Te.t, Te, [...ge]), (Te) => Te, (Te) => qe(Te));
39676
39676
  }
39677
- function G(...ge) {
39677
+ function W(...ge) {
39678
39678
  const [Te, ft, Dt] = ge;
39679
39679
  if (Dt && !$t(Dt))
39680
39680
  throw On(Ft.INVALID_ARGUMENT);
@@ -39851,7 +39851,7 @@ function zd(e = {}) {
39851
39851
  setMissingHandler: B,
39852
39852
  [c0]: Re
39853
39853
  };
39854
- return et.datetimeFormats = k, et.numberFormats = I, et.rt = G, et.te = Ye, et.tm = De, et.d = K, et.n = oe, et.getDateTimeFormat = j, et.setDateTimeFormat = ee, et.mergeDateTimeFormat = we, et.getNumberFormat = Pe, et.setNumberFormat = tt, et.mergeNumberFormat = vt, et[d0] = n, et[Lc] = He, et[Mc] = Be, et[Pc] = Ge, process.env.NODE_ENV !== "production" && (et[za] = (ge) => {
39854
+ return et.datetimeFormats = k, et.numberFormats = I, et.rt = W, et.te = Ye, et.tm = De, et.d = K, et.n = oe, et.getDateTimeFormat = j, et.setDateTimeFormat = ee, et.mergeDateTimeFormat = we, et.getNumberFormat = Pe, et.setNumberFormat = tt, et.mergeNumberFormat = vt, et[d0] = n, et[Lc] = He, et[Mc] = Be, et[Pc] = Ge, process.env.NODE_ENV !== "production" && (et[za] = (ge) => {
39855
39855
  T.__v_emitter = ge;
39856
39856
  }, et[$l] = () => {
39857
39857
  T.__v_emitter = void 0;
@@ -41996,7 +41996,7 @@ const b0 = /* @__PURE__ */ Ee({
41996
41996
  ref_for: !0
41997
41997
  }, P(H, V)), {
41998
41998
  default: _e(({ item: pe }) => [
41999
- W(N, {
41999
+ q(N, {
42000
42000
  modelValue: pe.value,
42001
42001
  "onUpdate:modelValue": (ie) => pe.value = ie,
42002
42002
  schema: H._config.schema,
@@ -42142,7 +42142,7 @@ const b0 = /* @__PURE__ */ Ee({
42142
42142
  _: 1
42143
42143
  }, 8, ["loading", "disabled"])) : z("", !0),
42144
42144
  _[2] || (_[2] = M("div", { class: "flex-grow-1" }, null, -1)),
42145
- W(ce, {
42145
+ q(ce, {
42146
42146
  flat: "",
42147
42147
  disabled: l.value || i.value,
42148
42148
  onClick: p
@@ -42152,7 +42152,7 @@ const b0 = /* @__PURE__ */ Ee({
42152
42152
  ]),
42153
42153
  _: 1
42154
42154
  }, 8, ["disabled"]),
42155
- W(ce, {
42155
+ q(ce, {
42156
42156
  color: "primary",
42157
42157
  loading: l.value,
42158
42158
  disabled: i.value,
@@ -42169,7 +42169,7 @@ const b0 = /* @__PURE__ */ Ee({
42169
42169
  onSubmit: gt(d, ["prevent"])
42170
42170
  }, [
42171
42171
  s.value ? ($(), L("div", HI, le(s.value), 1)) : z("", !0),
42172
- W(b0, {
42172
+ q(b0, {
42173
42173
  ref_key: "formFlowRef",
42174
42174
  ref: u,
42175
42175
  modelValue: o.value,
@@ -43099,7 +43099,7 @@ const ZI = { class: "multi-step-form" }, QI = { class: "step-progress" }, eN = [
43099
43099
  stepKey: i.value,
43100
43100
  errors: g.value
43101
43101
  }, () => [
43102
- W(b0, {
43102
+ q(b0, {
43103
43103
  modelValue: l.value,
43104
43104
  "onUpdate:modelValue": F[0] || (F[0] = (C) => l.value = C),
43105
43105
  schema: _.value,
@@ -44772,7 +44772,7 @@ function HN(e, t, n, r, a, o) {
44772
44772
  show: p,
44773
44773
  hide: f
44774
44774
  }),
44775
- W(l, {
44775
+ q(l, {
44776
44776
  ref: "popperContent",
44777
44777
  "popper-id": s,
44778
44778
  theme: e.finalTheme,
@@ -44912,7 +44912,7 @@ function YN(e, t, n, r, a, o) {
44912
44912
  classes: _,
44913
44913
  result: g
44914
44914
  }) => [
44915
- W(l, {
44915
+ q(l, {
44916
44916
  ref: "popperContent",
44917
44917
  class: ue({
44918
44918
  "v-popper--tooltip-loading": e.loading
@@ -45123,28 +45123,28 @@ const rO = {
45123
45123
  class: "flex start w-100 space-between p-025 z-9",
45124
45124
  onClick: d
45125
45125
  }, [
45126
- W(y(ce), {
45126
+ q(y(ce), {
45127
45127
  flat: "",
45128
45128
  class: "color-white",
45129
45129
  icon: "close",
45130
45130
  onClick: d
45131
45131
  }),
45132
45132
  (_ = l.value) != null && _.enableZoom && ((g = l.value) == null ? void 0 : g.type) === "image" ? ($(), L("div", aO, [
45133
- W(y(ce), {
45133
+ q(y(ce), {
45134
45134
  flat: "",
45135
45135
  class: "color-white",
45136
45136
  icon: "remove",
45137
45137
  disabled: i.value === 1,
45138
45138
  onClick: m[0] || (m[0] = (x) => i.value--)
45139
45139
  }, null, 8, ["disabled"]),
45140
- W(y(ce), {
45140
+ q(y(ce), {
45141
45141
  flat: "",
45142
45142
  class: "color-white",
45143
45143
  icon: "zoom_in",
45144
45144
  disabled: i.value === 1,
45145
45145
  onClick: m[1] || (m[1] = (x) => i.value = 1)
45146
45146
  }, null, 8, ["disabled"]),
45147
- W(y(ce), {
45147
+ q(y(ce), {
45148
45148
  flat: "",
45149
45149
  class: "color-white",
45150
45150
  icon: "add",
@@ -45214,7 +45214,7 @@ const rO = {
45214
45214
  }, ["stop"]))
45215
45215
  }, {
45216
45216
  default: _e(() => [
45217
- W(y(cl), {
45217
+ q(y(cl), {
45218
45218
  draggable: !1,
45219
45219
  src: x == null ? void 0 : x.src,
45220
45220
  alt: "Preview",
@@ -45238,13 +45238,13 @@ const rO = {
45238
45238
  }, null, 8, sO)
45239
45239
  ])) : ($(), L("div", uO, [
45240
45240
  M("div", cO, [
45241
- W(y(We), {
45241
+ q(y(We), {
45242
45242
  class: "m-0 m_none",
45243
45243
  icon: "draft",
45244
45244
  size: 10,
45245
45245
  weight: "12"
45246
45246
  }),
45247
- W(y(We), {
45247
+ q(y(We), {
45248
45248
  class: "m-0 none m_block m_-mb-1",
45249
45249
  icon: "draft",
45250
45250
  size: 4,
@@ -45259,7 +45259,7 @@ const rO = {
45259
45259
  m[10] || (m[10] = Ze(" Type: ")),
45260
45260
  M("span", mO, le(x == null ? void 0 : x.type), 1)
45261
45261
  ]),
45262
- W(y(ce), {
45262
+ q(y(ce), {
45263
45263
  href: x == null ? void 0 : x.src,
45264
45264
  target: "_blank",
45265
45265
  round: "",
@@ -45273,14 +45273,14 @@ const rO = {
45273
45273
  ])
45274
45274
  ]),
45275
45275
  "prev-button": _e(({ prev: x }) => [
45276
- W(y(ce), {
45276
+ q(y(ce), {
45277
45277
  icon: "arrow_back",
45278
45278
  color: "black",
45279
45279
  onClick: x
45280
45280
  }, null, 8, ["onClick"])
45281
45281
  ]),
45282
45282
  "next-button": _e(({ next: x }) => [
45283
- W(y(ce), {
45283
+ q(y(ce), {
45284
45284
  icon: "arrow_forward",
45285
45285
  color: "black",
45286
45286
  onClick: x
@@ -46125,7 +46125,7 @@ function _R(e, t) {
46125
46125
  const n = Sn("Toast"), r = Sn("VtTransition");
46126
46126
  return $(), L("div", null, [
46127
46127
  ($(!0), L(Se, null, Ie(e.positions, (a) => ($(), L("div", { key: a }, [
46128
- W(r, {
46128
+ q(r, {
46129
46129
  transition: e.defaults.transition,
46130
46130
  class: ue(e.getClasses(a))
46131
46131
  }, {
@@ -46251,7 +46251,7 @@ const p1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
46251
46251
  onClick: n[0] || (n[0] = //@ts-ignore
46252
46252
  (...r) => t.closeToast && t.closeToast(...r))
46253
46253
  }, [
46254
- W(y(We), { icon: "close" })
46254
+ q(y(We), { icon: "close" })
46255
46255
  ])) : z("", !0)
46256
46256
  ], 2));
46257
46257
  }