codesaaz-core 0.0.95 → 0.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { mergeModels as Le, useModel as Ke, resolveComponent as X, openBlock as b, createBlock as H, mergeProps as ae, hasInjectionContext as tu, inject as at, ref as E, watch as $e, reactive as Nt, effectScope as nu, isRef as Gt, isReactive as ps, toRaw as ou, getCurrentScope as ru, onScopeDispose as iu, nextTick as mt, toRefs as au, markRaw as su, computed as te, createElementBlock as k, Fragment as se, createElementVNode as v, createTextVNode as Qe, toDisplayString as Z, createCommentVNode as M, renderList as Oe, createVNode as K, toValue as Ee, unref as Q, onMounted as ze, provide as sn, readonly as ms, watchEffect as Io, shallowRef as lu, withCtx as ne, onUpdated as gs, normalizeProps as Yt, guardReactiveProps as ho, renderSlot as fe, createSlots as Bn, withKeys as Ur, withModifiers as ko, withDirectives as wt, vShow as uu, resolveDirective as Hr, normalizeClass as ye, getCurrentInstance as Wr, resolveDynamicComponent as Pe, defineComponent as An, h as et, shallowReactive as Cr, onBeforeUnmount as hs, useId as cu, onUnmounted as du, cloneVNode as fu, Teleport as pu, Transition as mu, normalizeStyle as Qn, vModelText as Rn, vModelCheckbox as bs, createApp as gu } from "vue";
1
+ import { mergeModels as Le, useModel as Ke, resolveComponent as X, openBlock as b, createBlock as H, mergeProps as ae, hasInjectionContext as tu, inject as at, ref as E, watch as $e, reactive as Nt, effectScope as nu, isRef as Yt, isReactive as ps, toRaw as ou, getCurrentScope as ru, onScopeDispose as iu, nextTick as mt, toRefs as au, markRaw as su, computed as te, createElementBlock as k, Fragment as se, createElementVNode as v, createTextVNode as Ze, toDisplayString as Z, createCommentVNode as M, renderList as Oe, createVNode as K, toValue as Ee, unref as Q, onMounted as ze, provide as sn, readonly as ms, watchEffect as Io, shallowRef as lu, withCtx as ne, onUpdated as gs, normalizeProps as Xt, guardReactiveProps as ho, renderSlot as fe, createSlots as Bn, withKeys as Ur, withModifiers as ko, withDirectives as wt, vShow as uu, resolveDirective as Hr, normalizeClass as ye, getCurrentInstance as Wr, resolveDynamicComponent as Pe, defineComponent as An, h as et, shallowReactive as Cr, onBeforeUnmount as hs, useId as cu, onUnmounted as du, cloneVNode as fu, Teleport as pu, Transition as mu, normalizeStyle as Qn, vModelText as Rn, vModelCheckbox as bs, createApp as gu } from "vue";
2
2
  import { useRoute as un, useRouter as hu } from "vue-router";
3
3
  import { useToast as ys, InputText as ci } from "primevue";
4
4
  const di = {
@@ -173,7 +173,7 @@ function $r(e, t) {
173
173
  if (!t.hasOwnProperty(n))
174
174
  continue;
175
175
  const o = t[n], r = e[n];
176
- Er(r) && Er(o) && e.hasOwnProperty(n) && !Gt(o) && !ps(o) ? e[n] = $r(r, o) : e[n] = o;
176
+ Er(r) && Er(o) && e.hasOwnProperty(n) && !Yt(o) && !ps(o) ? e[n] = $r(r, o) : e[n] = o;
177
177
  }
178
178
  return e;
179
179
  }
@@ -186,7 +186,7 @@ function wu(e) {
186
186
  }
187
187
  const { assign: nn } = Object;
188
188
  function ku(e) {
189
- return !!(Gt(e) && e.effect);
189
+ return !!(Yt(e) && e.effect);
190
190
  }
191
191
  function xu(e, t, n, o) {
192
192
  const { state: r, actions: i, getters: a } = t, s = n.state.value[e];
@@ -289,8 +289,8 @@ function ks(e, t, n = {}, o, r, i) {
289
289
  const O = (o._a && o._a.runWithContext || yu)(() => o._e.run(() => (a = nu()).run(() => t({ action: x }))));
290
290
  for (const C in O) {
291
291
  const V = O[C];
292
- if (Gt(V) && !ku(V) || ps(V))
293
- i || (m && wu(V) && (Gt(V) ? V.value = m[C] : $r(V, m[C])), o.state.value[e][C] = V);
292
+ if (Yt(V) && !ku(V) || ps(V))
293
+ i || (m && wu(V) && (Yt(V) ? V.value = m[C] : $r(V, m[C])), o.state.value[e][C] = V);
294
294
  else if (typeof V == "function") {
295
295
  const W = x(V, C);
296
296
  O[C] = W, s.actions[C] = V;
@@ -326,7 +326,7 @@ function Kr(e, t, n) {
326
326
  }
327
327
  return a.$id = o, a;
328
328
  }
329
- const Ze = /* @__PURE__ */ Kr("globalConfigsStore", {
329
+ const Xe = /* @__PURE__ */ Kr("globalConfigsStore", {
330
330
  state: () => ({
331
331
  globalConfigs: {}
332
332
  }),
@@ -2061,8 +2061,8 @@ function Ri(e = {}) {
2061
2061
  ...e
2062
2062
  };
2063
2063
  }
2064
- function Xt() {
2065
- Ze();
2064
+ function zt() {
2065
+ Xe();
2066
2066
  const e = Zc(), t = Ye.create({
2067
2067
  headers: Ri()
2068
2068
  });
@@ -2114,7 +2114,7 @@ function Xt() {
2114
2114
  };
2115
2115
  }
2116
2116
  function Ct() {
2117
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
2117
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
2118
2118
  return {
2119
2119
  getEntityRecords: async (g, h = {}) => {
2120
2120
  const y = i(), w = new URLSearchParams(h).toString(), x = w ? `/api/app/v1/${y}/entity/${g}/record?${w}` : `/api/app/v1/${y}/entity/${g}/record`;
@@ -2339,7 +2339,7 @@ const tt = (e, t) => {
2339
2339
  class: "mb-1",
2340
2340
  for: e.column.name
2341
2341
  }, [
2342
- Qe(Z(e.column.displayName || e.column.name) + " ", 1),
2342
+ Ze(Z(e.column.displayName || e.column.name) + " ", 1),
2343
2343
  e.column.required ? (b(), k("span", od, "*")) : M("", !0)
2344
2344
  ], 8, nd),
2345
2345
  e.column.inputComponent.toLowerCase() == "input_calendar" ? (b(), H(s, {
@@ -2397,7 +2397,7 @@ const tt = (e, t) => {
2397
2397
  binary: ""
2398
2398
  }, null, 8, ["modelValue", "invalid"]),
2399
2399
  v("label", sd, [
2400
- Qe(Z(e.column.displayName || e.column.name) + " ", 1),
2400
+ Ze(Z(e.column.displayName || e.column.name) + " ", 1),
2401
2401
  e.column.required ? (b(), k("span", ld, "*")) : M("", !0)
2402
2402
  ])
2403
2403
  ])) : M("", !0)
@@ -2593,10 +2593,10 @@ function _i(e) {
2593
2593
  function Zr(e) {
2594
2594
  return Qo(e) ? e.replace(/\[|\]/gi, "") : e;
2595
2595
  }
2596
- function qt(e, t, n) {
2596
+ function Kt(e, t, n) {
2597
2597
  return e ? Qo(t) ? e[Zr(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((r, i) => vd(r) && i in r ? r[i] : n, e) : n;
2598
2598
  }
2599
- function Ut(e, t, n) {
2599
+ function Ht(e, t, n) {
2600
2600
  if (Qo(t)) {
2601
2601
  e[Zr(t)] = n;
2602
2602
  return;
@@ -2634,7 +2634,7 @@ function Di(e, t) {
2634
2634
  break;
2635
2635
  o = o[n[i]];
2636
2636
  }
2637
- const r = n.map((i, a) => qt(e, n.slice(0, a).join(".")));
2637
+ const r = n.map((i, a) => Kt(e, n.slice(0, a).join(".")));
2638
2638
  for (let i = r.length - 1; i >= 0; i--)
2639
2639
  if (wd(r[i])) {
2640
2640
  if (i === 0) {
@@ -2744,7 +2744,7 @@ const Td = (e) => {
2744
2744
  function Id(e) {
2745
2745
  const t = (n) => {
2746
2746
  var o;
2747
- return (o = qt(n, e)) !== null && o !== void 0 ? o : n[e];
2747
+ return (o = Kt(n, e)) !== null && o !== void 0 ? o : n[e];
2748
2748
  };
2749
2749
  return t.__locatorRef = e, t;
2750
2750
  }
@@ -2893,7 +2893,7 @@ async function Ld(e, t) {
2893
2893
  async function Vd(e, t, n) {
2894
2894
  const r = vt(e).map(async (l) => {
2895
2895
  var c, f, d;
2896
- const p = (c = n == null ? void 0 : n.names) === null || c === void 0 ? void 0 : c[l], m = await Fd(qt(t, l), e[l], {
2896
+ const p = (c = n == null ? void 0 : n.names) === null || c === void 0 ? void 0 : c[l], m = await Fd(Kt(t, l), e[l], {
2897
2897
  name: (p == null ? void 0 : p.name) || l,
2898
2898
  label: p == null ? void 0 : p.label,
2899
2899
  values: t,
@@ -2955,18 +2955,18 @@ function el(e) {
2955
2955
  var G;
2956
2956
  return R[Ee(F.path)] = (G = F.bails) !== null && G !== void 0 ? G : !0, R;
2957
2957
  }, {})), $ = Object.assign({}, {}), T = (t = void 0) !== null && t !== void 0 ? t : !1, { initialValues: L, originalInitialValues: O, setInitialValues: C } = Md(c, l), V = jd(c, l, O, y), W = te(() => c.value.reduce((R, F) => {
2958
- const G = qt(l, Ee(F.path));
2959
- return Ut(R, Ee(F.path), G), R;
2958
+ const G = Kt(l, Ee(F.path));
2959
+ return Ht(R, Ee(F.path), G), R;
2960
2960
  }, {})), B = void 0;
2961
2961
  function U(R, F) {
2962
2962
  var G, re;
2963
- const ge = te(() => qt(L.value, Ee(R))), ve = d.value[Ee(R)], de = (F == null ? void 0 : F.type) === "checkbox" || (F == null ? void 0 : F.type) === "radio";
2963
+ const ge = te(() => Kt(L.value, Ee(R))), ve = d.value[Ee(R)], de = (F == null ? void 0 : F.type) === "checkbox" || (F == null ? void 0 : F.type) === "radio";
2964
2964
  if (ve && de) {
2965
2965
  ve.multiple = !0;
2966
2966
  const Me = r++;
2967
2967
  return Array.isArray(ve.id) ? ve.id.push(Me) : ve.id = [ve.id, Me], ve.fieldsCount++, ve.__flags.pendingUnmount[Me] = !1, ve;
2968
2968
  }
2969
- const q = te(() => qt(l, Ee(R))), ee = Ee(R), ue = N.findIndex((Me) => Me === ee);
2969
+ const q = te(() => Kt(l, Ee(R))), ee = Ee(R), ue = N.findIndex((Me) => Me === ee);
2970
2970
  ue !== -1 && N.splice(ue, 1);
2971
2971
  const le = te(() => {
2972
2972
  var Me, nt, Ln, Vn;
@@ -3000,11 +3000,11 @@ function el(e) {
3000
3000
  });
3001
3001
  return c.value.push(De), d.value[ee] = De, p(), y.value[ee] && !$[ee] && mt(() => {
3002
3002
  We(ee, { mode: "silent" });
3003
- }), Gt(R) && $e(R, (Me) => {
3003
+ }), Yt(R) && $e(R, (Me) => {
3004
3004
  p();
3005
3005
  const nt = je(q.value);
3006
3006
  d.value[Me] = De, mt(() => {
3007
- Ut(l, Me, nt);
3007
+ Ht(l, Me, nt);
3008
3008
  });
3009
3009
  }), De;
3010
3010
  }
@@ -3129,7 +3129,7 @@ function el(e) {
3129
3129
  defineInputBinds: me,
3130
3130
  defineComponentBinds: $t,
3131
3131
  defineField: Qt,
3132
- stageInitialValue: Xe,
3132
+ stageInitialValue: Je,
3133
3133
  unsetInitialValue: Ft,
3134
3134
  setFieldInitialValue: lt,
3135
3135
  createPathState: U,
@@ -3145,7 +3145,7 @@ function el(e) {
3145
3145
  };
3146
3146
  function Se(R, F, G = !0) {
3147
3147
  const re = je(F), ge = typeof R == "string" ? R : R.path;
3148
- z(ge) || U(ge), Ut(l, ge, re), G && We(ge);
3148
+ z(ge) || U(ge), Ht(l, ge, re), G && We(ge);
3149
3149
  }
3150
3150
  function pt(R, F = !0) {
3151
3151
  vt(l).forEach((G) => {
@@ -3199,7 +3199,7 @@ function el(e) {
3199
3199
  }
3200
3200
  function Ve(R, F) {
3201
3201
  var G;
3202
- const re = F && "value" in F ? F.value : qt(L.value, R), ge = z(R);
3202
+ const re = F && "value" in F ? F.value : Kt(L.value, R), ge = z(R);
3203
3203
  ge && (ge.__flags.pendingReset = !0), lt(R, je(re), !0), Se(R, re, !1), ht(R, (G = F == null ? void 0 : F.touched) !== null && G !== void 0 ? G : !1), m(R, (F == null ? void 0 : F.errors) || []), mt(() => {
3204
3204
  ge && (ge.__flags.pendingReset = !1);
3205
3205
  });
@@ -3208,7 +3208,7 @@ function el(e) {
3208
3208
  let G = je(R != null && R.values ? R.values : O.value);
3209
3209
  G = F != null && F.force ? G : eo(O.value, G), G = rn(B) && It(B.cast) ? B.cast(G) : G, C(G, { force: F == null ? void 0 : F.force }), P((re) => {
3210
3210
  var ge;
3211
- re.__flags.pendingReset = !0, re.validated = !1, re.touched = ((ge = R == null ? void 0 : R.touched) === null || ge === void 0 ? void 0 : ge[Ee(re.path)]) || !1, Se(Ee(re.path), qt(G, Ee(re.path)), !1), m(Ee(re.path), void 0);
3211
+ re.__flags.pendingReset = !0, re.validated = !1, re.touched = ((ge = R == null ? void 0 : R.touched) === null || ge === void 0 ? void 0 : ge[Ee(re.path)]) || !1, Se(Ee(re.path), Kt(G, Ee(re.path)), !1), m(Ee(re.path), void 0);
3212
3212
  }), F != null && F.force ? pt(G, !1) : ot(G, !1), g((R == null ? void 0 : R.errors) || {}), s.value = (R == null ? void 0 : R.submitCount) || 0, mt(() => {
3213
3213
  Fe({ mode: "silent" }), P((re) => {
3214
3214
  re.__flags.pendingReset = !1;
@@ -3237,7 +3237,7 @@ function el(e) {
3237
3237
  re[de.key] = {
3238
3238
  valid: de.valid,
3239
3239
  errors: de.errors
3240
- }, de.value && Ut(ve, de.key, de.value), de.errors.length && (ge[de.key] = de.errors[0]);
3240
+ }, de.value && Ht(ve, de.key, de.value), de.errors.length && (ge[de.key] = de.errors[0]);
3241
3241
  return {
3242
3242
  valid: G.every((de) => de.valid),
3243
3243
  results: re,
@@ -3254,11 +3254,11 @@ function el(e) {
3254
3254
  function Ft(R) {
3255
3255
  Di(L.value, R);
3256
3256
  }
3257
- function Xe(R, F, G = !1) {
3258
- lt(R, F), Ut(l, R, F), G && Ut(O.value, R, je(F));
3257
+ function Je(R, F, G = !1) {
3258
+ lt(R, F), Ht(l, R, F), G && Ht(O.value, R, je(F));
3259
3259
  }
3260
3260
  function lt(R, F, G = !1) {
3261
- Ut(L.value, R, je(F)), G && Ut(O.value, R, je(F));
3261
+ Ht(L.value, R, je(F)), G && Ht(O.value, R, je(F));
3262
3262
  }
3263
3263
  async function bt() {
3264
3264
  const R = Q(B);
@@ -3276,7 +3276,7 @@ function el(e) {
3276
3276
  });
3277
3277
  ze(() => {
3278
3278
  ke.validateSchema && ke.validateSchema("silent");
3279
- }), Gt(B) && $e(B, () => {
3279
+ }), Yt(B) && $e(B, () => {
3280
3280
  var R;
3281
3281
  (R = ke.validateSchema) === null || R === void 0 || R.call(ke, "validated-only");
3282
3282
  }), sn(md, ke);
@@ -3372,8 +3372,8 @@ function Md(e, t, n) {
3372
3372
  u != null && u.force ? (r.value = je(s), i.value = je(s)) : (r.value = eo(je(r.value) || {}, je(s)), i.value = eo(je(i.value) || {}, je(s))), u != null && u.updateFields && e.value.forEach((l) => {
3373
3373
  if (l.touched)
3374
3374
  return;
3375
- const f = qt(r.value, Ee(l.path));
3376
- Ut(t, Ee(l.path), je(f));
3375
+ const f = Kt(r.value, Ee(l.path));
3376
+ Ht(t, Ee(l.path), je(f));
3377
3377
  });
3378
3378
  }
3379
3379
  return {
@@ -4346,24 +4346,24 @@ function Ar(e) {
4346
4346
  var t, n;
4347
4347
  const o = lf.exec(e);
4348
4348
  return o ? {
4349
- year: zt(o[1]),
4350
- month: zt(o[2], 1) - 1,
4351
- day: zt(o[3], 1),
4352
- hour: zt(o[4]),
4353
- minute: zt(o[5]),
4354
- second: zt(o[6]),
4349
+ year: jt(o[1]),
4350
+ month: jt(o[2], 1) - 1,
4351
+ day: jt(o[3], 1),
4352
+ hour: jt(o[4]),
4353
+ minute: jt(o[5]),
4354
+ second: jt(o[6]),
4355
4355
  millisecond: o[7] ? (
4356
4356
  // allow arbitrary sub-second precision beyond milliseconds
4357
- zt(o[7].substring(0, 3))
4357
+ jt(o[7].substring(0, 3))
4358
4358
  ) : 0,
4359
4359
  precision: (t = (n = o[7]) == null ? void 0 : n.length) != null ? t : void 0,
4360
4360
  z: o[8] || void 0,
4361
4361
  plusMinus: o[9] || void 0,
4362
- hourOffset: zt(o[10]),
4363
- minuteOffset: zt(o[11])
4362
+ hourOffset: jt(o[10]),
4363
+ minuteOffset: jt(o[11])
4364
4364
  } : null;
4365
4365
  }
4366
- function zt(e, t = 0) {
4366
+ function jt(e, t = 0) {
4367
4367
  return Number(e) || t;
4368
4368
  }
4369
4369
  let cf = (
@@ -5122,7 +5122,7 @@ const Ef = {
5122
5122
  severity: "error"
5123
5123
  }, {
5124
5124
  default: ne(() => [
5125
- Qe(Z(s.message), 1)
5125
+ Ze(Z(s.message), 1)
5126
5126
  ]),
5127
5127
  _: 2
5128
5128
  }, 1024)
@@ -5198,7 +5198,7 @@ const Ef = {
5198
5198
  K(w, {
5199
5199
  modelValue: Q(f),
5200
5200
  "onUpdate:modelValue": [
5201
- y[0] || (y[0] = (x) => Gt(f) ? f.value = x : f = x),
5201
+ y[0] || (y[0] = (x) => Yt(f) ? f.value = x : f = x),
5202
5202
  m
5203
5203
  ],
5204
5204
  "item-value": e.relatedEntityColumn,
@@ -5423,7 +5423,7 @@ function er(e) {
5423
5423
  function Te(e) {
5424
5424
  return !kn(e);
5425
5425
  }
5426
- function Wt(e, t) {
5426
+ function qt(e, t) {
5427
5427
  if (!e || !t)
5428
5428
  return null;
5429
5429
  try {
@@ -5449,7 +5449,7 @@ function Wt(e, t) {
5449
5449
  return null;
5450
5450
  }
5451
5451
  function dl(e, t, n) {
5452
- return n ? Wt(e, n) === Wt(t, n) : jf(e, t);
5452
+ return n ? qt(e, n) === qt(t, n) : jf(e, t);
5453
5453
  }
5454
5454
  function Ji(e, t) {
5455
5455
  let n = -1;
@@ -5486,7 +5486,7 @@ function Mf(e) {
5486
5486
  function Uf(e = "") {
5487
5487
  return Te(e) && e.length === 1 && !!e.match(/\S| /);
5488
5488
  }
5489
- function Kt(e, t) {
5489
+ function Gt(e, t) {
5490
5490
  if (t) {
5491
5491
  const n = t.test(e);
5492
5492
  return t.lastIndex = 0, n;
@@ -5650,7 +5650,7 @@ var Kf = {
5650
5650
  var c = ea(n), f;
5651
5651
  try {
5652
5652
  for (c.s(); !(f = c.n()).done; ) {
5653
- var d = f.value, p = Wt(l, d);
5653
+ var d = f.value, p = qt(l, d);
5654
5654
  if (this.filters[r](p, o, i)) {
5655
5655
  a.push(l);
5656
5656
  break;
@@ -5791,7 +5791,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
5791
5791
  }
5792
5792
  },
5793
5793
  setup(e) {
5794
- const t = Ze(), n = e;
5794
+ const t = Xe(), n = e;
5795
5795
  console.log("columnsToShow", n.columnsToShow);
5796
5796
  const o = un(), r = E(n.entityName || o.params.entityName), i = E({}), a = E(""), s = E(!1), u = E(!1), { items: l, headers: c, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: y, filterToSend: w, primarayKeyColumn: x, fullTextSearch: $, listingResponse: T, onFullTextSearch: L, getDatatypeByField: O, getColumnDatatype: C, onSort: V, onPage: W, onFilter: B, fetchEntityFilterData: U, fetchEntityByName: S, showEntityData: I } = ed(r.value), _ = E();
5797
5797
  let P = E(!1);
@@ -5860,7 +5860,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
5860
5860
  }, { immediate: !0 }), (be, pe) => {
5861
5861
  const ke = X("Button"), Se = X("Toolbar"), pt = X("ProgressSpinner"), ot = X("InputIcon"), Et = X("IconField"), ht = X("DatePicker"), oe = X("InputNumber"), Y = X("Checkbox"), Ie = X("Column"), rt = X("DataTable");
5862
5862
  return b(), k(se, null, [
5863
- v("div", Yt(ho(be.$attrs)), [
5863
+ v("div", Xt(ho(be.$attrs)), [
5864
5864
  fe(be.$slots, "header"),
5865
5865
  e.showClearFilters || e.showAddButton ? (b(), H(Se, {
5866
5866
  key: 0,
@@ -5924,7 +5924,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
5924
5924
  currentPageReportTemplate: "Showing {first} to {last} of {totalRecords} items"
5925
5925
  }, Bn({
5926
5926
  empty: ne(() => [
5927
- pe[9] || (pe[9] = Qe(" No data found. "))
5927
+ pe[9] || (pe[9] = Ze(" No data found. "))
5928
5928
  ]),
5929
5929
  loading: ne(() => [
5930
5930
  K(pt)
@@ -6048,7 +6048,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6048
6048
  class: "w-full sm:w-auto",
6049
6049
  onKeyup: pe[3] || (pe[3] = Ur((Ve) => Q(L)(), ["enter"])),
6050
6050
  modelValue: Q($),
6051
- "onUpdate:modelValue": pe[4] || (pe[4] = (Ve) => Gt($) ? $.value = Ve : null),
6051
+ "onUpdate:modelValue": pe[4] || (pe[4] = (Ve) => Yt($) ? $.value = Ve : null),
6052
6052
  placeholder: "Search..."
6053
6053
  }, null, 8, ["modelValue"])
6054
6054
  ]),
@@ -6090,7 +6090,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6090
6090
  },
6091
6091
  setup(e) {
6092
6092
  un();
6093
- const t = Ze(), n = E("");
6093
+ const t = Xe(), n = E("");
6094
6094
  t.getAppId() != null && t.getAppId() != "" && (n.value = t.getAppId());
6095
6095
  const o = E(), r = E(!1), i = E(!1), a = E({}), s = E([
6096
6096
  {
@@ -6122,7 +6122,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6122
6122
  style: { width: "55px", height: "25px", "border-radius": "5px", "font-size": "12px" }
6123
6123
  }, {
6124
6124
  default: ne(() => d[6] || (d[6] = [
6125
- Qe(" More")
6125
+ Ze(" More")
6126
6126
  ])),
6127
6127
  _: 1
6128
6128
  }, 512), [
@@ -6411,7 +6411,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6411
6411
  };
6412
6412
  return (oe, Y) => {
6413
6413
  var Qt, cn;
6414
- const Ie = X("InputIcon"), rt = X("InputText"), Ve = X("IconField"), Be = X("Select"), Fe = X("Divider"), We = X("InputNumber"), Ft = X("DatePicker"), Xe = X("Button"), lt = X("Checkbox"), bt = X("Paginator"), Jt = Hr("tooltip");
6414
+ const Ie = X("InputIcon"), rt = X("InputText"), Ve = X("IconField"), Be = X("Select"), Fe = X("Divider"), We = X("InputNumber"), Ft = X("DatePicker"), Je = X("Button"), lt = X("Checkbox"), bt = X("Paginator"), Jt = Hr("tooltip");
6415
6415
  return b(), k(se, null, [
6416
6416
  v("div", op, [
6417
6417
  v("div", rp, [
@@ -6536,14 +6536,14 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6536
6536
  ])
6537
6537
  ]),
6538
6538
  v("div", wp, [
6539
- K(Xe, {
6539
+ K(Je, {
6540
6540
  style: { width: "100px" },
6541
6541
  label: "Hide",
6542
6542
  icon: "",
6543
6543
  severity: "warning",
6544
6544
  onClick: (qe) => pe(me)
6545
6545
  }, null, 8, ["onClick"]),
6546
- K(Xe, {
6546
+ K(Je, {
6547
6547
  style: { width: "100px" },
6548
6548
  label: "Delete",
6549
6549
  icon: "",
@@ -6568,7 +6568,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6568
6568
  }, Z(me.value ? " " + me.value : " value"), 3)
6569
6569
  ], 64)) : (b(), k("span", Sp, "Filter is empty"))
6570
6570
  ]),
6571
- K(Xe, {
6571
+ K(Je, {
6572
6572
  style: { width: "100px" },
6573
6573
  label: "Edit",
6574
6574
  icon: "",
@@ -6581,7 +6581,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6581
6581
  v("div", Cp, [
6582
6582
  K(Fe),
6583
6583
  v("div", Ep, [
6584
- K(Xe, {
6584
+ K(Je, {
6585
6585
  style: { width: "100px" },
6586
6586
  label: "Add",
6587
6587
  disabled: N.value.length === d.value.length,
@@ -6589,7 +6589,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6589
6589
  severity: "success",
6590
6590
  onClick: ce
6591
6591
  }, null, 8, ["disabled"]),
6592
- K(Xe, {
6592
+ K(Je, {
6593
6593
  style: { width: "100px" },
6594
6594
  label: "Apply",
6595
6595
  severity: "info",
@@ -6611,7 +6611,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6611
6611
  value: me[l.value.name]
6612
6612
  }, null, 8, ["disabled", "modelValue", "value"]),
6613
6613
  v("div", Bp, [
6614
- Qe(Z(e.linkedEntity.entityName) + " ", 1),
6614
+ Ze(Z(e.linkedEntity.entityName) + " ", 1),
6615
6615
  v("span", null, Z(me[l.value.name]), 1)
6616
6616
  ]),
6617
6617
  T(me[l.value.name]) ? wt((b(), k("div", Rp, null, 512)), [
@@ -6637,7 +6637,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6637
6637
  K(Fe, { class: "mt-5" }),
6638
6638
  v("div", Pp, [
6639
6639
  v("div", Ap, [
6640
- K(Xe, {
6640
+ K(Je, {
6641
6641
  label: "Cancel",
6642
6642
  icon: "",
6643
6643
  severity: "secondary",
@@ -6645,7 +6645,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6645
6645
  })
6646
6646
  ]),
6647
6647
  v("div", _p, [
6648
- K(Xe, {
6648
+ K(Je, {
6649
6649
  label: "Save",
6650
6650
  severity: "success",
6651
6651
  onClick: W
@@ -6750,7 +6750,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6750
6750
  return b(), k("div", Lp, [
6751
6751
  K(O, {
6752
6752
  modelValue: Q(d),
6753
- "onUpdate:modelValue": L[0] || (L[0] = (W) => Gt(d) ? d.value = W : d = W),
6753
+ "onUpdate:modelValue": L[0] || (L[0] = (W) => Yt(d) ? d.value = W : d = W),
6754
6754
  "item-value": p.value.name,
6755
6755
  options: c.value.result,
6756
6756
  filter: "",
@@ -6883,13 +6883,13 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6883
6883
  default: ne(() => [
6884
6884
  K(T, { value: "0" }, {
6885
6885
  default: ne(() => $[4] || ($[4] = [
6886
- Qe("Create new")
6886
+ Ze("Create new")
6887
6887
  ])),
6888
6888
  _: 1
6889
6889
  }),
6890
6890
  K(T, { value: "1" }, {
6891
6891
  default: ne(() => $[5] || ($[5] = [
6892
- Qe("Add existing")
6892
+ Ze("Add existing")
6893
6893
  ])),
6894
6894
  _: 1
6895
6895
  })
@@ -7095,7 +7095,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
7095
7095
  emits: ["onSaveDialog"],
7096
7096
  setup(e, { expose: t, emit: n }) {
7097
7097
  var B, U;
7098
- const o = Ze(), r = un(), i = e, a = E(!0), s = E(!1), u = E([]);
7098
+ const o = Xe(), r = un(), i = e, a = E(!0), s = E(!1), u = E([]);
7099
7099
  let l = (B = r == null ? void 0 : r.params) == null ? void 0 : B.entityName, c = (U = r == null ? void 0 : r.params) == null ? void 0 : U.id;
7100
7100
  i.entityName && (l = i.entityName), i.recordId && (c = i.recordId);
7101
7101
  const f = n, { formData: d, columns: p, errors: m, backendErrors: g, isDataChange: h, linkedEntities: y, primarayColumn: w, clearErrors: x, saveRecord: $, getRelatedEntityRecordById: T, cancleRecord: L } = oi(l, c, f);
@@ -7132,7 +7132,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
7132
7132
  return S.$slots["list-item-display-360"] ? (b(), k("div", cm, [
7133
7133
  fe(S.$slots, "header", {}, void 0, !0),
7134
7134
  v("div", null, [
7135
- fe(S.$slots, "list-item-display-360", Yt({
7135
+ fe(S.$slots, "list-item-display-360", Xt({
7136
7136
  [e.variable || ""]: {
7137
7137
  formData: Q(d),
7138
7138
  columns: Q(p),
@@ -7200,13 +7200,13 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
7200
7200
  default: ne(() => [
7201
7201
  K(P, { value: "0" }, {
7202
7202
  default: ne(() => I[3] || (I[3] = [
7203
- Qe("Overview")
7203
+ Ze("Overview")
7204
7204
  ])),
7205
7205
  _: 1
7206
7206
  }),
7207
7207
  K(P, { value: "1" }, {
7208
7208
  default: ne(() => I[4] || (I[4] = [
7209
- Qe("Activity")
7209
+ Ze("Activity")
7210
7210
  ])),
7211
7211
  _: 1
7212
7212
  })
@@ -7289,7 +7289,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
7289
7289
  onClick: I[1] || (I[1] = (ce) => Q($)())
7290
7290
  }, {
7291
7291
  default: ne(() => I[6] || (I[6] = [
7292
- Qe("Save")
7292
+ Ze("Save")
7293
7293
  ])),
7294
7294
  _: 1
7295
7295
  }),
@@ -7299,7 +7299,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
7299
7299
  onClick: I[2] || (I[2] = (ce) => Q(L)())
7300
7300
  }, {
7301
7301
  default: ne(() => I[7] || (I[7] = [
7302
- Qe("Cancel")
7302
+ Ze("Cancel")
7303
7303
  ])),
7304
7304
  _: 1
7305
7305
  })
@@ -8393,7 +8393,7 @@ const qm = /* @__PURE__ */ tt(Hm, [["render", Wm]]), Km = { class: "my-2" }, Gm
8393
8393
  }
8394
8394
  },
8395
8395
  setup(e, { expose: t }) {
8396
- const n = nr(), o = Ze();
8396
+ const n = nr(), o = Xe();
8397
8397
  sn("entityObject", n);
8398
8398
  const r = e;
8399
8399
  return t({
@@ -8422,7 +8422,7 @@ const qm = /* @__PURE__ */ tt(Hm, [["render", Wm]]), Km = { class: "my-2" }, Gm
8422
8422
  (b(), H(Pe(e.listHeader || Ym))),
8423
8423
  (b(), H(Pe(e.listFilter || xt))),
8424
8424
  e.showAddButton ? (b(), H(St, { key: 0 })) : M("", !0),
8425
- (b(), H(Pe(e.listDisplay || Um), Yt(ho({ listItemDisplay: e.listItemDisplay })), null, 16)),
8425
+ (b(), H(Pe(e.listDisplay || Um), Xt(ho({ listItemDisplay: e.listItemDisplay })), null, 16)),
8426
8426
  (b(), H(Pe(e.listPagination || Dt))),
8427
8427
  (b(), H(Pe(e.listFooter || qm)))
8428
8428
  ], 64));
@@ -8430,8 +8430,8 @@ const qm = /* @__PURE__ */ tt(Hm, [["render", Wm]]), Km = { class: "my-2" }, Gm
8430
8430
  }
8431
8431
  };
8432
8432
  function bg() {
8433
- Ze();
8434
- const { get: e, post: t, put: n, del: o } = Xt();
8433
+ Xe();
8434
+ const { get: e, post: t, put: n, del: o } = zt();
8435
8435
  return {
8436
8436
  getActiveUser: async () => await e("/users/me"),
8437
8437
  getAppSecurity: async (h) => await e(`/api/app/v1/${h}/security`),
@@ -8768,7 +8768,7 @@ function Bg(e) {
8768
8768
  const a = Math.round(i / r);
8769
8769
  return n ? a : -a;
8770
8770
  }
8771
- function jt({ val: e, max: t, min: n }) {
8771
+ function Mt({ val: e, max: t, min: n }) {
8772
8772
  return t < n ? e : Math.min(Math.max(e, isNaN(n) ? e : n), isNaN(t) ? e : t);
8773
8773
  }
8774
8774
  function Rg(e) {
@@ -9038,11 +9038,11 @@ An({
9038
9038
  }
9039
9039
  }
9040
9040
  function A() {
9041
- !d.wrapAround && s.value > 0 && (p.value = jt({
9041
+ !d.wrapAround && s.value > 0 && (p.value = Mt({
9042
9042
  val: p.value,
9043
9043
  max: y.value,
9044
9044
  min: w.value
9045
- })), W.value || (d.itemsToShow = jt({
9045
+ })), W.value || (d.itemsToShow = Mt({
9046
9046
  val: Number(d.itemsToShow),
9047
9047
  max: s.value,
9048
9048
  min: 1
@@ -9098,7 +9098,7 @@ An({
9098
9098
  };
9099
9099
  function rt(q) {
9100
9100
  const ee = q.target.tagName;
9101
- if (["INPUT", "TEXTAREA", "SELECT"].includes(ee) || Xe.value || (pe = q.type === "touchstart", !pe && (q.preventDefault(), q.button !== 0)))
9101
+ if (["INPUT", "TEXTAREA", "SELECT"].includes(ee) || Je.value || (pe = q.type === "touchstart", !pe && (q.preventDefault(), q.button !== 0)))
9102
9102
  return;
9103
9103
  ke.x = "touches" in q ? q.touches[0].clientX : q.clientX, ke.y = "touches" in q ? q.touches[0].clientY : q.clientY;
9104
9104
  const ue = pe ? "touchmove" : "mousemove", le = pe ? "touchend" : "mouseup";
@@ -9114,7 +9114,7 @@ An({
9114
9114
  dragged: Se,
9115
9115
  effectiveSlideSize: L.value
9116
9116
  });
9117
- m.value = d.wrapAround ? p.value + le : jt({
9117
+ m.value = d.wrapAround ? p.value + le : Mt({
9118
9118
  val: p.value + le,
9119
9119
  max: y.value,
9120
9120
  min: w.value
@@ -9142,16 +9142,16 @@ An({
9142
9142
  function Ft() {
9143
9143
  We(), Fe();
9144
9144
  }
9145
- const Xe = E(!1);
9145
+ const Je = E(!1);
9146
9146
  function lt(q, ee = !1) {
9147
- if (!ee && Xe.value)
9147
+ if (!ee && Je.value)
9148
9148
  return;
9149
9149
  let ue = q, le = q;
9150
9150
  g.value = p.value, d.wrapAround ? le = yl({
9151
9151
  val: ue,
9152
9152
  max: y.value,
9153
9153
  min: w.value
9154
- }) : ue = jt({
9154
+ }) : ue = Mt({
9155
9155
  val: ue,
9156
9156
  max: y.value,
9157
9157
  min: w.value
@@ -9160,7 +9160,7 @@ An({
9160
9160
  currentSlideIndex: p.value,
9161
9161
  prevSlideIndex: g.value,
9162
9162
  slidesCount: s.value
9163
- }), We(), Xe.value = !0, p.value = ue, le !== ue && cn.pause(), n("update:modelValue", le), $ = setTimeout(() => {
9163
+ }), We(), Je.value = !0, p.value = ue, le !== ue && cn.pause(), n("update:modelValue", le), $ = setTimeout(() => {
9164
9164
  d.wrapAround && le !== ue && (cn.resume(), p.value = le, n("loop", {
9165
9165
  currentSlideIndex: p.value,
9166
9166
  slidingToIndex: q
@@ -9168,7 +9168,7 @@ An({
9168
9168
  currentSlideIndex: p.value,
9169
9169
  prevSlideIndex: g.value,
9170
9170
  slidesCount: s.value
9171
- }), Xe.value = !1, Ft();
9171
+ }), Je.value = !1, Ft();
9172
9172
  }, d.transition);
9173
9173
  }
9174
9174
  function bt(q = !1) {
@@ -9214,7 +9214,7 @@ An({
9214
9214
  if (W.value) {
9215
9215
  if (p.value < 0 ? q = _.value.slice(p.value).reduce((ee, ue) => ee + ue[B.value] + d.gap, 0) * -1 : q = _.value.slice(0, p.value).reduce((ee, ue) => ee + ue[B.value] + d.gap, 0), q -= qe.value, !d.wrapAround) {
9216
9216
  const ee = _.value.reduce((ue, le) => ue + le[B.value] + d.gap, 0) - z.value[B.value] - d.gap;
9217
- q = jt({
9217
+ q = Mt({
9218
9218
  val: q,
9219
9219
  max: ee,
9220
9220
  min: 0
@@ -9222,7 +9222,7 @@ An({
9222
9222
  }
9223
9223
  } else {
9224
9224
  let ee = p.value - qe.value;
9225
- d.wrapAround || (ee = jt({
9225
+ d.wrapAround || (ee = Mt({
9226
9226
  val: ee,
9227
9227
  max: s.value - +d.itemsToShow,
9228
9228
  min: 0
@@ -9237,12 +9237,12 @@ An({
9237
9237
  min: Math.floor(he),
9238
9238
  max: Math.ceil(he + Number(d.itemsToShow) - 1)
9239
9239
  } : {
9240
- min: Math.floor(jt({
9240
+ min: Math.floor(Mt({
9241
9241
  val: he,
9242
9242
  max: s.value - Number(d.itemsToShow),
9243
9243
  min: 0
9244
9244
  })),
9245
- max: Math.ceil(jt({
9245
+ max: Math.ceil(Mt({
9246
9246
  val: he + Number(d.itemsToShow) - 1,
9247
9247
  max: s.value - 1,
9248
9248
  min: 0
@@ -9281,7 +9281,7 @@ An({
9281
9281
  let le = 0;
9282
9282
  W.value ? le = _.value.reduce((Me, nt) => Me + nt[B.value], 0) : le = (s.value - Number(d.itemsToShow)) * L.value;
9283
9283
  const he = C.value ? 0 : -1 * le, De = C.value ? le : 0;
9284
- ue = jt({
9284
+ ue = Mt({
9285
9285
  val: ue,
9286
9286
  min: he,
9287
9287
  max: De
@@ -9289,7 +9289,7 @@ An({
9289
9289
  }
9290
9290
  return `translate${q}(${ue}px)`;
9291
9291
  }), re = te(() => ({
9292
- "--vc-transition-duration": Xe.value ? Oo(d.transition, "ms") : void 0,
9292
+ "--vc-transition-duration": Je.value ? Oo(d.transition, "ms") : void 0,
9293
9293
  "--vc-slide-gap": Oo(d.gap),
9294
9294
  "--vc-carousel-height": Oo(d.height),
9295
9295
  "--vc-cloned-offset": Oo($t.value)
@@ -9297,7 +9297,7 @@ An({
9297
9297
  activeSlide: m,
9298
9298
  config: d,
9299
9299
  currentSlide: p,
9300
- isSliding: Xe,
9300
+ isSliding: Je,
9301
9301
  isVertical: V,
9302
9302
  maxSlide: y,
9303
9303
  minSlide: w,
@@ -9360,7 +9360,7 @@ An({
9360
9360
  `is-effect-${d.slideEffect}`,
9361
9361
  {
9362
9362
  "is-vertical": V.value,
9363
- "is-sliding": Xe.value,
9363
+ "is-sliding": Je.value,
9364
9364
  "is-dragging": ot.value,
9365
9365
  "is-hover": pt.value
9366
9366
  }
@@ -9685,7 +9685,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
9685
9685
  }
9686
9686
  },
9687
9687
  setup(e, { expose: t, emit: n }) {
9688
- const o = e, r = Ze(), i = new Ct();
9688
+ const o = e, r = Xe(), i = new Ct();
9689
9689
  E(null), E(null);
9690
9690
  const a = E("id"), s = E(1), u = E(25), l = E(0), c = E(null), f = n, d = E([]), p = E([]), m = E(!0), g = E(null), { hasMatchingRoleAndPermissions: h } = xn(), y = nr();
9691
9691
  sn("entityObject", y), ze(async () => {
@@ -9803,7 +9803,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
9803
9803
  v("div", {
9804
9804
  class: ye(["flex flex-wrap", [o.decoration === "tiles" ? "" : "flex-col", `gap-${o.gap}`, o.scrollHeight ? `overflow-y-auto h-[${o.scrollHeight}]` : "", o.justifyContent ? `justify-${o.justifyContent}` : "justify-center"]])
9805
9805
  }, [
9806
- (b(!0), k(se, null, Oe(e.linkedEntity && e.linkedEntity.length > 0 ? e.linkedEntity : ((z = (P = (_ = Q(y)) == null ? void 0 : _.state) == null ? void 0 : P.data) == null ? void 0 : z.result) || [], (J) => fe(S.$slots, "list-item-display", Yt({
9806
+ (b(!0), k(se, null, Oe(e.linkedEntity && e.linkedEntity.length > 0 ? e.linkedEntity : ((z = (P = (_ = Q(y)) == null ? void 0 : _.state) == null ? void 0 : P.data) == null ? void 0 : z.result) || [], (J) => fe(S.$slots, "list-item-display", Xt({
9807
9807
  item: J,
9808
9808
  class: e.listItemClass,
9809
9809
  [e.variable || ""]: J
@@ -9826,7 +9826,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
9826
9826
  ], 64)) : (b(), k(se, { key: 1 }, [
9827
9827
  e.entityName ? M("", !0) : (b(), k("div", qg, [
9828
9828
  v("p", Kg, [
9829
- I[0] || (I[0] = Qe(" Error: Missing required props - ")),
9829
+ I[0] || (I[0] = Ze(" Error: Missing required props - ")),
9830
9830
  e.entityName ? M("", !0) : (b(), k("span", Gg, "Entity Name"))
9831
9831
  ])
9832
9832
  ])),
@@ -10018,7 +10018,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
10018
10018
  }
10019
10019
  },
10020
10020
  setup(e, { expose: t }) {
10021
- const n = nr(), o = Ze();
10021
+ const n = nr(), o = Xe();
10022
10022
  sn("entityObject", n);
10023
10023
  const r = e, i = E([]);
10024
10024
  return $e(() => n.state.data, (u) => {
@@ -10042,7 +10042,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
10042
10042
  { immediate: !0 }
10043
10043
  ), (u, l) => {
10044
10044
  var c, f, d;
10045
- return b(), k("div", Yt(ho(u.$attrs)), [
10045
+ return b(), k("div", Xt(ho(u.$attrs)), [
10046
10046
  u.$slots["list-item-display-tile"] ? (b(), k(se, { key: 0 }, [
10047
10047
  fe(u.$slots, "header", {}, void 0, !0),
10048
10048
  e.showAddButton ? (b(), H(St, { key: 0 })) : M("", !0),
@@ -10052,7 +10052,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
10052
10052
  key: m,
10053
10053
  class: "flex flex-col p-6 border border-gray-300 shadow-md rounded-lg bg-white w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/5 2xl:w-1/8"
10054
10054
  }, [
10055
- fe(u.$slots, "list-item-display-tile", Yt({ [e.dynamicPropName || ""]: p }), void 0, !0)
10055
+ fe(u.$slots, "list-item-display-tile", Xt({ [e.dynamicPropName || ""]: p }), void 0, !0)
10056
10056
  ]))), 128))
10057
10057
  ]),
10058
10058
  fe(u.$slots, "footer", {}, void 0, !0)
@@ -10070,7 +10070,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
10070
10070
  e.showPagination ? (b(), H(Pe(e.listPagination || Dt), { key: 2 })) : M("", !0)
10071
10071
  ])) : (b(), k("div", mh, [
10072
10072
  v("p", gh, [
10073
- l[0] || (l[0] = Qe(" Error: Missing required props - ")),
10073
+ l[0] || (l[0] = Ze(" Error: Missing required props - ")),
10074
10074
  e.entityName ? M("", !0) : (b(), k("span", hh, "Entity Name"))
10075
10075
  ])
10076
10076
  ])),
@@ -10440,7 +10440,7 @@ var Gh = Object.defineProperty, Yh = Object.defineProperties, Xh = Object.getOwn
10440
10440
  for (var n of Uo(t))
10441
10441
  El.call(t, n) && ma(e, n, t[n]);
10442
10442
  return e;
10443
- }, Fn = (e, t) => Yh(e, Xh(t)), Mt = (e, t) => {
10443
+ }, Fn = (e, t) => Yh(e, Xh(t)), Ut = (e, t) => {
10444
10444
  var n = {};
10445
10445
  for (var o in e)
10446
10446
  Cl.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
@@ -10448,7 +10448,7 @@ var Gh = Object.defineProperty, Yh = Object.defineProperties, Xh = Object.getOwn
10448
10448
  for (var o of Uo(e))
10449
10449
  t.indexOf(o) < 0 && El.call(e, o) && (n[o] = e[o]);
10450
10450
  return n;
10451
- }, Jh = li(), Ht = Jh;
10451
+ }, Jh = li(), Wt = Jh;
10452
10452
  function ga(e, t) {
10453
10453
  tr(e) ? e.push(...t || []) : Vt(e) && Object.assign(e, t);
10454
10454
  }
@@ -10473,12 +10473,12 @@ function Ol(e, t = "", n = "", o = [], r) {
10473
10473
  const i = /{([^}]*)}/g, a = e.trim();
10474
10474
  if (eb(a))
10475
10475
  return;
10476
- if (Kt(a, i)) {
10476
+ if (Gt(a, i)) {
10477
10477
  const s = a.replaceAll(i, (c) => {
10478
- const d = c.replace(/{|}/g, "").split(".").filter((p) => !o.some((m) => Kt(p, m)));
10478
+ const d = c.replace(/{|}/g, "").split(".").filter((p) => !o.some((m) => Gt(p, m)));
10479
10479
  return `var(${$l(n, fl(d.join("-")))}${Te(r) ? `, ${r}` : ""})`;
10480
10480
  }), u = /(\d+\s+[\+\-\*\/]\s+\d+)/g, l = /var\([^)]+\)/g;
10481
- return Kt(s.replace(l, "0"), u) ? `calc(${s})` : s;
10481
+ return Gt(s.replace(l, "0"), u) ? `calc(${s})` : s;
10482
10482
  }
10483
10483
  return a;
10484
10484
  } else if (Mf(e))
@@ -10492,7 +10492,7 @@ function Tn(e, t) {
10492
10492
  }
10493
10493
  var Jn = (...e) => nb(_e.getTheme(), ...e), nb = (e = {}, t, n, o) => {
10494
10494
  if (t) {
10495
- const { variable: r, options: i } = _e.defaults || {}, { prefix: a, transform: s } = (e == null ? void 0 : e.options) || i || {}, l = Kt(t, /{([^}]*)}/g) ? t : `{${t}}`;
10495
+ const { variable: r, options: i } = _e.defaults || {}, { prefix: a, transform: s } = (e == null ? void 0 : e.options) || i || {}, l = Gt(t, /{([^}]*)}/g) ? t : `{${t}}`;
10496
10496
  return o === "value" || kn(o) && s === "strict" ? _e.getTokenValue(t) : Ol(l, void 0, a, [r.excludedKeyRegex], n);
10497
10497
  }
10498
10498
  return "";
@@ -10543,7 +10543,7 @@ var Jn = (...e) => nb(_e.getTheme(), ...e), nb = (e = {}, t, n, o) => {
10543
10543
  function ob(e, t = {}) {
10544
10544
  const n = _e.defaults.variable, { prefix: o = n.prefix, selector: r = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = t, a = (l, c = "") => Object.entries(l).reduce(
10545
10545
  (f, [d, p]) => {
10546
- const m = Kt(d, i) ? Vr(c) : Vr(c, fl(d)), g = Qh(p);
10546
+ const m = Gt(d, i) ? Vr(c) : Vr(c, fl(d)), g = Qh(p);
10547
10547
  if (Vt(g)) {
10548
10548
  const { variables: h, tokens: y } = a(g, m);
10549
10549
  ga(f.tokens, y), ga(f.variables, h);
@@ -10609,10 +10609,10 @@ var Ot = {
10609
10609
  const { preset: d, options: p } = t;
10610
10610
  let m, g, h, y, w, x, $;
10611
10611
  if (Te(d) && p.transform !== "strict") {
10612
- const { primitive: T, semantic: L, extend: O } = d, C = L || {}, { colorScheme: V } = C, W = Mt(C, ["colorScheme"]), B = O || {}, { colorScheme: U } = B, S = Mt(B, ["colorScheme"]), I = V || {}, { dark: _ } = I, P = Mt(I, ["dark"]), z = U || {}, { dark: J } = z, N = Mt(z, ["dark"]), A = Te(T) ? this._toVariables({ primitive: T }, p) : {}, D = Te(W) ? this._toVariables({ semantic: W }, p) : {}, ie = Te(P) ? this._toVariables({ light: P }, p) : {}, Ae = Te(_) ? this._toVariables({ dark: _ }, p) : {}, ce = Te(S) ? this._toVariables({ semantic: S }, p) : {}, be = Te(N) ? this._toVariables({ light: N }, p) : {}, pe = Te(J) ? this._toVariables({ dark: J }, p) : {}, [ke, Se] = [(i = A.declarations) != null ? i : "", A.tokens], [pt, ot] = [(a = D.declarations) != null ? a : "", D.tokens || []], [Et, ht] = [(s = ie.declarations) != null ? s : "", ie.tokens || []], [oe, Y] = [(u = Ae.declarations) != null ? u : "", Ae.tokens || []], [Ie, rt] = [(l = ce.declarations) != null ? l : "", ce.tokens || []], [Ve, Be] = [(c = be.declarations) != null ? c : "", be.tokens || []], [Fe, We] = [(f = pe.declarations) != null ? f : "", pe.tokens || []];
10612
+ const { primitive: T, semantic: L, extend: O } = d, C = L || {}, { colorScheme: V } = C, W = Ut(C, ["colorScheme"]), B = O || {}, { colorScheme: U } = B, S = Ut(B, ["colorScheme"]), I = V || {}, { dark: _ } = I, P = Ut(I, ["dark"]), z = U || {}, { dark: J } = z, N = Ut(z, ["dark"]), A = Te(T) ? this._toVariables({ primitive: T }, p) : {}, D = Te(W) ? this._toVariables({ semantic: W }, p) : {}, ie = Te(P) ? this._toVariables({ light: P }, p) : {}, Ae = Te(_) ? this._toVariables({ dark: _ }, p) : {}, ce = Te(S) ? this._toVariables({ semantic: S }, p) : {}, be = Te(N) ? this._toVariables({ light: N }, p) : {}, pe = Te(J) ? this._toVariables({ dark: J }, p) : {}, [ke, Se] = [(i = A.declarations) != null ? i : "", A.tokens], [pt, ot] = [(a = D.declarations) != null ? a : "", D.tokens || []], [Et, ht] = [(s = ie.declarations) != null ? s : "", ie.tokens || []], [oe, Y] = [(u = Ae.declarations) != null ? u : "", Ae.tokens || []], [Ie, rt] = [(l = ce.declarations) != null ? l : "", ce.tokens || []], [Ve, Be] = [(c = be.declarations) != null ? c : "", be.tokens || []], [Fe, We] = [(f = pe.declarations) != null ? f : "", pe.tokens || []];
10613
10613
  m = this.transformCSS(e, ke, "light", "variable", p, o, r), g = Se;
10614
- const Ft = this.transformCSS(e, `${pt}${Et}`, "light", "variable", p, o, r), Xe = this.transformCSS(e, `${oe}`, "dark", "variable", p, o, r);
10615
- h = `${Ft}${Xe}`, y = [.../* @__PURE__ */ new Set([...ot, ...ht, ...Y])];
10614
+ const Ft = this.transformCSS(e, `${pt}${Et}`, "light", "variable", p, o, r), Je = this.transformCSS(e, `${oe}`, "dark", "variable", p, o, r);
10615
+ h = `${Ft}${Je}`, y = [.../* @__PURE__ */ new Set([...ot, ...ht, ...Y])];
10616
10616
  const lt = this.transformCSS(e, `${Ie}${Ve}color-scheme:light`, "light", "variable", p, o, r), bt = this.transformCSS(e, `${Fe}color-scheme:dark`, "dark", "variable", p, o, r);
10617
10617
  w = `${lt}${bt}`, x = [.../* @__PURE__ */ new Set([...rt, ...Be, ...We])], $ = kt(d.css, { dt: Jn });
10618
10618
  }
@@ -10636,7 +10636,7 @@ var Ot = {
10636
10636
  var s, u, l;
10637
10637
  let c, f, d;
10638
10638
  if (Te(t) && n.transform !== "strict") {
10639
- const p = e.replace("-directive", ""), m = t, { colorScheme: g, extend: h, css: y } = m, w = Mt(m, ["colorScheme", "extend", "css"]), x = h || {}, { colorScheme: $ } = x, T = Mt(x, ["colorScheme"]), L = g || {}, { dark: O } = L, C = Mt(L, ["dark"]), V = $ || {}, { dark: W } = V, B = Mt(V, ["dark"]), U = Te(w) ? this._toVariables({ [p]: Ue(Ue({}, w), T) }, n) : {}, S = Te(C) ? this._toVariables({ [p]: Ue(Ue({}, C), B) }, n) : {}, I = Te(O) ? this._toVariables({ [p]: Ue(Ue({}, O), W) }, n) : {}, [_, P] = [(s = U.declarations) != null ? s : "", U.tokens || []], [z, J] = [(u = S.declarations) != null ? u : "", S.tokens || []], [N, A] = [(l = I.declarations) != null ? l : "", I.tokens || []], D = this.transformCSS(p, `${_}${z}`, "light", "variable", n, r, i, a), ie = this.transformCSS(p, N, "dark", "variable", n, r, i, a);
10639
+ const p = e.replace("-directive", ""), m = t, { colorScheme: g, extend: h, css: y } = m, w = Ut(m, ["colorScheme", "extend", "css"]), x = h || {}, { colorScheme: $ } = x, T = Ut(x, ["colorScheme"]), L = g || {}, { dark: O } = L, C = Ut(L, ["dark"]), V = $ || {}, { dark: W } = V, B = Ut(V, ["dark"]), U = Te(w) ? this._toVariables({ [p]: Ue(Ue({}, w), T) }, n) : {}, S = Te(C) ? this._toVariables({ [p]: Ue(Ue({}, C), B) }, n) : {}, I = Te(O) ? this._toVariables({ [p]: Ue(Ue({}, O), W) }, n) : {}, [_, P] = [(s = U.declarations) != null ? s : "", U.tokens || []], [z, J] = [(u = S.declarations) != null ? u : "", S.tokens || []], [N, A] = [(l = I.declarations) != null ? l : "", I.tokens || []], D = this.transformCSS(p, `${_}${z}`, "light", "variable", n, r, i, a), ie = this.transformCSS(p, N, "dark", "variable", n, r, i, a);
10640
10640
  c = `${D}${ie}`, f = [.../* @__PURE__ */ new Set([...P, ...J, ...A])], d = kt(y, { dt: Jn });
10641
10641
  }
10642
10642
  return {
@@ -10683,7 +10683,7 @@ var Ot = {
10683
10683
  },
10684
10684
  createTokens(e = {}, t, n = "", o = "", r = {}) {
10685
10685
  return Object.entries(e).forEach(([i, a]) => {
10686
- const s = Kt(i, t.variable.excludedKeyRegex) ? n : n ? `${n}.${Zi(i)}` : Zi(i), u = o ? `${o}.${i}` : i;
10686
+ const s = Gt(i, t.variable.excludedKeyRegex) ? n : n ? `${n}.${Zi(i)}` : Zi(i), u = o ? `${o}.${i}` : i;
10687
10687
  Vt(a) ? this.createTokens(a, t, s, u, r) : (r[s] || (r[s] = {
10688
10688
  paths: [],
10689
10689
  computed(l, c = {}) {
@@ -10697,13 +10697,13 @@ var Ot = {
10697
10697
  computed(l, c = {}) {
10698
10698
  const f = /{([^}]*)}/g;
10699
10699
  let d = a;
10700
- if (c.name = this.path, c.binding || (c.binding = {}), Kt(a, f)) {
10700
+ if (c.name = this.path, c.binding || (c.binding = {}), Gt(a, f)) {
10701
10701
  const m = a.trim().replaceAll(f, (y) => {
10702
10702
  var w;
10703
10703
  const x = y.replace(/{|}/g, ""), $ = (w = r[x]) == null ? void 0 : w.computed(l, c);
10704
10704
  return tr($) && $.length === 2 ? `light-dark(${$[0].value},${$[1].value})` : $ == null ? void 0 : $.value;
10705
10705
  }), g = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, h = /var\([^)]+\)/g;
10706
- d = Kt(m.replace(h, "0"), g) ? `calc(${m})` : m;
10706
+ d = Gt(m.replace(h, "0"), g) ? `calc(${m})` : m;
10707
10707
  }
10708
10708
  return kn(c.binding) && delete c.binding, {
10709
10709
  colorScheme: l,
@@ -10717,9 +10717,9 @@ var Ot = {
10717
10717
  },
10718
10718
  getTokenValue(e, t, n) {
10719
10719
  var o;
10720
- const i = ((u) => u.split(".").filter((c) => !Kt(c.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(t), a = t.includes("colorScheme.light") ? "light" : t.includes("colorScheme.dark") ? "dark" : void 0, s = [(o = e[i]) == null ? void 0 : o.computed(a)].flat().filter((u) => u);
10720
+ const i = ((u) => u.split(".").filter((c) => !Gt(c.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(t), a = t.includes("colorScheme.light") ? "light" : t.includes("colorScheme.dark") ? "dark" : void 0, s = [(o = e[i]) == null ? void 0 : o.computed(a)].flat().filter((u) => u);
10721
10721
  return s.length === 1 ? s[0].value : s.reduce((u = {}, l) => {
10722
- const c = l, { colorScheme: f } = c, d = Mt(c, ["colorScheme"]);
10722
+ const c = l, { colorScheme: f } = c, d = Ut(c, ["colorScheme"]);
10723
10723
  return u[f] = d, u;
10724
10724
  }, void 0);
10725
10725
  },
@@ -10786,19 +10786,19 @@ var Ot = {
10786
10786
  return this.theme;
10787
10787
  },
10788
10788
  setTheme(e) {
10789
- this.update({ theme: e }), Ht.emit("theme:change", e);
10789
+ this.update({ theme: e }), Wt.emit("theme:change", e);
10790
10790
  },
10791
10791
  getPreset() {
10792
10792
  return this.preset;
10793
10793
  },
10794
10794
  setPreset(e) {
10795
- this._theme = Fn(Ue({}, this.theme), { preset: e }), this._tokens = Ot.createTokens(e, this.defaults), this.clearLoadedStyleNames(), Ht.emit("preset:change", e), Ht.emit("theme:change", this.theme);
10795
+ this._theme = Fn(Ue({}, this.theme), { preset: e }), this._tokens = Ot.createTokens(e, this.defaults), this.clearLoadedStyleNames(), Wt.emit("preset:change", e), Wt.emit("theme:change", this.theme);
10796
10796
  },
10797
10797
  getOptions() {
10798
10798
  return this.options;
10799
10799
  },
10800
10800
  setOptions(e) {
10801
- this._theme = Fn(Ue({}, this.theme), { options: e }), this.clearLoadedStyleNames(), Ht.emit("options:change", e), Ht.emit("theme:change", this.theme);
10801
+ this._theme = Fn(Ue({}, this.theme), { options: e }), this.clearLoadedStyleNames(), Wt.emit("options:change", e), Wt.emit("theme:change", this.theme);
10802
10802
  },
10803
10803
  getLayerNames() {
10804
10804
  return [...this._layerNames];
@@ -10858,7 +10858,7 @@ var Ot = {
10858
10858
  this._loadingStyles.add(e);
10859
10859
  },
10860
10860
  onStyleLoaded(e, { name: t }) {
10861
- this._loadingStyles.size && (this._loadingStyles.delete(t), Ht.emit(`theme:${t}:load`, e), !this._loadingStyles.size && Ht.emit("theme:load"));
10861
+ this._loadingStyles.size && (this._loadingStyles.delete(t), Wt.emit(`theme:${t}:load`, e), !this._loadingStyles.size && Wt.emit("theme:load"));
10862
10862
  }
10863
10863
  };
10864
10864
  function rb(e) {
@@ -11529,7 +11529,7 @@ var Sn = {
11529
11529
  _themeChangeListener: function() {
11530
11530
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
11531
11531
  };
11532
- on.clearLoadedStyleNames(), Ht.on("theme:change", t);
11532
+ on.clearLoadedStyleNames(), Wt.on("theme:change", t);
11533
11533
  },
11534
11534
  _getHostInstance: function(t) {
11535
11535
  return t ? this.$options.hostName ? t.$.type.name === this.$options.hostName ? t : this._getHostInstance(t.$parentInstance) : t.$parentInstance : void 0;
@@ -11994,7 +11994,7 @@ function Lb(e, t, n, o, r, i) {
11994
11994
  return b(), k("span", ae({
11995
11995
  class: e.cx("root")
11996
11996
  }, e.ptmi("root")), [fe(e.$slots, "default", {}, function() {
11997
- return [Qe(Z(e.value), 1)];
11997
+ return [Ze(Z(e.value), 1)];
11998
11998
  })], 16);
11999
11999
  }
12000
12000
  Pl.render = Lb;
@@ -12193,7 +12193,7 @@ var xe = {
12193
12193
  _themeChangeListener: function() {
12194
12194
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
12195
12195
  };
12196
- on.clearLoadedStyleNames(), Ht.on("theme:change", t);
12196
+ on.clearLoadedStyleNames(), Wt.on("theme:change", t);
12197
12197
  },
12198
12198
  _hook: function(t, n, o, r, i, a) {
12199
12199
  var s, u, l = "on".concat(Hf(n)), c = xe._getConfig(r, i), f = o == null ? void 0 : o.$instance, d = xe._usePT(f, xe._getPT(r == null || (s = r.value) === null || s === void 0 ? void 0 : s.pt, t), xe._getOptionValue, "hooks.".concat(l)), p = xe._useDefaultPT(f, 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 = {
@@ -13445,7 +13445,7 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
13445
13445
  }
13446
13446
  },
13447
13447
  setup(e, { expose: t, emit: n }) {
13448
- const o = Ze(), r = new Ct(), i = n, a = e, s = E("id"), u = E(1), l = E(25), c = E(0), f = E(null), d = E([]), p = E([]), m = E(!0), g = E(null), { hasMatchingRoleAndPermissions: h } = xn(), y = nr();
13448
+ const o = Xe(), r = new Ct(), i = n, a = e, s = E("id"), u = E(1), l = E(25), c = E(0), f = E(null), d = E([]), p = E([]), m = E(!0), g = E(null), { hasMatchingRoleAndPermissions: h } = xn(), y = nr();
13449
13449
  sn("entityObject", y);
13450
13450
  const w = E(null), x = (_) => {
13451
13451
  const P = w.value;
@@ -13525,7 +13525,7 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
13525
13525
  const P = await y.applyPreset(_, a.entityName);
13526
13526
  y.state.data = P || {};
13527
13527
  };
13528
- return (_, P) => (b(), k("div", Yt(ho(_.$attrs)), [
13528
+ return (_, P) => (b(), k("div", Xt(ho(_.$attrs)), [
13529
13529
  _.$slots["list-item-display"] ? (b(), k(se, { key: 0 }, [
13530
13530
  fe(_.$slots, "header", {}, void 0, !0),
13531
13531
  v("div", u0, [
@@ -13649,7 +13649,7 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
13649
13649
  ])) : M("", !0)
13650
13650
  ])) : (b(), k("div", b0, [
13651
13651
  v("p", y0, [
13652
- P[4] || (P[4] = Qe(" Error: Missing required props - ")),
13652
+ P[4] || (P[4] = Ze(" Error: Missing required props - ")),
13653
13653
  e.entityName ? M("", !0) : (b(), k("span", v0, "Entity Name"))
13654
13654
  ])
13655
13655
  ])),
@@ -15360,7 +15360,7 @@ const za = /* @__PURE__ */ tl(Ny), ja = {
15360
15360
  }
15361
15361
  };
15362
15362
  function Ly() {
15363
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
15363
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
15364
15364
  return {
15365
15365
  getEntities: async () => {
15366
15366
  const N = i();
@@ -15568,7 +15568,7 @@ const Vy = /* @__PURE__ */ Kr("entitiesStore", {
15568
15568
  onEntityChangeCallback: Function
15569
15569
  },
15570
15570
  setup(e) {
15571
- const t = Ze(), n = E(""), o = Vy(), r = E([]), i = async () => {
15571
+ const t = Xe(), n = E(""), o = Vy(), r = E([]), i = async () => {
15572
15572
  r.value = await o.getEntities(), a();
15573
15573
  }, a = () => {
15574
15574
  for (let u = 0; u < r.value.length; u++) {
@@ -15646,7 +15646,7 @@ const Vy = /* @__PURE__ */ Kr("entitiesStore", {
15646
15646
  }
15647
15647
  };
15648
15648
  function Gy() {
15649
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
15649
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
15650
15650
  return {
15651
15651
  getAllMenu: async () => {
15652
15652
  const d = i();
@@ -17968,13 +17968,13 @@ var Zl = {
17968
17968
  return this.virtualScrollerDisabled ? t : n && n(t).index;
17969
17969
  },
17970
17970
  getOptionLabel: function(t) {
17971
- return this.optionLabel ? Wt(t, this.optionLabel) : t;
17971
+ return this.optionLabel ? qt(t, this.optionLabel) : t;
17972
17972
  },
17973
17973
  getOptionValue: function(t) {
17974
- return this.optionValue ? Wt(t, this.optionValue) : t;
17974
+ return this.optionValue ? qt(t, this.optionValue) : t;
17975
17975
  },
17976
17976
  getOptionRenderKey: function(t, n) {
17977
- return (this.dataKey ? Wt(t, this.dataKey) : this.getOptionLabel(t)) + "_" + n;
17977
+ return (this.dataKey ? qt(t, this.dataKey) : this.getOptionLabel(t)) + "_" + n;
17978
17978
  },
17979
17979
  getPTItemOptions: function(t, n, o, r) {
17980
17980
  return this.ptm(r, {
@@ -17988,16 +17988,16 @@ var Zl = {
17988
17988
  });
17989
17989
  },
17990
17990
  isOptionDisabled: function(t) {
17991
- return this.optionDisabled ? Wt(t, this.optionDisabled) : !1;
17991
+ return this.optionDisabled ? qt(t, this.optionDisabled) : !1;
17992
17992
  },
17993
17993
  isOptionGroup: function(t) {
17994
17994
  return this.optionGroupLabel && t.optionGroup && t.group;
17995
17995
  },
17996
17996
  getOptionGroupLabel: function(t) {
17997
- return Wt(t, this.optionGroupLabel);
17997
+ return qt(t, this.optionGroupLabel);
17998
17998
  },
17999
17999
  getOptionGroupChildren: function(t) {
18000
- return Wt(t, this.optionGroupChildren);
18000
+ return qt(t, this.optionGroupChildren);
18001
18001
  },
18002
18002
  getAriaPosInset: function(t) {
18003
18003
  var n = this;
@@ -18571,7 +18571,7 @@ function Zv(e, t, n, o, r, i) {
18571
18571
  placeholder: e.placeholder
18572
18572
  }, function() {
18573
18573
  var h;
18574
- return [Qe(Z(i.label === "p-emptylabel" ? " " : (h = i.label) !== null && h !== void 0 ? h : "empty"), 1)];
18574
+ return [Ze(Z(i.label === "p-emptylabel" ? " " : (h = i.label) !== null && h !== void 0 ? h : "empty"), 1)];
18575
18575
  })], 16, Yv)), i.isClearIconVisible ? fe(e.$slots, "clearicon", {
18576
18576
  key: 2,
18577
18577
  class: ye(e.cx("clearIcon")),
@@ -18681,7 +18681,7 @@ function Zv(e, t, n, o, r, i) {
18681
18681
  return [e.filterIcon ? (b(), k("span", ae({
18682
18682
  key: 0,
18683
18683
  class: e.filterIcon
18684
- }, e.ptm("filterIcon")), null, 16)) : (b(), H(u, Yt(ae({
18684
+ }, e.ptm("filterIcon")), null, 16)) : (b(), H(u, Xt(ae({
18685
18685
  key: 1
18686
18686
  }, e.ptm("filterIcon"))), null, 16))];
18687
18687
  })];
@@ -18795,7 +18795,7 @@ function Zv(e, t, n, o, r, i) {
18795
18795
  }, e.ptm("emptyMessage"), {
18796
18796
  "data-p-hidden-accessible": !0
18797
18797
  }), [fe(e.$slots, "emptyfilter", {}, function() {
18798
- return [Qe(Z(i.emptyFilterMessageText), 1)];
18798
+ return [Ze(Z(i.emptyFilterMessageText), 1)];
18799
18799
  })], 16)) : !e.options || e.options && e.options.length === 0 ? (b(), k("li", ae({
18800
18800
  key: 1,
18801
18801
  class: e.cx("emptyMessage"),
@@ -18803,7 +18803,7 @@ function Zv(e, t, n, o, r, i) {
18803
18803
  }, e.ptm("emptyMessage"), {
18804
18804
  "data-p-hidden-accessible": !0
18805
18805
  }), [fe(e.$slots, "empty", {}, function() {
18806
- return [Qe(Z(i.emptyMessageText), 1)];
18806
+ return [Ze(Z(i.emptyMessageText), 1)];
18807
18807
  })], 16)) : M("", !0)], 16, Xv)];
18808
18808
  }),
18809
18809
  _: 2
@@ -18912,7 +18912,7 @@ const e1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, e
18912
18912
  }),
18913
18913
  emits: /* @__PURE__ */ Le(["update:modelValue", "onChange"], ["update:modelValue"]),
18914
18914
  setup(e, { emit: t }) {
18915
- const n = Ze(), o = () => n.getAppId(), r = e;
18915
+ const n = Xe(), o = () => n.getAppId(), r = e;
18916
18916
  console.log("DynamicSelection props:", r);
18917
18917
  const i = t, a = Ke(e, "modelValue"), s = E(null), u = E([]), l = te(
18918
18918
  () => r.options.length ? "label" : r.displayField
@@ -19192,7 +19192,7 @@ const e1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, e
19192
19192
  },
19193
19193
  emits: ["update:modelValue", "onChange"],
19194
19194
  setup(e, { emit: t }) {
19195
- const n = Ze(), o = () => n.getAppId(), r = e;
19195
+ const n = Xe(), o = () => n.getAppId(), r = e;
19196
19196
  console.log("DynamicMultiSelection props:", r);
19197
19197
  const i = t, a = E(Array.isArray(r.modelValue) ? [...r.modelValue] : []), s = E([]), u = te(
19198
19198
  () => r.options.length ? "label" : r.displayField
@@ -19398,7 +19398,7 @@ const e1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, e
19398
19398
  }
19399
19399
  },
19400
19400
  setup(e) {
19401
- return (t, n) => (b(), k("div", Yt(ho(t.$attrs)), [
19401
+ return (t, n) => (b(), k("div", Xt(ho(t.$attrs)), [
19402
19402
  v("span", {
19403
19403
  style: Qn({ fontSize: e.labelFontSize + "px", textAlign: t.textAlign })
19404
19404
  }, Z(e.label), 5)
@@ -19759,7 +19759,7 @@ const e1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, e
19759
19759
  darkTheme: !1,
19760
19760
  menuMode: "slim-plus",
19761
19761
  menuTheme: "light"
19762
- }), Je = Nt({
19762
+ }), Qe = Nt({
19763
19763
  staticMenuDesktopInactive: !1,
19764
19764
  overlayMenuActive: !1,
19765
19765
  configSidebarVisible: !1,
@@ -19774,7 +19774,7 @@ const e1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, e
19774
19774
  });
19775
19775
  function M1() {
19776
19776
  const e = (p) => {
19777
- if (st.menuMode = p, p === "static" && (Je.staticMenuDesktopInactive = !1), p === "horizontal")
19777
+ if (st.menuMode = p, p === "static" && (Qe.staticMenuDesktopInactive = !1), p === "horizontal")
19778
19778
  if (st.darkTheme) {
19779
19779
  if (!document.startViewTransition) {
19780
19780
  st.menuTheme = "dark";
@@ -19789,15 +19789,15 @@ function M1() {
19789
19789
  document.startViewTransition(() => st.menuTheme = "light");
19790
19790
  }
19791
19791
  }, t = (p) => {
19792
- Je.activeMenuItem = p.value || p;
19792
+ Qe.activeMenuItem = p.value || p;
19793
19793
  }, n = () => {
19794
- st.menuMode === "overlay" && (Je.overlayMenuActive = !Je.overlayMenuActive), window.innerWidth > 991 ? Je.staticMenuDesktopInactive = !Je.staticMenuDesktopInactive : Je.staticMenuMobileActive = !Je.staticMenuMobileActive;
19794
+ st.menuMode === "overlay" && (Qe.overlayMenuActive = !Qe.overlayMenuActive), window.innerWidth > 991 ? Qe.staticMenuDesktopInactive = !Qe.staticMenuDesktopInactive : Qe.staticMenuMobileActive = !Qe.staticMenuMobileActive;
19795
19795
  }, o = () => {
19796
- r.value && (Je.overlayMenuActive = !1, Je.overlaySubmenuActive = !1, Je.staticMenuMobileActive = !1, Je.menuHoverActive = !1, Je.configSidebarVisible = !1), Je.configSidebarVisible = !Je.configSidebarVisible;
19797
- }, r = te(() => Je.overlayMenuActive || Je.staticMenuMobileActive || Je.overlaySubmenuActive), i = te(() => window.innerWidth > 991), a = te(() => st.menuMode === "slim"), s = te(() => st.menuMode === "slim-plus"), u = te(() => st.menuMode === "horizontal"), l = te(() => st.menuMode === "overlay"), c = te(() => st.darkTheme), f = te(() => st.primary), d = te(() => st.surface);
19796
+ r.value && (Qe.overlayMenuActive = !1, Qe.overlaySubmenuActive = !1, Qe.staticMenuMobileActive = !1, Qe.menuHoverActive = !1, Qe.configSidebarVisible = !1), Qe.configSidebarVisible = !Qe.configSidebarVisible;
19797
+ }, r = te(() => Qe.overlayMenuActive || Qe.staticMenuMobileActive || Qe.overlaySubmenuActive), i = te(() => window.innerWidth > 991), a = te(() => st.menuMode === "slim"), s = te(() => st.menuMode === "slim-plus"), u = te(() => st.menuMode === "horizontal"), l = te(() => st.menuMode === "overlay"), c = te(() => st.darkTheme), f = te(() => st.primary), d = te(() => st.surface);
19798
19798
  return {
19799
19799
  layoutConfig: st,
19800
- layoutState: Je,
19800
+ layoutState: Qe,
19801
19801
  getPrimary: f,
19802
19802
  getSurface: d,
19803
19803
  isDarkTheme: c,
@@ -25246,8 +25246,11 @@ function Lk() {
25246
25246
  return { getEntityRecord: async (n, o) => {
25247
25247
  try {
25248
25248
  const r = await e.getRecord(n, o);
25249
- if (r && r.response)
25250
- return r;
25249
+ if (r && r.success)
25250
+ if (r.response.result.length > 0)
25251
+ r.response.result[0];
25252
+ else
25253
+ return {};
25251
25254
  } catch (r) {
25252
25255
  return r;
25253
25256
  } finally {
@@ -25287,7 +25290,7 @@ function zk() {
25287
25290
  } };
25288
25291
  }
25289
25292
  function jk() {
25290
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25293
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
25291
25294
  return {
25292
25295
  getThemes: async () => {
25293
25296
  const f = i();
@@ -25309,14 +25312,14 @@ function jk() {
25309
25312
  };
25310
25313
  }
25311
25314
  function Mk() {
25312
- const { get: e } = Xt();
25315
+ const { get: e } = zt();
25313
25316
  return {
25314
25317
  getPlatformComponents: async () => await e("/api/platform/v1/search/COMPONENT_PALLET?page=0&size=50&continue"),
25315
25318
  getComponentTemplates: async (o) => await e(`api/platform/v1/search/COMPONENT_TEMPLATE?keyword=${o}&page=0&size=50`)
25316
25319
  };
25317
25320
  }
25318
25321
  function Uk() {
25319
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25322
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
25320
25323
  return {
25321
25324
  getPage: async (f) => {
25322
25325
  const d = i();
@@ -25341,7 +25344,7 @@ function Uk() {
25341
25344
  };
25342
25345
  }
25343
25346
  function Hk() {
25344
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25347
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
25345
25348
  return {
25346
25349
  getLayouts: async () => {
25347
25350
  const f = i();
@@ -25366,7 +25369,7 @@ function Hk() {
25366
25369
  };
25367
25370
  }
25368
25371
  function Wk() {
25369
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25372
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
25370
25373
  return {
25371
25374
  getGlobalVars: async () => {
25372
25375
  const d = i();
@@ -25394,6 +25397,31 @@ function Wk() {
25394
25397
  }
25395
25398
  };
25396
25399
  }
25400
+ function qk() {
25401
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
25402
+ return {
25403
+ getConnectionByID: async (f) => {
25404
+ const d = i();
25405
+ return await t(`/api/app/v1/${d}/external-connection/${f}`);
25406
+ },
25407
+ createConnection: async (f) => {
25408
+ const d = i();
25409
+ return await n(`/api/app/v1/${d}/external-connection`, f);
25410
+ },
25411
+ updateConnection: async (f, d) => {
25412
+ const p = i();
25413
+ return await o(`/api/app/v1/${p}/external-connection/${f}`, d);
25414
+ },
25415
+ deleteConnection: async (f) => {
25416
+ const d = i();
25417
+ return await r(`/api/app/v1/${d}/external-connection/${f}`);
25418
+ },
25419
+ getAllConnections: async (f) => {
25420
+ const d = i();
25421
+ return await t(`/api/app/v1/${d}/external-connection`);
25422
+ }
25423
+ };
25424
+ }
25397
25425
  const Tk = { style: {
25398
25426
  position: "fixed",
25399
25427
  top: 0,
@@ -25489,7 +25517,7 @@ const Tk = { style: {
25489
25517
  ]));
25490
25518
  }
25491
25519
  };
25492
- function qk({
25520
+ function Kk({
25493
25521
  type: e = "danger",
25494
25522
  title: t = "Warning",
25495
25523
  message: n = "All the changes you made will be lost, do you wish to continue?",
@@ -25529,24 +25557,25 @@ function qk({
25529
25557
  });
25530
25558
  s.mount(a);
25531
25559
  }
25532
- const Kk = {
25560
+ const Gk = {
25533
25561
  install(e, t) {
25534
25562
  e.component("CSEntityGrid", Dr), e.component("csentitygrid", Dr), e.component("CSEntityList", ia), e.component("csentitylist", ia), e.component("CSFieldExpression", ja), e.component("csfieldexpression", ja), e.component("CSEntity360View", na), e.component("csentity360view", na), e.component("CSEntityListing", fa), e.component("csentitylisting", fa), e.component("CSEntityListingTile", pa), e.component("csentitylistingtile", pa), e.component("CSEntityListingCarousel", Ra), e.component("csentitylistingcarousel", Ra), e.component("CSEntitySelection", ns), e.component("csentityselection", ns), e.component("CSEntityExplorer", Ma), e.component("csentityexplorer", Ma), e.component("CSMenu", Ua), e.component("csmenu", Ua), e.component("CSTextInput", Ha), e.component("cstextinput", Ha), e.component("CSButton", Wa), e.component("csbutton", Wa), e.component("CSStateText", qa), e.component("csstatetext", qa), e.component("CSColorPicker", Ka), e.component("cscolorpicker", Ka), e.component("CSRangeInput", Ga), e.component("csrangeinput", Ga), e.component("CSSelector", es), e.component("csselector", es), e.component("CSDynamicSelection", mo), e.component("csdynamicselection", mo), e.component("CSEntityRecordSelection", ts), e.component("csentityrecordselection", ts), e.component("CSMenuSelection", os), e.component("csmenuSelection", os), e.component("CSlabel", as), e.component("cslabel", as), e.component("CSLogin", ss), e.component("cslogin", ss), e.component("CSSignup", ls), e.component("cssignup", ls), e.component("CSRolesSelection", rs), e.component("csrolesselection", rs), e.component("CSPermissionSelection", is), e.component("cspermissionselection", is), e.component("CSIconSelection", us), e.component("csiconselection", us), e.component("CSIconComponent", cs), e.component("csiconcomponent", cs), e.component("CSInputText", di), e.component("csinputtext", di), e.component("CSInputNumber", fi), e.component("csinputnumber", fi), e.component("CSToggleButton", pi), e.component("cstogglebutton", pi), e.component("CSRadioButton", mi), e.component("csradiobutton", mi);
25535
25563
  }
25536
25564
  };
25537
25565
  export {
25538
- Kk as default,
25539
- qk as openGlobalDialog,
25566
+ Gk as default,
25567
+ Kk as openGlobalDialog,
25540
25568
  Vk as useAddEntityRecord,
25541
25569
  Mk as useComponentService,
25570
+ qk as useConnectionService,
25542
25571
  zk as useDeleteEntityRecord,
25543
25572
  Vy as useEntitiesStore,
25544
25573
  Ct as useEntityRecordService,
25545
25574
  Ly as useEntityService,
25546
25575
  Lk as useGetEntityRecord,
25547
- Ze as useGlobalConfigsStore,
25576
+ Xe as useGlobalConfigsStore,
25548
25577
  Wk as useGlobalService,
25549
- Xt as useHttpClient,
25578
+ zt as useHttpClient,
25550
25579
  Hk as useLayoutService,
25551
25580
  Gy as useMenuService,
25552
25581
  Uk as usePageService,