@poni/adjutant-ui 0.0.111 → 0.0.113

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,4 +1,4 @@
1
- import { defineComponent as k, openBlock as i, createElementBlock as n, normalizeClass as m, createCommentVNode as H, createElementVNode as o, toDisplayString as $, withDirectives as O, vShow as N, normalizeStyle as F, renderSlot as ee, useTemplateRef as S, ref as _, createVNode as M, Transition as x, withCtx as R, Fragment as D, renderList as U, withModifiers as A, useCssVars as q, computed as te, onMounted as de, watchEffect as ue, createBlock as re } from "vue";
1
+ import { defineComponent as k, openBlock as i, createElementBlock as n, normalizeClass as v, createCommentVNode as H, createElementVNode as o, toDisplayString as $, withDirectives as O, vShow as N, normalizeStyle as F, renderSlot as ee, useTemplateRef as S, ref as _, createVNode as M, Transition as x, withCtx as R, Fragment as D, renderList as U, withModifiers as A, useCssVars as q, computed as te, onMounted as de, watchEffect as ue, createBlock as re } from "vue";
2
2
  import { onClickOutside as ie, useWindowSize as se, useMouseInElement as Q, useWindowScroll as ce } from "@vueuse/core";
3
3
  const fe = /* @__PURE__ */ k({
4
4
  __name: "AdjButton",
@@ -15,7 +15,7 @@ const fe = /* @__PURE__ */ k({
15
15
  emits: ["click"],
16
16
  setup(r) {
17
17
  return (e, t) => (i(), n("button", {
18
- class: m(["adj-button", {
18
+ class: v(["adj-button", {
19
19
  [`adj-button_${e.size}`]: !0,
20
20
  [`adj-button_${e.design}`]: !0,
21
21
  "adj-button_disabled": e.disabled,
@@ -26,12 +26,12 @@ const fe = /* @__PURE__ */ k({
26
26
  }, [
27
27
  e.iconLeft ? (i(), n("i", {
28
28
  key: 0,
29
- class: m(e.iconLeft)
29
+ class: v(e.iconLeft)
30
30
  }, null, 2)) : H("", !0),
31
31
  o("div", null, $(e.title), 1),
32
32
  e.iconRight ? (i(), n("i", {
33
33
  key: 1,
34
- class: m(e.iconRight)
34
+ class: v(e.iconRight)
35
35
  }, null, 2)) : H("", !0)
36
36
  ], 2));
37
37
  }
@@ -40,10 +40,10 @@ const fe = /* @__PURE__ */ k({
40
40
  for (const [a, u] of e)
41
41
  t[a] = u;
42
42
  return t;
43
- }, vt = /* @__PURE__ */ g(fe, [["__scopeId", "data-v-931ef9bf"]]), pe = {
43
+ }, mt = /* @__PURE__ */ g(fe, [["__scopeId", "data-v-d4a39f57"]]), pe = {
44
44
  key: 0,
45
45
  class: "adj-text-13"
46
- }, ve = { class: "adj-checkbox__handle" }, me = {
46
+ }, me = { class: "adj-checkbox__handle" }, ve = {
47
47
  width: "16",
48
48
  height: "16",
49
49
  viewBox: "0 0 16 16",
@@ -68,12 +68,12 @@ const fe = /* @__PURE__ */ k({
68
68
  t.modelValue.checked === t.items[0].checked ? a("update:modelValue", t.items[1]) : a("update:modelValue", t.items[0]);
69
69
  }
70
70
  return (l, c) => (i(), n("div", {
71
- class: m(["adj-checkbox", { disabled: l.disabled }]),
71
+ class: v(["adj-checkbox", { disabled: l.disabled }]),
72
72
  onClick: c[0] || (c[0] = (f) => u())
73
73
  }, [
74
74
  l.title && l.titlePosition === "left" ? (i(), n("span", pe, $(l.title), 1)) : H("", !0),
75
- o("div", ve, [
76
- O((i(), n("svg", me, c[1] || (c[1] = [
75
+ o("div", me, [
76
+ O((i(), n("svg", ve, c[1] || (c[1] = [
77
77
  o("rect", {
78
78
  width: "16",
79
79
  height: "16",
@@ -87,7 +87,7 @@ const fe = /* @__PURE__ */ k({
87
87
  l.title && l.titlePosition === "right" ? (i(), n("span", he, $(l.title), 1)) : H("", !0)
88
88
  ], 2));
89
89
  }
90
- }), mt = /* @__PURE__ */ g(_e, [["__scopeId", "data-v-29974d93"]]), je = /* @__PURE__ */ k({
90
+ }), vt = /* @__PURE__ */ g(_e, [["__scopeId", "data-v-97fdba75"]]), je = /* @__PURE__ */ k({
91
91
  __name: "AdjScroll",
92
92
  props: {
93
93
  maxHeight: { default: "unset" },
@@ -96,22 +96,22 @@ const fe = /* @__PURE__ */ k({
96
96
  setup(r) {
97
97
  const e = r;
98
98
  return (t, a) => (i(), n("div", {
99
- class: m(["adj-scroll", { "adj-scroll_white": t.white }]),
99
+ class: v(["adj-scroll", { "adj-scroll_white": t.white }]),
100
100
  style: F({ maxHeight: `${e.maxHeight}` })
101
101
  }, [
102
102
  ee(t.$slots, "default", {}, void 0, !0)
103
103
  ], 6));
104
104
  }
105
- }), ne = /* @__PURE__ */ g(je, [["__scopeId", "data-v-13a0a1e5"]]), ge = {
105
+ }), ne = /* @__PURE__ */ g(je, [["__scopeId", "data-v-47993da5"]]), ge = {
106
106
  key: 0,
107
107
  class: "icon-close"
108
108
  }, ke = {
109
109
  key: 1,
110
110
  class: "icon-arrow-down"
111
- }, we = {
111
+ }, be = {
112
112
  key: 0,
113
113
  class: "adj-filter-select__items adj-effect-overlay-big"
114
- }, be = ["onClick"], $e = /* @__PURE__ */ k({
114
+ }, we = ["onClick"], $e = /* @__PURE__ */ k({
115
115
  __name: "AdjFilterSelect",
116
116
  props: {
117
117
  title: {},
@@ -130,29 +130,29 @@ const fe = /* @__PURE__ */ k({
130
130
  function f() {
131
131
  "id" in t.modelValue ? c({}) : l.value = !l.value;
132
132
  }
133
- return (d, w) => (i(), n("div", {
133
+ return (d, b) => (i(), n("div", {
134
134
  ref: "refElement",
135
- class: m(["adj-filter-select", [{ show: l.value, active: "id" in d.modelValue && d.modelValue.id }, d.position]])
135
+ class: v(["adj-filter-select", [{ show: l.value, active: "id" in d.modelValue && d.modelValue.id }, d.position]])
136
136
  }, [
137
137
  o("div", {
138
138
  class: "adj-filter-select__name adj-text-14",
139
- onClick: w[0] || (w[0] = (s) => f())
139
+ onClick: b[0] || (b[0] = (s) => f())
140
140
  }, [
141
141
  o("span", null, $("id" in d.modelValue && d.modelValue.id ? d.modelValue.name : d.title), 1),
142
142
  "id" in d.modelValue && d.modelValue.id ? (i(), n("i", ge)) : (i(), n("i", ke)),
143
143
  M(x, { name: "adj-fade" }, {
144
144
  default: R(() => [
145
- l.value ? (i(), n("div", we, [
145
+ l.value ? (i(), n("div", be, [
146
146
  M(ne, { maxHeight: "384px" }, {
147
147
  default: R(() => [
148
148
  o("div", null, [
149
149
  (i(!0), n(D, null, U(d.items, (s) => (i(), n("div", {
150
150
  key: s.id,
151
- class: m(["adj-filter-select__item adj-text-14", { "adj-filter-select__item_disabled": s.disabled }]),
151
+ class: v(["adj-filter-select__item adj-text-14", { "adj-filter-select__item_disabled": s.disabled }]),
152
152
  onClick: A((p) => c(s), ["stop"])
153
153
  }, [
154
154
  o("span", null, $(s.name), 1)
155
- ], 10, be))), 128))
155
+ ], 10, we))), 128))
156
156
  ])
157
157
  ]),
158
158
  _: 1
@@ -164,7 +164,7 @@ const fe = /* @__PURE__ */ k({
164
164
  ])
165
165
  ], 2));
166
166
  }
167
- }), ht = /* @__PURE__ */ g($e, [["__scopeId", "data-v-0940fa41"]]), Ce = ["innerHTML"], ye = /* @__PURE__ */ k({
167
+ }), ht = /* @__PURE__ */ g($e, [["__scopeId", "data-v-5481dc68"]]), Ce = ["innerHTML"], ye = /* @__PURE__ */ k({
168
168
  __name: "AdjHintDesktop",
169
169
  props: {
170
170
  html: { default: "" },
@@ -175,9 +175,9 @@ const fe = /* @__PURE__ */ k({
175
175
  },
176
176
  setup(r) {
177
177
  return q((e) => ({
178
- e34e2b26: e.width
178
+ "19fa0a1c": e.width
179
179
  })), (e, t) => (i(), n("div", {
180
- class: m([
180
+ class: v([
181
181
  "adj-hint-desktop",
182
182
  { "adj-hint-desktop_dark": e.dark },
183
183
  `adj-hint-desktop_${e.verticalPosition}`,
@@ -207,7 +207,7 @@ const fe = /* @__PURE__ */ k({
207
207
  ], -1))
208
208
  ], 2));
209
209
  }
210
- }), Pe = /* @__PURE__ */ g(ye, [["__scopeId", "data-v-67f0030e"]]), Ve = { class: "adj-modal" }, Ie = { class: "adj-modal_wrapper" }, Ae = /* @__PURE__ */ k({
210
+ }), Pe = /* @__PURE__ */ g(ye, [["__scopeId", "data-v-56d69439"]]), Ve = { class: "adj-modal" }, Ie = { class: "adj-modal_wrapper" }, Ae = /* @__PURE__ */ k({
211
211
  __name: "AdjModal",
212
212
  props: {
213
213
  show: { type: Boolean },
@@ -217,7 +217,7 @@ const fe = /* @__PURE__ */ k({
217
217
  emits: ["update:show"],
218
218
  setup(r, { emit: e }) {
219
219
  q((u) => ({
220
- "031a1fe5": u.width
220
+ "5f2379a6": u.width
221
221
  }));
222
222
  const t = e;
223
223
  function a() {
@@ -260,7 +260,7 @@ const fe = /* @__PURE__ */ k({
260
260
  })
261
261
  ]));
262
262
  }
263
- }), He = /* @__PURE__ */ g(Ae, [["__scopeId", "data-v-b509202c"]]), ze = { class: "adj-hint" }, Be = ["innerHTML"], J = 14, K = 14, Me = /* @__PURE__ */ k({
263
+ }), He = /* @__PURE__ */ g(Ae, [["__scopeId", "data-v-b1b32775"]]), ze = { class: "adj-hint" }, Be = ["innerHTML"], J = 14, K = 14, Me = /* @__PURE__ */ k({
264
264
  __name: "AdjHint",
265
265
  props: {
266
266
  html: { default: "" },
@@ -270,7 +270,7 @@ const fe = /* @__PURE__ */ k({
270
270
  modalMode: { type: Boolean, default: !1 }
271
271
  },
272
272
  setup(r) {
273
- const e = r, t = _(!1), a = _(!1), { width: u, height: l } = se(), c = S("refSlot"), f = S("refHint"), d = _(0), w = _(0), { elementWidth: s, elementHeight: p } = Q(c), v = _(0), h = _(80), { elementWidth: b, elementHeight: y } = Q(f), P = _(e.horizontalPosition), C = _(e.verticalPosition);
273
+ const e = r, t = _(!1), a = _(!1), { width: u, height: l } = se(), c = S("refSlot"), f = S("refHint"), d = _(0), b = _(0), { elementWidth: s, elementHeight: p } = Q(c), m = _(0), h = _(80), { elementWidth: w, elementHeight: y } = Q(f), P = _(e.horizontalPosition), C = _(e.verticalPosition);
274
274
  let V = 10 + K / 2;
275
275
  function T() {
276
276
  (!e.modalMode || u.value >= 1200) && (L(), Z(), X(), t.value = !0);
@@ -284,14 +284,14 @@ const fe = /* @__PURE__ */ k({
284
284
  function L() {
285
285
  if (c.value !== null) {
286
286
  const I = c.value.getBoundingClientRect();
287
- d.value = I.left, w.value = I.top;
287
+ d.value = I.left, b.value = I.top;
288
288
  }
289
289
  }
290
290
  function Z() {
291
- e.dark && (V = 15 + K / 2), P.value = e.horizontalPosition, C.value = e.verticalPosition, e.horizontalPosition === "left" && d.value + s.value / 2 + V - b.value < 0 ? P.value = "right" : e.horizontalPosition === "right" && d.value + s.value / 2 - V + b.value > u.value && (P.value = "left"), e.verticalPosition === "top" && w.value - J - y.value < 0 ? C.value = "bottom" : e.verticalPosition === "bottom" && w.value + p.value + J + y.value > l.value && (C.value = "top");
291
+ e.dark && (V = 15 + K / 2), P.value = e.horizontalPosition, C.value = e.verticalPosition, e.horizontalPosition === "left" && d.value + s.value / 2 + V - w.value < 0 ? P.value = "right" : e.horizontalPosition === "right" && d.value + s.value / 2 - V + w.value > u.value && (P.value = "left"), e.verticalPosition === "top" && b.value - J - y.value < 0 ? C.value = "bottom" : e.verticalPosition === "bottom" && b.value + p.value + J + y.value > l.value && (C.value = "top");
292
292
  }
293
293
  function X() {
294
- e.dark && (V = 15 + K / 2), P.value === "left" ? v.value = d.value + s.value / 2 + V - b.value : P.value === "center" ? v.value = d.value + s.value / 2 - K / 2 - b.value / 2 : P.value === "right" && (v.value = d.value + s.value / 2 - V), C.value == "top" ? h.value = w.value - J - y.value : C.value == "bottom" && (h.value = w.value + p.value + J);
294
+ e.dark && (V = 15 + K / 2), P.value === "left" ? m.value = d.value + s.value / 2 + V - w.value : P.value === "center" ? m.value = d.value + s.value / 2 - K / 2 - w.value / 2 : P.value === "right" && (m.value = d.value + s.value / 2 - V), C.value == "top" ? h.value = b.value - J - y.value : C.value == "bottom" && (h.value = b.value + p.value + J);
295
295
  }
296
296
  return (I, G) => (i(), n("div", ze, [
297
297
  o("div", {
@@ -306,7 +306,7 @@ const fe = /* @__PURE__ */ k({
306
306
  o("div", {
307
307
  class: "adj-hint__hint",
308
308
  style: F({
309
- left: v.value + "px",
309
+ left: m.value + "px",
310
310
  top: h.value + "px",
311
311
  visibility: t.value ? "visible" : "hidden"
312
312
  }),
@@ -337,7 +337,7 @@ const fe = /* @__PURE__ */ k({
337
337
  }, 8, ["show"])
338
338
  ]));
339
339
  }
340
- }), Le = /* @__PURE__ */ g(Me, [["__scopeId", "data-v-5691f67f"]]), Se = /* @__PURE__ */ k({
340
+ }), Le = /* @__PURE__ */ g(Me, [["__scopeId", "data-v-2537eb61"]]), Se = /* @__PURE__ */ k({
341
341
  __name: "AdjIcon",
342
342
  props: {
343
343
  iconName: {},
@@ -350,11 +350,11 @@ const fe = /* @__PURE__ */ k({
350
350
  emits: ["click"],
351
351
  setup(r) {
352
352
  q((a) => ({
353
- "6f1cc414": t.value
353
+ a6dfad46: t.value
354
354
  }));
355
355
  const e = r, t = te(() => e.size + "px");
356
356
  return (a, u) => (i(), n("div", {
357
- class: m(["adj-icon", {
357
+ class: v(["adj-icon", {
358
358
  [`adj-icon_${a.design}`]: !0,
359
359
  "adj-icon_disabled": a.disabled
360
360
  }])
@@ -366,7 +366,7 @@ const fe = /* @__PURE__ */ k({
366
366
  }, {
367
367
  default: R(() => [
368
368
  o("i", {
369
- class: m([a.iconName]),
369
+ class: v([a.iconName]),
370
370
  onClick: u[0] || (u[0] = (l) => a.$emit("click"))
371
371
  }, null, 2)
372
372
  ]),
@@ -374,7 +374,7 @@ const fe = /* @__PURE__ */ k({
374
374
  }, 8, ["html", "horizontalPosition"])
375
375
  ], 2));
376
376
  }
377
- }), _t = /* @__PURE__ */ g(Se, [["__scopeId", "data-v-4365d805"]]), Re = {
377
+ }), _t = /* @__PURE__ */ g(Se, [["__scopeId", "data-v-27ccd948"]]), Re = {
378
378
  key: 0,
379
379
  class: "adj-icon-button__qty adj-text-12"
380
380
  }, Te = /* @__PURE__ */ k({
@@ -389,7 +389,7 @@ const fe = /* @__PURE__ */ k({
389
389
  emits: ["click"],
390
390
  setup(r) {
391
391
  return (e, t) => (i(), n("div", {
392
- class: m(["adj-icon-button", {
392
+ class: v(["adj-icon-button", {
393
393
  [`adj-icon-button_${e.size}`]: !0,
394
394
  [`adj-icon-button_${e.design}`]: !0,
395
395
  "adj-icon-button_disabled": e.disabled
@@ -397,12 +397,12 @@ const fe = /* @__PURE__ */ k({
397
397
  onClick: t[0] || (t[0] = (a) => e.$emit("click"))
398
398
  }, [
399
399
  o("i", {
400
- class: m(["adj-icon-button__icon", e.iconName])
400
+ class: v(["adj-icon-button__icon", e.iconName])
401
401
  }, null, 2),
402
402
  e.qty > 0 ? (i(), n("div", Re, $(e.qty), 1)) : H("", !0)
403
403
  ], 2));
404
404
  }
405
- }), jt = /* @__PURE__ */ g(Te, [["__scopeId", "data-v-1fe96e59"]]), We = ["onClick"], Ee = { class: "adj-radio__item_name adj-text-13" }, Fe = /* @__PURE__ */ k({
405
+ }), jt = /* @__PURE__ */ g(Te, [["__scopeId", "data-v-b636fa8d"]]), We = ["onClick"], Ee = { class: "adj-radio__item_name adj-text-13" }, Fe = /* @__PURE__ */ k({
406
406
  __name: "AdjRadio",
407
407
  props: {
408
408
  namePosition: { default: "right" },
@@ -418,27 +418,27 @@ const fe = /* @__PURE__ */ k({
418
418
  l.id !== ((c = t.modelValue) == null ? void 0 : c.id) && a("update:modelValue", l);
419
419
  }
420
420
  return (l, c) => (i(), n("div", {
421
- class: m(["adj-radio", { "adj-radio_disabled": l.disabled }])
421
+ class: v(["adj-radio", { "adj-radio_disabled": l.disabled }])
422
422
  }, [
423
423
  (i(!0), n(D, null, U(l.items, (f) => {
424
424
  var d;
425
425
  return i(), n("div", {
426
426
  key: f.id,
427
- class: m(["adj-radio__item", {
427
+ class: v(["adj-radio__item", {
428
428
  active: ((d = l.modelValue) == null ? void 0 : d.id) === f.id,
429
429
  [`adj-radio__item_${l.namePosition}`]: !0
430
430
  }]),
431
- onClick: (w) => u(f)
431
+ onClick: (b) => u(f)
432
432
  }, [
433
433
  o("div", {
434
- class: m(["adj-radio__item_button", { "adj-effect-overlay-small": !l.disabled }])
434
+ class: v(["adj-radio__item_button", { "adj-effect-overlay-small": !l.disabled }])
435
435
  }, null, 2),
436
436
  o("span", Ee, $(f.name), 1)
437
437
  ], 10, We);
438
438
  }), 128))
439
439
  ], 2));
440
440
  }
441
- }), gt = /* @__PURE__ */ g(Fe, [["__scopeId", "data-v-cd7a7c6c"]]), Oe = {
441
+ }), gt = /* @__PURE__ */ g(Fe, [["__scopeId", "data-v-354e1b34"]]), Oe = {
442
442
  key: 0,
443
443
  class: "adj-input__image"
444
444
  }, Ne = ["src"], De = { class: "adj-input__text" }, Ue = ["onClick"], qe = {
@@ -463,11 +463,11 @@ const fe = /* @__PURE__ */ k({
463
463
  });
464
464
  const d = S("refElement");
465
465
  ie(d, () => s.value = !1);
466
- function w(j) {
466
+ function b(j) {
467
467
  var z;
468
468
  s.value = !1, j.id != ((z = t.modelValue) == null ? void 0 : z.id) && a("update:modelValue", j);
469
469
  }
470
- const s = _(!1), p = S("refInput"), v = S("refItems"), h = _(0), b = _(0), { elementWidth: y, elementHeight: P } = Q(p), C = _(0), V = _(80), { elementWidth: T, elementHeight: W } = Q(v), B = _(t.horizontalPosition), L = _(t.verticalPosition);
470
+ const s = _(!1), p = S("refInput"), m = S("refItems"), h = _(0), w = _(0), { elementWidth: y, elementHeight: P } = Q(p), C = _(0), V = _(80), { elementWidth: T, elementHeight: W } = Q(m), B = _(t.horizontalPosition), L = _(t.verticalPosition);
471
471
  function Z() {
472
472
  s.value && (I(), G(), Y());
473
473
  }
@@ -477,20 +477,20 @@ const fe = /* @__PURE__ */ k({
477
477
  function I() {
478
478
  if (p.value !== null) {
479
479
  const j = p.value.getBoundingClientRect();
480
- h.value = j.left, b.value = j.top;
480
+ h.value = j.left, w.value = j.top;
481
481
  }
482
482
  }
483
483
  function G() {
484
- B.value = t.horizontalPosition, L.value = t.verticalPosition, t.horizontalPosition === "left" && h.value + y.value < T.value ? B.value = "right" : t.horizontalPosition === "right" && T.value > c.value - h.value && (B.value = "left"), t.verticalPosition === "top" && b.value - W.value < 0 ? L.value = "bottom" : t.verticalPosition === "bottom" && b.value + P.value + W.value > f.value && (L.value = "top");
484
+ B.value = t.horizontalPosition, L.value = t.verticalPosition, t.horizontalPosition === "left" && h.value + y.value < T.value ? B.value = "right" : t.horizontalPosition === "right" && T.value > c.value - h.value && (B.value = "left"), t.verticalPosition === "top" && w.value - W.value < 0 ? L.value = "bottom" : t.verticalPosition === "bottom" && w.value + P.value + W.value > f.value && (L.value = "top");
485
485
  }
486
486
  function Y() {
487
- B.value === "left" ? C.value = h.value + y.value - T.value : B.value === "center" ? C.value = h.value + y.value / 2 - T.value / 2 : B.value === "right" && (C.value = h.value), L.value == "top" ? V.value = b.value - W.value : L.value == "bottom" && (V.value = b.value + P.value);
487
+ B.value === "left" ? C.value = h.value + y.value - T.value : B.value === "center" ? C.value = h.value + y.value / 2 - T.value / 2 : B.value === "right" && (C.value = h.value), L.value == "top" ? V.value = w.value - W.value : L.value == "bottom" && (V.value = w.value + P.value);
488
488
  }
489
489
  return (j, z) => {
490
490
  var le, ae, oe;
491
491
  return i(), n("div", {
492
492
  ref: "refElement",
493
- class: m([
493
+ class: v([
494
494
  "adj-select-modern",
495
495
  "adj-text-14",
496
496
  j.horizontalPosition,
@@ -532,7 +532,7 @@ const fe = /* @__PURE__ */ k({
532
532
  (i(!0), n(D, null, U(j.items, (E) => (i(), n("div", {
533
533
  key: E.id,
534
534
  class: "adj-select-modern__item adj-text-14",
535
- onClick: A((ct) => w(E), ["stop"])
535
+ onClick: A((ct) => b(E), ["stop"])
536
536
  }, [
537
537
  j.design === "image" ? (i(), n("div", qe, [
538
538
  o("img", {
@@ -555,7 +555,7 @@ const fe = /* @__PURE__ */ k({
555
555
  ], 2);
556
556
  };
557
557
  }
558
- }), kt = /* @__PURE__ */ g(Je, [["__scopeId", "data-v-f7e6a93a"]]), Ke = { class: "adj-skeleton-item" }, Qe = /* @__PURE__ */ k({
558
+ }), kt = /* @__PURE__ */ g(Je, [["__scopeId", "data-v-da4b80ef"]]), Ke = { class: "adj-skeleton-item" }, Qe = /* @__PURE__ */ k({
559
559
  __name: "AdjSkeletonItem",
560
560
  props: {
561
561
  width: { default: "100%" },
@@ -565,15 +565,15 @@ const fe = /* @__PURE__ */ k({
565
565
  },
566
566
  setup(r) {
567
567
  q((a) => ({
568
- "5e8b66ca": a.width,
569
- "3f9f2dc8": a.marginTop,
570
- "49b42e56": t.value,
571
- "2cc04cf2": a.height
568
+ "6c6a62eb": a.width,
569
+ "5e4cd76c": a.marginTop,
570
+ "3288b325": t.value,
571
+ "071300a2": a.height
572
572
  }));
573
573
  const e = r, t = te(() => e.height !== "unset" ? "unset" : e.aspectRatio);
574
574
  return (a, u) => (i(), n("div", Ke));
575
575
  }
576
- }), Xe = /* @__PURE__ */ g(Qe, [["__scopeId", "data-v-6f754902"]]), Ye = { class: "adj-skeleton" }, xe = /* @__PURE__ */ k({
576
+ }), Xe = /* @__PURE__ */ g(Qe, [["__scopeId", "data-v-a8496a75"]]), Ye = { class: "adj-skeleton" }, xe = /* @__PURE__ */ k({
577
577
  __name: "AdjSkeleton",
578
578
  props: {
579
579
  loaders: { default: () => [] },
@@ -582,20 +582,21 @@ const fe = /* @__PURE__ */ k({
582
582
  },
583
583
  setup(r) {
584
584
  q((a) => ({
585
- "119e5028": t.value,
586
- "7104780c": a.width
585
+ da5aeae0: t.value,
586
+ "0deb2ec4": a.width
587
587
  }));
588
588
  const e = r, t = te(() => e.centered ? "center" : "unset");
589
589
  return (a, u) => (i(), n("div", Ye, [
590
- (i(!0), n(D, null, U(a.loaders, (l) => (i(), re(Xe, {
590
+ (i(!0), n(D, null, U(a.loaders, (l, c) => (i(), re(Xe, {
591
+ key: c,
591
592
  width: l.width,
592
593
  height: l.height,
593
594
  "aspect-ratio": l.aspectRatio,
594
595
  "margin-top": l.marginTop
595
- }, null, 8, ["width", "height", "aspect-ratio", "margin-top"]))), 256))
596
+ }, null, 8, ["width", "height", "aspect-ratio", "margin-top"]))), 128))
596
597
  ]));
597
598
  }
598
- }), wt = /* @__PURE__ */ g(xe, [["__scopeId", "data-v-f7e4b129"]]), et = {}, tt = {
599
+ }), bt = /* @__PURE__ */ g(xe, [["__scopeId", "data-v-14f324dd"]]), et = {}, tt = {
599
600
  viewBox: "0 0 34 34",
600
601
  fill: "none",
601
602
  xmlns: "http://www.w3.org/2000/svg"
@@ -610,7 +611,7 @@ function lt(r, e) {
610
611
  o("path", { d: "M22.7034 12.9285C22.6244 12.8488 22.5304 12.7856 22.4268 12.7424C22.3232 12.6993 22.2121 12.6771 22.0999 12.6771C21.9877 12.6771 21.8766 12.6993 21.773 12.7424C21.6694 12.7856 21.5754 12.8488 21.4964 12.9285L15.1639 19.2695L12.5034 16.6005C12.4213 16.5212 12.3245 16.4589 12.2184 16.4171C12.1122 16.3753 11.9989 16.3548 11.8849 16.3567C11.7708 16.3587 11.6583 16.3831 11.5536 16.4286C11.449 16.4741 11.3544 16.5397 11.2751 16.6217C11.1959 16.7038 11.1336 16.8006 11.0917 16.9068C11.0499 17.0129 11.0294 17.1262 11.0314 17.2403C11.0334 17.3543 11.0578 17.4669 11.1032 17.5715C11.1487 17.6761 11.2143 17.7707 11.2964 17.85L14.5604 21.114C14.6394 21.1937 14.7334 21.2569 14.837 21.3C14.9406 21.3432 15.0517 21.3654 15.1639 21.3654C15.2761 21.3654 15.3872 21.3432 15.4908 21.3C15.5944 21.2569 15.6884 21.1937 15.7674 21.114L22.7034 14.178C22.7897 14.0984 22.8585 14.0018 22.9056 13.8943C22.9527 13.7867 22.977 13.6706 22.977 13.5532C22.977 13.4359 22.9527 13.3197 22.9056 13.2122C22.8585 13.1047 22.7897 13.0081 22.7034 12.9285Z" }, null, -1)
611
612
  ]));
612
613
  }
613
- const bt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-1c2c938f"]]), at = { class: "adj-tabs" }, ot = { class: "adj-tabs-wrapper" }, it = ["onClick"], st = { key: 0 }, nt = /* @__PURE__ */ k({
614
+ const wt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-ef9285fe"]]), at = { class: "adj-tabs" }, ot = { class: "adj-tabs-wrapper" }, it = ["onClick"], st = { key: 0 }, nt = /* @__PURE__ */ k({
614
615
  __name: "AdjTabs",
615
616
  props: {
616
617
  items: { default: () => [] },
@@ -629,8 +630,8 @@ const bt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-1c2c938f
629
630
  var d;
630
631
  return i(), n("div", {
631
632
  key: f.name,
632
- class: m(["adj-tabs__item", { active: f.id == ((d = l.modelValue) == null ? void 0 : d.id), disabled: f.disabled }]),
633
- onClick: (w) => u(f)
633
+ class: v(["adj-tabs__item", { active: f.id == ((d = l.modelValue) == null ? void 0 : d.id), disabled: f.disabled }]),
634
+ onClick: (b) => u(f)
634
635
  }, [
635
636
  o("p", null, $(f.name), 1),
636
637
  f.number ? (i(), n("span", st, $(f.number), 1)) : H("", !0)
@@ -639,7 +640,7 @@ const bt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-1c2c938f
639
640
  ])
640
641
  ]));
641
642
  }
642
- }), $t = /* @__PURE__ */ g(nt, [["__scopeId", "data-v-8aa4d052"]]), dt = { class: "adj-upload-file__main" }, ut = { class: "adj-text-14" }, rt = /* @__PURE__ */ k({
643
+ }), $t = /* @__PURE__ */ g(nt, [["__scopeId", "data-v-8456a19d"]]), dt = { class: "adj-upload-file__main" }, ut = { class: "adj-text-14" }, rt = /* @__PURE__ */ k({
643
644
  __name: "AdjUploadFile",
644
645
  props: {
645
646
  text: {},
@@ -655,9 +656,9 @@ const bt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-1c2c938f
655
656
  l.value || (s = u.value) == null || s.click();
656
657
  }
657
658
  async function f(s) {
658
- return new Promise((p, v) => {
659
+ return new Promise((p, m) => {
659
660
  const h = new FileReader();
660
- h.readAsDataURL(s), h.onload = () => p(h.result), h.onerror = (b) => v(b);
661
+ h.readAsDataURL(s), h.onload = () => p(h.result), h.onerror = (w) => m(w);
661
662
  });
662
663
  }
663
664
  async function d(s) {
@@ -665,7 +666,7 @@ const bt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-1c2c938f
665
666
  return {
666
667
  url: ""
667
668
  };
668
- const v = await (await fetch("https://api.adjutant.ru/constructor-new/upload-image", {
669
+ const m = await (await fetch("https://api.adjutant.ru/constructor-new/upload-image", {
669
670
  method: "POST",
670
671
  headers: { "Content-Type": "application/json;charset=utf-8" },
671
672
  body: JSON.stringify({
@@ -677,28 +678,28 @@ const bt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-1c2c938f
677
678
  })
678
679
  })).json();
679
680
  return {
680
- url: `${v == null ? void 0 : v.result}`
681
+ url: `${m == null ? void 0 : m.result}`
681
682
  // urlFull: `https://api.adjutant.ru/tmp/upload/constructorzakaz/${responseJson?.result}`,
682
683
  };
683
684
  }
684
- async function w(s) {
685
+ async function b(s) {
685
686
  var y;
686
687
  if (!(s.files && ((y = s == null ? void 0 : s.files) == null ? void 0 : y.length) > 0))
687
688
  return;
688
689
  l.value = !0;
689
690
  const p = s == null ? void 0 : s.files[0];
690
- let v = p.type;
691
- v === "image/svg+xml" && (v = "image/svg");
692
- const h = await f(p), b = await d({
693
- type: v,
691
+ let m = p.type;
692
+ m === "image/svg+xml" && (m = "image/svg");
693
+ const h = await f(p), w = await d({
694
+ type: m,
694
695
  data: h,
695
696
  width: t.width,
696
697
  height: t.height
697
698
  });
698
- a("update:modelValue", { ...t.modelValue, ...b }), l.value = !1;
699
+ a("update:modelValue", { ...t.modelValue, ...w }), l.value = !1;
699
700
  }
700
701
  return (s, p) => (i(), n("div", {
701
- class: m(["adj-upload-file", { "adj-upload-file_loading": l.value }]),
702
+ class: v(["adj-upload-file", { "adj-upload-file_loading": l.value }]),
702
703
  onClick: c
703
704
  }, [
704
705
  o("div", dt, [
@@ -707,7 +708,7 @@ const bt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-1c2c938f
707
708
  ]),
708
709
  O(o("i", {
709
710
  class: "icon-close",
710
- onClick: p[0] || (p[0] = A((v) => s.$emit("update:modelValue", { url: "" }), ["stop"]))
711
+ onClick: p[0] || (p[0] = A((m) => s.$emit("update:modelValue", { url: "" }), ["stop"]))
711
712
  }, null, 512), [
712
713
  [N, s.modelValue.url]
713
714
  ]),
@@ -716,17 +717,17 @@ const bt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-1c2c938f
716
717
  ref: "refFileInput",
717
718
  type: "file",
718
719
  hidden: "hidden",
719
- onInput: p[1] || (p[1] = (v) => w(v.target))
720
+ onInput: p[1] || (p[1] = (m) => b(m.target))
720
721
  }, null, 544)
721
722
  ], 2));
722
723
  }
723
- }), Ct = /* @__PURE__ */ g(rt, [["__scopeId", "data-v-cc8f15a0"]]);
724
+ }), Ct = /* @__PURE__ */ g(rt, [["__scopeId", "data-v-378788cf"]]);
724
725
  export {
725
726
  Pe as A,
726
727
  g as _,
727
728
  ne as a,
728
- vt as b,
729
- mt as c,
729
+ mt as b,
730
+ vt as c,
730
731
  ht as d,
731
732
  Le as e,
732
733
  _t as f,
@@ -734,9 +735,9 @@ export {
734
735
  He as h,
735
736
  gt as i,
736
737
  kt as j,
737
- wt as k,
738
+ bt as k,
738
739
  Xe as l,
739
- bt as m,
740
+ wt as m,
740
741
  $t as n,
741
742
  Ct as o
742
743
  };