@validol4ik/uikit 0.12.4 → 0.12.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,25 @@
1
- import { defineComponent as P, computed as M, openBlock as s, createBlock as S, unref as C, normalizeClass as v, withCtx as U, createElementBlock as i, createCommentVNode as b, renderSlot as E, Fragment as I, createTextVNode as W, toDisplayString as L, createElementVNode as w, withModifiers as H, withDirectives as ne, createVNode as G, normalizeStyle as j, ref as N, watch as ee, onMounted as te, renderList as F, withKeys as de, vModelText as ue, nextTick as Q, useModel as X, useTemplateRef as Z, onBeforeUnmount as pe, mergeModels as Y, mergeProps as ce, createSlots as me, defineAsyncComponent as le } from "vue";
2
- import { boot as fe } from "quasar/wrappers";
3
- import be from "quasar/src/components/btn/QBtn.js";
1
+ import { defineComponent as P, computed as M, createBlock as S, openBlock as s, unref as C, normalizeClass as v, withCtx as T, createElementBlock as i, createCommentVNode as b, renderSlot as E, Fragment as I, createTextVNode as W, toDisplayString as L, createElementVNode as w, ref as N, withModifiers as H, withDirectives as ae, createVNode as G, normalizeStyle as K, watch as ee, onMounted as ne, renderList as F, withKeys as re, vModelText as de, nextTick as Q, mergeModels as X, useModel as Y, useTemplateRef as Z, onBeforeUnmount as ue, mergeProps as pe, createSlots as ce, defineAsyncComponent as te } from "vue";
2
+ import { boot as me } from "quasar/wrappers";
3
+ import fe from "quasar/src/components/btn/QBtn.js";
4
+ import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import be from "quasar/src/components/btn-dropdown/QBtnDropdown.js";
4
6
  import ve from "quasar/src/components/checkbox/QCheckbox.js";
5
7
  import ge from "quasar/src/directives/close-popup/ClosePopup.js";
6
8
  import ke from "quasar/src/components/spinner/QSpinner.js";
7
9
  import ye from "quasar/src/components/linear-progress/QLinearProgress.js";
8
- import he from "quasar/src/components/btn-dropdown/QBtnDropdown.js";
9
- import $e from "quasar/src/components/item/QItem.js";
10
- import _e from "quasar/src/components/chip/QChip.js";
11
- import Be from "quasar/src/components/select/QSelect.js";
12
- import we from "quasar/src/utils/patterns/patterns.js";
13
- const Bl = fe(({ app: m }) => {
14
- const r = m.config.globalProperties.$q;
10
+ import he from "quasar/src/components/item/QItem.js";
11
+ import $e from "quasar/src/components/chip/QChip.js";
12
+ import _e from "quasar/src/components/select/QSelect.js";
13
+ import Be from "quasar/src/utils/patterns/patterns.js";
14
+ const Bl = me(({ app: f }) => {
15
+ const r = f.config.globalProperties.$q;
15
16
  r.iconMapFn = (o) => {
16
17
  if (o.startsWith("icon-kl:"))
17
18
  return {
18
19
  cls: `icon-kl icon-kl-${o.slice(8)}`
19
20
  };
20
21
  };
21
- }), K = {
22
+ }), j = {
22
23
  PRIMARY: "primary",
23
24
  INFO: "info"
24
25
  }, A = {
@@ -26,19 +27,19 @@ const Bl = fe(({ app: m }) => {
26
27
  MD: "md",
27
28
  LG: "lg",
28
29
  XL: "xl"
29
- }, Me = {
30
+ }, we = {
30
31
  [A.SM]: "3px 9px",
31
32
  [A.MD]: "5px 12px",
32
33
  [A.LG]: "6px 15px",
33
34
  [A.XL]: "9px 20px"
34
- }, Ae = /* @__PURE__ */ P({
35
+ }, Me = /* @__PURE__ */ P({
35
36
  __name: "AppButton",
36
37
  props: {
37
38
  size: { default: A.MD },
38
39
  transparent: { type: Boolean },
39
40
  flat: { type: Boolean },
40
41
  rounded: { type: Boolean },
41
- color: { default: K.PRIMARY },
42
+ color: { default: j.PRIMARY },
42
43
  iconLeft: {},
43
44
  iconRight: {},
44
45
  iconMiddle: {},
@@ -54,8 +55,8 @@ const Bl = fe(({ app: m }) => {
54
55
  dark: { type: Boolean, default: void 0 }
55
56
  },
56
57
  emits: ["click"],
57
- setup(m) {
58
- const r = m, o = M(() => [
58
+ setup(f) {
59
+ const r = f, o = M(() => [
59
60
  "app-btn",
60
61
  {
61
62
  "app-btn_default": !r.transparent && !r.flat,
@@ -69,14 +70,14 @@ const Bl = fe(({ app: m }) => {
69
70
  `app-btn_${r.size}`,
70
71
  `app-btn_${r.color}`
71
72
  ]);
72
- return (e, p) => (s(), S(C(be), {
73
+ return (e, p) => (s(), S(C(fe), {
73
74
  "no-caps": "",
74
75
  unelevated: "",
75
76
  class: v([
76
77
  o.value,
77
78
  { "app-btn_theme-dark": e.dark ?? e.$q.dark.isActive }
78
79
  ]),
79
- padding: C(Me)[e.size || C(A).MD],
80
+ padding: C(we)[e.size || C(A).MD],
80
81
  loading: e.loading,
81
82
  disable: e.disabled || void 0,
82
83
  to: e.to,
@@ -87,7 +88,7 @@ const Bl = fe(({ app: m }) => {
87
88
  download: e.download,
88
89
  onClick: p[0] || (p[0] = (n) => e.$emit("click", n))
89
90
  }, {
90
- default: U(() => [
91
+ default: T(() => [
91
92
  e.iconLeft || e.iconMiddle ? (s(), i("i", {
92
93
  key: 0,
93
94
  class: v([
@@ -114,20 +115,15 @@ const Bl = fe(({ app: m }) => {
114
115
  _: 3
115
116
  }, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
116
117
  }
117
- }), R = (m, r) => {
118
- const o = m.__vccOpts || m;
119
- for (const [e, p] of r)
120
- o[e] = p;
121
- return o;
122
- }, wl = /* @__PURE__ */ R(Ae, [["__scopeId", "data-v-aade6d9b"]]), Ve = /* @__PURE__ */ P({
118
+ }), wl = /* @__PURE__ */ R(Me, [["__scopeId", "data-v-aade6d9b"]]), Ae = /* @__PURE__ */ P({
123
119
  __name: "CloseButton",
124
120
  props: {
125
121
  size: { default: A.MD },
126
122
  glass: { type: Boolean },
127
123
  dark: { type: Boolean, default: void 0 }
128
124
  },
129
- setup(m) {
130
- const r = m, o = M(() => ["close-btn", `close-btn_${r.size}`]);
125
+ setup(f) {
126
+ const r = f, o = M(() => ["close-btn", `close-btn_${r.size}`]);
131
127
  return (e, p) => (s(), i("button", {
132
128
  class: v([
133
129
  o.value,
@@ -142,20 +138,118 @@ const Bl = fe(({ app: m }) => {
142
138
  w("i", { class: "icon-kl icon-kl-close" }, null, -1)
143
139
  ])], 2));
144
140
  }
145
- }), Ml = /* @__PURE__ */ R(Ve, [["__scopeId", "data-v-fa0e7419"]]), Ce = {
141
+ }), Ml = /* @__PURE__ */ R(Ae, [["__scopeId", "data-v-fa0e7419"]]), Ve = {
142
+ [A.SM]: "3px 9px",
143
+ [A.MD]: "5px 12px",
144
+ [A.LG]: "6px 15px",
145
+ [A.XL]: "9px 20px"
146
+ }, Ce = {
147
+ key: 1,
148
+ class: "dropdown-btn__label"
149
+ }, ze = /* @__PURE__ */ P({
150
+ __name: "DropdownButton",
151
+ props: {
152
+ size: { default: A.MD },
153
+ transparent: { type: Boolean },
154
+ flat: { type: Boolean },
155
+ rounded: { type: Boolean },
156
+ color: { default: j.PRIMARY },
157
+ iconLeft: {},
158
+ iconMiddle: {},
159
+ hideDropIcon: { type: Boolean },
160
+ disabled: { type: Boolean },
161
+ loading: { type: Boolean },
162
+ ariaLabel: {},
163
+ label: {},
164
+ menuOffset: {},
165
+ menuAnchor: {},
166
+ menuSelf: {},
167
+ menuClass: {},
168
+ glass: { type: Boolean },
169
+ dark: { type: Boolean, default: void 0 }
170
+ },
171
+ emits: ["menuShown", "menuHidden"],
172
+ setup(f, { emit: r }) {
173
+ const o = f, e = r, p = N(!1), n = M(() => [
174
+ "dropdown-btn",
175
+ {
176
+ "dropdown-btn_default": !o.transparent && !o.flat,
177
+ "dropdown-btn_trans": o.transparent,
178
+ "dropdown-btn_flat": o.flat,
179
+ "dropdown-btn_rounded": o.rounded,
180
+ "dropdown-btn_icon-left": o.iconLeft,
181
+ "dropdown-btn_icon-middle": o.iconMiddle,
182
+ "dropdown-btn_no-drop": o.hideDropIcon
183
+ },
184
+ `dropdown-btn_${o.size}`,
185
+ `dropdown-btn_${o.color}`
186
+ ]), l = () => {
187
+ p.value = !0, e("menuShown");
188
+ }, m = () => {
189
+ p.value = !1, e("menuHidden");
190
+ };
191
+ return (c, g) => (s(), S(C(be), {
192
+ "no-caps": "",
193
+ unelevated: "",
194
+ modelValue: p.value,
195
+ "onUpdate:modelValue": g[0] || (g[0] = (z) => p.value = z),
196
+ class: v([
197
+ n.value,
198
+ { "dropdown-btn_theme-dark": c.dark ?? c.$q.dark.isActive }
199
+ ]),
200
+ padding: C(Ve)[c.size || C(A).MD],
201
+ loading: c.loading,
202
+ disable: c.disabled || void 0,
203
+ "aria-label": c.ariaLabel,
204
+ "menu-offset": c.menuOffset,
205
+ "menu-anchor": c.menuAnchor,
206
+ "menu-self": c.menuSelf,
207
+ "content-class": [
208
+ "kl-menu dropdown-menu",
209
+ { "glass-menu": c.glass },
210
+ c.menuClass
211
+ ],
212
+ "dropdown-icon": "icon-kl icon-kl-arrow-down",
213
+ onBeforeShow: l,
214
+ onBeforeHide: m
215
+ }, {
216
+ label: T(() => [
217
+ c.iconLeft || c.iconMiddle ? (s(), i("i", {
218
+ key: 0,
219
+ class: v([
220
+ "icon-kl",
221
+ c.iconLeft ? "icon-kl_left" : "icon-kl_middle",
222
+ `icon-kl-${c.iconLeft || c.iconMiddle}`,
223
+ c.transparent || c.flat ? `text-${c.color}` : "text-secondary"
224
+ ])
225
+ }, null, 2)) : b("", !0),
226
+ c.label ? (s(), i("span", Ce, L(c.label), 1)) : b("", !0),
227
+ E(c.$slots, "label", {}, void 0, !0)
228
+ ]),
229
+ default: T(() => [
230
+ E(c.$slots, "default", {}, void 0, !0),
231
+ E(c.$slots, "options", {
232
+ hideMenu: m,
233
+ showMenu: l
234
+ }, void 0, !0)
235
+ ]),
236
+ _: 3
237
+ }, 8, ["modelValue", "class", "padding", "loading", "disable", "aria-label", "menu-offset", "menu-anchor", "menu-self", "content-class"]));
238
+ }
239
+ }), Ie = /* @__PURE__ */ R(ze, [["__scopeId", "data-v-2fede54d"]]), Le = {
146
240
  key: 0,
147
241
  class: "app-toggle__label app-toggle__label_left"
148
- }, ze = { class: "app-toggle__container" }, Ie = ["checked", "disabled"], Le = { class: "app-toggle__thumb" }, Se = {
242
+ }, Se = { class: "app-toggle__container" }, Pe = ["checked", "disabled"], Re = { class: "app-toggle__thumb" }, De = {
149
243
  key: 1,
150
244
  class: "app-toggle__label"
151
- }, Pe = /* @__PURE__ */ P({
245
+ }, qe = /* @__PURE__ */ P({
152
246
  __name: "AppToggle",
153
247
  props: {
154
248
  modelValue: { type: Boolean },
155
249
  size: { default: A.MD },
156
250
  label: {},
157
251
  disabled: { type: Boolean },
158
- color: { default: K.PRIMARY },
252
+ color: { default: j.PRIMARY },
159
253
  iconColor: {},
160
254
  icon: {},
161
255
  iconActive: {},
@@ -163,8 +257,8 @@ const Bl = fe(({ app: m }) => {
163
257
  dark: { type: Boolean, default: void 0 }
164
258
  },
165
259
  emits: ["update:modelValue"],
166
- setup(m, { emit: r }) {
167
- const o = m, e = r, p = M({
260
+ setup(f, { emit: r }) {
261
+ const o = f, e = r, p = M({
168
262
  get: () => o.modelValue,
169
263
  set: (l) => {
170
264
  e("update:modelValue", l);
@@ -178,27 +272,27 @@ const Bl = fe(({ app: m }) => {
178
272
  `app-toggle_${o.size}`,
179
273
  `app-toggle_${o.color}`
180
274
  ]);
181
- return (l, f) => (s(), i("div", {
275
+ return (l, m) => (s(), i("div", {
182
276
  class: v([
183
277
  n.value,
184
278
  { "app-toggle_theme-dark": l.dark ?? l.$q.dark.isActive }
185
279
  ]),
186
- onClick: f[1] || (f[1] = H(() => {
280
+ onClick: m[1] || (m[1] = H(() => {
187
281
  }, ["stop"]))
188
282
  }, [
189
- l.label && l.labelLeft ? (s(), i("span", Ce, L(l.label), 1)) : b("", !0),
190
- w("label", ze, [
283
+ l.label && l.labelLeft ? (s(), i("span", Le, L(l.label), 1)) : b("", !0),
284
+ w("label", Se, [
191
285
  w("input", {
192
286
  type: "checkbox",
193
287
  checked: p.value,
194
- onChange: f[0] || (f[0] = (c) => p.value = !p.value),
288
+ onChange: m[0] || (m[0] = (c) => p.value = !p.value),
195
289
  disabled: l.disabled,
196
290
  class: "app-toggle__input"
197
- }, null, 40, Ie),
291
+ }, null, 40, Pe),
198
292
  w("span", {
199
293
  class: v(["app-toggle__slider", p.value ? `bg-${l.color}` : ""])
200
294
  }, [
201
- w("span", Le, [
295
+ w("span", Re, [
202
296
  l.icon && !l.modelValue ? (s(), i("i", {
203
297
  key: 0,
204
298
  class: v(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
@@ -216,22 +310,22 @@ const Bl = fe(({ app: m }) => {
216
310
  ], 2),
217
311
  E(l.$slots, "default", {}, void 0, !0)
218
312
  ]),
219
- l.label && !l.labelLeft ? (s(), i("span", Se, L(l.label), 1)) : b("", !0)
313
+ l.label && !l.labelLeft ? (s(), i("span", De, L(l.label), 1)) : b("", !0)
220
314
  ], 2));
221
315
  }
222
- }), se = /* @__PURE__ */ R(Pe, [["__scopeId", "data-v-419b27a2"]]), Re = {
316
+ }), se = /* @__PURE__ */ R(qe, [["__scopeId", "data-v-419b27a2"]]), Oe = {
223
317
  key: 0,
224
318
  class: "menu-item__loading"
225
- }, De = {
319
+ }, Ne = {
226
320
  key: 0,
227
321
  class: "menu-item__checked"
228
- }, qe = {
322
+ }, Ee = {
229
323
  key: 2,
230
324
  class: "menu-item__icon"
231
- }, Oe = { class: "menu-item__label" }, Ne = {
325
+ }, Ue = { class: "menu-item__label" }, Te = {
232
326
  key: 3,
233
327
  class: "menu-item__icon-right icon-kl icon-kl-arrow-right"
234
- }, Ee = /* @__PURE__ */ P({
328
+ }, Qe = /* @__PURE__ */ P({
235
329
  __name: "PopupItem",
236
330
  props: {
237
331
  label: {},
@@ -253,11 +347,11 @@ const Bl = fe(({ app: m }) => {
253
347
  dark: { type: Boolean, default: void 0 }
254
348
  },
255
349
  emits: ["update:modelValue", "closePopup"],
256
- setup(m, { emit: r }) {
257
- const o = m, e = r, p = () => {
350
+ setup(f, { emit: r }) {
351
+ const o = f, e = r, p = () => {
258
352
  o.disabled || (o.toggle || o.checkbox ? e("update:modelValue", !o.modelValue) : o.persistent || e("closePopup"));
259
353
  };
260
- return (n, l) => ne((s(), i("div", {
354
+ return (n, l) => ae((s(), i("div", {
261
355
  class: v(["menu-item", [
262
356
  { "menu-item_gap": n.gap },
263
357
  { "menu-item_disabled": n.disabled },
@@ -270,13 +364,13 @@ const Bl = fe(({ app: m }) => {
270
364
  w("div", {
271
365
  class: v(["row items-center no-wrap", `text-${n.color ? n.color : "dark"}`])
272
366
  }, [
273
- n.loading ? (s(), i("div", Re, [
367
+ n.loading ? (s(), i("div", Oe, [
274
368
  G(C(ke), {
275
369
  size: "19px",
276
370
  color: n.color ? n.color : "dark"
277
371
  }, null, 8, ["color"])
278
372
  ])) : (s(), i(I, { key: 1 }, [
279
- n.checked ? (s(), i("div", De, [...l[3] || (l[3] = [
373
+ n.checked ? (s(), i("div", Ne, [...l[3] || (l[3] = [
280
374
  w("i", { class: "icon-kl icon-kl-check" }, null, -1)
281
375
  ])])) : b("", !0),
282
376
  n.checkbox ? (s(), S(ve, {
@@ -285,18 +379,18 @@ const Bl = fe(({ app: m }) => {
285
379
  size: "34px",
286
380
  dark: n.dark ?? n.$q.dark.isActive,
287
381
  "model-value": n.modelValue,
288
- "onUpdate:modelValue": l[0] || (l[0] = (f) => e("update:modelValue", f)),
382
+ "onUpdate:modelValue": l[0] || (l[0] = (m) => e("update:modelValue", m)),
289
383
  onClick: l[1] || (l[1] = H(() => {
290
384
  }, ["stop"]))
291
385
  }, null, 8, ["dark", "model-value"])) : b("", !0),
292
- n.icon ? (s(), i("div", qe, [
386
+ n.icon ? (s(), i("div", Ee, [
293
387
  w("i", {
294
388
  class: v(`icon-kl icon-kl-${n.icon}`),
295
- style: j({ fontSize: n.iconSize || "27px" })
389
+ style: K({ fontSize: n.iconSize || "27px" })
296
390
  }, null, 6)
297
391
  ])) : b("", !0)
298
392
  ], 64)),
299
- w("span", Oe, L(n.label), 1)
393
+ w("span", Ue, L(n.label), 1)
300
394
  ], 2),
301
395
  n.$slots.right ? E(n.$slots, "right", { key: 0 }, void 0, !0) : n.toggle ? (s(), S(se, {
302
396
  key: 1,
@@ -304,35 +398,35 @@ const Bl = fe(({ app: m }) => {
304
398
  "model-value": n.modelValue,
305
399
  disabled: n.disabled || n.loading,
306
400
  dark: n.dark,
307
- "onUpdate:modelValue": l[2] || (l[2] = (f) => e("update:modelValue", f))
401
+ "onUpdate:modelValue": l[2] || (l[2] = (m) => e("update:modelValue", m))
308
402
  }, null, 8, ["model-value", "disabled", "dark"])) : n.iconRight ? (s(), i("i", {
309
403
  key: 2,
310
404
  class: v([
311
405
  "menu-item__icon-right menu-item__icon-right_custom icon-kl",
312
406
  `icon-kl-${n.iconRight}`
313
407
  ])
314
- }, null, 2)) : n.arrow ? (s(), i("i", Ne)) : b("", !0)
408
+ }, null, 2)) : n.arrow ? (s(), i("i", Te)) : b("", !0)
315
409
  ], 2)), [
316
410
  [ge, !n.toggle && !n.checkbox && !n.persistent && !n.disabled]
317
411
  ]);
318
412
  }
319
- }), ie = /* @__PURE__ */ R(Ee, [["__scopeId", "data-v-3b919ff2"]]), Te = /* @__PURE__ */ P({
413
+ }), ie = /* @__PURE__ */ R(Qe, [["__scopeId", "data-v-3b919ff2"]]), We = /* @__PURE__ */ P({
320
414
  __name: "AppIcon",
321
415
  props: {
322
416
  name: {},
323
417
  size: {},
324
418
  color: {}
325
419
  },
326
- setup(m) {
420
+ setup(f) {
327
421
  return (r, o) => (s(), i("i", {
328
422
  class: v(["icon-kl", `icon-kl-${r.name}`, r.color ? `text-${r.color}` : ""]),
329
- style: j(r.size ? `font-size: ${r.size}` : void 0)
423
+ style: K(r.size ? `font-size: ${r.size}` : void 0)
330
424
  }, null, 6));
331
425
  }
332
- }), J = /* @__PURE__ */ R(Te, [["__scopeId", "data-v-941765ee"]]), Ue = {
426
+ }), J = /* @__PURE__ */ R(We, [["__scopeId", "data-v-941765ee"]]), Fe = {
333
427
  key: 0,
334
428
  class: "code-field__label"
335
- }, Qe = { class: "code-field__inputs" }, We = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], Fe = /* @__PURE__ */ P({
429
+ }, He = { class: "code-field__inputs" }, Ge = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], Xe = /* @__PURE__ */ P({
336
430
  __name: "AppCodeInput",
337
431
  props: {
338
432
  length: { default: 5 },
@@ -345,8 +439,8 @@ const Bl = fe(({ app: m }) => {
345
439
  dark: { type: Boolean, default: void 0 }
346
440
  },
347
441
  emits: ["update:modelValue", "completed"],
348
- setup(m, { expose: r, emit: o }) {
349
- const e = m, p = o, n = N(Array(e.length).fill("")), l = N([]), f = M(() => [
442
+ setup(f, { expose: r, emit: o }) {
443
+ const e = f, p = o, n = N(Array(e.length).fill("")), l = N([]), m = M(() => [
350
444
  "code-field",
351
445
  {
352
446
  "code-field_disabled": e.disabled || e.loading
@@ -390,29 +484,29 @@ const Bl = fe(({ app: m }) => {
390
484
  n,
391
485
  (a) => {
392
486
  const u = a.join("");
393
- T(u);
487
+ U(u);
394
488
  },
395
489
  { deep: !0 }
396
490
  );
397
- const T = (a) => {
491
+ const U = (a) => {
398
492
  p("update:modelValue", a), a.length === e.length && !a.includes(" ") && p("completed", a);
399
493
  }, d = (a) => {
400
494
  a && (n.value = a.split("").slice(0, e.length));
401
495
  };
402
- return te(() => {
496
+ return ne(() => {
403
497
  e.autofocus && l.value && l.value[0] && l.value[0].focus();
404
498
  }), r({
405
499
  injectCode: d
406
500
  }), (a, u) => (s(), i("div", {
407
501
  class: v([
408
- f.value,
502
+ m.value,
409
503
  { "code-field_theme-dark": a.dark ?? a.$q.dark.isActive }
410
504
  ]),
411
- style: j(c.value)
505
+ style: K(c.value)
412
506
  }, [
413
- a.label ? (s(), i("label", Ue, L(a.label), 1)) : b("", !0),
414
- w("div", Qe, [
415
- (s(!0), i(I, null, F(a.length, (_, h) => ne((s(), i("input", {
507
+ a.label ? (s(), i("label", Fe, L(a.label), 1)) : b("", !0),
508
+ w("div", He, [
509
+ (s(!0), i(I, null, F(a.length, (_, h) => ae((s(), i("input", {
416
510
  key: h,
417
511
  "onUpdate:modelValue": (B) => n.value[h] = B,
418
512
  ref_for: !0,
@@ -423,10 +517,10 @@ const Bl = fe(({ app: m }) => {
423
517
  class: "code-field__input",
424
518
  disabled: a.disabled || a.loading,
425
519
  onInput: (B) => g(B, h),
426
- onKeydown: de((B) => z(h), ["backspace"]),
520
+ onKeydown: re((B) => z(h), ["backspace"]),
427
521
  onPaste: (B) => D(B, h)
428
- }, null, 40, We)), [
429
- [ue, n.value[h]]
522
+ }, null, 40, Ge)), [
523
+ [de, n.value[h]]
430
524
  ])), 128))
431
525
  ]),
432
526
  a.loading ? (s(), S(ye, {
@@ -438,9 +532,9 @@ const Bl = fe(({ app: m }) => {
438
532
  }, null, 8, ["color"])) : b("", !0)
439
533
  ], 6));
440
534
  }
441
- }), Al = /* @__PURE__ */ R(Fe, [["__scopeId", "data-v-779baa1e"]]), He = ["onClick", "disabled"], Ge = /* @__PURE__ */ P({
535
+ }), Al = /* @__PURE__ */ R(Xe, [["__scopeId", "data-v-779baa1e"]]), Ye = ["onClick", "disabled"], Ke = /* @__PURE__ */ P({
442
536
  __name: "AppSegment",
443
- props: /* @__PURE__ */ Y({
537
+ props: /* @__PURE__ */ X({
444
538
  options: {},
445
539
  disabled: { type: Boolean },
446
540
  size: { default: A.MD },
@@ -453,12 +547,12 @@ const Bl = fe(({ app: m }) => {
453
547
  modelModifiers: {}
454
548
  }),
455
549
  emits: ["update:modelValue"],
456
- setup(m) {
457
- const r = X(m, "modelValue"), o = m, e = Z("scroller"), p = Z("content"), n = Z("buttons"), l = N(!1), f = N(!1), c = N({ left: 0, width: 0 }), g = M(() => [
550
+ setup(f) {
551
+ const r = Y(f, "modelValue"), o = f, e = Z("scroller"), p = Z("content"), n = Z("buttons"), l = N(!1), m = N(!1), c = N({ left: 0, width: 0 }), g = M(() => [
458
552
  "app-segment",
459
553
  {
460
554
  "app-segment_disabled": o.disabled,
461
- "app-segment_scrollable": f.value,
555
+ "app-segment_scrollable": m.value,
462
556
  "app-segment_glass": o.glass,
463
557
  "app-segment_blur": o.blur
464
558
  },
@@ -471,10 +565,10 @@ const Bl = fe(({ app: m }) => {
471
565
  transform: `translateX(${c.value.left}px)`,
472
566
  opacity: c.value.width ? 1 : 0
473
567
  }));
474
- function T() {
568
+ function U() {
475
569
  var V;
476
570
  const k = (V = n.value) == null ? void 0 : V[z.value];
477
- c.value = k ? { left: k.offsetLeft, width: k.offsetWidth } : { left: 0, width: 0 }, e.value && (f.value = e.value.scrollWidth - e.value.clientWidth > 1);
571
+ c.value = k ? { left: k.offsetLeft, width: k.offsetWidth } : { left: 0, width: 0 }, e.value && (m.value = e.value.scrollWidth - e.value.clientWidth > 1);
478
572
  }
479
573
  function d(k = "smooth") {
480
574
  var t, $;
@@ -492,14 +586,14 @@ const Bl = fe(({ app: m }) => {
492
586
  u = !1;
493
587
  }
494
588
  function h() {
495
- T(), u && d();
589
+ U(), u && d();
496
590
  }
497
591
  let B;
498
- return te(async () => {
499
- T(), await Q(), d("auto"), l.value = !0, typeof ResizeObserver < "u" && e.value && p.value && (B = new ResizeObserver(h), B.observe(e.value), B.observe(p.value));
500
- }), pe(() => B == null ? void 0 : B.disconnect()), ee(
501
- [z, f, () => o.options, () => o.size],
502
- () => Q(T)
592
+ return ne(async () => {
593
+ U(), await Q(), d("auto"), l.value = !0, typeof ResizeObserver < "u" && e.value && p.value && (B = new ResizeObserver(h), B.observe(e.value), B.observe(p.value));
594
+ }), ue(() => B == null ? void 0 : B.disconnect()), ee(
595
+ [z, m, () => o.options, () => o.size],
596
+ () => Q(U)
503
597
  ), ee(z, () => {
504
598
  u = !0, Q(() => d());
505
599
  }), (k, V) => (s(), i("div", {
@@ -519,7 +613,7 @@ const Bl = fe(({ app: m }) => {
519
613
  }, [
520
614
  w("div", {
521
615
  class: v(["app-segment__thumb", { "app-segment__thumb_animated": l.value }]),
522
- style: j(D.value)
616
+ style: K(D.value)
523
617
  }, null, 6),
524
618
  (s(!0), i(I, null, F(k.options, (t, $) => (s(), i("button", {
525
619
  ref_for: !0,
@@ -533,114 +627,13 @@ const Bl = fe(({ app: m }) => {
533
627
  E(k.$slots, "option", { option: t }, () => [
534
628
  W(L(t.label), 1)
535
629
  ], !0)
536
- ], 10, He))), 128))
630
+ ], 10, Ye))), 128))
537
631
  ], 512)
538
632
  ], 34));
539
633
  }
540
- }), Vl = /* @__PURE__ */ R(Ge, [["__scopeId", "data-v-b48db2e8"]]), oe = [10, 20, 50, 100], Xe = "стор.", Ye = {
541
- [A.SM]: "3px 9px",
542
- [A.MD]: "5px 12px",
543
- [A.LG]: "6px 15px",
544
- [A.XL]: "9px 20px"
545
- }, je = {
546
- key: 1,
547
- class: "dropdown-btn__label"
548
- }, Ke = /* @__PURE__ */ P({
549
- __name: "DropdownButton",
550
- props: {
551
- size: { default: A.MD },
552
- transparent: { type: Boolean },
553
- flat: { type: Boolean },
554
- rounded: { type: Boolean },
555
- color: { default: K.PRIMARY },
556
- iconLeft: {},
557
- iconMiddle: {},
558
- hideDropIcon: { type: Boolean },
559
- disabled: { type: Boolean },
560
- loading: { type: Boolean },
561
- ariaLabel: {},
562
- label: {},
563
- menuOffset: {},
564
- menuAnchor: {},
565
- menuSelf: {},
566
- menuClass: {},
567
- glass: { type: Boolean },
568
- dark: { type: Boolean, default: void 0 }
569
- },
570
- emits: ["menuShown", "menuHidden"],
571
- setup(m, { emit: r }) {
572
- const o = m, e = r, p = N(!1), n = M(() => [
573
- "dropdown-btn",
574
- {
575
- "dropdown-btn_default": !o.transparent && !o.flat,
576
- "dropdown-btn_trans": o.transparent,
577
- "dropdown-btn_flat": o.flat,
578
- "dropdown-btn_rounded": o.rounded,
579
- "dropdown-btn_icon-left": o.iconLeft,
580
- "dropdown-btn_icon-middle": o.iconMiddle,
581
- "dropdown-btn_no-drop": o.hideDropIcon
582
- },
583
- `dropdown-btn_${o.size}`,
584
- `dropdown-btn_${o.color}`
585
- ]), l = () => {
586
- p.value = !0, e("menuShown");
587
- }, f = () => {
588
- p.value = !1, e("menuHidden");
589
- };
590
- return (c, g) => (s(), S(C(he), {
591
- "no-caps": "",
592
- unelevated: "",
593
- modelValue: p.value,
594
- "onUpdate:modelValue": g[0] || (g[0] = (z) => p.value = z),
595
- class: v([
596
- n.value,
597
- { "dropdown-btn_theme-dark": c.dark ?? c.$q.dark.isActive }
598
- ]),
599
- padding: C(Ye)[c.size || C(A).MD],
600
- loading: c.loading,
601
- disable: c.disabled || void 0,
602
- "aria-label": c.ariaLabel,
603
- "menu-offset": c.menuOffset,
604
- "menu-anchor": c.menuAnchor,
605
- "menu-self": c.menuSelf,
606
- "content-class": [
607
- "kl-menu dropdown-menu",
608
- { "glass-menu": c.glass },
609
- c.menuClass
610
- ],
611
- "dropdown-icon": "icon-kl icon-kl-arrow-down",
612
- onBeforeShow: l,
613
- onBeforeHide: f
614
- }, {
615
- label: U(() => [
616
- c.iconLeft || c.iconMiddle ? (s(), i("i", {
617
- key: 0,
618
- class: v([
619
- "icon-kl",
620
- c.iconLeft ? "icon-kl_left" : "icon-kl_middle",
621
- `icon-kl-${c.iconLeft || c.iconMiddle}`,
622
- c.transparent || c.flat ? `text-${c.color}` : "text-secondary"
623
- ])
624
- }, null, 2)) : b("", !0),
625
- c.label ? (s(), i("span", je, L(c.label), 1)) : b("", !0),
626
- E(c.$slots, "label", {}, void 0, !0)
627
- ]),
628
- default: U(() => [
629
- E(c.$slots, "default", {}, void 0, !0),
630
- E(c.$slots, "options", {
631
- hideMenu: f,
632
- showMenu: l
633
- }, void 0, !0)
634
- ]),
635
- _: 3
636
- }, 8, ["modelValue", "class", "padding", "loading", "disable", "aria-label", "menu-offset", "menu-anchor", "menu-self", "content-class"]));
637
- }
638
- }), re = /* @__PURE__ */ R(Ke, [["__scopeId", "data-v-2fede54d"]]), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
639
- __proto__: null,
640
- default: re
641
- }, Symbol.toStringTag, { value: "Module" })), Je = ["disabled"], xe = ["disabled"], el = ["disabled", "aria-current", "onClick"], ll = ["disabled"], ol = ["disabled"], x = "...", al = /* @__PURE__ */ P({
634
+ }), Vl = /* @__PURE__ */ R(Ke, [["__scopeId", "data-v-b48db2e8"]]), le = [10, 20, 50, 100], je = "стор.", Ze = ["disabled"], Je = ["disabled"], xe = ["disabled", "aria-current", "onClick"], el = ["disabled"], ll = ["disabled"], x = "...", ol = /* @__PURE__ */ P({
642
635
  __name: "AppPagination",
643
- props: /* @__PURE__ */ Y({
636
+ props: /* @__PURE__ */ X({
644
637
  max: {},
645
638
  maxPages: { default: 5 },
646
639
  boundaryNumbers: { type: Boolean, default: !0 },
@@ -649,26 +642,26 @@ const Bl = fe(({ app: m }) => {
649
642
  boundaryLinks: { type: Boolean },
650
643
  perPage: { type: Boolean },
651
644
  size: { default: A.MD },
652
- color: { default: K.PRIMARY },
645
+ color: { default: j.PRIMARY },
653
646
  glass: { type: Boolean },
654
647
  disabled: { type: Boolean },
655
648
  dark: { type: Boolean, default: void 0 }
656
649
  }, {
657
650
  modelValue: { default: 1 },
658
651
  modelModifiers: {},
659
- limit: { default: oe[0] },
652
+ limit: { default: le[0] },
660
653
  limitModifiers: {}
661
654
  }),
662
655
  emits: ["update:modelValue", "update:limit"],
663
- setup(m) {
664
- const r = X(m, "modelValue"), o = X(m, "limit"), e = m, p = (d, a, u) => Math.min(Math.max(d, a), u), n = M(() => Math.max(1, Math.floor(e.max) || 1)), l = M(() => p(r.value, 1, n.value)), f = M(
656
+ setup(f) {
657
+ const r = Y(f, "modelValue"), o = Y(f, "limit"), e = f, p = (d, a, u) => Math.min(Math.max(d, a), u), n = M(() => Math.max(1, Math.floor(e.max) || 1)), l = M(() => p(r.value, 1, n.value)), m = M(
665
658
  () => p(Math.floor(e.maxPages) || 1, 1, 100)
666
659
  ), c = M(() => {
667
660
  const d = n.value;
668
- if (d <= f.value)
661
+ if (d <= m.value)
669
662
  return Array.from({ length: d }, (h, B) => B + 1);
670
- let a = Math.max(1, l.value - Math.floor((f.value - 1) / 2)), u = a + f.value - 1;
671
- u > d && (u = d, a = u - f.value + 1);
663
+ let a = Math.max(1, l.value - Math.floor((m.value - 1) / 2)), u = a + m.value - 1;
664
+ u > d && (u = d, a = u - m.value + 1);
672
665
  const _ = [];
673
666
  e.boundaryNumbers && a > 1 && (_.push(1), e.ellipses && a > 2 && _.push(x));
674
667
  for (let h = a; h <= u; h++) _.push(h);
@@ -682,11 +675,11 @@ const Bl = fe(({ app: m }) => {
682
675
  },
683
676
  `app-pagination_${e.size}`,
684
677
  `app-pagination_${e.color}`
685
- ]), z = (d) => `${d} / ${Xe}`, D = (d) => {
678
+ ]), z = (d) => `${d} / ${je}`, D = (d) => {
686
679
  if (e.disabled) return;
687
680
  const a = p(d, 1, n.value);
688
681
  a !== r.value && (r.value = a);
689
- }, T = (d, a) => {
682
+ }, U = (d, a) => {
690
683
  a(), d !== o.value && (o.value = d, r.value = 1);
691
684
  };
692
685
  return (d, a) => (s(), i("nav", {
@@ -706,7 +699,7 @@ const Bl = fe(({ app: m }) => {
706
699
  onClick: a[0] || (a[0] = (u) => D(1))
707
700
  }, [...a[4] || (a[4] = [
708
701
  w("i", { class: "icon-kl icon-kl-arrow-start" }, null, -1)
709
- ])], 8, Je)) : b("", !0),
702
+ ])], 8, Ze)) : b("", !0),
710
703
  d.directionLinks ? (s(), i("button", {
711
704
  key: 1,
712
705
  type: "button",
@@ -716,7 +709,7 @@ const Bl = fe(({ app: m }) => {
716
709
  onClick: a[1] || (a[1] = (u) => D(l.value - 1))
717
710
  }, [...a[5] || (a[5] = [
718
711
  w("i", { class: "icon-kl icon-kl-arrow-left" }, null, -1)
719
- ])], 8, xe)) : b("", !0),
712
+ ])], 8, Je)) : b("", !0),
720
713
  (s(!0), i(I, null, F(c.value, (u, _) => (s(), i(I, null, [
721
714
  u === x ? (s(), i("span", {
722
715
  key: `gap-${_}`,
@@ -730,7 +723,7 @@ const Bl = fe(({ app: m }) => {
730
723
  disabled: d.disabled,
731
724
  "aria-current": u === l.value ? "page" : void 0,
732
725
  onClick: (h) => D(u)
733
- }, L(u), 11, el))
726
+ }, L(u), 11, xe))
734
727
  ], 64))), 256)),
735
728
  d.directionLinks ? (s(), i("button", {
736
729
  key: 2,
@@ -741,7 +734,7 @@ const Bl = fe(({ app: m }) => {
741
734
  onClick: a[2] || (a[2] = (u) => D(l.value + 1))
742
735
  }, [...a[7] || (a[7] = [
743
736
  w("i", { class: "icon-kl icon-kl-arrow-right" }, null, -1)
744
- ])], 8, ll)) : b("", !0),
737
+ ])], 8, el)) : b("", !0),
745
738
  d.boundaryLinks ? (s(), i("button", {
746
739
  key: 3,
747
740
  type: "button",
@@ -751,10 +744,10 @@ const Bl = fe(({ app: m }) => {
751
744
  onClick: a[3] || (a[3] = (u) => D(n.value))
752
745
  }, [...a[8] || (a[8] = [
753
746
  w("i", { class: "icon-kl icon-kl-arrow-end" }, null, -1)
754
- ])], 8, ol)) : b("", !0),
747
+ ])], 8, ll)) : b("", !0),
755
748
  d.perPage ? (s(), i(I, { key: 4 }, [
756
749
  a[9] || (a[9] = w("span", { class: "app-pagination__divider" }, null, -1)),
757
- G(re, {
750
+ G(Ie, {
758
751
  flat: "",
759
752
  rounded: "",
760
753
  size: d.size,
@@ -765,14 +758,14 @@ const Bl = fe(({ app: m }) => {
765
758
  label: z(o.value),
766
759
  class: "app-pagination__per-page"
767
760
  }, {
768
- options: U(({ hideMenu: u }) => [
769
- (s(!0), i(I, null, F(C(oe), (_) => (s(), S(ie, {
761
+ options: T(({ hideMenu: u }) => [
762
+ (s(!0), i(I, null, F(C(le), (_) => (s(), S(ie, {
770
763
  key: _,
771
764
  "no-arrow": "",
772
765
  label: z(_),
773
766
  active: _ === o.value,
774
767
  dark: d.dark,
775
- onClick: (h) => T(_, u)
768
+ onClick: (h) => U(_, u)
776
769
  }, null, 8, ["label", "active", "dark", "onClick"]))), 128))
777
770
  ]),
778
771
  _: 1
@@ -780,24 +773,24 @@ const Bl = fe(({ app: m }) => {
780
773
  ], 64)) : b("", !0)
781
774
  ], 2));
782
775
  }
783
- }), Cl = /* @__PURE__ */ R(al, [["__scopeId", "data-v-d305e690"]]), nl = /* @__PURE__ */ P({
776
+ }), Cl = /* @__PURE__ */ R(ol, [["__scopeId", "data-v-d305e690"]]), al = /* @__PURE__ */ P({
784
777
  __name: "SystemMenu",
785
778
  props: {
786
779
  dark: { type: Boolean, default: void 0 }
787
780
  },
788
- setup(m) {
781
+ setup(f) {
789
782
  return (r, o) => (s(), i("div", {
790
783
  class: v(["system-menu", { "system-menu_dark": r.dark ?? r.$q.dark.isActive }])
791
784
  }, [
792
785
  E(r.$slots, "default", {}, void 0, !0)
793
786
  ], 2));
794
787
  }
795
- }), zl = /* @__PURE__ */ R(nl, [["__scopeId", "data-v-0cca883b"]]), tl = { class: "menu-item__content" }, sl = {
788
+ }), zl = /* @__PURE__ */ R(al, [["__scopeId", "data-v-0cca883b"]]), nl = { class: "menu-item__content" }, tl = {
796
789
  key: 0,
797
790
  class: "menu-item__value"
798
- }, il = /* @__PURE__ */ P({
791
+ }, sl = /* @__PURE__ */ P({
799
792
  __name: "MenuItem",
800
- props: /* @__PURE__ */ Y({
793
+ props: /* @__PURE__ */ X({
801
794
  dark: { type: Boolean, default: void 0 },
802
795
  label: {},
803
796
  icon: {},
@@ -816,12 +809,12 @@ const Bl = fe(({ app: m }) => {
816
809
  modelValue: { type: Boolean },
817
810
  modelModifiers: {}
818
811
  }),
819
- emits: /* @__PURE__ */ Y(["click"], ["update:modelValue"]),
820
- setup(m, { emit: r }) {
821
- const o = m, e = r, p = X(m, "modelValue"), n = async () => {
812
+ emits: /* @__PURE__ */ X(["click"], ["update:modelValue"]),
813
+ setup(f, { emit: r }) {
814
+ const o = f, e = r, p = Y(f, "modelValue"), n = async () => {
822
815
  o.toggle && (p.value = !p.value), e("click");
823
816
  };
824
- return (l, f) => (s(), S(C($e), {
817
+ return (l, m) => (s(), S(C(he), {
825
818
  class: v(["menu-item", {
826
819
  "menu-item_disabled": l.disabled,
827
820
  "menu-item_mobile": l.isMobile,
@@ -835,26 +828,26 @@ const Bl = fe(({ app: m }) => {
835
828
  clickable: "",
836
829
  onClick: n
837
830
  }, {
838
- default: U(() => [
831
+ default: T(() => [
839
832
  l.icon ? (s(), S(C(J), {
840
833
  key: 0,
841
834
  name: l.icon.name,
842
835
  class: v(["menu-item__icon", `bg-${l.icon.color}`])
843
836
  }, null, 8, ["name", "class"])) : b("", !0),
844
- w("div", tl, [
837
+ w("div", nl, [
845
838
  w("span", {
846
839
  class: v(["app-menu-item__label", l.color ? `text-${l.color}` : ""])
847
840
  }, [
848
841
  W(L(l.label) + " ", 1),
849
842
  E(l.$slots, "default", {}, void 0, !0)
850
843
  ], 2),
851
- l.$slots.value ? (s(), i("span", sl, [
844
+ l.$slots.value ? (s(), i("span", tl, [
852
845
  E(l.$slots, "value", {}, void 0, !0)
853
846
  ])) : b("", !0),
854
847
  l.toggle ? (s(), S(C(se), {
855
848
  key: 1,
856
849
  modelValue: p.value,
857
- "onUpdate:modelValue": f[0] || (f[0] = (c) => p.value = c),
850
+ "onUpdate:modelValue": m[0] || (m[0] = (c) => p.value = c),
858
851
  icon: l.toggleIcon,
859
852
  "icon-active": l.toggleIconActive,
860
853
  dark: l.dark
@@ -875,7 +868,7 @@ const Bl = fe(({ app: m }) => {
875
868
  _: 3
876
869
  }, 8, ["class", "dark", "to", "href", "target", "disable"]));
877
870
  }
878
- }), Il = /* @__PURE__ */ R(il, [["__scopeId", "data-v-e94ed84f"]]), ae = (m) => m ? !0 : "Обовʼязкове поле", rl = { class: "app-select__amount" }, dl = ["onClick"], ul = /* @__PURE__ */ P({
871
+ }), Il = /* @__PURE__ */ R(sl, [["__scopeId", "data-v-e94ed84f"]]), oe = (f) => f ? !0 : "Обовʼязкове поле", il = { class: "app-select__amount" }, rl = ["onClick"], dl = /* @__PURE__ */ P({
879
872
  __name: "AppSelect",
880
873
  props: {
881
874
  modelValue: {},
@@ -908,8 +901,8 @@ const Bl = fe(({ app: m }) => {
908
901
  "popupHide",
909
902
  "delete"
910
903
  ],
911
- setup(m, { emit: r }) {
912
- const o = m, e = r, p = N(!1), n = N(""), l = N(!1), f = N(""), c = M(() => o.filtering || o.creatable), g = M({
904
+ setup(f, { emit: r }) {
905
+ const o = f, e = r, p = N(!1), n = N(""), l = N(!1), m = N(""), c = M(() => o.filtering || o.creatable), g = M({
913
906
  get() {
914
907
  if (o.modelValue) {
915
908
  if (o.multiple && Array.isArray(o.modelValue))
@@ -939,13 +932,13 @@ const Bl = fe(({ app: m }) => {
939
932
  return o.placeholder;
940
933
  } else return ((t = g.value) == null ? void 0 : t.label) || o.placeholder || "";
941
934
  return "";
942
- }), T = M(() => !(!o.clearable || !o.modelValue || o.modelValue && Array.isArray(o.modelValue) && !o.modelValue.length)), d = M(() => n.value ? o.options.filter(
935
+ }), U = M(() => !(!o.clearable || !o.modelValue || o.modelValue && Array.isArray(o.modelValue) && !o.modelValue.length)), d = M(() => n.value ? o.options.filter(
943
936
  (t) => t.label.toLowerCase().includes(n.value.toLowerCase())
944
937
  ) : o.options), a = M(() => {
945
938
  if (o.rules)
946
- return o.required ? [...o.rules, ae] : o.rules;
939
+ return o.required ? [...o.rules, oe] : o.rules;
947
940
  if (o.required)
948
- return [ae];
941
+ return [oe];
949
942
  }), u = () => {
950
943
  p.value = !0, e("popupShow");
951
944
  }, _ = () => {
@@ -954,11 +947,11 @@ const Bl = fe(({ app: m }) => {
954
947
  g.value = void 0;
955
948
  }, B = (t, $) => {
956
949
  $(() => {
957
- n.value = t, f.value = "";
950
+ n.value = t, m.value = "";
958
951
  });
959
952
  }, k = async (t) => {
960
953
  var y;
961
- const { testPattern: $ } = we;
954
+ const { testPattern: $ } = Be;
962
955
  for (const q of o.createRules ?? []) {
963
956
  const O = typeof q == "function" ? await q(t, $) : (y = $[q]) == null ? void 0 : y.call($, t);
964
957
  if (typeof O == "string") return O;
@@ -975,7 +968,7 @@ const Bl = fe(({ app: m }) => {
975
968
  if (q) return $(q, "add-unique");
976
969
  l.value = !0;
977
970
  try {
978
- if (f.value = await k(y), f.value || !o.onCreate) return;
971
+ if (m.value = await k(y), m.value || !o.onCreate) return;
979
972
  const O = await o.onCreate(y);
980
973
  $(O || void 0, "add-unique");
981
974
  } catch {
@@ -997,7 +990,7 @@ const Bl = fe(({ app: m }) => {
997
990
  key: 0,
998
991
  class: v(["app-select__label", { "app-select__label_bold": t.required }])
999
992
  }, L(t.required ? `${t.label} *` : t.label), 3)) : b("", !0),
1000
- G(C(Be), {
993
+ G(C(_e), {
1001
994
  standout: "",
1002
995
  "hide-bottom-space": "",
1003
996
  "hide-dropdown-icon": "",
@@ -1015,8 +1008,8 @@ const Bl = fe(({ app: m }) => {
1015
1008
  "use-input": t.creatable || t.filtering && (Array.isArray(g.value) || !g.value),
1016
1009
  rules: a.value,
1017
1010
  "lazy-rules": t.lazyRules,
1018
- error: !!f.value,
1019
- "error-message": f.value,
1011
+ error: !!m.value,
1012
+ "error-message": m.value,
1020
1013
  autofocus: t.autofocus,
1021
1014
  disable: t.disabled,
1022
1015
  loading: t.loading || l.value,
@@ -1026,18 +1019,18 @@ const Bl = fe(({ app: m }) => {
1026
1019
  onPopupShow: u,
1027
1020
  onPopupHide: _
1028
1021
  }, {
1029
- append: U(() => [
1030
- T.value ? (s(), i("i", {
1022
+ append: T(() => [
1023
+ U.value ? (s(), i("i", {
1031
1024
  key: 0,
1032
1025
  class: "icon-kl icon-kl-circle-close app-select__clear",
1033
1026
  onClick: H(h, ["stop", "prevent"])
1034
1027
  })) : b("", !0),
1035
1028
  $[1] || ($[1] = w("i", { class: "icon-kl icon-kl-arrow-down app-select__drop-icon" }, null, -1))
1036
1029
  ]),
1037
- selected: U(() => {
1030
+ selected: T(() => {
1038
1031
  var y, q;
1039
1032
  return [
1040
- t.chips && z.value.length ? (s(!0), i(I, { key: 0 }, F(z.value, (O) => (s(), S(C(_e), {
1033
+ t.chips && z.value.length ? (s(!0), i(I, { key: 0 }, F(z.value, (O) => (s(), S(C($e), {
1041
1034
  key: O.value,
1042
1035
  dense: "",
1043
1036
  class: "app-select__chip",
@@ -1054,7 +1047,7 @@ const Bl = fe(({ app: m }) => {
1054
1047
  }, [
1055
1048
  (q = g.value) != null && q.length ? (s(), i(I, { key: 0 }, [
1056
1049
  $[2] || ($[2] = W(" Вибрано ", -1)),
1057
- w("span", rl, L(g.value.length), 1)
1050
+ w("span", il, L(g.value.length), 1)
1058
1051
  ], 64)) : (s(), i(I, { key: 1 }, [
1059
1052
  W(L(o.placeholder), 1)
1060
1053
  ], 64))
@@ -1070,8 +1063,8 @@ const Bl = fe(({ app: m }) => {
1070
1063
  ], 64))
1071
1064
  ];
1072
1065
  }),
1073
- option: U((y) => [
1074
- G(ie, ce({
1066
+ option: T((y) => [
1067
+ G(ie, pe({
1075
1068
  "no-arrow": "",
1076
1069
  label: y.opt.label,
1077
1070
  checked: y.opt.done,
@@ -1082,14 +1075,14 @@ const Bl = fe(({ app: m }) => {
1082
1075
  "model-value": y.selected
1083
1076
  }, o.multiple ? { ...y.itemProps, onClick: void 0 } : y.itemProps, {
1084
1077
  "onUpdate:modelValue": () => y.toggleOption(y.opt)
1085
- }), me({ _: 2 }, [
1078
+ }), ce({ _: 2 }, [
1086
1079
  t.deletable ? {
1087
1080
  name: "right",
1088
- fn: U(() => [
1081
+ fn: T(() => [
1089
1082
  w("i", {
1090
1083
  class: "icon-kl icon-kl-trash app-select__delete",
1091
1084
  onClick: H((q) => e("delete", y.opt), ["stop"])
1092
- }, null, 8, dl)
1085
+ }, null, 8, rl)
1093
1086
  ]),
1094
1087
  key: "0"
1095
1088
  } : void 0
@@ -1099,29 +1092,26 @@ const Bl = fe(({ app: m }) => {
1099
1092
  }, 8, ["dark", "popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "error", "error-message", "autofocus", "disable", "loading", "onNewValue"])
1100
1093
  ], 2));
1101
1094
  }
1102
- }), Ll = /* @__PURE__ */ R(ul, [["__scopeId", "data-v-be6b0d2d"]]), Sl = le(
1103
- () => import("./AppButtonCopy-DkKIzW9L.js")
1104
- ), Pl = le(
1105
- () => Promise.resolve().then(() => Ze)
1106
- ), Rl = le(
1107
- () => import("./BottomSheet-DBb5RCTS.js")
1095
+ }), Ll = /* @__PURE__ */ R(dl, [["__scopeId", "data-v-be6b0d2d"]]), Sl = te(
1096
+ () => import("./AppButtonCopy-CLZCSKyr.js")
1097
+ ), Pl = te(
1098
+ () => import("./BottomSheet-DqBEWidj.js")
1108
1099
  );
1109
1100
  export {
1110
1101
  wl as A,
1111
- Rl as B,
1112
- K as C,
1113
- Pl as D,
1102
+ Pl as B,
1103
+ j as C,
1104
+ Ie as D,
1114
1105
  Il as M,
1115
1106
  ie as P,
1116
1107
  zl as S,
1117
- R as _,
1118
1108
  Ml as a,
1119
1109
  Sl as b,
1120
- Al as c,
1121
- J as d,
1122
- Cl as e,
1123
- Vl as f,
1124
- Ll as g,
1125
- se as h,
1110
+ Ll as c,
1111
+ Vl as d,
1112
+ Al as e,
1113
+ Cl as f,
1114
+ se as g,
1115
+ J as h,
1126
1116
  Bl as i
1127
1117
  };