@anzusystems/common-admin 1.47.0-beta.dev-1775683200 → 1.47.0-beta.dev-1775683300

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/labs.js CHANGED
@@ -1,24 +1,24 @@
1
- import { bV as ue, d as B, j, k as Ne, a1 as Ve, h as H, i as Z, aj as de, ak as me, al as pe, am as fe, ag as ee, b0 as ge, aa as ve, ab as be, ac as he, ad as ye, an as Ce, ao as Ae, ae as Pe, af as we, bW as _e, bX as xe, bg as ke, bY as je, as as Te, bZ as ae, ap as Le, aq as Re, aU as ze, b4 as $e, ar as Ue, E as Me, a8 as qe, a2 as Je, b_ as Ke, q as He, p as We, x as Qe, a7 as Ye, aI as Ge, m as Xe, b$ as Ze, l as et } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-_07nGoQb.mjs";
2
- import { aE as ga, c0 as va, c1 as ba, aA as ha, aB as ya, aD as Ca, aF as Aa, aC as Pa, aR as wa, aJ as _a, bd as xa, aG as ka, aH as Ta, ay as Sa, az as Fa, c2 as Ba, c3 as Ea, c4 as Oa, c5 as Da, c6 as Ia, ai as Na, ah as Va, c7 as ja, c8 as La, c9 as Ra } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-_07nGoQb.mjs";
3
- import { defineComponent as oe, useModel as tt, inject as Se, computed as P, watch as Q, openBlock as F, createElementBlock as L, createElementVNode as T, toDisplayString as w, unref as h, createVNode as C, withCtx as S, createTextVNode as z, Fragment as se, renderList as Fe, createBlock as W, normalizeClass as Be, mergeModels as le, createCommentVNode as Ee, withModifiers as J, ref as U, onMounted as Oe, toRaw as ie, provide as at, resolveComponent as ce, renderSlot as V, mergeProps as ot, withDirectives as st, vShow as nt } from "vue";
4
- import { useI18n as ne } from "vue-i18n";
5
- import { VBtn as $ } from "vuetify/components/VBtn";
1
+ import { bV as de, d as F, j as L, k as Ne, a1 as Ve, h as Q, i as te, aj as me, ak as fe, al as pe, am as ge, ag as ae, b0 as ve, aa as be, ab as he, ac as ye, ad as Ce, an as Ae, ao as Pe, ae as we, af as _e, bW as xe, bX as ke, bg as Te, bY as je, as as Se, bZ as oe, ap as Le, aq as Re, aU as ze, b4 as $e, ar as Ue, E as Me, a8 as qe, a2 as Je, b_ as Ke, q as He, p as We, x as Qe, a7 as Ye, aI as Ge, m as Xe, b$ as Ze, l as et } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DvYCGnn3.mjs";
2
+ import { aE as ga, c0 as va, c1 as ba, aA as ha, aB as ya, aD as Ca, aF as Aa, aC as Pa, aR as wa, aJ as _a, bd as xa, aG as ka, aH as Ta, ay as Sa, az as Fa, c2 as Ea, c3 as Ba, c4 as Oa, c5 as Da, c6 as Ia, ai as Na, ah as Va, c7 as ja, c8 as La, c9 as Ra } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DvYCGnn3.mjs";
3
+ import { defineComponent as se, useModel as tt, inject as Fe, computed as w, watch as G, openBlock as S, createElementBlock as R, createElementVNode as k, toDisplayString as _, unref as y, createVNode as P, withCtx as T, createTextVNode as z, Fragment as ne, renderList as Ee, createBlock as Y, normalizeClass as Be, mergeModels as ie, createCommentVNode as Oe, withModifiers as J, ref as q, onMounted as De, toRaw as ce, provide as at, resolveComponent as ue, renderSlot as j, mergeProps as ot, withDirectives as st, vShow as nt } from "vue";
4
+ import { useI18n as re } from "vue-i18n";
5
+ import { VBtn as M } from "vuetify/components/VBtn";
6
6
  import { VList as rt, VListItem as lt, VListItemTitle as it } from "vuetify/components/VList";
7
7
  import { VMenu as ct } from "vuetify/components/VMenu";
8
- import { useThrottleFn as Y, useDebounceFn as ut } from "@vueuse/core";
8
+ import { useThrottleFn as X, useDebounceFn as ut } from "@vueuse/core";
9
9
  import { VBtnToggle as dt } from "vuetify/components/VBtnToggle";
10
- import De from "axios";
10
+ import Ie from "axios";
11
11
  import { useDisplay as mt } from "vuetify";
12
- import { VCard as pt } from "vuetify/components/VCard";
13
- import { VDialog as ft } from "vuetify/components/VDialog";
12
+ import { VCard as ft } from "vuetify/components/VCard";
13
+ import { VDialog as pt } from "vuetify/components/VDialog";
14
14
  import { VSpacer as gt } from "vuetify/components/VGrid";
15
15
  import { VIcon as vt } from "vuetify/components/VIcon";
16
16
  import { VToolbar as bt } from "vuetify/components/VToolbar";
17
17
  import { VTooltip as ht } from "vuetify/components/VTooltip";
18
18
  import { Intersect as yt } from "vuetify/directives";
19
- const Ct = { class: "d-flex align-center justify-center" }, At = { class: "text-body-small mr-1" }, la = /* @__PURE__ */ oe({
19
+ const Ct = { class: "d-flex align-center justify-center" }, At = { class: "text-body-small mr-1" }, la = /* @__PURE__ */ se({
20
20
  __name: "ADatatableOrdering",
21
- props: /* @__PURE__ */ le({
21
+ props: /* @__PURE__ */ ie({
22
22
  variant: { default: "id" },
23
23
  customOptions: { default: void 0 },
24
24
  paginationUpdateCustomCb: { type: Function, default: void 0 }
@@ -29,111 +29,111 @@ const Ct = { class: "d-flex align-center justify-center" }, At = { class: "text-
29
29
  },
30
30
  modelModifiers: {}
31
31
  }),
32
- emits: /* @__PURE__ */ le(["sortByChange"], ["update:modelValue"]),
33
- setup(n, { emit: m }) {
34
- const u = n, e = m, l = tt(n, "modelValue"), i = Se(ue);
35
- if (B(i))
32
+ emits: /* @__PURE__ */ ie(["sortByChange"], ["update:modelValue"]),
33
+ setup(r, { emit: f }) {
34
+ const d = r, e = f, i = tt(r, "modelValue"), c = Fe(de);
35
+ if (F(c))
36
36
  throw new Error("Incorrect provide/inject config.");
37
- const { t: s } = ne(), r = [
37
+ const { t: s } = re(), m = [
38
38
  {
39
39
  id: 1,
40
40
  titleT: "common.system.datatable.ordering.mostRecent",
41
- sortBy: { key: "createdAt", order: j.Desc }
41
+ sortBy: { key: "createdAt", order: L.Desc }
42
42
  },
43
43
  {
44
44
  id: 2,
45
45
  titleT: "common.system.datatable.ordering.oldest",
46
- sortBy: { key: "createdAt", order: j.Asc }
46
+ sortBy: { key: "createdAt", order: L.Asc }
47
47
  }
48
- ], g = [
48
+ ], l = [
49
49
  {
50
50
  id: 1,
51
51
  titleT: "common.system.datatable.ordering.mostRecent",
52
- sortBy: { key: "id", order: j.Desc }
52
+ sortBy: { key: "id", order: L.Desc }
53
53
  },
54
54
  {
55
55
  id: 2,
56
56
  titleT: "common.system.datatable.ordering.oldest",
57
- sortBy: { key: "id", order: j.Asc }
57
+ sortBy: { key: "id", order: L.Asc }
58
58
  }
59
- ], p = [
59
+ ], v = [
60
60
  {
61
61
  id: 3,
62
62
  titleT: "common.system.datatable.ordering.mostRelevant",
63
- sortBy: { key: Ne, order: j.Desc }
63
+ sortBy: { key: Ne, order: L.Desc }
64
64
  },
65
65
  {
66
66
  id: 1,
67
67
  titleT: "common.system.datatable.ordering.mostRecent",
68
- sortBy: { key: "createdAt", order: j.Desc }
68
+ sortBy: { key: "createdAt", order: L.Desc }
69
69
  },
70
70
  {
71
71
  id: 2,
72
72
  titleT: "common.system.datatable.ordering.oldest",
73
- sortBy: { key: "createdAt", order: j.Asc }
73
+ sortBy: { key: "createdAt", order: L.Asc }
74
74
  }
75
- ], _ = P(() => {
76
- const t = d.value.find((b) => b.id === l.value);
75
+ ], C = w(() => {
76
+ const t = p.value.find((h) => h.id === i.value);
77
77
  return t ? s(t.titleT) : "";
78
- }), d = P(() => u.customOptions ? u.customOptions : u.variant === "most-relevant" ? p : u.variant === "id" ? g : r), y = (t) => {
79
- l.value = t.id;
80
- }, c = (t) => {
81
- t.sortBy || (i.value = {
82
- ...i.value,
78
+ }), p = w(() => d.customOptions ? d.customOptions : d.variant === "most-relevant" ? v : d.variant === "id" ? l : m), b = (t) => {
79
+ i.value = t.id;
80
+ }, u = (t) => {
81
+ t.sortBy || (c.value = {
82
+ ...c.value,
83
83
  sortBy: null
84
- }, e("sortByChange", t)), i.value.sortBy = t.sortBy, e("sortByChange", t);
84
+ }, e("sortByChange", t)), c.value.sortBy = t.sortBy, e("sortByChange", t);
85
85
  };
86
- return Q(l, (t, b) => {
87
- if (t === b) return;
88
- const a = d.value.find((v) => v.id === t);
89
- if (!B(a)) {
90
- if (B(u.paginationUpdateCustomCb)) {
91
- c(a);
86
+ return G(i, (t, h) => {
87
+ if (t === h) return;
88
+ const g = p.value.find((a) => a.id === t);
89
+ if (!F(g)) {
90
+ if (F(d.paginationUpdateCustomCb)) {
91
+ u(g);
92
92
  return;
93
93
  }
94
- u.paginationUpdateCustomCb(a, i);
94
+ d.paginationUpdateCustomCb(g, c);
95
95
  }
96
- }), Q(
97
- i,
98
- (t, b) => {
99
- if (t.sortBy?.key === b?.sortBy?.key && t.sortBy?.order === b?.sortBy?.order)
96
+ }), G(
97
+ c,
98
+ (t, h) => {
99
+ if (t.sortBy?.key === h?.sortBy?.key && t.sortBy?.order === h?.sortBy?.order)
100
100
  return;
101
- const a = d.value.find((v) => t.sortBy?.key === v.sortBy?.key && t.sortBy?.order === v.sortBy?.order);
102
- B(a) || (l.value = a.id);
101
+ const g = p.value.find((a) => t.sortBy?.key === a.sortBy?.key && t.sortBy?.order === a.sortBy?.order);
102
+ F(g) || (i.value = g.id);
103
103
  },
104
104
  { immediate: !0 }
105
- ), (t, b) => (F(), L("div", Ct, [
106
- T("div", At, w(h(s)("common.system.datatable.ordering.title")) + ": ", 1),
107
- C($, {
105
+ ), (t, h) => (S(), R("div", Ct, [
106
+ k("div", At, _(y(s)("common.system.datatable.ordering.title")) + ": ", 1),
107
+ P(M, {
108
108
  variant: "text",
109
109
  rounded: "xl",
110
110
  size: "small",
111
111
  class: "text-medium-emphasis",
112
112
  "append-icon": "mdi-chevron-down"
113
113
  }, {
114
- default: S(() => [
115
- z(w(_.value) + " ", 1),
116
- C(ct, {
114
+ default: T(() => [
115
+ z(_(C.value) + " ", 1),
116
+ P(ct, {
117
117
  activator: "parent",
118
118
  location: "bottom",
119
119
  "close-on-content-click": ""
120
120
  }, {
121
- default: S(() => [
122
- C(rt, {
121
+ default: T(() => [
122
+ P(rt, {
123
123
  density: "compact",
124
124
  class: "pa-0"
125
125
  }, {
126
- default: S(() => [
127
- (F(!0), L(se, null, Fe(d.value, (a) => (F(), W(lt, {
128
- key: a.id,
129
- onClick: (v) => y(a)
126
+ default: T(() => [
127
+ (S(!0), R(ne, null, Ee(p.value, (g) => (S(), Y(lt, {
128
+ key: g.id,
129
+ onClick: (a) => b(g)
130
130
  }, {
131
- default: S(() => [
132
- C(it, {
133
- class: Be({ "font-weight-bold": a.id === l.value })
131
+ default: T(() => [
132
+ P(it, {
133
+ class: Be({ "font-weight-bold": g.id === i.value })
134
134
  }, {
135
- default: S(() => [
136
- z(w(h(s)(a.titleT)), 1)
135
+ default: T(() => [
136
+ z(_(y(s)(g.titleT)), 1)
137
137
  ]),
138
138
  _: 2
139
139
  }, 1032, ["class"])
@@ -154,60 +154,60 @@ const Ct = { class: "d-flex align-center justify-center" }, At = { class: "text-
154
154
  }), Pt = { class: "anzu-data-footer" }, wt = {
155
155
  key: 0,
156
156
  class: "anzu-data-footer__page-limit"
157
- }, _t = { class: "anzu-data-footer__pagination" }, xt = { class: "anzu-data-footer__icons-before" }, kt = { class: "current-page" }, Tt = { class: "anzu-data-footer__icons-after" }, St = /* @__PURE__ */ oe({
157
+ }, _t = { class: "anzu-data-footer__pagination" }, xt = { class: "anzu-data-footer__icons-before" }, kt = { class: "current-page" }, Tt = { class: "anzu-data-footer__icons-after" }, St = /* @__PURE__ */ se({
158
158
  __name: "ADatatablePagination",
159
159
  props: {
160
160
  itemsPerPageOptions: { default: () => [10, 25, 50] },
161
161
  hideRecordsPerPage: { type: Boolean, default: !1 }
162
162
  },
163
163
  emits: ["change"],
164
- setup(n, { emit: m }) {
165
- const u = m, e = Se(ue);
166
- if (B(e))
164
+ setup(r, { emit: f }) {
165
+ const d = f, e = Fe(de);
166
+ if (F(e))
167
167
  throw new Error("Incorrect provide/inject config.");
168
- const { t: l } = ne(), { setStoredPage: i } = Ve(), s = P(() => Math.ceil(e.value.totalCount / e.value.rowsPerPage)), r = P(() => e.value.page * e.value.rowsPerPage - e.value.rowsPerPage + 1), g = P(() => e.value.page * e.value.rowsPerPage - e.value.rowsPerPage + e.value.currentViewCount), p = P(() => e.value.page === 1), _ = P(() => !H(e.value.hasNextPage) || e.value.page === s.value), d = P(() => H(e.value.hasNextPage) && e.value.page === s.value || e.value.hasNextPage === !1), y = P(() => H(e.value.hasNextPage) ? e.value.totalCount : e.value.hasNextPage ? g.value + 1 + "+" : g.value);
169
- Q(
168
+ const { t: i } = re(), { setStoredPage: c } = Ve(), s = w(() => Math.ceil(e.value.totalCount / e.value.rowsPerPage)), m = w(() => e.value.page * e.value.rowsPerPage - e.value.rowsPerPage + 1), l = w(() => e.value.page * e.value.rowsPerPage - e.value.rowsPerPage + e.value.currentViewCount), v = w(() => e.value.page === 1), C = w(() => !Q(e.value.hasNextPage) || e.value.page === s.value), p = w(() => Q(e.value.hasNextPage) && e.value.page === s.value || e.value.hasNextPage === !1), b = w(() => Q(e.value.hasNextPage) ? e.value.totalCount : e.value.hasNextPage ? l.value + 1 + "+" : l.value);
169
+ G(
170
170
  () => e.value.rowsPerPage,
171
- (v, x) => {
172
- v !== x && (e.value.page = 1, u("change"));
171
+ (a, A) => {
172
+ a !== A && (e.value.page = 1, d("change"));
173
173
  }
174
- ), Q(
174
+ ), G(
175
175
  () => e.value.page,
176
- (v, x) => {
177
- v !== x && (i(v), u("change"));
176
+ (a, A) => {
177
+ a !== A && (c(a), d("change"));
178
178
  }
179
179
  );
180
- const c = Y(() => {
180
+ const u = X(() => {
181
181
  e.value.page = 1;
182
- }, 300), t = Y(() => {
182
+ }, 300), t = X(() => {
183
183
  e.value.page = s.value;
184
- }, 300), b = Y(() => {
184
+ }, 300), h = X(() => {
185
185
  e.value.page = e.value.page - 1;
186
- }, 300), a = Y(() => {
186
+ }, 300), g = X(() => {
187
187
  e.value.page = e.value.page + 1;
188
188
  }, 300);
189
- return (v, x) => (F(), L("div", Pt, [
190
- n.hideRecordsPerPage ? Ee("", !0) : (F(), L("div", wt, [
191
- z(w(h(l)("common.system.datatable.itemsPerPage")) + ": ", 1),
192
- C(dt, {
193
- modelValue: h(e).rowsPerPage,
194
- "onUpdate:modelValue": x[0] || (x[0] = (o) => h(e).rowsPerPage = o),
189
+ return (a, A) => (S(), R("div", Pt, [
190
+ r.hideRecordsPerPage ? Oe("", !0) : (S(), R("div", wt, [
191
+ z(_(y(i)("common.system.datatable.itemsPerPage")) + ": ", 1),
192
+ P(dt, {
193
+ modelValue: y(e).rowsPerPage,
194
+ "onUpdate:modelValue": A[0] || (A[0] = (x) => y(e).rowsPerPage = x),
195
195
  class: "ml-2",
196
196
  density: "compact",
197
197
  mandatory: "",
198
198
  "data-cy": "table-size"
199
199
  }, {
200
- default: S(() => [
201
- (F(!0), L(se, null, Fe(n.itemsPerPageOptions, (o) => (F(), W($, {
202
- key: o,
203
- color: o === h(e).rowsPerPage ? "secondary" : "",
204
- value: o,
200
+ default: T(() => [
201
+ (S(!0), R(ne, null, Ee(r.itemsPerPageOptions, (x) => (S(), Y(M, {
202
+ key: x,
203
+ color: x === y(e).rowsPerPage ? "secondary" : "",
204
+ value: x,
205
205
  density: "compact",
206
206
  size: "small",
207
207
  variant: "text"
208
208
  }, {
209
- default: S(() => [
210
- z(w(o), 1)
209
+ default: T(() => [
210
+ z(_(x), 1)
211
211
  ]),
212
212
  _: 2
213
213
  }, 1032, ["color", "value"]))), 128))
@@ -215,297 +215,298 @@ const Ct = { class: "d-flex align-center justify-center" }, At = { class: "text-
215
215
  _: 1
216
216
  }, 8, ["modelValue"])
217
217
  ])),
218
- T("div", _t, w(r.value) + " - " + w(g.value) + " " + w(h(l)("common.system.datatable.from")) + " " + w(y.value), 1),
219
- T("div", xt, [
220
- C($, {
221
- disabled: p.value,
218
+ k("div", _t, _(m.value) + " - " + _(l.value) + " " + _(y(i)("common.system.datatable.from")) + " " + _(b.value), 1),
219
+ k("div", xt, [
220
+ P(M, {
221
+ disabled: v.value,
222
222
  icon: "mdi-page-first",
223
223
  size: "small",
224
224
  variant: "text",
225
- onClick: J(h(c), ["stop"])
225
+ onClick: J(y(u), ["stop"])
226
226
  }, null, 8, ["disabled", "onClick"]),
227
- C($, {
228
- disabled: p.value,
227
+ P(M, {
228
+ disabled: v.value,
229
229
  icon: "mdi-chevron-left",
230
230
  size: "small",
231
231
  variant: "text",
232
- onClick: J(h(b), ["stop"])
232
+ onClick: J(y(h), ["stop"])
233
233
  }, null, 8, ["disabled", "onClick"])
234
234
  ]),
235
- T("div", kt, [
236
- T("span", null, w(h(e).page), 1)
235
+ k("div", kt, [
236
+ k("span", null, _(y(e).page), 1)
237
237
  ]),
238
- T("div", Tt, [
239
- C($, {
240
- disabled: d.value,
238
+ k("div", Tt, [
239
+ P(M, {
240
+ disabled: p.value,
241
241
  icon: "mdi-chevron-right",
242
242
  size: "small",
243
243
  variant: "text",
244
- onClick: J(h(a), ["stop"])
244
+ onClick: J(y(g), ["stop"])
245
245
  }, null, 8, ["disabled", "onClick"]),
246
- C($, {
247
- disabled: _.value,
246
+ P(M, {
247
+ disabled: C.value,
248
248
  icon: "mdi-page-last",
249
249
  size: "small",
250
250
  variant: "text",
251
- onClick: J(h(t), ["stop"])
251
+ onClick: J(y(t), ["stop"])
252
252
  }, null, 8, ["disabled", "onClick"])
253
253
  ])
254
254
  ]));
255
255
  }
256
- }), Ft = (n, m, u = "id") => {
257
- const { querySetLimit: e, querySetOffset: l, querySetOrder: i, queryBuild: s, queryAddFilter: r, queryAdd: g } = je(), p = n.length;
258
- return e(p), l(1, p), i(u, !1), m ? g(u, n.join(",")) : r("in", u, n.join(",")), s();
259
- }, ia = (n) => {
256
+ }), Ft = (r, f, d = "id") => {
257
+ const { querySetLimit: e, querySetOffset: i, querySetOrder: c, queryBuild: s, queryAddFilter: m, queryAdd: l } = je(), v = r.length;
258
+ return e(v), i(1, v), c(d, !1), f ? l(d, r.join(",")) : m("in", d, r.join(",")), s();
259
+ }, ia = (r) => {
260
260
  const {
261
- client: m,
262
- system: u,
261
+ client: f,
262
+ system: d,
263
263
  entity: e,
264
- urlTemplate: l,
265
- urlParams: i,
264
+ urlTemplate: i,
265
+ urlParams: c,
266
266
  options: s = {},
267
- isSearchApi: r = !1,
268
- field: g = "id"
269
- } = n;
270
- let p = null;
267
+ isSearchApi: m = !1,
268
+ field: l = "id",
269
+ silentConsoleError: v = !1
270
+ } = r;
271
+ let C = null;
271
272
  return {
272
- executeFetch: async (y, c = {}) => {
273
- p = new AbortController();
274
- const { urlTemplate: t, urlParams: b } = c;
273
+ executeFetch: async (u, t = {}) => {
274
+ C = new AbortController();
275
+ const { urlTemplate: h, urlParams: g } = t;
275
276
  try {
276
- const a = Z(b) ? b : i, v = Z(t) ? t : l;
277
- if (B(v)) throw new Error("Url template is undefined");
278
- const x = (B(a) ? v : de(v, a)) + Ft(y, r, g), o = await m().get(x, {
277
+ const a = te(g) ? g : c, A = te(h) ? h : i;
278
+ if (F(A)) throw new Error("Url template is undefined");
279
+ const x = (F(a) ? A : me(A, a)) + Ft(u, m, l), o = await f().get(x, {
279
280
  ...s,
280
- signal: p.signal
281
+ signal: C.signal
281
282
  });
282
- if (!me(o.status))
283
+ if (!fe(o.status))
283
284
  throw new pe(o.status);
284
285
  if (o.data?.data)
285
286
  return o.data.data;
286
- if (o.status === fe)
287
+ if (o.status === ge)
287
288
  return [];
288
- throw new ee();
289
+ throw new ae();
289
290
  } catch (a) {
290
291
  if (a instanceof DOMException && a.name === "AbortError")
291
292
  return [];
292
- throw ge(a) ? a : ve(a) ? new be(a, a.config?.url) : he(a) ? new ye(a, u, e, a) : Ce(a) ? new Ae(a, u, e, a) : Pe(a) ? new we(a, a) : _e(a) ? new xe(a) : De.isAxiosError(a) ? (console.error("Axios error: " + l, a.cause), new ke(a)) : (console.error("AnzuFatalError: ", a), new ee(a));
293
+ throw ve(a) ? a : be(a) ? new he(a, a.config?.url) : ye(a) ? new Ce(a, d, e, a) : Ae(a) ? new Pe(a, d, e, a) : we(a) ? new _e(a, a) : xe(a) ? new ke(a) : Ie.isAxiosError(a) ? (v || console.error("Axios error: " + i, ...a.cause ? [a.cause] : []), new Te(a)) : (v || console.error("AnzuFatalError: ", a), new ae(a));
293
294
  } finally {
294
- p = null;
295
+ C = null;
295
296
  }
296
297
  },
297
298
  abortFetch: () => {
298
- p && p.abort();
299
+ C && C.abort();
299
300
  }
300
301
  };
301
- }, ca = (n) => {
302
- const { client: m, system: u, entity: e, urlTemplate: l, urlParams: i, options: s = {} } = n;
303
- let r = null;
302
+ }, ca = (r) => {
303
+ const { client: f, system: d, entity: e, urlTemplate: i, urlParams: c, options: s = {}, silentConsoleError: m = !1 } = r;
304
+ let l = null;
304
305
  return {
305
- executeFetch: async (_, d, y = {}) => {
306
- r = new AbortController();
306
+ executeFetch: async (p, b, u = {}) => {
307
+ l = new AbortController();
307
308
  const {
308
- urlTemplate: c,
309
- urlParams: t,
310
- sortBy: b = "id",
309
+ urlTemplate: t,
310
+ urlParams: h,
311
+ sortBy: g = "id",
311
312
  sortDesc: a = !0,
312
- batchSize: v = 100,
313
+ batchSize: A = 100,
313
314
  forceElastic: x = !1
314
- } = y;
315
+ } = u;
315
316
  try {
316
- const o = d.general.elastic || x ? "/search" : "", M = Z(t) ? t : i, R = Z(c) ? c : l;
317
- if (B(R)) throw new Error("Url template is undefined");
318
- const { pagination: A } = Te(b, a ? j.Desc : j.Asc, {
319
- rowsPerPage: v
320
- }), f = (B(M) ? R : de(R, M)) + o, E = [], D = await m().get(
321
- f + ae(A, _, d),
317
+ const o = b.general.elastic || x ? "/search" : "", $ = te(h) ? h : c, U = te(t) ? t : i;
318
+ if (F(U)) throw new Error("Url template is undefined");
319
+ const { pagination: n } = Se(g, a ? L.Desc : L.Asc, {
320
+ rowsPerPage: A
321
+ }), B = (F($) ? U : me(U, $)) + o, I = [], N = await f().get(
322
+ B + oe(n, p, b),
322
323
  {
323
324
  ...s,
324
- signal: r.signal
325
+ signal: l.signal
325
326
  }
326
327
  );
327
- if (!me(D.status))
328
- throw new pe(D.status);
329
- if (D.data) {
330
- const I = D.data;
331
- if (E.push(...I.data), Le(I))
332
- for (A.value.hasNextPage = I.hasNextPage; A.value.hasNextPage; ) {
333
- A.value.page++;
334
- const O = (await m().get(
335
- f + ae(A, _, d),
328
+ if (!fe(N.status))
329
+ throw new pe(N.status);
330
+ if (N.data) {
331
+ const E = N.data;
332
+ if (I.push(...E.data), Le(E))
333
+ for (n.value.hasNextPage = E.hasNextPage; n.value.hasNextPage; ) {
334
+ n.value.page++;
335
+ const K = (await f().get(
336
+ B + oe(n, p, b),
336
337
  {
337
338
  ...s,
338
- signal: r.signal
339
+ signal: l.signal
339
340
  }
340
341
  )).data;
341
- E.push(...O.data), A.value.hasNextPage = O.hasNextPage;
342
+ I.push(...K.data), n.value.hasNextPage = K.hasNextPage;
342
343
  }
343
- else if (Re(I)) {
344
- if (A.value.totalCount = I.totalCount, A.value.totalCount <= A.value.rowsPerPage)
345
- return E;
346
- const N = [], O = Math.ceil(A.value.totalCount / A.value.rowsPerPage);
347
- for (let k = 1; k < O; k++) {
348
- const q = { ...A.value, page: k + 1 }, K = U(q);
349
- N.push(
350
- m().get(f + ae(K, _, d), {
344
+ else if (Re(E)) {
345
+ if (n.value.totalCount = E.totalCount, n.value.totalCount <= n.value.rowsPerPage)
346
+ return I;
347
+ const V = [], K = Math.ceil(n.value.totalCount / n.value.rowsPerPage);
348
+ for (let D = 1; D < K; D++) {
349
+ const H = { ...n.value, page: D + 1 }, W = q(H);
350
+ V.push(
351
+ f().get(B + oe(W, p, b), {
351
352
  ...s,
352
- signal: r.signal
353
+ signal: l.signal
353
354
  })
354
355
  );
355
356
  }
356
- (await Promise.all(N)).forEach((k) => {
357
- E.push(...k.data.data);
357
+ (await Promise.all(V)).forEach((D) => {
358
+ I.push(...D.data.data);
358
359
  });
359
360
  }
360
- return E;
361
+ return I;
361
362
  }
362
- if (D.status === fe)
363
+ if (N.status === ge)
363
364
  return [];
364
- throw new ee();
365
+ throw new ae();
365
366
  } catch (o) {
366
367
  if (o instanceof DOMException && o.name === "AbortError")
367
368
  return [];
368
- throw ge(o) ? o : ve(o) ? new be(o, o.config?.url) : he(o) ? new ye(o, u, e, o) : Ce(o) ? new Ae(o, u, e, o) : Pe(o) ? new we(o, o) : _e(o) ? new xe(o) : De.isAxiosError(o) ? (console.error("Axios error: " + l, o.cause), new ke(o)) : (console.error("AnzuFatalError: ", o), new ee(o));
369
+ throw ve(o) ? o : be(o) ? new he(o, o.config?.url) : ye(o) ? new Ce(o, d, e, o) : Ae(o) ? new Pe(o, d, e, o) : we(o) ? new _e(o, o) : xe(o) ? new ke(o) : Ie.isAxiosError(o) ? (m || console.error("Axios error: " + i, ...o.cause ? [o.cause] : []), new Te(o)) : (m || console.error("AnzuFatalError: ", o), new ae(o));
369
370
  } finally {
370
- r = null;
371
+ l = null;
371
372
  }
372
373
  },
373
374
  abortFetch: () => {
374
- r && r.abort();
375
+ l && l.abort();
375
376
  }
376
377
  };
377
- }, G = "/adm/v1/job", X = "job";
378
- function ua(n, m) {
378
+ }, Z = "/adm/v1/job", ee = "job";
379
+ function ua(r, f) {
379
380
  return {
380
- useFetchJobList: () => qe({ client: n, system: m, entity: X, urlTemplate: G }),
381
- fetchJob: (s) => Me(n, G + "/:id", { id: s }, m, X),
381
+ useFetchJobList: () => qe({ client: r, system: f, entity: ee, urlTemplate: Z }),
382
+ fetchJob: (s) => Me(r, Z + "/:id", { id: s }, f, ee),
382
383
  createJob: (s) => {
383
- const r = $e(s._resourceName).slice(4).replace("-kind-", "-kind/");
384
- return Ue(n, s, G + "/:type", { type: r }, m, X);
384
+ const m = $e(s._resourceName).slice(4).replace("-kind-", "-kind/");
385
+ return Ue(r, s, Z + "/:type", { type: m }, f, ee);
385
386
  },
386
- deleteJob: (s) => ze(n, G + "/:id", { id: s }, m, X)
387
+ deleteJob: (s) => ze(r, Z + "/:id", { id: s }, f, ee)
387
388
  };
388
389
  }
389
- const Bt = {
390
+ const Et = {
390
391
  key: "",
391
392
  title: void 0,
392
393
  sortable: !1,
393
394
  fixed: !1
394
- }, Et = {
395
+ }, Bt = {
395
396
  storeColumnsLocalStorage: !0,
396
397
  disableActions: !1,
397
398
  customI18n: void 0,
398
399
  showExpand: !1
399
400
  };
400
- function Ot(n, m, u, e, l = {}) {
401
- const i = { ...Et, ...l }, s = i.customI18n ?? Je, { t: r } = s.global || s;
402
- let g;
403
- Qe(i.storeColumnsLocalStorage) ? g = i.storeColumnsLocalStorage : Ye(i.storeColumnsLocalStorage) && i.storeColumnsLocalStorage === !0 && (g = "table_" + u + "_" + e);
404
- const p = n.map((c) => {
405
- const t = { ...Bt, ...c };
406
- return B(t.title) && (B(t.title) && Ke.includes(t.key) ? t.title = r("common.model.tracking." + t.key) : B(t.title) && u && e ? t.title = r(u + "." + e + ".model." + t.key) : t.title = ""), t;
407
- }), _ = P(() => {
408
- const c = [];
409
- return i.showExpand && c.push({ key: "data-table-expand", sortable: !1 }), p.forEach((t) => {
410
- m.value.includes(t.key) || c.push(t);
411
- }), i.disableActions || c.push({ key: "actions", sortable: !1, fixed: "end" }), c;
412
- }), d = () => {
413
- if (!g || !localStorage) return;
414
- const c = localStorage.getItem(g);
415
- if (!c) return;
416
- const t = JSON.parse(c);
417
- He(t) && We(t.hidden) && (m.value = t.hidden);
418
- }, y = (c) => {
419
- !g || !localStorage || localStorage.setItem(g, JSON.stringify({ hidden: c }));
401
+ function Ot(r, f, d, e, i = {}) {
402
+ const c = { ...Bt, ...i }, s = c.customI18n ?? Je, { t: m } = s.global || s;
403
+ let l;
404
+ Qe(c.storeColumnsLocalStorage) ? l = c.storeColumnsLocalStorage : Ye(c.storeColumnsLocalStorage) && c.storeColumnsLocalStorage === !0 && (l = "table_" + d + "_" + e);
405
+ const v = r.map((u) => {
406
+ const t = { ...Et, ...u };
407
+ return F(t.title) && (F(t.title) && Ke.includes(t.key) ? t.title = m("common.model.tracking." + t.key) : F(t.title) && d && e ? t.title = m(d + "." + e + ".model." + t.key) : t.title = ""), t;
408
+ }), C = w(() => {
409
+ const u = [];
410
+ return c.showExpand && u.push({ key: "data-table-expand", sortable: !1 }), v.forEach((t) => {
411
+ f.value.includes(t.key) || u.push(t);
412
+ }), c.disableActions || u.push({ key: "actions", sortable: !1, fixed: "end" }), u;
413
+ }), p = () => {
414
+ if (!l || !localStorage) return;
415
+ const u = localStorage.getItem(l);
416
+ if (!u) return;
417
+ const t = JSON.parse(u);
418
+ He(t) && We(t.hidden) && (f.value = t.hidden);
419
+ }, b = (u) => {
420
+ !l || !localStorage || localStorage.setItem(l, JSON.stringify({ hidden: u }));
420
421
  };
421
- return Oe(() => {
422
- d();
423
- }), Q(m, (c) => {
424
- y(c);
422
+ return De(() => {
423
+ p();
424
+ }), G(f, (u) => {
425
+ b(u);
425
426
  }), {
426
- columnsAll: p,
427
- columnsVisible: _,
428
- columnsHidden: m
427
+ columnsAll: v,
428
+ columnsVisible: C,
429
+ columnsHidden: f
429
430
  };
430
431
  }
431
- function da(n, m, u, e, l, i, s, r = null, g = void 0, p = !1) {
432
- const _ = U(!1), d = U([]), y = U([]), c = U(!1), { pagination: t, setSortBy: b, incrementPage: a } = Te(
433
- H(r) ? null : r.key,
434
- r?.order
435
- ), { resetFilter: v, submitFilter: x } = Ge(i, s, {
432
+ function da(r, f, d, e, i, c, s, m = null, l = void 0, v = !1) {
433
+ const C = q(!1), p = q([]), b = q([]), u = q(!1), { pagination: t, setSortBy: h, incrementPage: g } = Se(
434
+ Q(m) ? null : m.key,
435
+ m?.order
436
+ ), { resetFilter: a, submitFilter: A } = Ge(c, s, {
436
437
  storeFiltersLocalStorage: !1,
437
438
  populateUrlParams: !1
438
- }), { showErrorsDefault: o } = Xe(), { columnsVisible: M, columnsAll: R, columnsHidden: A } = Ot(
439
- n,
440
- m,
441
- u,
439
+ }), { showErrorsDefault: x } = Xe(), { columnsVisible: o, columnsAll: $, columnsHidden: U } = Ot(
440
+ r,
441
+ f,
442
+ d,
442
443
  e,
443
- { storeColumnsLocalStorage: !1, disableActions: !p }
444
- ), f = () => {
445
- I(), O();
446
- }, E = (k) => {
447
- b(k.sortBy), O();
448
- }, D = async () => {
449
- c.value = !0, a();
444
+ { storeColumnsLocalStorage: !1, disableActions: !v }
445
+ ), n = () => {
446
+ N(), V();
447
+ }, B = (O) => {
448
+ h(O.sortBy), V();
449
+ }, I = async () => {
450
+ u.value = !0, g();
450
451
  try {
451
- const k = await l(t, i, s, g);
452
- d.value.push(...k);
453
- } catch (k) {
454
- o(k);
452
+ const O = await i(t, c, s, l);
453
+ p.value.push(...O);
454
+ } catch (O) {
455
+ x(O);
455
456
  } finally {
456
- c.value = !1;
457
+ u.value = !1;
457
458
  }
458
- }, I = () => {
459
- d.value = [], y.value = [];
460
- }, N = async () => {
461
- c.value = !0;
459
+ }, N = () => {
460
+ p.value = [], b.value = [];
461
+ }, E = async () => {
462
+ u.value = !0;
462
463
  try {
463
- d.value = await l(
464
+ p.value = await i(
464
465
  t,
465
- i,
466
+ c,
466
467
  s,
467
- g
468
+ l
468
469
  );
469
- } catch (k) {
470
- o(k);
470
+ } catch (O) {
471
+ x(O);
471
472
  } finally {
472
- c.value = !1;
473
+ u.value = !1;
473
474
  }
474
- }, O = ut(async () => {
475
- await N();
475
+ }, V = ut(async () => {
476
+ await E();
476
477
  });
477
478
  return {
478
- items: d,
479
- selected: y,
479
+ items: p,
480
+ selected: b,
480
481
  pagination: t,
481
- columnsVisible: M,
482
- columnsHidden: A,
483
- columnsAll: R,
484
- filterTouched: _,
485
- loading: c,
486
- onRowClick: (k) => {
487
- const q = k.target;
488
- if (!q || q.tagName === "INPUT" && q.type === "checkbox")
482
+ columnsVisible: o,
483
+ columnsHidden: U,
484
+ columnsAll: $,
485
+ filterTouched: C,
486
+ loading: u,
487
+ onRowClick: (O) => {
488
+ const D = O.target;
489
+ if (!D || D.tagName === "INPUT" && D.type === "checkbox")
489
490
  return;
490
- const K = q.closest(".v-data-table__tr");
491
- if (!K || !K.classList.contains("v-data-table__tr")) return;
492
- const te = K.firstElementChild;
493
- if (!te || !te.classList.contains("v-data-table__td")) return;
494
- const re = te.querySelector("input");
495
- re && re.click();
491
+ const H = D.closest(".v-data-table__tr");
492
+ if (!H || !H.classList.contains("v-data-table__tr")) return;
493
+ const W = H.firstElementChild;
494
+ if (!W || !W.classList.contains("v-data-table__td")) return;
495
+ const le = W.querySelector("input");
496
+ le && le.click();
496
497
  },
497
- onFetchNextPage: D,
498
- onOpen: f,
499
- sortByChange: E,
500
- getList: O,
501
- resetFilter: () => v(t, O),
502
- submitFilter: () => x(t, O)
498
+ onFetchNextPage: I,
499
+ onOpen: n,
500
+ sortByChange: B,
501
+ getList: V,
502
+ resetFilter: () => a(t, V),
503
+ submitFilter: () => A(t, V)
503
504
  };
504
505
  }
505
506
  const Dt = { class: "d-flex flex-column w-100 px-1 align-center" }, It = { class: "d-flex justify-space-between w-100 align-center" }, Nt = { class: "d-flex align-center" }, Vt = { class: "d-flex align-center" }, jt = { class: "subject-select__sidebar system-border-r" }, Lt = { class: "subject-select-filter" }, Rt = { class: "subject-select__content" }, zt = {
506
507
  key: 0,
507
508
  class: "d-flex w-100 align-center justify-center pa-4"
508
- }, $t = { class: "subject-select__actions system-border-t" }, Ut = { key: 0 }, Mt = { key: 1 }, ma = /* @__PURE__ */ oe({
509
+ }, $t = { class: "subject-select__actions system-border-t" }, Ut = { key: 0 }, Mt = { key: 1 }, ma = /* @__PURE__ */ se({
509
510
  __name: "ASubjectSelect",
510
511
  props: {
511
512
  selectedItems: {},
@@ -519,114 +520,114 @@ const Dt = { class: "d-flex flex-column w-100 px-1 align-center" }, It = { class
519
520
  autoOpen: { type: Boolean, default: !1 }
520
521
  },
521
522
  emits: ["update:modelValue", "update:pagination", "onOpen", "onPageChange", "onConfirm", "onFetchNextPage"],
522
- setup(n, { expose: m, emit: u }) {
523
- const e = n, l = u, i = U(!1), s = P({
523
+ setup(r, { expose: f, emit: d }) {
524
+ const e = r, i = d, c = q(!1), s = w({
524
525
  get() {
525
- return B(e.modelValue) ? i.value : e.modelValue;
526
+ return F(e.modelValue) ? c.value : e.modelValue;
526
527
  },
527
- set(f) {
528
- i.value = f, l("update:modelValue", f);
528
+ set(n) {
529
+ c.value = n, i("update:modelValue", n);
529
530
  }
530
- }), r = P({
531
+ }), m = w({
531
532
  get: () => e.pagination,
532
- set: (f) => {
533
- l("update:pagination", { ...ie(f) });
533
+ set: (n) => {
534
+ i("update:pagination", { ...ce(n) });
534
535
  }
535
- }), { mdAndDown: g } = mt(), p = U(!g.value), _ = () => {
536
- g.value && (p.value = !1);
536
+ }), { mdAndDown: l } = mt(), v = q(!l.value), C = () => {
537
+ l.value && (v.value = !1);
537
538
  };
538
- at(Ze, _);
539
- const { t: d } = ne(), y = P(() => e.selectedItems.length), c = P(() => y.value < e.minCount || y.value > e.maxCount), t = () => {
540
- l("onOpen"), p.value = !g.value, s.value = !0;
541
- }, b = () => {
542
- p.value = !p.value;
543
- }, a = () => {
539
+ at(Ze, C);
540
+ const { t: p } = re(), b = w(() => e.selectedItems.length), u = w(() => b.value < e.minCount || b.value > e.maxCount), t = () => {
541
+ i("onOpen"), v.value = !l.value, s.value = !0;
542
+ }, h = () => {
543
+ v.value = !v.value;
544
+ }, g = () => {
544
545
  s.value = !1;
545
- }, v = () => {
546
- l(
546
+ }, a = () => {
547
+ i(
547
548
  "onConfirm",
548
- e.selectedItems.map((f) => ie(f))
549
- ), a();
549
+ e.selectedItems.map((n) => ce(n))
550
+ ), g();
551
+ }, A = () => {
552
+ i("onFetchNextPage");
550
553
  }, x = () => {
551
- l("onFetchNextPage");
552
- }, o = () => {
553
- l("onPageChange");
554
- }, M = P(() => Math.ceil(r.value.totalCount / r.value.rowsPerPage)), R = P(() => !(H(r.value.hasNextPage) && r.value.page === M.value || r.value.hasNextPage === !1)), A = (f) => {
555
- f && R.value && !e.loading && x();
554
+ i("onPageChange");
555
+ }, o = w(() => Math.ceil(m.value.totalCount / m.value.rowsPerPage)), $ = w(() => !(Q(m.value.hasNextPage) && m.value.page === o.value || m.value.hasNextPage === !1)), U = (n) => {
556
+ n && $.value && !e.loading && A();
556
557
  };
557
- return Oe(() => {
558
+ return De(() => {
558
559
  e.autoOpen && t();
559
- }), m({
560
+ }), f({
560
561
  open: t,
561
- closeSidebarOnMobile: _
562
- }), (f, E) => {
563
- const D = ce("ABtnSecondary"), I = ce("ABtnPrimary");
564
- return F(), L(se, null, [
565
- V(f.$slots, "activator", {
562
+ closeSidebarOnMobile: C
563
+ }), (n, B) => {
564
+ const I = ue("ABtnSecondary"), N = ue("ABtnPrimary");
565
+ return S(), R(ne, null, [
566
+ j(n.$slots, "activator", {
566
567
  props: { onClick: J(() => t(), ["stop"]) }
567
568
  }),
568
- C(ft, ot(f.$attrs, {
569
+ P(pt, ot(n.$attrs, {
569
570
  "model-value": s.value,
570
571
  fullscreen: "",
571
572
  class: "subject-select",
572
- "onUpdate:modelValue": E[1] || (E[1] = (N) => l("update:modelValue", N))
573
+ "onUpdate:modelValue": B[1] || (B[1] = (E) => i("update:modelValue", E))
573
574
  }), {
574
- default: S(() => [
575
- s.value ? (F(), W(pt, {
575
+ default: T(() => [
576
+ s.value ? (S(), Y(ft, {
576
577
  key: 0,
577
578
  class: "subject-select__card"
578
579
  }, {
579
- default: S(() => [
580
- C(et, {
580
+ default: T(() => [
581
+ P(et, {
581
582
  class: "subject-select__toolbar system-border-b",
582
- onOnCancel: a
583
+ onOnCancel: g
583
584
  }, {
584
- default: S(() => [
585
- V(f.$slots, "title", {}, () => [
586
- z(w(h(d)(n.dialogTitleT)), 1)
585
+ default: T(() => [
586
+ j(n.$slots, "title", {}, () => [
587
+ z(_(y(p)(r.dialogTitleT)), 1)
587
588
  ])
588
589
  ]),
589
590
  _: 3
590
591
  }),
591
- C(bt, {
592
+ P(bt, {
592
593
  density: "compact",
593
594
  color: "transparent",
594
595
  height: 46,
595
596
  elevation: "0",
596
597
  class: "system-border-b subject-select__second-bar"
597
598
  }, {
598
- default: S(() => [
599
- V(f.$slots, "second-bar", {}, () => [
600
- T("div", Dt, [
601
- T("div", It, [
602
- T("div", Nt, [
603
- C($, {
599
+ default: T(() => [
600
+ j(n.$slots, "second-bar", {}, () => [
601
+ k("div", Dt, [
602
+ k("div", It, [
603
+ k("div", Nt, [
604
+ P(M, {
604
605
  icon: "",
605
606
  width: 30,
606
607
  height: 30,
607
- onClick: b
608
+ onClick: h
608
609
  }, {
609
- default: S(() => [
610
- C(vt, {
610
+ default: T(() => [
611
+ P(vt, {
611
612
  icon: "mdi-tune",
612
613
  size: 16
613
614
  }),
614
- C(ht, {
615
+ P(ht, {
615
616
  activator: "parent",
616
617
  location: "bottom"
617
618
  }, {
618
- default: S(() => [
619
- z(w(h(d)("common.subjectSelect.filter.toggle")), 1)
619
+ default: T(() => [
620
+ z(_(y(p)("common.subjectSelect.filter.toggle")), 1)
620
621
  ]),
621
622
  _: 1
622
623
  })
623
624
  ]),
624
625
  _: 1
625
626
  }),
626
- V(f.$slots, "second-bar-left")
627
+ j(n.$slots, "second-bar-left")
627
628
  ]),
628
- T("div", Vt, [
629
- V(f.$slots, "second-bar-right")
629
+ k("div", Vt, [
630
+ j(n.$slots, "second-bar-right")
630
631
  ])
631
632
  ])
632
633
  ])
@@ -634,62 +635,62 @@ const Dt = { class: "d-flex flex-column w-100 px-1 align-center" }, It = { class
634
635
  ]),
635
636
  _: 3
636
637
  }),
637
- T("div", {
638
- class: Be(["subject-select__main", { "subject-select__main--sidebar-active": p.value }])
638
+ k("div", {
639
+ class: Be(["subject-select__main", { "subject-select__main--sidebar-active": v.value }])
639
640
  }, [
640
- T("div", jt, [
641
- T("div", Lt, [
642
- V(f.$slots, "filter")
641
+ k("div", jt, [
642
+ k("div", Lt, [
643
+ j(n.$slots, "filter")
643
644
  ])
644
645
  ]),
645
- T("div", Rt, [
646
- V(f.$slots, "content"),
647
- n.paginationMode === "more" ? (F(), L("div", zt, [
648
- st((F(), W(D, {
649
- loading: n.loading,
646
+ k("div", Rt, [
647
+ j(n.$slots, "content"),
648
+ r.paginationMode === "more" ? (S(), R("div", zt, [
649
+ st((S(), Y(I, {
650
+ loading: r.loading,
650
651
  size: "small",
651
- onClick: x
652
+ onClick: A
652
653
  }, {
653
- default: S(() => [
654
- V(f.$slots, "button-confirm-title", {}, () => [
655
- z(w(h(d)("common.button.loadMore")), 1)
654
+ default: T(() => [
655
+ j(n.$slots, "button-confirm-title", {}, () => [
656
+ z(_(y(p)("common.button.loadMore")), 1)
656
657
  ])
657
658
  ]),
658
659
  _: 3
659
660
  }, 8, ["loading"])), [
660
- [nt, R.value || n.loading],
661
+ [nt, $.value || r.loading],
661
662
  [
662
663
  yt,
663
- A,
664
+ U,
664
665
  void 0,
665
666
  { quiet: !0 }
666
667
  ]
667
668
  ])
668
- ])) : (F(), W(St, {
669
+ ])) : (S(), Y(St, {
669
670
  key: 1,
670
- modelValue: r.value,
671
- "onUpdate:modelValue": E[0] || (E[0] = (N) => r.value = N),
672
- onChange: o
671
+ modelValue: m.value,
672
+ "onUpdate:modelValue": B[0] || (B[0] = (E) => m.value = E),
673
+ onChange: x
673
674
  }, null, 8, ["modelValue"]))
674
675
  ])
675
676
  ], 2),
676
- T("div", $t, [
677
- n.minCount === n.maxCount ? (F(), L("div", Ut, w(h(d)("common.subjectSelect.texts.pickExactCount", {
678
- count: n.minCount,
679
- selected: y.value
680
- })), 1)) : (F(), L("div", Mt, w(h(d)("common.subjectSelect.texts.pickRangeCount", {
681
- minCount: n.minCount,
682
- maxCount: n.maxCount,
683
- selected: y.value
677
+ k("div", $t, [
678
+ r.minCount === r.maxCount ? (S(), R("div", Ut, _(y(p)("common.subjectSelect.texts.pickExactCount", {
679
+ count: r.minCount,
680
+ selected: b.value
681
+ })), 1)) : (S(), R("div", Mt, _(y(p)("common.subjectSelect.texts.pickRangeCount", {
682
+ minCount: r.minCount,
683
+ maxCount: r.maxCount,
684
+ selected: b.value
684
685
  })), 1)),
685
- C(gt),
686
- C(I, {
687
- disabled: c.value,
688
- onClick: J(v, ["stop"])
686
+ P(gt),
687
+ P(N, {
688
+ disabled: u.value,
689
+ onClick: J(a, ["stop"])
689
690
  }, {
690
- default: S(() => [
691
- V(f.$slots, "button-confirm-title", {}, () => [
692
- z(w(h(d)("common.button.confirm")), 1)
691
+ default: T(() => [
692
+ j(n.$slots, "button-confirm-title", {}, () => [
693
+ z(_(y(p)("common.button.confirm")), 1)
693
694
  ])
694
695
  ]),
695
696
  _: 3
@@ -697,7 +698,7 @@ const Dt = { class: "d-flex flex-column w-100 px-1 align-center" }, It = { class
697
698
  ])
698
699
  ]),
699
700
  _: 3
700
- })) : Ee("", !0)
701
+ })) : Oe("", !0)
701
702
  ]),
702
703
  _: 3
703
704
  }, 16, ["model-value"])
@@ -720,20 +721,20 @@ export {
720
721
  _a as AFilterWrapperSubjectSelect,
721
722
  xa as AFormRemoteAutocomplete,
722
723
  ma as ASubjectSelect,
723
- ue as DatatablePaginationKey,
724
+ de as DatatablePaginationKey,
724
725
  ka as FilterConfigKey,
725
726
  Ta as FilterDataKey,
726
727
  Sa as FilterInnerConfigKey,
727
728
  Fa as FilterInnerDataKey,
728
- Ba as TimeIntervalSpecialOptions,
729
- Ea as UserAdminConfigLayoutType,
729
+ Ea as TimeIntervalSpecialOptions,
730
+ Ba as UserAdminConfigLayoutType,
730
731
  Oa as UserAdminConfigLayoutTypeDefault,
731
732
  Da as UserAdminConfigType,
732
733
  Ia as UserAdminConfigTypeDefault,
733
734
  Ot as createDatatableColumnsConfig,
734
735
  Na as createFilter,
735
736
  Va as createFilterStore,
736
- ae as generateListQuery,
737
+ oe as generateListQuery,
737
738
  ia as useApiFetchByIds,
738
739
  qe as useApiFetchList,
739
740
  ca as useApiFetchListBatch,
@@ -741,7 +742,7 @@ export {
741
742
  ja as useApiRequest,
742
743
  Ge as useFilterHelpers,
743
744
  ua as useJobApi,
744
- Te as usePagination,
745
+ Se as usePagination,
745
746
  da as useSubjectSelect,
746
747
  La as useUserAdminConfigApi,
747
748
  Ra as useUserAdminConfigFactory