codesaaz-core 0.3.8 → 0.3.9

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 Se, useModel as Ae, resolveComponent as q, openBlock as b, createBlock as M, mergeProps as te, computed as ne, hasInjectionContext as bu, inject as nt, toRaw as Ts, isRef as Vt, isReactive as Wr, toRef as yu, ref as E, watch as Oe, reactive as Lt, effectScope as vu, getCurrentScope as wu, onScopeDispose as ku, nextTick as dt, toRefs as xu, markRaw as Su, createElementBlock as S, Fragment as ie, createElementVNode as w, createTextVNode as et, toDisplayString as Z, createCommentVNode as U, renderList as Ee, createVNode as K, toValue as Ie, unref as ee, onMounted as Le, provide as sn, readonly as Is, watchEffect as Io, shallowRef as Cu, withCtx as oe, onUpdated as Bs, normalizeProps as Qt, guardReactiveProps as bo, renderSlot as ge, createSlots as Rn, withKeys as Wo, withModifiers as mn, withDirectives as xt, vShow as Eu, resolveDirective as qr, normalizeClass as ve, resolveDynamicComponent as Ne, defineComponent as _n, h as tt, shallowReactive as $r, onBeforeUnmount as Kr, useId as $u, getCurrentInstance as Rs, onUnmounted as Ou, cloneVNode as Tu, Teleport as Iu, Transition as Bu, normalizeStyle as Zn, vModelText as Pn, vModelCheckbox as Ps, createApp as Ru } from "vue";
1
+ import { mergeModels as Se, useModel as Ae, resolveComponent as q, openBlock as b, createBlock as M, mergeProps as te, computed as ne, hasInjectionContext as bu, inject as nt, toRaw as Ts, isRef as Vt, isReactive as Wr, toRef as yu, ref as E, watch as Oe, reactive as Lt, effectScope as vu, getCurrentScope as wu, onScopeDispose as ku, nextTick as dt, toRefs as xu, markRaw as Su, createElementBlock as S, Fragment as ie, createElementVNode as w, createTextVNode as et, toDisplayString as Z, createCommentVNode as U, renderList as Ee, createVNode as K, toValue as Ie, unref as ee, onMounted as Le, provide as sn, readonly as Is, watchEffect as Io, shallowRef as Cu, withCtx as oe, onUpdated as Bs, normalizeProps as Qt, guardReactiveProps as bo, renderSlot as me, createSlots as Rn, withKeys as Wo, withModifiers as mn, withDirectives as xt, vShow as Eu, resolveDirective as qr, normalizeClass as ve, resolveDynamicComponent as Ne, defineComponent as _n, h as tt, shallowReactive as $r, onBeforeUnmount as Kr, useId as $u, getCurrentInstance as Rs, onUnmounted as Ou, cloneVNode as Tu, Teleport as Iu, Transition as Bu, normalizeStyle as Zn, vModelText as Pn, vModelCheckbox as Ps, createApp as Ru } from "vue";
2
2
  import { useRoute as un, useRouter as Pu } from "vue-router";
3
3
  import { useToast as Fs, InputText as pa } from "primevue";
4
4
  const ma = {
@@ -614,13 +614,13 @@ function Ns(e, t, n = {}, o, r, a) {
614
614
  after: B,
615
615
  onError: _
616
616
  });
617
- let R;
617
+ let P;
618
618
  try {
619
- R = O.apply(this && this.$id === e ? this : $, T);
619
+ P = O.apply(this && this.$id === e ? this : $, T);
620
620
  } catch (z) {
621
621
  throw En(C, z), z;
622
622
  }
623
- return R instanceof Promise ? R.then((z) => (En(V, z), z)).catch((z) => (En(C, z), Promise.reject(z))) : (En(V, R), R);
623
+ return P instanceof Promise ? P.then((z) => (En(V, z), z)).catch((z) => (En(C, z), Promise.reject(z))) : (En(V, P), P);
624
624
  };
625
625
  return W[Ia] = !0, W[cr] = j, W;
626
626
  }, x = {
@@ -1927,8 +1927,8 @@ const ld = async (e) => {
1927
1927
  method: "POST",
1928
1928
  body: o,
1929
1929
  duplex: "half"
1930
- }), N;
1931
- if (H.isFormData(o) && (N = $.headers.get("content-type")) && u.setContentType(N), $.body) {
1930
+ }), D;
1931
+ if (H.isFormData(o) && (D = $.headers.get("content-type")) && u.setContentType(D), $.body) {
1932
1932
  const [I, O] = Na(
1933
1933
  g,
1934
1934
  No(Da(c))
@@ -1954,8 +1954,8 @@ const ld = async (e) => {
1954
1954
  ["status", "statusText", "headers"].forEach((j) => {
1955
1955
  $[j] = k[j];
1956
1956
  });
1957
- const N = H.toFiniteNumber(k.headers.get("content-length")), [I, O] = s && Na(
1958
- N,
1957
+ const D = H.toFiniteNumber(k.headers.get("content-length")), [I, O] = s && Na(
1958
+ D,
1959
1959
  No(Da(s), !0)
1960
1960
  ) || [];
1961
1961
  k = new Response(
@@ -1967,8 +1967,8 @@ const ld = async (e) => {
1967
1967
  }
1968
1968
  l = l || "text";
1969
1969
  let x = await Do[H.findKey(Do, l) || "text"](k, e);
1970
- return !v && h && h(), await new Promise(($, N) => {
1971
- Zs($, N, {
1970
+ return !v && h && h(), await new Promise(($, D) => {
1971
+ Zs($, D, {
1972
1972
  data: x,
1973
1973
  headers: pt.from(k.headers),
1974
1974
  status: k.status,
@@ -2596,7 +2596,7 @@ function hd(e = "") {
2596
2596
  sortable: !0,
2597
2597
  displayFormatKey: B.displayFormatKey,
2598
2598
  displayFormat: B.displayFormat
2599
- })), $ = (C) => C.filter((B) => !(B.fieldType && B.fieldType === "ENTITY")), N = (C) => {
2599
+ })), $ = (C) => C.filter((B) => !(B.fieldType && B.fieldType === "ENTITY")), D = (C) => {
2600
2600
  s.value = C.sortField, c.value = C.sortOrder, d.value = 0, v();
2601
2601
  }, I = (C) => {
2602
2602
  l.value = C.rows, u.value = C.page, d.value = C.first, v();
@@ -2648,7 +2648,7 @@ function hd(e = "") {
2648
2648
  onFullTextSearch: j,
2649
2649
  getDatatypeByField: T,
2650
2650
  getColumnDatatype: W,
2651
- onSort: N,
2651
+ onSort: D,
2652
2652
  onPage: I,
2653
2653
  onFilter: O,
2654
2654
  fetchEntityFilterData: v,
@@ -3316,81 +3316,81 @@ function gl(e) {
3316
3316
  const n = rf++, o = "Form";
3317
3317
  let r = 0;
3318
3318
  const a = E(!1), i = E(!1), s = E(0), c = [], l = Lt(ml()), u = E([]), f = E({}), d = E({}), p = jd(() => {
3319
- d.value = u.value.reduce((P, F) => (P[xo(Ie(F.path))] = F, P), {});
3319
+ d.value = u.value.reduce((F, A) => (F[xo(Ie(A.path))] = A, F), {});
3320
3320
  });
3321
- function m(P, F) {
3322
- const Y = z(P);
3323
- if (!Y) {
3324
- typeof P == "string" && (f.value[xo(P)] = Xa(F));
3321
+ function m(F, A) {
3322
+ const Q = z(F);
3323
+ if (!Q) {
3324
+ typeof F == "string" && (f.value[xo(F)] = Xa(A));
3325
3325
  return;
3326
3326
  }
3327
- if (typeof P == "string") {
3328
- const se = xo(P);
3327
+ if (typeof F == "string") {
3328
+ const se = xo(F);
3329
3329
  f.value[se] && delete f.value[se];
3330
3330
  }
3331
- Y.errors = Xa(F), Y.valid = !Y.errors.length;
3331
+ Q.errors = Xa(A), Q.valid = !Q.errors.length;
3332
3332
  }
3333
- function h(P) {
3334
- kt(P).forEach((F) => {
3335
- m(F, P[F]);
3333
+ function h(F) {
3334
+ kt(F).forEach((A) => {
3335
+ m(A, F[A]);
3336
3336
  });
3337
3337
  }
3338
3338
  const g = ne(() => {
3339
- const P = u.value.reduce((F, Y) => (Y.errors.length && (F[Ie(Y.path)] = Y.errors), F), {});
3340
- return Object.assign(Object.assign({}, f.value), P);
3341
- }), y = ne(() => kt(g.value).reduce((P, F) => {
3342
- const Y = g.value[F];
3343
- return Y != null && Y.length && (P[F] = Y[0]), P;
3344
- }, {})), k = ne(() => u.value.reduce((P, F) => (P[Ie(F.path)] = { name: Ie(F.path) || "", label: F.label || "" }, P), {})), v = ne(() => u.value.reduce((P, F) => {
3345
- var Y;
3346
- return P[Ie(F.path)] = (Y = F.bails) !== null && Y !== void 0 ? Y : !0, P;
3347
- }, {})), x = Object.assign({}, {}), $ = (t = void 0) !== null && t !== void 0 ? t : !1, { initialValues: N, originalInitialValues: I, setInitialValues: O } = sf(u, l), j = af(u, l, I, y), W = ne(() => u.value.reduce((P, F) => {
3348
- const Y = Gt(l, Ie(F.path));
3349
- return Wt(P, Ie(F.path), Y), P;
3339
+ const F = u.value.reduce((A, Q) => (Q.errors.length && (A[Ie(Q.path)] = Q.errors), A), {});
3340
+ return Object.assign(Object.assign({}, f.value), F);
3341
+ }), y = ne(() => kt(g.value).reduce((F, A) => {
3342
+ const Q = g.value[A];
3343
+ return Q != null && Q.length && (F[A] = Q[0]), F;
3344
+ }, {})), k = ne(() => u.value.reduce((F, A) => (F[Ie(A.path)] = { name: Ie(A.path) || "", label: A.label || "" }, F), {})), v = ne(() => u.value.reduce((F, A) => {
3345
+ var Q;
3346
+ return F[Ie(A.path)] = (Q = A.bails) !== null && Q !== void 0 ? Q : !0, F;
3347
+ }, {})), x = Object.assign({}, {}), $ = (t = void 0) !== null && t !== void 0 ? t : !1, { initialValues: D, originalInitialValues: I, setInitialValues: O } = sf(u, l), j = af(u, l, I, y), W = ne(() => u.value.reduce((F, A) => {
3348
+ const Q = Gt(l, Ie(A.path));
3349
+ return Wt(F, Ie(A.path), Q), F;
3350
3350
  }, {})), T = void 0;
3351
- function V(P, F) {
3352
- var Y, se;
3353
- const be = ne(() => Gt(N.value, Ie(P))), ke = d.value[Ie(P)], me = (F == null ? void 0 : F.type) === "checkbox" || (F == null ? void 0 : F.type) === "radio";
3354
- if (ke && me) {
3351
+ function V(F, A) {
3352
+ var Q, se;
3353
+ const he = ne(() => Gt(D.value, Ie(F))), ke = d.value[Ie(F)], pe = (A == null ? void 0 : A.type) === "checkbox" || (A == null ? void 0 : A.type) === "radio";
3354
+ if (ke && pe) {
3355
3355
  ke.multiple = !0;
3356
3356
  const He = r++;
3357
3357
  return Array.isArray(ke.id) ? ke.id.push(He) : ke.id = [ke.id, He], ke.fieldsCount++, ke.__flags.pendingUnmount[He] = !1, ke;
3358
3358
  }
3359
- const G = ne(() => Gt(l, Ie(P))), re = Ie(P), de = Q.findIndex((He) => He === re);
3360
- de !== -1 && Q.splice(de, 1);
3361
- const ue = ne(() => {
3359
+ const G = ne(() => Gt(l, Ie(F))), re = Ie(F), ce = ye.findIndex((He) => He === re);
3360
+ ce !== -1 && ye.splice(ce, 1);
3361
+ const le = ne(() => {
3362
3362
  var He, ot, Vn, zn;
3363
3363
  const Mn = Ie(T);
3364
3364
  if (rn(Mn))
3365
- return (ot = (He = Mn.describe) === null || He === void 0 ? void 0 : He.call(Mn, Ie(P)).required) !== null && ot !== void 0 ? ot : !1;
3366
- const ur = Ie(F == null ? void 0 : F.schema);
3365
+ return (ot = (He = Mn.describe) === null || He === void 0 ? void 0 : He.call(Mn, Ie(F)).required) !== null && ot !== void 0 ? ot : !1;
3366
+ const ur = Ie(A == null ? void 0 : A.schema);
3367
3367
  return rn(ur) && (zn = (Vn = ur.describe) === null || Vn === void 0 ? void 0 : Vn.call(ur).required) !== null && zn !== void 0 ? zn : !1;
3368
- }), ye = r++, Ve = Lt({
3369
- id: ye,
3370
- path: P,
3368
+ }), be = r++, Ve = Lt({
3369
+ id: be,
3370
+ path: F,
3371
3371
  touched: !1,
3372
3372
  pending: !1,
3373
3373
  valid: !0,
3374
- validated: !!(!((Y = x[re]) === null || Y === void 0) && Y.length),
3375
- required: ue,
3376
- initialValue: be,
3374
+ validated: !!(!((Q = x[re]) === null || Q === void 0) && Q.length),
3375
+ required: le,
3376
+ initialValue: he,
3377
3377
  errors: Cu([]),
3378
- bails: (se = F == null ? void 0 : F.bails) !== null && se !== void 0 ? se : !1,
3379
- label: F == null ? void 0 : F.label,
3380
- type: (F == null ? void 0 : F.type) || "default",
3378
+ bails: (se = A == null ? void 0 : A.bails) !== null && se !== void 0 ? se : !1,
3379
+ label: A == null ? void 0 : A.label,
3380
+ type: (A == null ? void 0 : A.type) || "default",
3381
3381
  value: G,
3382
3382
  multiple: !1,
3383
3383
  __flags: {
3384
- pendingUnmount: { [ye]: !1 },
3384
+ pendingUnmount: { [be]: !1 },
3385
3385
  pendingReset: !1
3386
3386
  },
3387
3387
  fieldsCount: 1,
3388
- validate: F == null ? void 0 : F.validate,
3389
- dirty: ne(() => !Qn(ee(G), ee(be)))
3388
+ validate: A == null ? void 0 : A.validate,
3389
+ dirty: ne(() => !Qn(ee(G), ee(he)))
3390
3390
  });
3391
3391
  return u.value.push(Ve), d.value[re] = Ve, p(), y.value[re] && !x[re] && dt(() => {
3392
3392
  Ke(re, { mode: "silent" });
3393
- }), Vt(P) && Oe(P, (He) => {
3393
+ }), Vt(F) && Oe(F, (He) => {
3394
3394
  p();
3395
3395
  const ot = je(G.value);
3396
3396
  d.value[He] = Ve, dt(() => {
@@ -3398,52 +3398,52 @@ function gl(e) {
3398
3398
  });
3399
3399
  }), Ve;
3400
3400
  }
3401
- const C = Qa(vt, 5), B = Qa(vt, 5), _ = Md(async (P) => await (P === "silent" ? C() : B()), (P, [F]) => {
3402
- const Y = kt(we.errorBag.value), be = [
3403
- .../* @__PURE__ */ new Set([...kt(P.results), ...u.value.map((ke) => ke.path), ...Y])
3404
- ].sort().reduce((ke, me) => {
3401
+ const C = Qa(vt, 5), B = Qa(vt, 5), _ = Md(async (F) => await (F === "silent" ? C() : B()), (F, [A]) => {
3402
+ const Q = kt(we.errorBag.value), he = [
3403
+ .../* @__PURE__ */ new Set([...kt(F.results), ...u.value.map((ke) => ke.path), ...Q])
3404
+ ].sort().reduce((ke, pe) => {
3405
3405
  var G;
3406
- const re = me, de = z(re) || J(re), ue = ((G = P.results[re]) === null || G === void 0 ? void 0 : G.errors) || [], ye = Ie(de == null ? void 0 : de.path) || re, Ve = lf({ errors: ue, valid: !ue.length }, ke.results[ye]);
3407
- return ke.results[ye] = Ve, Ve.valid || (ke.errors[ye] = Ve.errors[0]), de && f.value[ye] && delete f.value[ye], de ? (de.valid = Ve.valid, F === "silent" || F === "validated-only" && !de.validated || m(de, Ve.errors), ke) : (m(ye, ue), ke);
3406
+ const re = pe, ce = z(re) || J(re), le = ((G = F.results[re]) === null || G === void 0 ? void 0 : G.errors) || [], be = Ie(ce == null ? void 0 : ce.path) || re, Ve = lf({ errors: le, valid: !le.length }, ke.results[be]);
3407
+ return ke.results[be] = Ve, Ve.valid || (ke.errors[be] = Ve.errors[0]), ce && f.value[be] && delete f.value[be], ce ? (ce.valid = Ve.valid, A === "silent" || A === "validated-only" && !ce.validated || m(ce, Ve.errors), ke) : (m(be, le), ke);
3408
3408
  }, {
3409
- valid: P.valid,
3409
+ valid: F.valid,
3410
3410
  results: {},
3411
3411
  errors: {},
3412
- source: P.source
3412
+ source: F.source
3413
3413
  });
3414
- return P.values && (be.values = P.values, be.source = P.source), kt(be.results).forEach((ke) => {
3415
- var me;
3414
+ return F.values && (he.values = F.values, he.source = F.source), kt(he.results).forEach((ke) => {
3415
+ var pe;
3416
3416
  const G = z(ke);
3417
- G && F !== "silent" && (F === "validated-only" && !G.validated || m(G, (me = be.results[ke]) === null || me === void 0 ? void 0 : me.errors));
3418
- }), be;
3417
+ G && A !== "silent" && (A === "validated-only" && !G.validated || m(G, (pe = he.results[ke]) === null || pe === void 0 ? void 0 : pe.errors));
3418
+ }), he;
3419
3419
  });
3420
- function R(P) {
3421
- u.value.forEach(P);
3422
- }
3423
- function z(P) {
3424
- const F = typeof P == "string" ? xo(P) : P;
3425
- return typeof F == "string" ? d.value[F] : F;
3426
- }
3427
- function J(P) {
3428
- return u.value.filter((Y) => P.startsWith(Ie(Y.path))).reduce((Y, se) => Y ? se.path.length > Y.path.length ? se : Y : se, void 0);
3429
- }
3430
- let Q = [], L;
3431
- function D(P) {
3432
- return Q.push(P), L || (L = dt(() => {
3433
- [...Q].sort().reverse().forEach((Y) => {
3434
- Ya(l, Y);
3435
- }), Q = [], L = null;
3420
+ function P(F) {
3421
+ u.value.forEach(F);
3422
+ }
3423
+ function z(F) {
3424
+ const A = typeof F == "string" ? xo(F) : F;
3425
+ return typeof A == "string" ? d.value[A] : A;
3426
+ }
3427
+ function J(F) {
3428
+ return u.value.filter((Q) => F.startsWith(Ie(Q.path))).reduce((Q, se) => Q ? se.path.length > Q.path.length ? se : Q : se, void 0);
3429
+ }
3430
+ let ye = [], L;
3431
+ function N(F) {
3432
+ return ye.push(F), L || (L = dt(() => {
3433
+ [...ye].sort().reverse().forEach((Q) => {
3434
+ Ya(l, Q);
3435
+ }), ye = [], L = null;
3436
3436
  })), L;
3437
3437
  }
3438
- function A(P) {
3439
- return function(Y, se) {
3438
+ function R(F) {
3439
+ return function(Q, se) {
3440
3440
  return function(ke) {
3441
- return ke instanceof Event && (ke.preventDefault(), ke.stopPropagation()), R((me) => me.touched = !0), a.value = !0, s.value++, _e().then((me) => {
3441
+ return ke instanceof Event && (ke.preventDefault(), ke.stopPropagation()), P((pe) => pe.touched = !0), a.value = !0, s.value++, _e().then((pe) => {
3442
3442
  const G = je(l);
3443
- if (me.valid && typeof Y == "function") {
3443
+ if (pe.valid && typeof Q == "function") {
3444
3444
  const re = je(W.value);
3445
- let de = P ? re : G;
3446
- return me.values && (de = me.source === "schema" ? me.values : Object.assign({}, de, me.values)), Y(de, {
3445
+ let ce = F ? re : G;
3446
+ return pe.values && (ce = pe.source === "schema" ? pe.values : Object.assign({}, ce, pe.values)), Q(ce, {
3447
3447
  evt: ke,
3448
3448
  controlledValues: re,
3449
3449
  setErrors: h,
@@ -3456,36 +3456,36 @@ function gl(e) {
3456
3456
  resetField: Me
3457
3457
  });
3458
3458
  }
3459
- !me.valid && typeof se == "function" && se({
3459
+ !pe.valid && typeof se == "function" && se({
3460
3460
  values: G,
3461
3461
  evt: ke,
3462
- errors: me.errors,
3463
- results: me.results
3462
+ errors: pe.errors,
3463
+ results: pe.results
3464
3464
  });
3465
- }).then((me) => (a.value = !1, me), (me) => {
3466
- throw a.value = !1, me;
3465
+ }).then((pe) => (a.value = !1, pe), (pe) => {
3466
+ throw a.value = !1, pe;
3467
3467
  });
3468
3468
  };
3469
3469
  };
3470
3470
  }
3471
- const pe = A(!1);
3472
- pe.withControlled = A(!0);
3473
- function ce(P, F) {
3474
- const Y = u.value.findIndex((be) => be.path === P && (Array.isArray(be.id) ? be.id.includes(F) : be.id === F)), se = u.value[Y];
3475
- if (!(Y === -1 || !se)) {
3471
+ const de = R(!1);
3472
+ de.withControlled = R(!0);
3473
+ function ue(F, A) {
3474
+ const Q = u.value.findIndex((he) => he.path === F && (Array.isArray(he.id) ? he.id.includes(A) : he.id === A)), se = u.value[Q];
3475
+ if (!(Q === -1 || !se)) {
3476
3476
  if (dt(() => {
3477
- Ke(P, { mode: "silent", warn: !1 });
3477
+ Ke(F, { mode: "silent", warn: !1 });
3478
3478
  }), se.multiple && se.fieldsCount && se.fieldsCount--, Array.isArray(se.id)) {
3479
- const be = se.id.indexOf(F);
3480
- be >= 0 && se.id.splice(be, 1), delete se.__flags.pendingUnmount[F];
3479
+ const he = se.id.indexOf(A);
3480
+ he >= 0 && se.id.splice(he, 1), delete se.__flags.pendingUnmount[A];
3481
3481
  }
3482
- (!se.multiple || se.fieldsCount <= 0) && (u.value.splice(Y, 1), Ft(P), p(), delete d.value[P]);
3482
+ (!se.multiple || se.fieldsCount <= 0) && (u.value.splice(Q, 1), Ft(F), p(), delete d.value[F]);
3483
3483
  }
3484
3484
  }
3485
- function fe(P) {
3486
- kt(d.value).forEach((F) => {
3487
- F.startsWith(P) && delete d.value[F];
3488
- }), u.value = u.value.filter((F) => !F.path.startsWith(P)), dt(() => {
3485
+ function fe(F) {
3486
+ kt(d.value).forEach((A) => {
3487
+ A.startsWith(F) && delete d.value[A];
3488
+ }), u.value = u.value.filter((A) => !A.path.startsWith(F)), dt(() => {
3489
3489
  p();
3490
3490
  });
3491
3491
  }
@@ -3514,9 +3514,9 @@ function gl(e) {
3514
3514
  setTouched: at,
3515
3515
  resetForm: Pe,
3516
3516
  resetField: Me,
3517
- handleSubmit: pe,
3517
+ handleSubmit: de,
3518
3518
  useFieldModel: cn,
3519
- defineInputBinds: he,
3519
+ defineInputBinds: ge,
3520
3520
  defineComponentBinds: Ot,
3521
3521
  defineField: Jt,
3522
3522
  stageInitialValue: Je,
@@ -3524,214 +3524,214 @@ function gl(e) {
3524
3524
  setFieldInitialValue: ut,
3525
3525
  createPathState: V,
3526
3526
  getPathState: z,
3527
- unsetPathValue: D,
3528
- removePathState: ce,
3529
- initialValues: N,
3527
+ unsetPathValue: N,
3528
+ removePathState: ue,
3529
+ initialValues: D,
3530
3530
  getAllPathStates: () => u.value,
3531
3531
  destroyPath: fe,
3532
3532
  isFieldTouched: ae,
3533
3533
  isFieldDirty: X,
3534
3534
  isFieldValid: Re
3535
3535
  };
3536
- function $e(P, F, Y = !0) {
3537
- const se = je(F), be = typeof P == "string" ? P : P.path;
3538
- z(be) || V(be), Wt(l, be, se), Y && Ke(be);
3539
- }
3540
- function gt(P, F = !0) {
3541
- kt(l).forEach((Y) => {
3542
- delete l[Y];
3543
- }), kt(P).forEach((Y) => {
3544
- $e(Y, P[Y], !1);
3545
- }), F && _e();
3546
- }
3547
- function rt(P, F = !0) {
3548
- to(l, P), c.forEach((Y) => Y && Y.reset()), F && _e();
3549
- }
3550
- function $t(P, F) {
3551
- const Y = z(Ie(P)) || V(P);
3536
+ function $e(F, A, Q = !0) {
3537
+ const se = je(A), he = typeof F == "string" ? F : F.path;
3538
+ z(he) || V(he), Wt(l, he, se), Q && Ke(he);
3539
+ }
3540
+ function gt(F, A = !0) {
3541
+ kt(l).forEach((Q) => {
3542
+ delete l[Q];
3543
+ }), kt(F).forEach((Q) => {
3544
+ $e(Q, F[Q], !1);
3545
+ }), A && _e();
3546
+ }
3547
+ function rt(F, A = !0) {
3548
+ to(l, F), c.forEach((Q) => Q && Q.reset()), A && _e();
3549
+ }
3550
+ function $t(F, A) {
3551
+ const Q = z(Ie(F)) || V(F);
3552
3552
  return ne({
3553
3553
  get() {
3554
- return Y.value;
3554
+ return Q.value;
3555
3555
  },
3556
3556
  set(se) {
3557
- var be;
3558
- const ke = Ie(P);
3559
- $e(ke, se, (be = Ie(F)) !== null && be !== void 0 ? be : !1);
3557
+ var he;
3558
+ const ke = Ie(F);
3559
+ $e(ke, se, (he = Ie(A)) !== null && he !== void 0 ? he : !1);
3560
3560
  }
3561
3561
  });
3562
3562
  }
3563
- function yt(P, F) {
3564
- const Y = z(P);
3565
- Y && (Y.touched = F);
3563
+ function yt(F, A) {
3564
+ const Q = z(F);
3565
+ Q && (Q.touched = A);
3566
3566
  }
3567
- function ae(P) {
3568
- const F = z(P);
3569
- return F ? F.touched : u.value.filter((Y) => Y.path.startsWith(P)).some((Y) => Y.touched);
3567
+ function ae(F) {
3568
+ const A = z(F);
3569
+ return A ? A.touched : u.value.filter((Q) => Q.path.startsWith(F)).some((Q) => Q.touched);
3570
3570
  }
3571
- function X(P) {
3572
- const F = z(P);
3573
- return F ? F.dirty : u.value.filter((Y) => Y.path.startsWith(P)).some((Y) => Y.dirty);
3571
+ function X(F) {
3572
+ const A = z(F);
3573
+ return A ? A.dirty : u.value.filter((Q) => Q.path.startsWith(F)).some((Q) => Q.dirty);
3574
3574
  }
3575
- function Re(P) {
3576
- const F = z(P);
3577
- return F ? F.valid : u.value.filter((Y) => Y.path.startsWith(P)).every((Y) => Y.valid);
3575
+ function Re(F) {
3576
+ const A = z(F);
3577
+ return A ? A.valid : u.value.filter((Q) => Q.path.startsWith(F)).every((Q) => Q.valid);
3578
3578
  }
3579
- function at(P) {
3580
- if (typeof P == "boolean") {
3581
- R((F) => {
3582
- F.touched = P;
3579
+ function at(F) {
3580
+ if (typeof F == "boolean") {
3581
+ P((A) => {
3582
+ A.touched = F;
3583
3583
  });
3584
3584
  return;
3585
3585
  }
3586
- kt(P).forEach((F) => {
3587
- yt(F, !!P[F]);
3586
+ kt(F).forEach((A) => {
3587
+ yt(A, !!F[A]);
3588
3588
  });
3589
3589
  }
3590
- function Me(P, F) {
3591
- var Y;
3592
- const se = F && "value" in F ? F.value : Gt(N.value, P), be = z(P);
3593
- be && (be.__flags.pendingReset = !0), ut(P, je(se), !0), $e(P, se, !1), yt(P, (Y = F == null ? void 0 : F.touched) !== null && Y !== void 0 ? Y : !1), m(P, (F == null ? void 0 : F.errors) || []), dt(() => {
3594
- be && (be.__flags.pendingReset = !1);
3590
+ function Me(F, A) {
3591
+ var Q;
3592
+ const se = A && "value" in A ? A.value : Gt(D.value, F), he = z(F);
3593
+ he && (he.__flags.pendingReset = !0), ut(F, je(se), !0), $e(F, se, !1), yt(F, (Q = A == null ? void 0 : A.touched) !== null && Q !== void 0 ? Q : !1), m(F, (A == null ? void 0 : A.errors) || []), dt(() => {
3594
+ he && (he.__flags.pendingReset = !1);
3595
3595
  });
3596
3596
  }
3597
- function Pe(P, F) {
3598
- let Y = je(P != null && P.values ? P.values : I.value);
3599
- Y = F != null && F.force ? Y : to(I.value, Y), Y = rn(T) && Bt(T.cast) ? T.cast(Y) : Y, O(Y, { force: F == null ? void 0 : F.force }), R((se) => {
3600
- var be;
3601
- se.__flags.pendingReset = !0, se.validated = !1, se.touched = ((be = P == null ? void 0 : P.touched) === null || be === void 0 ? void 0 : be[Ie(se.path)]) || !1, $e(Ie(se.path), Gt(Y, Ie(se.path)), !1), m(Ie(se.path), void 0);
3602
- }), F != null && F.force ? gt(Y, !1) : rt(Y, !1), h((P == null ? void 0 : P.errors) || {}), s.value = (P == null ? void 0 : P.submitCount) || 0, dt(() => {
3603
- _e({ mode: "silent" }), R((se) => {
3597
+ function Pe(F, A) {
3598
+ let Q = je(F != null && F.values ? F.values : I.value);
3599
+ Q = A != null && A.force ? Q : to(I.value, Q), Q = rn(T) && Bt(T.cast) ? T.cast(Q) : Q, O(Q, { force: A == null ? void 0 : A.force }), P((se) => {
3600
+ var he;
3601
+ se.__flags.pendingReset = !0, se.validated = !1, se.touched = ((he = F == null ? void 0 : F.touched) === null || he === void 0 ? void 0 : he[Ie(se.path)]) || !1, $e(Ie(se.path), Gt(Q, Ie(se.path)), !1), m(Ie(se.path), void 0);
3602
+ }), A != null && A.force ? gt(Q, !1) : rt(Q, !1), h((F == null ? void 0 : F.errors) || {}), s.value = (F == null ? void 0 : F.submitCount) || 0, dt(() => {
3603
+ _e({ mode: "silent" }), P((se) => {
3604
3604
  se.__flags.pendingReset = !1;
3605
3605
  });
3606
3606
  });
3607
3607
  }
3608
- async function _e(P) {
3609
- const F = (P == null ? void 0 : P.mode) || "force";
3610
- if (F === "force" && R((me) => me.validated = !0), we.validateSchema)
3611
- return we.validateSchema(F);
3608
+ async function _e(F) {
3609
+ const A = (F == null ? void 0 : F.mode) || "force";
3610
+ if (A === "force" && P((pe) => pe.validated = !0), we.validateSchema)
3611
+ return we.validateSchema(A);
3612
3612
  i.value = !0;
3613
- const Y = await Promise.all(u.value.map((me) => me.validate ? me.validate(P).then((G) => ({
3614
- key: Ie(me.path),
3613
+ const Q = await Promise.all(u.value.map((pe) => pe.validate ? pe.validate(F).then((G) => ({
3614
+ key: Ie(pe.path),
3615
3615
  valid: G.valid,
3616
3616
  errors: G.errors,
3617
3617
  value: G.value
3618
3618
  })) : Promise.resolve({
3619
- key: Ie(me.path),
3619
+ key: Ie(pe.path),
3620
3620
  valid: !0,
3621
3621
  errors: [],
3622
3622
  value: void 0
3623
3623
  })));
3624
3624
  i.value = !1;
3625
- const se = {}, be = {}, ke = {};
3626
- for (const me of Y)
3627
- se[me.key] = {
3628
- valid: me.valid,
3629
- errors: me.errors
3630
- }, me.value && Wt(ke, me.key, me.value), me.errors.length && (be[me.key] = me.errors[0]);
3625
+ const se = {}, he = {}, ke = {};
3626
+ for (const pe of Q)
3627
+ se[pe.key] = {
3628
+ valid: pe.valid,
3629
+ errors: pe.errors
3630
+ }, pe.value && Wt(ke, pe.key, pe.value), pe.errors.length && (he[pe.key] = pe.errors[0]);
3631
3631
  return {
3632
- valid: Y.every((me) => me.valid),
3632
+ valid: Q.every((pe) => pe.valid),
3633
3633
  results: se,
3634
- errors: be,
3634
+ errors: he,
3635
3635
  values: ke,
3636
3636
  source: "fields"
3637
3637
  };
3638
3638
  }
3639
- async function Ke(P, F) {
3640
- var Y;
3641
- const se = z(P);
3642
- return se && (F == null ? void 0 : F.mode) !== "silent" && (se.validated = !0), se != null && se.validate ? se.validate(F) : (!se && (Y = F == null ? void 0 : F.warn), Promise.resolve({ errors: [], valid: !0 }));
3639
+ async function Ke(F, A) {
3640
+ var Q;
3641
+ const se = z(F);
3642
+ return se && (A == null ? void 0 : A.mode) !== "silent" && (se.validated = !0), se != null && se.validate ? se.validate(A) : (!se && (Q = A == null ? void 0 : A.warn), Promise.resolve({ errors: [], valid: !0 }));
3643
3643
  }
3644
- function Ft(P) {
3645
- Ya(N.value, P);
3644
+ function Ft(F) {
3645
+ Ya(D.value, F);
3646
3646
  }
3647
- function Je(P, F, Y = !1) {
3648
- ut(P, F), Wt(l, P, F), Y && Wt(I.value, P, je(F));
3647
+ function Je(F, A, Q = !1) {
3648
+ ut(F, A), Wt(l, F, A), Q && Wt(I.value, F, je(A));
3649
3649
  }
3650
- function ut(P, F, Y = !1) {
3651
- Wt(N.value, P, je(F)), Y && Wt(I.value, P, je(F));
3650
+ function ut(F, A, Q = !1) {
3651
+ Wt(D.value, F, je(A)), Q && Wt(I.value, F, je(A));
3652
3652
  }
3653
3653
  async function vt() {
3654
- const P = ee(T);
3655
- if (!P)
3654
+ const F = ee(T);
3655
+ if (!F)
3656
3656
  return { valid: !0, results: {}, errors: {}, source: "none" };
3657
3657
  i.value = !0;
3658
- const F = ll(P) || rn(P) ? await nf(P, l) : await of(P, l, {
3658
+ const A = ll(F) || rn(F) ? await nf(F, l) : await of(F, l, {
3659
3659
  names: k.value,
3660
3660
  bailsMap: v.value
3661
3661
  });
3662
- return i.value = !1, F;
3662
+ return i.value = !1, A;
3663
3663
  }
3664
- const Xt = pe((P, { evt: F }) => {
3665
- zd(F) && F.target.submit();
3664
+ const Xt = de((F, { evt: A }) => {
3665
+ zd(A) && A.target.submit();
3666
3666
  });
3667
3667
  Le(() => {
3668
3668
  we.validateSchema && we.validateSchema("silent");
3669
3669
  }), Vt(T) && Oe(T, () => {
3670
- var P;
3671
- (P = we.validateSchema) === null || P === void 0 || P.call(we, "validated-only");
3670
+ var F;
3671
+ (F = we.validateSchema) === null || F === void 0 || F.call(we, "validated-only");
3672
3672
  }), sn(Pd, we);
3673
- function Jt(P, F) {
3674
- const Y = Bt(F) || F == null ? void 0 : F.label, se = z(Ie(P)) || V(P, { label: Y }), be = () => Bt(F) ? F(So(se, Co)) : F || {};
3673
+ function Jt(F, A) {
3674
+ const Q = Bt(A) || A == null ? void 0 : A.label, se = z(Ie(F)) || V(F, { label: Q }), he = () => Bt(A) ? A(So(se, Co)) : A || {};
3675
3675
  function ke() {
3676
- var ue;
3677
- se.touched = !0, ((ue = be().validateOnBlur) !== null && ue !== void 0 ? ue : Kn().validateOnBlur) && Ke(Ie(se.path));
3676
+ var le;
3677
+ se.touched = !0, ((le = he().validateOnBlur) !== null && le !== void 0 ? le : Kn().validateOnBlur) && Ke(Ie(se.path));
3678
3678
  }
3679
- function me() {
3680
- var ue;
3681
- ((ue = be().validateOnInput) !== null && ue !== void 0 ? ue : Kn().validateOnInput) && dt(() => {
3679
+ function pe() {
3680
+ var le;
3681
+ ((le = he().validateOnInput) !== null && le !== void 0 ? le : Kn().validateOnInput) && dt(() => {
3682
3682
  Ke(Ie(se.path));
3683
3683
  });
3684
3684
  }
3685
3685
  function G() {
3686
- var ue;
3687
- ((ue = be().validateOnChange) !== null && ue !== void 0 ? ue : Kn().validateOnChange) && dt(() => {
3686
+ var le;
3687
+ ((le = he().validateOnChange) !== null && le !== void 0 ? le : Kn().validateOnChange) && dt(() => {
3688
3688
  Ke(Ie(se.path));
3689
3689
  });
3690
3690
  }
3691
3691
  const re = ne(() => {
3692
- const ue = {
3692
+ const le = {
3693
3693
  onChange: G,
3694
- onInput: me,
3694
+ onInput: pe,
3695
3695
  onBlur: ke
3696
3696
  };
3697
- return Bt(F) ? Object.assign(Object.assign({}, ue), F(So(se, Co)).props || {}) : F != null && F.props ? Object.assign(Object.assign({}, ue), F.props(So(se, Co))) : ue;
3697
+ return Bt(A) ? Object.assign(Object.assign({}, le), A(So(se, Co)).props || {}) : A != null && A.props ? Object.assign(Object.assign({}, le), A.props(So(se, Co))) : le;
3698
3698
  });
3699
- return [$t(P, () => {
3700
- var ue, ye, Ve;
3701
- return (Ve = (ue = be().validateOnModelUpdate) !== null && ue !== void 0 ? ue : (ye = Kn()) === null || ye === void 0 ? void 0 : ye.validateOnModelUpdate) !== null && Ve !== void 0 ? Ve : !0;
3699
+ return [$t(F, () => {
3700
+ var le, be, Ve;
3701
+ return (Ve = (le = he().validateOnModelUpdate) !== null && le !== void 0 ? le : (be = Kn()) === null || be === void 0 ? void 0 : be.validateOnModelUpdate) !== null && Ve !== void 0 ? Ve : !0;
3702
3702
  }), re];
3703
3703
  }
3704
- function cn(P) {
3705
- return Array.isArray(P) ? P.map((F) => $t(F, !0)) : $t(P);
3704
+ function cn(F) {
3705
+ return Array.isArray(F) ? F.map((A) => $t(A, !0)) : $t(F);
3706
3706
  }
3707
- function he(P, F) {
3708
- const [Y, se] = Jt(P, F);
3709
- function be() {
3707
+ function ge(F, A) {
3708
+ const [Q, se] = Jt(F, A);
3709
+ function he() {
3710
3710
  se.value.onBlur();
3711
3711
  }
3712
3712
  function ke(G) {
3713
3713
  const re = Ja(G);
3714
- $e(Ie(P), re, !1), se.value.onInput();
3714
+ $e(Ie(F), re, !1), se.value.onInput();
3715
3715
  }
3716
- function me(G) {
3716
+ function pe(G) {
3717
3717
  const re = Ja(G);
3718
- $e(Ie(P), re, !1), se.value.onChange();
3718
+ $e(Ie(F), re, !1), se.value.onChange();
3719
3719
  }
3720
3720
  return ne(() => Object.assign(Object.assign({}, se.value), {
3721
- onBlur: be,
3721
+ onBlur: he,
3722
3722
  onInput: ke,
3723
- onChange: me,
3724
- value: Y.value
3723
+ onChange: pe,
3724
+ value: Q.value
3725
3725
  }));
3726
3726
  }
3727
- function Ot(P, F) {
3728
- const [Y, se] = Jt(P, F), be = z(Ie(P));
3729
- function ke(me) {
3730
- Y.value = me;
3727
+ function Ot(F, A) {
3728
+ const [Q, se] = Jt(F, A), he = z(Ie(F));
3729
+ function ke(pe) {
3730
+ Q.value = pe;
3731
3731
  }
3732
3732
  return ne(() => {
3733
- const me = Bt(F) ? F(So(be, Co)) : F || {};
3734
- return Object.assign({ [me.model || "modelValue"]: Y.value, [`onUpdate:${me.model || "modelValue"}`]: ke }, se.value);
3733
+ const pe = Bt(A) ? A(So(he, Co)) : A || {};
3734
+ return Object.assign({ [pe.model || "modelValue"]: Q.value, [`onUpdate:${pe.model || "modelValue"}`]: ke }, se.value);
3735
3735
  });
3736
3736
  }
3737
3737
  const Ge = Object.assign(Object.assign({}, we), { values: Is(l), handleReset: () => Pe(), submitForm: Xt });
@@ -3803,20 +3803,20 @@ function uf() {
3803
3803
  setter: function(y) {
3804
3804
  var k = u(y);
3805
3805
  return c.get(y) || c.set(y, function(x, $) {
3806
- for (var N = 0, I = k.length, O = x; N < I - 1; ) {
3807
- var j = k[N];
3806
+ for (var D = 0, I = k.length, O = x; D < I - 1; ) {
3807
+ var j = k[D];
3808
3808
  if (j === "__proto__" || j === "constructor" || j === "prototype")
3809
3809
  return x;
3810
- O = O[k[N++]];
3810
+ O = O[k[D++]];
3811
3811
  }
3812
- O[k[N]] = $;
3812
+ O[k[D]] = $;
3813
3813
  });
3814
3814
  },
3815
3815
  getter: function(y, k) {
3816
3816
  var v = u(y);
3817
3817
  return l.get(y) || l.set(y, function($) {
3818
- for (var N = 0, I = v.length; N < I; )
3819
- if ($ != null || !k) $ = $[v[N++]];
3818
+ for (var D = 0, I = v.length; D < I; )
3819
+ if ($ != null || !k) $ = $[v[D++]];
3820
3820
  else return;
3821
3821
  return $;
3822
3822
  });
@@ -3842,9 +3842,9 @@ function uf() {
3842
3842
  return y.match(t) || [""];
3843
3843
  }
3844
3844
  function d(y, k, v) {
3845
- var x = y.length, $, N, I, O;
3846
- for (N = 0; N < x; N++)
3847
- $ = y[N], $ && (g($) && ($ = '"' + $ + '"'), O = p($), I = !O && /^\d+$/.test($), k.call(v, $, O, I, N, y));
3845
+ var x = y.length, $, D, I, O;
3846
+ for (D = 0; D < x; D++)
3847
+ $ = y[D], $ && (g($) && ($ = '"' + $ + '"'), O = p($), I = !O && /^\d+$/.test($), k.call(v, $, O, I, D, y));
3848
3848
  }
3849
3849
  function p(y) {
3850
3850
  return typeof y == "string" && y && ["'", '"'].indexOf(y.charAt(0)) !== -1;
@@ -4200,26 +4200,26 @@ function $n(e) {
4200
4200
  originalValue: a,
4201
4201
  schema: i
4202
4202
  };
4203
- const N = (T) => {
4203
+ const D = (T) => {
4204
4204
  ft.isError(T) ? x(T) : T ? c(null) : x(v());
4205
4205
  }, I = (T) => {
4206
4206
  ft.isError(T) ? x(T) : s(T);
4207
4207
  };
4208
4208
  if (p && hn(n))
4209
- return N(!0);
4209
+ return D(!0);
4210
4210
  let j;
4211
4211
  try {
4212
4212
  var W;
4213
4213
  if (j = u.call($, n, $), typeof ((W = j) == null ? void 0 : W.then) == "function") {
4214
4214
  if (r.sync)
4215
4215
  throw new Error(`Validation test of type: "${$.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);
4216
- return Promise.resolve(j).then(N, I);
4216
+ return Promise.resolve(j).then(D, I);
4217
4217
  }
4218
4218
  } catch (T) {
4219
4219
  I(T);
4220
4220
  return;
4221
4221
  }
4222
- N(j);
4222
+ D(j);
4223
4223
  }
4224
4224
  return t.OPTIONS = e, t;
4225
4225
  }
@@ -5297,172 +5297,172 @@ function aa(e, t, n, o) {
5297
5297
  const m = E({});
5298
5298
  let { handleSubmit: h, errors: g, setErrors: y } = gl();
5299
5299
  const k = async () => {
5300
- var L, D;
5300
+ var L, N;
5301
5301
  try {
5302
- const A = await r.getEntityRecords(e);
5303
- A && A.response && (i.value = A.response, l.value = (L = A.response.entity.entityDefinition) == null ? void 0 : L.columns, Q(), j(), C());
5304
- } catch (A) {
5305
- (D = A == null ? void 0 : A.data) != null && D.errorMessage ? a.add({ severity: "error", summary: "Error", detail: A.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while fetching records", life: 3e3 });
5302
+ const R = await r.getEntityRecords(e);
5303
+ R && R.response && (i.value = R.response, l.value = (L = R.response.entity.entityDefinition) == null ? void 0 : L.columns, ye(), j(), C());
5304
+ } catch (R) {
5305
+ (N = R == null ? void 0 : R.data) != null && N.errorMessage ? a.add({ severity: "error", summary: "Error", detail: R.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while fetching records", life: 3e3 });
5306
5306
  } finally {
5307
5307
  }
5308
5308
  }, v = async () => {
5309
- var L, D;
5309
+ var L, N;
5310
5310
  try {
5311
- const A = await r.getRecord(e, t);
5312
- if (A && A.response) {
5313
- if (i.value = A.response, l.value = (L = A.response.entity.entityDefinition) == null ? void 0 : L.columns, Q(), A.response.result && A.response.result.length > 0)
5311
+ const R = await r.getRecord(e, t);
5312
+ if (R && R.response) {
5313
+ if (i.value = R.response, l.value = (L = R.response.entity.entityDefinition) == null ? void 0 : L.columns, ye(), R.response.result && R.response.result.length > 0)
5314
5314
  try {
5315
- s.value = JSON.parse(JSON.stringify(A.response.result[0]));
5316
- } catch (le) {
5317
- console.error("JSON Parse Error in fetchRecord", le), s.value = { ...A.response.result[0] };
5315
+ s.value = JSON.parse(JSON.stringify(R.response.result[0]));
5316
+ } catch (Y) {
5317
+ console.error("JSON Parse Error in fetchRecord", Y), s.value = { ...R.response.result[0] };
5318
5318
  }
5319
5319
  C();
5320
5320
  }
5321
- } catch (A) {
5322
- (D = A == null ? void 0 : A.data) != null && D.errorMessage ? a.add({ severity: "error", summary: "Error", detail: A.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while fetching record", life: 3e3 });
5321
+ } catch (R) {
5322
+ (N = R == null ? void 0 : R.data) != null && N.errorMessage ? a.add({ severity: "error", summary: "Error", detail: R.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while fetching record", life: 3e3 });
5323
5323
  } finally {
5324
5324
  }
5325
5325
  }, x = async () => {
5326
- var L, D, A;
5326
+ var L, N, R;
5327
5327
  try {
5328
- const le = await r.getRelatedEntityRecord(e, t);
5329
- if (le && le.response) {
5330
- if (i.value = le.response, l.value = (D = (L = le.response.entity) == null ? void 0 : L.entityDefinition) == null ? void 0 : D.columns, Q(), le.response.result && le.response.result.length > 0)
5328
+ const Y = await r.getRelatedEntityRecord(e, t);
5329
+ if (Y && Y.response) {
5330
+ if (i.value = Y.response, l.value = (N = (L = Y.response.entity) == null ? void 0 : L.entityDefinition) == null ? void 0 : N.columns, ye(), Y.response.result && Y.response.result.length > 0)
5331
5331
  try {
5332
- s.value = JSON.parse(JSON.stringify(le.response.result[0]));
5333
- } catch (pe) {
5334
- console.error("JSON Parse Error in getRelatedEntityRecordById", pe), console.log("Failed to parse object:", le.response.result[0]), s.value = { ...le.response.result[0] };
5332
+ s.value = JSON.parse(JSON.stringify(Y.response.result[0]));
5333
+ } catch (de) {
5334
+ console.error("JSON Parse Error in getRelatedEntityRecordById", de), console.log("Failed to parse object:", Y.response.result[0]), s.value = { ...Y.response.result[0] };
5335
5335
  }
5336
5336
  else
5337
5337
  s.value = {};
5338
- s.value.entityName && delete s.value.entityName, s.value.linkedEntities && delete s.value.linkedEntities, le.response.result && le.response.result[0] && le.response.result[0].linkedEntities ? d.value = le.response.result[0].linkedEntities : l.value && (d.value = l.value.filter((pe) => pe.fieldType === "ENTITY").map((pe) => ({
5339
- entityName: pe.entityName,
5338
+ s.value.entityName && delete s.value.entityName, s.value.linkedEntities && delete s.value.linkedEntities, Y.response.result && Y.response.result[0] && Y.response.result[0].linkedEntities ? d.value = Y.response.result[0].linkedEntities : l.value && (d.value = l.value.filter((de) => de.fieldType === "ENTITY").map((de) => ({
5339
+ entityName: de.entityName,
5340
5340
  list: []
5341
5341
  // Initialize with empty list as API doesn't provide it
5342
5342
  }))), c.value = JSON.parse(JSON.stringify(s.value)), C();
5343
5343
  }
5344
- } catch (le) {
5345
- console.error("Error in getRelatedEntityRecordById", le), (A = le == null ? void 0 : le.data) != null && A.errorMessage ? a.add({ severity: "error", summary: "Error", detail: le.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while fetching record", life: 3e3 });
5344
+ } catch (Y) {
5345
+ console.error("Error in getRelatedEntityRecordById", Y), (R = Y == null ? void 0 : Y.data) != null && R.errorMessage ? a.add({ severity: "error", summary: "Error", detail: Y.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while fetching record", life: 3e3 });
5346
5346
  } finally {
5347
5347
  }
5348
5348
  }, $ = async (L) => {
5349
- var D;
5349
+ var N;
5350
5350
  try {
5351
- let A = await r.addRecord(e, L);
5352
- A && A.response ? (a.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, recordId: t })) : (D = A == null ? void 0 : A.data) != null && D.errorMessage ? a.add({ severity: "error", summary: "Error", detail: A.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while saving record", life: 3e3 });
5353
- } catch (A) {
5354
- A.validationErrors && (f.value = JSON.parse(JSON.stringify(A.validationErrors))), console.error("Error fetching entity:", A.errorMessage);
5351
+ let R = await r.addRecord(e, L);
5352
+ R && R.response ? (a.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, recordId: t })) : (N = R == null ? void 0 : R.data) != null && N.errorMessage ? a.add({ severity: "error", summary: "Error", detail: R.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while saving record", life: 3e3 });
5353
+ } catch (R) {
5354
+ R.validationErrors && (f.value = JSON.parse(JSON.stringify(R.validationErrors))), console.error("Error fetching entity:", R.errorMessage);
5355
5355
  } finally {
5356
5356
  }
5357
- }, N = async (L, D) => {
5357
+ }, D = async (L, N) => {
5358
5358
  try {
5359
- let A = await r.addRecord(e, D);
5360
- if (A && A.response) {
5361
- let le = await r.saveRelatedEntityRecord(e, A.response.recordId, L.linkedEntities);
5362
- le && le.response && n("onSaveDialog", { entityName: e, recordId: t }), a.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 });
5359
+ let R = await r.addRecord(e, N);
5360
+ if (R && R.response) {
5361
+ let Y = await r.saveRelatedEntityRecord(e, R.response.recordId, L.linkedEntities);
5362
+ Y && Y.response && n("onSaveDialog", { entityName: e, recordId: t }), a.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 });
5363
5363
  }
5364
- } catch (A) {
5365
- A.validationErrors && (f.value = JSON.parse(JSON.stringify(A.validationErrors))), console.error("Error fetching entity:", A.errorMessage);
5364
+ } catch (R) {
5365
+ R.validationErrors && (f.value = JSON.parse(JSON.stringify(R.validationErrors))), console.error("Error fetching entity:", R.errorMessage);
5366
5366
  } finally {
5367
5367
  }
5368
5368
  }, I = async (L) => {
5369
- var D;
5369
+ var N;
5370
5370
  try {
5371
- const A = await r.updateRecord(e, t, L);
5372
- A && A.response ? (a.add({ severity: "success", summary: "Success", detail: "Record update successfuly", life: 3e3 }), p.value = !1, c.value = JSON.parse(JSON.stringify(s.value)), n("onSaveDialog", { entityName: e, recordId: t })) : (D = A == null ? void 0 : A.data) != null && D.errorMessage ? a.add({ severity: "error", summary: "Error", detail: A.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while updating record", life: 3e3 });
5373
- } catch (A) {
5374
- A.validationErrors && (f.value = JSON.parse(JSON.stringify(A.errvalidationErrorsors))), console.error("Error fetching entity:", A.errorMessage);
5371
+ const R = await r.updateRecord(e, t, L);
5372
+ R && R.response ? (a.add({ severity: "success", summary: "Success", detail: "Record update successfuly", life: 3e3 }), p.value = !1, c.value = JSON.parse(JSON.stringify(s.value)), n("onSaveDialog", { entityName: e, recordId: t })) : (N = R == null ? void 0 : R.data) != null && N.errorMessage ? a.add({ severity: "error", summary: "Error", detail: R.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while updating record", life: 3e3 });
5373
+ } catch (R) {
5374
+ R.validationErrors && (f.value = JSON.parse(JSON.stringify(R.errvalidationErrorsors))), console.error("Error fetching entity:", R.errorMessage);
5375
5375
  } finally {
5376
5376
  }
5377
- }, O = async (L, D, A) => {
5377
+ }, O = async (L, N, R) => {
5378
5378
  try {
5379
- let le = await r.saveRelatedEntityRecord(L, D, A);
5380
- le && le.response && (a.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, enityRecordId: D }));
5381
- } catch (le) {
5382
- le.validationErrors && (f.value = JSON.parse(JSON.stringify(le.validationErrors))), console.error("Error fetching entity:", le.errorMessage);
5379
+ let Y = await r.saveRelatedEntityRecord(L, N, R);
5380
+ Y && Y.response && (a.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, enityRecordId: N }));
5381
+ } catch (Y) {
5382
+ Y.validationErrors && (f.value = JSON.parse(JSON.stringify(Y.validationErrors))), console.error("Error fetching entity:", Y.errorMessage);
5383
5383
  } finally {
5384
5384
  }
5385
5385
  }, j = () => {
5386
5386
  for (let L = 0; L < l.value.length; L++) {
5387
- let D = l.value[L];
5388
- !D.autoGenerated && !D.fieldType && (D.type == "BOOLEAN" ? D.defaultValue ? s.value[D.name] = D.defaultValue : s.value[D.name] = !1 : s.value[D.name] = "");
5387
+ let N = l.value[L];
5388
+ !N.autoGenerated && !N.fieldType && (N.type == "BOOLEAN" ? N.defaultValue ? s.value[N.name] = N.defaultValue : s.value[N.name] = !1 : s.value[N.name] = "");
5389
5389
  }
5390
5390
  }, W = (L) => {
5391
- let D = "";
5392
- for (let A = 0; A < l.value.length; A++) {
5393
- let le = l.value[A];
5394
- if (L == le.name) {
5395
- D = le.type;
5391
+ let N = "";
5392
+ for (let R = 0; R < l.value.length; R++) {
5393
+ let Y = l.value[R];
5394
+ if (L == Y.name) {
5395
+ N = Y.type;
5396
5396
  break;
5397
5397
  }
5398
5398
  }
5399
- return D;
5399
+ return N;
5400
5400
  }, T = () => {
5401
- const L = l.value.filter((A) => A.autoGenerated || A.fieldType).map((A) => A.name);
5402
- return Object.entries(s.value).filter(([A]) => !L.includes(A)).map(([A, le]) => ({
5403
- recordColumnName: A,
5404
- recordColumnValue: le,
5405
- columnType: W(A)
5401
+ const L = l.value.filter((R) => R.autoGenerated || R.fieldType).map((R) => R.name);
5402
+ return Object.entries(s.value).filter(([R]) => !L.includes(R)).map(([R, Y]) => ({
5403
+ recordColumnName: R,
5404
+ recordColumnValue: Y,
5405
+ columnType: W(R)
5406
5406
  }));
5407
5407
  }, V = async (L = {}) => {
5408
5408
  try {
5409
5409
  await u.value.validate(s.value, { abortEarly: !1 }), y({});
5410
- } catch (A) {
5411
- const le = A.inner.reduce((ce, fe) => (ce[fe.path] || (ce[fe.path] = { messages: [] }), ce[fe.path].messages.push(...fe.errors), ce), {}), pe = Object.entries(le).reduce((ce, [fe, we]) => (ce[fe] = { messages: we.messages }, ce), {});
5412
- y(pe), a.add({ severity: "error", summary: "Error", detail: "Validation failed, see the errors", life: 3e3 });
5410
+ } catch (R) {
5411
+ const Y = R.inner.reduce((ue, fe) => (ue[fe.path] || (ue[fe.path] = { messages: [] }), ue[fe.path].messages.push(...fe.errors), ue), {}), de = Object.entries(Y).reduce((ue, [fe, we]) => (ue[fe] = { messages: we.messages }, ue), {});
5412
+ y(de), a.add({ severity: "error", summary: "Error", detail: "Validation failed, see the errors", life: 3e3 });
5413
5413
  return;
5414
5414
  }
5415
- const D = { dataDefinitions: T() };
5416
- t ? await I(D) : L.relationType == "MANY_TO_ONE" ? await N(L, D) : await $(D);
5415
+ const N = { dataDefinitions: T() };
5416
+ t ? await I(N) : L.relationType == "MANY_TO_ONE" ? await D(L, N) : await $(N);
5417
5417
  }, C = () => {
5418
5418
  u.value = ra().shape(
5419
- l.value.reduce((L, D) => (D.autoGenerated || D.fieldType || (L[D.name] = oa().nullable(!1).test({
5419
+ l.value.reduce((L, N) => (N.autoGenerated || N.fieldType || (L[N.name] = oa().nullable(!1).test({
5420
5420
  name: "custom-validation",
5421
- test: function(A) {
5422
- const le = [];
5423
- let pe = "";
5424
- if (D.required && (!A || A.trim() === ""))
5425
- if (D.validations) {
5426
- pe = B(D.validations, "VALIDATE_REQUIRED"), le.push(pe);
5427
- let ce = R(D.validations, "VALIDATE_REQUIRED");
5428
- ce && (ce = "hint:" + ce, le.push(ce));
5421
+ test: function(R) {
5422
+ const Y = [];
5423
+ let de = "";
5424
+ if (N.required && (!R || R.trim() === ""))
5425
+ if (N.validations) {
5426
+ de = B(N.validations, "VALIDATE_REQUIRED"), Y.push(de);
5427
+ let ue = P(N.validations, "VALIDATE_REQUIRED");
5428
+ ue && (ue = "hint:" + ue, Y.push(ue));
5429
5429
  } else
5430
- pe = D.displayName + " is required.", le.push(pe);
5430
+ de = N.displayName + " is required.", Y.push(de);
5431
5431
  else {
5432
- if (D.maxLength && A.length > D.maxLength)
5433
- if (D.validations) {
5434
- pe = B(D.validations, "VALIDATE_MAXLENGTH"), le.push(pe);
5435
- let ce = R(D.validations, "VALIDATE_MAXLENGTH");
5436
- ce && (ce = "hint:" + ce, le.push(ce));
5432
+ if (N.maxLength && R.length > N.maxLength)
5433
+ if (N.validations) {
5434
+ de = B(N.validations, "VALIDATE_MAXLENGTH"), Y.push(de);
5435
+ let ue = P(N.validations, "VALIDATE_MAXLENGTH");
5436
+ ue && (ue = "hint:" + ue, Y.push(ue));
5437
5437
  } else
5438
- pe = D.displayName + " cannot exceed from " + D.maxLength + " characters", le.push(pe);
5439
- if (D.regxId && !new RegExp(_(D.validations, "VALIDATE_REGX")).test(A))
5440
- if (D.validations) {
5441
- pe = B(D.validations, "VALIDATE_REGX"), le.push(pe);
5442
- let ce = R(D.validations, "VALIDATE_REGX");
5443
- ce && (ce = "hint:" + ce, le.push(ce));
5438
+ de = N.displayName + " cannot exceed from " + N.maxLength + " characters", Y.push(de);
5439
+ if (N.regxId && !new RegExp(_(N.validations, "VALIDATE_REGX")).test(R))
5440
+ if (N.validations) {
5441
+ de = B(N.validations, "VALIDATE_REGX"), Y.push(de);
5442
+ let ue = P(N.validations, "VALIDATE_REGX");
5443
+ ue && (ue = "hint:" + ue, Y.push(ue));
5444
5444
  } else
5445
- pe = D.displayName + " invalid format.", le.push(pe);
5445
+ de = N.displayName + " invalid format.", Y.push(de);
5446
5446
  }
5447
- return le.length > 0 ? this.createError({
5448
- message: le
5447
+ return Y.length > 0 ? this.createError({
5448
+ message: Y
5449
5449
  // This will return the array of errors
5450
5450
  }) : !0;
5451
5451
  }
5452
5452
  })), L), {})
5453
5453
  );
5454
- }, B = (L, D) => {
5455
- for (let A = 0; A < L.length; A++)
5456
- if (D == L[A].type)
5457
- return L[A].message;
5458
- }, _ = (L, D) => {
5459
- for (let A = 0; A < L.length; A++)
5460
- if (D == L[A].type)
5461
- return L[A].regx;
5462
- }, R = (L, D) => {
5463
- for (let A = 0; A < L.length; A++)
5464
- if (D == L[A].type)
5465
- return L[A].hint;
5454
+ }, B = (L, N) => {
5455
+ for (let R = 0; R < L.length; R++)
5456
+ if (N == L[R].type)
5457
+ return L[R].message;
5458
+ }, _ = (L, N) => {
5459
+ for (let R = 0; R < L.length; R++)
5460
+ if (N == L[R].type)
5461
+ return L[R].regx;
5462
+ }, P = (L, N) => {
5463
+ for (let R = 0; R < L.length; R++)
5464
+ if (N == L[R].type)
5465
+ return L[R].hint;
5466
5466
  }, z = (L) => {
5467
5467
  y({ ...g.value, [L]: null }), p.value = !0;
5468
5468
  }, J = () => {
@@ -5470,11 +5470,11 @@ function aa(e, t, n, o) {
5470
5470
  for (let L in s.value)
5471
5471
  s.value.hasOwnProperty(L) && y({ ...g.value, [L]: null });
5472
5472
  s.value = JSON.parse(JSON.stringify(c.value));
5473
- }, Q = () => {
5473
+ }, ye = () => {
5474
5474
  for (let L = 0; L < l.value.length; L++) {
5475
- const D = l.value[L];
5476
- if (D.primaryKey && D.primaryKey == !0) {
5477
- m.value = D;
5475
+ const N = l.value[L];
5476
+ if (N.primaryKey && N.primaryKey == !0) {
5477
+ m.value = N;
5478
5478
  break;
5479
5479
  }
5480
5480
  }
@@ -6205,10 +6205,10 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6205
6205
  setup(e) {
6206
6206
  const t = Ue(), n = e;
6207
6207
  console.log("columnsToShow", n.columnsToShow);
6208
- const o = un(), r = E(n.entityName || o.params.entityName), a = E({}), i = E(""), s = E(!1), c = E(!1), { items: l, headers: u, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: h, sortDirection: g, operatorMap: y, filterToSend: k, primarayKeyColumn: v, fullTextSearch: x, listingResponse: $, onFullTextSearch: N, getDatatypeByField: I, getColumnDatatype: O, onSort: j, onPage: W, onFilter: T, fetchEntityFilterData: V, fetchEntityByName: C, showEntityData: B } = hd(r.value), _ = E();
6209
- let R = E(!1);
6210
- const z = (ce) => {
6211
- a.value = ce.reduce((fe, we) => {
6208
+ const o = un(), r = E(n.entityName || o.params.entityName), a = E({}), i = E(""), s = E(!1), c = E(!1), { items: l, headers: u, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: h, sortDirection: g, operatorMap: y, filterToSend: k, primarayKeyColumn: v, fullTextSearch: x, listingResponse: $, onFullTextSearch: D, getDatatypeByField: I, getColumnDatatype: O, onSort: j, onPage: W, onFilter: T, fetchEntityFilterData: V, fetchEntityByName: C, showEntityData: B } = hd(r.value), _ = E();
6209
+ let P = E(!1);
6210
+ const z = (ue) => {
6211
+ a.value = ue.reduce((fe, we) => {
6212
6212
  if (!we.filterable)
6213
6213
  return fe;
6214
6214
  let $e = On.CONTAINS;
@@ -6233,19 +6233,19 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6233
6233
  return we.datatype == "bool" || we.datatype == "boolean" ? fe[we.field] = { value: null, matchMode: On.EQUALS } : fe[we.field] = { operator: up.AND, constraints: [{ value: null, matchMode: $e }] }, fe;
6234
6234
  }, {});
6235
6235
  }, J = () => {
6236
- z(u.value), k.value = pe(a.value), T();
6237
- }, Q = (ce) => {
6238
- k.value = pe(a.value), T();
6239
- }, L = (ce) => {
6240
- ce ? i.value = ce[v.value.name] : i.value = "", s.value = !s.value;
6241
- }, D = () => {
6236
+ z(u.value), k.value = de(a.value), T();
6237
+ }, ye = (ue) => {
6238
+ k.value = de(a.value), T();
6239
+ }, L = (ue) => {
6240
+ ue ? i.value = ue[v.value.name] : i.value = "", s.value = !s.value;
6241
+ }, N = () => {
6242
6242
  s.value = !1, V(!1);
6243
- }, A = (ce) => {
6244
- i.value = ce[v.value.name], c.value = !0;
6245
- }, le = () => {
6243
+ }, R = (ue) => {
6244
+ i.value = ue[v.value.name], c.value = !0;
6245
+ }, Y = () => {
6246
6246
  c.value = !1, V(!1);
6247
- }, pe = (ce) => Object.keys(ce).map((fe) => {
6248
- const we = ce[fe];
6247
+ }, de = (ue) => Object.keys(ue).map((fe) => {
6248
+ const we = ue[fe];
6249
6249
  return we.constraints ? we.constraints.filter(($e) => $e.value !== null && $e.value !== "").map(($e) => ({
6250
6250
  columnName: fe,
6251
6251
  operator: y[$e.matchMode] ?? $e.matchMode,
@@ -6263,17 +6263,17 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6263
6263
  }), Oe(
6264
6264
  () => t.globalConfigs.appId,
6265
6265
  // The source to watch
6266
- async (ce) => {
6267
- ce && (n.entityData ? B(n.entityData) : C(r.value));
6266
+ async (ue) => {
6267
+ ue && (n.entityData ? B(n.entityData) : C(r.value));
6268
6268
  },
6269
6269
  { immediate: !0 }
6270
- ), Oe(() => u.value, (ce) => {
6271
- !R.value && ce && ce.length && (z(ce), R.value = !0);
6272
- }, { immediate: !0 }), (ce, fe) => {
6270
+ ), Oe(() => u.value, (ue) => {
6271
+ !P.value && ue && ue.length && (z(ue), P.value = !0);
6272
+ }, { immediate: !0 }), (ue, fe) => {
6273
6273
  const we = q("Button"), $e = q("Toolbar"), gt = q("ProgressSpinner"), rt = q("InputIcon"), $t = q("IconField"), yt = q("DatePicker"), ae = q("InputNumber"), X = q("Checkbox"), Re = q("Column"), at = q("DataTable");
6274
6274
  return b(), S(ie, null, [
6275
- w("div", Qt(bo(ce.$attrs)), [
6276
- ge(ce.$slots, "header"),
6275
+ w("div", Qt(bo(ue.$attrs)), [
6276
+ me(ue.$slots, "header"),
6277
6277
  e.showClearFilters || e.showAddButton ? (b(), M($e, {
6278
6278
  key: 0,
6279
6279
  class: "mt-4",
@@ -6330,7 +6330,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6330
6330
  scrollable: "",
6331
6331
  onSort: ee(j),
6332
6332
  onPage: ee(W),
6333
- onFilter: fe[6] || (fe[6] = (Me) => Q()),
6333
+ onFilter: fe[6] || (fe[6] = (Me) => ye()),
6334
6334
  size: "small",
6335
6335
  paginatorTemplate: "FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",
6336
6336
  currentPageReportTemplate: "Showing {first} to {last} of {totalRecords} items"
@@ -6427,7 +6427,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6427
6427
  }, null, 8, ["onClick"])) : U("", !0),
6428
6428
  e.deleteable ? (b(), M(we, {
6429
6429
  key: 1,
6430
- onClick: (_e) => A(Pe),
6430
+ onClick: (_e) => R(Pe),
6431
6431
  icon: "pi pi-trash",
6432
6432
  severity: "danger",
6433
6433
  variant: "text",
@@ -6454,11 +6454,11 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6454
6454
  default: oe(() => [
6455
6455
  K(rt, {
6456
6456
  class: "pi pi-search",
6457
- onClick: fe[2] || (fe[2] = (Me) => ee(N)())
6457
+ onClick: fe[2] || (fe[2] = (Me) => ee(D)())
6458
6458
  }),
6459
6459
  K(ee(pa), {
6460
6460
  class: "w-full sm:w-auto",
6461
- onKeyup: fe[3] || (fe[3] = Wo((Me) => ee(N)(), ["enter"])),
6461
+ onKeyup: fe[3] || (fe[3] = Wo((Me) => ee(D)(), ["enter"])),
6462
6462
  modelValue: ee(x),
6463
6463
  "onUpdate:modelValue": fe[4] || (fe[4] = (Me) => Vt(x) ? x.value = Me : null),
6464
6464
  placeholder: "Search..."
@@ -6471,7 +6471,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6471
6471
  key: "0"
6472
6472
  }
6473
6473
  ]), 1032, ["value", "loading", "paginator", "rows", "totalRecords", "first", "sortField", "sortOrder", "filters", "onSort", "onPage"]),
6474
- ge(ce.$slots, "footer")
6474
+ me(ue.$slots, "footer")
6475
6475
  ], 16),
6476
6476
  s.value ? (b(), M(Zf, {
6477
6477
  key: 0,
@@ -6479,7 +6479,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6479
6479
  "onUpdate:showForm": fe[7] || (fe[7] = (Me) => s.value = Me),
6480
6480
  entityName: ee($).entityName,
6481
6481
  recordId: i.value,
6482
- onOnSaveDialog: D
6482
+ onOnSaveDialog: N
6483
6483
  }, null, 8, ["showForm", "entityName", "recordId"])) : U("", !0),
6484
6484
  c.value ? (b(), M(ep, {
6485
6485
  key: 1,
@@ -6487,7 +6487,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6487
6487
  "onUpdate:showDeleteDialog": fe[8] || (fe[8] = (Me) => c.value = Me),
6488
6488
  entityName: ee($).entityName,
6489
6489
  recordId: i.value,
6490
- onOnDeleteItem: le
6490
+ onOnDeleteItem: Y
6491
6491
  }, null, 8, ["showDeleteDialog", "entityName", "recordId"])) : U("", !0)
6492
6492
  ], 64);
6493
6493
  };
@@ -6642,9 +6642,9 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6642
6642
  endsWith: "ends with"
6643
6643
  };
6644
6644
  Le(() => {
6645
- N();
6645
+ D();
6646
6646
  });
6647
- const $ = (ae) => t.linkedEntity.list.some((X) => X[l.value.name] === ae), N = async () => {
6647
+ const $ = (ae) => t.linkedEntity.list.some((X) => X[l.value.name] === ae), D = async () => {
6648
6648
  try {
6649
6649
  const ae = {
6650
6650
  sortBy: [u.value],
@@ -6715,18 +6715,18 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6715
6715
  { label: "Date is not", value: "dateIsNot" },
6716
6716
  { label: "Date is before", value: "dateBefore" },
6717
6717
  { label: "Date is after", value: "dateAfter" }
6718
- ], R = [
6718
+ ], P = [
6719
6719
  { label: "ASC", value: 1 },
6720
6720
  { label: "DESC", value: -1 }
6721
6721
  ];
6722
6722
  let z = [];
6723
- const J = ne(() => c.value.filter((ae) => ae.sortable)), Q = ne(() => c.value.filter((ae) => ae.filterable)), L = (ae) => c.value.filter((X) => {
6723
+ const J = ne(() => c.value.filter((ae) => ae.sortable)), ye = ne(() => c.value.filter((ae) => ae.filterable)), L = (ae) => c.value.filter((X) => {
6724
6724
  var Re;
6725
6725
  return X.filterable ? ((Re = d.value[ae]) == null ? void 0 : Re.columnName) === X.name ? !0 : !d.value.some((at, Me) => Me !== ae && at.columnName === X.name) : !1;
6726
6726
  }).map((X) => ({
6727
6727
  label: X.name,
6728
6728
  value: X.field
6729
- })), D = (ae) => {
6729
+ })), N = (ae) => {
6730
6730
  let X = "";
6731
6731
  switch (rt(ae.columnName).toLowerCase()) {
6732
6732
  case "string":
@@ -6747,7 +6747,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6747
6747
  break;
6748
6748
  }
6749
6749
  ae.operator = X, ae.value = "";
6750
- }, A = (ae) => {
6750
+ }, R = (ae) => {
6751
6751
  const X = rt(ae.columnName);
6752
6752
  switch (X && X.toLowerCase()) {
6753
6753
  case "integer":
@@ -6766,12 +6766,12 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6766
6766
  z = V;
6767
6767
  }
6768
6768
  return z;
6769
- }, le = (ae) => {
6769
+ }, Y = (ae) => {
6770
6770
  if (ae && ae.columnName) {
6771
6771
  const X = rt(ae.columnName);
6772
6772
  return $t(X);
6773
6773
  } else return "";
6774
- }, pe = () => {
6774
+ }, de = () => {
6775
6775
  for (let ae = 0; ae < d.value.length; ae++) {
6776
6776
  const X = d.value[ae];
6777
6777
  X.editing = !1;
@@ -6779,7 +6779,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6779
6779
  d.value.push(
6780
6780
  { columnName: "", value: "", operator: "", editing: !0 }
6781
6781
  );
6782
- }, ce = (ae) => {
6782
+ }, ue = (ae) => {
6783
6783
  d.value.splice(ae, 1);
6784
6784
  }, fe = (ae) => {
6785
6785
  ae.editing = !ae.editing;
@@ -6790,7 +6790,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6790
6790
  const Re = ae[X];
6791
6791
  delete Re.editing, Re.columnName && Re.operator && Re.value && (Re.columnType = rt(Re.columnName), Re.operator = v[Re.operator], y.value.push(Re));
6792
6792
  }
6793
- N();
6793
+ D();
6794
6794
  }, $e = (ae) => ae.map((X) => ({
6795
6795
  field: X.name,
6796
6796
  name: X.displayName ? X.displayName : X.name,
@@ -6800,7 +6800,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6800
6800
  displayFormatKey: X.displayFormatKey,
6801
6801
  displayFormat: X.displayFormat
6802
6802
  })), gt = () => {
6803
- N();
6803
+ D();
6804
6804
  }, rt = (ae) => {
6805
6805
  const X = c.value.find((Re) => Re.field === ae);
6806
6806
  return X ? X.datatype : null;
@@ -6819,7 +6819,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6819
6819
  return "text";
6820
6820
  }
6821
6821
  }, yt = (ae) => {
6822
- p.value = ae.rows, m.value = ae.page, g.value = ae.first, N();
6822
+ p.value = ae.rows, m.value = ae.page, g.value = ae.first, D();
6823
6823
  };
6824
6824
  return (ae, X) => {
6825
6825
  var Jt, cn;
@@ -6847,7 +6847,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6847
6847
  w("div", Sp, [
6848
6848
  w("div", {
6849
6849
  class: "flex items-center cursor-pointer sorting-filter-section flex-1 line-height-4",
6850
- onClick: X[2] || (X[2] = (he) => T())
6850
+ onClick: X[2] || (X[2] = (ge) => T())
6851
6851
  }, [
6852
6852
  k.value ? U("", !0) : (b(), S("div", Cp)),
6853
6853
  k.value ? (b(), S("div", Ep)) : U("", !0),
@@ -6860,13 +6860,13 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6860
6860
  w("div", Tp, [
6861
6861
  K(Pe, {
6862
6862
  modelValue: u.value,
6863
- "onUpdate:modelValue": X[3] || (X[3] = (he) => u.value = he),
6863
+ "onUpdate:modelValue": X[3] || (X[3] = (ge) => u.value = ge),
6864
6864
  options: J.value,
6865
6865
  optionLabel: "name",
6866
6866
  optionValue: "field",
6867
6867
  highlightOnSelect: !1,
6868
6868
  class: "w-full",
6869
- onChange: X[4] || (X[4] = (he) => gt(ae.event))
6869
+ onChange: X[4] || (X[4] = (ge) => gt(ae.event))
6870
6870
  }, null, 8, ["modelValue", "options"])
6871
6871
  ])
6872
6872
  ]),
@@ -6877,32 +6877,32 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6877
6877
  w("div", Bp, [
6878
6878
  K(Pe, {
6879
6879
  modelValue: f.value,
6880
- "onUpdate:modelValue": X[5] || (X[5] = (he) => f.value = he),
6881
- options: R,
6880
+ "onUpdate:modelValue": X[5] || (X[5] = (ge) => f.value = ge),
6881
+ options: P,
6882
6882
  optionLabel: "label",
6883
6883
  optionValue: "value",
6884
6884
  highlightOnSelect: !1,
6885
6885
  class: "w-full",
6886
- onChange: X[6] || (X[6] = (he) => gt(ae.event))
6886
+ onChange: X[6] || (X[6] = (ge) => gt(ae.event))
6887
6887
  }, null, 8, ["modelValue"])
6888
6888
  ])
6889
6889
  ]),
6890
- (b(!0), S(ie, null, Ee(d.value, (he, Ot) => (b(), S("div", { key: Ot }, [
6891
- he.editing ? (b(), S("div", Rp, [
6890
+ (b(!0), S(ie, null, Ee(d.value, (ge, Ot) => (b(), S("div", { key: Ot }, [
6891
+ ge.editing ? (b(), S("div", Rp, [
6892
6892
  K(_e, { class: "mt-5" }),
6893
6893
  w("div", Pp, [
6894
6894
  X[12] || (X[12] = w("div", { class: "col-12 font-bold" }, "Filter Column", -1)),
6895
6895
  w("div", Fp, [
6896
6896
  K(Pe, {
6897
- modelValue: he.columnName,
6898
- "onUpdate:modelValue": (Ge) => he.columnName = Ge,
6897
+ modelValue: ge.columnName,
6898
+ "onUpdate:modelValue": (Ge) => ge.columnName = Ge,
6899
6899
  options: L(Ot),
6900
6900
  optionLabel: "label",
6901
6901
  placeholder: "Select column",
6902
6902
  optionValue: "value",
6903
6903
  highlightOnSelect: !1,
6904
6904
  class: "w-full",
6905
- onChange: (Ge) => D(he)
6905
+ onChange: (Ge) => N(ge)
6906
6906
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange"])
6907
6907
  ])
6908
6908
  ]),
@@ -6910,9 +6910,9 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6910
6910
  X[13] || (X[13] = w("div", { class: "col-12 font-bold" }, "Filter Operator", -1)),
6911
6911
  w("div", _p, [
6912
6912
  K(Pe, {
6913
- modelValue: he.operator,
6914
- "onUpdate:modelValue": (Ge) => he.operator = Ge,
6915
- options: A(he),
6913
+ modelValue: ge.operator,
6914
+ "onUpdate:modelValue": (Ge) => ge.operator = Ge,
6915
+ options: R(ge),
6916
6916
  optionLabel: "label",
6917
6917
  placeholder: "Select operator",
6918
6918
  optionValue: "value",
@@ -6924,24 +6924,24 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6924
6924
  w("div", Np, [
6925
6925
  X[14] || (X[14] = w("div", { class: "col-12 font-bold" }, "Filter value", -1)),
6926
6926
  w("div", Dp, [
6927
- le(he) == "numeric" ? (b(), M(Ke, {
6927
+ Y(ge) == "numeric" ? (b(), M(Ke, {
6928
6928
  key: 0,
6929
6929
  format: !1,
6930
6930
  class: "w-full",
6931
- modelValue: he.value,
6932
- "onUpdate:modelValue": (Ge) => he.value = Ge,
6931
+ modelValue: ge.value,
6932
+ "onUpdate:modelValue": (Ge) => ge.value = Ge,
6933
6933
  placeholder: "Search value"
6934
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : le(he) == "date" ? (b(), M(Ft, {
6934
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : Y(ge) == "date" ? (b(), M(Ft, {
6935
6935
  key: 1,
6936
6936
  class: "w-full",
6937
- modelValue: he.value,
6938
- "onUpdate:modelValue": (Ge) => he.value = Ge,
6937
+ modelValue: ge.value,
6938
+ "onUpdate:modelValue": (Ge) => ge.value = Ge,
6939
6939
  dateFormat: "mm/dd/yy",
6940
6940
  placeholder: "mm/dd/yyyy"
6941
6941
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (b(), M(at, {
6942
6942
  key: 2,
6943
- modelValue: he.value,
6944
- "onUpdate:modelValue": (Ge) => he.value = Ge,
6943
+ modelValue: ge.value,
6944
+ "onUpdate:modelValue": (Ge) => ge.value = Ge,
6945
6945
  class: "w-full",
6946
6946
  placeholder: "Search value"
6947
6947
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
@@ -6953,31 +6953,31 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6953
6953
  label: "Hide",
6954
6954
  icon: "",
6955
6955
  severity: "warning",
6956
- onClick: (Ge) => fe(he)
6956
+ onClick: (Ge) => fe(ge)
6957
6957
  }, null, 8, ["onClick"]),
6958
6958
  K(Je, {
6959
6959
  style: { width: "100px" },
6960
6960
  label: "Delete",
6961
6961
  icon: "",
6962
6962
  severity: "danger",
6963
- onClick: (Ge) => ce(Ot)
6963
+ onClick: (Ge) => ue(Ot)
6964
6964
  }, null, 8, ["onClick"])
6965
6965
  ])
6966
6966
  ])) : U("", !0),
6967
- he.editing ? U("", !0) : (b(), S("div", Vp, [
6967
+ ge.editing ? U("", !0) : (b(), S("div", Vp, [
6968
6968
  K(_e),
6969
6969
  w("div", zp, [
6970
6970
  w("span", null, [
6971
- he.columnName || he.operator || he.value ? (b(), S(ie, { key: 0 }, [
6971
+ ge.columnName || ge.operator || ge.value ? (b(), S(ie, { key: 0 }, [
6972
6972
  w("span", {
6973
- class: ve({ "text-red-500": !he.columnName })
6974
- }, Z(he.columnName ? " " + he.columnName : " column"), 3),
6973
+ class: ve({ "text-red-500": !ge.columnName })
6974
+ }, Z(ge.columnName ? " " + ge.columnName : " column"), 3),
6975
6975
  w("span", {
6976
- class: ve({ "text-red-500": !x[he.operator] })
6977
- }, Z(he.operator ? " " + x[he.operator] : " operator"), 3),
6976
+ class: ve({ "text-red-500": !x[ge.operator] })
6977
+ }, Z(ge.operator ? " " + x[ge.operator] : " operator"), 3),
6978
6978
  w("span", {
6979
- class: ve({ "text-red-500": !he.value })
6980
- }, Z(he.value ? " " + he.value : " value"), 3)
6979
+ class: ve({ "text-red-500": !ge.value })
6980
+ }, Z(ge.value ? " " + ge.value : " value"), 3)
6981
6981
  ], 64)) : (b(), S("span", Mp, "Filter is empty"))
6982
6982
  ]),
6983
6983
  K(Je, {
@@ -6985,7 +6985,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6985
6985
  label: "Edit",
6986
6986
  icon: "",
6987
6987
  severity: "info",
6988
- onClick: (Ge) => fe(he)
6988
+ onClick: (Ge) => fe(ge)
6989
6989
  }, null, 8, ["onClick"])
6990
6990
  ])
6991
6991
  ]))
@@ -6996,10 +6996,10 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
6996
6996
  K(Je, {
6997
6997
  style: { width: "100px" },
6998
6998
  label: "Add",
6999
- disabled: Q.value.length === d.value.length,
6999
+ disabled: ye.value.length === d.value.length,
7000
7000
  icon: "",
7001
7001
  severity: "success",
7002
- onClick: pe
7002
+ onClick: de
7003
7003
  }, null, 8, ["disabled"]),
7004
7004
  K(Je, {
7005
7005
  style: { width: "100px" },
@@ -7014,19 +7014,19 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7014
7014
  w("div", Wp, Z((Jt = r.value) == null ? void 0 : Jt.totalRecords), 1),
7015
7015
  w("div", qp, Z((cn = r.value) == null ? void 0 : cn.entityName), 1)
7016
7016
  ]),
7017
- (b(!0), S(ie, null, Ee(r.value.result, (he, Ot) => (b(), S("div", { key: Ot }, [
7017
+ (b(!0), S(ie, null, Ee(r.value.result, (ge, Ot) => (b(), S("div", { key: Ot }, [
7018
7018
  w("div", Kp, [
7019
7019
  K(ut, {
7020
- disabled: $(he[l.value.name]),
7020
+ disabled: $(ge[l.value.name]),
7021
7021
  modelValue: a.value,
7022
7022
  "onUpdate:modelValue": X[7] || (X[7] = (Ge) => a.value = Ge),
7023
- value: he[l.value.name]
7023
+ value: ge[l.value.name]
7024
7024
  }, null, 8, ["disabled", "modelValue", "value"]),
7025
7025
  w("div", Gp, [
7026
7026
  et(Z(e.linkedEntity.entityName) + " ", 1),
7027
- w("span", null, Z(he[l.value.name]), 1)
7027
+ w("span", null, Z(ge[l.value.name]), 1)
7028
7028
  ]),
7029
- $(he[l.value.name]) ? xt((b(), S("div", Yp, null, 512)), [
7029
+ $(ge[l.value.name]) ? xt((b(), S("div", Yp, null, 512)), [
7030
7030
  [
7031
7031
  Xt,
7032
7032
  "This record is already associated.",
@@ -7053,7 +7053,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7053
7053
  label: "Cancel",
7054
7054
  icon: "",
7055
7055
  severity: "secondary",
7056
- onClick: X[8] || (X[8] = (he) => n.value = !1)
7056
+ onClick: X[8] || (X[8] = (ge) => n.value = !1)
7057
7057
  })
7058
7058
  ]),
7059
7059
  w("div", Zp, [
@@ -7126,16 +7126,16 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7126
7126
  } finally {
7127
7127
  }
7128
7128
  }, y = async ($) => {
7129
- for (let N = 0; N < $.length; N++) {
7130
- const I = $[N];
7129
+ for (let D = 0; D < $.length; D++) {
7130
+ const I = $[D];
7131
7131
  if (I.primaryKey && I.primaryKey == !0) {
7132
7132
  p.value = I;
7133
7133
  break;
7134
7134
  }
7135
7135
  }
7136
7136
  }, k = async ($) => {
7137
- for (let N = 0; N < $.length; N++) {
7138
- const I = $[N];
7137
+ for (let D = 0; D < $.length; D++) {
7138
+ const I = $[D];
7139
7139
  if (!I.autoGeneerated && I.foreignKey && I.foreignKey.referencedEntityName.toLowerCase() == c.linkedEntity.entityName.toLowerCase()) {
7140
7140
  m.value = I;
7141
7141
  break;
@@ -7143,9 +7143,9 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7143
7143
  }
7144
7144
  }, v = async () => {
7145
7145
  for (let $ = 0; $ < u.value.result.length; $++) {
7146
- const N = u.value.result[$];
7147
- if (N[p.value.name] == f.value.result[0][m.value.name]) {
7148
- d.value = N;
7146
+ const D = u.value.result[$];
7147
+ if (D[p.value.name] == f.value.result[0][m.value.name]) {
7148
+ d.value = D;
7149
7149
  break;
7150
7150
  }
7151
7151
  }
@@ -7157,12 +7157,12 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7157
7157
  };
7158
7158
  c.saveExistingEntityObject($);
7159
7159
  };
7160
- return ($, N) => {
7160
+ return ($, D) => {
7161
7161
  const I = q("Select"), O = q("Divider"), j = q("Button");
7162
7162
  return b(), S("div", nm, [
7163
7163
  K(I, {
7164
7164
  modelValue: ee(d),
7165
- "onUpdate:modelValue": N[0] || (N[0] = (W) => Vt(d) ? d.value = W : d = W),
7165
+ "onUpdate:modelValue": D[0] || (D[0] = (W) => Vt(d) ? d.value = W : d = W),
7166
7166
  "item-value": p.value.name,
7167
7167
  options: u.value.result,
7168
7168
  filter: "",
@@ -7190,7 +7190,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7190
7190
  label: "Cancel",
7191
7191
  icon: "",
7192
7192
  severity: "secondary",
7193
- onClick: N[1] || (N[1] = (W) => l.value = !1)
7193
+ onClick: D[1] || (D[1] = (W) => l.value = !1)
7194
7194
  })
7195
7195
  ]),
7196
7196
  w("div", um, [
@@ -7273,7 +7273,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7273
7273
  h(v.linkedEntityName, v.linkedEntityRecordId, x);
7274
7274
  };
7275
7275
  return (v, x) => {
7276
- const $ = q("Tab"), N = q("TabList"), I = q("Divider"), O = q("Button"), j = q("TabPanel"), W = q("TabPanels"), T = q("Tabs"), V = q("Drawer");
7276
+ const $ = q("Tab"), D = q("TabList"), I = q("Divider"), O = q("Button"), j = q("TabPanel"), W = q("TabPanels"), T = q("Tabs"), V = q("Drawer");
7277
7277
  return b(), M(V, {
7278
7278
  visible: n.value,
7279
7279
  "onUpdate:visible": x[3] || (x[3] = (C) => n.value = C),
@@ -7291,7 +7291,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7291
7291
  default: oe(() => [
7292
7292
  K(T, { value: "1" }, {
7293
7293
  default: oe(() => [
7294
- K(N, null, {
7294
+ K(D, null, {
7295
7295
  default: oe(() => [
7296
7296
  K($, { value: "0" }, {
7297
7297
  default: oe(() => x[4] || (x[4] = [
@@ -7321,7 +7321,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7321
7321
  !C.autoGenerated && !C.foreignKey ? (b(), M(Zo, {
7322
7322
  key: 0,
7323
7323
  modelValue: ee(c)[C.name],
7324
- "onUpdate:modelValue": (R) => ee(c)[C.name] = R,
7324
+ "onUpdate:modelValue": (P) => ee(c)[C.name] = P,
7325
7325
  column: C,
7326
7326
  errors: (_ = ee(u)[C.name]) == null ? void 0 : _.messages,
7327
7327
  onInput: ee(d)
@@ -7510,7 +7510,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7510
7510
  const o = Ue(), r = un(), a = e, i = E(!0), s = E(!1), c = E([]);
7511
7511
  let l = (T = r == null ? void 0 : r.params) == null ? void 0 : T.entityName, u = (V = r == null ? void 0 : r.params) == null ? void 0 : V.id;
7512
7512
  a.entityName && (l = a.entityName), a.recordId && (u = a.recordId);
7513
- const f = n, { formData: d, columns: p, errors: m, backendErrors: h, isDataChange: g, linkedEntities: y, primarayColumn: k, clearErrors: v, saveRecord: x, getRelatedEntityRecordById: $, cancleRecord: N } = aa(l, u, f);
7513
+ const f = n, { formData: d, columns: p, errors: m, backendErrors: h, isDataChange: g, linkedEntities: y, primarayColumn: k, clearErrors: v, saveRecord: x, getRelatedEntityRecordById: $, cancleRecord: D } = aa(l, u, f);
7514
7514
  Oe(
7515
7515
  () => o.globalConfigs.appId,
7516
7516
  async (C) => {
@@ -7539,12 +7539,12 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7539
7539
  },
7540
7540
  { immediate: !0, deep: !0 }
7541
7541
  ), (C, B) => {
7542
- var le;
7543
- const _ = q("SplitterPanel"), R = q("Tab"), z = q("TabList"), J = q("TabPanel"), Q = q("TabPanels"), L = q("Tabs"), D = q("Splitter"), A = q("Button");
7542
+ var Y;
7543
+ const _ = q("SplitterPanel"), P = q("Tab"), z = q("TabList"), J = q("TabPanel"), ye = q("TabPanels"), L = q("Tabs"), N = q("Splitter"), R = q("Button");
7544
7544
  return C.$slots["list-item-display-360"] ? (b(), S("div", Tm, [
7545
- ge(C.$slots, "header", {}, void 0, !0),
7545
+ me(C.$slots, "header", {}, void 0, !0),
7546
7546
  w("div", null, [
7547
- ge(C.$slots, "list-item-display-360", Qt({
7547
+ me(C.$slots, "list-item-display-360", Qt({
7548
7548
  [e.variable || ""]: {
7549
7549
  formData: ee(d),
7550
7550
  columns: ee(p),
@@ -7556,10 +7556,10 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7556
7556
  }
7557
7557
  }), void 0, !0)
7558
7558
  ]),
7559
- ge(C.$slots, "footer", {}, void 0, !0)
7559
+ me(C.$slots, "footer", {}, void 0, !0)
7560
7560
  ])) : (b(), S(ie, { key: 1 }, [
7561
7561
  w("div", Im, [
7562
- K(D, {
7562
+ K(N, {
7563
7563
  class: "flex-1",
7564
7564
  layout: "horizontal",
7565
7565
  gutterSize: 8,
@@ -7574,7 +7574,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7574
7574
  default: oe(() => [
7575
7575
  w("div", Bm, [
7576
7576
  w("div", {
7577
- onClick: B[0] || (B[0] = (pe) => I()),
7577
+ onClick: B[0] || (B[0] = (de) => I()),
7578
7578
  class: "section-heading cursor-pointer"
7579
7579
  }, [
7580
7580
  i.value ? U("", !0) : (b(), S("i", Rm)),
@@ -7582,15 +7582,15 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7582
7582
  w("span", Fm, " About this " + Z(ee(l)), 1)
7583
7583
  ]),
7584
7584
  i.value ? (b(), S("div", Am, [
7585
- (b(!0), S(ie, null, Ee(ee(p), (pe, ce) => {
7585
+ (b(!0), S(ie, null, Ee(ee(p), (de, ue) => {
7586
7586
  var fe;
7587
- return b(), S("div", { key: ce }, [
7588
- pe.autoGenerated ? U("", !0) : (b(), M(Zo, {
7587
+ return b(), S("div", { key: ue }, [
7588
+ de.autoGenerated ? U("", !0) : (b(), M(Zo, {
7589
7589
  key: 0,
7590
- modelValue: ee(d)[pe.name],
7591
- "onUpdate:modelValue": (we) => ee(d)[pe.name] = we,
7592
- column: pe,
7593
- errors: (fe = ee(m)[pe.name]) == null ? void 0 : fe.messages,
7590
+ modelValue: ee(d)[de.name],
7591
+ "onUpdate:modelValue": (we) => ee(d)[de.name] = we,
7592
+ column: de,
7593
+ errors: (fe = ee(m)[de.name]) == null ? void 0 : fe.messages,
7594
7594
  onInput: ee(v)
7595
7595
  }, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors", "onInput"]))
7596
7596
  ]);
@@ -7610,13 +7610,13 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7610
7610
  default: oe(() => [
7611
7611
  K(z, null, {
7612
7612
  default: oe(() => [
7613
- K(R, { value: "0" }, {
7613
+ K(P, { value: "0" }, {
7614
7614
  default: oe(() => B[3] || (B[3] = [
7615
7615
  et("Overview")
7616
7616
  ])),
7617
7617
  _: 1
7618
7618
  }),
7619
- K(R, { value: "1" }, {
7619
+ K(P, { value: "1" }, {
7620
7620
  default: oe(() => B[4] || (B[4] = [
7621
7621
  et("Activity")
7622
7622
  ])),
@@ -7625,23 +7625,23 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7625
7625
  ]),
7626
7626
  _: 1
7627
7627
  }),
7628
- K(Q, null, {
7628
+ K(ye, null, {
7629
7629
  default: oe(() => [
7630
7630
  K(J, { value: "0" }, {
7631
7631
  default: oe(() => [
7632
7632
  w("div", _m, [
7633
7633
  B[5] || (B[5] = w("h3", { class: "mt-2 text-xl font-semibold" }, "Data highlights", -1)),
7634
7634
  w("div", Nm, [
7635
- (b(!0), S(ie, null, Ee(ee(p).filter((pe) => pe.autoGenerated), (pe, ce) => (b(), S("div", {
7636
- key: ce,
7635
+ (b(!0), S(ie, null, Ee(ee(p).filter((de) => de.autoGenerated), (de, ue) => (b(), S("div", {
7636
+ key: ue,
7637
7637
  class: "column-item"
7638
7638
  }, [
7639
7639
  w("div", Dm, [
7640
- w("div", Lm, Z(pe.name), 1),
7640
+ w("div", Lm, Z(de.name), 1),
7641
7641
  w("div", Vm, [
7642
7642
  K(sa, {
7643
- column: pe,
7644
- value: ee(d)[pe.name]
7643
+ column: de,
7644
+ value: ee(d)[de.name]
7645
7645
  }, null, 8, ["column", "value"])
7646
7646
  ])
7647
7647
  ])
@@ -7664,8 +7664,8 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7664
7664
  ]),
7665
7665
  _: 1
7666
7666
  }),
7667
- ((le = ee(y)) == null ? void 0 : le.length) > 0 ? (b(), S("div", zm, [
7668
- s.value ? (b(), M(A, {
7667
+ ((Y = ee(y)) == null ? void 0 : Y.length) > 0 ? (b(), S("div", zm, [
7668
+ s.value ? (b(), M(R, {
7669
7669
  key: 0,
7670
7670
  icon: "pi pi-caret-right",
7671
7671
  rounded: "",
@@ -7673,7 +7673,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7673
7673
  "aria-label": "Filter",
7674
7674
  style: { height: "2rem", width: "2rem", left: "-20px" }
7675
7675
  })) : U("", !0),
7676
- s.value ? U("", !0) : (b(), M(A, {
7676
+ s.value ? U("", !0) : (b(), M(R, {
7677
7677
  key: 1,
7678
7678
  icon: "pi pi-caret-left",
7679
7679
  rounded: "",
@@ -7682,11 +7682,11 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7682
7682
  style: { height: "2rem", width: "2rem", left: "-20px" }
7683
7683
  })),
7684
7684
  s.value ? (b(), S("div", Mm, [
7685
- (b(!0), S(ie, null, Ee(ee(y), (pe, ce) => (b(), S("div", { key: ce }, [
7685
+ (b(!0), S(ie, null, Ee(ee(y), (de, ue) => (b(), S("div", { key: ue }, [
7686
7686
  K(Om, {
7687
7687
  entity360Name: ee(l),
7688
7688
  entity360Id: ee(u),
7689
- linkedEntity: pe,
7689
+ linkedEntity: de,
7690
7690
  onSaveRelatedEnttity: j
7691
7691
  }, null, 8, ["entity360Name", "entity360Id", "linkedEntity"])
7692
7692
  ]))), 128))
@@ -7696,19 +7696,19 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
7696
7696
  ee(g) ? (b(), S("div", jm, [
7697
7697
  w("div", Um, [
7698
7698
  w("div", Hm, [
7699
- K(A, {
7699
+ K(R, {
7700
7700
  severity: "primary",
7701
- onClick: B[1] || (B[1] = (pe) => ee(x)())
7701
+ onClick: B[1] || (B[1] = (de) => ee(x)())
7702
7702
  }, {
7703
7703
  default: oe(() => B[6] || (B[6] = [
7704
7704
  et("Save")
7705
7705
  ])),
7706
7706
  _: 1
7707
7707
  }),
7708
- K(A, {
7708
+ K(R, {
7709
7709
  style: { "margin-left": "10px" },
7710
7710
  severity: "secondary",
7711
- onClick: B[2] || (B[2] = (pe) => ee(N)())
7711
+ onClick: B[2] || (B[2] = (de) => ee(D)())
7712
7712
  }, {
7713
7713
  default: oe(() => B[7] || (B[7] = [
7714
7714
  et("Cancel")
@@ -7804,19 +7804,19 @@ function rr() {
7804
7804
  let C = "";
7805
7805
  const B = T.entity.entityDefinition.columns;
7806
7806
  for (let _ = 0; _ < B.length; _++) {
7807
- let R = B[_];
7808
- if (V == R.name) {
7809
- C = R.type;
7807
+ let P = B[_];
7808
+ if (V == P.name) {
7809
+ C = P.type;
7810
7810
  break;
7811
7811
  }
7812
7812
  }
7813
7813
  return C;
7814
7814
  }, y = (T, V) => {
7815
- const B = T.entity.entityDefinition.columns.filter((R) => R.autoGenerated).map((R) => R.name);
7816
- return Object.entries(V).filter(([R]) => !B.includes(R)).map(([R, z]) => ({
7817
- recordColumnName: R,
7815
+ const B = T.entity.entityDefinition.columns.filter((P) => P.autoGenerated).map((P) => P.name);
7816
+ return Object.entries(V).filter(([P]) => !B.includes(P)).map(([P, z]) => ({
7817
+ recordColumnName: P,
7818
7818
  recordColumnValue: z,
7819
- columnType: g(r.data, R)
7819
+ columnType: g(r.data, P)
7820
7820
  }));
7821
7821
  }, k = () => {
7822
7822
  const T = r.data.entity.entityDefinition.columns;
@@ -7824,33 +7824,33 @@ function rr() {
7824
7824
  T.reduce((C, B) => (B.autoGenerated || (C[B.name] = oa().nullable(!1).test({
7825
7825
  name: "custom-validation",
7826
7826
  test: function(_) {
7827
- const R = [];
7827
+ const P = [];
7828
7828
  let z = "";
7829
7829
  if (B.required && (!_ || _.trim() === ""))
7830
7830
  if (B.validations) {
7831
- z = v(B.validations, "VALIDATE_REQUIRED"), R.push(z);
7831
+ z = v(B.validations, "VALIDATE_REQUIRED"), P.push(z);
7832
7832
  let J = $(B.validations, "VALIDATE_REQUIRED");
7833
- J && (J = "hint:" + J, R.push(J));
7833
+ J && (J = "hint:" + J, P.push(J));
7834
7834
  } else
7835
- z = B.displayName + " is required.", R.push(z);
7835
+ z = B.displayName + " is required.", P.push(z);
7836
7836
  else {
7837
7837
  if (B.maxLength && _.length > B.maxLength)
7838
7838
  if (B.validations) {
7839
- z = v(B.validations, "VALIDATE_MAXLENGTH"), R.push(z);
7839
+ z = v(B.validations, "VALIDATE_MAXLENGTH"), P.push(z);
7840
7840
  let J = $(B.validations, "VALIDATE_MAXLENGTH");
7841
- J && (J = "hint:" + J, R.push(J));
7841
+ J && (J = "hint:" + J, P.push(J));
7842
7842
  } else
7843
- z = B.displayName + " cannot exceed from " + B.maxLength + " characters", R.push(z);
7843
+ z = B.displayName + " cannot exceed from " + B.maxLength + " characters", P.push(z);
7844
7844
  if (B.regxId && !new RegExp(x(B.validations, "VALIDATE_REGX")).test(_))
7845
7845
  if (B.validations) {
7846
- z = v(B.validations, "VALIDATE_REGX"), R.push(z);
7846
+ z = v(B.validations, "VALIDATE_REGX"), P.push(z);
7847
7847
  let J = $(B.validations, "VALIDATE_REGX");
7848
- J && (J = "hint:" + J, R.push(J));
7848
+ J && (J = "hint:" + J, P.push(J));
7849
7849
  } else
7850
- z = B.displayName + " invalid format.", R.push(z);
7850
+ z = B.displayName + " invalid format.", P.push(z);
7851
7851
  }
7852
- return R.length > 0 ? this.createError({
7853
- message: R
7852
+ return P.length > 0 ? this.createError({
7853
+ message: P
7854
7854
  // This will return the array of errors
7855
7855
  }) : !0;
7856
7856
  }
@@ -7868,13 +7868,13 @@ function rr() {
7868
7868
  for (let C = 0; C < T.length; C++)
7869
7869
  if (V == T[C].type)
7870
7870
  return T[C].hint;
7871
- }, N = (T) => (o({ ...n.value, [T]: null }), n.value), I = async (T, V) => {
7871
+ }, D = (T) => (o({ ...n.value, [T]: null }), n.value), I = async (T, V) => {
7872
7872
  try {
7873
7873
  return await T.validate(V, { abortEarly: !1 }), o({}), {
7874
7874
  validate: !0
7875
7875
  };
7876
7876
  } catch (C) {
7877
- const B = C.inner.reduce((z, J) => (z[J.path] || (z[J.path] = { messages: [] }), z[J.path].messages.push(...J.errors), z), {}), _ = Object.entries(B).reduce((z, [J, Q]) => (z[J] = { messages: Q.messages }, z), {});
7877
+ const B = C.inner.reduce((z, J) => (z[J.path] || (z[J.path] = { messages: [] }), z[J.path].messages.push(...J.errors), z), {}), _ = Object.entries(B).reduce((z, [J, ye]) => (z[J] = { messages: ye.messages }, z), {});
7878
7878
  return o(_), {
7879
7879
  validate: !1,
7880
7880
  errors: n.value
@@ -7897,17 +7897,17 @@ function rr() {
7897
7897
  }, j = (T) => {
7898
7898
  const V = ["==", "!=", "<=", ">=", "<", ">"];
7899
7899
  return T.split("&&").map((B) => {
7900
- let _, R, z;
7900
+ let _, P, z;
7901
7901
  const J = V.find((L) => B.includes(L));
7902
7902
  if (J)
7903
- [_, z] = B.split(J).map((L) => L.trim()), R = J;
7903
+ [_, z] = B.split(J).map((L) => L.trim()), P = J;
7904
7904
  else
7905
7905
  return console.warn("No valid operator found in filter:", B), null;
7906
- const Q = (e == null ? void 0 : e(z)) ?? z;
7907
- return console.log("Parsed filter:", { field: _, operator: R, value: Q }), {
7906
+ const ye = (e == null ? void 0 : e(z)) ?? z;
7907
+ return console.log("Parsed filter:", { field: _, operator: P, value: ye }), {
7908
7908
  columnName: _,
7909
- value: Q,
7910
- operator: W(R)
7909
+ value: ye,
7910
+ operator: W(P)
7911
7911
  };
7912
7912
  }).filter(Boolean);
7913
7913
  }, W = (T) => {
@@ -7942,7 +7942,7 @@ function rr() {
7942
7942
  getFormData: h,
7943
7943
  createDataToSave: y,
7944
7944
  createValidationSchema: k,
7945
- clearErrors: N,
7945
+ clearErrors: D,
7946
7946
  validateData: I,
7947
7947
  applyPreset: O,
7948
7948
  parsePrefilter: j
@@ -8388,14 +8388,14 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
8388
8388
  delete W.editing, W.columnName && W.operator && W.value && (W.columnType = e.getDatatypeByField(W.columnName), W.operator = e.operatorMap[W.operator], I.push(W));
8389
8389
  }
8390
8390
  e.filterCallback(I);
8391
- }, N = () => {
8391
+ }, D = () => {
8392
8392
  e.sortCallback();
8393
8393
  };
8394
8394
  return (I, O) => {
8395
8395
  const j = q("Select"), W = q("Divider"), T = q("InputNumber"), V = q("DatePicker"), C = q("InputText"), B = q("Button"), _ = q("Drawer");
8396
8396
  return b(), M(_, {
8397
8397
  visible: o.value,
8398
- "onUpdate:visible": O[4] || (O[4] = (R) => o.value = R),
8398
+ "onUpdate:visible": O[4] || (O[4] = (P) => o.value = P),
8399
8399
  header: "Sorting and Filter",
8400
8400
  blockScroll: !0,
8401
8401
  position: "right",
@@ -8410,13 +8410,13 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
8410
8410
  w("div", gg, [
8411
8411
  K(j, {
8412
8412
  modelValue: t.value,
8413
- "onUpdate:modelValue": O[0] || (O[0] = (R) => t.value = R),
8413
+ "onUpdate:modelValue": O[0] || (O[0] = (P) => t.value = P),
8414
8414
  options: d.value,
8415
8415
  optionLabel: "name",
8416
8416
  optionValue: "field",
8417
8417
  highlightOnSelect: !1,
8418
8418
  class: "w-full",
8419
- onChange: O[1] || (O[1] = (R) => N(I.event))
8419
+ onChange: O[1] || (O[1] = (P) => D(I.event))
8420
8420
  }, null, 8, ["modelValue", "options"])
8421
8421
  ])
8422
8422
  ]),
@@ -8427,32 +8427,32 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
8427
8427
  w("div", bg, [
8428
8428
  K(j, {
8429
8429
  modelValue: n.value,
8430
- "onUpdate:modelValue": O[2] || (O[2] = (R) => n.value = R),
8430
+ "onUpdate:modelValue": O[2] || (O[2] = (P) => n.value = P),
8431
8431
  options: u,
8432
8432
  optionLabel: "label",
8433
8433
  optionValue: "value",
8434
8434
  highlightOnSelect: !1,
8435
8435
  class: "w-full",
8436
- onChange: O[3] || (O[3] = (R) => N(I.event))
8436
+ onChange: O[3] || (O[3] = (P) => D(I.event))
8437
8437
  }, null, 8, ["modelValue"])
8438
8438
  ])
8439
8439
  ]),
8440
- (b(!0), S(ie, null, Ee(r.value, (R, z) => (b(), S("div", { key: z }, [
8441
- R.editing ? (b(), S("div", yg, [
8440
+ (b(!0), S(ie, null, Ee(r.value, (P, z) => (b(), S("div", { key: z }, [
8441
+ P.editing ? (b(), S("div", yg, [
8442
8442
  K(W),
8443
8443
  w("div", vg, [
8444
8444
  O[7] || (O[7] = w("div", { class: "col-12 font-bold" }, "Filter Column", -1)),
8445
8445
  w("div", wg, [
8446
8446
  K(j, {
8447
- modelValue: R.columnName,
8448
- "onUpdate:modelValue": (J) => R.columnName = J,
8447
+ modelValue: P.columnName,
8448
+ "onUpdate:modelValue": (J) => P.columnName = J,
8449
8449
  options: m(z),
8450
8450
  optionLabel: "label",
8451
8451
  placeholder: "Select column",
8452
8452
  optionValue: "value",
8453
8453
  highlightOnSelect: !1,
8454
8454
  class: "w-full",
8455
- onChange: (J) => h(R)
8455
+ onChange: (J) => h(P)
8456
8456
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange"])
8457
8457
  ])
8458
8458
  ]),
@@ -8460,9 +8460,9 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
8460
8460
  O[8] || (O[8] = w("div", { class: "col-12 font-bold" }, "Filter Operator", -1)),
8461
8461
  w("div", xg, [
8462
8462
  K(j, {
8463
- modelValue: R.operator,
8464
- "onUpdate:modelValue": (J) => R.operator = J,
8465
- options: g(R),
8463
+ modelValue: P.operator,
8464
+ "onUpdate:modelValue": (J) => P.operator = J,
8465
+ options: g(P),
8466
8466
  optionLabel: "label",
8467
8467
  placeholder: "Select operator",
8468
8468
  optionValue: "value",
@@ -8474,24 +8474,24 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
8474
8474
  w("div", Sg, [
8475
8475
  O[9] || (O[9] = w("div", { class: "col-12 font-bold" }, "Filter value", -1)),
8476
8476
  w("div", Cg, [
8477
- y(R) == "numeric" ? (b(), M(T, {
8477
+ y(P) == "numeric" ? (b(), M(T, {
8478
8478
  key: 0,
8479
8479
  format: !1,
8480
8480
  class: "w-full",
8481
- modelValue: R.value,
8482
- "onUpdate:modelValue": (J) => R.value = J,
8481
+ modelValue: P.value,
8482
+ "onUpdate:modelValue": (J) => P.value = J,
8483
8483
  placeholder: "Search value"
8484
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : y(R) == "date" ? (b(), M(V, {
8484
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : y(P) == "date" ? (b(), M(V, {
8485
8485
  key: 1,
8486
8486
  class: "w-full",
8487
- modelValue: R.value,
8488
- "onUpdate:modelValue": (J) => R.value = J,
8487
+ modelValue: P.value,
8488
+ "onUpdate:modelValue": (J) => P.value = J,
8489
8489
  dateFormat: "mm/dd/yy",
8490
8490
  placeholder: "mm/dd/yyyy"
8491
8491
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (b(), M(C, {
8492
8492
  key: 2,
8493
- modelValue: R.value,
8494
- "onUpdate:modelValue": (J) => R.value = J,
8493
+ modelValue: P.value,
8494
+ "onUpdate:modelValue": (J) => P.value = J,
8495
8495
  class: "w-full",
8496
8496
  placeholder: "Search value"
8497
8497
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
@@ -8502,7 +8502,7 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
8502
8502
  label: "Hide",
8503
8503
  icon: "",
8504
8504
  severity: "warn",
8505
- onClick: (J) => x(R)
8505
+ onClick: (J) => x(P)
8506
8506
  }, null, 8, ["onClick"]),
8507
8507
  K(B, {
8508
8508
  label: "Delete",
@@ -8512,27 +8512,27 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
8512
8512
  }, null, 8, ["onClick"])
8513
8513
  ])
8514
8514
  ])) : U("", !0),
8515
- R.editing ? U("", !0) : (b(), S("div", $g, [
8515
+ P.editing ? U("", !0) : (b(), S("div", $g, [
8516
8516
  K(W),
8517
8517
  w("div", Og, [
8518
8518
  w("span", null, [
8519
- R.columnName || R.operator || R.value ? (b(), S(ie, { key: 0 }, [
8519
+ P.columnName || P.operator || P.value ? (b(), S(ie, { key: 0 }, [
8520
8520
  w("span", {
8521
- class: ve({ "text-red-500": !R.columnName })
8522
- }, Z(R.columnName ? " " + R.columnName : " column"), 3),
8521
+ class: ve({ "text-red-500": !P.columnName })
8522
+ }, Z(P.columnName ? " " + P.columnName : " column"), 3),
8523
8523
  w("span", {
8524
- class: ve({ "text-red-500": !a[R.operator] })
8525
- }, Z(R.operator ? " " + a[R.operator] : " operator"), 3),
8524
+ class: ve({ "text-red-500": !a[P.operator] })
8525
+ }, Z(P.operator ? " " + a[P.operator] : " operator"), 3),
8526
8526
  w("span", {
8527
- class: ve({ "text-red-500": !R.value })
8528
- }, Z(R.value ? " " + R.value : " value"), 3)
8527
+ class: ve({ "text-red-500": !P.value })
8528
+ }, Z(P.value ? " " + P.value : " value"), 3)
8529
8529
  ], 64)) : (b(), S("span", Tg, "Filter is empty"))
8530
8530
  ]),
8531
8531
  K(B, {
8532
8532
  label: "Edit",
8533
8533
  icon: "",
8534
8534
  severity: "info",
8535
- onClick: (J) => x(R)
8535
+ onClick: (J) => x(P)
8536
8536
  }, null, 8, ["onClick"])
8537
8537
  ])
8538
8538
  ]))
@@ -8650,7 +8650,7 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
8650
8650
  default:
8651
8651
  return "text";
8652
8652
  }
8653
- }, N = (I) => {
8653
+ }, D = (I) => {
8654
8654
  const O = c.value.find((j) => j.name === I);
8655
8655
  return O ? O.type : null;
8656
8656
  };
@@ -8714,7 +8714,7 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
8714
8714
  sortCallback: y,
8715
8715
  filterCallback: h,
8716
8716
  getColumnDatatype: $,
8717
- getDatatypeByField: N,
8717
+ getDatatypeByField: D,
8718
8718
  preFiltered: f.preFiltered
8719
8719
  }, null, 8, ["sortBy", "sortDirection", "showFilter", "filters", "headers", "preFiltered"])
8720
8720
  ], 64);
@@ -8825,7 +8825,7 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
8825
8825
  return i.$slots["list-item-display"] ? (b(), S(ie, { key: 0 }, [
8826
8826
  e.showAddButton ? (b(), M(Et, { key: 0 })) : U("", !0),
8827
8827
  e.listFilerSlot ? (b(), M(Ne(e.listFilter || Ct), { key: 1 })) : U("", !0),
8828
- (b(!0), S(ie, null, Ee(((u = (l = (c = ee(n)) == null ? void 0 : c.state) == null ? void 0 : l.data) == null ? void 0 : u.result) || [], (f) => ge(i.$slots, "list-item-display", { item: f })), 256))
8828
+ (b(!0), S(ie, null, Ee(((u = (l = (c = ee(n)) == null ? void 0 : c.state) == null ? void 0 : l.data) == null ? void 0 : u.result) || [], (f) => me(i.$slots, "list-item-display", { item: f })), 256))
8829
8829
  ], 64)) : (b(), S(ie, { key: 1 }, [
8830
8830
  (b(), M(Ne(e.listHeader || pg))),
8831
8831
  (b(), M(Ne(e.listFilter || Ct))),
@@ -8854,8 +8854,8 @@ function _g() {
8854
8854
  deleteAppSecurityRole: async (v, x, $ = !1) => await o(`/api/app/v1/${v}/security/roles/${x}`, {}, $),
8855
8855
  deleteAppSecurityAccessRule: async (v, x, $ = !1) => await o(`/api/app/v1/${v}/security/rules/${x}`, {}, $),
8856
8856
  getRolePermissions: async (v, x, $ = !1) => await e(`/api/app/v1/${v}/security/role/${x}/permission`, $),
8857
- linkPermissionToRole: async (v, x, $, N = !1) => await t(`/api/app/v1/${v}/security/role/${x}/permission/${$}`, {}, N),
8858
- unlinkPermissionFromRole: async (v, x, $, N = !1) => await o(`/api/app/v1/${v}/security/role/${x}/permission/${$}`, {}, N)
8857
+ linkPermissionToRole: async (v, x, $, D = !1) => await t(`/api/app/v1/${v}/security/role/${x}/permission/${$}`, {}, D),
8858
+ unlinkPermissionFromRole: async (v, x, $, D = !1) => await o(`/api/app/v1/${v}/security/role/${x}/permission/${$}`, {}, D)
8859
8859
  };
8860
8860
  }
8861
8861
  const Zt = E({ role: [], permissions: [] }), wr = E(!1);
@@ -9401,27 +9401,27 @@ _n({
9401
9401
  Oe(p, (G) => m.value = G);
9402
9402
  const h = E(0), g = ne(() => Math.ceil((s.value - 1) / 2)), y = ne(() => s.value - 1), k = ne(() => 0);
9403
9403
  let v = null, x = null, $ = null;
9404
- const N = ne(() => u.value + d.gap), I = ne(() => {
9404
+ const D = ne(() => u.value + d.gap), I = ne(() => {
9405
9405
  const G = d.dir || "ltr";
9406
9406
  return G in no ? no[G] : G;
9407
9407
  }), O = ne(() => ["rtl", "btt"].includes(I.value)), j = ne(() => ["ttb", "btt"].includes(I.value)), W = ne(() => d.itemsToShow === "auto"), T = ne(() => j.value ? "height" : "width");
9408
9408
  function V() {
9409
9409
  var G;
9410
- if (!ce.value)
9410
+ if (!ue.value)
9411
9411
  return;
9412
- const re = (f.value.breakpointMode === "carousel" ? (G = c.value) === null || G === void 0 ? void 0 : G.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, de = Object.keys(e.breakpoints || {}).map((ye) => Number(ye)).sort((ye, Ve) => +Ve - +ye), ue = {};
9413
- de.some((ye) => re >= ye ? (Object.assign(ue, e.breakpoints[ye]), ue.i18n && Object.assign(ue.i18n, f.value.i18n, e.breakpoints[ye].i18n), !0) : !1), Object.assign(d, f.value, ue);
9412
+ const re = (f.value.breakpointMode === "carousel" ? (G = c.value) === null || G === void 0 ? void 0 : G.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, ce = Object.keys(e.breakpoints || {}).map((be) => Number(be)).sort((be, Ve) => +Ve - +be), le = {};
9413
+ ce.some((be) => re >= be ? (Object.assign(le, e.breakpoints[be]), le.i18n && Object.assign(le.i18n, f.value.i18n, e.breakpoints[be].i18n), !0) : !1), Object.assign(d, f.value, le);
9414
9414
  }
9415
9415
  const C = kr(() => {
9416
- V(), L(), Q();
9416
+ V(), L(), ye();
9417
9417
  }), B = $r(/* @__PURE__ */ new Set()), _ = E([]);
9418
- function R({ widthMultiplier: G, heightMultiplier: re }) {
9419
- _.value = i.map((de) => {
9420
- var ue;
9421
- const ye = (ue = de.exposed) === null || ue === void 0 ? void 0 : ue.getBoundingRect();
9418
+ function P({ widthMultiplier: G, heightMultiplier: re }) {
9419
+ _.value = i.map((ce) => {
9420
+ var le;
9421
+ const be = (le = ce.exposed) === null || le === void 0 ? void 0 : le.getBoundingRect();
9422
9422
  return {
9423
- width: ye.width * G,
9424
- height: ye.height * re
9423
+ width: be.width * G,
9424
+ height: be.height * re
9425
9425
  };
9426
9426
  });
9427
9427
  }
@@ -9430,22 +9430,22 @@ _n({
9430
9430
  height: 0
9431
9431
  });
9432
9432
  function J({ widthMultiplier: G, heightMultiplier: re }) {
9433
- var de;
9434
- const ue = ((de = l.value) === null || de === void 0 ? void 0 : de.getBoundingClientRect()) || { width: 0, height: 0 };
9433
+ var ce;
9434
+ const le = ((ce = l.value) === null || ce === void 0 ? void 0 : ce.getBoundingClientRect()) || { width: 0, height: 0 };
9435
9435
  z.value = {
9436
- width: ue.width * G,
9437
- height: ue.height * re
9436
+ width: le.width * G,
9437
+ height: le.height * re
9438
9438
  };
9439
9439
  }
9440
- function Q() {
9440
+ function ye() {
9441
9441
  if (!l.value)
9442
9442
  return;
9443
9443
  const G = Qg(B);
9444
- if (J(G), R(G), W.value)
9444
+ if (J(G), P(G), W.value)
9445
9445
  u.value = Wg(_.value.map((re) => re[T.value]));
9446
9446
  else {
9447
- const re = Number(d.itemsToShow), de = (re - 1) * d.gap;
9448
- u.value = (z.value[T.value] - de) / re;
9447
+ const re = Number(d.itemsToShow), ce = (re - 1) * d.gap;
9448
+ u.value = (z.value[T.value] - ce) / re;
9449
9449
  }
9450
9450
  }
9451
9451
  function L() {
@@ -9459,31 +9459,31 @@ _n({
9459
9459
  min: 1
9460
9460
  }));
9461
9461
  }
9462
- const D = ne(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
9462
+ const N = ne(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
9463
9463
  Io(() => L()), Io(() => {
9464
- Q();
9464
+ ye();
9465
9465
  });
9466
- let A;
9467
- const le = (G) => {
9466
+ let R;
9467
+ const Y = (G) => {
9468
9468
  const re = G.target;
9469
- if (!(!(re != null && re.contains(c.value)) || Array.isArray(D.value) && D.value.includes(G.animationName)) && (B.add(re), !A)) {
9470
- const de = () => {
9471
- A = requestAnimationFrame(() => {
9472
- Q(), de();
9469
+ if (!(!(re != null && re.contains(c.value)) || Array.isArray(N.value) && N.value.includes(G.animationName)) && (B.add(re), !R)) {
9470
+ const ce = () => {
9471
+ R = requestAnimationFrame(() => {
9472
+ ye(), ce();
9473
9473
  });
9474
9474
  };
9475
- de();
9475
+ ce();
9476
9476
  }
9477
- }, pe = (G) => {
9477
+ }, de = (G) => {
9478
9478
  const re = G.target;
9479
- re && B.delete(re), A && B.size === 0 && (cancelAnimationFrame(A), Q());
9480
- }, ce = E(!1);
9479
+ re && B.delete(re), R && B.size === 0 && (cancelAnimationFrame(R), ye());
9480
+ }, ue = E(!1);
9481
9481
  typeof document < "u" && Io(() => {
9482
- ce.value && D.value !== !1 ? (document.addEventListener("animationstart", le), document.addEventListener("animationend", pe)) : (document.removeEventListener("animationstart", le), document.removeEventListener("animationend", pe));
9482
+ ue.value && N.value !== !1 ? (document.addEventListener("animationstart", Y), document.addEventListener("animationend", de)) : (document.removeEventListener("animationstart", Y), document.removeEventListener("animationend", de));
9483
9483
  }), Le(() => {
9484
- ce.value = !0, V(), _e(), c.value && ($ = new ResizeObserver(C), $.observe(c.value)), n("init");
9484
+ ue.value = !0, V(), _e(), c.value && ($ = new ResizeObserver(C), $.observe(c.value)), n("init");
9485
9485
  }), Kr(() => {
9486
- ce.value = !1, a.cleanup(), x && clearTimeout(x), A && cancelAnimationFrame(A), v && clearInterval(v), $ && ($.disconnect(), $ = null), typeof document < "u" && Re(), c.value && (c.value.removeEventListener("transitionend", Q), c.value.removeEventListener("animationiteration", Q));
9486
+ ue.value = !1, a.cleanup(), x && clearTimeout(x), R && cancelAnimationFrame(R), v && clearInterval(v), $ && ($.disconnect(), $ = null), typeof document < "u" && Re(), c.value && (c.value.removeEventListener("transitionend", ye), c.value.removeEventListener("animationiteration", ye));
9487
9487
  });
9488
9488
  let fe = !1;
9489
9489
  const we = { x: 0, y: 0 }, $e = Lt({ x: 0, y: 0 }), gt = E(!1), rt = E(!1), $t = () => {
@@ -9512,31 +9512,31 @@ _n({
9512
9512
  if (["INPUT", "TEXTAREA", "SELECT"].includes(re) || Je.value || (fe = G.type === "touchstart", !fe && (G.preventDefault(), G.button !== 0)))
9513
9513
  return;
9514
9514
  we.x = "touches" in G ? G.touches[0].clientX : G.clientX, we.y = "touches" in G ? G.touches[0].clientY : G.clientY;
9515
- const de = fe ? "touchmove" : "mousemove", ue = fe ? "touchend" : "mouseup";
9516
- document.addEventListener(de, Me, { passive: !1 }), document.addEventListener(ue, Pe, { passive: !0 });
9515
+ const ce = fe ? "touchmove" : "mousemove", le = fe ? "touchend" : "mouseup";
9516
+ document.addEventListener(ce, Me, { passive: !1 }), document.addEventListener(le, Pe, { passive: !0 });
9517
9517
  }
9518
9518
  const Me = kr((G) => {
9519
9519
  rt.value = !0;
9520
- const re = "touches" in G ? G.touches[0].clientX : G.clientX, de = "touches" in G ? G.touches[0].clientY : G.clientY;
9521
- $e.x = re - we.x, $e.y = de - we.y;
9522
- const ue = Gg({
9520
+ const re = "touches" in G ? G.touches[0].clientX : G.clientX, ce = "touches" in G ? G.touches[0].clientY : G.clientY;
9521
+ $e.x = re - we.x, $e.y = ce - we.y;
9522
+ const le = Gg({
9523
9523
  isVertical: j.value,
9524
9524
  isReversed: O.value,
9525
9525
  dragged: $e,
9526
- effectiveSlideSize: N.value
9526
+ effectiveSlideSize: D.value
9527
9527
  });
9528
- m.value = d.wrapAround ? p.value + ue : Ut({
9529
- val: p.value + ue,
9528
+ m.value = d.wrapAround ? p.value + le : Ut({
9529
+ val: p.value + le,
9530
9530
  max: y.value,
9531
9531
  min: k.value
9532
9532
  }), n("drag", { deltaX: $e.x, deltaY: $e.y });
9533
9533
  });
9534
9534
  function Pe() {
9535
9535
  if (Me.cancel(), m.value !== p.value && !fe) {
9536
- const de = (ue) => {
9537
- ue.preventDefault(), window.removeEventListener("click", de);
9536
+ const ce = (le) => {
9537
+ le.preventDefault(), window.removeEventListener("click", ce);
9538
9538
  };
9539
- window.addEventListener("click", de);
9539
+ window.addEventListener("click", ce);
9540
9540
  }
9541
9541
  ut(m.value), $e.x = 0, $e.y = 0, rt.value = !1;
9542
9542
  const G = fe ? "touchmove" : "mousemove", re = fe ? "touchend" : "mouseup";
@@ -9557,13 +9557,13 @@ _n({
9557
9557
  function ut(G, re = !1) {
9558
9558
  if (!re && Je.value)
9559
9559
  return;
9560
- let de = G, ue = G;
9561
- h.value = p.value, d.wrapAround ? ue = Fl({
9562
- val: de,
9560
+ let ce = G, le = G;
9561
+ h.value = p.value, d.wrapAround ? le = Fl({
9562
+ val: ce,
9563
9563
  max: y.value,
9564
9564
  min: k.value
9565
- }) : de = Ut({
9566
- val: de,
9565
+ }) : ce = Ut({
9566
+ val: ce,
9567
9567
  max: y.value,
9568
9568
  min: k.value
9569
9569
  }), n("slide-start", {
@@ -9571,8 +9571,8 @@ _n({
9571
9571
  currentSlideIndex: p.value,
9572
9572
  prevSlideIndex: h.value,
9573
9573
  slidesCount: s.value
9574
- }), Ke(), Je.value = !0, p.value = de, ue !== de && cn.pause(), n("update:modelValue", ue), x = setTimeout(() => {
9575
- d.wrapAround && ue !== de && (cn.resume(), p.value = ue, n("loop", {
9574
+ }), Ke(), Je.value = !0, p.value = ce, le !== ce && cn.pause(), n("update:modelValue", le), x = setTimeout(() => {
9575
+ d.wrapAround && le !== ce && (cn.resume(), p.value = le, n("loop", {
9576
9576
  currentSlideIndex: p.value,
9577
9577
  slidingToIndex: G
9578
9578
  })), n("slide-end", {
@@ -9589,24 +9589,24 @@ _n({
9589
9589
  ut(p.value - d.itemsToScroll, G);
9590
9590
  }
9591
9591
  function Jt() {
9592
- V(), L(), Q(), Ft();
9592
+ V(), L(), ye(), Ft();
9593
9593
  }
9594
9594
  Oe(() => [f.value, e.breakpoints], () => V(), { deep: !0 }), Oe(() => e.autoplay, () => Ft());
9595
9595
  const cn = Oe(() => e.modelValue, (G) => {
9596
9596
  G !== p.value && ut(Number(G), !0);
9597
9597
  });
9598
9598
  n("before-init");
9599
- const he = ne(() => {
9599
+ const ge = ne(() => {
9600
9600
  if (!d.wrapAround)
9601
9601
  return { before: 0, after: 0 };
9602
9602
  if (W.value)
9603
9603
  return { before: i.length, after: i.length };
9604
- const G = Number(d.itemsToShow), re = Math.ceil(G + (d.itemsToScroll - 1)), de = re - m.value, ue = re - (s.value - (m.value + 1));
9604
+ const G = Number(d.itemsToShow), re = Math.ceil(G + (d.itemsToScroll - 1)), ce = re - m.value, le = re - (s.value - (m.value + 1));
9605
9605
  return {
9606
- before: Math.max(0, de),
9607
- after: Math.max(0, ue)
9606
+ before: Math.max(0, ce),
9607
+ after: Math.max(0, le)
9608
9608
  };
9609
- }), Ot = ne(() => he.value.before ? W.value ? _.value.slice(-1 * he.value.before).reduce((G, re) => G + re[T.value] + d.gap, 0) * -1 : he.value.before * N.value * -1 : 0), Ge = ne(() => {
9609
+ }), Ot = ne(() => ge.value.before ? W.value ? _.value.slice(-1 * ge.value.before).reduce((G, re) => G + re[T.value] + d.gap, 0) * -1 : ge.value.before * D.value * -1 : 0), Ge = ne(() => {
9610
9610
  var G;
9611
9611
  if (W.value) {
9612
9612
  const re = (p.value % i.length + i.length) % i.length;
@@ -9620,11 +9620,11 @@ _n({
9620
9620
  align: d.snapAlign,
9621
9621
  itemsToShow: +d.itemsToShow
9622
9622
  });
9623
- }), P = ne(() => {
9623
+ }), F = ne(() => {
9624
9624
  let G = 0;
9625
9625
  if (W.value) {
9626
- if (p.value < 0 ? G = _.value.slice(p.value).reduce((re, de) => re + de[T.value] + d.gap, 0) * -1 : G = _.value.slice(0, p.value).reduce((re, de) => re + de[T.value] + d.gap, 0), G -= Ge.value, !d.wrapAround) {
9627
- const re = _.value.reduce((de, ue) => de + ue[T.value] + d.gap, 0) - z.value[T.value] - d.gap;
9626
+ if (p.value < 0 ? G = _.value.slice(p.value).reduce((re, ce) => re + ce[T.value] + d.gap, 0) * -1 : G = _.value.slice(0, p.value).reduce((re, ce) => re + ce[T.value] + d.gap, 0), G -= Ge.value, !d.wrapAround) {
9627
+ const re = _.value.reduce((ce, le) => ce + le[T.value] + d.gap, 0) - z.value[T.value] - d.gap;
9628
9628
  G = Ut({
9629
9629
  val: G,
9630
9630
  max: re,
@@ -9637,74 +9637,74 @@ _n({
9637
9637
  val: re,
9638
9638
  max: s.value - +d.itemsToShow,
9639
9639
  min: 0
9640
- })), G = re * N.value;
9640
+ })), G = re * D.value;
9641
9641
  }
9642
9642
  return G * (O.value ? 1 : -1);
9643
- }), F = ne(() => {
9643
+ }), A = ne(() => {
9644
9644
  var G, re;
9645
9645
  if (!W.value) {
9646
- const ye = p.value - Ge.value;
9646
+ const be = p.value - Ge.value;
9647
9647
  return d.wrapAround ? {
9648
- min: Math.floor(ye),
9649
- max: Math.ceil(ye + Number(d.itemsToShow) - 1)
9648
+ min: Math.floor(be),
9649
+ max: Math.ceil(be + Number(d.itemsToShow) - 1)
9650
9650
  } : {
9651
9651
  min: Math.floor(Ut({
9652
- val: ye,
9652
+ val: be,
9653
9653
  max: s.value - Number(d.itemsToShow),
9654
9654
  min: 0
9655
9655
  })),
9656
9656
  max: Math.ceil(Ut({
9657
- val: ye + Number(d.itemsToShow) - 1,
9657
+ val: be + Number(d.itemsToShow) - 1,
9658
9658
  max: s.value - 1,
9659
9659
  min: 0
9660
9660
  }))
9661
9661
  };
9662
9662
  }
9663
- let de = 0;
9663
+ let ce = 0;
9664
9664
  {
9665
- let ye = 0, Ve = 0 - he.value.before;
9666
- const He = Math.abs(P.value + Ot.value);
9667
- for (; ye <= He; ) {
9665
+ let be = 0, Ve = 0 - ge.value.before;
9666
+ const He = Math.abs(F.value + Ot.value);
9667
+ for (; be <= He; ) {
9668
9668
  const ot = (Ve % i.length + i.length) % i.length;
9669
- ye += ((G = _.value[ot]) === null || G === void 0 ? void 0 : G[T.value]) + d.gap, Ve++;
9669
+ be += ((G = _.value[ot]) === null || G === void 0 ? void 0 : G[T.value]) + d.gap, Ve++;
9670
9670
  }
9671
- de = Ve - 1;
9671
+ ce = Ve - 1;
9672
9672
  }
9673
- let ue = 0;
9673
+ let le = 0;
9674
9674
  {
9675
- let ye = de, Ve = 0;
9676
- for (ye < 0 ? Ve = _.value.slice(0, ye).reduce((He, ot) => He + ot[T.value] + d.gap, 0) - Math.abs(P.value + Ot.value) : Ve = _.value.slice(0, ye).reduce((He, ot) => He + ot[T.value] + d.gap, 0) - Math.abs(P.value); Ve < z.value[T.value]; ) {
9677
- const He = (ye % i.length + i.length) % i.length;
9678
- Ve += ((re = _.value[He]) === null || re === void 0 ? void 0 : re[T.value]) + d.gap, ye++;
9675
+ let be = ce, Ve = 0;
9676
+ for (be < 0 ? Ve = _.value.slice(0, be).reduce((He, ot) => He + ot[T.value] + d.gap, 0) - Math.abs(F.value + Ot.value) : Ve = _.value.slice(0, be).reduce((He, ot) => He + ot[T.value] + d.gap, 0) - Math.abs(F.value); Ve < z.value[T.value]; ) {
9677
+ const He = (be % i.length + i.length) % i.length;
9678
+ Ve += ((re = _.value[He]) === null || re === void 0 ? void 0 : re[T.value]) + d.gap, be++;
9679
9679
  }
9680
- ue = ye - 1;
9680
+ le = be - 1;
9681
9681
  }
9682
9682
  return {
9683
- min: Math.floor(de),
9684
- max: Math.ceil(ue)
9683
+ min: Math.floor(ce),
9684
+ max: Math.ceil(le)
9685
9685
  };
9686
- }), Y = ne(() => {
9686
+ }), Q = ne(() => {
9687
9687
  if (d.slideEffect === "fade")
9688
9688
  return;
9689
9689
  const G = j.value ? "Y" : "X", re = j.value ? $e.y : $e.x;
9690
- let de = P.value + re;
9690
+ let ce = F.value + re;
9691
9691
  if (!d.wrapAround && d.preventExcessiveDragging) {
9692
- let ue = 0;
9693
- W.value ? ue = _.value.reduce((He, ot) => He + ot[T.value], 0) : ue = (s.value - Number(d.itemsToShow)) * N.value;
9694
- const ye = O.value ? 0 : -1 * ue, Ve = O.value ? ue : 0;
9695
- de = Ut({
9696
- val: de,
9697
- min: ye,
9692
+ let le = 0;
9693
+ W.value ? le = _.value.reduce((He, ot) => He + ot[T.value], 0) : le = (s.value - Number(d.itemsToShow)) * D.value;
9694
+ const be = O.value ? 0 : -1 * le, Ve = O.value ? le : 0;
9695
+ ce = Ut({
9696
+ val: ce,
9697
+ min: be,
9698
9698
  max: Ve
9699
9699
  });
9700
9700
  }
9701
- return `translate${G}(${de}px)`;
9701
+ return `translate${G}(${ce}px)`;
9702
9702
  }), se = ne(() => ({
9703
9703
  "--vc-transition-duration": Je.value ? Oo(d.transition, "ms") : void 0,
9704
9704
  "--vc-slide-gap": Oo(d.gap),
9705
9705
  "--vc-carousel-height": Oo(d.height),
9706
9706
  "--vc-cloned-offset": Oo(Ot.value)
9707
- })), be = { slideTo: ut, next: vt, prev: Xt }, ke = Lt({
9707
+ })), he = { slideTo: ut, next: vt, prev: Xt }, ke = Lt({
9708
9708
  activeSlide: m,
9709
9709
  config: d,
9710
9710
  currentSlide: p,
@@ -9712,17 +9712,17 @@ _n({
9712
9712
  isVertical: j,
9713
9713
  maxSlide: y,
9714
9714
  minSlide: k,
9715
- nav: be,
9715
+ nav: he,
9716
9716
  normalizedDir: I,
9717
9717
  slideRegistry: a,
9718
9718
  slideSize: u,
9719
9719
  slides: i,
9720
9720
  slidesCount: s,
9721
9721
  viewport: l,
9722
- visibleRange: F
9722
+ visibleRange: A
9723
9723
  });
9724
9724
  sn(wn, ke);
9725
- const me = Lt({
9725
+ const pe = Lt({
9726
9726
  config: d,
9727
9727
  currentSlide: p,
9728
9728
  maxSlide: y,
@@ -9732,34 +9732,34 @@ _n({
9732
9732
  slidesCount: s
9733
9733
  });
9734
9734
  return o({
9735
- data: me,
9736
- nav: be,
9735
+ data: pe,
9736
+ nav: he,
9737
9737
  next: vt,
9738
9738
  prev: Xt,
9739
9739
  restartCarousel: Jt,
9740
9740
  slideTo: ut,
9741
9741
  updateBreakpointsConfig: V,
9742
- updateSlideSize: Q,
9742
+ updateSlideSize: ye,
9743
9743
  updateSlidesData: L
9744
9744
  }), () => {
9745
9745
  var G;
9746
- const re = t.default || t.slides, de = (re == null ? void 0 : re(me)) || [], { before: ue, after: ye } = he.value, Ve = vi({
9746
+ const re = t.default || t.slides, ce = (re == null ? void 0 : re(pe)) || [], { before: le, after: be } = ge.value, Ve = vi({
9747
9747
  slides: i,
9748
9748
  position: "before",
9749
- toShow: ue
9749
+ toShow: le
9750
9750
  }), He = vi({
9751
9751
  slides: i,
9752
9752
  position: "after",
9753
- toShow: ye
9754
- }), ot = [...Ve, ...de, ...He];
9753
+ toShow: be
9754
+ }), ot = [...Ve, ...ce, ...He];
9755
9755
  if (!d.enabled || !ot.length)
9756
9756
  return tt("section", {
9757
9757
  ref: c,
9758
9758
  class: ["carousel", "is-disabled"]
9759
9759
  }, ot);
9760
- const Vn = ((G = t.addons) === null || G === void 0 ? void 0 : G.call(t, me)) || [], zn = tt("ol", {
9760
+ const Vn = ((G = t.addons) === null || G === void 0 ? void 0 : G.call(t, pe)) || [], zn = tt("ol", {
9761
9761
  class: "carousel__track",
9762
- style: { transform: Y.value },
9762
+ style: { transform: Q.value },
9763
9763
  onMousedownCapture: d.mouseDrag ? at : null,
9764
9764
  onTouchstartPassiveCapture: d.touchDrag ? at : null
9765
9765
  }, ot), Mn = tt("div", { class: "carousel__viewport", ref: l }, zn);
@@ -10107,18 +10107,18 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10107
10107
  C && (d.value = C.result, f("linkedEntityChanged", C.result));
10108
10108
  }, { immediate: !0 });
10109
10109
  const k = (C) => {
10110
- u.value = C, y.state.data.filters = C, N(u.value);
10110
+ u.value = C, y.state.data.filters = C, D(u.value);
10111
10111
  }, v = () => {
10112
- u.value = null, i.value = "id", s.value = 1, y.state.data.filters = {}, N(u.value);
10112
+ u.value = null, i.value = "id", s.value = 1, y.state.data.filters = {}, D(u.value);
10113
10113
  }, x = async (C, B) => {
10114
- i.value = C, s.value = B, u.value = y.state.data.filters ? y.state.data.filters : u.value, N(u.value);
10114
+ i.value = C, s.value = B, u.value = y.state.data.filters ? y.state.data.filters : u.value, D(u.value);
10115
10115
  }, $ = (C) => {
10116
- c.value = C, u.value = y.state.data.filters ? y.state.data.filters : u.value, N(u.value);
10117
- }, N = async (C) => {
10116
+ c.value = C, u.value = y.state.data.filters ? y.state.data.filters : u.value, D(u.value);
10117
+ }, D = async (C) => {
10118
10118
  var B, _;
10119
10119
  console.log("entity state filter", y);
10120
10120
  try {
10121
- const R = {
10121
+ const P = {
10122
10122
  sortBy: [i.value],
10123
10123
  sortDirection: s.value === 1 ? "ASC" : "DESC",
10124
10124
  pageSize: c.value,
@@ -10127,15 +10127,15 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10127
10127
  filter: C,
10128
10128
  fullTextSearch: ""
10129
10129
  };
10130
- o.fetchParentEntities && (R.fetchParentEntities = o.fetchParentEntities), o.fetchChildEntities !== void 0 && (R.fetchChildEntities = o.fetchChildEntities), o.relatedEntities && (R.relatedEntities = o.relatedEntities.split(",").map((J) => J.trim())), o.fetchList && (R.fetchList = o.fetchList);
10131
- const z = await a.searchEntityRecords(o.entityName, R);
10130
+ o.fetchParentEntities && (P.fetchParentEntities = o.fetchParentEntities), o.fetchChildEntities !== void 0 && (P.fetchChildEntities = o.fetchChildEntities), o.relatedEntities && (P.relatedEntities = o.relatedEntities.split(",").map((J) => J.trim())), o.fetchList && (P.fetchList = o.fetchList);
10131
+ const z = await a.searchEntityRecords(o.entityName, P);
10132
10132
  z && z.response ? (y.setEntity(z.response), p.value = ((_ = (B = y == null ? void 0 : y.state) == null ? void 0 : B.data) == null ? void 0 : _.presets) || []) : console.error("Error fetching entity data:", z);
10133
10133
  } catch {
10134
10134
  }
10135
10135
  }, I = async () => {
10136
10136
  if (!o.preFiltered) return;
10137
10137
  const C = y.parsePrefilter(o.preFiltered);
10138
- C.length && N(C);
10138
+ C.length && D(C);
10139
10139
  };
10140
10140
  t({
10141
10141
  props: o,
@@ -10165,9 +10165,9 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10165
10165
  if (o.linkedEntity && o.linkedEntity.length > 0)
10166
10166
  y.setEntity(o.linkedEntity);
10167
10167
  else if (!o.preFiltered) {
10168
- const R = {};
10169
- o.fetchParentEntities !== void 0 && (R.fetchParentEntities = o.fetchParentEntities), o.fetchChildEntities !== void 0 && (R.fetchChildEntities = o.fetchChildEntities), o.relatedEntities && (R.relatedEntities = o.relatedEntities.split(",").map((J) => J.trim())), o.fetchList && (R.fetchList = o.fetchList);
10170
- const z = await y.getEntity(o.entityName, R);
10168
+ const P = {};
10169
+ o.fetchParentEntities !== void 0 && (P.fetchParentEntities = o.fetchParentEntities), o.fetchChildEntities !== void 0 && (P.fetchChildEntities = o.fetchChildEntities), o.relatedEntities && (P.relatedEntities = o.relatedEntities.split(",").map((J) => J.trim())), o.fetchList && (P.fetchList = o.fetchList);
10170
+ const z = await y.getEntity(o.entityName, P);
10171
10171
  p.value = ((_ = (B = z == null ? void 0 : z.response) == null ? void 0 : B.entity) == null ? void 0 : _.presets) || [], console.log("Fetched presets data:", p.value), y.setEntity(z.success ? z.response : { result: [] });
10172
10172
  }
10173
10173
  }
@@ -10179,9 +10179,9 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10179
10179
  y.state.data = B || {};
10180
10180
  };
10181
10181
  return (C, B) => {
10182
- var _, R, z;
10182
+ var _, P, z;
10183
10183
  return m.value ? (b(), S("div", te({ key: 0 }, C.$attrs, { class: "flex flex-col" }), [
10184
- ge(C.$slots, "header", {}, void 0, !0),
10184
+ me(C.$slots, "header", {}, void 0, !0),
10185
10185
  C.$slots["list-item-display"] ? (b(), S(ie, { key: 0 }, [
10186
10186
  w("div", oh, [
10187
10187
  e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), S("div", rh, [
@@ -10202,7 +10202,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10202
10202
  e.showPresets ? (b(), S("div", ih, [
10203
10203
  (b(!0), S(ie, null, Ee(p.value, (J) => (b(), S("button", {
10204
10204
  key: J,
10205
- onClick: (Q) => {
10205
+ onClick: (ye) => {
10206
10206
  h.value = J.name, V(J.name);
10207
10207
  },
10208
10208
  class: ve(["bg-blue-100 text-blue-700 px-4 py-2 rounded-full text-sm", [
@@ -10214,7 +10214,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10214
10214
  w("div", {
10215
10215
  class: ve(["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"]])
10216
10216
  }, [
10217
- (b(!0), S(ie, null, Ee(e.linkedEntity && e.linkedEntity.length > 0 ? e.linkedEntity : ((z = (R = (_ = ee(y)) == null ? void 0 : _.state) == null ? void 0 : R.data) == null ? void 0 : z.result) || [], (J) => ge(C.$slots, "list-item-display", Qt({
10217
+ (b(!0), S(ie, null, Ee(e.linkedEntity && e.linkedEntity.length > 0 ? e.linkedEntity : ((z = (P = (_ = ee(y)) == null ? void 0 : _.state) == null ? void 0 : P.data) == null ? void 0 : z.result) || [], (J) => me(C.$slots, "list-item-display", Qt({
10218
10218
  item: J,
10219
10219
  class: e.listItemClass,
10220
10220
  [e.variable || ""]: J
@@ -10261,7 +10261,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10261
10261
  e.showPresets ? (b(), S("div", hh, [
10262
10262
  (b(!0), S(ie, null, Ee(p.value, (J) => (b(), S("button", {
10263
10263
  key: J,
10264
- onClick: (Q) => {
10264
+ onClick: (ye) => {
10265
10265
  h.value = J.name, V(J.name);
10266
10266
  },
10267
10267
  class: ve(["bg-blue-100 text-blue-700 px-4 py-2 rounded-full text-sm", [
@@ -10270,7 +10270,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10270
10270
  ]])
10271
10271
  }, Z(J.name), 11, bh))), 128))
10272
10272
  ])) : U("", !0),
10273
- (b(!0), S(ie, null, Ee(d.value, (J, Q) => (b(), S("div", { key: Q }, [
10273
+ (b(!0), S(ie, null, Ee(d.value, (J, ye) => (b(), S("div", { key: ye }, [
10274
10274
  (b(), M(Ne(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay : jg), te({
10275
10275
  key: J,
10276
10276
  preFiltered: o.preFiltered,
@@ -10292,9 +10292,9 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10292
10292
  ])
10293
10293
  ])) : U("", !0)
10294
10294
  ]),
10295
- ge(C.$slots, "footer", {}, void 0, !0)
10295
+ me(C.$slots, "footer", {}, void 0, !0)
10296
10296
  ], 64)),
10297
- ge(C.$slots, "footer", {}, void 0, !0)
10297
+ me(C.$slots, "footer", {}, void 0, !0)
10298
10298
  ], 16)) : (b(), S("p", wh, "You do not have the required permissions to access this feature."));
10299
10299
  };
10300
10300
  }
@@ -10455,7 +10455,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10455
10455
  var u, f, d;
10456
10456
  return b(), S("div", Qt(bo(c.$attrs)), [
10457
10457
  c.$slots["list-item-display-tile"] ? (b(), S(ie, { key: 0 }, [
10458
- ge(c.$slots, "header", {}, void 0, !0),
10458
+ me(c.$slots, "header", {}, void 0, !0),
10459
10459
  e.showAddButton ? (b(), M(Et, { key: 0 })) : U("", !0),
10460
10460
  e.showFilters ? (b(), M(Ne(e.listFilter || Ct), { key: 1 })) : U("", !0),
10461
10461
  w("div", Rh, [
@@ -10463,12 +10463,12 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10463
10463
  key: m,
10464
10464
  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"
10465
10465
  }, [
10466
- ge(c.$slots, "list-item-display-tile", Qt({ [e.dynamicPropName || ""]: p }), void 0, !0)
10466
+ me(c.$slots, "list-item-display-tile", Qt({ [e.dynamicPropName || ""]: p }), void 0, !0)
10467
10467
  ]))), 128))
10468
10468
  ]),
10469
- ge(c.$slots, "footer", {}, void 0, !0)
10469
+ me(c.$slots, "footer", {}, void 0, !0)
10470
10470
  ], 64)) : (b(), S(ie, { key: 1 }, [
10471
- ge(c.$slots, "header", {}, void 0, !0),
10471
+ me(c.$slots, "header", {}, void 0, !0),
10472
10472
  e.entityName ? (b(), S("div", _h, [
10473
10473
  e.showFilters ? (b(), M(Ne(e.listFilter || Ct), { key: 0 })) : U("", !0),
10474
10474
  e.showAddButton ? (b(), M(Et, { key: 1 })) : U("", !0),
@@ -10485,7 +10485,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
10485
10485
  e.entityName ? U("", !0) : (b(), S("span", Ah, "Entity Name"))
10486
10486
  ])
10487
10487
  ])),
10488
- ge(c.$slots, "footer", {}, void 0, !0)
10488
+ me(c.$slots, "footer", {}, void 0, !0)
10489
10489
  ], 64))
10490
10490
  ], 16);
10491
10491
  };
@@ -11020,7 +11020,7 @@ var Tt = {
11020
11020
  const { preset: d, options: p } = t;
11021
11021
  let m, h, g, y, k, v, x;
11022
11022
  if (Be(d) && p.transform !== "strict") {
11023
- const { primitive: $, semantic: N, extend: I } = d, O = N || {}, { colorScheme: j } = O, W = Ht(O, ["colorScheme"]), T = I || {}, { colorScheme: V } = T, C = Ht(T, ["colorScheme"]), B = j || {}, { dark: _ } = B, R = Ht(B, ["dark"]), z = V || {}, { dark: J } = z, Q = Ht(z, ["dark"]), L = Be($) ? this._toVariables({ primitive: $ }, p) : {}, D = Be(W) ? this._toVariables({ semantic: W }, p) : {}, A = Be(R) ? this._toVariables({ light: R }, p) : {}, le = Be(_) ? this._toVariables({ dark: _ }, p) : {}, pe = Be(C) ? this._toVariables({ semantic: C }, p) : {}, ce = Be(Q) ? this._toVariables({ light: Q }, p) : {}, fe = Be(J) ? this._toVariables({ dark: J }, p) : {}, [we, $e] = [(a = L.declarations) != null ? a : "", L.tokens], [gt, rt] = [(i = D.declarations) != null ? i : "", D.tokens || []], [$t, yt] = [(s = A.declarations) != null ? s : "", A.tokens || []], [ae, X] = [(c = le.declarations) != null ? c : "", le.tokens || []], [Re, at] = [(l = pe.declarations) != null ? l : "", pe.tokens || []], [Me, Pe] = [(u = ce.declarations) != null ? u : "", ce.tokens || []], [_e, Ke] = [(f = fe.declarations) != null ? f : "", fe.tokens || []];
11023
+ const { primitive: $, semantic: D, extend: I } = d, O = D || {}, { colorScheme: j } = O, W = Ht(O, ["colorScheme"]), T = I || {}, { colorScheme: V } = T, C = Ht(T, ["colorScheme"]), B = j || {}, { dark: _ } = B, P = Ht(B, ["dark"]), z = V || {}, { dark: J } = z, ye = Ht(z, ["dark"]), L = Be($) ? this._toVariables({ primitive: $ }, p) : {}, N = Be(W) ? this._toVariables({ semantic: W }, p) : {}, R = Be(P) ? this._toVariables({ light: P }, p) : {}, Y = Be(_) ? this._toVariables({ dark: _ }, p) : {}, de = Be(C) ? this._toVariables({ semantic: C }, p) : {}, ue = Be(ye) ? this._toVariables({ light: ye }, p) : {}, fe = Be(J) ? this._toVariables({ dark: J }, p) : {}, [we, $e] = [(a = L.declarations) != null ? a : "", L.tokens], [gt, rt] = [(i = N.declarations) != null ? i : "", N.tokens || []], [$t, yt] = [(s = R.declarations) != null ? s : "", R.tokens || []], [ae, X] = [(c = Y.declarations) != null ? c : "", Y.tokens || []], [Re, at] = [(l = de.declarations) != null ? l : "", de.tokens || []], [Me, Pe] = [(u = ue.declarations) != null ? u : "", ue.tokens || []], [_e, Ke] = [(f = fe.declarations) != null ? f : "", fe.tokens || []];
11024
11024
  m = this.transformCSS(e, we, "light", "variable", p, o, r), h = $e;
11025
11025
  const Ft = this.transformCSS(e, `${gt}${$t}`, "light", "variable", p, o, r), Je = this.transformCSS(e, `${ae}`, "dark", "variable", p, o, r);
11026
11026
  g = `${Ft}${Je}`, y = [.../* @__PURE__ */ new Set([...rt, ...yt, ...X])];
@@ -11047,8 +11047,8 @@ var Tt = {
11047
11047
  var s, c, l;
11048
11048
  let u, f, d;
11049
11049
  if (Be(t) && n.transform !== "strict") {
11050
- const p = e.replace("-directive", ""), m = t, { colorScheme: h, extend: g, css: y } = m, k = Ht(m, ["colorScheme", "extend", "css"]), v = g || {}, { colorScheme: x } = v, $ = Ht(v, ["colorScheme"]), N = h || {}, { dark: I } = N, O = Ht(N, ["dark"]), j = x || {}, { dark: W } = j, T = Ht(j, ["dark"]), V = Be(k) ? this._toVariables({ [p]: We(We({}, k), $) }, n) : {}, C = Be(O) ? this._toVariables({ [p]: We(We({}, O), T) }, n) : {}, B = Be(I) ? this._toVariables({ [p]: We(We({}, I), W) }, n) : {}, [_, R] = [(s = V.declarations) != null ? s : "", V.tokens || []], [z, J] = [(c = C.declarations) != null ? c : "", C.tokens || []], [Q, L] = [(l = B.declarations) != null ? l : "", B.tokens || []], D = this.transformCSS(p, `${_}${z}`, "light", "variable", n, r, a, i), A = this.transformCSS(p, Q, "dark", "variable", n, r, a, i);
11051
- u = `${D}${A}`, f = [.../* @__PURE__ */ new Set([...R, ...J, ...L])], d = St(y, { dt: Jn });
11050
+ const p = e.replace("-directive", ""), m = t, { colorScheme: h, extend: g, css: y } = m, k = Ht(m, ["colorScheme", "extend", "css"]), v = g || {}, { colorScheme: x } = v, $ = Ht(v, ["colorScheme"]), D = h || {}, { dark: I } = D, O = Ht(D, ["dark"]), j = x || {}, { dark: W } = j, T = Ht(j, ["dark"]), V = Be(k) ? this._toVariables({ [p]: We(We({}, k), $) }, n) : {}, C = Be(O) ? this._toVariables({ [p]: We(We({}, O), T) }, n) : {}, B = Be(I) ? this._toVariables({ [p]: We(We({}, I), W) }, n) : {}, [_, P] = [(s = V.declarations) != null ? s : "", V.tokens || []], [z, J] = [(c = C.declarations) != null ? c : "", C.tokens || []], [ye, L] = [(l = B.declarations) != null ? l : "", B.tokens || []], N = this.transformCSS(p, `${_}${z}`, "light", "variable", n, r, a, i), R = this.transformCSS(p, ye, "dark", "variable", n, r, a, i);
11051
+ u = `${N}${R}`, f = [.../* @__PURE__ */ new Set([...P, ...J, ...L])], d = St(y, { dt: Jn });
11052
11052
  }
11053
11053
  return {
11054
11054
  css: u,
@@ -11349,27 +11349,27 @@ function $b(e) {
11349
11349
  }
11350
11350
  var Ob = 0;
11351
11351
  function Tb(e) {
11352
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = E(!1), o = E(e), r = E(null), a = ua() ? window.document : void 0, i = t.document, s = i === void 0 ? a : i, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, f = u === void 0 ? !1 : u, d = t.name, p = d === void 0 ? "style_".concat(++Ob) : d, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, y = g === void 0 ? void 0 : g, k = t.nonce, v = k === void 0 ? void 0 : k, x = t.first, $ = x === void 0 ? !1 : x, N = t.onMounted, I = N === void 0 ? void 0 : N, O = t.onUpdated, j = O === void 0 ? void 0 : O, W = t.onLoad, T = W === void 0 ? void 0 : W, V = t.props, C = V === void 0 ? {} : V, B = function() {
11352
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = E(!1), o = E(e), r = E(null), a = ua() ? window.document : void 0, i = t.document, s = i === void 0 ? a : i, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, f = u === void 0 ? !1 : u, d = t.name, p = d === void 0 ? "style_".concat(++Ob) : d, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, y = g === void 0 ? void 0 : g, k = t.nonce, v = k === void 0 ? void 0 : k, x = t.first, $ = x === void 0 ? !1 : x, D = t.onMounted, I = D === void 0 ? void 0 : D, O = t.onUpdated, j = O === void 0 ? void 0 : O, W = t.onLoad, T = W === void 0 ? void 0 : W, V = t.props, C = V === void 0 ? {} : V, B = function() {
11353
11353
  }, _ = function(J) {
11354
- var Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11354
+ var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11355
11355
  if (s) {
11356
- var L = Ii(Ii({}, C), Q), D = L.name || p, A = L.id || h, le = L.nonce || v;
11357
- r.value = s.querySelector('style[data-primevue-style-id="'.concat(D, '"]')) || s.getElementById(A) || s.createElement("style"), r.value.isConnected || (o.value = J || e, Mo(r.value, {
11356
+ var L = Ii(Ii({}, C), ye), N = L.name || p, R = L.id || h, Y = L.nonce || v;
11357
+ r.value = s.querySelector('style[data-primevue-style-id="'.concat(N, '"]')) || s.getElementById(R) || s.createElement("style"), r.value.isConnected || (o.value = J || e, Mo(r.value, {
11358
11358
  type: "text/css",
11359
- id: A,
11359
+ id: R,
11360
11360
  media: y,
11361
- nonce: le
11362
- }), $ ? s.head.prepend(r.value) : s.head.appendChild(r.value), db(r.value, "data-primevue-style-id", D), Mo(r.value, L), r.value.onload = function(pe) {
11363
- return T == null ? void 0 : T(pe, {
11364
- name: D
11361
+ nonce: Y
11362
+ }), $ ? s.head.prepend(r.value) : s.head.appendChild(r.value), db(r.value, "data-primevue-style-id", N), Mo(r.value, L), r.value.onload = function(de) {
11363
+ return T == null ? void 0 : T(de, {
11364
+ name: N
11365
11365
  });
11366
- }, I == null || I(D)), !n.value && (B = Oe(o, function(pe) {
11367
- r.value.textContent = pe, j == null || j(D);
11366
+ }, I == null || I(N)), !n.value && (B = Oe(o, function(de) {
11367
+ r.value.textContent = de, j == null || j(N);
11368
11368
  }, {
11369
11369
  immediate: !0
11370
11370
  }), n.value = !0);
11371
11371
  }
11372
- }, R = function() {
11372
+ }, P = function() {
11373
11373
  !s || !n.value || (B(), lb(r.value) && s.head.removeChild(r.value), n.value = !1);
11374
11374
  };
11375
11375
  return l && !f && $b(_), {
@@ -11377,7 +11377,7 @@ function Tb(e) {
11377
11377
  name: p,
11378
11378
  el: r,
11379
11379
  css: o,
11380
- unload: R,
11380
+ unload: P,
11381
11381
  load: _,
11382
11382
  isLoaded: Is(n)
11383
11383
  };
@@ -12404,7 +12404,7 @@ var Jb = function(t) {
12404
12404
  function n0(e, t, n, o, r, a) {
12405
12405
  return b(), S("span", te({
12406
12406
  class: e.cx("root")
12407
- }, e.ptmi("root")), [ge(e.$slots, "default", {}, function() {
12407
+ }, e.ptmi("root")), [me(e.$slots, "default", {}, function() {
12408
12408
  return [et(Z(e.value), 1)];
12409
12409
  })], 16);
12410
12410
  }
@@ -12584,8 +12584,8 @@ var Ce = {
12584
12584
  }, a), v), De.setLoadedStyleName(r.$style.name);
12585
12585
  }
12586
12586
  if (!De.isStyleNameLoaded("layer-order")) {
12587
- var x, $, N = (x = r.$style) === null || x === void 0 || ($ = x.getLayerOrderThemeCSS) === null || $ === void 0 ? void 0 : $.call(x);
12588
- qe.load(N, Fe({
12587
+ var x, $, D = (x = r.$style) === null || x === void 0 || ($ = x.getLayerOrderThemeCSS) === null || $ === void 0 ? void 0 : $.call(x);
12588
+ qe.load(D, Fe({
12589
12589
  name: "layer-order",
12590
12590
  first: !0
12591
12591
  }, a)), De.setLoadedStyleName("layer-order");
@@ -12674,12 +12674,12 @@ var Ce = {
12674
12674
  return Ce._getPTValue(s.$instance, v, x, $, !1);
12675
12675
  },
12676
12676
  cx: function() {
12677
- var v, x, $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12678
- return (v = s.$instance) !== null && v !== void 0 && v.isUnstyled() ? void 0 : Ce._getOptionValue((x = s.$instance) === null || x === void 0 || (x = x.$style) === null || x === void 0 ? void 0 : x.classes, $, Fe({}, N));
12677
+ var v, x, $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12678
+ return (v = s.$instance) !== null && v !== void 0 && v.isUnstyled() ? void 0 : Ce._getOptionValue((x = s.$instance) === null || x === void 0 || (x = x.$style) === null || x === void 0 ? void 0 : x.classes, $, Fe({}, D));
12679
12679
  },
12680
12680
  sx: function() {
12681
- var v, x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, N = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
12682
- return $ ? Ce._getOptionValue((v = s.$instance) === null || v === void 0 || (v = v.$style) === null || v === void 0 ? void 0 : v.inlineStyles, x, Fe({}, N)) : void 0;
12681
+ var v, x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, D = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
12682
+ return $ ? Ce._getOptionValue((v = s.$instance) === null || v === void 0 || (v = v.$style) === null || v === void 0 ? void 0 : v.inlineStyles, x, Fe({}, D)) : void 0;
12683
12683
  }
12684
12684
  }, y), s.$instance = s._$instances[t], (d = (p = s.$instance)[i]) === null || d === void 0 || d.call(p, s, c, l, u), s["$".concat(t)] = s.$instance, Ce._hook(t, i, s, c, l, u), s.$pd || (s.$pd = {}), s.$pd[t] = Fe(Fe({}, (m = s.$pd) === null || m === void 0 ? void 0 : m[t]), {}, {
12685
12685
  name: t,
@@ -13697,7 +13697,7 @@ var x0 = function(t) {
13697
13697
  };
13698
13698
  function $0(e, t, n, o, r, a) {
13699
13699
  var i = q("SpinnerIcon"), s = q("Badge"), c = qr("ripple");
13700
- return e.asChild ? ge(e.$slots, "default", {
13700
+ return e.asChild ? me(e.$slots, "default", {
13701
13701
  key: 1,
13702
13702
  class: ve(e.cx("root")),
13703
13703
  a11yAttrs: a.a11yAttrs
@@ -13706,8 +13706,8 @@ function $0(e, t, n, o, r, a) {
13706
13706
  class: e.cx("root")
13707
13707
  }, a.attrs), {
13708
13708
  default: oe(function() {
13709
- return [ge(e.$slots, "default", {}, function() {
13710
- return [e.loading ? ge(e.$slots, "loadingicon", te({
13709
+ return [me(e.$slots, "default", {}, function() {
13710
+ return [e.loading ? me(e.$slots, "loadingicon", te({
13711
13711
  key: 0,
13712
13712
  class: [e.cx("loadingIcon"), e.cx("icon")]
13713
13713
  }, e.ptm("loadingIcon")), function() {
@@ -13719,7 +13719,7 @@ function $0(e, t, n, o, r, a) {
13719
13719
  class: [e.cx("loadingIcon"), e.cx("icon")],
13720
13720
  spin: ""
13721
13721
  }, e.ptm("loadingIcon")), null, 16, ["class"]))];
13722
- }) : ge(e.$slots, "icon", te({
13722
+ }) : me(e.$slots, "icon", te({
13723
13723
  key: 1,
13724
13724
  class: [e.cx("icon")]
13725
13725
  }, e.ptm("icon")), function() {
@@ -13859,8 +13859,8 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
13859
13859
  const o = Ue(), r = new bt(), a = n, i = e, s = E("id"), c = E(1), l = E(25), u = E(0), f = E(null), d = E([]), p = E([]), m = E(!0), h = E(null), { hasMatchingRoleAndPermissions: g } = Sn(), y = rr();
13860
13860
  sn("entityObject", y);
13861
13861
  const k = E(null), v = (_) => {
13862
- const R = k.value;
13863
- R && (R.scrollLeft += _ * 266);
13862
+ const P = k.value;
13863
+ P && (P.scrollLeft += _ * 266);
13864
13864
  };
13865
13865
  Le(async () => {
13866
13866
  m.value = await g(i.roles, i.permissions), console.log("props entitylist", i.preFiltered), i.preFiltered && j();
@@ -13873,14 +13873,14 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
13873
13873
  f.value = _, y.state.data.filters = _, O(f.value);
13874
13874
  }, $ = () => {
13875
13875
  f.value = null, s.value = "id", c.value = 1, y.state.data.filters = {}, O(f.value);
13876
- }, N = async (_, R) => {
13877
- s.value = _, c.value = R, f.value = y.state.data.filters ? y.state.data.filters : f.value, O(f.value);
13876
+ }, D = async (_, P) => {
13877
+ s.value = _, c.value = P, f.value = y.state.data.filters ? y.state.data.filters : f.value, O(f.value);
13878
13878
  }, I = (_) => {
13879
13879
  l.value = _, f.value = y.state.data.filters ? y.state.data.filters : f.value, O(f.value);
13880
13880
  }, O = async (_) => {
13881
- var J, Q;
13881
+ var J, ye;
13882
13882
  console.log("entity state filter", y);
13883
- const R = {
13883
+ const P = {
13884
13884
  sortBy: [s.value],
13885
13885
  sortDirection: c.value === 1 ? "ASC" : "DESC",
13886
13886
  pageSize: l.value,
@@ -13889,9 +13889,9 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
13889
13889
  filter: _,
13890
13890
  fullTextSearch: ""
13891
13891
  };
13892
- i.fetchParentEntities && (R.fetchParentEntities = i.fetchParentEntities), i.fetchChildEntities !== void 0 && (R.fetchChildEntities = i.fetchChildEntities), i.relatedEntities && (R.relatedEntities = i.relatedEntities.split(",").map((L) => L.trim())), i.fetchList && (R.fetchList = i.fetchList);
13893
- const z = await r.searchEntityRecords(i.entityName, R);
13894
- z && z.response ? (y.setEntity(z.response), p.value = ((Q = (J = y == null ? void 0 : y.state) == null ? void 0 : J.data) == null ? void 0 : Q.presets) || []) : console.error("Error fetching entity data:", z);
13892
+ i.fetchParentEntities && (P.fetchParentEntities = i.fetchParentEntities), i.fetchChildEntities !== void 0 && (P.fetchChildEntities = i.fetchChildEntities), i.relatedEntities && (P.relatedEntities = i.relatedEntities.split(",").map((L) => L.trim())), i.fetchList && (P.fetchList = i.fetchList);
13893
+ const z = await r.searchEntityRecords(i.entityName, P);
13894
+ z && z.response ? (y.setEntity(z.response), p.value = ((ye = (J = y == null ? void 0 : y.state) == null ? void 0 : J.data) == null ? void 0 : ye.presets) || []) : console.error("Error fetching entity data:", z);
13895
13895
  }, j = async () => {
13896
13896
  if (!i.preFiltered) return;
13897
13897
  const _ = y.parsePrefilter(i.preFiltered);
@@ -13906,39 +13906,39 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
13906
13906
  console.log("filter data in unordered", _);
13907
13907
  },
13908
13908
  addToCurrentList: (_) => {
13909
- var R, z;
13910
- (z = (R = y == null ? void 0 : y.state) == null ? void 0 : R.data) != null && z.result && y.state.data.result.push(_);
13909
+ var P, z;
13910
+ (z = (P = y == null ? void 0 : y.state) == null ? void 0 : P.data) != null && z.result && y.state.data.result.push(_);
13911
13911
  },
13912
13912
  deleteFromCurrentList: (_) => {
13913
- const R = y.state.data.result.indexOf(_);
13914
- y.state.data.result.splice(R, 1);
13913
+ const P = y.state.data.result.indexOf(_);
13914
+ y.state.data.result.splice(P, 1);
13915
13915
  },
13916
13916
  searchRecord: x,
13917
13917
  searchByPageSize: I,
13918
- searchBySort: N,
13918
+ searchBySort: D,
13919
13919
  clearFilters: $
13920
13920
  }), Oe(
13921
13921
  () => o.globalConfigs.appId,
13922
13922
  async (_) => {
13923
- var R, z;
13923
+ var P, z;
13924
13924
  if (_) {
13925
13925
  if (i.linkedEntity && i.linkedEntity.length > 0)
13926
13926
  y.setEntity(i.linkedEntity);
13927
13927
  else if (!i.preFiltered) {
13928
13928
  const J = await y.getEntity(i.entityName);
13929
- p.value = ((z = (R = J == null ? void 0 : J.response) == null ? void 0 : R.entity) == null ? void 0 : z.presets) || [], y.setEntity(J.success ? J.response : { result: [] });
13929
+ p.value = ((z = (P = J == null ? void 0 : J.response) == null ? void 0 : P.entity) == null ? void 0 : z.presets) || [], y.setEntity(J.success ? J.response : { result: [] });
13930
13930
  }
13931
13931
  }
13932
13932
  },
13933
13933
  { immediate: !0 }
13934
13934
  );
13935
13935
  const B = async (_) => {
13936
- const R = await y.applyPreset(_, i.entityName);
13937
- y.state.data = R || {};
13936
+ const P = await y.applyPreset(_, i.entityName);
13937
+ y.state.data = P || {};
13938
13938
  };
13939
- return (_, R) => (b(), S("div", Qt(bo(_.$attrs)), [
13939
+ return (_, P) => (b(), S("div", Qt(bo(_.$attrs)), [
13940
13940
  _.$slots["list-item-display"] ? (b(), S(ie, { key: 0 }, [
13941
- ge(_.$slots, "header", {}, void 0, !0),
13941
+ me(_.$slots, "header", {}, void 0, !0),
13942
13942
  w("div", O0, [
13943
13943
  e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), S("div", T0, [
13944
13944
  w("div", I0, [
@@ -13968,7 +13968,7 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
13968
13968
  ])) : U("", !0),
13969
13969
  d.value.length > 0 ? (b(), S("div", P0, [
13970
13970
  w("button", {
13971
- onClick: R[0] || (R[0] = (z) => v(-1)),
13971
+ onClick: P[0] || (P[0] = (z) => v(-1)),
13972
13972
  class: "absolute left-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
13973
13973
  }, " ◀ "),
13974
13974
  w("div", {
@@ -13980,11 +13980,11 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
13980
13980
  key: z.id,
13981
13981
  class: "min-w-[250px] flex-shrink-0"
13982
13982
  }, [
13983
- ge(_.$slots, "list-item-display", { item: z }, void 0, !0)
13983
+ me(_.$slots, "list-item-display", { item: z }, void 0, !0)
13984
13984
  ]))), 128))
13985
13985
  ], 512),
13986
13986
  w("button", {
13987
- onClick: R[1] || (R[1] = (z) => v(1)),
13987
+ onClick: P[1] || (P[1] = (z) => v(1)),
13988
13988
  class: "absolute right-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
13989
13989
  }, " ▶ ")
13990
13990
  ])) : U("", !0),
@@ -14002,9 +14002,9 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
14002
14002
  })) : U("", !0)
14003
14003
  ])
14004
14004
  ])) : U("", !0),
14005
- ge(_.$slots, "footer", {}, void 0, !0)
14005
+ me(_.$slots, "footer", {}, void 0, !0)
14006
14006
  ], 64)) : (b(), S(ie, { key: 1 }, [
14007
- ge(_.$slots, "header", {}, void 0, !0),
14007
+ me(_.$slots, "header", {}, void 0, !0),
14008
14008
  e.entityName ? (b(), S("div", L0, [
14009
14009
  w("div", V0, [
14010
14010
  e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), S("div", z0, [
@@ -14024,7 +14024,7 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
14024
14024
  ]),
14025
14025
  d.value.length > 0 ? (b(), S("div", j0, [
14026
14026
  w("button", {
14027
- onClick: R[2] || (R[2] = (z) => v(-1)),
14027
+ onClick: P[2] || (P[2] = (z) => v(-1)),
14028
14028
  class: "absolute left-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
14029
14029
  }, " ◀ "),
14030
14030
  w("div", {
@@ -14040,7 +14040,7 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
14040
14040
  ]))), 128))
14041
14041
  ], 512),
14042
14042
  w("button", {
14043
- onClick: R[3] || (R[3] = (z) => v(1)),
14043
+ onClick: P[3] || (P[3] = (z) => v(1)),
14044
14044
  class: "absolute right-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
14045
14045
  }, " ▶ ")
14046
14046
  ])) : U("", !0),
@@ -14060,11 +14060,11 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
14060
14060
  ])) : U("", !0)
14061
14061
  ])) : (b(), S("div", _0, [
14062
14062
  w("p", N0, [
14063
- R[4] || (R[4] = et(" Error: Missing required props - ")),
14063
+ P[4] || (P[4] = et(" Error: Missing required props - ")),
14064
14064
  e.entityName ? U("", !0) : (b(), S("span", D0, "Entity Name"))
14065
14065
  ])
14066
14066
  ])),
14067
- ge(_.$slots, "footer", {}, void 0, !0)
14067
+ me(_.$slots, "footer", {}, void 0, !0)
14068
14068
  ], 64))
14069
14069
  ], 16));
14070
14070
  }
@@ -15399,7 +15399,7 @@ function ev() {
15399
15399
  }, t._ = n = {
15400
15400
  // formats numbers separators, decimals places, signs, abbreviations
15401
15401
  numberToFormat: function(l, u, f) {
15402
- var d = a[t.options.currentLocale], p = !1, m = !1, h = 0, g = "", y = 1e12, k = 1e9, v = 1e6, x = 1e3, $ = "", N = !1, I, O, j, W, T, V, C;
15402
+ var d = a[t.options.currentLocale], p = !1, m = !1, h = 0, g = "", y = 1e12, k = 1e9, v = 1e6, x = 1e3, $ = "", D = !1, I, O, j, W, T, V, C;
15403
15403
  if (l = l || 0, O = Math.abs(l), t._.includes(u, "(") ? (p = !0, u = u.replace(/[\(|\)]/g, "")) : (t._.includes(u, "+") || t._.includes(u, "-")) && (T = t._.includes(u, "+") ? u.indexOf("+") : l < 0 ? u.indexOf("-") : -1, u = u.replace(/[\+|\-]/g, "")), t._.includes(u, "a") && (I = u.match(/a(k|m|b|t)?/), I = I ? I[1] : !1, t._.includes(u, " a") && (g = " "), u = u.replace(new RegExp(g + "a[kmbt]?"), ""), O >= y && !I || I === "t" ? (g += d.abbreviations.trillion, l = l / y) : O < y && O >= k && !I || I === "b" ? (g += d.abbreviations.billion, l = l / k) : O < k && O >= v && !I || I === "m" ? (g += d.abbreviations.million, l = l / v) : (O < v && O >= x && !I || I === "k") && (g += d.abbreviations.thousand, l = l / x)), t._.includes(u, "[.]") && (m = !0, u = u.replace("[.]", ".")), j = l.toString().split(".")[0], W = u.split(".")[1], V = u.indexOf(","), h = (u.split(".")[0].split(",")[0].match(/0/g) || []).length, W ? (t._.includes(W, "[") ? (W = W.replace("]", ""), W = W.split("["), $ = t._.toFixed(l, W[0].length + W[1].length, f, W[1].length)) : $ = t._.toFixed(l, W.length, f), j = $.split(".")[0], t._.includes($, ".") ? $ = d.delimiters.decimal + $.split(".")[1] : $ = "", m && Number($.slice(1)) === 0 && ($ = "")) : j = t._.toFixed(l, 0, f), g && !I && Number(j) >= 1e3 && g !== d.abbreviations.trillion)
15404
15404
  switch (j = String(Number(j) / 1e3), g) {
15405
15405
  case d.abbreviations.thousand:
@@ -15412,10 +15412,10 @@ function ev() {
15412
15412
  g = d.abbreviations.trillion;
15413
15413
  break;
15414
15414
  }
15415
- if (t._.includes(j, "-") && (j = j.slice(1), N = !0), j.length < h)
15415
+ if (t._.includes(j, "-") && (j = j.slice(1), D = !0), j.length < h)
15416
15416
  for (var B = h - j.length; B > 0; B--)
15417
15417
  j = "0" + j;
15418
- return V > -1 && (j = j.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + d.delimiters.thousands)), u.indexOf(".") === 0 && (j = ""), C = j + $ + (g || ""), p ? C = (p && N ? "(" : "") + C + (p && N ? ")" : "") : T >= 0 ? C = T === 0 ? (N ? "-" : "+") + C : C + (N ? "-" : "+") : N && (C = "-" + C), C;
15418
+ return V > -1 && (j = j.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + d.delimiters.thousands)), u.indexOf(".") === 0 && (j = ""), C = j + $ + (g || ""), p ? C = (p && D ? "(" : "") + C + (p && D ? ")" : "") : T >= 0 ? C = T === 0 ? (D ? "-" : "+") + C : C + (D ? "-" : "+") : D && (C = "-" + C), C;
15419
15419
  },
15420
15420
  // unformats numbers separators, decimals places, signs, abbreviations
15421
15421
  stringToNumber: function(l) {
@@ -15773,193 +15773,194 @@ const Ji = /* @__PURE__ */ hl(tv), Zi = {
15773
15773
  function tu() {
15774
15774
  const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
15775
15775
  return {
15776
- getEntities: async (Q = !1) => {
15777
- const L = a();
15778
- return await t(`/api/app/v1/${L}/entity`, Q);
15776
+ getEntities: async (L = !1) => {
15777
+ const N = a();
15778
+ return await t(`/api/app/v1/${N}/entity`, L);
15779
15779
  },
15780
- getEntity: async (Q, L = !1) => {
15781
- const D = a();
15782
- return await t(`/api/app/v1/${D}/entity/${Q}`, L);
15780
+ getEntity: async (L, N = !1) => {
15781
+ const R = a();
15782
+ return await t(`/api/app/v1/${R}/entity/${L}`, N);
15783
15783
  },
15784
- saveEntity: async (Q, L = !1) => {
15785
- const D = a();
15786
- return await n(`/api/app/v1/${D}/entity`, Q, L);
15784
+ saveEntity: async (L, N = !1) => {
15785
+ const R = a();
15786
+ return await n(`/api/app/v1/${R}/entity`, L, N);
15787
15787
  },
15788
- updateEntityGeneralSettings: async (Q, L, D = !1) => {
15789
- const A = a();
15788
+ updateEntityGeneralSettings: async (L, N, R = !1) => {
15789
+ const Y = a();
15790
15790
  return await o(
15791
- `/api/app/v1/${A}/entity/${Q}/rename`,
15792
- L,
15793
- D
15791
+ `/api/app/v1/${Y}/entity/${L}/rename`,
15792
+ N,
15793
+ R
15794
15794
  );
15795
15795
  },
15796
- updateEntityAuditable: async (Q, L, D = !1) => {
15797
- const A = a();
15796
+ updateEntityAuditable: async (L, N, R = !1) => {
15797
+ const Y = a();
15798
15798
  return await o(
15799
- `/api/app/v1/${A}/entity/${Q}/auditable`,
15800
- L,
15801
- D
15799
+ `/api/app/v1/${Y}/entity/${L}/auditable`,
15800
+ N,
15801
+ R
15802
15802
  );
15803
15803
  },
15804
- updateEntityRevisionEnabled: async (Q, L, D = !1) => {
15805
- const A = a();
15804
+ updateEntityRevisionEnabled: async (L, N, R = !1) => {
15805
+ const Y = a();
15806
15806
  return await o(
15807
- `/api/app/v1/${A}/entity/${Q}/revision`,
15808
- L,
15809
- D
15807
+ `/api/app/v1/${Y}/entity/${L}/revision`,
15808
+ N,
15809
+ R
15810
15810
  );
15811
15811
  },
15812
- updateEntitySoftDelete: async (Q, L, D = !1) => {
15813
- const A = a();
15812
+ updateEntitySoftDelete: async (L, N, R = !1) => {
15813
+ const Y = a();
15814
15814
  return await o(
15815
- `/api/app/v1/${A}/entity/${Q}/soft-delete`,
15816
- L,
15817
- D
15815
+ `/api/app/v1/${Y}/entity/${L}/soft-delete`,
15816
+ N,
15817
+ R
15818
15818
  );
15819
15819
  },
15820
- updateEntityDeleteProtected: async (Q, L, D = !1) => {
15821
- const A = a();
15820
+ updateEntityDeleteProtected: async (L, N, R = !1) => {
15821
+ const Y = a();
15822
15822
  return await o(
15823
- `/api/app/v1/${A}/entity/${Q}/delete-protect`,
15824
- L,
15825
- D
15823
+ `/api/app/v1/${Y}/entity/${L}/delete-protect`,
15824
+ N,
15825
+ R
15826
15826
  );
15827
15827
  },
15828
- updateEntityColumn: async (Q, L, D = !1) => {
15829
- const A = a();
15828
+ updateEntityColumn: async (L, N, R = !1) => {
15829
+ const Y = a();
15830
15830
  return await o(
15831
- `/api/app/v1/${A}/entity/${Q}/column`,
15832
- L,
15833
- D
15831
+ `/api/app/v1/${Y}/entity/${L}/column`,
15832
+ N,
15833
+ R
15834
15834
  );
15835
15835
  },
15836
- saveEntityColumn: async (Q, L, D = !1) => {
15837
- const A = a();
15836
+ saveEntityColumn: async (L, N, R = !1) => {
15837
+ const Y = a();
15838
15838
  return await n(
15839
- `/api/app/v1/${A}/entity/${Q}/column`,
15840
- L,
15841
- D
15839
+ `/api/app/v1/${Y}/entity/${L}/column`,
15840
+ N,
15841
+ R
15842
15842
  );
15843
15843
  },
15844
- dropEntityColumn: async (Q, L, D = !1) => {
15845
- const A = a();
15844
+ dropEntityColumn: async (L, N, R = !1) => {
15845
+ const Y = a();
15846
15846
  return await r(
15847
- `/api/app/v1/${A}/entity/${Q}/column/${L}`,
15847
+ `/api/app/v1/${Y}/entity/${L}/column/${N}`,
15848
15848
  {},
15849
- D
15849
+ R
15850
15850
  );
15851
15851
  },
15852
- saveForeignKey: async (Q, L, D = !1) => {
15853
- const A = a();
15854
- return await o(`/api/app/v1/${A}/entity/foreignKey`, L, D);
15852
+ saveForeignKey: async (L, N, R = !1) => {
15853
+ const Y = a();
15854
+ return await o(`/api/app/v1/${Y}/entity/foreignKey`, N, R);
15855
15855
  },
15856
- dropForeignKey: async (Q, L = !1) => {
15857
- const D = a();
15858
- return await r(`/api/app/v1/${D}/entity/foreignKey`, Q, L);
15856
+ dropForeignKey: async (L, N = !1) => {
15857
+ const R = a();
15858
+ return await r(`/api/app/v1/${R}/entity/foreignKey`, L, N);
15859
15859
  },
15860
- saveUniqueConstraint: async (Q, L, D = !1) => {
15861
- const A = a();
15860
+ saveUniqueConstraint: async (L, N, R = !1) => {
15861
+ const Y = a();
15862
15862
  return await n(
15863
- `/api/app/v1/${A}/entity/${Q}/column/${L}/constraint`,
15864
- D
15863
+ `/api/app/v1/${Y}/entity/${L}/column/${N}/constraint`,
15864
+ R
15865
15865
  );
15866
15866
  },
15867
- dropUniqueConstraint: async (Q, L, D = !1) => {
15868
- const A = a();
15867
+ dropUniqueConstraint: async (L, N, R = !1) => {
15868
+ const Y = a();
15869
15869
  return await r(
15870
- `/api/app/v1/${A}/entity/${Q}/column/${L}/constraint`,
15870
+ `/api/app/v1/${Y}/entity/${L}/column/${N}/constraint`,
15871
15871
  {},
15872
- D
15872
+ R
15873
15873
  );
15874
15874
  },
15875
- saveIndex: async (Q, L, D = !1) => {
15876
- const A = a();
15875
+ saveIndex: async (L, N, R = !1) => {
15876
+ const Y = a();
15877
15877
  return await n(
15878
- `/api/app/v1/${A}/entity/${Q}/column-index`,
15879
- L,
15880
- D
15878
+ `/api/app/v1/${Y}/entity/${L}/column-index`,
15879
+ N,
15880
+ R
15881
15881
  );
15882
15882
  },
15883
- dropIndex: async (Q, L, D = !1) => {
15884
- const A = a();
15883
+ dropIndex: async (L, N, R = !1) => {
15884
+ const Y = a();
15885
15885
  return await r(
15886
- `/api/app/v1/${A}/entity/${Q}/column-index`,
15887
- L,
15888
- D
15886
+ `/api/app/v1/${Y}/entity/${L}/column-index`,
15887
+ N,
15888
+ R
15889
15889
  );
15890
15890
  },
15891
- deleteEntity: async (Q, L = !1) => {
15892
- const D = a();
15893
- return await r(`/api/app/v1/${D}/entity/${Q}`, {}, L);
15891
+ deleteEntity: async (L, N = !1) => {
15892
+ const R = a();
15893
+ return await r(`/api/app/v1/${R}/entity/${L}`, {}, N);
15894
15894
  },
15895
- getEntityEvents: async (Q, L = !1) => {
15896
- const D = a();
15897
- return await t(`/api/app/v1/${D}/entity/${Q}/event`, L);
15895
+ getEntityEvents: async (L, N = !1) => {
15896
+ const R = a();
15897
+ return await t(`/api/app/v1/${R}/entity/${L}/event`, N);
15898
15898
  },
15899
- saveEntityEvent: async (Q, L, D = !1) => {
15900
- const A = a();
15899
+ saveEntityEvent: async (L, N, R = !1) => {
15900
+ const Y = a();
15901
15901
  return await n(
15902
- `/api/app/v1/${A}/entity/${Q}/event`,
15903
- L,
15904
- D
15902
+ `/api/app/v1/${Y}/entity/${L}/event`,
15903
+ N,
15904
+ R
15905
15905
  );
15906
15906
  },
15907
- deleteEntityEvent: async (Q, L) => {
15908
- const D = a();
15909
- return await r(`/api/app/v1/${D}/entity/${Q}/event/${L}`);
15907
+ deleteEntityEvent: async (L, N) => {
15908
+ const R = a();
15909
+ return await r(`/api/app/v1/${R}/entity/${L}/event/${N}`);
15910
15910
  },
15911
- updateEntityEvent: async (Q, L, D, A = !1) => {
15912
- const le = a();
15911
+ updateEntityEvent: async (L, N, R, Y = !1) => {
15912
+ const de = a();
15913
15913
  return await o(
15914
- `/api/app/v1/${le}/entity/${Q}/event/${L}`,
15915
- D,
15916
- A
15914
+ `/api/app/v1/${de}/entity/${L}/event/${N}`,
15915
+ R,
15916
+ Y
15917
15917
  );
15918
15918
  },
15919
- getActionTypes: async (Q = !1) => {
15920
- const L = a();
15921
- return await t(`/api/app/v1/${L}/action-type`, Q);
15919
+ getActionTypes: async (L = !1) => {
15920
+ const N = a();
15921
+ return await t(`/api/app/v1/${N}/action-type`, L);
15922
15922
  },
15923
- getActionConfigByType: async (Q, L = !1) => {
15924
- const D = a();
15925
- return await t(`/api/app/v1/${D}/notification-config/${Q}`, L);
15923
+ getActionConfigByType: async (L, N = !1) => {
15924
+ const R = a();
15925
+ return await t(`/api/app/v1/${R}/notification-config/${L}`, N);
15926
15926
  },
15927
- enableCache: async (Q, L, D = !1) => {
15928
- const A = a();
15927
+ enableCache: async (L, N, R = !1) => {
15928
+ const Y = a();
15929
15929
  return await o(
15930
- `/api/app/v1/${A}/entity/${Q}/enableCache`,
15931
- L,
15932
- D
15930
+ `/api/app/v1/${Y}/entity/${L}/enableCache`,
15931
+ N,
15932
+ R
15933
15933
  );
15934
15934
  },
15935
- addOrUpdatePresets: async (Q, L, D = !1) => {
15936
- const A = a();
15935
+ addOrUpdatePresets: async (L, N, R = !1) => {
15936
+ const Y = a();
15937
15937
  return await n(
15938
- `/api/app/v1/${A}/entity/${Q}/preset`,
15939
- L,
15940
- D
15938
+ `/api/app/v1/${Y}/entity/${L}/preset`,
15939
+ N,
15940
+ R
15941
15941
  );
15942
15942
  },
15943
- updateEntity: async (Q, L = !1) => {
15944
- const D = a();
15945
- return await o(`/api/app/v1/${D}/entity`, Q, L);
15943
+ updateEntity: async (L, N = !1) => {
15944
+ const R = a();
15945
+ return await o(`/api/app/v1/${R}/entity`, L, N);
15946
15946
  },
15947
- deletePreset: async (Q, L, D = !1) => {
15948
- const A = a();
15947
+ deletePreset: async (L, N, R = !1) => {
15948
+ const Y = a();
15949
15949
  return await r(
15950
- `/api/app/v1/${A}/entity/${Q}/preset/${L}`,
15950
+ `/api/app/v1/${Y}/entity/${L}/preset/${N}`,
15951
15951
  {},
15952
- D
15952
+ R
15953
15953
  );
15954
15954
  },
15955
- validateSqlScript: async (Q, L = !1) => {
15956
- const D = a();
15955
+ validateSqlScript: async (L, N = !1) => {
15956
+ const R = a();
15957
15957
  return await n(
15958
- `/api/app/v1/${D}/entity/validate-sql`,
15959
- Q,
15960
- L
15958
+ `/api/app/v1/${R}/entity/validate-sql`,
15959
+ L,
15960
+ N
15961
15961
  );
15962
- }
15962
+ },
15963
+ generateSingleEntity: async (L, N = !0) => await n("/api/ai/generate/entity", L, N)
15963
15964
  };
15964
15965
  }
15965
15966
  function fa() {
@@ -16176,7 +16177,7 @@ const nu = {
16176
16177
  w("div", {
16177
16178
  onClick: c[0] || (c[0] = (l) => e.openTrigger === "click" ? i() : null)
16178
16179
  }, [
16179
- !e.isChild && e.hasSlotParent ? ge(s.$slots, "list-item-menu-parent", {
16180
+ !e.isChild && e.hasSlotParent ? me(s.$slots, "list-item-menu-parent", {
16180
16181
  key: 0,
16181
16182
  item: e.item
16182
16183
  }) : e.isChild ? U("", !0) : (b(), S("div", {
@@ -16215,7 +16216,7 @@ const nu = {
16215
16216
  }, Z(e.item.displayLabel), 3)
16216
16217
  ], 64))
16217
16218
  ], 2)),
16218
- e.isChild && e.hasSlotChild ? ge(s.$slots, "list-item-menu-child", {
16219
+ e.isChild && e.hasSlotChild ? me(s.$slots, "list-item-menu-child", {
16219
16220
  key: 2,
16220
16221
  item: e.item
16221
16222
  }) : e.isChild ? (b(), S("div", {
@@ -16277,14 +16278,14 @@ const nu = {
16277
16278
  e.hasSlotParent ? {
16278
16279
  name: "list-item-menu-parent",
16279
16280
  fn: oe((u) => [
16280
- ge(s.$slots, "list-item-menu-parent", te({ ref_for: !0 }, u))
16281
+ me(s.$slots, "list-item-menu-parent", te({ ref_for: !0 }, u))
16281
16282
  ]),
16282
16283
  key: "0"
16283
16284
  } : void 0,
16284
16285
  e.hasSlotChild ? {
16285
16286
  name: "list-item-menu-child",
16286
16287
  fn: oe((u) => [
16287
- ge(s.$slots, "list-item-menu-child", te({ ref_for: !0 }, u))
16288
+ me(s.$slots, "list-item-menu-child", te({ ref_for: !0 }, u))
16288
16289
  ]),
16289
16290
  key: "1"
16290
16291
  } : void 0
@@ -16320,7 +16321,7 @@ const nu = {
16320
16321
  var l;
16321
16322
  const s = await o.getMenuByName(t.menuName), c = ((l = s == null ? void 0 : s.response) == null ? void 0 : l.children) || [];
16322
16323
  r(c), n.value = c;
16323
- }), (s, c) => s.$slots["list-wrapper"] ? ge(s.$slots, "list-wrapper", {
16324
+ }), (s, c) => s.$slots["list-wrapper"] ? me(s.$slots, "list-wrapper", {
16324
16325
  key: 0,
16325
16326
  menuItems: n.value
16326
16327
  }) : (b(), S("ul", {
@@ -16343,14 +16344,14 @@ const nu = {
16343
16344
  s.$slots["list-item-menu-parent"] ? {
16344
16345
  name: "list-item-menu-parent",
16345
16346
  fn: oe((u) => [
16346
- ge(s.$slots, "list-item-menu-parent", te({ ref_for: !0 }, u))
16347
+ me(s.$slots, "list-item-menu-parent", te({ ref_for: !0 }, u))
16347
16348
  ]),
16348
16349
  key: "0"
16349
16350
  } : void 0,
16350
16351
  s.$slots["list-item-menu-child"] ? {
16351
16352
  name: "list-item-menu-child",
16352
16353
  fn: oe((u) => [
16353
- ge(s.$slots, "list-item-menu-child", te({ ref_for: !0 }, u))
16354
+ me(s.$slots, "list-item-menu-child", te({ ref_for: !0 }, u))
16354
16355
  ]),
16355
16356
  key: "1"
16356
16357
  } : void 0
@@ -16716,7 +16717,7 @@ var Ov = function(t) {
16716
16717
  function Rv(e, t, n, o, r, a) {
16717
16718
  return b(), S("div", te({
16718
16719
  class: e.cx("root")
16719
- }, e.ptmi("root")), [ge(e.$slots, "default")], 16);
16720
+ }, e.ptmi("root")), [me(e.$slots, "default")], 16);
16720
16721
  }
16721
16722
  su.render = Rv;
16722
16723
  var Pv = {
@@ -16750,7 +16751,7 @@ var Pv = {
16750
16751
  function _v(e, t, n, o, r, a) {
16751
16752
  return b(), S("span", te({
16752
16753
  class: a.containerClass
16753
- }, e.ptmi("root")), [ge(e.$slots, "default")], 16);
16754
+ }, e.ptmi("root")), [me(e.$slots, "default")], 16);
16754
16755
  }
16755
16756
  lu.render = _v;
16756
16757
  var Nv = {
@@ -17066,12 +17067,12 @@ var Uv = ca(), du = {
17066
17067
  }
17067
17068
  };
17068
17069
  function Hv(e, t, n, o, r, a) {
17069
- return a.inline ? ge(e.$slots, "default", {
17070
+ return a.inline ? me(e.$slots, "default", {
17070
17071
  key: 0
17071
17072
  }) : r.mounted ? (b(), M(Iu, {
17072
17073
  key: 1,
17073
17074
  to: n.appendTo
17074
- }, [ge(e.$slots, "default")], 8, ["to"])) : U("", !0);
17075
+ }, [me(e.$slots, "default")], 8, ["to"])) : U("", !0);
17075
17076
  }
17076
17077
  du.render = Hv;
17077
17078
  var Wv = function(t) {
@@ -17412,11 +17413,11 @@ var pu = {
17412
17413
  }, x = r ? {
17413
17414
  rows: 0,
17414
17415
  cols: 0
17415
- } : 0, $ = !1, N = !1;
17416
+ } : 0, $ = !1, D = !1;
17416
17417
  r ? (x = {
17417
17418
  rows: y(t[0], m[0]),
17418
17419
  cols: y(t[1], m[1])
17419
- }, v(k(x.cols, g[1], h.left), k(x.rows, g[0], h.top)), N = this.lastScrollPos.top !== u || this.lastScrollPos.left !== d, $ = x.rows !== s.rows || x.cols !== s.cols) : (x = y(t, m), a ? v(k(x, g, h.left), u) : v(d, k(x, g, h.top)), N = this.lastScrollPos !== (a ? d : u), $ = x !== s), this.isRangeChanged = $, N && (this.first = x);
17420
+ }, v(k(x.cols, g[1], h.left), k(x.rows, g[0], h.top)), D = this.lastScrollPos.top !== u || this.lastScrollPos.left !== d, $ = x.rows !== s.rows || x.cols !== s.cols) : (x = y(t, m), a ? v(k(x, g, h.left), u) : v(d, k(x, g, h.top)), D = this.lastScrollPos !== (a ? d : u), $ = x !== s), this.isRangeChanged = $, D && (this.first = x);
17420
17421
  }
17421
17422
  },
17422
17423
  scrollInView: function(t, n) {
@@ -17601,13 +17602,13 @@ var pu = {
17601
17602
  return T ? T > V ? T - V : T : 0;
17602
17603
  }, c = function(T, V) {
17603
17604
  return Math.floor(T / (V || T));
17604
- }, l = function(T, V, C, B, _, R) {
17605
- return T <= _ ? _ : R ? C - B - _ : V + _ - 1;
17606
- }, u = function(T, V, C, B, _, R, z) {
17607
- return T <= R ? 0 : Math.max(0, z ? T < V ? C : T - R : T > V ? C : T - 2 * R);
17608
- }, f = function(T, V, C, B, _, R) {
17605
+ }, l = function(T, V, C, B, _, P) {
17606
+ return T <= _ ? _ : P ? C - B - _ : V + _ - 1;
17607
+ }, u = function(T, V, C, B, _, P, z) {
17608
+ return T <= P ? 0 : Math.max(0, z ? T < V ? C : T - P : T > V ? C : T - 2 * P);
17609
+ }, f = function(T, V, C, B, _, P) {
17609
17610
  var z = V + B + 2 * _;
17610
- return T >= _ && (z += _ + 1), n.getLast(z, R);
17611
+ return T >= _ && (z += _ + 1), n.getLast(z, P);
17611
17612
  }, d = s(o.scrollTop, i.top), p = s(o.scrollLeft, i.left), m = r ? {
17612
17613
  rows: 0,
17613
17614
  cols: 0
@@ -17634,10 +17635,10 @@ var pu = {
17634
17635
  };
17635
17636
  }
17636
17637
  } else {
17637
- var N = a ? p : d, I = this.lastScrollPos <= N;
17638
+ var D = a ? p : d, I = this.lastScrollPos <= D;
17638
17639
  if (!this.appendOnly || this.appendOnly && I) {
17639
- var O = c(N, this.itemSize), j = l(O, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, I);
17640
- m = u(O, j, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, I), h = f(O, m, this.last, this.numItemsInViewport, this.d_numToleratedItems), g = m !== this.first || h !== this.last || this.isRangeChanged, y = N;
17640
+ var O = c(D, this.itemSize), j = l(O, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, I);
17641
+ m = u(O, j, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, I), h = f(O, m, this.last, this.numItemsInViewport, this.d_numToleratedItems), g = m !== this.first || h !== this.last || this.isRangeChanged, y = D;
17641
17642
  }
17642
17643
  }
17643
17644
  return {
@@ -17775,7 +17776,7 @@ function Xv(e, t, n, o, r, a) {
17775
17776
  var i = q("SpinnerIcon");
17776
17777
  return e.disabled ? (b(), S(ie, {
17777
17778
  key: 1
17778
- }, [ge(e.$slots, "default"), ge(e.$slots, "content", {
17779
+ }, [me(e.$slots, "default"), me(e.$slots, "content", {
17779
17780
  items: e.items,
17780
17781
  rows: e.items,
17781
17782
  columns: a.loadedColumns
@@ -17788,7 +17789,7 @@ function Xv(e, t, n, o, r, a) {
17788
17789
  onScroll: t[0] || (t[0] = function() {
17789
17790
  return a.onScroll && a.onScroll.apply(a, arguments);
17790
17791
  })
17791
- }, e.ptmi("root")), [ge(e.$slots, "content", {
17792
+ }, e.ptmi("root")), [me(e.$slots, "content", {
17792
17793
  styleClass: a.contentClass,
17793
17794
  items: a.loadedItems,
17794
17795
  getItemOptions: a.getOptions,
@@ -17809,7 +17810,7 @@ function Xv(e, t, n, o, r, a) {
17809
17810
  class: a.contentClass,
17810
17811
  style: r.contentStyle
17811
17812
  }, e.ptm("content")), [(b(!0), S(ie, null, Ee(a.loadedItems, function(s, c) {
17812
- return ge(e.$slots, "item", {
17813
+ return me(e.$slots, "item", {
17813
17814
  key: c,
17814
17815
  item: s,
17815
17816
  options: a.getOptions(c)
@@ -17825,13 +17826,13 @@ function Xv(e, t, n, o, r, a) {
17825
17826
  }, e.ptm("loader")), [e.$slots && e.$slots.loader ? (b(!0), S(ie, {
17826
17827
  key: 0
17827
17828
  }, Ee(r.loaderArr, function(s, c) {
17828
- return ge(e.$slots, "loader", {
17829
+ return me(e.$slots, "loader", {
17829
17830
  key: c,
17830
17831
  options: a.getLoaderOptions(c, a.isBoth() && {
17831
17832
  numCols: e.d_numItemsInViewport.cols
17832
17833
  })
17833
17834
  });
17834
- }), 128)) : U("", !0), ge(e.$slots, "loadingicon", {}, function() {
17835
+ }), 128)) : U("", !0), me(e.$slots, "loadingicon", {}, function() {
17835
17836
  return [K(i, te({
17836
17837
  spin: "",
17837
17838
  class: "p-virtualscroller-loading-icon"
@@ -19011,13 +19012,13 @@ function g1(e, t, n, o, r, a) {
19011
19012
  onKeydown: t[6] || (t[6] = function() {
19012
19013
  return a.onKeyDown && a.onKeyDown.apply(a, arguments);
19013
19014
  })
19014
- }, e.ptm("label")), [ge(e.$slots, "value", {
19015
+ }, e.ptm("label")), [me(e.$slots, "value", {
19015
19016
  value: e.d_value,
19016
19017
  placeholder: e.placeholder
19017
19018
  }, function() {
19018
19019
  var g;
19019
19020
  return [et(Z(a.label === "p-emptylabel" ? " " : (g = a.label) !== null && g !== void 0 ? g : "empty"), 1)];
19020
- })], 16, d1)), a.isClearIconVisible ? ge(e.$slots, "clearicon", {
19021
+ })], 16, d1)), a.isClearIconVisible ? me(e.$slots, "clearicon", {
19021
19022
  key: 2,
19022
19023
  class: ve(e.cx("clearIcon")),
19023
19024
  clearCallback: a.onClearClick
@@ -19031,7 +19032,7 @@ function g1(e, t, n, o, r, a) {
19031
19032
  }), null, 16, ["class", "onClick"]))];
19032
19033
  }) : U("", !0), w("div", te({
19033
19034
  class: e.cx("dropdown")
19034
- }, e.ptm("dropdown")), [e.loading ? ge(e.$slots, "loadingicon", {
19035
+ }, e.ptm("dropdown")), [e.loading ? me(e.$slots, "loadingicon", {
19035
19036
  key: 0,
19036
19037
  class: ve(e.cx("loadingIcon"))
19037
19038
  }, function() {
@@ -19045,7 +19046,7 @@ function g1(e, t, n, o, r, a) {
19045
19046
  spin: "",
19046
19047
  "aria-hidden": "true"
19047
19048
  }, e.ptm("loadingIcon")), null, 16, ["class"]))];
19048
- }) : ge(e.$slots, "dropdownicon", {
19049
+ }) : me(e.$slots, "dropdownicon", {
19049
19050
  key: 1,
19050
19051
  class: ve(e.cx("dropdownIcon"))
19051
19052
  }, function() {
@@ -19088,7 +19089,7 @@ function g1(e, t, n, o, r, a) {
19088
19089
  }, e.ptm("hiddenFirstFocusableEl"), {
19089
19090
  "data-p-hidden-accessible": !0,
19090
19091
  "data-p-hidden-focusable": !0
19091
- }), null, 16), ge(e.$slots, "header", {
19092
+ }), null, 16), me(e.$slots, "header", {
19092
19093
  value: e.d_value,
19093
19094
  options: a.visibleOptions
19094
19095
  }), e.filter ? (b(), S("div", te({
@@ -19122,7 +19123,7 @@ function g1(e, t, n, o, r, a) {
19122
19123
  pt: e.ptm("pcFilterIconContainer")
19123
19124
  }, {
19124
19125
  default: oe(function() {
19125
- return [ge(e.$slots, "filtericon", {}, function() {
19126
+ return [me(e.$slots, "filtericon", {}, function() {
19126
19127
  return [e.filterIcon ? (b(), S("span", te({
19127
19128
  key: 0,
19128
19129
  class: e.filterIcon
@@ -19158,7 +19159,7 @@ function g1(e, t, n, o, r, a) {
19158
19159
  pt: e.ptm("virtualScroller")
19159
19160
  }), Rn({
19160
19161
  content: oe(function(g) {
19161
- var y = g.styleClass, k = g.contentRef, v = g.items, x = g.getItemOptions, $ = g.contentStyle, N = g.itemSize;
19162
+ var y = g.styleClass, k = g.contentRef, v = g.items, x = g.getItemOptions, $ = g.contentStyle, D = g.itemSize;
19162
19163
  return [w("ul", te({
19163
19164
  ref: function(O) {
19164
19165
  return a.listRef(O, k);
@@ -19174,12 +19175,12 @@ function g1(e, t, n, o, r, a) {
19174
19175
  key: 0,
19175
19176
  id: r.id + "_" + a.getOptionIndex(O, x),
19176
19177
  style: {
19177
- height: N ? N + "px" : void 0
19178
+ height: D ? D + "px" : void 0
19178
19179
  },
19179
19180
  class: e.cx("optionGroup"),
19180
19181
  role: "option",
19181
19182
  ref_for: !0
19182
- }, e.ptm("optionGroup")), [ge(e.$slots, "optiongroup", {
19183
+ }, e.ptm("optionGroup")), [me(e.$slots, "optiongroup", {
19183
19184
  option: I.optionGroup,
19184
19185
  index: a.getOptionIndex(O, x)
19185
19186
  }, function() {
@@ -19195,7 +19196,7 @@ function g1(e, t, n, o, r, a) {
19195
19196
  focusedOption: a.getOptionIndex(O, x)
19196
19197
  }),
19197
19198
  style: {
19198
- height: N ? N + "px" : void 0
19199
+ height: D ? D + "px" : void 0
19199
19200
  },
19200
19201
  role: "option",
19201
19202
  "aria-label": a.getOptionLabel(I),
@@ -19223,7 +19224,7 @@ function g1(e, t, n, o, r, a) {
19223
19224
  key: 1,
19224
19225
  class: e.cx("optionBlankIcon"),
19225
19226
  ref_for: !0
19226
- }, e.ptm("optionBlankIcon")), null, 16, ["class"]))], 64)) : U("", !0), ge(e.$slots, "option", {
19227
+ }, e.ptm("optionBlankIcon")), null, 16, ["class"]))], 64)) : U("", !0), me(e.$slots, "option", {
19227
19228
  option: I,
19228
19229
  selected: a.isSelected(I),
19229
19230
  index: a.getOptionIndex(O, x)
@@ -19239,7 +19240,7 @@ function g1(e, t, n, o, r, a) {
19239
19240
  role: "option"
19240
19241
  }, e.ptm("emptyMessage"), {
19241
19242
  "data-p-hidden-accessible": !0
19242
- }), [ge(e.$slots, "emptyfilter", {}, function() {
19243
+ }), [me(e.$slots, "emptyfilter", {}, function() {
19243
19244
  return [et(Z(a.emptyFilterMessageText), 1)];
19244
19245
  })], 16)) : !e.options || e.options && e.options.length === 0 ? (b(), S("li", te({
19245
19246
  key: 1,
@@ -19247,7 +19248,7 @@ function g1(e, t, n, o, r, a) {
19247
19248
  role: "option"
19248
19249
  }, e.ptm("emptyMessage"), {
19249
19250
  "data-p-hidden-accessible": !0
19250
- }), [ge(e.$slots, "empty", {}, function() {
19251
+ }), [me(e.$slots, "empty", {}, function() {
19251
19252
  return [et(Z(a.emptyMessageText), 1)];
19252
19253
  })], 16)) : U("", !0)], 16, f1)];
19253
19254
  }),
@@ -19256,12 +19257,12 @@ function g1(e, t, n, o, r, a) {
19256
19257
  name: "loader",
19257
19258
  fn: oe(function(g) {
19258
19259
  var y = g.options;
19259
- return [ge(e.$slots, "loader", {
19260
+ return [me(e.$slots, "loader", {
19260
19261
  options: y
19261
19262
  })];
19262
19263
  }),
19263
19264
  key: "0"
19264
- } : void 0]), 1040, ["items", "style", "disabled", "pt"])], 16), ge(e.$slots, "footer", {
19265
+ } : void 0]), 1040, ["items", "style", "disabled", "pt"])], 16), me(e.$slots, "footer", {
19265
19266
  value: e.d_value,
19266
19267
  options: a.visibleOptions
19267
19268
  }), !e.options || e.options && e.options.length === 0 ? (b(), S("span", te({
@@ -19366,11 +19367,11 @@ const h1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
19366
19367
  );
19367
19368
  function f(g, y) {
19368
19369
  const k = y.split(".").reduce((v, x) => {
19369
- var N;
19370
+ var D;
19370
19371
  const $ = x.match(/^(\w+)\[(\d+)\]$/);
19371
19372
  if ($) {
19372
19373
  const [, I, O] = $;
19373
- return ((N = v == null ? void 0 : v[I]) == null ? void 0 : N[parseInt(O)]) ?? null;
19374
+ return ((D = v == null ? void 0 : v[I]) == null ? void 0 : D[parseInt(O)]) ?? null;
19374
19375
  } else
19375
19376
  return v == null ? void 0 : v[x];
19376
19377
  }, g);
@@ -19714,8 +19715,8 @@ const h1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
19714
19715
  var x;
19715
19716
  const v = k.match(/^(\w+)\[(\d+)\]$/);
19716
19717
  if (v) {
19717
- const [, $, N] = v;
19718
- return ((x = y == null ? void 0 : y[$]) == null ? void 0 : x[parseInt(N)]) ?? null;
19718
+ const [, $, D] = v;
19719
+ return ((x = y == null ? void 0 : y[$]) == null ? void 0 : x[parseInt(D)]) ?? null;
19719
19720
  } else
19720
19721
  return y == null ? void 0 : y[k];
19721
19722
  }, m);
@@ -20154,8 +20155,8 @@ const h1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
20154
20155
  try {
20155
20156
  const x = new URLSearchParams();
20156
20157
  a.value && x.append("keyword", a.value), f.value && x.append("libraryName", f.value), d.value && x.append("category", d.value);
20157
- const N = await (await fetch(`/api/platform/v1/search/icon-library?${x}`)).json();
20158
- s.value = N.response || [], c.value = s.value.map((I) => ({
20158
+ const D = await (await fetch(`/api/platform/v1/search/icon-library?${x}`)).json();
20159
+ s.value = D.response || [], c.value = s.value.map((I) => ({
20159
20160
  name: I,
20160
20161
  class: I,
20161
20162
  library: f.value,
@@ -20195,8 +20196,8 @@ const h1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
20195
20196
  style: { "min-width": "20px" }
20196
20197
  }, null, 2)) : U("", !0),
20197
20198
  xt(w("input", {
20198
- "onUpdate:modelValue": $[0] || ($[0] = (N) => a.value = N),
20199
- onFocus: $[1] || ($[1] = (N) => i.value = !0),
20199
+ "onUpdate:modelValue": $[0] || ($[0] = (D) => a.value = D),
20200
+ onFocus: $[1] || ($[1] = (D) => i.value = !0),
20200
20201
  type: "text",
20201
20202
  placeholder: "Search icons...",
20202
20203
  class: "flex-1 outline-none text-gray-800 placeholder-gray-400"
@@ -20207,35 +20208,35 @@ const h1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
20207
20208
  ]),
20208
20209
  i.value ? (b(), S("div", Y1, [
20209
20210
  w("div", Q1, [
20210
- (b(), S(ie, null, Ee(l, (N) => w("button", {
20211
- key: N,
20211
+ (b(), S(ie, null, Ee(l, (D) => w("button", {
20212
+ key: D,
20212
20213
  class: ve([
20213
20214
  "flex-1 p-1 text-sm rounded font-semibold",
20214
- f.value === N ? "bg-blue-500 text-white" : "bg-gray-200 text-gray-700"
20215
+ f.value === D ? "bg-blue-500 text-white" : "bg-gray-200 text-gray-700"
20215
20216
  ]),
20216
- onClick: (I) => g("library", N)
20217
- }, Z(N), 11, X1)), 64))
20217
+ onClick: (I) => g("library", D)
20218
+ }, Z(D), 11, X1)), 64))
20218
20219
  ]),
20219
20220
  w("div", J1, [
20220
- (b(), S(ie, null, Ee(u, (N) => w("button", {
20221
- key: N,
20221
+ (b(), S(ie, null, Ee(u, (D) => w("button", {
20222
+ key: D,
20222
20223
  class: ve([
20223
20224
  "flex-1 p-1 text-sm rounded font-semibold capitalize",
20224
- d.value === N ? "bg-blue-500 text-white" : "bg-gray-200 text-gray-700"
20225
+ d.value === D ? "bg-blue-500 text-white" : "bg-gray-200 text-gray-700"
20225
20226
  ]),
20226
- onClick: (I) => g("category", N)
20227
- }, Z(N), 11, Z1)), 64))
20227
+ onClick: (I) => g("category", D)
20228
+ }, Z(D), 11, Z1)), 64))
20228
20229
  ]),
20229
20230
  c.value.length ? (b(), S("div", ew, [
20230
- (b(!0), S(ie, null, Ee(k.value, (N, I) => (b(), S("div", {
20231
+ (b(!0), S(ie, null, Ee(k.value, (D, I) => (b(), S("div", {
20231
20232
  key: I,
20232
20233
  class: "icon-item text-center cursor-pointer hover:bg-gray-100 p-2 rounded transition-all",
20233
- onClick: (O) => h(N)
20234
+ onClick: (O) => h(D)
20234
20235
  }, [
20235
20236
  w("i", {
20236
- class: ve([N.name, "text-xl", "text-gray-700"])
20237
+ class: ve([D.name, "text-xl", "text-gray-700"])
20237
20238
  }, null, 2),
20238
- w("div", nw, Z(N.name), 1)
20239
+ w("div", nw, Z(D.name), 1)
20239
20240
  ], 8, tw))), 128))
20240
20241
  ])) : (b(), S("div", ow, "No icons found"))
20241
20242
  ])) : U("", !0)
@@ -20342,7 +20343,7 @@ const cw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
20342
20343
  const T = ((C = (V = a.value) == null ? void 0 : V.$el) == null ? void 0 : C.querySelector("input")) || ((B = a.value) == null ? void 0 : B.$el) || a.value;
20343
20344
  (_ = T == null ? void 0 : T.focus) == null || _.call(T);
20344
20345
  });
20345
- }, N = (T) => {
20346
+ }, D = (T) => {
20346
20347
  T.target === T.currentTarget && ($(), c.value || g());
20347
20348
  }, I = (T) => {
20348
20349
  T.target.closest(".p-chip-remove-icon") || ($(), c.value || g());
@@ -20367,13 +20368,13 @@ const cw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
20367
20368
  w("div", cw, [
20368
20369
  w("div", {
20369
20370
  class: "flex flex-wrap items-center flex-1 gap-2 p-1 min-h-full",
20370
- onClick: N
20371
+ onClick: D
20371
20372
  }, [
20372
- (b(!0), S(ie, null, Ee(d.value, (R, z) => (b(), M(C, {
20373
- key: `chip-${z}-${R}`,
20374
- label: R,
20373
+ (b(!0), S(ie, null, Ee(d.value, (P, z) => (b(), M(C, {
20374
+ key: `chip-${z}-${P}`,
20375
+ label: P,
20375
20376
  removable: "",
20376
- onRemove: (J) => k(R),
20377
+ onRemove: (J) => k(P),
20377
20378
  onClick: I,
20378
20379
  class: "m-0 flex-shrink-0 whitespace-nowrap h-fit self-center"
20379
20380
  }, null, 8, ["label", "onRemove"]))), 128)),
@@ -20383,7 +20384,7 @@ const cw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
20383
20384
  ref_key: "inputRef",
20384
20385
  ref: a,
20385
20386
  modelValue: s.value,
20386
- "onUpdate:modelValue": V[0] || (V[0] = (R) => s.value = R),
20387
+ "onUpdate:modelValue": V[0] || (V[0] = (P) => s.value = P),
20387
20388
  placeholder: d.value.length === 0 ? e.placeholder : "",
20388
20389
  onKeydown: Wo(mn(x, ["prevent"]), ["enter"]),
20389
20390
  onInput: h,
@@ -20412,24 +20413,24 @@ const cw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
20412
20413
  }, [
20413
20414
  w("div", fw, [
20414
20415
  w("div", pw, [
20415
- (b(!0), S(ie, null, Ee(l.value, (R) => (b(), M(_, {
20416
- key: R,
20416
+ (b(!0), S(ie, null, Ee(l.value, (P) => (b(), M(_, {
20417
+ key: P,
20417
20418
  size: "small",
20418
20419
  class: ve([
20419
20420
  "px-3 py-2 text-sm rounded font-semibold capitalize cursor-pointer whitespace-nowrap"
20420
20421
  ]),
20421
- onClick: (z) => m(R),
20422
- label: R,
20423
- severity: u.value === R ? "info" : "secondary"
20422
+ onClick: (z) => m(P),
20423
+ label: P,
20424
+ severity: u.value === P ? "info" : "secondary"
20424
20425
  }, null, 8, ["onClick", "label", "severity"]))), 128))
20425
20426
  ])
20426
20427
  ]),
20427
20428
  w("div", mw, [
20428
- f.value.length === 0 ? (b(), S("div", gw, " No options found ")) : (b(!0), S(ie, { key: 1 }, Ee(f.value, (R, z) => (b(), S("div", {
20429
- key: `opt-${z}-${R}`,
20429
+ f.value.length === 0 ? (b(), S("div", gw, " No options found ")) : (b(!0), S(ie, { key: 1 }, Ee(f.value, (P, z) => (b(), S("div", {
20430
+ key: `opt-${z}-${P}`,
20430
20431
  class: "px-3 py-2 text-sm cursor-pointer hover:bg-gray-100",
20431
- onClick: mn((J) => v(R), ["stop"])
20432
- }, Z(R), 9, hw))), 128))
20432
+ onClick: mn((J) => v(P), ["stop"])
20433
+ }, Z(P), 9, hw))), 128))
20433
20434
  ])
20434
20435
  ], 512)) : U("", !0)
20435
20436
  ]);
@@ -20439,26 +20440,27 @@ const cw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
20439
20440
  function yw() {
20440
20441
  const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
20441
20442
  return {
20442
- getPage: async (f, d = !1) => {
20443
+ getPage: async (d, p = !1) => {
20444
+ const m = a();
20445
+ return await t(`/api/app/v1/${m}/content/page/${d}`, p);
20446
+ },
20447
+ getPages: async (d = !1) => {
20443
20448
  const p = a();
20444
- return await t(`/api/app/v1/${p}/content/page/${f}`, d);
20449
+ return await t(`/api/app/v1/${p}/content/page?page=1&pageSize=50`, d);
20445
20450
  },
20446
- getPages: async (f = !1) => {
20447
- const d = a();
20448
- return await t(`/api/app/v1/${d}/content/page?page=1&pageSize=50`, f);
20451
+ createPage: async (d, p = !1) => {
20452
+ const m = a();
20453
+ return await n(`/api/app/v1/${m}/content/page`, d, p);
20449
20454
  },
20450
- createPage: async (f, d = !1) => {
20451
- const p = a();
20452
- return await n(`/api/app/v1/${p}/content/page`, f, d);
20455
+ updatePage: async (d, p, m = !1) => {
20456
+ const h = a();
20457
+ return await o(`/api/app/v1/${h}/content/page/${d}`, p, m);
20453
20458
  },
20454
- updatePage: async (f, d, p = !1) => {
20459
+ deletePage: async (d, p = !1) => {
20455
20460
  const m = a();
20456
- return await o(`/api/app/v1/${m}/content/page/${f}`, d, p);
20461
+ return await r(`/api/app/v1/${m}/content/page/${d}`, {}, p);
20457
20462
  },
20458
- deletePage: async (f, d = !1) => {
20459
- const p = a();
20460
- return await r(`/api/app/v1/${p}/content/page/${f}`, {}, d);
20461
- }
20463
+ generateSinglePage: async (d, p = !0) => await n("/api/ai/generate/page", d, p)
20462
20464
  };
20463
20465
  }
20464
20466
  const vw = { class: "w-full" }, Es = {