codesaaz-core 0.0.85 → 0.0.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { hasInjectionContext as Yl, inject as et, ref as $, watch as $e, reactive as Nt, effectScope as Xl, isRef as Gt, isReactive as ss, toRaw as Jl, getCurrentScope as Ql, onScopeDispose as Zl, nextTick as mt, toRefs as eu, markRaw as tu, computed as Z, mergeModels as ze, useModel as Ze, resolveComponent as G, openBlock as b, createElementBlock as S, Fragment as oe, createElementVNode as w, createTextVNode as Je, toDisplayString as X, createCommentVNode as V, createBlock as M, renderList as Oe, createVNode as H, toValue as Ee, unref as Y, onMounted as Ve, provide as an, readonly as ls, watchEffect as Io, shallowRef as nu, withCtx as ee, onUpdated as us, normalizeProps as Yt, guardReactiveProps as ho, renderSlot as ce, createSlots as Jn, withKeys as Ur, withModifiers as ko, withDirectives as wt, vShow as ou, resolveDirective as Hr, normalizeClass as he, resolveDynamicComponent as Re, mergeProps as re, defineComponent as Pn, h as Qe, shallowReactive as Cr, onBeforeUnmount as cs, useId as ru, getCurrentInstance as ds, onUnmounted as iu, cloneVNode as au, Teleport as su, Transition as lu, normalizeStyle as Qn, vModelText as Bn, vModelCheckbox as fs, createApp as uu } from "vue";
2
- import { useRoute as ln, useRouter as cu } from "vue-router";
1
+ import { hasInjectionContext as Yl, inject as tt, ref as $, watch as $e, reactive as Nt, effectScope as Xl, isRef as Gt, isReactive as ss, toRaw as Jl, getCurrentScope as Ql, onScopeDispose as Zl, nextTick as mt, toRefs as eu, markRaw as tu, computed as Z, mergeModels as ze, useModel as et, resolveComponent as G, openBlock as b, createElementBlock as S, Fragment as oe, createElementVNode as w, createTextVNode as Je, toDisplayString as X, createCommentVNode as V, createBlock as M, renderList as Oe, createVNode as H, toValue as Ee, unref as Y, onMounted as Ve, provide as sn, readonly as ls, watchEffect as Io, shallowRef as nu, withCtx as ee, onUpdated as us, normalizeProps as Yt, guardReactiveProps as ho, renderSlot as ce, createSlots as Jn, withKeys as Ur, withModifiers as ko, withDirectives as wt, vShow as ou, resolveDirective as Hr, normalizeClass as he, resolveDynamicComponent as Re, mergeProps as re, defineComponent as Pn, h as Ze, shallowReactive as Cr, onBeforeUnmount as cs, useId as ru, getCurrentInstance as ds, onUnmounted as iu, cloneVNode as au, Teleport as su, Transition as lu, normalizeStyle as Qn, vModelText as Bn, vModelCheckbox as fs, createApp as uu } from "vue";
2
+ import { useRoute as un, useRouter as cu } from "vue-router";
3
3
  import { InputText as ui } from "primevue";
4
4
  /*!
5
5
  * pinia v2.3.1
@@ -51,7 +51,7 @@ const pu = (
51
51
  function mu(e) {
52
52
  return !Er(e) || !e.hasOwnProperty(pu);
53
53
  }
54
- const { assign: tn } = Object;
54
+ const { assign: nn } = Object;
55
55
  function gu(e) {
56
56
  return !!(Gt(e) && e.effect);
57
57
  }
@@ -61,7 +61,7 @@ function hu(e, t, n, o) {
61
61
  function l() {
62
62
  s || (n.state.value[e] = r ? r() : {});
63
63
  const c = eu(n.state.value[e]);
64
- return tn(c, i, Object.keys(a || {}).reduce((d, f) => (d[f] = tu(Z(() => {
64
+ return nn(c, i, Object.keys(a || {}).reduce((d, f) => (d[f] = tu(Z(() => {
65
65
  Wr(n);
66
66
  const p = n._s.get(e);
67
67
  return a[f].call(p, p);
@@ -71,7 +71,7 @@ function hu(e, t, n, o) {
71
71
  }
72
72
  function gs(e, t, n = {}, o, r, i) {
73
73
  let a;
74
- const s = tn({ actions: {} }, n), u = { deep: !0 };
74
+ const s = nn({ actions: {} }, n), u = { deep: !0 };
75
75
  let l, c, d = [], f = [], p;
76
76
  const m = o.state.value[e];
77
77
  !i && !m && (o.state.value[e] = {}), $({});
@@ -96,7 +96,7 @@ function gs(e, t, n = {}, o, r, i) {
96
96
  const y = i ? function() {
97
97
  const { state: k } = n, E = k ? k() : {};
98
98
  this.$patch((I) => {
99
- tn(I, E);
99
+ nn(I, E);
100
100
  });
101
101
  } : (
102
102
  /* istanbul ignore next */
@@ -147,7 +147,7 @@ function gs(e, t, n = {}, o, r, i) {
147
147
  type: Kn.direct,
148
148
  events: p
149
149
  }, _);
150
- }, tn({}, u, k)));
150
+ }, nn({}, u, k)));
151
151
  return E;
152
152
  },
153
153
  $dispose: x
@@ -163,15 +163,15 @@ function gs(e, t, n = {}, o, r, i) {
163
163
  O[v] = E, s.actions[v] = k;
164
164
  }
165
165
  }
166
- return tn(F, O), tn(Jl(F), O), Object.defineProperty(F, "$state", {
166
+ return nn(F, O), nn(Jl(F), O), Object.defineProperty(F, "$state", {
167
167
  get: () => o.state.value[e],
168
168
  set: (v) => {
169
169
  h((k) => {
170
- tn(k, v);
170
+ nn(k, v);
171
171
  });
172
172
  }
173
173
  }), o._p.forEach((v) => {
174
- tn(F, a.run(() => v({
174
+ nn(F, a.run(() => v({
175
175
  store: F,
176
176
  app: o._a,
177
177
  pinia: o,
@@ -189,11 +189,11 @@ function qr(e, t, n) {
189
189
  const l = Yl();
190
190
  return s = // in test mode, ignore the argument provided as we can always retrieve a
191
191
  // pinia instance with getActivePinia()
192
- s || (l ? et(du, null) : null), s && Wr(s), s = ps, s._s.has(o) || (i ? gs(o, t, r, s) : hu(o, r, s)), s._s.get(o);
192
+ s || (l ? tt(du, null) : null), s && Wr(s), s = ps, s._s.has(o) || (i ? gs(o, t, r, s) : hu(o, r, s)), s._s.get(o);
193
193
  }
194
194
  return a.$id = o, a;
195
195
  }
196
- const tt = /* @__PURE__ */ qr("globalConfigsStore", {
196
+ const Qe = /* @__PURE__ */ qr("globalConfigsStore", {
197
197
  state: () => ({
198
198
  globalConfigs: {}
199
199
  }),
@@ -1928,8 +1928,8 @@ function $i(e = {}) {
1928
1928
  ...e
1929
1929
  };
1930
1930
  }
1931
- function un() {
1932
- tt();
1931
+ function Xt() {
1932
+ Qe();
1933
1933
  const e = Kc(), t = Ge.create({
1934
1934
  headers: $i()
1935
1935
  });
@@ -1981,7 +1981,7 @@ function un() {
1981
1981
  };
1982
1982
  }
1983
1983
  function Bt() {
1984
- const e = tt(), { get: t, post: n, put: o, del: r } = un(), i = () => e.getAppId();
1984
+ const e = Qe(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
1985
1985
  return {
1986
1986
  getEntityRecords: async (g) => {
1987
1987
  const h = i();
@@ -2165,7 +2165,7 @@ const nt = (e, t) => {
2165
2165
  }),
2166
2166
  emits: /* @__PURE__ */ ze(["input"], ["update:modelValue"]),
2167
2167
  setup(e, { emit: t }) {
2168
- const n = Ze(e, "modelValue"), o = t, r = (i) => {
2168
+ const n = et(e, "modelValue"), o = t, r = (i) => {
2169
2169
  o("input", i.name);
2170
2170
  };
2171
2171
  if (e.column && !e.column.fieldType && !e.column.inputComponent) {
@@ -2218,19 +2218,19 @@ const nt = (e, t) => {
2218
2218
  key: 1,
2219
2219
  modelValue: n.value,
2220
2220
  "onUpdate:modelValue": a[2] || (a[2] = (h) => n.value = h),
2221
+ mode: "decimal",
2221
2222
  id: e.column.name,
2222
2223
  name: e.column.name,
2223
2224
  allowEmpty: !0,
2224
2225
  format: !1,
2225
2226
  onInput: a[3] || (a[3] = (h) => r(e.column)),
2226
2227
  invalid: ((f = e.errors) == null ? void 0 : f.length) > 0
2227
- }, null, 8, ["modelValue", "id", "name", "invalid"])) : e.column.type.toLowerCase() == "input_float" ? (b(), M(u, {
2228
+ }, null, 8, ["modelValue", "id", "name", "invalid"])) : e.column.inputComponent.toLowerCase() == "input_float" ? (b(), M(u, {
2228
2229
  key: 2,
2229
- type: "decimal",
2230
- minFractionDigits: 1,
2230
+ minFractionDigits: 2,
2231
+ maxFractionDigits: 5,
2231
2232
  id: e.column.name,
2232
2233
  allowEmpty: !0,
2233
- format: !1,
2234
2234
  name: e.column.name,
2235
2235
  onInput: a[4] || (a[4] = (h) => r(e.column)),
2236
2236
  invalid: ((p = e.errors) == null ? void 0 : p.length) > 0
@@ -2266,7 +2266,7 @@ const nt = (e, t) => {
2266
2266
  ], 64);
2267
2267
  };
2268
2268
  }
2269
- }, Jo = /* @__PURE__ */ nt(od, [["__scopeId", "data-v-d62083ae"]]);
2269
+ }, Jo = /* @__PURE__ */ nt(od, [["__scopeId", "data-v-8a5ef973"]]);
2270
2270
  /**
2271
2271
  * vee-validate v4.15.0
2272
2272
  * (c) 2024 Abdelrahman Awad
@@ -2347,7 +2347,7 @@ const ld = Symbol("vee-validate-form"), ud = Symbol("vee-validate-form-context")
2347
2347
  function dd(e) {
2348
2348
  return Tt(e) && !!e.__locatorRef;
2349
2349
  }
2350
- function on(e) {
2350
+ function rn(e) {
2351
2351
  return !!e && Tt(e.parse) && e.__type === "VVTypedSchema";
2352
2352
  }
2353
2353
  function js(e) {
@@ -2632,7 +2632,7 @@ async function $d(e, t, n = {}) {
2632
2632
  }
2633
2633
  async function Od(e, t) {
2634
2634
  const n = e.rules;
2635
- if (on(n) || js(n))
2635
+ if (rn(n) || js(n))
2636
2636
  return Id(t, Object.assign(Object.assign({}, e), { rules: n }));
2637
2637
  if (Tt(n) || Array.isArray(n)) {
2638
2638
  const s = {
@@ -2704,7 +2704,7 @@ function Ws(e) {
2704
2704
  };
2705
2705
  }
2706
2706
  async function Id(e, t) {
2707
- const o = await (on(t.rules) ? t.rules : Ws(t.rules)).parse(e, { formData: t.formData }), r = [];
2707
+ const o = await (rn(t.rules) ? t.rules : Ws(t.rules)).parse(e, { formData: t.formData }), r = [];
2708
2708
  for (const i of o.errors)
2709
2709
  i.errors.length && r.push(...i.errors);
2710
2710
  return {
@@ -2739,7 +2739,7 @@ function Fd(e, t) {
2739
2739
  return Array.isArray(e) ? e.map(n) : Object.keys(e).reduce((o, r) => (o[r] = n(e[r]), o), {});
2740
2740
  }
2741
2741
  async function Rd(e, t) {
2742
- const o = await (on(e) ? e : Ws(e)).parse(Le(t), { formData: Le(t) }), r = {}, i = {};
2742
+ const o = await (rn(e) ? e : Ws(e)).parse(Le(t), { formData: Le(t) }), r = {}, i = {};
2743
2743
  for (const a of o.errors) {
2744
2744
  const s = a.errors, u = (a.path || "").replace(/\["(\d+)"\]/g, (l, c) => `[${c}]`);
2745
2745
  r[u] = { valid: !s.length, errors: s }, s.length && (i[u] = s[0]);
@@ -2781,7 +2781,7 @@ let Ad = 0;
2781
2781
  const Co = ["bails", "fieldsCount", "id", "multiple", "type", "validate"];
2782
2782
  function Ks(e) {
2783
2783
  const n = Object.assign({}, Ee({})), o = Y(void 0);
2784
- return o && on(o) && Tt(o.cast) ? Le(o.cast(n) || {}) : Le(n);
2784
+ return o && rn(o) && Tt(o.cast) ? Le(o.cast(n) || {}) : Le(n);
2785
2785
  }
2786
2786
  function Gs(e) {
2787
2787
  var t;
@@ -2833,10 +2833,10 @@ function Gs(e) {
2833
2833
  const ae = Z(() => {
2834
2834
  var Me, ot, Nn, Ln;
2835
2835
  const Vn = Ee(I);
2836
- if (on(Vn))
2836
+ if (rn(Vn))
2837
2837
  return (ot = (Me = Vn.describe) === null || Me === void 0 ? void 0 : Me.call(Vn, Ee(P)).required) !== null && ot !== void 0 ? ot : !1;
2838
2838
  const sr = Ee(A == null ? void 0 : A.schema);
2839
- return on(sr) && (Ln = (Nn = sr.describe) === null || Nn === void 0 ? void 0 : Nn.call(sr).required) !== null && Ln !== void 0 ? Ln : !1;
2839
+ return rn(sr) && (Ln = (Nn = sr.describe) === null || Nn === void 0 ? void 0 : Nn.call(sr).required) !== null && Ln !== void 0 ? Ln : !1;
2840
2840
  }), ge = r++, De = Nt({
2841
2841
  id: ge,
2842
2842
  path: P,
@@ -2990,7 +2990,7 @@ function Gs(e) {
2990
2990
  useFieldModel: cn,
2991
2991
  defineInputBinds: pe,
2992
2992
  defineComponentBinds: Et,
2993
- defineField: Jt,
2993
+ defineField: Qt,
2994
2994
  stageInitialValue: Ye,
2995
2995
  unsetInitialValue: Rt,
2996
2996
  setFieldInitialValue: lt,
@@ -3068,7 +3068,7 @@ function Gs(e) {
3068
3068
  }
3069
3069
  function _e(P, A) {
3070
3070
  let W = Le(P != null && P.values ? P.values : O.value);
3071
- W = A != null && A.force ? W : eo(O.value, W), W = on(I) && Tt(I.cast) ? I.cast(W) : W, v(W, { force: A == null ? void 0 : A.force }), J((ne) => {
3071
+ W = A != null && A.force ? W : eo(O.value, W), W = rn(I) && Tt(I.cast) ? I.cast(W) : W, v(W, { force: A == null ? void 0 : A.force }), J((ne) => {
3072
3072
  var me;
3073
3073
  ne.__flags.pendingReset = !0, ne.validated = !1, ne.touched = ((me = P == null ? void 0 : P.touched) === null || me === void 0 ? void 0 : me[Ee(ne.path)]) || !1, je(Ee(ne.path), qt(W, Ee(ne.path)), !1), m(Ee(ne.path), void 0);
3074
3074
  }), A != null && A.force ? pt(W, !1) : rt(W, !1), g((P == null ? void 0 : P.errors) || {}), s.value = (P == null ? void 0 : P.submitCount) || 0, mt(() => {
@@ -3127,13 +3127,13 @@ function Gs(e) {
3127
3127
  if (!P)
3128
3128
  return { valid: !0, results: {}, errors: {}, source: "none" };
3129
3129
  a.value = !0;
3130
- const A = js(P) || on(P) ? await Rd(P, l) : await Pd(P, l, {
3130
+ const A = js(P) || rn(P) ? await Rd(P, l) : await Pd(P, l, {
3131
3131
  names: x.value,
3132
3132
  bailsMap: C.value
3133
3133
  });
3134
3134
  return a.value = !1, A;
3135
3135
  }
3136
- const Xt = le((P, { evt: A }) => {
3136
+ const Jt = le((P, { evt: A }) => {
3137
3137
  hd(A) && A.target.submit();
3138
3138
  });
3139
3139
  Ve(() => {
@@ -3141,8 +3141,8 @@ function Gs(e) {
3141
3141
  }), Gt(I) && $e(I, () => {
3142
3142
  var P;
3143
3143
  (P = Ce.validateSchema) === null || P === void 0 || P.call(Ce, "validated-only");
3144
- }), an(ld, Ce);
3145
- function Jt(P, A) {
3144
+ }), sn(ld, Ce);
3145
+ function Qt(P, A) {
3146
3146
  const W = Tt(A) || A == null ? void 0 : A.label, ne = ie(Ee(P)) || _(P, { label: W }), me = () => Tt(A) ? A(So(ne, Co)) : A || {};
3147
3147
  function be() {
3148
3148
  var ae;
@@ -3177,7 +3177,7 @@ function Gs(e) {
3177
3177
  return Array.isArray(P) ? P.map((A) => Ct(A, !0)) : Ct(P);
3178
3178
  }
3179
3179
  function pe(P, A) {
3180
- const [W, ne] = Jt(P, A);
3180
+ const [W, ne] = Qt(P, A);
3181
3181
  function me() {
3182
3182
  ne.value.onBlur();
3183
3183
  }
@@ -3197,7 +3197,7 @@ function Gs(e) {
3197
3197
  }));
3198
3198
  }
3199
3199
  function Et(P, A) {
3200
- const [W, ne] = Jt(P, A), me = ie(Ee(P));
3200
+ const [W, ne] = Qt(P, A), me = ie(Ee(P));
3201
3201
  function be(ue) {
3202
3202
  W.value = ue;
3203
3203
  }
@@ -3206,8 +3206,8 @@ function Gs(e) {
3206
3206
  return Object.assign({ [ue.model || "modelValue"]: W.value, [`onUpdate:${ue.model || "modelValue"}`]: be }, ne.value);
3207
3207
  });
3208
3208
  }
3209
- const qe = Object.assign(Object.assign({}, Ce), { values: ls(l), handleReset: () => _e(), submitForm: Xt });
3210
- return an(ud, qe), qe;
3209
+ const qe = Object.assign(Object.assign({}, Ce), { values: ls(l), handleReset: () => _e(), submitForm: Jt });
3210
+ return sn(ud, qe), qe;
3211
3211
  }
3212
3212
  function _d(e, t, n, o) {
3213
3213
  const r = {
@@ -3428,7 +3428,7 @@ function Vi(e, t = !1) {
3428
3428
  const o = Ud.call(e).slice(8, -1);
3429
3429
  return o === "Date" ? isNaN(e.getTime()) ? "" + e : e.toISOString(e) : o === "Error" || e instanceof Error ? "[" + Hd.call(e) + "]" : o === "RegExp" ? Wd.call(e) : null;
3430
3430
  }
3431
- function rn(e, t) {
3431
+ function an(e, t) {
3432
3432
  let n = Vi(e, t);
3433
3433
  return n !== null ? n : JSON.stringify(e, function(o, r) {
3434
3434
  let i = Vi(this[o], t);
@@ -3460,7 +3460,7 @@ class ct extends Error {
3460
3460
  return n = Object.assign({}, n, {
3461
3461
  path: o,
3462
3462
  originalPath: n.path
3463
- }), typeof t == "string" ? t.replace(Yd, (r, i) => rn(n[i])) : typeof t == "function" ? t(n) : t;
3463
+ }), typeof t == "string" ? t.replace(Yd, (r, i) => an(n[i])) : typeof t == "function" ? t(n) : t;
3464
3464
  }
3465
3465
  static isError(t) {
3466
3466
  return t && t.name === "ValidationError";
@@ -3488,8 +3488,8 @@ let _t = {
3488
3488
  value: n,
3489
3489
  originalValue: o
3490
3490
  }) => {
3491
- const r = o != null && o !== n ? ` (cast from the value \`${rn(o, !0)}\`).` : ".";
3492
- return t !== "mixed" ? `${e} must be a \`${t}\` type, but the final value was: \`${rn(n, !0)}\`` + r : `${e} must match the configured type. The validated value was: \`${rn(n, !0)}\`` + r;
3491
+ const r = o != null && o !== n ? ` (cast from the value \`${an(o, !0)}\`).` : ".";
3492
+ return t !== "mixed" ? `${e} must be a \`${t}\` type, but the final value was: \`${an(n, !0)}\`` + r : `${e} must match the configured type. The validated value was: \`${an(n, !0)}\`` + r;
3493
3493
  }
3494
3494
  }, ut = {
3495
3495
  length: "${path} must be exactly ${length} characters",
@@ -3533,8 +3533,8 @@ let _t = {
3533
3533
  spec: o
3534
3534
  } = e, r = o.types.length;
3535
3535
  if (Array.isArray(n)) {
3536
- if (n.length < r) return `${t} tuple value has too few items, expected a length of ${r} but got ${n.length} for value: \`${rn(n, !0)}\``;
3537
- if (n.length > r) return `${t} tuple value has too many items, expected a length of ${r} but got ${n.length} for value: \`${rn(n, !0)}\``;
3536
+ if (n.length < r) return `${t} tuple value has too few items, expected a length of ${r} but got ${n.length} for value: \`${an(n, !0)}\``;
3537
+ if (n.length > r) return `${t} tuple value has too many items, expected a length of ${r} but got ${n.length} for value: \`${an(n, !0)}\``;
3538
3538
  }
3539
3539
  return ct.formatError(_t.notType, e);
3540
3540
  }
@@ -3855,7 +3855,7 @@ class Lt {
3855
3855
  if (n.assert !== !1 && !o.isType(i)) {
3856
3856
  if (r && gn(i))
3857
3857
  return i;
3858
- let a = rn(t), s = rn(i);
3858
+ let a = an(t), s = an(i);
3859
3859
  throw new TypeError(`The value of ${n.path || "field"} could not be cast to a value that satisfies the schema type: "${o.type}".
3860
3860
 
3861
3861
  attempted value: ${a}
@@ -5018,7 +5018,7 @@ const vf = {
5018
5018
  },
5019
5019
  emits: ["update:modelValue"],
5020
5020
  setup(e, { emit: t }) {
5021
- ln();
5021
+ un();
5022
5022
  const {
5023
5023
  getEntityRecords: n,
5024
5024
  searchEntityRecords: o,
@@ -5106,7 +5106,7 @@ const vf = {
5106
5106
  }),
5107
5107
  emits: /* @__PURE__ */ ze(["onSaveDialog"], ["update:showForm"]),
5108
5108
  setup(e, { emit: t }) {
5109
- const n = Ze(e, "showForm"), o = t, { formData: r, columns: i, errors: a, backendErrors: s, clearErrors: u, saveRecord: l, fetchAllRecords: c, fetchRecord: d } = ni(e.entityName, e.recordId, o);
5109
+ const n = et(e, "showForm"), o = t, { formData: r, columns: i, errors: a, backendErrors: s, clearErrors: u, saveRecord: l, fetchAllRecords: c, fetchRecord: d } = ni(e.entityName, e.recordId, o);
5110
5110
  return Ve(() => {
5111
5111
  e.recordId ? d() : c();
5112
5112
  }), (f, p) => {
@@ -5161,8 +5161,9 @@ const vf = {
5161
5161
  "onUpdate:modelValue": (T) => Y(r)[y.name] = T,
5162
5162
  entityName: y.foreignKey.referencedEntityName,
5163
5163
  columnName: y.name,
5164
+ displayName: y.displayName,
5164
5165
  relatedEntityColumn: y.foreignKey.referencedColumnName
5165
- }, null, 8, ["modelValue", "onUpdate:modelValue", "entityName", "columnName", "relatedEntityColumn"])) : V("", !0)
5166
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "entityName", "columnName", "displayName", "relatedEntityColumn"])) : V("", !0)
5166
5167
  ]);
5167
5168
  }), 128)),
5168
5169
  ((h = Y(s)) == null ? void 0 : h.length) > 0 ? (b(), M(ol, {
@@ -5192,7 +5193,7 @@ const vf = {
5192
5193
  }),
5193
5194
  emits: /* @__PURE__ */ ze(["onDeleteItem"], ["update:showDeleteDialog"]),
5194
5195
  setup(e, { emit: t }) {
5195
- const n = new Bt(), o = Ze(e, "showDeleteDialog"), r = t, i = async () => {
5196
+ const n = new Bt(), o = et(e, "showDeleteDialog"), r = t, i = async () => {
5196
5197
  try {
5197
5198
  const a = await n.deleteRecord(e.entityName, e.recordId);
5198
5199
  a && a.response && r("onDeleteItem");
@@ -5646,9 +5647,9 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
5646
5647
  showPagination: Boolean
5647
5648
  },
5648
5649
  setup(e) {
5649
- const t = tt(), n = e;
5650
+ const t = Qe(), n = e;
5650
5651
  console.log("columnsToShow", n.columnsToShow);
5651
- const o = ln(), r = $(n.entityName || o.params.entityName), i = $({}), a = $(""), s = $(!1), u = $(!1), { items: l, headers: c, first: d, totalRecords: f, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: y, filterToSend: x, primarayKeyColumn: C, fullTextSearch: T, listingResponse: F, onFullTextSearch: B, getDatatypeByField: O, getColumnDatatype: v, onSort: k, onPage: E, onFilter: I, fetchEntityFilterData: _, fetchEntityByName: z } = Gc(r.value), N = $();
5652
+ const o = un(), r = $(n.entityName || o.params.entityName), i = $({}), a = $(""), s = $(!1), u = $(!1), { items: l, headers: c, first: d, totalRecords: f, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: y, filterToSend: x, primarayKeyColumn: C, fullTextSearch: T, listingResponse: F, onFullTextSearch: B, getDatatypeByField: O, getColumnDatatype: v, onSort: k, onPage: E, onFilter: I, fetchEntityFilterData: _, fetchEntityByName: z } = Gc(r.value), N = $();
5652
5653
  let K = $(!1);
5653
5654
  const J = (le) => {
5654
5655
  i.value = le.reduce((fe, ke) => {
@@ -5934,8 +5935,8 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
5934
5935
  }
5935
5936
  },
5936
5937
  setup(e) {
5937
- ln();
5938
- const t = tt(), n = $("");
5938
+ un();
5939
+ const t = Qe(), n = $("");
5939
5940
  t.getAppId() != null && t.getAppId() != "" && (n.value = t.getAppId());
5940
5941
  const o = $(), r = $(!1), i = $(!1), a = $({}), s = $([
5941
5942
  {
@@ -6038,8 +6039,8 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
6038
6039
  }),
6039
6040
  emits: ["update:modelValue"],
6040
6041
  setup(e) {
6041
- ln();
6042
- const t = e, n = Ze(e, "modelValue"), o = new Bt(), r = $({}), i = $([]), a = $({}), s = $([]), u = $([]), l = $({}), c = $("id"), d = $(1), f = $([]), p = $(25), m = $(0), g = $(0), h = $(0);
6042
+ un();
6043
+ const t = e, n = et(e, "modelValue"), o = new Bt(), r = $({}), i = $([]), a = $({}), s = $([]), u = $([]), l = $({}), c = $("id"), d = $(1), f = $([]), p = $(25), m = $(0), g = $(0), h = $(0);
6043
6044
  let y = $([]);
6044
6045
  const x = $(!1), C = {
6045
6046
  gt: "GREATER_THAN",
@@ -6255,8 +6256,8 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
6255
6256
  p.value = te.rows, m.value = te.page, h.value = te.first, B();
6256
6257
  };
6257
6258
  return (te, q) => {
6258
- var Jt, cn;
6259
- const Be = G("InputIcon"), Ae = G("InputText"), Fe = G("IconField"), _e = G("Select"), He = G("Divider"), st = G("InputNumber"), Rt = G("DatePicker"), Ye = G("Button"), lt = G("Checkbox"), bt = G("Paginator"), Xt = Hr("tooltip");
6259
+ var Qt, cn;
6260
+ const Be = G("InputIcon"), Ae = G("InputText"), Fe = G("IconField"), _e = G("Select"), He = G("Divider"), st = G("InputNumber"), Rt = G("DatePicker"), Ye = G("Button"), lt = G("Checkbox"), bt = G("Paginator"), Jt = Hr("tooltip");
6260
6261
  return b(), S(oe, null, [
6261
6262
  w("div", Jf, [
6262
6263
  w("div", Qf, [
@@ -6444,7 +6445,7 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
6444
6445
  ])
6445
6446
  ])) : V("", !0),
6446
6447
  w("div", wp, [
6447
- w("div", kp, X((Jt = r.value) == null ? void 0 : Jt.totalRecords), 1),
6448
+ w("div", kp, X((Qt = r.value) == null ? void 0 : Qt.totalRecords), 1),
6448
6449
  w("div", xp, X((cn = r.value) == null ? void 0 : cn.entityName), 1)
6449
6450
  ]),
6450
6451
  (b(!0), S(oe, null, Oe(r.value.result, (pe, Et) => (b(), S("div", { key: Et }, [
@@ -6461,7 +6462,7 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
6461
6462
  ]),
6462
6463
  F(pe[l.value.name]) ? wt((b(), S("div", Ep, null, 512)), [
6463
6464
  [
6464
- Xt,
6465
+ Jt,
6465
6466
  "This record is already associated.",
6466
6467
  void 0,
6467
6468
  { left: !0 }
@@ -6527,7 +6528,7 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
6527
6528
  }),
6528
6529
  emits: ["update:modelValue"],
6529
6530
  setup(e) {
6530
- ln();
6531
+ un();
6531
6532
  const {
6532
6533
  getEntityRecords: t,
6533
6534
  searchEntityRecords: n,
@@ -6536,7 +6537,7 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
6536
6537
  addRecord: i,
6537
6538
  updateRecord: a,
6538
6539
  deleteRecord: s
6539
- } = Bt(), u = e, l = Ze(e, "modelValue");
6540
+ } = Bt(), u = e, l = et(e, "modelValue");
6540
6541
  new EntityRecordService();
6541
6542
  const c = $({}), d = $({});
6542
6543
  let f = $("");
@@ -6658,8 +6659,8 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
6658
6659
  }),
6659
6660
  emits: /* @__PURE__ */ ze(["onSaveDialog"], ["update:showCreateRelatedEntityForm"]),
6660
6661
  setup(e, { emit: t }) {
6661
- const n = Ze(e, "showCreateRelatedEntityForm");
6662
- ln();
6662
+ const n = et(e, "showCreateRelatedEntityForm");
6663
+ un();
6663
6664
  const o = e, r = o.linkedEntity.entityName, i = t, a = $("Add existing");
6664
6665
  Ve(() => {
6665
6666
  p();
@@ -6846,7 +6847,7 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
6846
6847
  }
6847
6848
  },
6848
6849
  setup(e) {
6849
- ln();
6850
+ un();
6850
6851
  const t = e, n = $(!1), o = $(!1), r = () => {
6851
6852
  n.value = !n.value;
6852
6853
  }, i = () => {
@@ -6940,7 +6941,7 @@ const Mf = { key: 0 }, Uf = { key: 1 }, ri = {
6940
6941
  emits: ["onSaveDialog"],
6941
6942
  setup(e, { expose: t, emit: n }) {
6942
6943
  var I, _;
6943
- const o = tt(), r = ln(), i = e, a = $(!0), s = $(!1), u = $([]);
6944
+ const o = Qe(), r = un(), i = e, a = $(!0), s = $(!1), u = $([]);
6944
6945
  let l = (I = r == null ? void 0 : r.params) == null ? void 0 : I.entityName, c = (_ = r == null ? void 0 : r.params) == null ? void 0 : _.id;
6945
6946
  i.entityName && (l = i.entityName), i.recordId && (c = i.recordId);
6946
6947
  const d = n, { formData: f, columns: p, errors: m, backendErrors: g, isDataChange: h, linkedEntities: y, primarayColumn: x, clearErrors: C, saveRecord: T, getRelatedEntityRecordById: F, cancleRecord: B } = ni(l, c, d);
@@ -7354,7 +7355,7 @@ const or = {
7354
7355
  },
7355
7356
  emits: /* @__PURE__ */ ze(["onDeleteItem"], ["update:showDeleteDialog"]),
7356
7357
  setup(e, { emit: t }) {
7357
- const n = Ze(e, "showDeleteDialog"), o = t, r = (i) => {
7358
+ const n = et(e, "showDeleteDialog"), o = t, r = (i) => {
7358
7359
  o("onDeleteItem", {
7359
7360
  remove: i
7360
7361
  });
@@ -7411,7 +7412,7 @@ const or = {
7411
7412
  }),
7412
7413
  emits: ["update:showEntityForm"],
7413
7414
  setup(e) {
7414
- const t = Ze(e, "showEntityForm"), n = et("entityObject"), o = e;
7415
+ const t = et(e, "showEntityForm"), n = tt("entityObject"), o = e;
7415
7416
  let r = $([]), i = $({}), a = $([]), s = $(null), u = $({});
7416
7417
  Ve(() => {
7417
7418
  r.value = n.getEntityColumns(n.state.data), o.item ? i.value = JSON.parse(JSON.stringify(o.item)) : i.value = n.getFormData(n.state.data), s.value = n.createValidationSchema();
@@ -7526,7 +7527,7 @@ const or = {
7526
7527
  item: Object
7527
7528
  },
7528
7529
  setup(e) {
7529
- const t = e, n = et("entityObject"), o = $([]), r = $(!1), i = $(!1);
7530
+ const t = e, n = tt("entityObject"), o = $([]), r = $(!1), i = $(!1);
7530
7531
  Ve(() => {
7531
7532
  o.value = n.getEntityColumns(n.state.data);
7532
7533
  });
@@ -7610,7 +7611,7 @@ const or = {
7610
7611
  listItemDisplay: String
7611
7612
  },
7612
7613
  setup(e) {
7613
- const t = et("entityObject"), n = $([]);
7614
+ const t = tt("entityObject"), n = $([]);
7614
7615
  return $e(() => t.state.data, (o) => {
7615
7616
  o && (n.value = o.result, console.log("Entity state updated in child:", t));
7616
7617
  }, { immediate: !0 }), (o, r) => (b(!0), S(oe, null, Oe(n.value, (i, a) => (b(), S("div", {
@@ -7627,7 +7628,7 @@ function Vm(e, t) {
7627
7628
  const zm = /* @__PURE__ */ nt(Lm, [["render", Vm]]), jm = { class: "my-2" }, Mm = { class: "m-0" }, Um = {
7628
7629
  __name: "EntityListHeaderSlot",
7629
7630
  setup(e) {
7630
- const t = et("entityObject");
7631
+ const t = tt("entityObject");
7631
7632
  let n = $("");
7632
7633
  return $e(() => t.state.data, (o) => {
7633
7634
  o && (n.value = o.entityName);
@@ -7669,7 +7670,7 @@ const zm = /* @__PURE__ */ nt(Lm, [["render", Vm]]), jm = { class: "my-2" }, Mm
7669
7670
  }),
7670
7671
  emits: ["update:sortBy", "update:sortDirection", "update:showFilter", "update:filters"],
7671
7672
  setup(e) {
7672
- const t = Ze(e, "sortBy"), n = Ze(e, "sortDirection"), o = Ze(e, "showFilter"), r = Ze(e, "filters"), i = {
7673
+ const t = et(e, "sortBy"), n = et(e, "sortDirection"), o = et(e, "showFilter"), r = et(e, "filters"), i = {
7673
7674
  GREATER_THAN: "is greater than",
7674
7675
  dateAfter: "is after",
7675
7676
  EQUAL: "is equals",
@@ -7967,7 +7968,7 @@ const zm = /* @__PURE__ */ nt(Lm, [["render", Vm]]), jm = { class: "my-2" }, Mm
7967
7968
  }
7968
7969
  },
7969
7970
  setup(e) {
7970
- const t = et("entityObject"), n = $(!1), o = $([]), r = $([]), i = $(""), a = $(1), s = $(""), u = $([]), l = $([]), c = $(!1), d = e, f = et("getVariable"), p = {
7971
+ const t = tt("entityObject"), n = $(!1), o = $([]), r = $([]), i = $(""), a = $(1), s = $(""), u = $([]), l = $([]), c = $(!1), d = e, f = tt("getVariable"), p = {
7971
7972
  GREATER_THAN: "GREATER_THAN",
7972
7973
  dateAfter: "GREATER_THAN",
7973
7974
  EQUAL: "EQUAL",
@@ -8129,7 +8130,7 @@ const zm = /* @__PURE__ */ nt(Lm, [["render", Vm]]), jm = { class: "my-2" }, Mm
8129
8130
  __name: "EntityListPagination",
8130
8131
  setup(e) {
8131
8132
  const t = $(25), n = $(0), o = $(0), r = $(0);
8132
- let i = et("entityObject");
8133
+ let i = tt("entityObject");
8133
8134
  const a = async (s) => {
8134
8135
  t.value = s.rows, n.value = s.page, r.value = s.first;
8135
8136
  const u = {
@@ -8206,8 +8207,8 @@ const zm = /* @__PURE__ */ nt(Lm, [["render", Vm]]), jm = { class: "my-2" }, Mm
8206
8207
  }
8207
8208
  },
8208
8209
  setup(e, { expose: t }) {
8209
- const n = nr(), o = tt();
8210
- an("entityObject", n);
8210
+ const n = nr(), o = Qe();
8211
+ sn("entityObject", n);
8211
8212
  const r = e;
8212
8213
  return t({
8213
8214
  props: r,
@@ -8243,8 +8244,8 @@ const zm = /* @__PURE__ */ nt(Lm, [["render", Vm]]), jm = { class: "my-2" }, Mm
8243
8244
  }
8244
8245
  };
8245
8246
  function dg() {
8246
- tt();
8247
- const { get: e, post: t, put: n, del: o } = un();
8247
+ Qe();
8248
+ const { get: e, post: t, put: n, del: o } = Xt();
8248
8249
  return {
8249
8250
  getActiveUser: async () => await e("/users/me"),
8250
8251
  getAppSecurity: async (h) => await e(`/api/app/v1/${h}/security`),
@@ -8260,30 +8261,30 @@ function dg() {
8260
8261
  deleteAppSecurityAccessRule: async (h, y) => await o(`/api/app/v1/${h}/security/rules/${y}`)
8261
8262
  };
8262
8263
  }
8263
- const Qt = $({ role: [], permissions: [] }), yr = $(!1);
8264
+ const Zt = $({ role: [], permissions: [] }), yr = $(!1);
8264
8265
  let ea = !1;
8265
8266
  function xn() {
8266
8267
  const e = async () => {
8267
8268
  if (yr.value)
8268
8269
  return console.log("User is ROOT_USER, skipping fetch."), !0;
8269
- if (ea || Qt.value.role[0] && Qt.value.permissions[0])
8270
+ if (ea || Zt.value.role[0] && Zt.value.permissions[0])
8270
8271
  return console.log("User details already available, skipping fetch."), !0;
8271
8272
  console.log("Fetching User Details...");
8272
8273
  const { getActiveUser: r } = dg(), i = await r();
8273
- return console.log("Fetched Response:", i), i && Array.isArray(i.authorities) && i.authorities.includes("ROOT_USER") ? (yr.value = !0, !0) : (Qt.value = {
8274
+ return console.log("Fetched Response:", i), i && Array.isArray(i.authorities) && i.authorities.includes("ROOT_USER") ? (yr.value = !0, !0) : (Zt.value = {
8274
8275
  role: ["Admin"],
8275
8276
  permissions: ["user", "Admin", "Entity"]
8276
- }, ea = !0, console.log("User Details Set:", Qt.value), !0);
8277
+ }, ea = !0, console.log("User Details Set:", Zt.value), !0);
8277
8278
  };
8278
8279
  return {
8279
- userDetails: Qt,
8280
+ userDetails: Zt,
8280
8281
  fetchUserDetails: e,
8281
- getRole: () => Qt.value.role,
8282
- getPermissions: () => Qt.value.permissions,
8282
+ getRole: () => Zt.value.role,
8283
+ getPermissions: () => Zt.value.permissions,
8283
8284
  hasMatchingRoleAndPermissions: async (r = [], i = []) => {
8284
8285
  const a = Array.isArray(r) ? r : r.split(",").map((f) => f.trim()), s = Array.isArray(i) ? i : i.split(",").map((f) => f.trim());
8285
8286
  if (await e(), yr.value) return !0;
8286
- const { role: u, permissions: l } = Qt.value, c = a.length === 0 || a.some((f) => u.includes(f)), d = s.length === 0 || s.some((f) => l.includes(f));
8287
+ const { role: u, permissions: l } = Zt.value, c = a.length === 0 || a.some((f) => u.includes(f)), d = s.length === 0 || s.some((f) => l.includes(f));
8287
8288
  return c && !d ? !1 : c && d;
8288
8289
  }
8289
8290
  };
@@ -8364,7 +8365,7 @@ const fg = { class: "flex items-center justify-between bg-white p-2 rounded bord
8364
8365
  }
8365
8366
  },
8366
8367
  setup(e) {
8367
- const t = e, n = et("entityObject"), o = $([]), r = $(null), i = $(null), a = $(!1), s = $(!1), u = $(null);
8368
+ const t = e, n = tt("entityObject"), o = $([]), r = $(null), i = $(null), a = $(!1), s = $(!1), u = $(null);
8368
8369
  Ve(() => {
8369
8370
  var p, m;
8370
8371
  t.linkedEntity && t.linkedEntity.length > 0 ? o.value = Object.keys(t.linkedEntity[0]).map((g) => ({ name: g })) : o.value = n == null ? void 0 : n.getEntityColumns(n.state.data), u.value = ((p = o == null ? void 0 : o.value) == null ? void 0 : p.find((g) => g.name === "created_date")) || null, u.value && (u.value = t == null ? void 0 : t.item[u.value.name]), r.value = ((m = o == null ? void 0 : o.value) == null ? void 0 : m.find((g) => g.name === t.displayField)) || null, r.value && (i.value = t == null ? void 0 : t.item[r.value.name]);
@@ -8646,8 +8647,8 @@ function Oo(e, t = "px") {
8646
8647
  const Ig = Pn({
8647
8648
  name: "CarouselAria",
8648
8649
  setup() {
8649
- const e = et(vn);
8650
- return e ? () => Qe("div", {
8650
+ const e = tt(vn);
8651
+ return e ? () => Ze("div", {
8651
8652
  class: ["carousel__liveregion", "carousel__sr-only"],
8652
8653
  "aria-live": "polite",
8653
8654
  "aria-atomic": "true"
@@ -8884,11 +8885,11 @@ Pn({
8884
8885
  switch (U.key) {
8885
8886
  case "ArrowLeft":
8886
8887
  case "ArrowUp":
8887
- k.value === U.key.endsWith("Up") && (v.value ? bt(!0) : Xt(!0));
8888
+ k.value === U.key.endsWith("Up") && (v.value ? bt(!0) : Jt(!0));
8888
8889
  break;
8889
8890
  case "ArrowRight":
8890
8891
  case "ArrowDown":
8891
- k.value === U.key.endsWith("Down") && (v.value ? Xt(!0) : bt(!0));
8892
+ k.value === U.key.endsWith("Down") && (v.value ? Jt(!0) : bt(!0));
8892
8893
  break;
8893
8894
  }
8894
8895
  }, 200), q = () => {
@@ -8974,10 +8975,10 @@ Pn({
8974
8975
  function bt(U = !1) {
8975
8976
  lt(p.value + f.itemsToScroll, U);
8976
8977
  }
8977
- function Xt(U = !1) {
8978
+ function Jt(U = !1) {
8978
8979
  lt(p.value - f.itemsToScroll, U);
8979
8980
  }
8980
- function Jt() {
8981
+ function Qt() {
8981
8982
  _(), j(), R(), Rt();
8982
8983
  }
8983
8984
  $e(() => [d.value, e.breakpoints], () => _(), { deep: !0 }), $e(() => e.autoplay, () => Rt());
@@ -9093,7 +9094,7 @@ Pn({
9093
9094
  "--vc-slide-gap": Oo(f.gap),
9094
9095
  "--vc-carousel-height": Oo(f.height),
9095
9096
  "--vc-cloned-offset": Oo(Et.value)
9096
- })), me = { slideTo: lt, next: bt, prev: Xt }, be = Nt({
9097
+ })), me = { slideTo: lt, next: bt, prev: Jt }, be = Nt({
9097
9098
  activeSlide: m,
9098
9099
  config: f,
9099
9100
  currentSlide: p,
@@ -9110,7 +9111,7 @@ Pn({
9110
9111
  viewport: l,
9111
9112
  visibleRange: A
9112
9113
  });
9113
- an(vn, be);
9114
+ sn(vn, be);
9114
9115
  const ue = Nt({
9115
9116
  config: f,
9116
9117
  currentSlide: p,
@@ -9124,8 +9125,8 @@ Pn({
9124
9125
  data: ue,
9125
9126
  nav: me,
9126
9127
  next: bt,
9127
- prev: Xt,
9128
- restartCarousel: Jt,
9128
+ prev: Jt,
9129
+ restartCarousel: Qt,
9129
9130
  slideTo: lt,
9130
9131
  updateBreakpointsConfig: _,
9131
9132
  updateSlideSize: R,
@@ -9142,17 +9143,17 @@ Pn({
9142
9143
  toShow: ge
9143
9144
  }), ot = [...De, ...se, ...Me];
9144
9145
  if (!f.enabled || !ot.length)
9145
- return Qe("section", {
9146
+ return Ze("section", {
9146
9147
  ref: u,
9147
9148
  class: ["carousel", "is-disabled"]
9148
9149
  }, ot);
9149
- const Nn = ((U = t.addons) === null || U === void 0 ? void 0 : U.call(t, ue)) || [], Ln = Qe("ol", {
9150
+ const Nn = ((U = t.addons) === null || U === void 0 ? void 0 : U.call(t, ue)) || [], Ln = Ze("ol", {
9150
9151
  class: "carousel__track",
9151
9152
  style: { transform: W.value },
9152
9153
  onMousedownCapture: f.mouseDrag ? Ae : null,
9153
9154
  onTouchstartPassiveCapture: f.touchDrag ? Ae : null
9154
- }, ot), Vn = Qe("div", { class: "carousel__viewport", ref: l }, Ln);
9155
- return Qe("section", {
9155
+ }, ot), Vn = Ze("div", { class: "carousel__viewport", ref: l }, Ln);
9156
+ return Ze("section", {
9156
9157
  ref: u,
9157
9158
  class: [
9158
9159
  "carousel",
@@ -9173,7 +9174,7 @@ Pn({
9173
9174
  onBlur: Be,
9174
9175
  onMouseenter: Ct,
9175
9176
  onMouseleave: ht
9176
- }, [Vn, Nn, Qe(Ig)]);
9177
+ }, [Vn, Nn, Ze(Ig)]);
9177
9178
  };
9178
9179
  }
9179
9180
  });
@@ -9203,13 +9204,13 @@ const ra = (e) => e && Rg(e), ia = Pn({
9203
9204
  }
9204
9205
  },
9205
9206
  setup(e) {
9206
- const t = et(vn, null);
9207
+ const t = tt(vn, null);
9207
9208
  return () => {
9208
9209
  const n = e.name;
9209
9210
  if (!n || !ra(n))
9210
9211
  return;
9211
- const o = Fg[n], r = Qe("path", { d: o }), i = (t == null ? void 0 : t.config.i18n[oa(n)]) || e.title, a = Qe("title", i);
9212
- return Qe("svg", {
9212
+ const o = Fg[n], r = Ze("path", { d: o }), i = (t == null ? void 0 : t.config.i18n[oa(n)]) || e.title, a = Ze("title", i);
9213
+ return Ze("svg", {
9213
9214
  class: "carousel__icon",
9214
9215
  viewBox: "0 0 24 24",
9215
9216
  role: "img",
@@ -9222,7 +9223,7 @@ Pn({
9222
9223
  name: "CarouselNavigation",
9223
9224
  inheritAttrs: !1,
9224
9225
  setup(e, { slots: t, attrs: n }) {
9225
- const o = et(vn);
9226
+ const o = tt(vn);
9226
9227
  if (!o)
9227
9228
  return () => "";
9228
9229
  const { next: r, prev: i } = t, a = () => ({
@@ -9237,15 +9238,15 @@ Pn({
9237
9238
  ttb: "arrowDown"
9238
9239
  })[o.normalizedDir], u = Z(() => !o.config.wrapAround && o.currentSlide <= o.minSlide), l = Z(() => !o.config.wrapAround && o.currentSlide >= o.maxSlide);
9239
9240
  return () => {
9240
- const { i18n: c } = o.config, d = Qe("button", Object.assign(Object.assign({ type: "button", disabled: u.value, "aria-label": c.ariaPreviousSlide, title: c.ariaPreviousSlide, onClick: o.nav.prev }, n), { class: [
9241
+ const { i18n: c } = o.config, d = Ze("button", Object.assign(Object.assign({ type: "button", disabled: u.value, "aria-label": c.ariaPreviousSlide, title: c.ariaPreviousSlide, onClick: o.nav.prev }, n), { class: [
9241
9242
  "carousel__prev",
9242
9243
  { "carousel__prev--disabled": u.value },
9243
9244
  n.class
9244
- ] }), (i == null ? void 0 : i()) || Qe(ia, { name: a() })), f = Qe("button", Object.assign(Object.assign({ type: "button", disabled: l.value, "aria-label": c.ariaNextSlide, title: c.ariaNextSlide, onClick: o.nav.next }, n), { class: [
9245
+ ] }), (i == null ? void 0 : i()) || Ze(ia, { name: a() })), f = Ze("button", Object.assign(Object.assign({ type: "button", disabled: l.value, "aria-label": c.ariaNextSlide, title: c.ariaNextSlide, onClick: o.nav.next }, n), { class: [
9245
9246
  "carousel__next",
9246
9247
  { "carousel__next--disabled": l.value },
9247
9248
  n.class
9248
- ] }), (r == null ? void 0 : r()) || Qe(ia, { name: s() }));
9249
+ ] }), (r == null ? void 0 : r()) || Ze(ia, { name: s() }));
9249
9250
  return [d, f];
9250
9251
  };
9251
9252
  }
@@ -9261,7 +9262,7 @@ Pn({
9261
9262
  }
9262
9263
  },
9263
9264
  setup(e) {
9264
- const t = et(vn);
9265
+ const t = tt(vn);
9265
9266
  if (!t)
9266
9267
  return () => "";
9267
9268
  const n = Z(() => t.config.itemsToShow), o = Z(() => Nr({
@@ -9282,7 +9283,7 @@ Pn({
9282
9283
  for (let d = r.value ? 0 : t.minSlide; d <= (r.value ? a.value - 1 : t.maxSlide); d++) {
9283
9284
  const f = dl(t.config.i18n[r.value ? "ariaNavigateToPage" : "ariaNavigateToSlide"], {
9284
9285
  slideNumber: d + 1
9285
- }), p = s(d), m = Qe("button", {
9286
+ }), p = s(d), m = Ze("button", {
9286
9287
  type: "button",
9287
9288
  class: {
9288
9289
  "carousel__pagination-button": !0,
@@ -9294,10 +9295,10 @@ Pn({
9294
9295
  title: f,
9295
9296
  disabled: e.disableOnClick,
9296
9297
  onClick: () => t.nav.slideTo(r.value ? Math.floor(d * +t.config.itemsToShow + o.value) : d)
9297
- }), g = Qe("li", { class: "carousel__pagination-item", key: d }, m);
9298
+ }), g = Ze("li", { class: "carousel__pagination-item", key: d }, m);
9298
9299
  c.push(g);
9299
9300
  }
9300
- return Qe("ol", { class: "carousel__pagination" }, c);
9301
+ return Ze("ol", { class: "carousel__pagination" }, c);
9301
9302
  };
9302
9303
  }
9303
9304
  });
@@ -9322,8 +9323,8 @@ Pn({
9322
9323
  }
9323
9324
  },
9324
9325
  setup(e, { attrs: t, slots: n, expose: o }) {
9325
- const r = et(vn);
9326
- if (an(vn, void 0), !r)
9326
+ const r = tt(vn);
9327
+ if (sn(vn, void 0), !r)
9327
9328
  return () => "";
9328
9329
  const i = $(e.index), a = (m) => {
9329
9330
  i.value = m;
@@ -9350,7 +9351,7 @@ Pn({
9350
9351
  na(s.vnode);
9351
9352
  })), () => {
9352
9353
  var m, g;
9353
- return r.config.enabled ? Qe("li", {
9354
+ return r.config.enabled ? Ze("li", {
9354
9355
  style: [t.style, Object.assign({}, p.value)],
9355
9356
  class: {
9356
9357
  carousel__slide: !0,
@@ -9473,11 +9474,11 @@ const Pg = { class: "flex items-center justify-between rounded-md w-full overflo
9473
9474
  }
9474
9475
  },
9475
9476
  setup(e, { expose: t, emit: n }) {
9476
- const o = nr(), r = tt(), i = new Bt();
9477
+ const o = nr(), r = Qe(), i = new Bt();
9477
9478
  $(null), $(null);
9478
9479
  const a = $("id"), s = $(1), u = $(25), l = $(0);
9479
- an("entityObject", o);
9480
- const c = n, d = e, f = $([]), p = $([]), m = $(!0), g = $(null), { hasMatchingRoleAndPermissions: h } = xn(), y = et("getVariable");
9480
+ sn("entityObject", o);
9481
+ const c = n, d = e, f = $([]), p = $([]), m = $(!0), g = $(null), { hasMatchingRoleAndPermissions: h } = xn(), y = tt("getVariable");
9481
9482
  Ve(async () => {
9482
9483
  m.value = await h(d.roles, d.permissions), console.log("props entitylist", d.preFiltered), d.preFiltered && C();
9483
9484
  }), d.linkedEntity ? $e(() => d.linkedEntity, (k) => {
@@ -9697,7 +9698,7 @@ const Pg = { class: "flex items-center justify-between rounded-md w-full overflo
9697
9698
  deletable: Boolean
9698
9699
  },
9699
9700
  setup(e) {
9700
- const t = e, n = et("entityObject"), o = $([]), r = $(null), i = $(null), a = $(!1), s = $(!1);
9701
+ const t = e, n = tt("entityObject"), o = $([]), r = $(null), i = $(null), a = $(!1), s = $(!1);
9701
9702
  Ve(() => {
9702
9703
  o.value = n.getEntityColumns(n.state.data), r.value = o.value.find((f) => f.name === t.displayField) || null, r.value && (i.value = t.item[r.value.name]);
9703
9704
  });
@@ -9804,8 +9805,8 @@ const Pg = { class: "flex items-center justify-between rounded-md w-full overflo
9804
9805
  }
9805
9806
  },
9806
9807
  setup(e, { expose: t }) {
9807
- const n = nr(), o = tt();
9808
- an("entityObject", n);
9808
+ const n = nr(), o = Qe();
9809
+ sn("entityObject", n);
9809
9810
  const r = e, i = $([]);
9810
9811
  return $e(() => n.state.data, (u) => {
9811
9812
  u && (i.value = u.result);
@@ -9893,7 +9894,7 @@ const Pg = { class: "flex items-center justify-between rounded-md w-full overflo
9893
9894
  }
9894
9895
  },
9895
9896
  setup(e) {
9896
- const t = e, n = et("entityObject"), o = $([]), r = $(null), i = $(null), a = $(!1), s = $(!1);
9897
+ const t = e, n = tt("entityObject"), o = $([]), r = $(null), i = $(null), a = $(!1), s = $(!1);
9897
9898
  Ve(() => {
9898
9899
  o.value = n.getEntityColumns(n.state.data), r.value = o.value.find((f) => f.name === t.displayField) || null, r.value && (i.value = t.item[r.value.name]);
9899
9900
  });
@@ -10080,7 +10081,7 @@ function Fh(e, t) {
10080
10081
  function rr(e, t) {
10081
10082
  return wo(e) ? e.matches(t) ? e : e.querySelector(t) : null;
10082
10083
  }
10083
- function Zt(e, t) {
10084
+ function en(e, t) {
10084
10085
  e && document.activeElement !== e && e.focus(t);
10085
10086
  }
10086
10087
  function Rh(e, t) {
@@ -10654,7 +10655,7 @@ var To = {};
10654
10655
  function li(e = "pui_id_") {
10655
10656
  return To.hasOwnProperty(e) || (To[e] = 0), To[e]++, `${e}${To[e]}`;
10656
10657
  }
10657
- var nn = {
10658
+ var on = {
10658
10659
  _loadedStyleNames: /* @__PURE__ */ new Set(),
10659
10660
  getLoadedStyleNames: function() {
10660
10661
  return this._loadedStyleNames;
@@ -11256,13 +11257,13 @@ var Sn = {
11256
11257
  },
11257
11258
  _loadStyles: function() {
11258
11259
  var t = this, n = function() {
11259
- nn.isStyleNameLoaded("base") || (We.loadCSS(t.$styleOptions), t._loadGlobalStyles(), nn.setLoadedStyleName("base")), t._loadThemeStyles();
11260
+ on.isStyleNameLoaded("base") || (We.loadCSS(t.$styleOptions), t._loadGlobalStyles(), on.setLoadedStyleName("base")), t._loadThemeStyles();
11260
11261
  };
11261
11262
  n(), this._themeChangeListener(n);
11262
11263
  },
11263
11264
  _loadCoreStyles: function() {
11264
11265
  var t, n;
11265
- !nn.isStyleNameLoaded((t = this.$style) === null || t === void 0 ? void 0 : t.name) && (n = this.$style) !== null && n !== void 0 && n.name && (ga.loadCSS(this.$styleOptions), this.$options.style && this.$style.loadCSS(this.$styleOptions), nn.setLoadedStyleName(this.$style.name));
11266
+ !on.isStyleNameLoaded((t = this.$style) === null || t === void 0 ? void 0 : t.name) && (n = this.$style) !== null && n !== void 0 && n.name && (ga.loadCSS(this.$styleOptions), this.$options.style && this.$style.loadCSS(this.$styleOptions), on.setLoadedStyleName(this.$style.name));
11266
11267
  },
11267
11268
  _loadGlobalStyles: function() {
11268
11269
  var t = this._useGlobalPT(this._getOptionValue, "global.css", this.$params);
@@ -11315,7 +11316,7 @@ var Sn = {
11315
11316
  _themeChangeListener: function() {
11316
11317
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
11317
11318
  };
11318
- nn.clearLoadedStyleNames(), Ht.on("theme:change", t);
11319
+ on.clearLoadedStyleNames(), Ht.on("theme:change", t);
11319
11320
  },
11320
11321
  _getHostInstance: function(t) {
11321
11322
  return t ? this.$options.hostName ? t.$.type.name === this.$options.hostName ? t : this._getHostInstance(t.$parentInstance) : t.$parentInstance : void 0;
@@ -11930,9 +11931,9 @@ var xe = {
11930
11931
  },
11931
11932
  _loadCoreStyles: function() {
11932
11933
  var t, n, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
11933
- if (!nn.isStyleNameLoaded((t = o.$style) === null || t === void 0 ? void 0 : t.name) && (n = o.$style) !== null && n !== void 0 && n.name) {
11934
+ if (!on.isStyleNameLoaded((t = o.$style) === null || t === void 0 ? void 0 : t.name) && (n = o.$style) !== null && n !== void 0 && n.name) {
11934
11935
  var i;
11935
- We.loadCSS(r), (i = o.$style) === null || i === void 0 || i.loadCSS(r), nn.setLoadedStyleName(o.$style.name);
11936
+ We.loadCSS(r), (i = o.$style) === null || i === void 0 || i.loadCSS(r), on.setLoadedStyleName(o.$style.name);
11936
11937
  }
11937
11938
  },
11938
11939
  _loadThemeStyles: function() {
@@ -11979,7 +11980,7 @@ var xe = {
11979
11980
  _themeChangeListener: function() {
11980
11981
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
11981
11982
  };
11982
- nn.clearLoadedStyleNames(), Ht.on("theme:change", t);
11983
+ on.clearLoadedStyleNames(), Ht.on("theme:change", t);
11983
11984
  },
11984
11985
  _hook: function(t, n, o, r, i, a) {
11985
11986
  var s, u, l = "on".concat(Lf(n)), c = xe._getConfig(r, i), d = o == null ? void 0 : o.$instance, f = xe._usePT(d, xe._getPT(r == null || (s = r.value) === null || s === void 0 ? void 0 : s.pt, t), xe._getOptionValue, "hooks.".concat(l)), p = xe._useDefaultPT(d, c == null || (u = c.pt) === null || u === void 0 || (u = u.directives) === null || u === void 0 ? void 0 : u[t], xe._getOptionValue, "hooks.".concat(l)), m = {
@@ -13219,9 +13220,9 @@ const o0 = { class: "flex items-center justify-between rounded-md w-full overflo
13219
13220
  }
13220
13221
  },
13221
13222
  setup(e, { expose: t, emit: n }) {
13222
- const o = nr(), r = tt();
13223
- an("entityObject", o);
13224
- const i = n, a = e, s = $([]), u = $([]), l = $(!0), c = $(null), { hasMatchingRoleAndPermissions: d } = xn(), f = et("getVariable"), p = $(null), m = (B) => {
13223
+ const o = nr(), r = Qe();
13224
+ sn("entityObject", o);
13225
+ const i = n, a = e, s = $([]), u = $([]), l = $(!0), c = $(null), { hasMatchingRoleAndPermissions: d } = xn(), f = tt("getVariable"), p = $(null), m = (B) => {
13225
13226
  const O = p.value;
13226
13227
  O && (O.scrollLeft += B * 266);
13227
13228
  };
@@ -13433,11 +13434,11 @@ const o0 = { class: "flex items-center justify-between rounded-md w-full overflo
13433
13434
  ], 16));
13434
13435
  }
13435
13436
  }, Ea = /* @__PURE__ */ nt(k0, [["__scopeId", "data-v-6a1d2c67"]]), Bl = 6048e5, x0 = 864e5, $a = Symbol.for("constructDateFrom");
13436
- function sn(e, t) {
13437
+ function ln(e, t) {
13437
13438
  return typeof e == "function" ? e(t) : e && typeof e == "object" && $a in e ? e[$a](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
13438
13439
  }
13439
13440
  function Ft(e, t) {
13440
- return sn(t || e, e);
13441
+ return ln(t || e, e);
13441
13442
  }
13442
13443
  let S0 = {};
13443
13444
  function ar() {
@@ -13452,9 +13453,9 @@ function Ho(e, t) {
13452
13453
  return uo(e, { ...t, weekStartsOn: 1 });
13453
13454
  }
13454
13455
  function Fl(e, t) {
13455
- const n = Ft(e, t == null ? void 0 : t.in), o = n.getFullYear(), r = sn(n, 0);
13456
+ const n = Ft(e, t == null ? void 0 : t.in), o = n.getFullYear(), r = ln(n, 0);
13456
13457
  r.setFullYear(o + 1, 0, 4), r.setHours(0, 0, 0, 0);
13457
- const i = Ho(r), a = sn(n, 0);
13458
+ const i = Ho(r), a = ln(n, 0);
13458
13459
  a.setFullYear(o, 0, 4), a.setHours(0, 0, 0, 0);
13459
13460
  const s = Ho(a);
13460
13461
  return n.getTime() >= i.getTime() ? o + 1 : n.getTime() >= s.getTime() ? o : o - 1;
@@ -13474,7 +13475,7 @@ function Oa(e) {
13474
13475
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
13475
13476
  }
13476
13477
  function C0(e, ...t) {
13477
- const n = sn.bind(
13478
+ const n = ln.bind(
13478
13479
  null,
13479
13480
  t.find((o) => typeof o == "object")
13480
13481
  );
@@ -13493,7 +13494,7 @@ function E0(e, t, n) {
13493
13494
  return Math.round((s - u) / x0);
13494
13495
  }
13495
13496
  function $0(e, t) {
13496
- const n = Fl(e, t), o = sn(e, 0);
13497
+ const n = Fl(e, t), o = ln(e, 0);
13497
13498
  return o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0), Ho(o);
13498
13499
  }
13499
13500
  function O0(e) {
@@ -13947,16 +13948,16 @@ function cy(e, t) {
13947
13948
  }
13948
13949
  function Rl(e, t) {
13949
13950
  var c, d, f, p;
13950
- const n = Ft(e, t == null ? void 0 : t.in), o = n.getFullYear(), r = ar(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, a = sn((t == null ? void 0 : t.in) || e, 0);
13951
+ const n = Ft(e, t == null ? void 0 : t.in), o = n.getFullYear(), r = ar(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, a = ln((t == null ? void 0 : t.in) || e, 0);
13951
13952
  a.setFullYear(o + 1, 0, i), a.setHours(0, 0, 0, 0);
13952
- const s = uo(a, t), u = sn((t == null ? void 0 : t.in) || e, 0);
13953
+ const s = uo(a, t), u = ln((t == null ? void 0 : t.in) || e, 0);
13953
13954
  u.setFullYear(o, 0, i), u.setHours(0, 0, 0, 0);
13954
13955
  const l = uo(u, t);
13955
13956
  return +n >= +s ? o + 1 : +n >= +l ? o : o - 1;
13956
13957
  }
13957
13958
  function dy(e, t) {
13958
13959
  var s, u, l, c;
13959
- const n = ar(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((c = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, r = Rl(e, t), i = sn((t == null ? void 0 : t.in) || e, 0);
13960
+ const n = ar(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((c = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, r = Rl(e, t), i = ln((t == null ? void 0 : t.in) || e, 0);
13960
13961
  return i.setFullYear(r, 0, o), i.setHours(0, 0, 0, 0), uo(i, t);
13961
13962
  }
13962
13963
  function fy(e, t) {
@@ -13967,7 +13968,7 @@ function Ne(e, t) {
13967
13968
  const n = e < 0 ? "-" : "", o = Math.abs(e).toString().padStart(t, "0");
13968
13969
  return n + o;
13969
13970
  }
13970
- const en = {
13971
+ const tn = {
13971
13972
  // Year
13972
13973
  y(e, t) {
13973
13974
  const n = e.getFullYear(), o = n > 0 ? n : 1 - n;
@@ -14055,7 +14056,7 @@ const en = {
14055
14056
  const o = e.getFullYear(), r = o > 0 ? o : 1 - o;
14056
14057
  return n.ordinalNumber(r, { unit: "year" });
14057
14058
  }
14058
- return en.y(e, t);
14059
+ return tn.y(e, t);
14059
14060
  },
14060
14061
  // Local week-numbering year
14061
14062
  Y: function(e, t, n, o) {
@@ -14158,7 +14159,7 @@ const en = {
14158
14159
  switch (t) {
14159
14160
  case "M":
14160
14161
  case "MM":
14161
- return en.M(e, t);
14162
+ return tn.M(e, t);
14162
14163
  // 1st, 2nd, ..., 12th
14163
14164
  case "Mo":
14164
14165
  return n.ordinalNumber(o + 1, { unit: "month" });
@@ -14223,7 +14224,7 @@ const en = {
14223
14224
  },
14224
14225
  // Day of the month
14225
14226
  d: function(e, t, n) {
14226
- return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : en.d(e, t);
14227
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : tn.d(e, t);
14227
14228
  },
14228
14229
  // Day of year
14229
14230
  D: function(e, t, n) {
@@ -14469,11 +14470,11 @@ const en = {
14469
14470
  let o = e.getHours() % 12;
14470
14471
  return o === 0 && (o = 12), n.ordinalNumber(o, { unit: "hour" });
14471
14472
  }
14472
- return en.h(e, t);
14473
+ return tn.h(e, t);
14473
14474
  },
14474
14475
  // Hour [0-23]
14475
14476
  H: function(e, t, n) {
14476
- return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : en.H(e, t);
14477
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : tn.H(e, t);
14477
14478
  },
14478
14479
  // Hour [0-11]
14479
14480
  K: function(e, t, n) {
@@ -14487,15 +14488,15 @@ const en = {
14487
14488
  },
14488
14489
  // Minute
14489
14490
  m: function(e, t, n) {
14490
- return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : en.m(e, t);
14491
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : tn.m(e, t);
14491
14492
  },
14492
14493
  // Second
14493
14494
  s: function(e, t, n) {
14494
- return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : en.s(e, t);
14495
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : tn.s(e, t);
14495
14496
  },
14496
14497
  // Fraction of second
14497
14498
  S: function(e, t) {
14498
- return en.S(e, t);
14499
+ return tn.S(e, t);
14499
14500
  },
14500
14501
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
14501
14502
  X: function(e, t, n) {
@@ -15135,7 +15136,7 @@ const Aa = /* @__PURE__ */ Ys(Fy), _a = {
15135
15136
  }
15136
15137
  };
15137
15138
  function Ry() {
15138
- const e = tt(), { get: t, post: n, put: o, del: r } = un(), i = () => e.getAppId();
15139
+ const e = Qe(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
15139
15140
  return {
15140
15141
  getEntities: async () => {
15141
15142
  const D = i();
@@ -15336,7 +15337,7 @@ const Py = /* @__PURE__ */ qr("entitiesStore", {
15336
15337
  onEntityChangeCallback: Function
15337
15338
  },
15338
15339
  setup(e) {
15339
- const t = tt(), n = $(""), o = Py(), r = $([]), i = async () => {
15340
+ const t = Qe(), n = $(""), o = Py(), r = $([]), i = async () => {
15340
15341
  r.value = await o.getEntities(), a();
15341
15342
  }, a = () => {
15342
15343
  for (let u = 0; u < r.value.length; u++) {
@@ -15414,7 +15415,7 @@ const Py = /* @__PURE__ */ qr("entitiesStore", {
15414
15415
  }
15415
15416
  };
15416
15417
  function My() {
15417
- const e = tt(), { get: t, post: n, put: o, del: r } = un(), i = () => e.getAppId();
15418
+ const e = Qe(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
15418
15419
  return {
15419
15420
  getAllMenu: async () => {
15420
15421
  const f = i();
@@ -17774,11 +17775,11 @@ var Kl = {
17774
17775
  }).length : t) + 1;
17775
17776
  },
17776
17777
  show: function(t) {
17777
- this.$emit("before-show"), this.overlayVisible = !0, this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex(), t && Zt(this.$refs.focusInput);
17778
+ this.$emit("before-show"), this.overlayVisible = !0, this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex(), t && en(this.$refs.focusInput);
17778
17779
  },
17779
17780
  hide: function(t) {
17780
17781
  var n = this, o = function() {
17781
- n.$emit("before-hide"), n.overlayVisible = !1, n.clicked = !1, n.focusedOptionIndex = -1, n.searchValue = "", n.resetFilterOnHide && (n.filterValue = null), t && Zt(n.$refs.focusInput);
17782
+ n.$emit("before-hide"), n.overlayVisible = !1, n.clicked = !1, n.focusedOptionIndex = -1, n.searchValue = "", n.resetFilterOnHide && (n.filterValue = null), t && en(n.$refs.focusInput);
17782
17783
  };
17783
17784
  setTimeout(function() {
17784
17785
  o();
@@ -17859,11 +17860,11 @@ var Kl = {
17859
17860
  },
17860
17861
  onFirstHiddenFocus: function(t) {
17861
17862
  var n = t.relatedTarget === this.$refs.focusInput ? Ph(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
17862
- Zt(n);
17863
+ en(n);
17863
17864
  },
17864
17865
  onLastHiddenFocus: function(t) {
17865
17866
  var n = t.relatedTarget === this.$refs.focusInput ? Ah(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
17866
- Zt(n);
17867
+ en(n);
17867
17868
  },
17868
17869
  onOptionSelect: function(t, n) {
17869
17870
  var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = this.getOptionValue(n);
@@ -17992,7 +17993,7 @@ var Kl = {
17992
17993
  },
17993
17994
  onTabKey: function(t) {
17994
17995
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
17995
- n || (this.overlayVisible && this.hasFocusableElements() ? (Zt(this.$refs.firstHiddenFocusableElementOnOverlay), t.preventDefault()) : (this.focusedOptionIndex !== -1 && this.onOptionSelect(t, this.visibleOptions[this.focusedOptionIndex]), this.overlayVisible && this.hide(this.filter)));
17996
+ n || (this.overlayVisible && this.hasFocusableElements() ? (en(this.$refs.firstHiddenFocusableElementOnOverlay), t.preventDefault()) : (this.focusedOptionIndex !== -1 && this.onOptionSelect(t, this.visibleOptions[this.focusedOptionIndex]), this.overlayVisible && this.hide(this.filter)));
17996
17997
  },
17997
17998
  onBackspaceKey: function(t) {
17998
17999
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
@@ -18005,7 +18006,7 @@ var Kl = {
18005
18006
  top: "0",
18006
18007
  left: "0"
18007
18008
  }), this.alignOverlay(), this.scrollInView(), setTimeout(function() {
18008
- n.autoFilterFocus && n.filter && Zt(n.$refs.filterInput.$el);
18009
+ n.autoFilterFocus && n.filter && en(n.$refs.filterInput.$el);
18009
18010
  }, 1);
18010
18011
  },
18011
18012
  onOverlayAfterEnter: function() {
@@ -18014,7 +18015,7 @@ var Kl = {
18014
18015
  onOverlayLeave: function() {
18015
18016
  var t = this;
18016
18017
  this.unbindOutsideClickListener(), this.unbindScrollListener(), this.unbindResizeListener(), this.autoFilterFocus && this.filter && !this.editable && this.$nextTick(function() {
18017
- Zt(t.$refs.filterInput.$el);
18018
+ en(t.$refs.filterInput.$el);
18018
18019
  }), this.$emit("hide"), this.overlay = null;
18019
18020
  },
18020
18021
  onOverlayAfterLeave: function(t) {
@@ -18055,7 +18056,7 @@ var Kl = {
18055
18056
  if (!this.editable && !this.labelClickListener) {
18056
18057
  var n = document.querySelector('label[for="'.concat(this.labelId, '"]'));
18057
18058
  n && Mo(n) && (this.labelClickListener = function() {
18058
- Zt(t.$refs.focusInput);
18059
+ en(t.$refs.focusInput);
18059
18060
  }, n.addEventListener("click", this.labelClickListener));
18060
18061
  }
18061
18062
  },
@@ -18680,9 +18681,9 @@ const Gv = { class: "editable-label-editing flex items-center gap-2 w-full" }, G
18680
18681
  }),
18681
18682
  emits: /* @__PURE__ */ ze(["update:modelValue", "onChange"], ["update:modelValue"]),
18682
18683
  setup(e, { emit: t }) {
18683
- const n = tt(), o = () => n.getAppId(), r = e;
18684
+ const n = Qe(), o = () => n.getAppId(), r = e;
18684
18685
  console.log("DynamicSelection props:", r);
18685
- const i = t, a = Ze(e, "modelValue"), s = $(null), u = $([]), l = Z(
18686
+ const i = t, a = et(e, "modelValue"), s = $(null), u = $([]), l = Z(
18686
18687
  () => r.options.length ? "label" : r.displayField
18687
18688
  ), c = Z(
18688
18689
  () => r.options.length ? "value" : r.valueField
@@ -18816,7 +18817,7 @@ const Gv = { class: "editable-label-editing flex items-center gap-2 w-full" }, G
18816
18817
  emits: /* @__PURE__ */ ze(["update:modelValue", "onChange"], ["update:modelValue"]),
18817
18818
  setup(e, { emit: t }) {
18818
18819
  const n = $(null), o = e, r = t;
18819
- Ze(e, "modelValue");
18820
+ et(e, "modelValue");
18820
18821
  const i = Z(() => `${e1}/${o.entity}/record`), a = $(!0), { hasMatchingRoleAndPermissions: s } = xn();
18821
18822
  Ve(async () => {
18822
18823
  a.value = await s(o.roles, o.permissions);
@@ -18859,7 +18860,7 @@ const Gv = { class: "editable-label-editing flex items-center gap-2 w-full" }, G
18859
18860
  emits: /* @__PURE__ */ ze(["update:entity-name", "onChange"], ["update:modelValue"]),
18860
18861
  setup(e, { emit: t }) {
18861
18862
  const n = e, o = t;
18862
- Ze(e, "modelValue");
18863
+ et(e, "modelValue");
18863
18864
  const r = $(!0), { hasMatchingRoleAndPermissions: i } = xn();
18864
18865
  Ve(async () => {
18865
18866
  r.value = await i(n.roles, n.permissions);
@@ -18913,7 +18914,7 @@ const Gv = { class: "editable-label-editing flex items-center gap-2 w-full" }, G
18913
18914
  emits: /* @__PURE__ */ ze(["update:modelValue", "onChange"], ["update:modelValue"]),
18914
18915
  setup(e, { emit: t }) {
18915
18916
  const n = t;
18916
- Ze(e, "modelValue");
18917
+ et(e, "modelValue");
18917
18918
  function o(r) {
18918
18919
  n("update:modelValue", r), n("onChange", r);
18919
18920
  }
@@ -18960,7 +18961,7 @@ const Gv = { class: "editable-label-editing flex items-center gap-2 w-full" }, G
18960
18961
  },
18961
18962
  emits: ["update:modelValue", "onChange"],
18962
18963
  setup(e, { emit: t }) {
18963
- const n = tt(), o = () => n.getAppId(), r = e;
18964
+ const n = Qe(), o = () => n.getAppId(), r = e;
18964
18965
  console.log("DynamicMultiSelection props:", r);
18965
18966
  const i = t, a = $(Array.isArray(r.modelValue) ? [...r.modelValue] : []), s = $([]), u = Z(
18966
18967
  () => r.options.length ? "label" : r.displayField
@@ -19080,7 +19081,7 @@ const Gv = { class: "editable-label-editing flex items-center gap-2 w-full" }, G
19080
19081
  setup(e, { emit: t }) {
19081
19082
  $(null);
19082
19083
  const n = e, o = t;
19083
- Ze(e, "modelValue");
19084
+ et(e, "modelValue");
19084
19085
  const r = $(!0), { hasMatchingRoleAndPermissions: i } = xn();
19085
19086
  Ve(async () => {
19086
19087
  r.value = await i(n.roles, n.permissions);
@@ -19132,7 +19133,7 @@ const Gv = { class: "editable-label-editing flex items-center gap-2 w-full" }, G
19132
19133
  setup(e, { emit: t }) {
19133
19134
  $(null);
19134
19135
  const n = e, o = t;
19135
- Ze(e, "modelValue");
19136
+ et(e, "modelValue");
19136
19137
  const r = $(!0), { hasMatchingRoleAndPermissions: i } = xn();
19137
19138
  Ve(async () => {
19138
19139
  r.value = await i(n.roles, n.permissions);
@@ -25055,7 +25056,7 @@ function Ak() {
25055
25056
  } };
25056
25057
  }
25057
25058
  function _k() {
25058
- const e = tt(), { get: t, post: n, put: o, del: r } = un(), i = () => e.getAppId();
25059
+ const e = Qe(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25059
25060
  return {
25060
25061
  getThemes: async () => {
25061
25062
  const d = i();
@@ -25077,14 +25078,14 @@ function _k() {
25077
25078
  };
25078
25079
  }
25079
25080
  function Dk() {
25080
- const { get: e } = un();
25081
+ const { get: e } = Xt();
25081
25082
  return {
25082
25083
  getPlatformComponents: async () => await e("/api/platform/v1/search/COMPONENT_PALLET?page=0&size=50&continue"),
25083
25084
  getComponentTemplates: async (o) => await e(`api/platform/v1/search/COMPONENT_TEMPLATE?keyword=${o}&page=0&size=50`)
25084
25085
  };
25085
25086
  }
25086
25087
  function Nk() {
25087
- const e = tt(), { get: t, post: n, put: o, del: r } = un(), i = () => e.getAppId();
25088
+ const e = Qe(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25088
25089
  return {
25089
25090
  getPage: async (d) => {
25090
25091
  const f = i();
@@ -25109,7 +25110,7 @@ function Nk() {
25109
25110
  };
25110
25111
  }
25111
25112
  function Lk() {
25112
- const e = tt(), { get: t, post: n, put: o, del: r } = un(), i = () => e.getAppId();
25113
+ const e = Qe(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25113
25114
  return {
25114
25115
  getLayouts: async () => {
25115
25116
  const d = i();
@@ -25133,6 +25134,35 @@ function Lk() {
25133
25134
  }
25134
25135
  };
25135
25136
  }
25137
+ function Vk() {
25138
+ const e = Qe(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25139
+ return {
25140
+ getGlobalVars: async () => {
25141
+ const f = i();
25142
+ return await t(`/api/app/v1/${f}/content/globalvars`);
25143
+ },
25144
+ addGlobalVars: async (f) => {
25145
+ const p = i();
25146
+ return await n(`/api/app/v1/${p}/content/globalvars`, f);
25147
+ },
25148
+ deleteVars: async (f) => {
25149
+ const p = i();
25150
+ return await r(`/api/app/v1/${p}/content/globalvars/${f}`);
25151
+ },
25152
+ getGlobalActions: async () => {
25153
+ const f = i();
25154
+ return await t(`/api/app/v1/${f}/content/globalaction`);
25155
+ },
25156
+ addGlobalAction: async (f) => {
25157
+ const p = i();
25158
+ return await n(`/api/app/v1/${p}/content/globalaction`, f);
25159
+ },
25160
+ deleteAction: async (f) => {
25161
+ const p = i();
25162
+ return await r(`/api/app/v1/${p}/content/globalaction/${f}`);
25163
+ }
25164
+ };
25165
+ }
25136
25166
  const xk = { style: {
25137
25167
  position: "fixed",
25138
25168
  top: 0,
@@ -25228,7 +25258,7 @@ const xk = { style: {
25228
25258
  ]));
25229
25259
  }
25230
25260
  };
25231
- function Vk({
25261
+ function zk({
25232
25262
  type: e = "danger",
25233
25263
  title: t = "Warning",
25234
25264
  message: n = "All the changes you made will be lost, do you wish to continue?",
@@ -25253,7 +25283,7 @@ function Vk({
25253
25283
  s.unmount(), a.parentNode === document.body && document.body.removeChild(a);
25254
25284
  }, 300);
25255
25285
  }
25256
- return () => Qe(Ok, {
25286
+ return () => Ze(Ok, {
25257
25287
  modelValue: i.value,
25258
25288
  "onUpdate:modelValue": (d) => {
25259
25289
  i.value = d, d || c();
@@ -25268,14 +25298,14 @@ function Vk({
25268
25298
  });
25269
25299
  s.mount(a);
25270
25300
  }
25271
- const zk = {
25301
+ const jk = {
25272
25302
  install(e, t) {
25273
25303
  e.component("CSEntityGrid", Dr), e.component("csentitygrid", Dr), e.component("CSEntityList", Zi), e.component("csentitylist", Zi), e.component("CSFieldExpression", _a), e.component("csfieldexpression", _a), e.component("CSEntity360View", Ji), e.component("csentity360view", Ji), e.component("CSEntityListing", aa), e.component("csentitylisting", aa), e.component("CSEntityListingTile", sa), e.component("csentitylistingtile", sa), e.component("CSEntityListingCarousel", Ea), e.component("csentitylistingcarousel", Ea), e.component("CSEntitySelection", Xa), e.component("csentityselection", Xa), e.component("CSEntityExplorer", Da), e.component("csentityexplorer", Da), e.component("CSMenu", Na), e.component("csmenu", Na), e.component("CSTextInput", La), e.component("cstextinput", La), e.component("CSButton", Va), e.component("csbutton", Va), e.component("CSStateText", za), e.component("csstatetext", za), e.component("CSColorPicker", ja), e.component("cscolorpicker", ja), e.component("CSRangeInput", Ma), e.component("csrangeinput", Ma), e.component("CSSelector", Ga), e.component("csselector", Ga), e.component("CSDynamicSelection", mo), e.component("csdynamicselection", mo), e.component("CSEntityRecordSelection", Ya), e.component("csentityrecordselection", Ya), e.component("CSMenuSelection", Ja), e.component("csmenuSelection", Ja), e.component("CSlabel", es), e.component("cslabel", es), e.component("CSLogin", ts), e.component("cslogin", ts), e.component("CSSignup", ns), e.component("cssignup", ns), e.component("CSRolesSelection", Qa), e.component("csrolesselection", Qa), e.component("CSPermissionSelection", Za), e.component("cspermissionselection", Za), e.component("CSIconSelection", os), e.component("csiconselection", os), e.component("CSIconComponent", rs), e.component("csiconcomponent", rs);
25274
25304
  }
25275
25305
  };
25276
25306
  export {
25277
- zk as default,
25278
- Vk as openGlobalDialog,
25307
+ jk as default,
25308
+ zk as openGlobalDialog,
25279
25309
  Pk as useAddEntityRecord,
25280
25310
  Dk as useComponentService,
25281
25311
  Ak as useDeleteEntityRecord,
@@ -25283,8 +25313,9 @@ export {
25283
25313
  Bt as useEntityRecordService,
25284
25314
  Ry as useEntityService,
25285
25315
  Rk as useGetEntityRecord,
25286
- tt as useGlobalConfigsStore,
25287
- un as useHttpClient,
25316
+ Qe as useGlobalConfigsStore,
25317
+ Vk as useGlobalService,
25318
+ Xt as useHttpClient,
25288
25319
  Lk as useLayoutService,
25289
25320
  My as useMenuService,
25290
25321
  Nk as usePageService,