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

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-DjYHyeck.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-DjYHyeck.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,306 @@ 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 {
304
+ client: f,
305
+ system: d,
306
+ entity: e,
307
+ urlTemplate: i,
308
+ urlParams: c,
309
+ options: s = {},
310
+ silentConsoleError: m = !1
311
+ } = r;
312
+ let l = null;
304
313
  return {
305
- executeFetch: async (_, d, y = {}) => {
306
- r = new AbortController();
314
+ executeFetch: async (p, b, u = {}) => {
315
+ l = new AbortController();
307
316
  const {
308
- urlTemplate: c,
309
- urlParams: t,
310
- sortBy: b = "id",
317
+ urlTemplate: t,
318
+ urlParams: h,
319
+ sortBy: g = "id",
311
320
  sortDesc: a = !0,
312
- batchSize: v = 100,
321
+ batchSize: A = 100,
313
322
  forceElastic: x = !1
314
- } = y;
323
+ } = u;
315
324
  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),
325
+ const o = b.general.elastic || x ? "/search" : "", $ = te(h) ? h : c, U = te(t) ? t : i;
326
+ if (F(U)) throw new Error("Url template is undefined");
327
+ const { pagination: n } = Se(g, a ? L.Desc : L.Asc, {
328
+ rowsPerPage: A
329
+ }), B = (F($) ? U : me(U, $)) + o, I = [], N = await f().get(
330
+ B + oe(n, p, b),
322
331
  {
323
332
  ...s,
324
- signal: r.signal
333
+ signal: l.signal
325
334
  }
326
335
  );
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),
336
+ if (!fe(N.status))
337
+ throw new pe(N.status);
338
+ if (N.data) {
339
+ const E = N.data;
340
+ if (I.push(...E.data), Le(E))
341
+ for (n.value.hasNextPage = E.hasNextPage; n.value.hasNextPage; ) {
342
+ n.value.page++;
343
+ const K = (await f().get(
344
+ B + oe(n, p, b),
336
345
  {
337
346
  ...s,
338
- signal: r.signal
347
+ signal: l.signal
339
348
  }
340
349
  )).data;
341
- E.push(...O.data), A.value.hasNextPage = O.hasNextPage;
350
+ I.push(...K.data), n.value.hasNextPage = K.hasNextPage;
342
351
  }
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), {
352
+ else if (Re(E)) {
353
+ if (n.value.totalCount = E.totalCount, n.value.totalCount <= n.value.rowsPerPage)
354
+ return I;
355
+ const V = [], K = Math.ceil(n.value.totalCount / n.value.rowsPerPage);
356
+ for (let D = 1; D < K; D++) {
357
+ const H = { ...n.value, page: D + 1 }, W = q(H);
358
+ V.push(
359
+ f().get(B + oe(W, p, b), {
351
360
  ...s,
352
- signal: r.signal
361
+ signal: l.signal
353
362
  })
354
363
  );
355
364
  }
356
- (await Promise.all(N)).forEach((k) => {
357
- E.push(...k.data.data);
365
+ (await Promise.all(V)).forEach((D) => {
366
+ I.push(...D.data.data);
358
367
  });
359
368
  }
360
- return E;
369
+ return I;
361
370
  }
362
- if (D.status === fe)
371
+ if (N.status === ge)
363
372
  return [];
364
- throw new ee();
373
+ throw new ae();
365
374
  } catch (o) {
366
375
  if (o instanceof DOMException && o.name === "AbortError")
367
376
  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));
377
+ 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
378
  } finally {
370
- r = null;
379
+ l = null;
371
380
  }
372
381
  },
373
382
  abortFetch: () => {
374
- r && r.abort();
383
+ l && l.abort();
375
384
  }
376
385
  };
377
- }, G = "/adm/v1/job", X = "job";
378
- function ua(n, m) {
386
+ }, Z = "/adm/v1/job", ee = "job";
387
+ function ua(r, f) {
379
388
  return {
380
- useFetchJobList: () => qe({ client: n, system: m, entity: X, urlTemplate: G }),
381
- fetchJob: (s) => Me(n, G + "/:id", { id: s }, m, X),
389
+ useFetchJobList: () => qe({ client: r, system: f, entity: ee, urlTemplate: Z }),
390
+ fetchJob: (s) => Me(r, Z + "/:id", { id: s }, f, ee),
382
391
  createJob: (s) => {
383
- const r = $e(s._resourceName).slice(4).replace("-kind-", "-kind/");
384
- return Ue(n, s, G + "/:type", { type: r }, m, X);
392
+ const m = $e(s._resourceName).slice(4).replace("-kind-", "-kind/");
393
+ return Ue(r, s, Z + "/:type", { type: m }, f, ee);
385
394
  },
386
- deleteJob: (s) => ze(n, G + "/:id", { id: s }, m, X)
395
+ deleteJob: (s) => ze(r, Z + "/:id", { id: s }, f, ee)
387
396
  };
388
397
  }
389
- const Bt = {
398
+ const Et = {
390
399
  key: "",
391
400
  title: void 0,
392
401
  sortable: !1,
393
402
  fixed: !1
394
- }, Et = {
403
+ }, Bt = {
395
404
  storeColumnsLocalStorage: !0,
396
405
  disableActions: !1,
397
406
  customI18n: void 0,
398
407
  showExpand: !1
399
408
  };
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 }));
409
+ function Ot(r, f, d, e, i = {}) {
410
+ const c = { ...Bt, ...i }, s = c.customI18n ?? Je, { t: m } = s.global || s;
411
+ let l;
412
+ Qe(c.storeColumnsLocalStorage) ? l = c.storeColumnsLocalStorage : Ye(c.storeColumnsLocalStorage) && c.storeColumnsLocalStorage === !0 && (l = "table_" + d + "_" + e);
413
+ const v = r.map((u) => {
414
+ const t = { ...Et, ...u };
415
+ 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;
416
+ }), C = w(() => {
417
+ const u = [];
418
+ return c.showExpand && u.push({ key: "data-table-expand", sortable: !1 }), v.forEach((t) => {
419
+ f.value.includes(t.key) || u.push(t);
420
+ }), c.disableActions || u.push({ key: "actions", sortable: !1, fixed: "end" }), u;
421
+ }), p = () => {
422
+ if (!l || !localStorage) return;
423
+ const u = localStorage.getItem(l);
424
+ if (!u) return;
425
+ const t = JSON.parse(u);
426
+ He(t) && We(t.hidden) && (f.value = t.hidden);
427
+ }, b = (u) => {
428
+ !l || !localStorage || localStorage.setItem(l, JSON.stringify({ hidden: u }));
420
429
  };
421
- return Oe(() => {
422
- d();
423
- }), Q(m, (c) => {
424
- y(c);
430
+ return De(() => {
431
+ p();
432
+ }), G(f, (u) => {
433
+ b(u);
425
434
  }), {
426
- columnsAll: p,
427
- columnsVisible: _,
428
- columnsHidden: m
435
+ columnsAll: v,
436
+ columnsVisible: C,
437
+ columnsHidden: f
429
438
  };
430
439
  }
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, {
440
+ function da(r, f, d, e, i, c, s, m = null, l = void 0, v = !1) {
441
+ const C = q(!1), p = q([]), b = q([]), u = q(!1), { pagination: t, setSortBy: h, incrementPage: g } = Se(
442
+ Q(m) ? null : m.key,
443
+ m?.order
444
+ ), { resetFilter: a, submitFilter: A } = Ge(c, s, {
436
445
  storeFiltersLocalStorage: !1,
437
446
  populateUrlParams: !1
438
- }), { showErrorsDefault: o } = Xe(), { columnsVisible: M, columnsAll: R, columnsHidden: A } = Ot(
439
- n,
440
- m,
441
- u,
447
+ }), { showErrorsDefault: x } = Xe(), { columnsVisible: o, columnsAll: $, columnsHidden: U } = Ot(
448
+ r,
449
+ f,
450
+ d,
442
451
  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();
452
+ { storeColumnsLocalStorage: !1, disableActions: !v }
453
+ ), n = () => {
454
+ N(), V();
455
+ }, B = (O) => {
456
+ h(O.sortBy), V();
457
+ }, I = async () => {
458
+ u.value = !0, g();
450
459
  try {
451
- const k = await l(t, i, s, g);
452
- d.value.push(...k);
453
- } catch (k) {
454
- o(k);
460
+ const O = await i(t, c, s, l);
461
+ p.value.push(...O);
462
+ } catch (O) {
463
+ x(O);
455
464
  } finally {
456
- c.value = !1;
465
+ u.value = !1;
457
466
  }
458
- }, I = () => {
459
- d.value = [], y.value = [];
460
- }, N = async () => {
461
- c.value = !0;
467
+ }, N = () => {
468
+ p.value = [], b.value = [];
469
+ }, E = async () => {
470
+ u.value = !0;
462
471
  try {
463
- d.value = await l(
472
+ p.value = await i(
464
473
  t,
465
- i,
474
+ c,
466
475
  s,
467
- g
476
+ l
468
477
  );
469
- } catch (k) {
470
- o(k);
478
+ } catch (O) {
479
+ x(O);
471
480
  } finally {
472
- c.value = !1;
481
+ u.value = !1;
473
482
  }
474
- }, O = ut(async () => {
475
- await N();
483
+ }, V = ut(async () => {
484
+ await E();
476
485
  });
477
486
  return {
478
- items: d,
479
- selected: y,
487
+ items: p,
488
+ selected: b,
480
489
  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")
490
+ columnsVisible: o,
491
+ columnsHidden: U,
492
+ columnsAll: $,
493
+ filterTouched: C,
494
+ loading: u,
495
+ onRowClick: (O) => {
496
+ const D = O.target;
497
+ if (!D || D.tagName === "INPUT" && D.type === "checkbox")
489
498
  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();
499
+ const H = D.closest(".v-data-table__tr");
500
+ if (!H || !H.classList.contains("v-data-table__tr")) return;
501
+ const W = H.firstElementChild;
502
+ if (!W || !W.classList.contains("v-data-table__td")) return;
503
+ const le = W.querySelector("input");
504
+ le && le.click();
496
505
  },
497
- onFetchNextPage: D,
498
- onOpen: f,
499
- sortByChange: E,
500
- getList: O,
501
- resetFilter: () => v(t, O),
502
- submitFilter: () => x(t, O)
506
+ onFetchNextPage: I,
507
+ onOpen: n,
508
+ sortByChange: B,
509
+ getList: V,
510
+ resetFilter: () => a(t, V),
511
+ submitFilter: () => A(t, V)
503
512
  };
504
513
  }
505
514
  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
515
  key: 0,
507
516
  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({
517
+ }, $t = { class: "subject-select__actions system-border-t" }, Ut = { key: 0 }, Mt = { key: 1 }, ma = /* @__PURE__ */ se({
509
518
  __name: "ASubjectSelect",
510
519
  props: {
511
520
  selectedItems: {},
@@ -519,114 +528,114 @@ const Dt = { class: "d-flex flex-column w-100 px-1 align-center" }, It = { class
519
528
  autoOpen: { type: Boolean, default: !1 }
520
529
  },
521
530
  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({
531
+ setup(r, { expose: f, emit: d }) {
532
+ const e = r, i = d, c = q(!1), s = w({
524
533
  get() {
525
- return B(e.modelValue) ? i.value : e.modelValue;
534
+ return F(e.modelValue) ? c.value : e.modelValue;
526
535
  },
527
- set(f) {
528
- i.value = f, l("update:modelValue", f);
536
+ set(n) {
537
+ c.value = n, i("update:modelValue", n);
529
538
  }
530
- }), r = P({
539
+ }), m = w({
531
540
  get: () => e.pagination,
532
- set: (f) => {
533
- l("update:pagination", { ...ie(f) });
541
+ set: (n) => {
542
+ i("update:pagination", { ...ce(n) });
534
543
  }
535
- }), { mdAndDown: g } = mt(), p = U(!g.value), _ = () => {
536
- g.value && (p.value = !1);
544
+ }), { mdAndDown: l } = mt(), v = q(!l.value), C = () => {
545
+ l.value && (v.value = !1);
537
546
  };
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 = () => {
547
+ at(Ze, C);
548
+ const { t: p } = re(), b = w(() => e.selectedItems.length), u = w(() => b.value < e.minCount || b.value > e.maxCount), t = () => {
549
+ i("onOpen"), v.value = !l.value, s.value = !0;
550
+ }, h = () => {
551
+ v.value = !v.value;
552
+ }, g = () => {
544
553
  s.value = !1;
545
- }, v = () => {
546
- l(
554
+ }, a = () => {
555
+ i(
547
556
  "onConfirm",
548
- e.selectedItems.map((f) => ie(f))
549
- ), a();
557
+ e.selectedItems.map((n) => ce(n))
558
+ ), g();
559
+ }, A = () => {
560
+ i("onFetchNextPage");
550
561
  }, 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();
562
+ i("onPageChange");
563
+ }, 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) => {
564
+ n && $.value && !e.loading && A();
556
565
  };
557
- return Oe(() => {
566
+ return De(() => {
558
567
  e.autoOpen && t();
559
- }), m({
568
+ }), f({
560
569
  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", {
570
+ closeSidebarOnMobile: C
571
+ }), (n, B) => {
572
+ const I = ue("ABtnSecondary"), N = ue("ABtnPrimary");
573
+ return S(), R(ne, null, [
574
+ j(n.$slots, "activator", {
566
575
  props: { onClick: J(() => t(), ["stop"]) }
567
576
  }),
568
- C(ft, ot(f.$attrs, {
577
+ P(pt, ot(n.$attrs, {
569
578
  "model-value": s.value,
570
579
  fullscreen: "",
571
580
  class: "subject-select",
572
- "onUpdate:modelValue": E[1] || (E[1] = (N) => l("update:modelValue", N))
581
+ "onUpdate:modelValue": B[1] || (B[1] = (E) => i("update:modelValue", E))
573
582
  }), {
574
- default: S(() => [
575
- s.value ? (F(), W(pt, {
583
+ default: T(() => [
584
+ s.value ? (S(), Y(ft, {
576
585
  key: 0,
577
586
  class: "subject-select__card"
578
587
  }, {
579
- default: S(() => [
580
- C(et, {
588
+ default: T(() => [
589
+ P(et, {
581
590
  class: "subject-select__toolbar system-border-b",
582
- onOnCancel: a
591
+ onOnCancel: g
583
592
  }, {
584
- default: S(() => [
585
- V(f.$slots, "title", {}, () => [
586
- z(w(h(d)(n.dialogTitleT)), 1)
593
+ default: T(() => [
594
+ j(n.$slots, "title", {}, () => [
595
+ z(_(y(p)(r.dialogTitleT)), 1)
587
596
  ])
588
597
  ]),
589
598
  _: 3
590
599
  }),
591
- C(bt, {
600
+ P(bt, {
592
601
  density: "compact",
593
602
  color: "transparent",
594
603
  height: 46,
595
604
  elevation: "0",
596
605
  class: "system-border-b subject-select__second-bar"
597
606
  }, {
598
- default: S(() => [
599
- V(f.$slots, "second-bar", {}, () => [
600
- T("div", Dt, [
601
- T("div", It, [
602
- T("div", Nt, [
603
- C($, {
607
+ default: T(() => [
608
+ j(n.$slots, "second-bar", {}, () => [
609
+ k("div", Dt, [
610
+ k("div", It, [
611
+ k("div", Nt, [
612
+ P(M, {
604
613
  icon: "",
605
614
  width: 30,
606
615
  height: 30,
607
- onClick: b
616
+ onClick: h
608
617
  }, {
609
- default: S(() => [
610
- C(vt, {
618
+ default: T(() => [
619
+ P(vt, {
611
620
  icon: "mdi-tune",
612
621
  size: 16
613
622
  }),
614
- C(ht, {
623
+ P(ht, {
615
624
  activator: "parent",
616
625
  location: "bottom"
617
626
  }, {
618
- default: S(() => [
619
- z(w(h(d)("common.subjectSelect.filter.toggle")), 1)
627
+ default: T(() => [
628
+ z(_(y(p)("common.subjectSelect.filter.toggle")), 1)
620
629
  ]),
621
630
  _: 1
622
631
  })
623
632
  ]),
624
633
  _: 1
625
634
  }),
626
- V(f.$slots, "second-bar-left")
635
+ j(n.$slots, "second-bar-left")
627
636
  ]),
628
- T("div", Vt, [
629
- V(f.$slots, "second-bar-right")
637
+ k("div", Vt, [
638
+ j(n.$slots, "second-bar-right")
630
639
  ])
631
640
  ])
632
641
  ])
@@ -634,62 +643,62 @@ const Dt = { class: "d-flex flex-column w-100 px-1 align-center" }, It = { class
634
643
  ]),
635
644
  _: 3
636
645
  }),
637
- T("div", {
638
- class: Be(["subject-select__main", { "subject-select__main--sidebar-active": p.value }])
646
+ k("div", {
647
+ class: Be(["subject-select__main", { "subject-select__main--sidebar-active": v.value }])
639
648
  }, [
640
- T("div", jt, [
641
- T("div", Lt, [
642
- V(f.$slots, "filter")
649
+ k("div", jt, [
650
+ k("div", Lt, [
651
+ j(n.$slots, "filter")
643
652
  ])
644
653
  ]),
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,
654
+ k("div", Rt, [
655
+ j(n.$slots, "content"),
656
+ r.paginationMode === "more" ? (S(), R("div", zt, [
657
+ st((S(), Y(I, {
658
+ loading: r.loading,
650
659
  size: "small",
651
- onClick: x
660
+ onClick: A
652
661
  }, {
653
- default: S(() => [
654
- V(f.$slots, "button-confirm-title", {}, () => [
655
- z(w(h(d)("common.button.loadMore")), 1)
662
+ default: T(() => [
663
+ j(n.$slots, "button-confirm-title", {}, () => [
664
+ z(_(y(p)("common.button.loadMore")), 1)
656
665
  ])
657
666
  ]),
658
667
  _: 3
659
668
  }, 8, ["loading"])), [
660
- [nt, R.value || n.loading],
669
+ [nt, $.value || r.loading],
661
670
  [
662
671
  yt,
663
- A,
672
+ U,
664
673
  void 0,
665
674
  { quiet: !0 }
666
675
  ]
667
676
  ])
668
- ])) : (F(), W(St, {
677
+ ])) : (S(), Y(St, {
669
678
  key: 1,
670
- modelValue: r.value,
671
- "onUpdate:modelValue": E[0] || (E[0] = (N) => r.value = N),
672
- onChange: o
679
+ modelValue: m.value,
680
+ "onUpdate:modelValue": B[0] || (B[0] = (E) => m.value = E),
681
+ onChange: x
673
682
  }, null, 8, ["modelValue"]))
674
683
  ])
675
684
  ], 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
685
+ k("div", $t, [
686
+ r.minCount === r.maxCount ? (S(), R("div", Ut, _(y(p)("common.subjectSelect.texts.pickExactCount", {
687
+ count: r.minCount,
688
+ selected: b.value
689
+ })), 1)) : (S(), R("div", Mt, _(y(p)("common.subjectSelect.texts.pickRangeCount", {
690
+ minCount: r.minCount,
691
+ maxCount: r.maxCount,
692
+ selected: b.value
684
693
  })), 1)),
685
- C(gt),
686
- C(I, {
687
- disabled: c.value,
688
- onClick: J(v, ["stop"])
694
+ P(gt),
695
+ P(N, {
696
+ disabled: u.value,
697
+ onClick: J(a, ["stop"])
689
698
  }, {
690
- default: S(() => [
691
- V(f.$slots, "button-confirm-title", {}, () => [
692
- z(w(h(d)("common.button.confirm")), 1)
699
+ default: T(() => [
700
+ j(n.$slots, "button-confirm-title", {}, () => [
701
+ z(_(y(p)("common.button.confirm")), 1)
693
702
  ])
694
703
  ]),
695
704
  _: 3
@@ -697,7 +706,7 @@ const Dt = { class: "d-flex flex-column w-100 px-1 align-center" }, It = { class
697
706
  ])
698
707
  ]),
699
708
  _: 3
700
- })) : Ee("", !0)
709
+ })) : Oe("", !0)
701
710
  ]),
702
711
  _: 3
703
712
  }, 16, ["model-value"])
@@ -720,20 +729,20 @@ export {
720
729
  _a as AFilterWrapperSubjectSelect,
721
730
  xa as AFormRemoteAutocomplete,
722
731
  ma as ASubjectSelect,
723
- ue as DatatablePaginationKey,
732
+ de as DatatablePaginationKey,
724
733
  ka as FilterConfigKey,
725
734
  Ta as FilterDataKey,
726
735
  Sa as FilterInnerConfigKey,
727
736
  Fa as FilterInnerDataKey,
728
- Ba as TimeIntervalSpecialOptions,
729
- Ea as UserAdminConfigLayoutType,
737
+ Ea as TimeIntervalSpecialOptions,
738
+ Ba as UserAdminConfigLayoutType,
730
739
  Oa as UserAdminConfigLayoutTypeDefault,
731
740
  Da as UserAdminConfigType,
732
741
  Ia as UserAdminConfigTypeDefault,
733
742
  Ot as createDatatableColumnsConfig,
734
743
  Na as createFilter,
735
744
  Va as createFilterStore,
736
- ae as generateListQuery,
745
+ oe as generateListQuery,
737
746
  ia as useApiFetchByIds,
738
747
  qe as useApiFetchList,
739
748
  ca as useApiFetchListBatch,
@@ -741,7 +750,7 @@ export {
741
750
  ja as useApiRequest,
742
751
  Ge as useFilterHelpers,
743
752
  ua as useJobApi,
744
- Te as usePagination,
753
+ Se as usePagination,
745
754
  da as useSubjectSelect,
746
755
  La as useUserAdminConfigApi,
747
756
  Ra as useUserAdminConfigFactory