@poni/adjutant-ui 0.0.104 → 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.
Files changed (31) hide show
  1. package/dist/AdjUploadFile-86rb42Go.cjs +1 -0
  2. package/dist/AdjUploadFile-DCZf3Y1A.js +713 -0
  3. package/dist/components/constructor/AdjPersonalizationConfigurator/AdjPersonalizationConfigurator.mock.d.ts +2 -0
  4. package/dist/components/constructor/AdjPersonalizationConfigurator/AdjPersonalizationConfigurator.stories.d.ts +6 -0
  5. package/dist/components/constructor/{AdjPersonalizitionConfigurator/AdjPersonalizitionConfigurator.vue.d.ts → AdjPersonalizationConfigurator/AdjPersonalizationConfigurator.vue.d.ts} +8 -12
  6. package/dist/components/constructor/elements/AdjImageItem/AdjImageItem.mock.d.ts +1 -1
  7. package/dist/components/constructor/elements/AdjImageItem/AdjImageItem.stories.d.ts +2 -2
  8. package/dist/components/constructor/elements/AdjPersonalizationConfiguratorElements/AdjPersonalizationConfiguratorElements.mock.d.ts +6 -0
  9. package/dist/components/constructor/elements/AdjPersonalizationConfiguratorElements/AdjPersonalizationConfiguratorElements.stories.d.ts +6 -0
  10. package/dist/components/constructor/elements/{AdjPersonalizitionConfiguratorElements/AdjPersonalizitionConfiguratorElements.vue.d.ts → AdjPersonalizationConfiguratorElements/AdjPersonalizationConfiguratorElements.vue.d.ts} +8 -12
  11. package/dist/components/constructor/elements/{AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsItem.d.ts → AdjPersonalizationConfiguratorElements/IAdjPersonalizationConfiguratorElementsItem.d.ts} +3 -3
  12. package/dist/components/constructor/elements/AdjPersonalizationConfiguratorElements/IAdjPersonalizationConfiguratorElementsModel.d.ts +4 -0
  13. package/dist/components/constructor/elements/AdjPersonalizationConfiguratorElements/IAdjPersonalizationConfiguratorElementsNumber.d.ts +5 -0
  14. package/dist/components/constructor/elements/{AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsTexture.d.ts → AdjPersonalizationConfiguratorElements/IAdjPersonalizationConfiguratorElementsTexture.d.ts} +1 -1
  15. package/dist/components/constructor/elements/{AdjPersonalizitionConfiguratorElements/TAdjPersonalizitionConfiguratorElementsValue.d.ts → AdjPersonalizationConfiguratorElements/TAdjPersonalizationConfiguratorElementsValue.d.ts} +3 -3
  16. package/dist/components.cjs +1 -1
  17. package/dist/components.js +222 -609
  18. package/dist/constructor.cjs +1 -1
  19. package/dist/constructor.js +872 -347
  20. package/dist/plugin/constructor.d.ts +2 -1
  21. package/dist/plugin/types.d.ts +3 -1
  22. package/dist/style.css +1 -1
  23. package/package.json +14 -14
  24. package/dist/AdjSvgActive-BrJ67q86.js +0 -310
  25. package/dist/AdjSvgActive-pl2OlG7l.cjs +0 -1
  26. package/dist/components/constructor/AdjPersonalizitionConfigurator/AdjPersonalizitionConfigurator.mock.d.ts +0 -2
  27. package/dist/components/constructor/AdjPersonalizitionConfigurator/AdjPersonalizitionConfigurator.stories.d.ts +0 -6
  28. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/AdjPersonalizitionConfiguratorElements.mock.d.ts +0 -6
  29. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/AdjPersonalizitionConfiguratorElements.stories.d.ts +0 -6
  30. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsModel.d.ts +0 -4
  31. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsNumber.d.ts +0 -5
@@ -0,0 +1,713 @@
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
+ import { onClickOutside as Z, useWindowSize as ae, useMouseInElement as q } from "@vueuse/core";
3
+ const le = /* @__PURE__ */ g({
4
+ __name: "AdjButton",
5
+ props: {
6
+ title: {},
7
+ flex: { type: Boolean, default: !1 },
8
+ size: { default: "medium" },
9
+ design: { default: "primary" },
10
+ disabled: { type: Boolean, default: !1 },
11
+ round: { type: Boolean, default: !1 },
12
+ iconLeft: { default: "" },
13
+ iconRight: { default: "" }
14
+ },
15
+ emits: ["click"],
16
+ setup(r) {
17
+ return (e, l) => (s(), n("button", {
18
+ class: _(["adj-button", {
19
+ [`adj-button_${e.size}`]: !0,
20
+ [`adj-button_${e.design}`]: !0,
21
+ "adj-button_disabled": e.disabled,
22
+ "adj-button_flex": e.flex,
23
+ "adj-button_round": e.round
24
+ }]),
25
+ onClick: l[0] || (l[0] = (o) => e.disabled ? 0 : e.$emit("click"))
26
+ }, [
27
+ e.iconLeft ? (s(), n("i", {
28
+ key: 0,
29
+ class: _(e.iconLeft)
30
+ }, null, 2)) : w("", !0),
31
+ i("div", null, k(e.title), 1),
32
+ e.iconRight ? (s(), n("i", {
33
+ key: 1,
34
+ class: _(e.iconRight)
35
+ }, null, 2)) : w("", !0)
36
+ ], 2));
37
+ }
38
+ }), j = (r, e) => {
39
+ const l = r.__vccOpts || r;
40
+ for (const [o, u] of e)
41
+ l[o] = u;
42
+ return l;
43
+ }, st = /* @__PURE__ */ j(le, [["__scopeId", "data-v-602b5e80"]]), oe = {
44
+ key: 0,
45
+ class: "adj-text-13"
46
+ }, se = { class: "adj-checkbox__handle" }, ie = {
47
+ width: "16",
48
+ height: "16",
49
+ viewBox: "0 0 16 16",
50
+ fill: "none",
51
+ xmlns: "http://www.w3.org/2000/svg"
52
+ }, ne = {
53
+ key: 1,
54
+ class: "adj-text-13"
55
+ }, de = /* @__PURE__ */ g({
56
+ __name: "AdjCheckbox",
57
+ props: {
58
+ title: { default: "" },
59
+ titlePosition: { default: "right" },
60
+ items: {},
61
+ modelValue: { default: () => ({ checked: !1 }) },
62
+ disabled: { type: Boolean, default: !1 }
63
+ },
64
+ emits: ["update:modelValue"],
65
+ setup(r, { emit: e }) {
66
+ const l = r, o = e;
67
+ function u() {
68
+ l.modelValue.checked === l.items[0].checked ? o("update:modelValue", l.items[1]) : o("update:modelValue", l.items[0]);
69
+ }
70
+ return (t, p) => (s(), n("div", {
71
+ class: _(["adj-checkbox", { disabled: t.disabled }]),
72
+ onClick: p[0] || (p[0] = (f) => u())
73
+ }, [
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
+ width: "16",
79
+ height: "16",
80
+ rx: "4"
81
+ }, 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
+ ]), 512)), [
84
+ [L, t.modelValue.checked]
85
+ ])
86
+ ]),
87
+ t.title && t.titlePosition === "right" ? (s(), n("span", ne, k(t.title), 1)) : w("", !0)
88
+ ], 2));
89
+ }
90
+ }), it = /* @__PURE__ */ j(de, [["__scopeId", "data-v-f8f6e87a"]]), ue = /* @__PURE__ */ g({
91
+ __name: "AdjScroll",
92
+ props: {
93
+ maxHeight: { default: "unset" },
94
+ white: { type: Boolean, default: !1 }
95
+ },
96
+ setup(r) {
97
+ const e = r;
98
+ return (l, o) => (s(), n("div", {
99
+ class: _(["adj-scroll", { "adj-scroll_white": l.white }]),
100
+ style: N({ maxHeight: `${e.maxHeight}` })
101
+ }, [
102
+ D(l.$slots, "default", {}, void 0, !0)
103
+ ], 6));
104
+ }
105
+ }), G = /* @__PURE__ */ j(ue, [["__scopeId", "data-v-ab6451fe"]]), re = {
106
+ key: 0,
107
+ class: "icon-close"
108
+ }, ce = {
109
+ key: 1,
110
+ class: "icon-arrow-down"
111
+ }, pe = {
112
+ key: 0,
113
+ class: "adj-filter-select__items adj-effect-overlay-big"
114
+ }, fe = ["onClick"], me = /* @__PURE__ */ g({
115
+ __name: "AdjFilterSelect",
116
+ props: {
117
+ title: {},
118
+ position: { default: "right" },
119
+ items: { default: () => [] },
120
+ modelValue: {}
121
+ },
122
+ emits: ["update:modelValue"],
123
+ setup(r, { emit: e }) {
124
+ const l = r, o = e, u = z("refElement");
125
+ Z(u, () => t.value = !1);
126
+ const t = b(!1);
127
+ function p(a) {
128
+ "disabled" in a && a.disabled || ("id" in a && a.id && (t.value = !1), o("update:modelValue", a));
129
+ }
130
+ function f() {
131
+ "id" in l.modelValue ? p({}) : t.value = !t.value;
132
+ }
133
+ return (a, c) => (s(), n("div", {
134
+ ref: "refElement",
135
+ class: _(["adj-filter-select", [{ show: t.value, active: "id" in a.modelValue && a.modelValue.id }, a.position]])
136
+ }, [
137
+ i("div", {
138
+ class: "adj-filter-select__name adj-text-14",
139
+ onClick: c[0] || (c[0] = (d) => f())
140
+ }, [
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
+ y(W, { name: "adj-fade" }, {
144
+ default: A(() => [
145
+ t.value ? (s(), n("div", pe, [
146
+ y(G, { maxHeight: "384px" }, {
147
+ default: A(() => [
148
+ i("div", null, [
149
+ (s(!0), n(S, null, R(a.items, (d) => (s(), n("div", {
150
+ key: d.id,
151
+ class: _(["adj-filter-select__item adj-text-14", { "adj-filter-select__item_disabled": d.disabled }]),
152
+ onClick: C((v) => p(d), ["stop"])
153
+ }, [
154
+ i("span", null, k(d.name), 1)
155
+ ], 10, fe))), 128))
156
+ ])
157
+ ]),
158
+ _: 1
159
+ })
160
+ ])) : w("", !0)
161
+ ]),
162
+ _: 1
163
+ })
164
+ ])
165
+ ], 2));
166
+ }
167
+ }), nt = /* @__PURE__ */ j(me, [["__scopeId", "data-v-1388613f"]]), ve = ["innerHTML"], _e = /* @__PURE__ */ g({
168
+ __name: "AdjHintDesktop",
169
+ props: {
170
+ html: { default: "" },
171
+ horizontalPosition: { default: "left" },
172
+ verticalPosition: { default: "top" },
173
+ dark: { type: Boolean, default: !1 },
174
+ width: { default: "200px" }
175
+ },
176
+ setup(r) {
177
+ return T((e) => ({
178
+ "7aca7e46": e.width
179
+ })), (e, l) => (s(), n("div", {
180
+ class: _([
181
+ "adj-hint-desktop",
182
+ { "adj-hint-desktop_dark": e.dark },
183
+ `adj-hint-desktop_${e.verticalPosition}`,
184
+ `adj-hint-desktop_${e.horizontalPosition}`
185
+ ])
186
+ }, [
187
+ i("div", {
188
+ class: "adj-hint-desktop__text",
189
+ innerHTML: e.html
190
+ }, null, 8, ve),
191
+ l[0] || (l[0] = i("svg", {
192
+ class: "adj-hint-desktop__triangle",
193
+ width: "14",
194
+ height: "14",
195
+ viewBox: "0 0 14 14",
196
+ fill: "none",
197
+ xmlns: "http://www.w3.org/2000/svg"
198
+ }, [
199
+ i("path", {
200
+ class: "adj-hint-desktop__triangle_inner",
201
+ d: "M13 13L7 2L1 13H13Z"
202
+ }),
203
+ i("path", {
204
+ class: "adj-hint-desktop__triangle_border",
205
+ d: "M13 13L7 2L1 13"
206
+ })
207
+ ], -1))
208
+ ], 2));
209
+ }
210
+ }), he = /* @__PURE__ */ j(_e, [["__scopeId", "data-v-c37cada5"]]), je = { class: "adj-modal" }, ge = { class: "adj-modal_wrapper" }, ke = /* @__PURE__ */ g({
211
+ __name: "AdjModal",
212
+ props: {
213
+ show: { type: Boolean },
214
+ width: { default: "100%" },
215
+ hideClose: { type: Boolean, default: !1 }
216
+ },
217
+ emits: ["update:show"],
218
+ setup(r, { emit: e }) {
219
+ T((u) => ({
220
+ 65069964: u.width
221
+ }));
222
+ const l = e;
223
+ function o() {
224
+ l("update:show", !1);
225
+ }
226
+ return (u, t) => (s(), n("div", je, [
227
+ y(W, { name: "adj-fade" }, {
228
+ default: A(() => [
229
+ H(i("div", ge, t[1] || (t[1] = [
230
+ i("div", { class: "adj-modal__background" }, null, -1)
231
+ ]), 512), [
232
+ [L, u.show]
233
+ ])
234
+ ]),
235
+ _: 1
236
+ }),
237
+ y(W, { name: "adj-popup-bottom" }, {
238
+ default: A(() => [
239
+ H(i("div", {
240
+ class: "adj-modal_wrapper",
241
+ onClick: C(o, ["stop"])
242
+ }, [
243
+ i("div", {
244
+ class: "adj-modal__window",
245
+ onClick: t[0] || (t[0] = C(() => {
246
+ }, ["stop"]))
247
+ }, [
248
+ u.hideClose ? w("", !0) : (s(), n("div", {
249
+ key: 0,
250
+ class: "adj-modal__close icon-close",
251
+ onClick: C(o, ["stop"])
252
+ })),
253
+ D(u.$slots, "default", {}, void 0, !0)
254
+ ])
255
+ ], 512), [
256
+ [L, u.show]
257
+ ])
258
+ ]),
259
+ _: 3
260
+ })
261
+ ]));
262
+ }
263
+ }), be = /* @__PURE__ */ j(ke, [["__scopeId", "data-v-921de616"]]), we = { class: "adj-hint" }, $e = ["innerHTML"], E = 14, F = 14, Ce = /* @__PURE__ */ g({
264
+ __name: "AdjHint",
265
+ props: {
266
+ html: { default: "" },
267
+ horizontalPosition: { default: "left" },
268
+ verticalPosition: { default: "bottom" },
269
+ dark: { type: Boolean, default: !0 },
270
+ modalMode: { type: Boolean, default: !1 }
271
+ },
272
+ setup(r) {
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
+ let M = 10 + F / 2;
275
+ function J() {
276
+ (!e.modalMode || u.value >= 1200) && (X(), Y(), x(), l.value = !0);
277
+ }
278
+ function K() {
279
+ (!e.modalMode || u.value >= 1200) && (l.value = !1);
280
+ }
281
+ function Q() {
282
+ e.modalMode && u.value < 1200 && (o.value = !0);
283
+ }
284
+ function X() {
285
+ if (p.value !== null) {
286
+ const V = p.value.getBoundingClientRect();
287
+ a.value = V.left, c.value = V.top;
288
+ }
289
+ }
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" && 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
+ }
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 = c.value - E - I.value : B.value == "bottom" && (h.value = c.value + v.value + E);
295
+ }
296
+ return (V, U) => (s(), n("div", we, [
297
+ i("div", {
298
+ class: "adj-hint__slot",
299
+ onMouseenter: C(J, ["stop"]),
300
+ onMouseleave: C(K, ["stop"]),
301
+ onClick: C(Q, ["stop"]),
302
+ ref: "refSlot"
303
+ }, [
304
+ D(V.$slots, "default", {}, void 0, !0)
305
+ ], 544),
306
+ i("div", {
307
+ class: "adj-hint__hint",
308
+ style: N({
309
+ left: m.value + "px",
310
+ top: h.value + "px",
311
+ visibility: l.value ? "visible" : "hidden"
312
+ }),
313
+ ref: "refHint"
314
+ }, [
315
+ H(y(he, {
316
+ html: V.html,
317
+ horizontalPosition: P.value,
318
+ verticalPosition: B.value,
319
+ dark: V.dark,
320
+ width: "252px"
321
+ }, null, 8, ["html", "horizontalPosition", "verticalPosition", "dark"]), [
322
+ [L, V.html !== ""]
323
+ ])
324
+ ], 4),
325
+ y(be, {
326
+ show: o.value,
327
+ "onUpdate:show": U[0] || (U[0] = (ee) => o.value = ee),
328
+ width: "430px"
329
+ }, {
330
+ default: A(() => [
331
+ i("div", {
332
+ class: "adj-hint__modal",
333
+ innerHTML: V.html
334
+ }, null, 8, $e)
335
+ ]),
336
+ _: 1
337
+ }, 8, ["show"])
338
+ ]));
339
+ }
340
+ }), ye = /* @__PURE__ */ j(Ce, [["__scopeId", "data-v-be48db98"]]), Ve = /* @__PURE__ */ g({
341
+ __name: "AdjIcon",
342
+ props: {
343
+ iconName: {},
344
+ size: { default: 24 },
345
+ design: { default: "contrast" },
346
+ tooltip: { default: "" },
347
+ disabled: { type: Boolean, default: !1 },
348
+ tooltipPosition: { default: "left" }
349
+ },
350
+ emits: ["click"],
351
+ setup(r) {
352
+ T((o) => ({
353
+ "7fb84d06": l.value
354
+ }));
355
+ const e = r, l = O(() => e.size + "px");
356
+ return (o, u) => (s(), n("div", {
357
+ class: _(["adj-icon", {
358
+ [`adj-icon_${o.design}`]: !0,
359
+ "adj-icon_disabled": o.disabled
360
+ }])
361
+ }, [
362
+ y(ye, {
363
+ dark: !1,
364
+ html: o.disabled ? "" : o.tooltip,
365
+ horizontalPosition: o.tooltipPosition
366
+ }, {
367
+ default: A(() => [
368
+ i("i", {
369
+ class: _([o.iconName]),
370
+ onClick: u[0] || (u[0] = (t) => o.$emit("click"))
371
+ }, null, 2)
372
+ ]),
373
+ _: 1
374
+ }, 8, ["html", "horizontalPosition"])
375
+ ], 2));
376
+ }
377
+ }), dt = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-5524b1e2"]]), Ae = {
378
+ key: 0,
379
+ class: "adj-icon-button__qty adj-text-12"
380
+ }, Pe = /* @__PURE__ */ g({
381
+ __name: "AdjIconButton",
382
+ props: {
383
+ iconName: {},
384
+ qty: { default: 0 },
385
+ size: { default: "medium" },
386
+ design: { default: "white-back" },
387
+ disabled: { type: Boolean, default: !1 }
388
+ },
389
+ emits: ["click"],
390
+ setup(r) {
391
+ return (e, l) => (s(), n("div", {
392
+ class: _(["adj-icon-button", {
393
+ [`adj-icon-button_${e.size}`]: !0,
394
+ [`adj-icon-button_${e.design}`]: !0,
395
+ "adj-icon-button_disabled": e.disabled
396
+ }]),
397
+ onClick: l[0] || (l[0] = (o) => e.$emit("click"))
398
+ }, [
399
+ i("i", {
400
+ class: _(["adj-icon-button__icon", e.iconName])
401
+ }, null, 2),
402
+ e.qty > 0 ? (s(), n("div", Ae, k(e.qty), 1)) : w("", !0)
403
+ ], 2));
404
+ }
405
+ }), ut = /* @__PURE__ */ j(Pe, [["__scopeId", "data-v-bd9a4816"]]), Ie = ["onClick"], Be = { class: "adj-radio__item_name adj-text-13" }, Me = /* @__PURE__ */ g({
406
+ __name: "AdjRadio",
407
+ props: {
408
+ namePosition: { default: "right" },
409
+ items: { default: () => [] },
410
+ modelValue: {},
411
+ disabled: { type: Boolean, default: !1 }
412
+ },
413
+ emits: ["update:modelValue"],
414
+ setup(r, { emit: e }) {
415
+ const l = r, o = e;
416
+ function u(t) {
417
+ var p;
418
+ t.id !== ((p = l.modelValue) == null ? void 0 : p.id) && o("update:modelValue", t);
419
+ }
420
+ return (t, p) => (s(), n("div", {
421
+ class: _(["adj-radio", { "adj-radio_disabled": t.disabled }])
422
+ }, [
423
+ (s(!0), n(S, null, R(t.items, (f) => {
424
+ var a;
425
+ return s(), n("div", {
426
+ key: f.id,
427
+ class: _(["adj-radio__item", {
428
+ active: ((a = t.modelValue) == null ? void 0 : a.id) === f.id,
429
+ [`adj-radio__item_${t.namePosition}`]: !0
430
+ }]),
431
+ onClick: (c) => u(f)
432
+ }, [
433
+ i("div", {
434
+ class: _(["adj-radio__item_button", { "adj-effect-overlay-small": !t.disabled }])
435
+ }, null, 2),
436
+ i("span", Be, k(f.name), 1)
437
+ ], 10, Ie);
438
+ }), 128))
439
+ ], 2));
440
+ }
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 = {
445
+ key: 0,
446
+ class: "adj-select-modern__items adj-effect-overlay-big"
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({
451
+ __name: "AdjSelectModern",
452
+ props: {
453
+ design: { default: "text" },
454
+ position: { default: "right" },
455
+ items: { default: () => [] },
456
+ modelValue: {}
457
+ },
458
+ emits: ["update:modelValue"],
459
+ setup(r, { emit: e }) {
460
+ const l = r, o = e, u = z("refElement");
461
+ Z(u, () => t.value = !1);
462
+ const t = b(!1);
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);
466
+ }
467
+ function f() {
468
+ t.value = !t.value;
469
+ }
470
+ return (a, c) => {
471
+ var d, v, m;
472
+ return s(), n("div", {
473
+ ref: "refElement",
474
+ class: _(["adj-select-modern", "adj-text-14", a.position, `adj-select-modern_${a.design}`, { show: t.value }])
475
+ }, [
476
+ i("div", {
477
+ class: "adj-input adj-text-14",
478
+ onClick: c[0] || (c[0] = (h) => f())
479
+ }, [
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", {
487
+ key: 1,
488
+ class: "adj-input__image",
489
+ style: N({ background: (v = a.modelValue) == null ? void 0 : v.background })
490
+ }, null, 4)) : w("", !0),
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))
493
+ ]),
494
+ y(W, { name: "adj-fade" }, {
495
+ default: A(() => [
496
+ t.value ? (s(), n("div", Se, [
497
+ y(G, { maxHeight: "384px" }, {
498
+ default: A(() => [
499
+ i("div", null, [
500
+ (s(!0), n(S, null, R(a.items, (h) => (s(), n("div", {
501
+ key: h.id,
502
+ class: "adj-select-modern__item adj-text-14",
503
+ onClick: C(($) => p(h), ["stop"])
504
+ }, [
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", {
512
+ key: 1,
513
+ class: "adj-select-modern__item-image",
514
+ style: N({ background: h.background })
515
+ }, null, 4)) : w("", !0),
516
+ i("span", Fe, k(h.name), 1)
517
+ ], 8, Re))), 128))
518
+ ])
519
+ ]),
520
+ _: 1
521
+ })
522
+ ])) : w("", !0)
523
+ ]),
524
+ _: 1
525
+ })
526
+ ], 2);
527
+ };
528
+ }
529
+ }), ct = /* @__PURE__ */ j(Ne, [["__scopeId", "data-v-f9310787"]]), We = { class: "adj-skeleton-item" }, De = /* @__PURE__ */ g({
530
+ __name: "AdjSkeletonItem",
531
+ props: {
532
+ width: { default: "100%" },
533
+ height: { default: "unset" },
534
+ aspectRatio: { default: "unset" },
535
+ marginTop: { default: "0px" }
536
+ },
537
+ setup(r) {
538
+ T((o) => ({
539
+ "73b36252": o.width,
540
+ "5f18ed58": o.marginTop,
541
+ ac595bde: l.value,
542
+ "3656db94": o.height
543
+ }));
544
+ const e = r, l = O(() => e.height !== "unset" ? "unset" : e.aspectRatio);
545
+ return (o, u) => (s(), n("div", We));
546
+ }
547
+ }), Oe = /* @__PURE__ */ j(De, [["__scopeId", "data-v-c6820958"]]), Ue = { class: "adj-skeleton" }, qe = /* @__PURE__ */ g({
548
+ __name: "AdjSkeleton",
549
+ props: {
550
+ loaders: { default: () => [] },
551
+ width: { default: "100%" },
552
+ centered: { type: Boolean, default: !1 }
553
+ },
554
+ setup(r) {
555
+ T((o) => ({
556
+ c2e40cd4: l.value,
557
+ "019b6ab8": o.width
558
+ }));
559
+ const e = r, l = O(() => e.centered ? "center" : "unset");
560
+ return (o, u) => (s(), n("div", Ue, [
561
+ (s(!0), n(S, null, R(o.loaders, (t) => (s(), te(Oe, {
562
+ width: t.width,
563
+ height: t.height,
564
+ "aspect-ratio": t.aspectRatio,
565
+ "margin-top": t.marginTop
566
+ }, null, 8, ["width", "height", "aspect-ratio", "margin-top"]))), 256))
567
+ ]));
568
+ }
569
+ }), pt = /* @__PURE__ */ j(qe, [["__scopeId", "data-v-080d9f14"]]), Ze = {}, Ge = {
570
+ viewBox: "0 0 34 34",
571
+ fill: "none",
572
+ xmlns: "http://www.w3.org/2000/svg"
573
+ };
574
+ function Je(r, e) {
575
+ return s(), n("svg", Ge, e[0] || (e[0] = [
576
+ i("circle", {
577
+ cx: "17",
578
+ cy: "17",
579
+ r: "16.5"
580
+ }, 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)
582
+ ]));
583
+ }
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({
585
+ __name: "AdjTabs",
586
+ props: {
587
+ items: { default: () => [] },
588
+ modelValue: {}
589
+ },
590
+ emits: ["update:modelValue"],
591
+ setup(r, { emit: e }) {
592
+ const l = r, o = e;
593
+ function u(t) {
594
+ var p;
595
+ !t.disabled && t.id !== ((p = l.modelValue) == null ? void 0 : p.id) && o("update:modelValue", t);
596
+ }
597
+ return (t, p) => (s(), n("div", Ke, [
598
+ i("div", Qe, [
599
+ (s(!0), n(S, null, R(t.items, (f) => {
600
+ var a;
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)
605
+ }, [
606
+ i("p", null, k(f.name), 1),
607
+ f.number ? (s(), n("span", Ye, k(f.number), 1)) : w("", !0)
608
+ ], 10, Xe);
609
+ }), 128))
610
+ ])
611
+ ]));
612
+ }
613
+ }), mt = /* @__PURE__ */ j(xe, [["__scopeId", "data-v-fcf34a9c"]]), et = { class: "adj-upload-file__main" }, tt = { class: "adj-text-14" }, at = /* @__PURE__ */ g({
614
+ __name: "AdjUploadFile",
615
+ props: {
616
+ text: {},
617
+ modelValue: {},
618
+ width: { default: 500 },
619
+ height: { default: 430 }
620
+ },
621
+ emits: ["update:modelValue"],
622
+ setup(r, { emit: e }) {
623
+ const l = r, o = e, u = z("refFileInput"), t = b(!1);
624
+ function p() {
625
+ var d;
626
+ t.value || (d = u.value) == null || d.click();
627
+ }
628
+ async function f(d) {
629
+ return new Promise((v, m) => {
630
+ const h = new FileReader();
631
+ h.readAsDataURL(d), h.onload = () => v(h.result), h.onerror = ($) => m($);
632
+ });
633
+ }
634
+ async function a(d) {
635
+ if (!d)
636
+ return {
637
+ url: ""
638
+ };
639
+ const m = await (await fetch("https://api.adjutant.ru/constructor-new/upload-image", {
640
+ method: "POST",
641
+ headers: { "Content-Type": "application/json;charset=utf-8" },
642
+ body: JSON.stringify({
643
+ id: Date.now(),
644
+ key: "fvk34lkjf03fd93j9dfsaf0d",
645
+ lang: "ru",
646
+ testMode: !0,
647
+ params: d
648
+ })
649
+ })).json();
650
+ return {
651
+ url: `${m == null ? void 0 : m.result}`
652
+ // urlFull: `https://api.adjutant.ru/tmp/upload/constructorzakaz/${responseJson?.result}`,
653
+ };
654
+ }
655
+ async function c(d) {
656
+ var I;
657
+ if (!(d.files && ((I = d == null ? void 0 : d.files) == null ? void 0 : I.length) > 0))
658
+ return;
659
+ t.value = !0;
660
+ const v = d == null ? void 0 : d.files[0];
661
+ let m = v.type;
662
+ m === "image/svg+xml" && (m = "image/svg");
663
+ const h = await f(v), $ = await a({
664
+ type: m,
665
+ data: h,
666
+ width: l.width,
667
+ height: l.height
668
+ });
669
+ o("update:modelValue", { ...l.modelValue, ...$ }), t.value = !1;
670
+ }
671
+ return (d, v) => (s(), n("div", {
672
+ class: _(["adj-upload-file", { "adj-upload-file_loading": t.value }]),
673
+ onClick: p
674
+ }, [
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)
678
+ ]),
679
+ H(i("i", {
680
+ class: "icon-close",
681
+ onClick: v[0] || (v[0] = C((m) => d.$emit("update:modelValue", { url: "" }), ["stop"]))
682
+ }, null, 512), [
683
+ [L, d.modelValue.url]
684
+ ]),
685
+ i("input", {
686
+ id: "file",
687
+ ref: "refFileInput",
688
+ type: "file",
689
+ hidden: "hidden",
690
+ onInput: v[1] || (v[1] = (m) => c(m.target))
691
+ }, null, 544)
692
+ ], 2));
693
+ }
694
+ }), vt = /* @__PURE__ */ j(at, [["__scopeId", "data-v-a4227077"]]);
695
+ export {
696
+ he as A,
697
+ j as _,
698
+ G as a,
699
+ st as b,
700
+ it as c,
701
+ nt as d,
702
+ ye as e,
703
+ dt as f,
704
+ ut as g,
705
+ be as h,
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
713
+ };