@beavernsticks/beaver-admin-ui-vue 0.0.0 → 0.0.1

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/index.es.js CHANGED
@@ -1,53 +1,53 @@
1
- import { reactive as Z, computed as B, ref as T, markRaw as _, defineComponent as f, createBlock as u, openBlock as n, unref as s, h as ee, resolveDirective as q, withDirectives as D, createElementBlock as v, createCommentVNode as p, renderSlot as $, createElementVNode as m, normalizeClass as F, toDisplayString as k, mergeModels as b, useModel as g, withCtx as d, createVNode as c, useId as L, Fragment as C, renderList as I, Teleport as te, resolveDynamicComponent as le, mergeProps as oe, resolveComponent as G, isRef as ae, inject as se, Transition as ne, normalizeStyle as K, createTextVNode as ie, watch as re } from "vue";
1
+ import { reactive as Z, computed as B, ref as T, markRaw as _, defineComponent as f, createBlock as u, openBlock as n, unref as a, h as ee, resolveDirective as q, withDirectives as D, createElementBlock as v, createCommentVNode as p, renderSlot as V, createElementVNode as c, normalizeClass as F, toDisplayString as x, mergeModels as b, useModel as g, withCtx as d, createVNode as m, useId as L, Fragment as C, renderList as I, Teleport as te, resolveDynamicComponent as le, mergeProps as oe, resolveComponent as U, isRef as se, inject as ae, Transition as ne, normalizeStyle as K, createTextVNode as ie, watch as re } from "vue";
2
2
  import { isEqual as ue } from "lodash-es";
3
3
  import { defineStore as W, storeToRefs as Q } from "pinia";
4
4
  import { useBreakpoints as de, breakpointsTailwind as ce } from "@vueuse/core";
5
- import { useConfirm as me, Button as h, AutoComplete as fe, Checkbox as ve, DatePicker as pe, Textarea as X, IconField as A, InputMask as be, InputIcon as R, MultiSelect as ge, InputNumber as ye, RadioButtonGroup as he, RadioButton as E, Password as xe, InputText as Y, Select as ke, ToggleSwitch as we, ScrollPanel as O, Menu as Ve, Drawer as U, ConfirmDialog as $e, Tabs as Me, TabList as Be, Tab as Ce, TabPanels as qe, TabPanel as De, DataTable as Se, Column as Ie, TreeTable as Re } from "primevue";
6
- import H from "dayjs";
7
- function jt(e, t) {
8
- const a = Z({ ...e }), l = t ? Array.isArray(t) ? t : [t] : [], o = l.reduce(
9
- (y, V) => (y[V] = B({
10
- get: () => a[V],
5
+ import { useConfirm as me, Button as h, AutoComplete as fe, Checkbox as ve, DatePicker as pe, Textarea as X, IconField as A, InputMask as be, InputIcon as R, MultiSelect as ge, InputNumber as ye, RadioButtonGroup as he, RadioButton as E, Password as xe, InputText as Y, Select as ke, ToggleSwitch as we, ScrollPanel as O, Menu as $e, Drawer as j, ConfirmDialog as Ve, Tabs as Me, TabList as Be, Tab as Ce, TabPanels as qe, TabPanel as De, DataTable as Se, Column as Ie, TreeTable as Re } from "primevue";
6
+ import J from "dayjs";
7
+ function Kt(e, t) {
8
+ const o = Z({ ...e }), l = t ? Array.isArray(t) ? t : [t] : [], s = l.reduce(
9
+ (y, $) => (y[$] = B({
10
+ get: () => o[$],
11
11
  set: (M) => {
12
- a[V] = M;
12
+ o[$] = M;
13
13
  }
14
14
  }), y),
15
15
  {}
16
16
  );
17
17
  function i(y) {
18
- Object.keys(a).forEach((V) => {
19
- a[V] = y[V];
18
+ Object.keys(o).forEach(($) => {
19
+ o[$] = y[$];
20
20
  });
21
21
  }
22
22
  function r() {
23
- Object.keys(a).filter((y) => !l.includes(y)).forEach((y) => {
24
- a[y] = e[y];
23
+ Object.keys(o).filter((y) => !l.includes(y)).forEach((y) => {
24
+ o[y] = e[y];
25
25
  });
26
26
  }
27
- const x = B(() => Object.keys(a).filter((y) => !l.includes(y)).some((y) => !ue(a[y], e[y])));
27
+ const k = B(() => Object.keys(o).filter((y) => !l.includes(y)).some((y) => !ue(o[y], e[y])));
28
28
  return {
29
- filter: a,
29
+ filter: o,
30
30
  // filterFields,
31
31
  // filterFieldsChanged,
32
- filterIsApplied: x,
32
+ filterIsApplied: k,
33
33
  filterApply: i,
34
34
  filterReset: r,
35
35
  // filterResetDraft,
36
- ...o
36
+ ...s
37
37
  };
38
38
  }
39
39
  const Te = W("drawer", () => {
40
40
  const e = T([]);
41
- function t(l, o) {
42
- e.value.push({ component: _(l), props: o });
41
+ function t(l, s) {
42
+ e.value.push({ component: _(l), props: s });
43
43
  }
44
- function a(l) {
44
+ function o(l) {
45
45
  e.value.splice(l, 1);
46
46
  }
47
47
  return {
48
48
  stack: e,
49
49
  openDrawer: t,
50
- closeDrawer: a
50
+ closeDrawer: o
51
51
  };
52
52
  }), ze = W("responsive", () => {
53
53
  const e = T(!1);
@@ -59,7 +59,7 @@ const Te = W("drawer", () => {
59
59
  toggleMobileMenu: t
60
60
  };
61
61
  });
62
- function j() {
62
+ function P() {
63
63
  const e = Te(), { stack: t } = Q(e);
64
64
  return {
65
65
  stack: t,
@@ -68,43 +68,43 @@ function j() {
68
68
  };
69
69
  }
70
70
  function z() {
71
- const e = de(ce), t = ze(), { isMobileMenuVisible: a } = Q(t), l = e.smaller("sm"), o = e.between("sm", "lg"), i = e.greater("lg"), r = l, x = o, y = i, V = e.smaller("lg"), M = e.greater("sm");
71
+ const e = de(ce), t = ze(), { isMobileMenuVisible: o } = Q(t), l = e.smaller("sm"), s = e.between("sm", "lg"), i = e.greater("lg"), r = l, k = s, y = i, $ = e.smaller("lg"), M = e.greater("sm");
72
72
  return {
73
73
  breakpoints: e,
74
74
  // Полный доступ к breakpoints API
75
75
  isMobile: l,
76
- isTablet: o,
76
+ isTablet: s,
77
77
  isDesktop: i,
78
78
  mobileOnly: r,
79
- tabletOnly: x,
79
+ tabletOnly: k,
80
80
  desktopOnly: y,
81
- isMobileOrTablet: V,
81
+ isMobileOrTablet: $,
82
82
  isTabletOrDesktop: M,
83
- isMobileMenuVisible: a,
83
+ isMobileMenuVisible: o,
84
84
  toggleMobileMenu: t.toggleMobileMenu
85
85
  };
86
86
  }
87
- function Pt() {
87
+ function Wt() {
88
88
  const e = me();
89
- function t(a) {
89
+ function t(o) {
90
90
  e.require({
91
- header: a.header || "Подтвердите действие",
92
- message: a.message,
93
- acceptLabel: a.acceptLabel || "Подтвердить",
91
+ header: o.header || "Подтвердите действие",
92
+ message: o.message,
93
+ acceptLabel: o.acceptLabel || "Подтвердить",
94
94
  acceptProps: {
95
95
  severity: "danger",
96
96
  rounded: !0,
97
97
  size: "small"
98
98
  },
99
- rejectLabel: a.rejectLabel || "Отменить",
99
+ rejectLabel: o.rejectLabel || "Отменить",
100
100
  rejectProps: {
101
101
  severity: "secondary",
102
102
  outlined: !0,
103
103
  rounded: !0,
104
104
  size: "small"
105
105
  },
106
- accept: a.acceptHandler,
107
- reject: a.rejectHandler
106
+ accept: o.acceptHandler,
107
+ reject: o.rejectHandler
108
108
  });
109
109
  }
110
110
  return {
@@ -117,13 +117,13 @@ const Ne = /* @__PURE__ */ f({
117
117
  component: {}
118
118
  },
119
119
  setup(e) {
120
- const { open: t } = j(), { isDesktop: a } = z();
121
- return (l, o) => (n(), u(s(h), {
122
- label: s(a) ? "Создать" : void 0,
120
+ const { open: t } = P(), { isDesktop: o } = z();
121
+ return (l, s) => (n(), u(a(h), {
122
+ label: a(o) ? "Создать" : void 0,
123
123
  size: "small",
124
124
  rounded: "",
125
125
  icon: "pi pi-plus",
126
- onClick: o[0] || (o[0] = (i) => s(t)(e.component))
126
+ onClick: s[0] || (s[0] = (i) => a(t)(e.component))
127
127
  }, null, 8, ["label"]));
128
128
  }
129
129
  }), Le = /* @__PURE__ */ f({
@@ -133,19 +133,19 @@ const Ne = /* @__PURE__ */ f({
133
133
  component: {}
134
134
  },
135
135
  setup(e) {
136
- const { open: t } = j(), { isDesktop: a } = z();
137
- return (l, o) => (n(), u(s(h), {
138
- label: s(a) ? "Фильтр" : void 0,
136
+ const { open: t } = P(), { isDesktop: o } = z();
137
+ return (l, s) => (n(), u(a(h), {
138
+ label: a(o) ? "Фильтр" : void 0,
139
139
  size: "small",
140
140
  variant: "outlined",
141
141
  icon: `pi ${e.hasChanges ? "pi-filter-fill text-primary" : "pi-filter"}`,
142
142
  severity: "secondary",
143
143
  rounded: "",
144
- onClick: o[0] || (o[0] = (i) => s(t)(e.component))
144
+ onClick: s[0] || (s[0] = (i) => a(t)(e.component))
145
145
  }, null, 8, ["label", "icon"]));
146
146
  }
147
147
  });
148
- function Ht(e, t) {
148
+ function Qt(e, t) {
149
149
  return ee(e, t?.props, t?.slots || t?.children);
150
150
  }
151
151
  function S(e, t) {
@@ -161,9 +161,9 @@ const Oe = /* @__PURE__ */ f({
161
161
  value: { type: Boolean }
162
162
  },
163
163
  setup(e) {
164
- return (t, a) => {
164
+ return (t, o) => {
165
165
  const l = q("tooltip");
166
- return D((n(), u(s(h), {
166
+ return D((n(), u(a(h), {
167
167
  icon: "pi pi-search",
168
168
  severity: e.value ? "primary" : "secondary",
169
169
  rounded: "",
@@ -172,17 +172,17 @@ const Oe = /* @__PURE__ */ f({
172
172
  }, null, 8, ["severity", "variant"])), [
173
173
  [
174
174
  l,
175
- s(S)(e.value ? "Выключить поиск" : "Включить поиск", !0),
175
+ a(S)(e.value ? "Выключить поиск" : "Включить поиск", !0),
176
176
  void 0,
177
177
  { right: !0 }
178
178
  ]
179
179
  ]);
180
180
  };
181
181
  }
182
- }), Jt = /* @__PURE__ */ f({
182
+ }), Xt = /* @__PURE__ */ f({
183
183
  __name: "SelectAddButton",
184
184
  setup(e) {
185
- return (t, a) => (n(), u(s(h), {
185
+ return (t, o) => (n(), u(a(h), {
186
186
  label: "Добавить",
187
187
  severity: "secondary",
188
188
  text: "",
@@ -192,15 +192,15 @@ const Oe = /* @__PURE__ */ f({
192
192
  class: "rounded-t-none"
193
193
  }));
194
194
  }
195
- }), Gt = /* @__PURE__ */ f({
195
+ }), Yt = /* @__PURE__ */ f({
196
196
  __name: "TableAddButton",
197
197
  props: {
198
198
  tooltip: { default: "Добавить" }
199
199
  },
200
200
  setup(e) {
201
- return (t, a) => {
201
+ return (t, o) => {
202
202
  const l = q("tooltip");
203
- return D((n(), u(s(h), {
203
+ return D((n(), u(a(h), {
204
204
  text: "",
205
205
  rounded: "",
206
206
  size: "small",
@@ -209,22 +209,22 @@ const Oe = /* @__PURE__ */ f({
209
209
  }, null, 512)), [
210
210
  [
211
211
  l,
212
- s(S)(e.tooltip, !0),
212
+ a(S)(e.tooltip, !0),
213
213
  void 0,
214
214
  { left: !0 }
215
215
  ]
216
216
  ]);
217
217
  };
218
218
  }
219
- }), Kt = /* @__PURE__ */ f({
219
+ }), Zt = /* @__PURE__ */ f({
220
220
  __name: "TableDeleteButton",
221
221
  props: {
222
222
  tooltip: { default: "Удалить" }
223
223
  },
224
224
  setup(e) {
225
- return (t, a) => {
225
+ return (t, o) => {
226
226
  const l = q("tooltip");
227
- return D((n(), u(s(h), {
227
+ return D((n(), u(a(h), {
228
228
  text: "",
229
229
  rounded: "",
230
230
  size: "small",
@@ -233,22 +233,22 @@ const Oe = /* @__PURE__ */ f({
233
233
  }, null, 512)), [
234
234
  [
235
235
  l,
236
- s(S)(e.tooltip, !0),
236
+ a(S)(e.tooltip, !0),
237
237
  void 0,
238
238
  { left: !0 }
239
239
  ]
240
240
  ]);
241
241
  };
242
242
  }
243
- }), Wt = /* @__PURE__ */ f({
243
+ }), _t = /* @__PURE__ */ f({
244
244
  __name: "TableEditButton",
245
245
  props: {
246
246
  tooltip: { default: "Редактировать" }
247
247
  },
248
248
  setup(e) {
249
- return (t, a) => {
249
+ return (t, o) => {
250
250
  const l = q("tooltip");
251
- return D((n(), u(s(h), {
251
+ return D((n(), u(a(h), {
252
252
  text: "",
253
253
  rounded: "",
254
254
  size: "small",
@@ -256,22 +256,22 @@ const Oe = /* @__PURE__ */ f({
256
256
  }, null, 512)), [
257
257
  [
258
258
  l,
259
- s(S)(e.tooltip, !0),
259
+ a(S)(e.tooltip, !0),
260
260
  void 0,
261
261
  { left: !0 }
262
262
  ]
263
263
  ]);
264
264
  };
265
265
  }
266
- }), Qt = /* @__PURE__ */ f({
266
+ }), el = /* @__PURE__ */ f({
267
267
  __name: "TablePurgeButton",
268
268
  props: {
269
269
  tooltip: { default: "Уничтожить" }
270
270
  },
271
271
  setup(e) {
272
- return (t, a) => {
272
+ return (t, o) => {
273
273
  const l = q("tooltip");
274
- return D((n(), u(s(h), {
274
+ return D((n(), u(a(h), {
275
275
  text: "",
276
276
  rounded: "",
277
277
  size: "small",
@@ -280,22 +280,22 @@ const Oe = /* @__PURE__ */ f({
280
280
  }, null, 512)), [
281
281
  [
282
282
  l,
283
- s(S)(e.tooltip, !0),
283
+ a(S)(e.tooltip, !0),
284
284
  void 0,
285
285
  { left: !0 }
286
286
  ]
287
287
  ]);
288
288
  };
289
289
  }
290
- }), Xt = /* @__PURE__ */ f({
290
+ }), tl = /* @__PURE__ */ f({
291
291
  __name: "TableRestoreButton",
292
292
  props: {
293
293
  tooltip: { default: "Восстановить" }
294
294
  },
295
295
  setup(e) {
296
- return (t, a) => {
296
+ return (t, o) => {
297
297
  const l = q("tooltip");
298
- return D((n(), u(s(h), {
298
+ return D((n(), u(a(h), {
299
299
  text: "",
300
300
  rounded: "",
301
301
  size: "small",
@@ -304,7 +304,7 @@ const Oe = /* @__PURE__ */ f({
304
304
  }, null, 512)), [
305
305
  [
306
306
  l,
307
- s(S)(e.tooltip, !0),
307
+ a(S)(e.tooltip, !0),
308
308
  void 0,
309
309
  { left: !0 }
310
310
  ]
@@ -333,19 +333,19 @@ const Oe = /* @__PURE__ */ f({
333
333
  errorMessage: {}
334
334
  },
335
335
  setup(e) {
336
- return (t, a) => (n(), v("div", Ae, [
336
+ return (t, o) => (n(), v("div", Ae, [
337
337
  e.label ? (n(), v("label", Ee, [
338
338
  e.isRequired ? (n(), v("span", Fe, "*")) : p("", !0),
339
- m("span", {
339
+ c("span", {
340
340
  class: F({ "font-medium": e.isBold })
341
- }, k(e.label) + ":", 3)
341
+ }, x(e.label) + ":", 3)
342
342
  ])) : p("", !0),
343
- $(t.$slots, "default"),
344
- e.errorMessage ? (n(), v("small", Ue, k(e.errorMessage), 1)) : p("", !0),
345
- e.hint && !e.errorMessage ? (n(), v("small", je, k(e.hint), 1)) : p("", !0)
343
+ V(t.$slots, "default"),
344
+ e.errorMessage ? (n(), v("small", Ue, x(e.errorMessage), 1)) : p("", !0),
345
+ e.hint && !e.errorMessage ? (n(), v("small", je, x(e.hint), 1)) : p("", !0)
346
346
  ]));
347
347
  }
348
- }), Yt = /* @__PURE__ */ f({
348
+ }), ll = /* @__PURE__ */ f({
349
349
  __name: "AutocompleteInput",
350
350
  props: /* @__PURE__ */ b({
351
351
  label: {},
@@ -363,15 +363,15 @@ const Oe = /* @__PURE__ */ f({
363
363
  emits: /* @__PURE__ */ b(["search"], ["update:modelValue"]),
364
364
  setup(e) {
365
365
  const t = g(e, "modelValue");
366
- return (a, l) => (n(), u(w, {
366
+ return (o, l) => (n(), u(w, {
367
367
  "is-required": e.isRequired,
368
368
  label: e.label,
369
369
  "error-message": e.errorMessage
370
370
  }, {
371
371
  default: d(() => [
372
- c(s(fe), {
372
+ m(a(fe), {
373
373
  modelValue: t.value,
374
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
374
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
375
375
  suggestions: e.options,
376
376
  "option-label": e.optionLabel,
377
377
  "option-value": e.optionValue,
@@ -384,15 +384,15 @@ const Oe = /* @__PURE__ */ f({
384
384
  dropdown: "",
385
385
  "dropdown-mode": "current",
386
386
  "force-selection": "",
387
- onComplete: l[1] || (l[1] = (o) => a.$emit("search", o.query)),
388
- onDropdownClick: l[2] || (l[2] = (o) => a.$emit("search", o.query)),
389
- onClear: l[3] || (l[3] = (o) => t.value = null)
387
+ onComplete: l[1] || (l[1] = (s) => o.$emit("search", s.query)),
388
+ onDropdownClick: l[2] || (l[2] = (s) => o.$emit("search", s.query)),
389
+ onClear: l[3] || (l[3] = (s) => t.value = null)
390
390
  }, null, 8, ["modelValue", "suggestions", "option-label", "option-value", "data-key", "label-class"])
391
391
  ]),
392
392
  _: 1
393
393
  }, 8, ["is-required", "label", "error-message"]));
394
394
  }
395
- }), Pe = { class: "flex flex-col gap-1" }, He = ["for"], Zt = /* @__PURE__ */ f({
395
+ }), Pe = { class: "flex flex-col gap-1" }, He = ["for"], ol = /* @__PURE__ */ f({
396
396
  __name: "CheckboxGroupInput",
397
397
  props: /* @__PURE__ */ b({
398
398
  label: {},
@@ -405,36 +405,36 @@ const Oe = /* @__PURE__ */ f({
405
405
  }),
406
406
  emits: ["update:modelValue"],
407
407
  setup(e) {
408
- const t = g(e, "modelValue"), a = L();
409
- return (l, o) => (n(), u(w, {
408
+ const t = g(e, "modelValue"), o = L();
409
+ return (l, s) => (n(), u(w, {
410
410
  label: e.label,
411
411
  hint: e.hint,
412
412
  "error-message": e.errorMessage,
413
413
  "is-bold": ""
414
414
  }, {
415
415
  default: d(() => [
416
- m("div", Pe, [
416
+ c("div", Pe, [
417
417
  (n(!0), v(C, null, I(e.options, (i, r) => (n(), v("div", {
418
418
  key: r,
419
419
  class: "flex items-center gap-2"
420
420
  }, [
421
- c(s(ve), {
421
+ m(a(ve), {
422
422
  modelValue: t.value,
423
- "onUpdate:modelValue": o[0] || (o[0] = (x) => t.value = x),
424
- "input-id": `${s(a)}-option-${r}`,
423
+ "onUpdate:modelValue": s[0] || (s[0] = (k) => t.value = k),
424
+ "input-id": `${a(o)}-option-${r}`,
425
425
  value: i.id
426
426
  }, null, 8, ["modelValue", "input-id", "value"]),
427
- m("label", {
428
- for: `${s(a)}-option-${r}`,
427
+ c("label", {
428
+ for: `${a(o)}-option-${r}`,
429
429
  class: "text-sm cursor-pointer"
430
- }, k(i.label), 9, He)
430
+ }, x(i.label), 9, He)
431
431
  ]))), 128))
432
432
  ])
433
433
  ]),
434
434
  _: 1
435
435
  }, 8, ["label", "hint", "error-message"]));
436
436
  }
437
- }), _t = /* @__PURE__ */ f({
437
+ }), sl = /* @__PURE__ */ f({
438
438
  __name: "DateInput",
439
439
  props: /* @__PURE__ */ b({
440
440
  label: {},
@@ -447,18 +447,18 @@ const Oe = /* @__PURE__ */ f({
447
447
  emits: ["update:modelValue"],
448
448
  setup(e) {
449
449
  const t = g(e, "modelValue", {
450
- get: (a) => a ? H(a).toDate() : void 0,
451
- set: (a) => a ? H(a).startOf("day").toDate() : void 0
450
+ get: (o) => o ? J(o).toDate() : void 0,
451
+ set: (o) => o ? J(o).startOf("day").toDate() : void 0
452
452
  });
453
- return (a, l) => (n(), u(w, {
453
+ return (o, l) => (n(), u(w, {
454
454
  label: e.label,
455
455
  "error-message": e.errorMessage,
456
456
  "is-required": e.isRequired
457
457
  }, {
458
458
  default: d(() => [
459
- c(s(pe), {
459
+ m(a(pe), {
460
460
  modelValue: t.value,
461
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
461
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
462
462
  fluid: "",
463
463
  "show-icon": "",
464
464
  "icon-display": "input",
@@ -470,7 +470,7 @@ const Oe = /* @__PURE__ */ f({
470
470
  _: 1
471
471
  }, 8, ["label", "error-message", "is-required"]));
472
472
  }
473
- }), el = /* @__PURE__ */ f({
473
+ }), al = /* @__PURE__ */ f({
474
474
  __name: "JSONInput",
475
475
  props: /* @__PURE__ */ b({
476
476
  label: {},
@@ -482,7 +482,7 @@ const Oe = /* @__PURE__ */ f({
482
482
  }),
483
483
  emits: ["update:modelValue"],
484
484
  setup(e) {
485
- const t = g(e, "modelValue"), a = B({
485
+ const t = g(e, "modelValue"), o = B({
486
486
  get: () => {
487
487
  try {
488
488
  return JSON.stringify(t.value, null, 2);
@@ -493,20 +493,20 @@ const Oe = /* @__PURE__ */ f({
493
493
  set: (l) => {
494
494
  try {
495
495
  t.value = JSON.parse(l);
496
- } catch (o) {
497
- console.error(o);
496
+ } catch (s) {
497
+ console.error(s);
498
498
  }
499
499
  }
500
500
  });
501
- return (l, o) => (n(), u(w, {
501
+ return (l, s) => (n(), u(w, {
502
502
  label: e.label,
503
503
  "error-message": e.errorMessage,
504
504
  "is-required": e.isRequired
505
505
  }, {
506
506
  default: d(() => [
507
- c(s(X), {
508
- modelValue: a.value,
509
- "onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
507
+ m(a(X), {
508
+ modelValue: o.value,
509
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => o.value = i),
510
510
  rows: 10,
511
511
  fluid: "",
512
512
  invalid: !!e.errorMessage
@@ -515,7 +515,7 @@ const Oe = /* @__PURE__ */ f({
515
515
  _: 1
516
516
  }, 8, ["label", "error-message", "is-required"]));
517
517
  }
518
- }), tl = /* @__PURE__ */ f({
518
+ }), nl = /* @__PURE__ */ f({
519
519
  __name: "MaskedInput",
520
520
  props: /* @__PURE__ */ b({
521
521
  label: {},
@@ -534,17 +534,17 @@ const Oe = /* @__PURE__ */ f({
534
534
  emits: ["update:modelValue"],
535
535
  setup(e) {
536
536
  const t = g(e, "modelValue");
537
- return (a, l) => (n(), u(w, {
537
+ return (o, l) => (n(), u(w, {
538
538
  label: e.label,
539
539
  "error-message": e.errorMessage,
540
540
  "is-required": e.isRequired
541
541
  }, {
542
542
  default: d(() => [
543
- c(s(A), null, {
543
+ m(a(A), null, {
544
544
  default: d(() => [
545
- c(s(be), {
545
+ m(a(be), {
546
546
  modelValue: t.value,
547
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
547
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
548
548
  fluid: "",
549
549
  mask: e.mask,
550
550
  unmask: e.unmask,
@@ -552,7 +552,7 @@ const Oe = /* @__PURE__ */ f({
552
552
  autofocus: e.autofocus,
553
553
  disabled: e.isDisabled
554
554
  }, null, 8, ["modelValue", "mask", "unmask", "invalid", "autofocus", "disabled"]),
555
- e.reset && e.isChanged ? (n(), u(s(R), {
555
+ e.reset && e.isChanged ? (n(), u(a(R), {
556
556
  key: 0,
557
557
  class: "pi pi-undo cursor-pointer",
558
558
  onClick: e.reset
@@ -567,7 +567,7 @@ const Oe = /* @__PURE__ */ f({
567
567
  }), Je = {
568
568
  key: 0,
569
569
  class: "p-3 flex justify-between"
570
- }, ll = /* @__PURE__ */ f({
570
+ }, il = /* @__PURE__ */ f({
571
571
  __name: "MultiselectInput",
572
572
  props: /* @__PURE__ */ b({
573
573
  label: {},
@@ -587,16 +587,16 @@ const Oe = /* @__PURE__ */ f({
587
587
  const t = g(e, "modelValue", {
588
588
  get: (l) => l || [],
589
589
  set: (l) => l?.length ? l : void 0
590
- }), a = T("");
591
- return (l, o) => (n(), u(w, {
590
+ }), o = T("");
591
+ return (l, s) => (n(), u(w, {
592
592
  "is-required": e.isRequired,
593
593
  label: e.label,
594
594
  "error-message": e.errorMessage
595
595
  }, {
596
596
  default: d(() => [
597
- c(s(ge), {
597
+ m(a(ge), {
598
598
  modelValue: t.value,
599
- "onUpdate:modelValue": o[0] || (o[0] = (i) => t.value = i),
599
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => t.value = i),
600
600
  options: e.options,
601
601
  "data-key": "id",
602
602
  "option-label": e.optionLabel,
@@ -614,8 +614,8 @@ const Oe = /* @__PURE__ */ f({
614
614
  }, {
615
615
  footer: d(() => [
616
616
  e.allowCreation ? (n(), v("div", Je, [
617
- c(s(h), {
618
- disabled: !a.value,
617
+ m(a(h), {
618
+ disabled: !o.value,
619
619
  label: "Добавить",
620
620
  severity: "secondary",
621
621
  text: "",
@@ -630,7 +630,7 @@ const Oe = /* @__PURE__ */ f({
630
630
  _: 1
631
631
  }, 8, ["is-required", "label", "error-message"]));
632
632
  }
633
- }), ol = /* @__PURE__ */ f({
633
+ }), rl = /* @__PURE__ */ f({
634
634
  __name: "NumberInput",
635
635
  props: /* @__PURE__ */ b({
636
636
  label: {},
@@ -643,15 +643,15 @@ const Oe = /* @__PURE__ */ f({
643
643
  emits: ["update:modelValue"],
644
644
  setup(e) {
645
645
  const t = g(e, "modelValue");
646
- return (a, l) => (n(), u(w, {
646
+ return (o, l) => (n(), u(w, {
647
647
  label: e.label,
648
648
  "error-message": e.errorMessage,
649
649
  "is-required": e.isRequired
650
650
  }, {
651
651
  default: d(() => [
652
- c(s(ye), {
652
+ m(a(ye), {
653
653
  modelValue: t.value,
654
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
654
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
655
655
  fluid: "",
656
656
  invalid: !!e.errorMessage
657
657
  }, null, 8, ["modelValue", "invalid"])
@@ -659,7 +659,7 @@ const Oe = /* @__PURE__ */ f({
659
659
  _: 1
660
660
  }, 8, ["label", "error-message", "is-required"]));
661
661
  }
662
- }), Ge = { class: "flex items-center gap-2" }, Ke = ["for"], We = { class: "flex items-center gap-2" }, Qe = ["for"], Xe = { class: "flex items-center gap-2" }, Ye = ["for"], al = /* @__PURE__ */ f({
662
+ }), Ge = { class: "flex items-center gap-2" }, Ke = ["for"], We = { class: "flex items-center gap-2" }, Qe = ["for"], Xe = { class: "flex items-center gap-2" }, Ye = ["for"], ul = /* @__PURE__ */ f({
663
663
  __name: "OptionalBooleanInput",
664
664
  props: /* @__PURE__ */ b({
665
665
  label: {},
@@ -671,7 +671,7 @@ const Oe = /* @__PURE__ */ f({
671
671
  }),
672
672
  emits: ["update:modelValue"],
673
673
  setup(e) {
674
- const t = g(e, "modelValue"), a = B({
674
+ const t = g(e, "modelValue"), o = B({
675
675
  get: () => {
676
676
  switch (t.value) {
677
677
  case !0:
@@ -685,47 +685,47 @@ const Oe = /* @__PURE__ */ f({
685
685
  set: (r) => {
686
686
  t.value = r === "true" ? !0 : r === "false" ? !1 : void 0;
687
687
  }
688
- }), l = L(), o = L(), i = L();
689
- return (r, x) => (n(), u(w, {
688
+ }), l = L(), s = L(), i = L();
689
+ return (r, k) => (n(), u(w, {
690
690
  label: e.label,
691
691
  hint: e.hint,
692
692
  "error-message": e.errorMessage,
693
693
  "is-bold": ""
694
694
  }, {
695
695
  default: d(() => [
696
- c(s(he), {
697
- modelValue: a.value,
698
- "onUpdate:modelValue": x[0] || (x[0] = (y) => a.value = y),
696
+ m(a(he), {
697
+ modelValue: o.value,
698
+ "onUpdate:modelValue": k[0] || (k[0] = (y) => o.value = y),
699
699
  class: "flex max-sm:flex-col flex-wrap gap-4"
700
700
  }, {
701
701
  default: d(() => [
702
- m("div", Ge, [
703
- c(s(E), {
704
- "input-id": s(l),
702
+ c("div", Ge, [
703
+ m(a(E), {
704
+ "input-id": a(l),
705
705
  value: "undefined"
706
706
  }, null, 8, ["input-id"]),
707
- m("label", {
708
- for: s(l),
707
+ c("label", {
708
+ for: a(l),
709
709
  class: "text-sm cursor-pointer"
710
710
  }, "Неважно", 8, Ke)
711
711
  ]),
712
- m("div", We, [
713
- c(s(E), {
714
- "input-id": s(o),
712
+ c("div", We, [
713
+ m(a(E), {
714
+ "input-id": a(s),
715
715
  value: "true"
716
716
  }, null, 8, ["input-id"]),
717
- m("label", {
718
- for: s(o),
717
+ c("label", {
718
+ for: a(s),
719
719
  class: "text-sm cursor-pointer"
720
720
  }, "Да", 8, Qe)
721
721
  ]),
722
- m("div", Xe, [
723
- c(s(E), {
724
- "input-id": s(i),
722
+ c("div", Xe, [
723
+ m(a(E), {
724
+ "input-id": a(i),
725
725
  value: "false"
726
726
  }, null, 8, ["input-id"]),
727
- m("label", {
728
- for: s(i),
727
+ c("label", {
728
+ for: a(i),
729
729
  class: "text-sm cursor-pointer"
730
730
  }, "Нет", 8, Ye)
731
731
  ])
@@ -736,7 +736,7 @@ const Oe = /* @__PURE__ */ f({
736
736
  _: 1
737
737
  }, 8, ["label", "hint", "error-message"]));
738
738
  }
739
- }), sl = /* @__PURE__ */ f({
739
+ }), dl = /* @__PURE__ */ f({
740
740
  __name: "PasswordInput",
741
741
  props: /* @__PURE__ */ b({
742
742
  label: {},
@@ -752,17 +752,17 @@ const Oe = /* @__PURE__ */ f({
752
752
  emits: ["update:modelValue"],
753
753
  setup(e) {
754
754
  const t = g(e, "modelValue");
755
- return (a, l) => (n(), u(w, {
755
+ return (o, l) => (n(), u(w, {
756
756
  label: e.label,
757
757
  "error-message": e.errorMessage,
758
758
  "is-required": e.isRequired
759
759
  }, {
760
760
  default: d(() => [
761
- c(s(A), null, {
761
+ m(a(A), null, {
762
762
  default: d(() => [
763
- c(s(xe), {
763
+ m(a(xe), {
764
764
  modelValue: t.value,
765
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
765
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
766
766
  fluid: "",
767
767
  feedback: !1,
768
768
  "toggle-mask": "",
@@ -773,7 +773,7 @@ const Oe = /* @__PURE__ */ f({
773
773
  invalid: !!e.errorMessage,
774
774
  disabled: e.isDisabled
775
775
  }, null, 8, ["modelValue", "invalid", "disabled"]),
776
- e.reset && e.isChanged ? (n(), u(s(R), {
776
+ e.reset && e.isChanged ? (n(), u(a(R), {
777
777
  key: 0,
778
778
  class: "pi pi-undo cursor-pointer mr-6",
779
779
  onClick: e.reset
@@ -794,30 +794,30 @@ const Oe = /* @__PURE__ */ f({
794
794
  emits: ["update:modelValue"],
795
795
  setup(e) {
796
796
  const t = g(e, "modelValue", {
797
- get: (a) => a || "",
798
- set: (a) => a || void 0
797
+ get: (o) => o || "",
798
+ set: (o) => o || void 0
799
799
  });
800
- return (a, l) => (n(), u(s(A), null, {
800
+ return (o, l) => (n(), u(a(A), null, {
801
801
  default: d(() => [
802
- c(s(R), { class: "pi pi-search" }),
803
- c(s(Y), {
802
+ m(a(R), { class: "pi pi-search" }),
803
+ m(a(Y), {
804
804
  modelValue: t.value,
805
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
805
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
806
806
  placeholder: "Поиск...",
807
807
  fluid: "",
808
808
  class: "!rounded-full !border-none !shadow-none",
809
809
  size: "small"
810
810
  }, null, 8, ["modelValue"]),
811
- t.value ? (n(), u(s(R), {
811
+ t.value ? (n(), u(a(R), {
812
812
  key: 0,
813
813
  class: "pi pi-times cursor-pointer",
814
- onClick: l[1] || (l[1] = (o) => t.value = void 0)
814
+ onClick: l[1] || (l[1] = (s) => t.value = void 0)
815
815
  })) : p("", !0)
816
816
  ]),
817
817
  _: 1
818
818
  }));
819
819
  }
820
- }), nl = /* @__PURE__ */ f({
820
+ }), cl = /* @__PURE__ */ f({
821
821
  __name: "SelectInput",
822
822
  props: /* @__PURE__ */ b({
823
823
  label: {},
@@ -833,15 +833,15 @@ const Oe = /* @__PURE__ */ f({
833
833
  emits: ["update:modelValue"],
834
834
  setup(e) {
835
835
  const t = g(e, "modelValue");
836
- return (a, l) => (n(), u(w, {
836
+ return (o, l) => (n(), u(w, {
837
837
  "is-required": e.isRequired,
838
838
  label: e.label,
839
839
  "error-message": e.errorMessage
840
840
  }, {
841
841
  default: d(() => [
842
- c(s(ke), {
842
+ m(a(ke), {
843
843
  modelValue: t.value,
844
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
844
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
845
845
  options: e.options,
846
846
  "option-label": e.optionLabel,
847
847
  "option-value": e.optionValue,
@@ -856,7 +856,7 @@ const Oe = /* @__PURE__ */ f({
856
856
  _: 1
857
857
  }, 8, ["is-required", "label", "error-message"]));
858
858
  }
859
- }), il = /* @__PURE__ */ f({
859
+ }), ml = /* @__PURE__ */ f({
860
860
  __name: "TextareaInput",
861
861
  props: /* @__PURE__ */ b({
862
862
  label: {},
@@ -869,15 +869,15 @@ const Oe = /* @__PURE__ */ f({
869
869
  emits: ["update:modelValue"],
870
870
  setup(e) {
871
871
  const t = g(e, "modelValue");
872
- return (a, l) => (n(), u(w, {
872
+ return (o, l) => (n(), u(w, {
873
873
  label: e.label,
874
874
  "error-message": e.errorMessage,
875
875
  "is-required": e.isRequired
876
876
  }, {
877
877
  default: d(() => [
878
- c(s(X), {
878
+ m(a(X), {
879
879
  modelValue: t.value,
880
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
880
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
881
881
  rows: "5",
882
882
  fluid: "",
883
883
  invalid: !!e.errorMessage
@@ -886,7 +886,7 @@ const Oe = /* @__PURE__ */ f({
886
886
  _: 1
887
887
  }, 8, ["label", "error-message", "is-required"]));
888
888
  }
889
- }), rl = /* @__PURE__ */ f({
889
+ }), fl = /* @__PURE__ */ f({
890
890
  __name: "TextInput",
891
891
  props: /* @__PURE__ */ b({
892
892
  label: {},
@@ -903,23 +903,23 @@ const Oe = /* @__PURE__ */ f({
903
903
  emits: ["update:modelValue"],
904
904
  setup(e) {
905
905
  const t = g(e, "modelValue");
906
- return (a, l) => (n(), u(w, {
906
+ return (o, l) => (n(), u(w, {
907
907
  label: e.label,
908
908
  "error-message": e.errorMessage,
909
909
  "is-required": e.isRequired
910
910
  }, {
911
911
  default: d(() => [
912
- c(s(A), null, {
912
+ m(a(A), null, {
913
913
  default: d(() => [
914
- c(s(Y), {
914
+ m(a(Y), {
915
915
  modelValue: t.value,
916
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
916
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
917
917
  fluid: "",
918
918
  invalid: !!e.errorMessage,
919
919
  autofocus: e.autofocus,
920
920
  disabled: e.isDisabled
921
921
  }, null, 8, ["modelValue", "invalid", "autofocus", "disabled"]),
922
- e.reset && e.isChanged ? (n(), u(s(R), {
922
+ e.reset && e.isChanged ? (n(), u(a(R), {
923
923
  key: 0,
924
924
  class: "pi pi-undo cursor-pointer",
925
925
  onClick: e.reset
@@ -937,7 +937,7 @@ const Oe = /* @__PURE__ */ f({
937
937
  }, lt = {
938
938
  key: 1,
939
939
  class: "text-sm text-slate-400"
940
- }, ul = /* @__PURE__ */ f({
940
+ }, vl = /* @__PURE__ */ f({
941
941
  __name: "ToggleSwitch",
942
942
  props: /* @__PURE__ */ b({
943
943
  label: {},
@@ -950,26 +950,26 @@ const Oe = /* @__PURE__ */ f({
950
950
  emits: ["update:modelValue"],
951
951
  setup(e) {
952
952
  const t = g(e, "modelValue");
953
- return (a, l) => (n(), v("div", _e, [
954
- m("div", et, [
955
- c(s(we), {
953
+ return (o, l) => (n(), v("div", _e, [
954
+ c("div", et, [
955
+ m(a(we), {
956
956
  modelValue: t.value,
957
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
957
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
958
958
  invalid: !!e.errorMessage
959
959
  }, null, 8, ["modelValue", "invalid"]),
960
960
  e.label ? (n(), v("label", {
961
961
  key: 0,
962
962
  class: "text-sm text-slate-600 cursor-pointer select-none",
963
- onClick: l[1] || (l[1] = (o) => t.value = !t.value)
963
+ onClick: l[1] || (l[1] = (s) => t.value = !t.value)
964
964
  }, [
965
- m("span", null, k(e.label), 1)
965
+ c("span", null, x(e.label), 1)
966
966
  ])) : p("", !0)
967
967
  ]),
968
- e.errorMessage ? (n(), v("small", tt, k(e.errorMessage), 1)) : p("", !0),
969
- e.hint && !e.errorMessage ? (n(), v("small", lt, k(e.hint), 1)) : p("", !0)
968
+ e.errorMessage ? (n(), v("small", tt, x(e.errorMessage), 1)) : p("", !0),
969
+ e.hint && !e.errorMessage ? (n(), v("small", lt, x(e.hint), 1)) : p("", !0)
970
970
  ]));
971
971
  }
972
- }), dl = /* @__PURE__ */ f({
972
+ }), pl = /* @__PURE__ */ f({
973
973
  __name: "WysiwygInput",
974
974
  props: /* @__PURE__ */ b({
975
975
  label: { default: void 0 },
@@ -981,7 +981,7 @@ const Oe = /* @__PURE__ */ f({
981
981
  }),
982
982
  emits: ["update:modelValue"],
983
983
  setup(e) {
984
- return g(e, "modelValue"), (t, a) => (n(), u(w, {
984
+ return g(e, "modelValue"), (t, o) => (n(), u(w, {
985
985
  label: e.label,
986
986
  "is-required": e.isRequired,
987
987
  "error-message": e.errorMessage
@@ -990,17 +990,17 @@ const Oe = /* @__PURE__ */ f({
990
990
  }), ot = /* @__PURE__ */ f({
991
991
  __name: "DrawerHost",
992
992
  setup(e) {
993
- const { stack: t, close: a } = j();
994
- return (l, o) => (n(), u(te, { to: "body" }, [
995
- (n(!0), v(C, null, I(s(t), (i, r) => (n(), u(le(i.component), oe({
993
+ const { stack: t, close: o } = P();
994
+ return (l, s) => (n(), u(te, { to: "body" }, [
995
+ (n(!0), v(C, null, I(a(t), (i, r) => (n(), u(le(i.component), oe({
996
996
  key: i.key || r,
997
997
  ref_for: !0
998
998
  }, i.props, {
999
- onClose: (x) => s(a)(r)
999
+ onClose: (k) => a(o)(r)
1000
1000
  }), null, 16, ["onClose"]))), 128))
1001
1001
  ]));
1002
1002
  }
1003
- }), at = { class: "flex flex-col h-full overflow-hidden" }, st = ["src"], nt = {
1003
+ }), st = { class: "flex flex-col h-full overflow-hidden" }, at = ["src"], nt = {
1004
1004
  key: 1,
1005
1005
  class: "font-medium h-7 flex items-center text-xl text-slate-600 truncate"
1006
1006
  }, it = { class: "grow" }, rt = {
@@ -1009,7 +1009,7 @@ const Oe = /* @__PURE__ */ f({
1009
1009
  }, ut = {
1010
1010
  key: 1,
1011
1011
  class: "flex items-center rounded-full ml-3 hover:bg-surface-200 transition-all text-sm px-2 py-1.5 gap-1.5 cursor-pointer"
1012
- }, dt = { class: "grow" }, J = /* @__PURE__ */ f({
1012
+ }, dt = { class: "grow" }, G = /* @__PURE__ */ f({
1013
1013
  __name: "MenuSidebar",
1014
1014
  props: {
1015
1015
  items: { default: () => [] },
@@ -1019,10 +1019,10 @@ const Oe = /* @__PURE__ */ f({
1019
1019
  emits: ["navigate"],
1020
1020
  setup(e) {
1021
1021
  const { isDesktop: t } = z();
1022
- return (a, l) => {
1023
- const o = G("RouterLink");
1024
- return n(), v("div", at, [
1025
- s(t) && (e.logo || e.appName) ? (n(), u(o, {
1022
+ return (o, l) => {
1023
+ const s = U("RouterLink");
1024
+ return n(), v("div", st, [
1025
+ a(t) && (e.logo || e.appName) ? (n(), u(s, {
1026
1026
  key: 0,
1027
1027
  to: "/",
1028
1028
  class: "w-fit max-w-full px-3 flex items-center shrink-0 h-14 overflow-hidden"
@@ -1032,16 +1032,16 @@ const Oe = /* @__PURE__ */ f({
1032
1032
  key: 0,
1033
1033
  src: e.logo,
1034
1034
  class: "h-10"
1035
- }, null, 8, st)) : e.appName ? (n(), v("div", nt, k(e.appName), 1)) : p("", !0)
1035
+ }, null, 8, at)) : e.appName ? (n(), v("div", nt, x(e.appName), 1)) : p("", !0)
1036
1036
  ]),
1037
1037
  _: 1
1038
1038
  })) : p("", !0),
1039
- c(s(O), {
1039
+ m(a(O), {
1040
1040
  class: "grow overflow-hidden",
1041
1041
  "pt:bary": "!hidden"
1042
1042
  }, {
1043
1043
  default: d(() => [
1044
- c(s(Ve), {
1044
+ m(a($e), {
1045
1045
  model: e.items,
1046
1046
  class: "grow !border-none !bg-transparent",
1047
1047
  pt: {
@@ -1057,27 +1057,27 @@ const Oe = /* @__PURE__ */ f({
1057
1057
  }
1058
1058
  }, {
1059
1059
  item: d(({ item: i }) => [
1060
- i.route ? (n(), u(o, {
1060
+ i.route ? (n(), u(s, {
1061
1061
  key: 0,
1062
1062
  to: i.route,
1063
1063
  class: "flex items-center rounded-full ml-3 hover:bg-surface-200 transition-all text-sm px-2 py-1.5 gap-1.5",
1064
1064
  "active-class": "bg-white",
1065
- onClick: l[0] || (l[0] = (r) => a.$emit("navigate"))
1065
+ onClick: l[0] || (l[0] = (r) => o.$emit("navigate"))
1066
1066
  }, {
1067
1067
  default: d(({ isActive: r }) => [
1068
1068
  i.icon ? (n(), v("span", {
1069
1069
  key: 0,
1070
1070
  class: F(["shrink-0", i.icon])
1071
1071
  }, null, 2)) : p("", !0),
1072
- m("span", it, k(i.label), 1),
1072
+ c("span", it, x(i.label), 1),
1073
1073
  r ? (n(), v("span", rt)) : p("", !0)
1074
1074
  ]),
1075
1075
  _: 2
1076
1076
  }, 1032, ["to"])) : (n(), v("div", ut, [
1077
- m("span", {
1077
+ c("span", {
1078
1078
  class: F(["shrink-0", i.icon])
1079
1079
  }, null, 2),
1080
- m("span", dt, k(i.label), 1)
1080
+ c("span", dt, x(i.label), 1)
1081
1081
  ]))
1082
1082
  ]),
1083
1083
  _: 1
@@ -1091,7 +1091,7 @@ const Oe = /* @__PURE__ */ f({
1091
1091
  }), ct = { class: "h-dvh overflow-hidden" }, mt = { class: "h-full flex relative lg:static bg-surface-100 items-stretch" }, ft = ["src"], vt = {
1092
1092
  key: 1,
1093
1093
  class: "font-bold"
1094
- }, pt = { class: "grow max-w-full overflow-hidden" }, cl = /* @__PURE__ */ f({
1094
+ }, pt = { class: "grow max-w-full overflow-hidden" }, bl = /* @__PURE__ */ f({
1095
1095
  __name: "AdminLayout",
1096
1096
  props: {
1097
1097
  menuItems: { default: () => [] },
@@ -1099,21 +1099,21 @@ const Oe = /* @__PURE__ */ f({
1099
1099
  appName: { default: "" }
1100
1100
  },
1101
1101
  setup(e) {
1102
- const { isDesktop: t, isMobileMenuVisible: a } = z();
1103
- return (l, o) => {
1104
- const i = G("RouterLink");
1102
+ const { isDesktop: t, isMobileMenuVisible: o } = z();
1103
+ return (l, s) => {
1104
+ const i = U("RouterLink");
1105
1105
  return n(), v("div", ct, [
1106
- m("div", mt, [
1107
- s(t) ? (n(), u(J, {
1106
+ c("div", mt, [
1107
+ a(t) ? (n(), u(G, {
1108
1108
  key: 1,
1109
1109
  items: e.menuItems,
1110
1110
  logo: e.logo,
1111
1111
  "app-name": e.appName,
1112
1112
  class: "shrink-0 w-64"
1113
- }, null, 8, ["items", "logo", "app-name"])) : (n(), u(s(U), {
1113
+ }, null, 8, ["items", "logo", "app-name"])) : (n(), u(a(j), {
1114
1114
  key: 0,
1115
- visible: s(a),
1116
- "onUpdate:visible": o[1] || (o[1] = (r) => ae(a) ? a.value = r : null),
1115
+ visible: a(o),
1116
+ "onUpdate:visible": s[1] || (s[1] = (r) => se(o) ? o.value = r : null),
1117
1117
  class: "!bg-surface-100",
1118
1118
  "pt:content": {
1119
1119
  class: "!p-0 !pr-3"
@@ -1124,20 +1124,20 @@ const Oe = /* @__PURE__ */ f({
1124
1124
  key: 0,
1125
1125
  to: "/",
1126
1126
  class: "h-10 overflow-hidden flex items-center",
1127
- onClick: o[0] || (o[0] = (r) => a.value = !1)
1127
+ onClick: s[0] || (s[0] = (r) => o.value = !1)
1128
1128
  }, {
1129
1129
  default: d(() => [
1130
1130
  e.logo ? (n(), v("img", {
1131
1131
  key: 0,
1132
1132
  src: e.logo,
1133
1133
  class: "h-10"
1134
- }, null, 8, ft)) : e.appName ? (n(), v("div", vt, k(e.appName), 1)) : p("", !0)
1134
+ }, null, 8, ft)) : e.appName ? (n(), v("div", vt, x(e.appName), 1)) : p("", !0)
1135
1135
  ]),
1136
1136
  _: 1
1137
1137
  })) : p("", !0)
1138
1138
  ]),
1139
1139
  default: d(() => [
1140
- c(J, {
1140
+ m(G, {
1141
1141
  items: e.menuItems,
1142
1142
  logo: e.logo,
1143
1143
  "app-name": e.appName,
@@ -1146,13 +1146,13 @@ const Oe = /* @__PURE__ */ f({
1146
1146
  ]),
1147
1147
  _: 1
1148
1148
  }, 8, ["visible"])),
1149
- m("div", pt, [
1150
- $(l.$slots, "default")
1149
+ c("div", pt, [
1150
+ V(l.$slots, "default")
1151
1151
  ]),
1152
- o[2] || (o[2] = m("div", { class: "animate-fadein" }, null, -1))
1152
+ s[2] || (s[2] = c("div", { class: "animate-fadein" }, null, -1))
1153
1153
  ]),
1154
- c(s($e)),
1155
- c(ot)
1154
+ m(a(Ve)),
1155
+ m(ot)
1156
1156
  ]);
1157
1157
  };
1158
1158
  }
@@ -1164,7 +1164,7 @@ const bt = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
1164
1164
  Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
1165
1165
  Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
1166
1166
  function gt() {
1167
- return se(bt);
1167
+ return ae(bt);
1168
1168
  }
1169
1169
  const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { class: "shrink-0 flex items-center gap-2 h-8" }, xt = {
1170
1170
  key: 0,
@@ -1172,13 +1172,13 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1172
1172
  }, kt = { class: "grow font-medium text-xl text-slate-600 flex gap-1 items-center max-sm:text-base" }, wt = {
1173
1173
  key: 0,
1174
1174
  class: "pi pi-angle-right"
1175
- }, Vt = { key: 1 }, $t = {
1175
+ }, $t = { key: 1 }, Vt = {
1176
1176
  key: 1,
1177
1177
  class: "flex gap-1 items-center leading-tight"
1178
1178
  }, Mt = {
1179
1179
  key: 0,
1180
1180
  class: "shrink-0"
1181
- }, Bt = { class: "grow flex flex-col overflow-hidden" }, ml = /* @__PURE__ */ f({
1181
+ }, Bt = { class: "grow flex flex-col overflow-hidden" }, gl = /* @__PURE__ */ f({
1182
1182
  __name: "BaseLayout",
1183
1183
  props: /* @__PURE__ */ b({
1184
1184
  title: {},
@@ -1194,30 +1194,30 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1194
1194
  }),
1195
1195
  emits: ["update:search"],
1196
1196
  setup(e) {
1197
- const t = e, a = g(e, "search"), l = gt(), { isDesktop: o, toggleMobileMenu: i } = z(), r = T(!!a.value), x = B(() => Array.isArray(t.title) ? t.title : [t.title]);
1197
+ const t = e, o = g(e, "search"), l = gt(), { isDesktop: s, toggleMobileMenu: i } = z(), r = T(!!o.value), k = B(() => Array.isArray(t.title) ? t.title : [t.title]);
1198
1198
  function y() {
1199
- r.value = !r.value, r.value || (a.value = void 0);
1199
+ r.value = !r.value, r.value || (o.value = void 0);
1200
1200
  }
1201
- return (V, M) => (n(), v("div", yt, [
1202
- m("div", ht, [
1203
- !s(o) || e.backRoute || !e.noSearch ? (n(), v("div", xt, [
1204
- s(o) ? p("", !0) : (n(), u(s(h), {
1201
+ return ($, M) => (n(), v("div", yt, [
1202
+ c("div", ht, [
1203
+ !a(s) || e.backRoute || !e.noSearch ? (n(), v("div", xt, [
1204
+ a(s) ? p("", !0) : (n(), u(a(h), {
1205
1205
  key: 0,
1206
1206
  icon: "pi pi-bars",
1207
1207
  severity: "secondary",
1208
1208
  rounded: "",
1209
1209
  size: "small",
1210
1210
  variant: "outlined",
1211
- onClick: s(i)
1211
+ onClick: a(i)
1212
1212
  }, null, 8, ["onClick"])),
1213
- e.backRoute ? (n(), u(s(h), {
1213
+ e.backRoute ? (n(), u(a(h), {
1214
1214
  key: 1,
1215
1215
  icon: "pi pi-arrow-left",
1216
1216
  severity: "secondary",
1217
1217
  rounded: "",
1218
1218
  size: "small",
1219
1219
  variant: "outlined",
1220
- onClick: M[0] || (M[0] = (N) => s(l).replace(e.backRoute))
1220
+ onClick: M[0] || (M[0] = (N) => a(l).replace(e.backRoute))
1221
1221
  })) : p("", !0),
1222
1222
  e.noSearch ? p("", !0) : (n(), u(Oe, {
1223
1223
  key: 2,
@@ -1225,14 +1225,14 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1225
1225
  onClick: y
1226
1226
  }, null, 8, ["value"]))
1227
1227
  ])) : p("", !0),
1228
- m("div", kt, [
1229
- s(o) ? (n(!0), v(C, { key: 0 }, I(x.value, (N, P) => (n(), v(C, { key: P }, [
1230
- m("span", null, k(N), 1),
1231
- P < x.value.length - 1 ? (n(), v("span", wt)) : p("", !0)
1232
- ], 64))), 128)) : (n(), v("span", Vt, k(x.value[x.value.length - 1]), 1))
1228
+ c("div", kt, [
1229
+ a(s) ? (n(!0), v(C, { key: 0 }, I(k.value, (N, H) => (n(), v(C, { key: H }, [
1230
+ c("span", null, x(N), 1),
1231
+ H < k.value.length - 1 ? (n(), v("span", wt)) : p("", !0)
1232
+ ], 64))), 128)) : (n(), v("span", $t, x(k.value[k.value.length - 1]), 1))
1233
1233
  ]),
1234
- V.$slots["right-actions"] || e.filterComponent || e.formComponent || e.reload ? (n(), v("div", $t, [
1235
- $(V.$slots, "right-actions"),
1234
+ $.$slots["right-actions"] || e.filterComponent || e.formComponent || e.reload ? (n(), v("div", Vt, [
1235
+ V($.$slots, "right-actions"),
1236
1236
  e.filterComponent ? (n(), u(Le, {
1237
1237
  key: 0,
1238
1238
  "has-changes": e.isFilterApplied,
@@ -1242,7 +1242,7 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1242
1242
  key: 1,
1243
1243
  component: e.formComponent
1244
1244
  }, null, 8, ["component"])) : p("", !0),
1245
- s(o) && e.reload ? (n(), u(s(h), {
1245
+ a(s) && e.reload ? (n(), u(a(h), {
1246
1246
  key: 2,
1247
1247
  icon: "pi pi-refresh",
1248
1248
  severity: "secondary",
@@ -1256,20 +1256,20 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1256
1256
  e.noSearch ? p("", !0) : (n(), u(ne, { key: 0 }, {
1257
1257
  default: d(() => [
1258
1258
  r.value ? (n(), v("div", Mt, [
1259
- c(Ze, {
1260
- modelValue: a.value,
1261
- "onUpdate:modelValue": M[1] || (M[1] = (N) => a.value = N)
1259
+ m(Ze, {
1260
+ modelValue: o.value,
1261
+ "onUpdate:modelValue": M[1] || (M[1] = (N) => o.value = N)
1262
1262
  }, null, 8, ["modelValue"])
1263
1263
  ])) : p("", !0)
1264
1264
  ]),
1265
1265
  _: 1
1266
1266
  })),
1267
- m("div", Bt, [
1268
- $(V.$slots, "default")
1267
+ c("div", Bt, [
1268
+ V($.$slots, "default")
1269
1269
  ])
1270
1270
  ]));
1271
1271
  }
1272
- }), Ct = { class: "flex flex-col gap-2 w-full !p-4 !pt-0" }, qt = { class: "flex items-center gap-2" }, fl = /* @__PURE__ */ f({
1272
+ }), Ct = { class: "flex flex-col gap-2 w-full p-4! pt-0!" }, qt = { class: "flex items-center gap-2" }, yl = /* @__PURE__ */ f({
1273
1273
  __name: "FilterDrawer",
1274
1274
  props: /* @__PURE__ */ b({
1275
1275
  isSubmittable: { type: Boolean },
@@ -1281,48 +1281,48 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1281
1281
  }),
1282
1282
  emits: /* @__PURE__ */ b(["close", "reset", "apply"], ["update:modelValue"]),
1283
1283
  setup(e) {
1284
- const t = e, a = g(e, "modelValue"), l = B(() => `--filter-drawer-width: ${t.width};`);
1285
- return (o, i) => (n(), u(s(U), {
1286
- visible: a.value,
1287
- "onUpdate:visible": i[2] || (i[2] = (r) => a.value = r),
1284
+ const t = e, o = g(e, "modelValue"), l = B(() => `--filter-drawer-width: ${t.width};`);
1285
+ return (s, i) => (n(), u(a(j), {
1286
+ visible: o.value,
1287
+ "onUpdate:visible": i[2] || (i[2] = (r) => o.value = r),
1288
1288
  position: "right",
1289
1289
  header: "Фильтр",
1290
1290
  style: K(l.value),
1291
- class: "!w-[var(--filter-drawer-width)] max-w-full",
1291
+ class: "w-(--filter-drawer-width)! max-w-full",
1292
1292
  "pt:content": {
1293
1293
  class: "!p-0 relative"
1294
1294
  },
1295
1295
  "pt:footer": {
1296
1296
  class: "border-t border-surface-100"
1297
1297
  },
1298
- onAfterHide: i[3] || (i[3] = (r) => o.$emit("close"))
1298
+ onAfterHide: i[3] || (i[3] = (r) => s.$emit("close"))
1299
1299
  }, {
1300
1300
  footer: d(() => [
1301
- m("div", qt, [
1302
- c(s(h), {
1301
+ c("div", qt, [
1302
+ m(a(h), {
1303
1303
  label: "Сбросить",
1304
1304
  disabled: !e.isChanged,
1305
1305
  size: "small",
1306
1306
  variant: "text",
1307
1307
  severity: "secondary",
1308
1308
  rounded: "",
1309
- onClick: i[0] || (i[0] = (r) => o.$emit("reset"))
1309
+ onClick: i[0] || (i[0] = (r) => s.$emit("reset"))
1310
1310
  }, null, 8, ["disabled"]),
1311
- i[4] || (i[4] = m("div", { class: "grow" }, null, -1)),
1312
- c(s(h), {
1311
+ i[4] || (i[4] = c("div", { class: "grow" }, null, -1)),
1312
+ m(a(h), {
1313
1313
  label: "Применить",
1314
1314
  disabled: !e.isSubmittable,
1315
1315
  size: "small",
1316
1316
  rounded: "",
1317
- onClick: i[1] || (i[1] = (r) => o.$emit("apply"))
1317
+ onClick: i[1] || (i[1] = (r) => s.$emit("apply"))
1318
1318
  }, null, 8, ["disabled"])
1319
1319
  ])
1320
1320
  ]),
1321
1321
  default: d(() => [
1322
- c(s(O), { class: "grow" }, {
1322
+ m(a(O), { class: "grow" }, {
1323
1323
  default: d(() => [
1324
- m("div", Ct, [
1325
- $(o.$slots, "default")
1324
+ c("div", Ct, [
1325
+ V(s.$slots, "default")
1326
1326
  ])
1327
1327
  ]),
1328
1328
  _: 3
@@ -1331,7 +1331,7 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1331
1331
  _: 3
1332
1332
  }, 8, ["visible", "style"]));
1333
1333
  }
1334
- }), Dt = { class: "flex flex-col gap-2 w-full !p-4" }, St = { class: "flex flex-col gap-2 w-full !p-4 !pt-0" }, It = { class: "flex items-center gap-2" }, vl = /* @__PURE__ */ f({
1334
+ }), Dt = { class: "flex flex-col gap-2 w-full !p-4" }, St = { class: "flex flex-col gap-2 w-full !p-4 !pt-0" }, It = { class: "flex items-center gap-2" }, hl = /* @__PURE__ */ f({
1335
1335
  __name: "FormDrawer",
1336
1336
  props: /* @__PURE__ */ b({
1337
1337
  title: {},
@@ -1347,10 +1347,10 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1347
1347
  }),
1348
1348
  emits: /* @__PURE__ */ b(["close", "delete", "save"], ["update:modelValue"]),
1349
1349
  setup(e) {
1350
- const t = e, a = g(e, "modelValue"), l = B(() => `--form-drawer-width: ${t.width};`);
1351
- return (o, i) => (n(), u(s(U), {
1352
- visible: a.value,
1353
- "onUpdate:visible": i[3] || (i[3] = (r) => a.value = r),
1350
+ const t = e, o = g(e, "modelValue"), l = B(() => `--form-drawer-width: ${t.width};`);
1351
+ return (s, i) => (n(), u(a(j), {
1352
+ visible: o.value,
1353
+ "onUpdate:visible": i[3] || (i[3] = (r) => o.value = r),
1354
1354
  position: "right",
1355
1355
  header: e.title,
1356
1356
  style: K(l.value),
@@ -1364,73 +1364,73 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1364
1364
  "pt:footer": {
1365
1365
  class: "border-t border-surface-100"
1366
1366
  },
1367
- onAfterHide: i[4] || (i[4] = (r) => o.$emit("close"))
1367
+ onAfterHide: i[4] || (i[4] = (r) => s.$emit("close"))
1368
1368
  }, {
1369
1369
  footer: d(() => [
1370
- m("div", It, [
1371
- e.mode === "edit" ? (n(), u(s(h), {
1370
+ c("div", It, [
1371
+ e.mode === "edit" ? (n(), u(a(h), {
1372
1372
  key: 0,
1373
1373
  label: "Удалить",
1374
1374
  size: "small",
1375
1375
  variant: "text",
1376
1376
  severity: "danger",
1377
1377
  rounded: "",
1378
- onClick: i[0] || (i[0] = (r) => o.$emit("delete"))
1378
+ onClick: i[0] || (i[0] = (r) => s.$emit("delete"))
1379
1379
  })) : p("", !0),
1380
- i[5] || (i[5] = m("div", { class: "grow" }, null, -1)),
1381
- c(s(h), {
1380
+ i[5] || (i[5] = c("div", { class: "grow" }, null, -1)),
1381
+ m(a(h), {
1382
1382
  label: "Сохранить",
1383
1383
  size: "small",
1384
1384
  disabled: !e.isSubmittable,
1385
1385
  loading: e.isSubmitting,
1386
1386
  rounded: "",
1387
- onClick: i[1] || (i[1] = (r) => o.$emit("save"))
1387
+ onClick: i[1] || (i[1] = (r) => s.$emit("save"))
1388
1388
  }, null, 8, ["disabled", "loading"]),
1389
- c(s(h), {
1389
+ m(a(h), {
1390
1390
  label: "Отменить",
1391
1391
  variant: "outlined",
1392
1392
  severity: "secondary",
1393
1393
  size: "small",
1394
1394
  rounded: "",
1395
- onClick: i[2] || (i[2] = (r) => a.value = !1)
1395
+ onClick: i[2] || (i[2] = (r) => o.value = !1)
1396
1396
  })
1397
1397
  ])
1398
1398
  ]),
1399
1399
  default: d(() => [
1400
- e.tabs?.length ? (n(), u(s(Me), {
1400
+ e.tabs?.length ? (n(), u(a(Me), {
1401
1401
  key: 0,
1402
1402
  value: e.tabs[0].id,
1403
1403
  scrollable: "",
1404
1404
  class: "grow h-full flex flex-col"
1405
1405
  }, {
1406
1406
  default: d(() => [
1407
- c(s(Be), { class: "shrink-0" }, {
1407
+ m(a(Be), { class: "shrink-0" }, {
1408
1408
  default: d(() => [
1409
- (n(!0), v(C, null, I(e.tabs, (r) => (n(), u(s(Ce), {
1409
+ (n(!0), v(C, null, I(e.tabs, (r) => (n(), u(a(Ce), {
1410
1410
  key: r.id,
1411
1411
  value: r.id,
1412
1412
  class: "text-sm"
1413
1413
  }, {
1414
1414
  default: d(() => [
1415
- ie(k(r.label), 1)
1415
+ ie(x(r.label), 1)
1416
1416
  ]),
1417
1417
  _: 2
1418
1418
  }, 1032, ["value"]))), 128))
1419
1419
  ]),
1420
1420
  _: 1
1421
1421
  }),
1422
- c(s(qe), { class: "grow overflow-hidden !p-0" }, {
1422
+ m(a(qe), { class: "grow overflow-hidden !p-0" }, {
1423
1423
  default: d(() => [
1424
- (n(!0), v(C, null, I(e.tabs, (r) => (n(), u(s(De), {
1424
+ (n(!0), v(C, null, I(e.tabs, (r) => (n(), u(a(De), {
1425
1425
  key: r.id,
1426
1426
  value: r.id,
1427
1427
  class: "h-full"
1428
1428
  }, {
1429
1429
  default: d(() => [
1430
- c(s(O), { class: "h-full" }, {
1430
+ m(a(O), { class: "h-full" }, {
1431
1431
  default: d(() => [
1432
- m("div", Dt, [
1433
- $(o.$slots, `tab_${r.id}`)
1432
+ c("div", Dt, [
1433
+ V(s.$slots, `tab_${r.id}`)
1434
1434
  ])
1435
1435
  ]),
1436
1436
  _: 2
@@ -1443,13 +1443,13 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1443
1443
  })
1444
1444
  ]),
1445
1445
  _: 3
1446
- }, 8, ["value"])) : (n(), u(s(O), {
1446
+ }, 8, ["value"])) : (n(), u(a(O), {
1447
1447
  key: 1,
1448
1448
  class: "grow"
1449
1449
  }, {
1450
1450
  default: d(() => [
1451
- m("div", St, [
1452
- $(o.$slots, "default")
1451
+ c("div", St, [
1452
+ V(s.$slots, "default")
1453
1453
  ])
1454
1454
  ]),
1455
1455
  _: 3
@@ -1458,7 +1458,30 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1458
1458
  _: 3
1459
1459
  }, 8, ["visible", "header", "style"]));
1460
1460
  }
1461
- }), Rt = { class: "p-3 flex items-center select-none" }, Tt = { class: "grow" }, pl = /* @__PURE__ */ f({
1461
+ }), Rt = { class: "flex h-full" }, Tt = { class: "bg-surface-50 w-full md:w-1/2 p-12 md:p-20 overflow-auto flex flex-col md:justify-center" }, zt = { class: "mb-8 flex flex-col items-center text-center" }, Nt = { class: "text-surface-900 text-3xl font-medium mb-3" }, Lt = { class: "text-surface-600" }, xl = /* @__PURE__ */ f({
1462
+ __name: "LoginLayout",
1463
+ props: {
1464
+ title: {},
1465
+ subtitle: {},
1466
+ image: {}
1467
+ },
1468
+ setup(e) {
1469
+ return (t, o) => {
1470
+ const l = U("i-logo");
1471
+ return n(), v("div", Rt, [
1472
+ c("div", Tt, [
1473
+ c("div", zt, [
1474
+ m(l, { class: "mb-12" }),
1475
+ c("div", Nt, x(e.title), 1),
1476
+ c("div", Lt, x(e.subtitle), 1)
1477
+ ]),
1478
+ V(t.$slots, "default")
1479
+ ]),
1480
+ o[0] || (o[0] = c("div", { class: "hidden md:block bg-(--background-image) w-1/2 bg-no-repeat bg-cover" }, null, -1))
1481
+ ]);
1482
+ };
1483
+ }
1484
+ }), Ot = { class: "p-3 flex items-center select-none" }, At = { class: "grow" }, kl = /* @__PURE__ */ f({
1462
1485
  __name: "BaseTable",
1463
1486
  props: /* @__PURE__ */ b({
1464
1487
  items: {},
@@ -1475,15 +1498,15 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1475
1498
  }),
1476
1499
  emits: ["update:selected", "update:page"],
1477
1500
  setup(e) {
1478
- const t = g(e, "selected"), a = g(e, "page");
1479
- return (l, o) => (n(), u(s(Se), {
1501
+ const t = g(e, "selected"), o = g(e, "page");
1502
+ return (l, s) => (n(), u(a(Se), {
1480
1503
  selection: t.value,
1481
- "onUpdate:selection": o[1] || (o[1] = (i) => t.value = i),
1504
+ "onUpdate:selection": s[1] || (s[1] = (i) => t.value = i),
1482
1505
  "data-key": "id",
1483
1506
  value: e.items,
1484
1507
  "total-records": e.totalItems,
1485
1508
  loading: e.isLoading,
1486
- first: a.value * e.rows,
1509
+ first: o.value * e.rows,
1487
1510
  pt: {
1488
1511
  tableContainer: {
1489
1512
  class: "grow"
@@ -1503,38 +1526,38 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1503
1526
  rows: e.rows,
1504
1527
  "always-show-paginator": !1,
1505
1528
  lazy: "",
1506
- onPage: o[2] || (o[2] = (i) => a.value = i.page)
1529
+ onPage: s[2] || (s[2] = (i) => o.value = i.page)
1507
1530
  }, {
1508
- empty: d(() => [...o[3] || (o[3] = [
1509
- m("div", { class: "flex justify-center items-center p-3 text-surface-400 select-none" }, " По вашему запросу ничего не найдено. ", -1)
1531
+ empty: d(() => [...s[3] || (s[3] = [
1532
+ c("div", { class: "flex justify-center items-center p-3 text-surface-400 select-none" }, " По вашему запросу ничего не найдено. ", -1)
1510
1533
  ])]),
1511
1534
  footer: d(() => [
1512
- m("div", Rt, [
1513
- m("div", null, "Выбрано: " + k(t.value?.length || 0), 1),
1514
- m("div", Tt, [
1515
- $(l.$slots, "bulk-actions")
1535
+ c("div", Ot, [
1536
+ c("div", null, "Выбрано: " + x(t.value?.length || 0), 1),
1537
+ c("div", At, [
1538
+ V(l.$slots, "bulk-actions")
1516
1539
  ]),
1517
- c(s(h), {
1540
+ m(a(h), {
1518
1541
  variant: "text",
1519
1542
  severity: "secondary",
1520
1543
  size: "small",
1521
1544
  label: "Сбросить",
1522
- onClick: o[0] || (o[0] = (i) => t.value = void 0)
1545
+ onClick: s[0] || (s[0] = (i) => t.value = void 0)
1523
1546
  })
1524
1547
  ])
1525
1548
  ]),
1526
1549
  default: d(() => [
1527
- e.selectable ? (n(), u(s(Ie), {
1550
+ e.selectable ? (n(), u(a(Ie), {
1528
1551
  key: 0,
1529
1552
  "selection-mode": "multiple",
1530
1553
  "header-style": "width: 2rem"
1531
1554
  })) : p("", !0),
1532
- $(l.$slots, "default")
1555
+ V(l.$slots, "default")
1533
1556
  ]),
1534
1557
  _: 3
1535
1558
  }, 8, ["selection", "value", "total-records", "loading", "first", "pt", "size", "show-headers", "rows"]));
1536
1559
  }
1537
- }), zt = { class: "p-3 flex items-center select-none" }, Nt = { class: "grow" }, bl = /* @__PURE__ */ f({
1560
+ }), Et = { class: "p-3 flex items-center select-none" }, Ft = { class: "grow" }, wl = /* @__PURE__ */ f({
1538
1561
  __name: "BaseTreeTable",
1539
1562
  props: /* @__PURE__ */ b({
1540
1563
  items: {},
@@ -1551,14 +1574,14 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1551
1574
  }),
1552
1575
  emits: ["update:selected", "update:page"],
1553
1576
  setup(e) {
1554
- const t = g(e, "selected"), a = g(e, "page"), l = T();
1555
- return re(l, (o) => {
1577
+ const t = g(e, "selected"), o = g(e, "page"), l = T();
1578
+ return re(l, (s) => {
1556
1579
  const i = [];
1557
- o && (Object.keys(o).forEach((r) => {
1558
- const x = o[r];
1559
- x.checked && !x.partialChecked && i.push(r);
1580
+ s && (Object.keys(s).forEach((r) => {
1581
+ const k = s[r];
1582
+ k.checked && !k.partialChecked && i.push(r);
1560
1583
  }), console.log(i)), t.value = i;
1561
- }), (o, i) => (n(), u(s(Re), {
1584
+ }), (s, i) => (n(), u(a(Re), {
1562
1585
  "selection-keys": l.value,
1563
1586
  "onUpdate:selectionKeys": i[1] || (i[1] = (r) => l.value = r),
1564
1587
  "data-key": "key",
@@ -1566,7 +1589,7 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1566
1589
  value: e.items,
1567
1590
  "total-records": e.totalItems,
1568
1591
  loading: e.isLoading,
1569
- first: a.value * e.rows,
1592
+ first: o.value * e.rows,
1570
1593
  pt: {
1571
1594
  tableContainer: {
1572
1595
  class: "grow"
@@ -1588,18 +1611,18 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1588
1611
  lazy: "",
1589
1612
  "selection-mode": e.selectable ? "checkbox" : void 0,
1590
1613
  "meta-key-selection": "",
1591
- onPage: i[2] || (i[2] = (r) => a.value = r.page)
1614
+ onPage: i[2] || (i[2] = (r) => o.value = r.page)
1592
1615
  }, {
1593
1616
  empty: d(() => [...i[3] || (i[3] = [
1594
- m("div", { class: "flex justify-center items-center p-3 text-surface-400 select-none" }, " По вашему запросу ничего не найдено. ", -1)
1617
+ c("div", { class: "flex justify-center items-center p-3 text-surface-400 select-none" }, " По вашему запросу ничего не найдено. ", -1)
1595
1618
  ])]),
1596
1619
  footer: d(() => [
1597
- m("div", zt, [
1598
- m("div", null, "Выбрано: " + k(t.value?.length || 0), 1),
1599
- m("div", Nt, [
1600
- $(o.$slots, "bulk-actions")
1620
+ c("div", Et, [
1621
+ c("div", null, "Выбрано: " + x(t.value?.length || 0), 1),
1622
+ c("div", Ft, [
1623
+ V(s.$slots, "bulk-actions")
1601
1624
  ]),
1602
- c(s(h), {
1625
+ m(a(h), {
1603
1626
  variant: "text",
1604
1627
  severity: "danger",
1605
1628
  size: "small",
@@ -1609,52 +1632,53 @@ const yt = { class: "flex flex-col h-dvh overflow-hidden p-3 gap-3" }, ht = { cl
1609
1632
  ])
1610
1633
  ]),
1611
1634
  default: d(() => [
1612
- $(o.$slots, "default")
1635
+ V(s.$slots, "default")
1613
1636
  ]),
1614
1637
  _: 3
1615
1638
  }, 8, ["selection-keys", "value", "total-records", "loading", "first", "pt", "size", "show-headers", "rows", "selection-mode"]));
1616
1639
  }
1617
1640
  });
1618
1641
  export {
1619
- cl as AdminLayout,
1620
- Yt as AutocompleteInput,
1621
- ml as BaseLayout,
1622
- pl as BaseTable,
1623
- bl as BaseTreeTable,
1624
- Zt as CheckboxGroupInput,
1642
+ bl as AdminLayout,
1643
+ ll as AutocompleteInput,
1644
+ gl as BaseLayout,
1645
+ kl as BaseTable,
1646
+ wl as BaseTreeTable,
1647
+ ol as CheckboxGroupInput,
1625
1648
  Ne as CreateButton,
1626
- _t as DateInput,
1649
+ sl as DateInput,
1627
1650
  ot as DrawerHost,
1628
1651
  Le as FilterButton,
1629
- fl as FilterDrawer,
1630
- vl as FormDrawer,
1652
+ yl as FilterDrawer,
1653
+ hl as FormDrawer,
1631
1654
  w as FormField,
1632
- el as JSONInput,
1633
- tl as MaskedInput,
1634
- J as MenuSidebar,
1635
- ll as MultiselectInput,
1636
- ol as NumberInput,
1637
- al as OptionalBooleanInput,
1638
- sl as PasswordInput,
1655
+ al as JSONInput,
1656
+ xl as LoginLayout,
1657
+ nl as MaskedInput,
1658
+ G as MenuSidebar,
1659
+ il as MultiselectInput,
1660
+ rl as NumberInput,
1661
+ ul as OptionalBooleanInput,
1662
+ dl as PasswordInput,
1639
1663
  Ze as SearchInput,
1640
1664
  Oe as SearchToggleButton,
1641
- Jt as SelectAddButton,
1642
- nl as SelectInput,
1643
- Gt as TableAddButton,
1644
- Kt as TableDeleteButton,
1645
- Wt as TableEditButton,
1646
- Qt as TablePurgeButton,
1647
- Xt as TableRestoreButton,
1648
- rl as TextInput,
1649
- il as TextareaInput,
1650
- ul as ToggleSwitch,
1651
- dl as WysiwygInput,
1652
- Ht as prepareComponent,
1665
+ Xt as SelectAddButton,
1666
+ cl as SelectInput,
1667
+ Yt as TableAddButton,
1668
+ Zt as TableDeleteButton,
1669
+ _t as TableEditButton,
1670
+ el as TablePurgeButton,
1671
+ tl as TableRestoreButton,
1672
+ fl as TextInput,
1673
+ ml as TextareaInput,
1674
+ vl as ToggleSwitch,
1675
+ pl as WysiwygInput,
1676
+ Qt as prepareComponent,
1653
1677
  S as prepareTooltip,
1654
- jt as useAdvancedFilter,
1655
- j as useDrawer,
1678
+ Kt as useAdvancedFilter,
1679
+ P as useDrawer,
1656
1680
  Te as useDrawerStore,
1657
1681
  z as useResponsive,
1658
1682
  ze as useResponsiveStore,
1659
- Pt as useSimpleConfirm
1683
+ Wt as useSimpleConfirm
1660
1684
  };