@poni/adjutant-ui 0.0.105 → 0.0.106

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 g, openBlock as s, createElementBlock as i, normalizeClass as _, createCommentVNode as w, createElementVNode as n, toDisplayString as k, withDirectives as H, vShow as L, normalizeStyle as N, renderSlot as D, useTemplateRef as z, ref as b, createVNode as y, Transition as W, withCtx as A, Fragment as S, renderList as R, withModifiers as C, useCssVars as T, computed as O, createBlock as te } from "vue";
1
+ import { defineComponent as g, openBlock as s, createElementBlock as n, normalizeClass as _, createCommentVNode as w, createElementVNode as i, toDisplayString as k, withDirectives as H, vShow as L, normalizeStyle as N, renderSlot as D, useTemplateRef as z, ref as b, createVNode as y, Transition as W, withCtx as A, Fragment as S, renderList as R, withModifiers as C, useCssVars as T, computed as O, createBlock as te } from "vue";
2
2
  import { onClickOutside as Z, useWindowSize as ae, useMouseInElement as q } from "@vueuse/core";
3
3
  const le = /* @__PURE__ */ g({
4
4
  __name: "AdjButton",
@@ -14,7 +14,7 @@ const le = /* @__PURE__ */ g({
14
14
  },
15
15
  emits: ["click"],
16
16
  setup(r) {
17
- return (e, l) => (s(), i("button", {
17
+ return (e, l) => (s(), n("button", {
18
18
  class: _(["adj-button", {
19
19
  [`adj-button_${e.size}`]: !0,
20
20
  [`adj-button_${e.design}`]: !0,
@@ -24,12 +24,12 @@ const le = /* @__PURE__ */ g({
24
24
  }]),
25
25
  onClick: l[0] || (l[0] = (o) => e.disabled ? 0 : e.$emit("click"))
26
26
  }, [
27
- e.iconLeft ? (s(), i("i", {
27
+ e.iconLeft ? (s(), n("i", {
28
28
  key: 0,
29
29
  class: _(e.iconLeft)
30
30
  }, null, 2)) : w("", !0),
31
- n("div", null, k(e.title), 1),
32
- e.iconRight ? (s(), i("i", {
31
+ i("div", null, k(e.title), 1),
32
+ e.iconRight ? (s(), n("i", {
33
33
  key: 1,
34
34
  class: _(e.iconRight)
35
35
  }, null, 2)) : w("", !0)
@@ -40,7 +40,7 @@ const le = /* @__PURE__ */ g({
40
40
  for (const [o, u] of e)
41
41
  l[o] = u;
42
42
  return l;
43
- }, lt = /* @__PURE__ */ j(le, [["__scopeId", "data-v-602b5e80"]]), oe = {
43
+ }, st = /* @__PURE__ */ j(le, [["__scopeId", "data-v-602b5e80"]]), oe = {
44
44
  key: 0,
45
45
  class: "adj-text-13"
46
46
  }, se = { class: "adj-checkbox__handle" }, ie = {
@@ -67,27 +67,27 @@ const le = /* @__PURE__ */ g({
67
67
  function u() {
68
68
  l.modelValue.checked === l.items[0].checked ? o("update:modelValue", l.items[1]) : o("update:modelValue", l.items[0]);
69
69
  }
70
- return (t, c) => (s(), i("div", {
70
+ return (t, p) => (s(), n("div", {
71
71
  class: _(["adj-checkbox", { disabled: t.disabled }]),
72
- onClick: c[0] || (c[0] = (p) => u())
72
+ onClick: p[0] || (p[0] = (f) => u())
73
73
  }, [
74
- t.title && t.titlePosition === "left" ? (s(), i("span", oe, k(t.title), 1)) : w("", !0),
75
- n("div", se, [
76
- H((s(), i("svg", ie, c[1] || (c[1] = [
77
- n("rect", {
74
+ t.title && t.titlePosition === "left" ? (s(), n("span", oe, k(t.title), 1)) : w("", !0),
75
+ i("div", se, [
76
+ H((s(), n("svg", ie, p[1] || (p[1] = [
77
+ i("rect", {
78
78
  width: "16",
79
79
  height: "16",
80
80
  rx: "4"
81
81
  }, null, -1),
82
- n("path", { d: "M12.7423 4.27169C12.3993 3.90944 11.842 3.90944 11.4993 4.27169L6.31133 9.75632L4.50067 7.84213C4.169 7.4915 3.58867 7.49185 3.258 7.84178C3.09167 8.01691 3 8.25055 3 8.49899C3 8.74742 3.09167 8.98106 3.25767 9.1562L5.69 11.7276C5.856 11.9034 6.07667 12 6.31167 12C6.54667 12 6.76767 11.9031 6.93333 11.7276L12.7423 5.58647C12.9083 5.41098 13 5.17734 13 4.9289C13 4.68047 12.9087 4.44719 12.7423 4.27169Z" }, null, -1)
82
+ i("path", { d: "M12.7423 4.27169C12.3993 3.90944 11.842 3.90944 11.4993 4.27169L6.31133 9.75632L4.50067 7.84213C4.169 7.4915 3.58867 7.49185 3.258 7.84178C3.09167 8.01691 3 8.25055 3 8.49899C3 8.74742 3.09167 8.98106 3.25767 9.1562L5.69 11.7276C5.856 11.9034 6.07667 12 6.31167 12C6.54667 12 6.76767 11.9031 6.93333 11.7276L12.7423 5.58647C12.9083 5.41098 13 5.17734 13 4.9289C13 4.68047 12.9087 4.44719 12.7423 4.27169Z" }, null, -1)
83
83
  ]), 512)), [
84
84
  [L, t.modelValue.checked]
85
85
  ])
86
86
  ]),
87
- t.title && t.titlePosition === "right" ? (s(), i("span", ne, k(t.title), 1)) : w("", !0)
87
+ t.title && t.titlePosition === "right" ? (s(), n("span", ne, k(t.title), 1)) : w("", !0)
88
88
  ], 2));
89
89
  }
90
- }), ot = /* @__PURE__ */ j(de, [["__scopeId", "data-v-f8f6e87a"]]), ue = /* @__PURE__ */ g({
90
+ }), it = /* @__PURE__ */ j(de, [["__scopeId", "data-v-f8f6e87a"]]), ue = /* @__PURE__ */ g({
91
91
  __name: "AdjScroll",
92
92
  props: {
93
93
  maxHeight: { default: "unset" },
@@ -95,7 +95,7 @@ const le = /* @__PURE__ */ g({
95
95
  },
96
96
  setup(r) {
97
97
  const e = r;
98
- return (l, o) => (s(), i("div", {
98
+ return (l, o) => (s(), n("div", {
99
99
  class: _(["adj-scroll", { "adj-scroll_white": l.white }]),
100
100
  style: N({ maxHeight: `${e.maxHeight}` })
101
101
  }, [
@@ -124,34 +124,34 @@ const le = /* @__PURE__ */ g({
124
124
  const l = r, o = e, u = z("refElement");
125
125
  Z(u, () => t.value = !1);
126
126
  const t = b(!1);
127
- function c(a) {
127
+ function p(a) {
128
128
  "disabled" in a && a.disabled || ("id" in a && a.id && (t.value = !1), o("update:modelValue", a));
129
129
  }
130
- function p() {
131
- "id" in l.modelValue ? c({}) : t.value = !t.value;
130
+ function f() {
131
+ "id" in l.modelValue ? p({}) : t.value = !t.value;
132
132
  }
133
- return (a, f) => (s(), i("div", {
133
+ return (a, c) => (s(), n("div", {
134
134
  ref: "refElement",
135
135
  class: _(["adj-filter-select", [{ show: t.value, active: "id" in a.modelValue && a.modelValue.id }, a.position]])
136
136
  }, [
137
- n("div", {
137
+ i("div", {
138
138
  class: "adj-filter-select__name adj-text-14",
139
- onClick: f[0] || (f[0] = (d) => p())
139
+ onClick: c[0] || (c[0] = (d) => f())
140
140
  }, [
141
- n("span", null, k("id" in a.modelValue && a.modelValue.id ? a.modelValue.name : a.title), 1),
142
- "id" in a.modelValue && a.modelValue.id ? (s(), i("i", re)) : (s(), i("i", ce)),
141
+ i("span", null, k("id" in a.modelValue && a.modelValue.id ? a.modelValue.name : a.title), 1),
142
+ "id" in a.modelValue && a.modelValue.id ? (s(), n("i", re)) : (s(), n("i", ce)),
143
143
  y(W, { name: "adj-fade" }, {
144
144
  default: A(() => [
145
- t.value ? (s(), i("div", pe, [
145
+ t.value ? (s(), n("div", pe, [
146
146
  y(G, { maxHeight: "384px" }, {
147
147
  default: A(() => [
148
- n("div", null, [
149
- (s(!0), i(S, null, R(a.items, (d) => (s(), i("div", {
148
+ i("div", null, [
149
+ (s(!0), n(S, null, R(a.items, (d) => (s(), n("div", {
150
150
  key: d.id,
151
151
  class: _(["adj-filter-select__item adj-text-14", { "adj-filter-select__item_disabled": d.disabled }]),
152
- onClick: C((v) => c(d), ["stop"])
152
+ onClick: C((v) => p(d), ["stop"])
153
153
  }, [
154
- n("span", null, k(d.name), 1)
154
+ i("span", null, k(d.name), 1)
155
155
  ], 10, fe))), 128))
156
156
  ])
157
157
  ]),
@@ -164,7 +164,7 @@ const le = /* @__PURE__ */ g({
164
164
  ])
165
165
  ], 2));
166
166
  }
167
- }), st = /* @__PURE__ */ j(me, [["__scopeId", "data-v-1388613f"]]), ve = ["innerHTML"], _e = /* @__PURE__ */ g({
167
+ }), nt = /* @__PURE__ */ j(me, [["__scopeId", "data-v-1388613f"]]), ve = ["innerHTML"], _e = /* @__PURE__ */ g({
168
168
  __name: "AdjHintDesktop",
169
169
  props: {
170
170
  html: { default: "" },
@@ -176,7 +176,7 @@ const le = /* @__PURE__ */ g({
176
176
  setup(r) {
177
177
  return T((e) => ({
178
178
  "7aca7e46": e.width
179
- })), (e, l) => (s(), i("div", {
179
+ })), (e, l) => (s(), n("div", {
180
180
  class: _([
181
181
  "adj-hint-desktop",
182
182
  { "adj-hint-desktop_dark": e.dark },
@@ -184,11 +184,11 @@ const le = /* @__PURE__ */ g({
184
184
  `adj-hint-desktop_${e.horizontalPosition}`
185
185
  ])
186
186
  }, [
187
- n("div", {
187
+ i("div", {
188
188
  class: "adj-hint-desktop__text",
189
189
  innerHTML: e.html
190
190
  }, null, 8, ve),
191
- l[0] || (l[0] = n("svg", {
191
+ l[0] || (l[0] = i("svg", {
192
192
  class: "adj-hint-desktop__triangle",
193
193
  width: "14",
194
194
  height: "14",
@@ -196,11 +196,11 @@ const le = /* @__PURE__ */ g({
196
196
  fill: "none",
197
197
  xmlns: "http://www.w3.org/2000/svg"
198
198
  }, [
199
- n("path", {
199
+ i("path", {
200
200
  class: "adj-hint-desktop__triangle_inner",
201
201
  d: "M13 13L7 2L1 13H13Z"
202
202
  }),
203
- n("path", {
203
+ i("path", {
204
204
  class: "adj-hint-desktop__triangle_border",
205
205
  d: "M13 13L7 2L1 13"
206
206
  })
@@ -223,11 +223,11 @@ const le = /* @__PURE__ */ g({
223
223
  function o() {
224
224
  l("update:show", !1);
225
225
  }
226
- return (u, t) => (s(), i("div", je, [
226
+ return (u, t) => (s(), n("div", je, [
227
227
  y(W, { name: "adj-fade" }, {
228
228
  default: A(() => [
229
- H(n("div", ge, t[1] || (t[1] = [
230
- n("div", { class: "adj-modal__background" }, null, -1)
229
+ H(i("div", ge, t[1] || (t[1] = [
230
+ i("div", { class: "adj-modal__background" }, null, -1)
231
231
  ]), 512), [
232
232
  [L, u.show]
233
233
  ])
@@ -236,16 +236,16 @@ const le = /* @__PURE__ */ g({
236
236
  }),
237
237
  y(W, { name: "adj-popup-bottom" }, {
238
238
  default: A(() => [
239
- H(n("div", {
239
+ H(i("div", {
240
240
  class: "adj-modal_wrapper",
241
241
  onClick: C(o, ["stop"])
242
242
  }, [
243
- n("div", {
243
+ i("div", {
244
244
  class: "adj-modal__window",
245
245
  onClick: t[0] || (t[0] = C(() => {
246
246
  }, ["stop"]))
247
247
  }, [
248
- u.hideClose ? w("", !0) : (s(), i("div", {
248
+ u.hideClose ? w("", !0) : (s(), n("div", {
249
249
  key: 0,
250
250
  class: "adj-modal__close icon-close",
251
251
  onClick: C(o, ["stop"])
@@ -270,7 +270,7 @@ const le = /* @__PURE__ */ g({
270
270
  modalMode: { type: Boolean, default: !1 }
271
271
  },
272
272
  setup(r) {
273
- const e = r, l = b(!1), o = b(!1), { width: u, height: t } = ae(), c = z("refSlot"), p = z("refHint"), a = b(0), f = b(0), { elementWidth: d, elementHeight: v } = q(c), m = b(0), h = b(80), { elementWidth: $, elementHeight: I } = q(p), P = b(e.horizontalPosition), B = b(e.verticalPosition);
273
+ const e = r, l = b(!1), o = b(!1), { width: u, height: t } = ae(), p = z("refSlot"), f = z("refHint"), a = b(0), c = b(0), { elementWidth: d, elementHeight: v } = q(p), m = b(0), h = b(80), { elementWidth: $, elementHeight: I } = q(f), P = b(e.horizontalPosition), B = b(e.verticalPosition);
274
274
  let M = 10 + F / 2;
275
275
  function J() {
276
276
  (!e.modalMode || u.value >= 1200) && (X(), Y(), x(), l.value = !0);
@@ -282,19 +282,19 @@ const le = /* @__PURE__ */ g({
282
282
  e.modalMode && u.value < 1200 && (o.value = !0);
283
283
  }
284
284
  function X() {
285
- if (c.value !== null) {
286
- const V = c.value.getBoundingClientRect();
287
- a.value = V.left, f.value = V.top;
285
+ if (p.value !== null) {
286
+ const V = p.value.getBoundingClientRect();
287
+ a.value = V.left, c.value = V.top;
288
288
  }
289
289
  }
290
290
  function Y() {
291
- e.dark && (M = 15 + F / 2), P.value = e.horizontalPosition, B.value = e.verticalPosition, e.horizontalPosition === "left" && a.value + d.value / 2 + M - $.value < 0 ? P.value = "right" : e.horizontalPosition === "right" && a.value + d.value / 2 - M + $.value > u.value && (P.value = "left"), e.verticalPosition === "top" && f.value - E - I.value < 0 ? B.value = "bottom" : e.verticalPosition === "bottom" && f.value + v.value + E + I.value > t.value && (B.value = "top");
291
+ e.dark && (M = 15 + F / 2), P.value = e.horizontalPosition, B.value = e.verticalPosition, e.horizontalPosition === "left" && a.value + d.value / 2 + M - $.value < 0 ? P.value = "right" : e.horizontalPosition === "right" && a.value + d.value / 2 - M + $.value > u.value && (P.value = "left"), e.verticalPosition === "top" && c.value - E - I.value < 0 ? B.value = "bottom" : e.verticalPosition === "bottom" && c.value + v.value + E + I.value > t.value && (B.value = "top");
292
292
  }
293
293
  function x() {
294
- e.dark && (M = 15 + F / 2), P.value === "left" ? m.value = a.value + d.value / 2 + M - $.value : P.value === "center" ? m.value = a.value + d.value / 2 - F / 2 - $.value / 2 : P.value === "right" && (m.value = a.value + d.value / 2 - M), B.value == "top" ? h.value = f.value - E - I.value : B.value == "bottom" && (h.value = f.value + v.value + E);
294
+ e.dark && (M = 15 + F / 2), P.value === "left" ? m.value = a.value + d.value / 2 + M - $.value : P.value === "center" ? m.value = a.value + d.value / 2 - F / 2 - $.value / 2 : P.value === "right" && (m.value = a.value + d.value / 2 - M), B.value == "top" ? h.value = c.value - E - I.value : B.value == "bottom" && (h.value = c.value + v.value + E);
295
295
  }
296
- return (V, U) => (s(), i("div", we, [
297
- n("div", {
296
+ return (V, U) => (s(), n("div", we, [
297
+ i("div", {
298
298
  class: "adj-hint__slot",
299
299
  onMouseenter: C(J, ["stop"]),
300
300
  onMouseleave: C(K, ["stop"]),
@@ -303,7 +303,7 @@ const le = /* @__PURE__ */ g({
303
303
  }, [
304
304
  D(V.$slots, "default", {}, void 0, !0)
305
305
  ], 544),
306
- n("div", {
306
+ i("div", {
307
307
  class: "adj-hint__hint",
308
308
  style: N({
309
309
  left: m.value + "px",
@@ -328,7 +328,7 @@ const le = /* @__PURE__ */ g({
328
328
  width: "430px"
329
329
  }, {
330
330
  default: A(() => [
331
- n("div", {
331
+ i("div", {
332
332
  class: "adj-hint__modal",
333
333
  innerHTML: V.html
334
334
  }, null, 8, $e)
@@ -353,7 +353,7 @@ const le = /* @__PURE__ */ g({
353
353
  "7fb84d06": l.value
354
354
  }));
355
355
  const e = r, l = O(() => e.size + "px");
356
- return (o, u) => (s(), i("div", {
356
+ return (o, u) => (s(), n("div", {
357
357
  class: _(["adj-icon", {
358
358
  [`adj-icon_${o.design}`]: !0,
359
359
  "adj-icon_disabled": o.disabled
@@ -365,7 +365,7 @@ const le = /* @__PURE__ */ g({
365
365
  horizontalPosition: o.tooltipPosition
366
366
  }, {
367
367
  default: A(() => [
368
- n("i", {
368
+ i("i", {
369
369
  class: _([o.iconName]),
370
370
  onClick: u[0] || (u[0] = (t) => o.$emit("click"))
371
371
  }, null, 2)
@@ -374,7 +374,7 @@ const le = /* @__PURE__ */ g({
374
374
  }, 8, ["html", "horizontalPosition"])
375
375
  ], 2));
376
376
  }
377
- }), it = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-5524b1e2"]]), Ae = {
377
+ }), dt = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-5524b1e2"]]), Ae = {
378
378
  key: 0,
379
379
  class: "adj-icon-button__qty adj-text-12"
380
380
  }, Pe = /* @__PURE__ */ g({
@@ -388,7 +388,7 @@ const le = /* @__PURE__ */ g({
388
388
  },
389
389
  emits: ["click"],
390
390
  setup(r) {
391
- return (e, l) => (s(), i("div", {
391
+ return (e, l) => (s(), n("div", {
392
392
  class: _(["adj-icon-button", {
393
393
  [`adj-icon-button_${e.size}`]: !0,
394
394
  [`adj-icon-button_${e.design}`]: !0,
@@ -396,13 +396,13 @@ const le = /* @__PURE__ */ g({
396
396
  }]),
397
397
  onClick: l[0] || (l[0] = (o) => e.$emit("click"))
398
398
  }, [
399
- n("i", {
399
+ i("i", {
400
400
  class: _(["adj-icon-button__icon", e.iconName])
401
401
  }, null, 2),
402
- e.qty > 0 ? (s(), i("div", Ae, k(e.qty), 1)) : w("", !0)
402
+ e.qty > 0 ? (s(), n("div", Ae, k(e.qty), 1)) : w("", !0)
403
403
  ], 2));
404
404
  }
405
- }), nt = /* @__PURE__ */ j(Pe, [["__scopeId", "data-v-bd9a4816"]]), Ie = ["onClick"], Be = { class: "adj-radio__item_name adj-text-13" }, Me = /* @__PURE__ */ g({
405
+ }), ut = /* @__PURE__ */ j(Pe, [["__scopeId", "data-v-bd9a4816"]]), Ie = ["onClick"], Be = { class: "adj-radio__item_name adj-text-13" }, Me = /* @__PURE__ */ g({
406
406
  __name: "AdjRadio",
407
407
  props: {
408
408
  namePosition: { default: "right" },
@@ -414,34 +414,40 @@ const le = /* @__PURE__ */ g({
414
414
  setup(r, { emit: e }) {
415
415
  const l = r, o = e;
416
416
  function u(t) {
417
- var c;
418
- t.id !== ((c = l.modelValue) == null ? void 0 : c.id) && o("update:modelValue", t);
417
+ var p;
418
+ t.id !== ((p = l.modelValue) == null ? void 0 : p.id) && o("update:modelValue", t);
419
419
  }
420
- return (t, c) => (s(), i("div", {
420
+ return (t, p) => (s(), n("div", {
421
421
  class: _(["adj-radio", { "adj-radio_disabled": t.disabled }])
422
422
  }, [
423
- (s(!0), i(S, null, R(t.items, (p) => {
423
+ (s(!0), n(S, null, R(t.items, (f) => {
424
424
  var a;
425
- return s(), i("div", {
426
- key: p.id,
425
+ return s(), n("div", {
426
+ key: f.id,
427
427
  class: _(["adj-radio__item", {
428
- active: ((a = t.modelValue) == null ? void 0 : a.id) === p.id,
428
+ active: ((a = t.modelValue) == null ? void 0 : a.id) === f.id,
429
429
  [`adj-radio__item_${t.namePosition}`]: !0
430
430
  }]),
431
- onClick: (f) => u(p)
431
+ onClick: (c) => u(f)
432
432
  }, [
433
- n("div", {
433
+ i("div", {
434
434
  class: _(["adj-radio__item_button", { "adj-effect-overlay-small": !t.disabled }])
435
435
  }, null, 2),
436
- n("span", Be, k(p.name), 1)
436
+ i("span", Be, k(f.name), 1)
437
437
  ], 10, Ie);
438
438
  }), 128))
439
439
  ], 2));
440
440
  }
441
- }), dt = /* @__PURE__ */ j(Me, [["__scopeId", "data-v-1291569e"]]), He = ["src"], Le = { class: "adj-input__text" }, ze = {
441
+ }), rt = /* @__PURE__ */ j(Me, [["__scopeId", "data-v-1291569e"]]), He = {
442
+ key: 0,
443
+ class: "adj-input__image"
444
+ }, Le = ["src"], ze = { class: "adj-input__text" }, Se = {
442
445
  key: 0,
443
446
  class: "adj-select-modern__items adj-effect-overlay-big"
444
- }, Se = ["onClick"], Re = ["src"], Te = { class: "adj-select-modern__item-text" }, Ee = /* @__PURE__ */ g({
447
+ }, Re = ["onClick"], Te = {
448
+ key: 0,
449
+ class: "adj-select-modern__item-image"
450
+ }, Ee = ["src"], Fe = { class: "adj-select-modern__item-text" }, Ne = /* @__PURE__ */ g({
445
451
  __name: "AdjSelectModern",
446
452
  props: {
447
453
  design: { default: "text" },
@@ -454,59 +460,61 @@ const le = /* @__PURE__ */ g({
454
460
  const l = r, o = e, u = z("refElement");
455
461
  Z(u, () => t.value = !1);
456
462
  const t = b(!1);
457
- function c(a) {
458
- var f;
459
- t.value = !1, a.id != ((f = l.modelValue) == null ? void 0 : f.id) && o("update:modelValue", a);
463
+ function p(a) {
464
+ var c;
465
+ t.value = !1, a.id != ((c = l.modelValue) == null ? void 0 : c.id) && o("update:modelValue", a);
460
466
  }
461
- function p() {
467
+ function f() {
462
468
  t.value = !t.value;
463
469
  }
464
- return (a, f) => {
470
+ return (a, c) => {
465
471
  var d, v, m;
466
- return s(), i("div", {
472
+ return s(), n("div", {
467
473
  ref: "refElement",
468
474
  class: _(["adj-select-modern", "adj-text-14", a.position, `adj-select-modern_${a.design}`, { show: t.value }])
469
475
  }, [
470
- n("div", {
476
+ i("div", {
471
477
  class: "adj-input adj-text-14",
472
- onClick: f[0] || (f[0] = (h) => p())
478
+ onClick: c[0] || (c[0] = (h) => f())
473
479
  }, [
474
- a.design === "image" ? (s(), i("img", {
475
- key: 0,
476
- class: "adj-input__image",
477
- src: (d = a.modelValue) == null ? void 0 : d.image,
478
- alt: ""
479
- }, null, 8, He)) : a.design === "background" ? (s(), i("div", {
480
+ a.design === "image" ? (s(), n("div", He, [
481
+ i("img", {
482
+ src: (d = a.modelValue) == null ? void 0 : d.image,
483
+ alt: ""
484
+ }, null, 8, Le),
485
+ c[1] || (c[1] = i("div", { class: "adj-input__border" }, null, -1))
486
+ ])) : a.design === "background" ? (s(), n("div", {
480
487
  key: 1,
481
488
  class: "adj-input__image",
482
489
  style: N({ background: (v = a.modelValue) == null ? void 0 : v.background })
483
490
  }, null, 4)) : w("", !0),
484
- n("span", Le, k((m = a.modelValue) == null ? void 0 : m.name), 1),
485
- f[1] || (f[1] = n("i", { class: "adj-input__icon icon-arrow-down" }, null, -1))
491
+ i("span", ze, k((m = a.modelValue) == null ? void 0 : m.name), 1),
492
+ c[2] || (c[2] = i("i", { class: "adj-input__icon icon-arrow-down" }, null, -1))
486
493
  ]),
487
494
  y(W, { name: "adj-fade" }, {
488
495
  default: A(() => [
489
- t.value ? (s(), i("div", ze, [
496
+ t.value ? (s(), n("div", Se, [
490
497
  y(G, { maxHeight: "384px" }, {
491
498
  default: A(() => [
492
- n("div", null, [
493
- (s(!0), i(S, null, R(a.items, (h) => (s(), i("div", {
499
+ i("div", null, [
500
+ (s(!0), n(S, null, R(a.items, (h) => (s(), n("div", {
494
501
  key: h.id,
495
502
  class: "adj-select-modern__item adj-text-14",
496
- onClick: C(($) => c(h), ["stop"])
503
+ onClick: C(($) => p(h), ["stop"])
497
504
  }, [
498
- a.design === "image" ? (s(), i("img", {
499
- key: 0,
500
- class: "adj-select-modern__item-image",
501
- src: h.image,
502
- alt: ""
503
- }, null, 8, Re)) : a.design === "background" ? (s(), i("div", {
505
+ a.design === "image" ? (s(), n("div", Te, [
506
+ i("img", {
507
+ src: h.image,
508
+ alt: ""
509
+ }, null, 8, Ee),
510
+ c[3] || (c[3] = i("div", { class: "adj-select-modern__item-border" }, null, -1))
511
+ ])) : a.design === "background" ? (s(), n("div", {
504
512
  key: 1,
505
513
  class: "adj-select-modern__item-image",
506
514
  style: N({ background: h.background })
507
515
  }, null, 4)) : w("", !0),
508
- n("span", Te, k(h.name), 1)
509
- ], 8, Se))), 128))
516
+ i("span", Fe, k(h.name), 1)
517
+ ], 8, Re))), 128))
510
518
  ])
511
519
  ]),
512
520
  _: 1
@@ -518,7 +526,7 @@ const le = /* @__PURE__ */ g({
518
526
  ], 2);
519
527
  };
520
528
  }
521
- }), ut = /* @__PURE__ */ j(Ee, [["__scopeId", "data-v-af0fc45c"]]), Fe = { class: "adj-skeleton-item" }, Ne = /* @__PURE__ */ g({
529
+ }), ct = /* @__PURE__ */ j(Ne, [["__scopeId", "data-v-f9310787"]]), We = { class: "adj-skeleton-item" }, De = /* @__PURE__ */ g({
522
530
  __name: "AdjSkeletonItem",
523
531
  props: {
524
532
  width: { default: "100%" },
@@ -534,9 +542,9 @@ const le = /* @__PURE__ */ g({
534
542
  "3656db94": o.height
535
543
  }));
536
544
  const e = r, l = O(() => e.height !== "unset" ? "unset" : e.aspectRatio);
537
- return (o, u) => (s(), i("div", Fe));
545
+ return (o, u) => (s(), n("div", We));
538
546
  }
539
- }), We = /* @__PURE__ */ j(Ne, [["__scopeId", "data-v-c6820958"]]), De = { class: "adj-skeleton" }, Oe = /* @__PURE__ */ g({
547
+ }), Oe = /* @__PURE__ */ j(De, [["__scopeId", "data-v-c6820958"]]), Ue = { class: "adj-skeleton" }, qe = /* @__PURE__ */ g({
540
548
  __name: "AdjSkeleton",
541
549
  props: {
542
550
  loaders: { default: () => [] },
@@ -549,8 +557,8 @@ const le = /* @__PURE__ */ g({
549
557
  "019b6ab8": o.width
550
558
  }));
551
559
  const e = r, l = O(() => e.centered ? "center" : "unset");
552
- return (o, u) => (s(), i("div", De, [
553
- (s(!0), i(S, null, R(o.loaders, (t) => (s(), te(We, {
560
+ return (o, u) => (s(), n("div", Ue, [
561
+ (s(!0), n(S, null, R(o.loaders, (t) => (s(), te(Oe, {
554
562
  width: t.width,
555
563
  height: t.height,
556
564
  "aspect-ratio": t.aspectRatio,
@@ -558,22 +566,22 @@ const le = /* @__PURE__ */ g({
558
566
  }, null, 8, ["width", "height", "aspect-ratio", "margin-top"]))), 256))
559
567
  ]));
560
568
  }
561
- }), rt = /* @__PURE__ */ j(Oe, [["__scopeId", "data-v-080d9f14"]]), Ue = {}, qe = {
569
+ }), pt = /* @__PURE__ */ j(qe, [["__scopeId", "data-v-080d9f14"]]), Ze = {}, Ge = {
562
570
  viewBox: "0 0 34 34",
563
571
  fill: "none",
564
572
  xmlns: "http://www.w3.org/2000/svg"
565
573
  };
566
- function Ze(r, e) {
567
- return s(), i("svg", qe, e[0] || (e[0] = [
568
- n("circle", {
574
+ function Je(r, e) {
575
+ return s(), n("svg", Ge, e[0] || (e[0] = [
576
+ i("circle", {
569
577
  cx: "17",
570
578
  cy: "17",
571
579
  r: "16.5"
572
580
  }, null, -1),
573
- n("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)
581
+ i("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)
574
582
  ]));
575
583
  }
576
- const ct = /* @__PURE__ */ j(Ue, [["render", Ze], ["__scopeId", "data-v-f04662e9"]]), Ge = { class: "adj-tabs" }, Je = { class: "adj-tabs-wrapper" }, Ke = ["onClick"], Qe = { key: 0 }, Xe = /* @__PURE__ */ g({
584
+ const ft = /* @__PURE__ */ j(Ze, [["render", Je], ["__scopeId", "data-v-f04662e9"]]), Ke = { class: "adj-tabs" }, Qe = { class: "adj-tabs-wrapper" }, Xe = ["onClick"], Ye = { key: 0 }, xe = /* @__PURE__ */ g({
577
585
  __name: "AdjTabs",
578
586
  props: {
579
587
  items: { default: () => [] },
@@ -583,26 +591,26 @@ const ct = /* @__PURE__ */ j(Ue, [["render", Ze], ["__scopeId", "data-v-f04662e9
583
591
  setup(r, { emit: e }) {
584
592
  const l = r, o = e;
585
593
  function u(t) {
586
- var c;
587
- !t.disabled && t.id !== ((c = l.modelValue) == null ? void 0 : c.id) && o("update:modelValue", t);
594
+ var p;
595
+ !t.disabled && t.id !== ((p = l.modelValue) == null ? void 0 : p.id) && o("update:modelValue", t);
588
596
  }
589
- return (t, c) => (s(), i("div", Ge, [
590
- n("div", Je, [
591
- (s(!0), i(S, null, R(t.items, (p) => {
597
+ return (t, p) => (s(), n("div", Ke, [
598
+ i("div", Qe, [
599
+ (s(!0), n(S, null, R(t.items, (f) => {
592
600
  var a;
593
- return s(), i("div", {
594
- key: p.name,
595
- class: _(["adj-tabs__item", { active: p.id == ((a = t.modelValue) == null ? void 0 : a.id), disabled: p.disabled }]),
596
- onClick: (f) => u(p)
601
+ return s(), n("div", {
602
+ key: f.name,
603
+ class: _(["adj-tabs__item", { active: f.id == ((a = t.modelValue) == null ? void 0 : a.id), disabled: f.disabled }]),
604
+ onClick: (c) => u(f)
597
605
  }, [
598
- n("p", null, k(p.name), 1),
599
- p.number ? (s(), i("span", Qe, k(p.number), 1)) : w("", !0)
600
- ], 10, Ke);
606
+ i("p", null, k(f.name), 1),
607
+ f.number ? (s(), n("span", Ye, k(f.number), 1)) : w("", !0)
608
+ ], 10, Xe);
601
609
  }), 128))
602
610
  ])
603
611
  ]));
604
612
  }
605
- }), pt = /* @__PURE__ */ j(Xe, [["__scopeId", "data-v-fcf34a9c"]]), Ye = { class: "adj-upload-file__main" }, xe = { class: "adj-text-14" }, et = /* @__PURE__ */ g({
613
+ }), mt = /* @__PURE__ */ j(xe, [["__scopeId", "data-v-fcf34a9c"]]), et = { class: "adj-upload-file__main" }, tt = { class: "adj-text-14" }, at = /* @__PURE__ */ g({
606
614
  __name: "AdjUploadFile",
607
615
  props: {
608
616
  text: {},
@@ -613,11 +621,11 @@ const ct = /* @__PURE__ */ j(Ue, [["render", Ze], ["__scopeId", "data-v-f04662e9
613
621
  emits: ["update:modelValue"],
614
622
  setup(r, { emit: e }) {
615
623
  const l = r, o = e, u = z("refFileInput"), t = b(!1);
616
- function c() {
624
+ function p() {
617
625
  var d;
618
626
  t.value || (d = u.value) == null || d.click();
619
627
  }
620
- async function p(d) {
628
+ async function f(d) {
621
629
  return new Promise((v, m) => {
622
630
  const h = new FileReader();
623
631
  h.readAsDataURL(d), h.onload = () => v(h.result), h.onerror = ($) => m($);
@@ -644,7 +652,7 @@ const ct = /* @__PURE__ */ j(Ue, [["render", Ze], ["__scopeId", "data-v-f04662e9
644
652
  // urlFull: `https://api.adjutant.ru/tmp/upload/constructorzakaz/${responseJson?.result}`,
645
653
  };
646
654
  }
647
- async function f(d) {
655
+ async function c(d) {
648
656
  var I;
649
657
  if (!(d.files && ((I = d == null ? void 0 : d.files) == null ? void 0 : I.length) > 0))
650
658
  return;
@@ -652,7 +660,7 @@ const ct = /* @__PURE__ */ j(Ue, [["render", Ze], ["__scopeId", "data-v-f04662e9
652
660
  const v = d == null ? void 0 : d.files[0];
653
661
  let m = v.type;
654
662
  m === "image/svg+xml" && (m = "image/svg");
655
- const h = await p(v), $ = await a({
663
+ const h = await f(v), $ = await a({
656
664
  type: m,
657
665
  data: h,
658
666
  width: l.width,
@@ -660,46 +668,46 @@ const ct = /* @__PURE__ */ j(Ue, [["render", Ze], ["__scopeId", "data-v-f04662e9
660
668
  });
661
669
  o("update:modelValue", { ...l.modelValue, ...$ }), t.value = !1;
662
670
  }
663
- return (d, v) => (s(), i("div", {
671
+ return (d, v) => (s(), n("div", {
664
672
  class: _(["adj-upload-file", { "adj-upload-file_loading": t.value }]),
665
- onClick: c
673
+ onClick: p
666
674
  }, [
667
- n("div", Ye, [
668
- v[2] || (v[2] = n("i", { class: "icon-arrow-circle-up" }, null, -1)),
669
- n("span", xe, k(d.modelValue.url || d.text), 1)
675
+ i("div", et, [
676
+ v[2] || (v[2] = i("i", { class: "icon-arrow-circle-up" }, null, -1)),
677
+ i("span", tt, k(d.modelValue.url || d.text), 1)
670
678
  ]),
671
- H(n("i", {
679
+ H(i("i", {
672
680
  class: "icon-close",
673
681
  onClick: v[0] || (v[0] = C((m) => d.$emit("update:modelValue", { url: "" }), ["stop"]))
674
682
  }, null, 512), [
675
683
  [L, d.modelValue.url]
676
684
  ]),
677
- n("input", {
685
+ i("input", {
678
686
  id: "file",
679
687
  ref: "refFileInput",
680
688
  type: "file",
681
689
  hidden: "hidden",
682
- onInput: v[1] || (v[1] = (m) => f(m.target))
690
+ onInput: v[1] || (v[1] = (m) => c(m.target))
683
691
  }, null, 544)
684
692
  ], 2));
685
693
  }
686
- }), ft = /* @__PURE__ */ j(et, [["__scopeId", "data-v-a4227077"]]);
694
+ }), vt = /* @__PURE__ */ j(at, [["__scopeId", "data-v-a4227077"]]);
687
695
  export {
688
696
  he as A,
689
697
  j as _,
690
698
  G as a,
691
- lt as b,
692
- ot as c,
693
- st as d,
699
+ st as b,
700
+ it as c,
701
+ nt as d,
694
702
  ye as e,
695
- it as f,
696
- nt as g,
703
+ dt as f,
704
+ ut as g,
697
705
  be as h,
698
- dt as i,
699
- ut as j,
700
- rt as k,
701
- We as l,
702
- ct as m,
703
- pt as n,
704
- ft as o
706
+ rt as i,
707
+ ct as j,
708
+ pt as k,
709
+ Oe as l,
710
+ ft as m,
711
+ mt as n,
712
+ vt as o
705
713
  };