@validol4ik/uikit 0.12.3 → 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 I, unref as C, normalizeClass as v, withCtx as U, createElementBlock as i, createCommentVNode as b, renderSlot as E, Fragment as L, createTextVNode as W, toDisplayString as S, 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(), I(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([
@@ -98,8 +99,8 @@ const Bl = fe(({ app: m }) => {
98
99
  ])
99
100
  }, null, 2)) : b("", !0),
100
101
  E(e.$slots, "default", {}, void 0, !0),
101
- e.label ? (s(), i(L, { key: 1 }, [
102
- W(S(e.label), 1)
102
+ e.label ? (s(), i(I, { key: 1 }, [
103
+ W(L(e.label), 1)
103
104
  ], 64)) : b("", !0),
104
105
  e.iconRight ? (s(), i("i", {
105
106
  key: 2,
@@ -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" }, Le = ["checked", "disabled"], Se = { class: "app-toggle__thumb" }, Ie = {
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, S(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, Le),
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", Se, [
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", Ie, S(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,69 +364,69 @@ 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
- ])) : (s(), i(L, { key: 1 }, [
279
- n.checked ? (s(), i("div", De, [...l[3] || (l[3] = [
372
+ ])) : (s(), i(I, { key: 1 }, [
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
- n.checkbox ? (s(), I(ve, {
376
+ n.checkbox ? (s(), S(ve, {
283
377
  key: 1,
284
378
  class: "menu-item__checkbox",
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, S(n.label), 1)
393
+ w("span", Ue, L(n.label), 1)
300
394
  ], 2),
301
- n.$slots.right ? E(n.$slots, "right", { key: 0 }, void 0, !0) : n.toggle ? (s(), I(se, {
395
+ n.$slots.right ? E(n.$slots, "right", { key: 0 }, void 0, !0) : n.toggle ? (s(), S(se, {
302
396
  key: 1,
303
397
  class: "menu-item__toggle",
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, S(a.label), 1)) : b("", !0),
414
- w("div", Qe, [
415
- (s(!0), i(L, 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,13 +517,13 @@ 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
- a.loading ? (s(), I(ye, {
526
+ a.loading ? (s(), S(ye, {
433
527
  key: 1,
434
528
  indeterminate: "",
435
529
  rounded: "",
@@ -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,9 +613,9 @@ 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
- (s(!0), i(L, null, F(k.options, (t, $) => (s(), i("button", {
618
+ (s(!0), i(I, null, F(k.options, (t, $) => (s(), i("button", {
525
619
  ref_for: !0,
526
620
  ref_key: "buttons",
527
621
  ref: n,
@@ -531,116 +625,15 @@ const Bl = fe(({ app: m }) => {
531
625
  disabled: k.disabled
532
626
  }, [
533
627
  E(k.$slots, "option", { option: t }, () => [
534
- W(S(t.label), 1)
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(), I(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, S(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,8 +709,8 @@ 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),
720
- (s(!0), i(L, null, F(c.value, (u, _) => (s(), i(L, null, [
712
+ ])], 8, Je)) : b("", !0),
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-${_}`,
723
716
  class: "app-pagination__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
- }, S(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),
755
- d.perPage ? (s(), i(L, { key: 4 }, [
747
+ ])], 8, ll)) : b("", !0),
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(L, null, F(C(oe), (_) => (s(), I(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: {},
@@ -809,17 +802,19 @@ const Bl = fe(({ app: m }) => {
809
802
  target: {},
810
803
  disabled: { type: Boolean },
811
804
  toggle: { type: Boolean },
805
+ toggleIcon: {},
806
+ toggleIconActive: {},
812
807
  isMobile: { type: Boolean }
813
808
  }, {
814
809
  modelValue: { type: Boolean },
815
810
  modelModifiers: {}
816
811
  }),
817
- emits: /* @__PURE__ */ Y(["click"], ["update:modelValue"]),
818
- setup(m, { emit: r }) {
819
- 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 () => {
820
815
  o.toggle && (p.value = !p.value), e("click");
821
816
  };
822
- return (l, f) => (s(), I(C($e), {
817
+ return (l, m) => (s(), S(C(he), {
823
818
  class: v(["menu-item", {
824
819
  "menu-item_disabled": l.disabled,
825
820
  "menu-item_mobile": l.isMobile,
@@ -833,35 +828,37 @@ const Bl = fe(({ app: m }) => {
833
828
  clickable: "",
834
829
  onClick: n
835
830
  }, {
836
- default: U(() => [
837
- l.icon ? (s(), I(C(J), {
831
+ default: T(() => [
832
+ l.icon ? (s(), S(C(J), {
838
833
  key: 0,
839
834
  name: l.icon.name,
840
835
  class: v(["menu-item__icon", `bg-${l.icon.color}`])
841
836
  }, null, 8, ["name", "class"])) : b("", !0),
842
- w("div", tl, [
837
+ w("div", nl, [
843
838
  w("span", {
844
839
  class: v(["app-menu-item__label", l.color ? `text-${l.color}` : ""])
845
840
  }, [
846
- W(S(l.label) + " ", 1),
841
+ W(L(l.label) + " ", 1),
847
842
  E(l.$slots, "default", {}, void 0, !0)
848
843
  ], 2),
849
- l.$slots.value ? (s(), i("span", sl, [
844
+ l.$slots.value ? (s(), i("span", tl, [
850
845
  E(l.$slots, "value", {}, void 0, !0)
851
846
  ])) : b("", !0),
852
- l.toggle ? (s(), I(C(se), {
847
+ l.toggle ? (s(), S(C(se), {
853
848
  key: 1,
854
849
  modelValue: p.value,
855
- "onUpdate:modelValue": f[0] || (f[0] = (c) => p.value = c),
850
+ "onUpdate:modelValue": m[0] || (m[0] = (c) => p.value = c),
851
+ icon: l.toggleIcon,
852
+ "icon-active": l.toggleIconActive,
856
853
  dark: l.dark
857
- }, null, 8, ["modelValue", "dark"])) : b("", !0),
858
- l.iconRight ? (s(), I(C(J), {
854
+ }, null, 8, ["modelValue", "icon", "icon-active", "dark"])) : b("", !0),
855
+ l.iconRight ? (s(), S(C(J), {
859
856
  key: 2,
860
857
  class: "menu-item__icon-right",
861
858
  name: l.iconRight.name,
862
859
  color: l.iconRight.color
863
860
  }, null, 8, ["name", "color"])) : b("", !0),
864
- l.arrow ? (s(), I(C(J), {
861
+ l.arrow ? (s(), S(C(J), {
865
862
  key: 3,
866
863
  class: "menu-item__icon-right menu-item__arrow",
867
864
  name: "arrow-right"
@@ -871,7 +868,7 @@ const Bl = fe(({ app: m }) => {
871
868
  _: 3
872
869
  }, 8, ["class", "dark", "to", "href", "target", "disable"]));
873
870
  }
874
- }), Ll = /* @__PURE__ */ R(il, [["__scopeId", "data-v-0e2ae101"]]), 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({
875
872
  __name: "AppSelect",
876
873
  props: {
877
874
  modelValue: {},
@@ -904,8 +901,8 @@ const Bl = fe(({ app: m }) => {
904
901
  "popupHide",
905
902
  "delete"
906
903
  ],
907
- setup(m, { emit: r }) {
908
- 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({
909
906
  get() {
910
907
  if (o.modelValue) {
911
908
  if (o.multiple && Array.isArray(o.modelValue))
@@ -935,13 +932,13 @@ const Bl = fe(({ app: m }) => {
935
932
  return o.placeholder;
936
933
  } else return ((t = g.value) == null ? void 0 : t.label) || o.placeholder || "";
937
934
  return "";
938
- }), 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(
939
936
  (t) => t.label.toLowerCase().includes(n.value.toLowerCase())
940
937
  ) : o.options), a = M(() => {
941
938
  if (o.rules)
942
- return o.required ? [...o.rules, ae] : o.rules;
939
+ return o.required ? [...o.rules, oe] : o.rules;
943
940
  if (o.required)
944
- return [ae];
941
+ return [oe];
945
942
  }), u = () => {
946
943
  p.value = !0, e("popupShow");
947
944
  }, _ = () => {
@@ -950,11 +947,11 @@ const Bl = fe(({ app: m }) => {
950
947
  g.value = void 0;
951
948
  }, B = (t, $) => {
952
949
  $(() => {
953
- n.value = t, f.value = "";
950
+ n.value = t, m.value = "";
954
951
  });
955
952
  }, k = async (t) => {
956
953
  var y;
957
- const { testPattern: $ } = we;
954
+ const { testPattern: $ } = Be;
958
955
  for (const q of o.createRules ?? []) {
959
956
  const O = typeof q == "function" ? await q(t, $) : (y = $[q]) == null ? void 0 : y.call($, t);
960
957
  if (typeof O == "string") return O;
@@ -971,7 +968,7 @@ const Bl = fe(({ app: m }) => {
971
968
  if (q) return $(q, "add-unique");
972
969
  l.value = !0;
973
970
  try {
974
- if (f.value = await k(y), f.value || !o.onCreate) return;
971
+ if (m.value = await k(y), m.value || !o.onCreate) return;
975
972
  const O = await o.onCreate(y);
976
973
  $(O || void 0, "add-unique");
977
974
  } catch {
@@ -992,8 +989,8 @@ const Bl = fe(({ app: m }) => {
992
989
  t.label ? (s(), i("label", {
993
990
  key: 0,
994
991
  class: v(["app-select__label", { "app-select__label_bold": t.required }])
995
- }, S(t.required ? `${t.label} *` : t.label), 3)) : b("", !0),
996
- G(C(Be), {
992
+ }, L(t.required ? `${t.label} *` : t.label), 3)) : b("", !0),
993
+ G(C(_e), {
997
994
  standout: "",
998
995
  "hide-bottom-space": "",
999
996
  "hide-dropdown-icon": "",
@@ -1011,8 +1008,8 @@ const Bl = fe(({ app: m }) => {
1011
1008
  "use-input": t.creatable || t.filtering && (Array.isArray(g.value) || !g.value),
1012
1009
  rules: a.value,
1013
1010
  "lazy-rules": t.lazyRules,
1014
- error: !!f.value,
1015
- "error-message": f.value,
1011
+ error: !!m.value,
1012
+ "error-message": m.value,
1016
1013
  autofocus: t.autofocus,
1017
1014
  disable: t.disabled,
1018
1015
  loading: t.loading || l.value,
@@ -1022,23 +1019,23 @@ const Bl = fe(({ app: m }) => {
1022
1019
  onPopupShow: u,
1023
1020
  onPopupHide: _
1024
1021
  }, {
1025
- append: U(() => [
1026
- T.value ? (s(), i("i", {
1022
+ append: T(() => [
1023
+ U.value ? (s(), i("i", {
1027
1024
  key: 0,
1028
1025
  class: "icon-kl icon-kl-circle-close app-select__clear",
1029
1026
  onClick: H(h, ["stop", "prevent"])
1030
1027
  })) : b("", !0),
1031
1028
  $[1] || ($[1] = w("i", { class: "icon-kl icon-kl-arrow-down app-select__drop-icon" }, null, -1))
1032
1029
  ]),
1033
- selected: U(() => {
1030
+ selected: T(() => {
1034
1031
  var y, q;
1035
1032
  return [
1036
- t.chips && z.value.length ? (s(!0), i(L, { key: 0 }, F(z.value, (O) => (s(), I(C(_e), {
1033
+ t.chips && z.value.length ? (s(!0), i(I, { key: 0 }, F(z.value, (O) => (s(), S(C($e), {
1037
1034
  key: O.value,
1038
1035
  dense: "",
1039
1036
  class: "app-select__chip",
1040
1037
  label: O.label
1041
- }, null, 8, ["label"]))), 128)) : Array.isArray(g.value) ? (s(), i(L, { key: 1 }, [
1038
+ }, null, 8, ["label"]))), 128)) : Array.isArray(g.value) ? (s(), i(I, { key: 1 }, [
1042
1039
  !c.value || g.value.length ? (s(), i("span", {
1043
1040
  key: 0,
1044
1041
  class: v([
@@ -1048,26 +1045,26 @@ const Bl = fe(({ app: m }) => {
1048
1045
  }
1049
1046
  ])
1050
1047
  }, [
1051
- (q = g.value) != null && q.length ? (s(), i(L, { key: 0 }, [
1048
+ (q = g.value) != null && q.length ? (s(), i(I, { key: 0 }, [
1052
1049
  $[2] || ($[2] = W(" Вибрано ", -1)),
1053
- w("span", rl, S(g.value.length), 1)
1054
- ], 64)) : (s(), i(L, { key: 1 }, [
1055
- W(S(o.placeholder), 1)
1050
+ w("span", il, L(g.value.length), 1)
1051
+ ], 64)) : (s(), i(I, { key: 1 }, [
1052
+ W(L(o.placeholder), 1)
1056
1053
  ], 64))
1057
1054
  ], 2)) : b("", !0)
1058
- ], 64)) : (s(), i(L, { key: 2 }, [
1055
+ ], 64)) : (s(), i(I, { key: 2 }, [
1059
1056
  !c.value || g.value ? (s(), i("span", {
1060
1057
  key: 0,
1061
1058
  class: v([
1062
1059
  "app-select__selected",
1063
1060
  { "app-select__placeholder": !g.value && t.placeholder }
1064
1061
  ])
1065
- }, S(D.value), 3)) : b("", !0)
1062
+ }, L(D.value), 3)) : b("", !0)
1066
1063
  ], 64))
1067
1064
  ];
1068
1065
  }),
1069
- option: U((y) => [
1070
- G(ie, ce({
1066
+ option: T((y) => [
1067
+ G(ie, pe({
1071
1068
  "no-arrow": "",
1072
1069
  label: y.opt.label,
1073
1070
  checked: y.opt.done,
@@ -1078,14 +1075,14 @@ const Bl = fe(({ app: m }) => {
1078
1075
  "model-value": y.selected
1079
1076
  }, o.multiple ? { ...y.itemProps, onClick: void 0 } : y.itemProps, {
1080
1077
  "onUpdate:modelValue": () => y.toggleOption(y.opt)
1081
- }), me({ _: 2 }, [
1078
+ }), ce({ _: 2 }, [
1082
1079
  t.deletable ? {
1083
1080
  name: "right",
1084
- fn: U(() => [
1081
+ fn: T(() => [
1085
1082
  w("i", {
1086
1083
  class: "icon-kl icon-kl-trash app-select__delete",
1087
1084
  onClick: H((q) => e("delete", y.opt), ["stop"])
1088
- }, null, 8, dl)
1085
+ }, null, 8, rl)
1089
1086
  ]),
1090
1087
  key: "0"
1091
1088
  } : void 0
@@ -1095,29 +1092,26 @@ const Bl = fe(({ app: m }) => {
1095
1092
  }, 8, ["dark", "popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "error", "error-message", "autofocus", "disable", "loading", "onNewValue"])
1096
1093
  ], 2));
1097
1094
  }
1098
- }), Sl = /* @__PURE__ */ R(ul, [["__scopeId", "data-v-be6b0d2d"]]), Il = le(
1099
- () => import("./AppButtonCopy-CwvjtaLw.js")
1100
- ), Pl = le(
1101
- () => Promise.resolve().then(() => Ze)
1102
- ), Rl = le(
1103
- () => import("./BottomSheet-BfBy5K5Y.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")
1104
1099
  );
1105
1100
  export {
1106
1101
  wl as A,
1107
- Rl as B,
1108
- K as C,
1109
- Pl as D,
1110
- Ll as M,
1102
+ Pl as B,
1103
+ j as C,
1104
+ Ie as D,
1105
+ Il as M,
1111
1106
  ie as P,
1112
1107
  zl as S,
1113
- R as _,
1114
1108
  Ml as a,
1115
- Il as b,
1116
- Al as c,
1117
- J as d,
1118
- Cl as e,
1119
- Vl as f,
1120
- Sl as g,
1121
- se as h,
1109
+ Sl as b,
1110
+ Ll as c,
1111
+ Vl as d,
1112
+ Al as e,
1113
+ Cl as f,
1114
+ se as g,
1115
+ J as h,
1122
1116
  Bl as i
1123
1117
  };