@anzusystems/common-admin 1.47.0-beta.dev-1771794053 → 1.47.0-beta.dev-1771894800

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