@snabcentr/vue-ui-lib 3.59.8 → 3.59.9
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.
- package/dist/manifest.json +2 -2
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +704 -687
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +13 -13
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/sc-vue-ui-lib.js
CHANGED
|
@@ -6,14 +6,14 @@ var rg = (t, e, i) => e in t ? sg(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var C = (t, e, i) => rg(t, typeof e != "symbol" ? e + "" : e, i), lc = (t, e, i) => e.has(t) || ac("Cannot " + i);
|
|
7
7
|
var Zt = (t, e, i) => (lc(t, e, "read from private field"), i ? i.call(t) : e.get(t)), ha = (t, e, i) => e.has(t) ? ac("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), cc = (t, e, i, n) => (lc(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i);
|
|
8
8
|
import { isString as rn, groupBy as og, get as fo, isEmpty as xl, noop as Yt, some as Fi, isFunction as kt, isNil as rt, find as uc, forOwn as kd, forEach as fs, sortBy as Cd, cloneDeep as bi, reduce as Sd, every as dc, isArray as _t, keys as ag, debounce as qi, isUndefined as Gs, unset as lg, isNull as $d, isObject as cg, merge as Dr, upperFirst as ug, map as dg, constant as Mo, union as hg } from "lodash-es";
|
|
9
|
-
import { Comment as Eo, Text as Td, Fragment as
|
|
9
|
+
import { Comment as Eo, Text as Td, Fragment as $e, markRaw as Oe, createElementBlock as z, openBlock as w, createElementVNode as R, defineComponent as oe, inject as Ke, computed as O, ref as U, readonly as go, normalizeClass as Ue, createVNode as H, createCommentVNode as j, renderSlot as Te, unref as E, createTextVNode as ie, toDisplayString as Y, Transition as _s, withCtx as I, createBlock as Q, useTemplateRef as nt, onMounted as st, onBeforeUnmount as ki, onUnmounted as Rr, normalizeStyle as er, renderList as Xt, h as W, watch as ke, withKeys as tr, withModifiers as $s, nextTick as Rt, onBeforeMount as Fr, toRaw as Bi, provide as yi, createSlots as Un, getCurrentInstance as Pd, withDirectives as Br, Teleport as fg, toRef as et, mergeProps as kl, onActivated as Rd, onDeactivated as Fd, isVNode as gg, shallowRef as pg, watchEffect as Pn, vShow as Bd, cloneVNode as mg, mergeDefaults as Cl } from "vue";
|
|
10
10
|
import { NTooltip as Ar, NButton as De, NDropdown as Io, NTag as Ad, NPopover as Bn, NText as $n, NScrollbar as Md, NCheckbox as Kn, NSpin as ir, NForm as nr, NFormItem as tt, NSelect as on, NInputNumber as $t, NInput as An, NModal as Sl, NDrawer as Ed, NDrawerContent as Id, NDataTable as $l, NAlert as Od, NInputGroup as zd, NInputGroupLabel as vg, NDatePicker as yg, NUpload as bg, NUploadDragger as _g, NList as wg, NListItem as xg, NH1 as kg, NAutoComplete as Tl } from "naive-ui";
|
|
11
11
|
import { useBaseConfigStateStore as _i, OrderItemBase as jt, ClientProduct as Rn, Identity as Cg, ClientCategory as Sg, Reference as $g, useReferencesStore as Ft, PriceCoefficientEnum as Tg, CalculationTypeEnum as Nr, PriceCoefficient as Pg, UnitsHelper as Li, DateTimeProvider as Rg, HttpRequester as cn, ProductCategoryDataProvider as Fg, ProductDataProvider as Bg, UserTypeEnum as Hr, Order as Ag, OrdersDataProvider as qa, DataTablePagination as Mg, Curator as hc, CuratedDirection as Eg, ManagerDataFactory as fc, Manager as fa, DataSuggestionProvider as Pl, FieldValidationResultData as Ig, ReferenceDataProvider as Og, ClientDataProvider as zg } from "@snabcentr/common-lib";
|
|
12
12
|
import { format as Ks, endOfDay as Lg, startOfDay as Dg, isTomorrow as Ng } from "date-fns";
|
|
13
13
|
import { parsePhoneNumberWithError as Rl, PhoneNumber as Hg, ParseError as Wg } from "libphonenumber-js";
|
|
14
14
|
import { objectToSnake as ga } from "ts-case-convert";
|
|
15
15
|
import { VueTelInput as Vg } from "vue-tel-input";
|
|
16
|
-
var
|
|
16
|
+
var Ve = /* @__PURE__ */ ((t) => (t.AttachedUser = "attached_user", t.ClientInfo = "client_info", t.ClientInfoShort = "client_info_short", t.CreatedAt = "created_at", t.ClientCity = "client_city", t.DeliveryInfo = "delivery_info", t.DeliveryDate = "delivery_date", t.Id = "id", t.PaymentType = "payment_type", t.SalesDirections = "sales_directions", t.Status = "status", t.actions = "actions", t))(Ve || {}), bt = /* @__PURE__ */ ((t) => (t.phone = "phone", t.tablet = "tablet", t.laptop = "laptop", t))(bt || {});
|
|
17
17
|
class Us {
|
|
18
18
|
/**
|
|
19
19
|
* Возвращает признак, что в виртуальном узле отсутствует контент.
|
|
@@ -21,7 +21,7 @@ class Us {
|
|
|
21
21
|
* @param vnodes Список виртуальных узлов.
|
|
22
22
|
*/
|
|
23
23
|
static isVnodeEmpty(e) {
|
|
24
|
-
return e.every((i) => i.type === Eo || i.type === Td && rn(i.children) && !i.children.trim() ? !0 : i.type ===
|
|
24
|
+
return e.every((i) => i.type === Eo || i.type === Td && rn(i.children) && !i.children.trim() ? !0 : i.type === $e && Us.isVnodeEmpty(i.children));
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Возвращает признак, что указанный слот имеет контент.
|
|
@@ -350,7 +350,7 @@ const pp = Oe({ name: "ion-chevron-forward-outline", render: gp }), mp = ["data-
|
|
|
350
350
|
},
|
|
351
351
|
emits: ["header:click"],
|
|
352
352
|
setup(t, { expose: e, emit: i }) {
|
|
353
|
-
const n = t, s = i, r = Ke("itemHeaderClickHandler", Yt), o = Ke("defaultExpandedNames", []), a = Ke("expandedNames", []), l = Fi(o, (p) => p === n.name), c = O(() => Fi(a, (p) => p === n.name)), u =
|
|
353
|
+
const n = t, s = i, r = Ke("itemHeaderClickHandler", Yt), o = Ke("defaultExpandedNames", []), a = Ke("expandedNames", []), l = Fi(o, (p) => p === n.name), c = O(() => Fi(a, (p) => p === n.name)), u = U(l), d = () => {
|
|
354
354
|
n.disabled || (u.value = c.value || !u.value, s("header:click", n.name, u.value), r(n.name, u.value));
|
|
355
355
|
};
|
|
356
356
|
return e({
|
|
@@ -380,46 +380,46 @@ const pp = Oe({ name: "ion-chevron-forward-outline", render: gp }), mp = ["data-
|
|
|
380
380
|
const m = pp;
|
|
381
381
|
return w(), z("div", {
|
|
382
382
|
"data-name": t.name,
|
|
383
|
-
class:
|
|
383
|
+
class: Ue([{ "cursor-not-allowed text-gray-400": t.disabled }, "sc-collapse-item flex flex-col p-2"])
|
|
384
384
|
}, [
|
|
385
385
|
R("div", vp, [
|
|
386
386
|
R("div", yp, [
|
|
387
387
|
R("div", {
|
|
388
|
-
class:
|
|
388
|
+
class: Ue({ "rotate-90": u.value }),
|
|
389
389
|
onClick: d
|
|
390
390
|
}, [
|
|
391
|
-
|
|
391
|
+
Te(p.$slots, "arrow", {}, () => [
|
|
392
392
|
H(m)
|
|
393
393
|
], !0)
|
|
394
394
|
], 2)
|
|
395
395
|
]),
|
|
396
396
|
E(Us).hasSlotContent(p.$slots["pre-arrow"]) ? (w(), z("div", bp, [
|
|
397
397
|
R("div", _p, [
|
|
398
|
-
|
|
398
|
+
Te(p.$slots, "pre-arrow", {}, void 0, !0)
|
|
399
399
|
])
|
|
400
|
-
])) :
|
|
400
|
+
])) : j("", !0),
|
|
401
401
|
R("div", wp, [
|
|
402
402
|
R("div", {
|
|
403
403
|
class: "sc-collapse-item-title flex flex-1 cursor-pointer flex-col text-lg font-semibold",
|
|
404
404
|
onClick: d
|
|
405
405
|
}, [
|
|
406
|
-
|
|
406
|
+
Te(p.$slots, "header", {}, () => [
|
|
407
407
|
ie(Y(t.title), 1)
|
|
408
408
|
], !0)
|
|
409
409
|
]),
|
|
410
410
|
E(Us).hasSlotContent(p.$slots["sub-header"]) ? (w(), z("div", xp, [
|
|
411
|
-
|
|
412
|
-
])) :
|
|
411
|
+
Te(p.$slots, "sub-header", {}, void 0, !0)
|
|
412
|
+
])) : j("", !0)
|
|
413
413
|
]),
|
|
414
414
|
E(Us).hasSlotContent(p.$slots["header-extra"]) ? (w(), z("div", kp, [
|
|
415
|
-
|
|
416
|
-
])) :
|
|
415
|
+
Te(p.$slots, "header-extra", {}, void 0, !0)
|
|
416
|
+
])) : j("", !0)
|
|
417
417
|
]),
|
|
418
418
|
H(_s, { name: "fade" }, {
|
|
419
419
|
default: I(() => [
|
|
420
420
|
c.value || u.value ? (w(), z("div", Cp, [
|
|
421
|
-
|
|
422
|
-
])) :
|
|
421
|
+
Te(p.$slots, "default", {}, void 0, !0)
|
|
422
|
+
])) : j("", !0)
|
|
423
423
|
]),
|
|
424
424
|
_: 3
|
|
425
425
|
})
|
|
@@ -606,7 +606,7 @@ const Hd = Oe({ name: "ion-cart-outline", render: Rp }), Oo = Symbol(), X5 = {
|
|
|
606
606
|
h[0] || (h[0] = ie(" Товар, который нужно предлагать клиенту ", -1))
|
|
607
607
|
]),
|
|
608
608
|
_: 1
|
|
609
|
-
})) :
|
|
609
|
+
})) : j("", !0),
|
|
610
610
|
s.value ? (w(), Q(v, {
|
|
611
611
|
key: 1,
|
|
612
612
|
placement: "bottom",
|
|
@@ -630,7 +630,7 @@ const Hd = Oe({ name: "ion-cart-outline", render: Rp }), Oo = Symbol(), X5 = {
|
|
|
630
630
|
h[1] || (h[1] = ie(" Редактировать ", -1))
|
|
631
631
|
]),
|
|
632
632
|
_: 1
|
|
633
|
-
})) :
|
|
633
|
+
})) : j("", !0),
|
|
634
634
|
n.value ? (w(), Q(v, {
|
|
635
635
|
key: 2,
|
|
636
636
|
placement: "bottom",
|
|
@@ -654,7 +654,7 @@ const Hd = Oe({ name: "ion-cart-outline", render: Rp }), Oo = Symbol(), X5 = {
|
|
|
654
654
|
h[2] || (h[2] = ie(" Добавить в корзину ", -1))
|
|
655
655
|
]),
|
|
656
656
|
_: 1
|
|
657
|
-
})) :
|
|
657
|
+
})) : j("", !0),
|
|
658
658
|
((T = o.value) == null ? void 0 : T.length) > 0 ? (w(), Q(k, {
|
|
659
659
|
key: 3,
|
|
660
660
|
options: o.value,
|
|
@@ -675,7 +675,7 @@ const Hd = Oe({ name: "ion-cart-outline", render: Rp }), Oo = Symbol(), X5 = {
|
|
|
675
675
|
}, 8, ["size"])
|
|
676
676
|
]),
|
|
677
677
|
_: 1
|
|
678
|
-
}, 8, ["options", "size"])) :
|
|
678
|
+
}, 8, ["options", "size"])) : j("", !0)
|
|
679
679
|
]);
|
|
680
680
|
};
|
|
681
681
|
}
|
|
@@ -768,7 +768,7 @@ const zp = Oe({ name: "mdi-percent-outline", render: Op }), Lp = { class: "flex
|
|
|
768
768
|
round: "",
|
|
769
769
|
bordered: !1,
|
|
770
770
|
size: "small",
|
|
771
|
-
class:
|
|
771
|
+
class: Ue(["text-slate-600", { "font-bold": !s.value }])
|
|
772
772
|
}, {
|
|
773
773
|
default: I(() => {
|
|
774
774
|
var S;
|
|
@@ -786,22 +786,22 @@ const zp = Oe({ name: "mdi-percent-outline", render: Op }), Lp = { class: "flex
|
|
|
786
786
|
];
|
|
787
787
|
}),
|
|
788
788
|
_: 1
|
|
789
|
-
})) :
|
|
789
|
+
})) : j("", !0),
|
|
790
790
|
R("div", {
|
|
791
|
-
class:
|
|
791
|
+
class: Ue({ "!text-red-600": r.value })
|
|
792
792
|
}, [
|
|
793
793
|
l.value && l.value !== a.value || p.value ? (w(), z("div", Dp, [
|
|
794
|
-
l.value && l.value !== a.value ? (w(), z("span", Np, Y(f.value) + " " + Y(t.showQuantityUnit ? ` ${n.value.currency.symbol}/${n.value.unit.name}` : ""), 1)) :
|
|
794
|
+
l.value && l.value !== a.value ? (w(), z("span", Np, Y(f.value) + " " + Y(t.showQuantityUnit ? ` ${n.value.currency.symbol}/${n.value.unit.name}` : ""), 1)) : j("", !0),
|
|
795
795
|
p.value ? (w(), z("span", {
|
|
796
796
|
key: 1,
|
|
797
|
-
class:
|
|
798
|
-
}, " (" + Y(p.value) + "%) ", 3)) :
|
|
799
|
-
])) :
|
|
797
|
+
class: Ue(["flex text-nowrap text-sm text-gray-600", { "!text-red-600": r.value }])
|
|
798
|
+
}, " (" + Y(p.value) + "%) ", 3)) : j("", !0)
|
|
799
|
+
])) : j("", !0),
|
|
800
800
|
R("span", {
|
|
801
|
-
class:
|
|
801
|
+
class: Ue(["whitespace-nowrap text-base flex items-center gap-1", { "text-gray-600": (_ = s.value) == null ? void 0 : _.readOnly, "font-bold": !s.value && !i.value }])
|
|
802
802
|
}, [
|
|
803
803
|
R("span", {
|
|
804
|
-
class:
|
|
804
|
+
class: Ue({ "text-nowrap": !0, "cursor-pointer underline decoration-dashed": d.value && t.eventEmitter }),
|
|
805
805
|
onClick: y[0] || (y[0] = () => {
|
|
806
806
|
var S;
|
|
807
807
|
d.value && ((S = t.eventEmitter) == null || S.emit("cost:click", { product: n.value, cost: a.value }));
|
|
@@ -816,9 +816,9 @@ const zp = Oe({ name: "mdi-percent-outline", render: Op }), Lp = { class: "flex
|
|
|
816
816
|
R("span", null, ' На продукт действует скидка "' + Y(t.product.discount.name) + '"; ', 1)
|
|
817
817
|
]),
|
|
818
818
|
_: 1
|
|
819
|
-
})) :
|
|
819
|
+
})) : j("", !0)
|
|
820
820
|
], 2),
|
|
821
|
-
g.value ? (w(), z("span", Hp, " ~ " + Y(g.value) + " " + Y(t.showQuantityUnit ? `₽/${n.value.unit.name}` : ""), 1)) :
|
|
821
|
+
g.value ? (w(), z("span", Hp, " ~ " + Y(g.value) + " " + Y(t.showQuantityUnit ? `₽/${n.value.unit.name}` : ""), 1)) : j("", !0),
|
|
822
822
|
t.showCostDate && !E(rt)(c.value) ? (w(), z("span", Wp, [
|
|
823
823
|
ie(Y(c.value) + " ", 1),
|
|
824
824
|
t.showPriceHistory && t.eventEmitter ? (w(), Q(k, {
|
|
@@ -838,8 +838,8 @@ const zp = Oe({ name: "mdi-percent-outline", render: Op }), Lp = { class: "flex
|
|
|
838
838
|
y[2] || (y[2] = ie(" История цен ", -1))
|
|
839
839
|
]),
|
|
840
840
|
_: 1
|
|
841
|
-
})) :
|
|
842
|
-
])) :
|
|
841
|
+
})) : j("", !0)
|
|
842
|
+
])) : j("", !0)
|
|
843
843
|
], 2)
|
|
844
844
|
]);
|
|
845
845
|
};
|
|
@@ -1542,7 +1542,7 @@ const tm = {
|
|
|
1542
1542
|
lgRotateRight: e.onRotateRight,
|
|
1543
1543
|
lgFlipHorizontal: e.onFlipHorizontal,
|
|
1544
1544
|
lgFlipVertical: e.onFlipVertical
|
|
1545
|
-
}, n = nt("gallery-container"), s =
|
|
1545
|
+
}, n = nt("gallery-container"), s = U(null);
|
|
1546
1546
|
return st(async () => {
|
|
1547
1547
|
if (!n.value)
|
|
1548
1548
|
return;
|
|
@@ -1555,7 +1555,7 @@ const tm = {
|
|
|
1555
1555
|
var r;
|
|
1556
1556
|
s.value && ((r = s.value) == null || r.destroy(), s.value = null);
|
|
1557
1557
|
}), (r, o) => (w(), z("div", tm, [
|
|
1558
|
-
|
|
1558
|
+
Te(r.$slots, "default")
|
|
1559
1559
|
], 512));
|
|
1560
1560
|
}
|
|
1561
1561
|
}), Bt = class Bt {
|
|
@@ -1587,7 +1587,7 @@ const tm = {
|
|
|
1587
1587
|
* @param defaultValue Значение, возвращаемое если текущее разрешение не соответствует ни одному значению.
|
|
1588
1588
|
*/
|
|
1589
1589
|
static initRefDependingOnDeviceResolution(e, i, n) {
|
|
1590
|
-
const s =
|
|
1590
|
+
const s = U(n);
|
|
1591
1591
|
return Bt.setRefValueDependingOnDeviceResolution(s, e, i, n), Bt.refsDependingOnDeviceResolution.push({
|
|
1592
1592
|
r: s,
|
|
1593
1593
|
phoneValue: e,
|
|
@@ -1658,7 +1658,7 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1658
1658
|
images: {}
|
|
1659
1659
|
},
|
|
1660
1660
|
setup(t, { expose: e }) {
|
|
1661
|
-
const i =
|
|
1661
|
+
const i = U(!1), n = U(!1), s = U({
|
|
1662
1662
|
plugins: [Qp, em],
|
|
1663
1663
|
addClass: "sc-lg-container",
|
|
1664
1664
|
licenseKey: "0000-0000-000-0000",
|
|
@@ -1671,7 +1671,7 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1671
1671
|
previousSlide: "Предыдущее изображение",
|
|
1672
1672
|
toggleMaximize: "Расширить"
|
|
1673
1673
|
}
|
|
1674
|
-
}), r = () => window.innerWidth * (ci.getDeviceTypeByResolution() === bt.phone ? 0.7 : 0.8), o =
|
|
1674
|
+
}), r = () => window.innerWidth * (ci.getDeviceTypeByResolution() === bt.phone ? 0.7 : 0.8), o = U(r()), a = () => {
|
|
1675
1675
|
o.value = r();
|
|
1676
1676
|
}, l = () => {
|
|
1677
1677
|
i.value = !0;
|
|
@@ -1699,7 +1699,7 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1699
1699
|
class: "inline-flex",
|
|
1700
1700
|
onClick: u[0] || (u[0] = (g) => i.value = !i.value)
|
|
1701
1701
|
}, [
|
|
1702
|
-
|
|
1702
|
+
Te(c.$slots, "default", {}, () => [
|
|
1703
1703
|
H(d)
|
|
1704
1704
|
])
|
|
1705
1705
|
])
|
|
@@ -1717,7 +1717,7 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1717
1717
|
})
|
|
1718
1718
|
}, {
|
|
1719
1719
|
default: I(() => [
|
|
1720
|
-
(w(!0), z(
|
|
1720
|
+
(w(!0), z($e, null, Xt(t.images, (g, f) => (w(), z("a", {
|
|
1721
1721
|
key: f,
|
|
1722
1722
|
href: g.image
|
|
1723
1723
|
}, [
|
|
@@ -1749,19 +1749,19 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1749
1749
|
class: "sc-stock-count"
|
|
1750
1750
|
}, {
|
|
1751
1751
|
trigger: I(() => [
|
|
1752
|
-
|
|
1752
|
+
Te(e.$slots, "default", {}, () => [
|
|
1753
1753
|
H(n)
|
|
1754
1754
|
])
|
|
1755
1755
|
]),
|
|
1756
1756
|
default: I(() => [
|
|
1757
1757
|
R("div", lm, [
|
|
1758
|
-
(w(!0), z(
|
|
1758
|
+
(w(!0), z($e, null, Xt(t.product.stockCount, (r, o) => (w(), z($e, { key: o }, [
|
|
1759
1759
|
R("span", cm, Y(r.warehouse.name), 1),
|
|
1760
1760
|
R("span", um, [
|
|
1761
1761
|
ie(Y(r.count ?? "В наличии") + " ", 1),
|
|
1762
|
-
r.count ? (w(), z(
|
|
1762
|
+
r.count ? (w(), z($e, { key: 0 }, [
|
|
1763
1763
|
ie(Y(t.product.unit.name), 1)
|
|
1764
|
-
], 64)) :
|
|
1764
|
+
], 64)) : j("", !0)
|
|
1765
1765
|
])
|
|
1766
1766
|
], 64))), 128))
|
|
1767
1767
|
])
|
|
@@ -1863,7 +1863,7 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1863
1863
|
h[0] || (h[0] = ie(" Избранный товар ", -1))
|
|
1864
1864
|
]),
|
|
1865
1865
|
_: 1
|
|
1866
|
-
})) :
|
|
1866
|
+
})) : j("", !0),
|
|
1867
1867
|
((P = t.product) == null ? void 0 : P.isPreviouslyOrdered) ?? !1 ? (w(), Q(f, {
|
|
1868
1868
|
key: 1,
|
|
1869
1869
|
placement: "bottom",
|
|
@@ -1876,13 +1876,13 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1876
1876
|
h[1] || (h[1] = ie(" Ранее заказанный товар ", -1))
|
|
1877
1877
|
]),
|
|
1878
1878
|
_: 1
|
|
1879
|
-
})) :
|
|
1879
|
+
})) : j("", !0)
|
|
1880
1880
|
]),
|
|
1881
1881
|
R("span", {
|
|
1882
|
-
class:
|
|
1882
|
+
class: Ue({ "cursor-pointer": l.value && t.eventEmitter }),
|
|
1883
1883
|
onClick: u
|
|
1884
1884
|
}, Y(t.product.name), 3),
|
|
1885
|
-
t.product.onOrder ? (w(), z("span", pm, " [Под заказ] ")) :
|
|
1885
|
+
t.product.onOrder ? (w(), z("span", pm, " [Под заказ] ")) : j("", !0),
|
|
1886
1886
|
R("span", mm, [
|
|
1887
1887
|
t.product.images && t.product.images.length > 0 ? (w(), Q(am, {
|
|
1888
1888
|
key: 0,
|
|
@@ -1895,7 +1895,7 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1895
1895
|
])
|
|
1896
1896
|
]),
|
|
1897
1897
|
_: 1
|
|
1898
|
-
}, 8, ["images"])) :
|
|
1898
|
+
}, 8, ["images"])) : j("", !0)
|
|
1899
1899
|
])
|
|
1900
1900
|
];
|
|
1901
1901
|
}),
|
|
@@ -1909,18 +1909,18 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1909
1909
|
"show-product-edit-button": t.showProductEditButton,
|
|
1910
1910
|
"show-product-required-button": t.showProductRequiredButton,
|
|
1911
1911
|
"product-context-buttons-config": t.productContextButtonsConfig
|
|
1912
|
-
}, null, 8, ["product", "event-emitter", "show-product-add-to-cart-button", "show-product-edit-button", "show-product-required-button", "product-context-buttons-config"])) :
|
|
1912
|
+
}, null, 8, ["product", "event-emitter", "show-product-add-to-cart-button", "show-product-edit-button", "show-product-required-button", "product-context-buttons-config"])) : j("", !0)
|
|
1913
1913
|
]),
|
|
1914
1914
|
R("div", ym, [
|
|
1915
1915
|
R("div", bm, [
|
|
1916
1916
|
t.product.supplierSku ? (w(), z("div", _m, [
|
|
1917
1917
|
h[2] || (h[2] = ie(" Артикул производителя/поставщика: ", -1)),
|
|
1918
1918
|
R("span", wm, Y(t.product.supplierSku), 1)
|
|
1919
|
-
])) :
|
|
1919
|
+
])) : j("", !0),
|
|
1920
1920
|
t.showCode ? (w(), z("span", xm, [
|
|
1921
1921
|
h[3] || (h[3] = ie(" Артикул: ", -1)),
|
|
1922
1922
|
R("span", km, Y(t.product.code), 1)
|
|
1923
|
-
])) :
|
|
1923
|
+
])) : j("", !0),
|
|
1924
1924
|
t.product.stockCount && t.product.stockCount.length > 0 ? (w(), Q(hm, {
|
|
1925
1925
|
key: 2,
|
|
1926
1926
|
product: t.product
|
|
@@ -1936,17 +1936,17 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1936
1936
|
t.product.pack ?? ((B = (T = t.product) == null ? void 0 : T.properties) == null ? void 0 : B.pack) ? (w(), z("span", $m, [
|
|
1937
1937
|
h[5] || (h[5] = ie(" Норма упаковки: ", -1)),
|
|
1938
1938
|
R("span", Tm, Y(t.product.pack ?? ((S = (_ = t.product) == null ? void 0 : _.properties) == null ? void 0 : S.pack)), 1)
|
|
1939
|
-
])) :
|
|
1939
|
+
])) : j("", !0),
|
|
1940
1940
|
t.showPlanningDates && r.value ? (w(), z("span", Pm, [
|
|
1941
1941
|
h[6] || (h[6] = ie(" Планируемая дата поступления на основной склад: ", -1)),
|
|
1942
1942
|
R("span", Rm, Y(r.value), 1)
|
|
1943
|
-
])) :
|
|
1943
|
+
])) : j("", !0)
|
|
1944
1944
|
])
|
|
1945
1945
|
]),
|
|
1946
1946
|
H(k, { "x-scrollable": "" }, {
|
|
1947
1947
|
default: I(() => [
|
|
1948
1948
|
n.value ? (w(), z("div", Fm, [
|
|
1949
|
-
(w(!0), z(
|
|
1949
|
+
(w(!0), z($e, null, Xt(s.value, (b) => (w(), Q(qn, {
|
|
1950
1950
|
key: b.coefficient.slug,
|
|
1951
1951
|
product: t.product,
|
|
1952
1952
|
"cost-field-name": b.coefficient.slug ?? "",
|
|
@@ -1970,16 +1970,16 @@ const sm = ["href"], rm = ["src", "alt"], om = {}, am = /* @__PURE__ */ oe({
|
|
|
1970
1970
|
style: { "background-color": "var(--n-merged-td-color)" },
|
|
1971
1971
|
class: "sticky right-0 border-0 border-l-2 border-solid border-gray-300 pl-2"
|
|
1972
1972
|
}, null, 8, ["product", "event-emitter", "allow-price-click", "show-cost-date", "show-price-history", "currency-rates"])
|
|
1973
|
-
])) :
|
|
1973
|
+
])) : j("", !0)
|
|
1974
1974
|
]),
|
|
1975
1975
|
_: 1
|
|
1976
1976
|
}),
|
|
1977
1977
|
t.showSlugs || t.showProperties ? (w(), z("div", Bm, [
|
|
1978
1978
|
R("ul", Am, [
|
|
1979
|
-
t.showSlugs ? (w(!0), z(
|
|
1980
|
-
t.showProperties ? (w(!0), z(
|
|
1979
|
+
t.showSlugs ? (w(!0), z($e, { key: 0 }, Xt({ id: t.product.id, slug: t.product.slug }, (b, P) => (w(), z("li", { key: P }, " (" + Y(P) + "): " + Y(b), 1))), 128)) : j("", !0),
|
|
1980
|
+
t.showProperties ? (w(!0), z($e, { key: 1 }, Xt(t.product.properties, (b, P) => (w(), z("li", { key: P }, " (" + Y(P) + "): " + Y(b), 1))), 128)) : j("", !0)
|
|
1981
1981
|
])
|
|
1982
|
-
])) :
|
|
1982
|
+
])) : j("", !0)
|
|
1983
1983
|
]);
|
|
1984
1984
|
};
|
|
1985
1985
|
}
|
|
@@ -2155,7 +2155,7 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
|
|
|
2155
2155
|
s[0] || (s[0] = R("div", null, "Выполняется поиск товара ...", -1))
|
|
2156
2156
|
])) : t.product && !t.product.isNewRec() ? (w(), z("div", Hm, [
|
|
2157
2157
|
R("div", null, Y(t.product.code) + " - " + Y(t.product.name) + " - " + Y(t.product.costRub.toLocaleString()) + " ₽ / " + Y(t.product.unit.name), 1),
|
|
2158
|
-
i.value ? (w(), z("div", Wm, "(Планируемая дата производства: " + Y(i.value) + ")", 1)) :
|
|
2158
|
+
i.value ? (w(), z("div", Wm, "(Планируемая дата производства: " + Y(i.value) + ")", 1)) : j("", !0)
|
|
2159
2159
|
])) : t.validation ? (w(), z("div", Vm, [
|
|
2160
2160
|
H(o, {
|
|
2161
2161
|
type: t.validation.validationStatus
|
|
@@ -2165,7 +2165,7 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
|
|
|
2165
2165
|
]),
|
|
2166
2166
|
_: 1
|
|
2167
2167
|
}, 8, ["type"])
|
|
2168
|
-
])) :
|
|
2168
|
+
])) : j("", !0);
|
|
2169
2169
|
};
|
|
2170
2170
|
}
|
|
2171
2171
|
}), me = {
|
|
@@ -2240,7 +2240,7 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
|
|
|
2240
2240
|
emits: ["update:value", "update:params", "submit", "click:add-line", "click:remove-line", "click:save-template"],
|
|
2241
2241
|
setup(t, { expose: e, emit: i }) {
|
|
2242
2242
|
var v;
|
|
2243
|
-
const n = t, s = i, r = nt("form-reference"), o =
|
|
2243
|
+
const n = t, s = i, r = nt("form-reference"), o = U(!1), a = U(bi(n.value)), l = O(() => {
|
|
2244
2244
|
var y, $, k;
|
|
2245
2245
|
const m = {
|
|
2246
2246
|
"configuratorParams.length": [
|
|
@@ -2274,7 +2274,7 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
|
|
|
2274
2274
|
dt.serverValidation((_ = n.validation[`lines_angles[${B + 1}]`]) == null ? void 0 : _.feedback)
|
|
2275
2275
|
];
|
|
2276
2276
|
}), m;
|
|
2277
|
-
}), c =
|
|
2277
|
+
}), c = U(n.settings.canSetDopProdaga ?? !1), u = O(() => {
|
|
2278
2278
|
var T;
|
|
2279
2279
|
const { length: m } = a.value.configuratorParams, { quantity: y } = a.value, $ = ((T = a.value.product) == null ? void 0 : T.costRub) || 0;
|
|
2280
2280
|
if (!m || !y || $ === 0)
|
|
@@ -2351,9 +2351,9 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
|
|
|
2351
2351
|
}, null, 8, ["value", "options"])
|
|
2352
2352
|
]),
|
|
2353
2353
|
_: 1
|
|
2354
|
-
})) :
|
|
2354
|
+
})) : j("", !0),
|
|
2355
2355
|
R("div", qm, [
|
|
2356
|
-
(w(!0), z(
|
|
2356
|
+
(w(!0), z($e, null, Xt(a.value.configuratorParams.linesAngles, (_, S) => (w(), z("div", {
|
|
2357
2357
|
key: S,
|
|
2358
2358
|
class: "flex items-start gap-2"
|
|
2359
2359
|
}, [
|
|
@@ -2409,7 +2409,7 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
|
|
|
2409
2409
|
class: "shrink-0"
|
|
2410
2410
|
}, {
|
|
2411
2411
|
default: I(() => [
|
|
2412
|
-
t.settings.showOnlyTemplates ?
|
|
2412
|
+
t.settings.showOnlyTemplates ? j("", !0) : (w(), Q(E(De), {
|
|
2413
2413
|
key: 0,
|
|
2414
2414
|
size: "medium",
|
|
2415
2415
|
onClick: (b) => s("click:add-line", S)
|
|
@@ -2419,7 +2419,7 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
|
|
|
2419
2419
|
]),
|
|
2420
2420
|
_: 1
|
|
2421
2421
|
}, 8, ["onClick"])),
|
|
2422
|
-
t.settings.showOnlyTemplates ?
|
|
2422
|
+
t.settings.showOnlyTemplates ? j("", !0) : (w(), Q(E(De), {
|
|
2423
2423
|
key: 1,
|
|
2424
2424
|
disabled: a.value.configuratorParams.linesWidths.length === 1,
|
|
2425
2425
|
size: "medium",
|
|
@@ -2454,14 +2454,14 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
|
|
|
2454
2454
|
}, null, 8, ["value", "options"])
|
|
2455
2455
|
]),
|
|
2456
2456
|
_: 1
|
|
2457
|
-
})) :
|
|
2457
|
+
})) : j("", !0),
|
|
2458
2458
|
H(zo, {
|
|
2459
2459
|
"is-product-searching": t.isProductSearching,
|
|
2460
2460
|
product: a.value.product,
|
|
2461
2461
|
validation: t.validation.product
|
|
2462
2462
|
}, null, 8, ["is-product-searching", "product", "validation"]),
|
|
2463
|
-
h.value ?
|
|
2464
|
-
g.value ?
|
|
2463
|
+
h.value ? j("", !0) : (w(), z("div", Gm, " Суммарная ширина участков гиба должна быть от " + Y(t.settings.stripMinWidth) + " до " + Y(t.settings.stripMaxWidth) + " мм., текущая ширина: " + Y(d.value) + " мм. ", 1)),
|
|
2464
|
+
g.value ? j("", !0) : (w(), z("div", Km, " Пожалуйста, заполните все обязательные поля корректно. ")),
|
|
2465
2465
|
t.settings.allowSaveTemplates && t.selectTemplateIndex === ((B = t.settings.allTemplates) == null ? void 0 : B.length) - 1 ? (w(), Q(E(De), {
|
|
2466
2466
|
key: 4,
|
|
2467
2467
|
type: "tertiary",
|
|
@@ -2473,7 +2473,7 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
|
|
|
2473
2473
|
ie(" Сохранить шаблон ", -1)
|
|
2474
2474
|
])]),
|
|
2475
2475
|
_: 1
|
|
2476
|
-
}, 8, ["loading"])) :
|
|
2476
|
+
}, 8, ["loading"])) : j("", !0)
|
|
2477
2477
|
]),
|
|
2478
2478
|
R("div", Zm, [
|
|
2479
2479
|
H(E(tt), {
|
|
@@ -2569,11 +2569,11 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
|
|
|
2569
2569
|
ie(" ДопПродажа ", -1)
|
|
2570
2570
|
])]),
|
|
2571
2571
|
_: 1
|
|
2572
|
-
}, 8, ["checked"])) :
|
|
2572
|
+
}, 8, ["checked"])) : j("", !0),
|
|
2573
2573
|
u.value ? (w(), z("div", Qm, [
|
|
2574
2574
|
y[24] || (y[24] = ie(" ИТОГО: ", -1)),
|
|
2575
2575
|
R("span", Jm, Y(u.value) + " ₽", 1)
|
|
2576
|
-
])) :
|
|
2576
|
+
])) : j("", !0),
|
|
2577
2577
|
R("div", ev, [
|
|
2578
2578
|
H(E(De), {
|
|
2579
2579
|
loading: t.isSubmitProcessing,
|
|
@@ -9258,19 +9258,19 @@ var Rh = Zl, Yc = {
|
|
|
9258
9258
|
r && (t.lineWidth = an(this)), d && (t.miterLimit = d), u && (t.lineJoin = u), !h && c && (t.lineCap = c);
|
|
9259
9259
|
}
|
|
9260
9260
|
typeof a == "number" && (t.globalAlpha = a), X && X.length > 0 && (t.lineDashOffset = X.offset || 0, t.setLineDash(X)), t.beginPath();
|
|
9261
|
-
let K,
|
|
9261
|
+
let K, q, G, Z, re, _e, pe;
|
|
9262
9262
|
for (let fe = 0; fe < f; fe++)
|
|
9263
9263
|
switch (y = g[fe], N = y.x, M = y.y, y.command) {
|
|
9264
9264
|
case de.close:
|
|
9265
9265
|
t.closePath();
|
|
9266
9266
|
break;
|
|
9267
9267
|
case de.arc:
|
|
9268
|
-
K = y.rx,
|
|
9268
|
+
K = y.rx, q = y.ry, G = y.xAxisRotation, Z = y.largeArcFlag, re = y.sweepFlag, v = h ? xi(fe - 1, f) : Qa(fe - 1, 0), m = g[v], _e = m.x, pe = m.y, He.renderSvgArcCommand(
|
|
9269
9269
|
t,
|
|
9270
9270
|
_e,
|
|
9271
9271
|
pe,
|
|
9272
9272
|
K,
|
|
9273
|
-
|
|
9273
|
+
q,
|
|
9274
9274
|
Z,
|
|
9275
9275
|
re,
|
|
9276
9276
|
G,
|
|
@@ -10045,7 +10045,7 @@ var Ti = {
|
|
|
10045
10045
|
B && (y.lineWidth = an(e)), F && (y.miterLimit = F), P && (y.lineJoin = P), !D && b && (y.lineCap = b);
|
|
10046
10046
|
}
|
|
10047
10047
|
typeof S == "number" && (y.globalAlpha = S), N && N.length > 0 && (y.lineDashOffset = N.offset || 0, y.setLineDash(N));
|
|
10048
|
-
let X, ee, K,
|
|
10048
|
+
let X, ee, K, q, G, Z, re, _e;
|
|
10049
10049
|
y.save(), y.scale(k.x, k.y), y.translate(ce, V), y.beginPath();
|
|
10050
10050
|
for (let pe = 0; pe < v.length; pe++) {
|
|
10051
10051
|
const fe = v[pe];
|
|
@@ -10054,7 +10054,7 @@ var Ti = {
|
|
|
10054
10054
|
y.closePath();
|
|
10055
10055
|
break;
|
|
10056
10056
|
case de.arc:
|
|
10057
|
-
ee = fe.rx, K = fe.ry,
|
|
10057
|
+
ee = fe.rx, K = fe.ry, q = fe.xAxisRotation, G = fe.largeArcFlag, Z = fe.sweepFlag, i = D ? xi(pe - 1, M) : Math.max(pe - 1, 0), n = v[i], re = n.x, _e = n.y, e0.renderSvgArcCommand(
|
|
10058
10058
|
y,
|
|
10059
10059
|
re,
|
|
10060
10060
|
_e,
|
|
@@ -10062,7 +10062,7 @@ var Ti = {
|
|
|
10062
10062
|
K,
|
|
10063
10063
|
G,
|
|
10064
10064
|
Z,
|
|
10065
|
-
|
|
10065
|
+
q,
|
|
10066
10066
|
g,
|
|
10067
10067
|
f
|
|
10068
10068
|
);
|
|
@@ -11855,7 +11855,7 @@ C(Et, "up", new Et(0, -1)), /**
|
|
|
11855
11855
|
*/
|
|
11856
11856
|
C(Et, "down", new Et(0, 1));
|
|
11857
11857
|
let Re = Et;
|
|
11858
|
-
class
|
|
11858
|
+
class je extends Re {
|
|
11859
11859
|
constructor(i = 0, n = 0, s = 0, r = 0, o = 0, a = 0, l = Ce.move) {
|
|
11860
11860
|
super(i, n);
|
|
11861
11861
|
C(this, "controls", {
|
|
@@ -11872,7 +11872,7 @@ class Ve extends Re {
|
|
|
11872
11872
|
for (let u in eu)
|
|
11873
11873
|
Object.defineProperty(this, u, eu[u]);
|
|
11874
11874
|
this.command = l, this.relative = !0;
|
|
11875
|
-
const c =
|
|
11875
|
+
const c = je.makeBroadcast(this);
|
|
11876
11876
|
this.controls.left.set(s, r).addEventListener(ae.Types.change, c), this.controls.right.set(o, a).addEventListener(ae.Types.change, c);
|
|
11877
11877
|
}
|
|
11878
11878
|
static makeBroadcast(i) {
|
|
@@ -11890,7 +11890,7 @@ class Ve extends Re {
|
|
|
11890
11890
|
* @nota-bene Works in conjunction with {@link Two.Anchor#toObject}
|
|
11891
11891
|
*/
|
|
11892
11892
|
static fromObject(i) {
|
|
11893
|
-
return new
|
|
11893
|
+
return new je().copy(i);
|
|
11894
11894
|
}
|
|
11895
11895
|
/**
|
|
11896
11896
|
* @name Two.Anchor#copy
|
|
@@ -11908,7 +11908,7 @@ class Ve extends Re {
|
|
|
11908
11908
|
* @description Create a new {@link Two.Anchor}, set all its values to the current instance and return it for use.
|
|
11909
11909
|
*/
|
|
11910
11910
|
clone() {
|
|
11911
|
-
return new
|
|
11911
|
+
return new je().copy(this);
|
|
11912
11912
|
}
|
|
11913
11913
|
/**
|
|
11914
11914
|
* @name Two.Anchor#toObject
|
|
@@ -12227,11 +12227,11 @@ function Eh(t, e, i, n, s, r, o, a, l) {
|
|
|
12227
12227
|
l = l || _o.RecursionLimit;
|
|
12228
12228
|
const c = l + 1;
|
|
12229
12229
|
if (Math.abs(t - o) < 1e-3 && Math.abs(e - a) < 1e-3)
|
|
12230
|
-
return [new
|
|
12230
|
+
return [new je(o, a)];
|
|
12231
12231
|
const u = [];
|
|
12232
12232
|
for (let d = 0; d < c; d++) {
|
|
12233
12233
|
const h = d / c, g = wo(h, t, i, s, o), f = wo(h, e, n, r, a);
|
|
12234
|
-
u.push(new
|
|
12234
|
+
u.push(new je(g, f));
|
|
12235
12235
|
}
|
|
12236
12236
|
return u;
|
|
12237
12237
|
}
|
|
@@ -14349,7 +14349,7 @@ const Os = Math.min, zs = Math.max, T0 = Math.ceil, P0 = Math.floor, R0 = new Re
|
|
|
14349
14349
|
this.vertices = [];
|
|
14350
14350
|
for (let n = 0; n < i.vertices.length; n++) {
|
|
14351
14351
|
const s = i.vertices[n];
|
|
14352
|
-
s instanceof
|
|
14352
|
+
s instanceof je ? this.vertices.push(i.vertices[n].clone()) : this.vertices.push(new je().copy(s));
|
|
14353
14353
|
}
|
|
14354
14354
|
}
|
|
14355
14355
|
for (let n = 0; n < Ni.Properties.length; n++) {
|
|
@@ -14534,7 +14534,7 @@ const Os = Math.min, zs = Math.max, T0 = Math.ceil, P0 = Math.floor, R0 = new Re
|
|
|
14534
14534
|
} else return _;
|
|
14535
14535
|
y = _.controls && _.controls.right, m = B.controls && B.controls.left, l = _.x, g = _.y, c = (y || _).x, f = (y || _).y, u = (m || B).x, p = (m || B).y, d = B.x, v = B.y, y && _.relative && (c += _.x, f += _.y), m && B.relative && (u += B.x, p += B.y), a = wo(i, l, c, u, d), h = wo(i, g, f, p, v);
|
|
14536
14536
|
const S = Ri(l, c, i), b = Ri(g, f, i), P = Ri(c, u, i), F = Ri(f, p, i), D = Ri(u, d, i), N = Ri(p, v, i), M = Ri(S, P, i), A = Ri(b, F, i), J = Ri(P, D, i), ce = Ri(F, N, i);
|
|
14537
|
-
return Ye.isObject(n) ? (n.x = a, n.y = h, n instanceof
|
|
14537
|
+
return Ye.isObject(n) ? (n.x = a, n.y = h, n instanceof je && (n.controls.left.x = M, n.controls.left.y = A, n.controls.right.x = J, n.controls.right.y = ce, (typeof n.relative != "boolean" || n.relative) && (n.controls.left.x -= a, n.controls.left.y -= h, n.controls.right.x -= a, n.controls.right.y -= h)), n.t = i, n) : (o = new je(
|
|
14538
14538
|
a,
|
|
14539
14539
|
h,
|
|
14540
14540
|
M - a,
|
|
@@ -14575,14 +14575,14 @@ const Os = Math.min, zs = Math.max, T0 = Math.ceil, P0 = Math.floor, R0 = new Re
|
|
|
14575
14575
|
return;
|
|
14576
14576
|
}
|
|
14577
14577
|
if (l.command === Ce.move) {
|
|
14578
|
-
o.push(new
|
|
14578
|
+
o.push(new je(r.x, r.y)), c > 0 && (o[o.length - 1].command = Ce.line), r = l;
|
|
14579
14579
|
return;
|
|
14580
14580
|
}
|
|
14581
14581
|
a = du(l, r, i), o = o.concat(a), Ye.each(a, function(u, d) {
|
|
14582
14582
|
d <= 0 && r.command === Ce.move ? u.command = Ce.move : u.command = Ce.line;
|
|
14583
14583
|
}), c >= n && (this._closed && this._automatic && (r = l, a = du(l, r, i), o = o.concat(a), Ye.each(a, function(u, d) {
|
|
14584
14584
|
d <= 0 && r.command === Ce.move ? u.command = Ce.move : u.command = Ce.line;
|
|
14585
|
-
})), o.push(new
|
|
14585
|
+
})), o.push(new je(l.x, l.y)), o[o.length - 1].command = s ? Ce.close : Ce.line), r = l;
|
|
14586
14586
|
},
|
|
14587
14587
|
this
|
|
14588
14588
|
), this._automatic = !1, this._curved = !1, this.vertices = o, this;
|
|
@@ -14625,7 +14625,7 @@ const Os = Math.min, zs = Math.max, T0 = Math.ceil, P0 = Math.floor, R0 = new Re
|
|
|
14625
14625
|
const i = this._collection.length, n = this._closed, s = Math.min(this._beginning, this._ending), r = Math.max(this._beginning, this._ending), o = ko(this, s * this._length), a = ko(this, r * this._length), l = T0(o), c = P0(a);
|
|
14626
14626
|
let u, d, h, g, f, p;
|
|
14627
14627
|
for (this._renderer.vertices.length = 0, p = 0; p < i; p++)
|
|
14628
|
-
this._renderer.collection.length <= p && this._renderer.collection.push(new
|
|
14628
|
+
this._renderer.collection.length <= p && this._renderer.collection.push(new je()), p > c && !d ? (f = this._renderer.collection[p].copy(this._collection[p]), this.getPointAt(r, f), f.command = this._renderer.collection[p].command, this._renderer.vertices.push(f), d = f, h = this._collection[p - 1], h && h.controls && (f.relative ? f.controls.right.clear() : f.controls.right.copy(f), h.relative ? this._renderer.collection[p - 1].controls.right.copy(h.controls.right).lerp(Re.zero, 1 - f.t) : this._renderer.collection[p - 1].controls.right.copy(h.controls.right).lerp(h, 1 - f.t))) : p >= l && p <= c && (f = this._renderer.collection[p].copy(this._collection[p]), this._renderer.vertices.push(f), p === c && cu(this, r) ? (d = f, !n && d.controls && (d.relative ? d.controls.right.clear() : d.controls.right.copy(d))) : p === l && cu(this, s) && (u = f, u.command = Ce.move, !n && u.controls && (u.relative ? u.controls.left.clear() : u.controls.left.copy(u))));
|
|
14629
14629
|
l > 0 && !u && (p = l - 1, f = this._renderer.collection[p].copy(this._collection[p]), this.getPointAt(s, f), f.command = Ce.move, this._renderer.vertices.unshift(f), g = this._collection[p + 1], g && g.controls && (f.controls.left.clear(), g.relative ? this._renderer.collection[p + 1].controls.left.copy(g.controls.left).lerp(Re.zero, f.t) : (R0.copy(g), this._renderer.collection[p + 1].controls.left.copy(g.controls.left).lerp(g, f.t))));
|
|
14630
14630
|
}
|
|
14631
14631
|
return Tn.prototype._update.apply(this, arguments), this;
|
|
@@ -14971,7 +14971,7 @@ const F0 = Math.ceil, B0 = Math.floor, Qi = class Qi extends Tn {
|
|
|
14971
14971
|
super.copy.call(this, i);
|
|
14972
14972
|
for (let n = 0; n < i.vertices.length; n++) {
|
|
14973
14973
|
const s = i.vertices[n];
|
|
14974
|
-
s instanceof
|
|
14974
|
+
s instanceof je ? this.vertices.push(i.vertices[n].clone()) : this.vertices.push(new je().copy(s));
|
|
14975
14975
|
}
|
|
14976
14976
|
for (let n = 0; n < Qi.Properties.length; n++) {
|
|
14977
14977
|
const s = Qi.Properties[n];
|
|
@@ -15271,7 +15271,7 @@ const vn = class vn extends Ge {
|
|
|
15271
15271
|
constructor(i, n, s, r, o, a, l) {
|
|
15272
15272
|
const c = l || el.Resolution * 3, u = [];
|
|
15273
15273
|
for (let d = 0; d < c; d++)
|
|
15274
|
-
u.push(new
|
|
15274
|
+
u.push(new je());
|
|
15275
15275
|
super(u, !0, !1, !0);
|
|
15276
15276
|
/**
|
|
15277
15277
|
* @name Two.ArcSegment#_flagStartAngle
|
|
@@ -15470,7 +15470,7 @@ const pu = {
|
|
|
15470
15470
|
constructor(i, n, s, r) {
|
|
15471
15471
|
const o = r ? Math.max(r, 2) : 4, a = [];
|
|
15472
15472
|
for (let l = 0; l < o; l++)
|
|
15473
|
-
a.push(new
|
|
15473
|
+
a.push(new je(0, 0, 0, 0, 0, 0));
|
|
15474
15474
|
super(a, !0, !0, !0);
|
|
15475
15475
|
/**
|
|
15476
15476
|
* @name Two.Circle#_flagRadius
|
|
@@ -15597,7 +15597,7 @@ const mu = {
|
|
|
15597
15597
|
typeof r != "number" && typeof s == "number" && (r = s);
|
|
15598
15598
|
const a = o ? Math.max(o, 2) : 4, l = [];
|
|
15599
15599
|
for (let c = 0; c < a; c++)
|
|
15600
|
-
l.push(new
|
|
15600
|
+
l.push(new je());
|
|
15601
15601
|
super(l, !0, !0, !0);
|
|
15602
15602
|
/**
|
|
15603
15603
|
* @name Two.Ellipse#_flagWidth
|
|
@@ -15832,7 +15832,7 @@ const vu = {
|
|
|
15832
15832
|
s > i && (this.vertices.splice(i - 1, s - i), s = i);
|
|
15833
15833
|
for (let r = 0; r < n; r++) {
|
|
15834
15834
|
const o = (r + 0.5) / i, a = gs * o + Math.PI / 2, l = this._width * A0(a) / 2, c = this._height * M0(a) / 2;
|
|
15835
|
-
r >= s ? this.vertices.push(new
|
|
15835
|
+
r >= s ? this.vertices.push(new je(l, c)) : this.vertices[r].set(l, c), this.vertices[r].command = r === 0 ? Ce.move : Ce.line;
|
|
15836
15836
|
}
|
|
15837
15837
|
}
|
|
15838
15838
|
return super._update.call(this), this;
|
|
@@ -15924,10 +15924,10 @@ const yu = {
|
|
|
15924
15924
|
}, ls = class ls extends Ge {
|
|
15925
15925
|
constructor(i, n, s, r) {
|
|
15926
15926
|
const o = [
|
|
15927
|
-
new
|
|
15928
|
-
new
|
|
15929
|
-
new
|
|
15930
|
-
new
|
|
15927
|
+
new je(),
|
|
15928
|
+
new je(),
|
|
15929
|
+
new je(),
|
|
15930
|
+
new je()
|
|
15931
15931
|
// new Anchor() // TODO: Figure out how to handle this for `beginning` / `ending` animations
|
|
15932
15932
|
];
|
|
15933
15933
|
super(o, !0, !1, !0);
|
|
@@ -15998,7 +15998,7 @@ const yu = {
|
|
|
15998
15998
|
_update() {
|
|
15999
15999
|
if (this._flagVertices || this._flagWidth || this._flagHeight) {
|
|
16000
16000
|
const i = this._width / 2, n = this._height / 2;
|
|
16001
|
-
!this._closed && this.vertices.length === 4 && this.vertices.push(new
|
|
16001
|
+
!this._closed && this.vertices.length === 4 && this.vertices.push(new je()), this.vertices[0].set(-i, -n).sub(this._origin).command = Ce.move, this.vertices[1].set(i, -n).sub(this._origin).command = Ce.line, this.vertices[2].set(i, n).sub(this._origin).command = Ce.line, this.vertices[3].set(-i, n).sub(this._origin).command = Ce.line, this.vertices[4] && (this.vertices[4].set(-i, -n).sub(this._origin).command = Ce.line);
|
|
16002
16002
|
}
|
|
16003
16003
|
return super._update.call(this), this;
|
|
16004
16004
|
}
|
|
@@ -16078,7 +16078,7 @@ const bu = {
|
|
|
16078
16078
|
const a = [];
|
|
16079
16079
|
for (let l = 0; l < 10; l++)
|
|
16080
16080
|
a.push(
|
|
16081
|
-
new
|
|
16081
|
+
new je(0, 0, 0, 0, 0, 0, l === 0 ? Ce.move : Ce.curve)
|
|
16082
16082
|
);
|
|
16083
16083
|
super(a);
|
|
16084
16084
|
/**
|
|
@@ -16334,7 +16334,7 @@ const I0 = Math.cos, O0 = Math.sin, xn = class xn extends Ge {
|
|
|
16334
16334
|
s > i && (this.vertices.splice(i - 1, s - i), s = i);
|
|
16335
16335
|
for (let r = 0; r < n; r++) {
|
|
16336
16336
|
const o = (r + 0.5) / i, a = gs * o, l = (r % 2 ? this._outerRadius : this._innerRadius) / 2, c = l * I0(a), u = l * O0(a);
|
|
16337
|
-
r >= s ? this.vertices.push(new
|
|
16337
|
+
r >= s ? this.vertices.push(new je(c, u)) : this.vertices[r].set(c, u), this.vertices[r].command = r === 0 ? Ce.move : Ce.line;
|
|
16338
16338
|
}
|
|
16339
16339
|
}
|
|
16340
16340
|
return super._update.call(this), this;
|
|
@@ -18417,7 +18417,7 @@ function Ru(t, e) {
|
|
|
18417
18417
|
}
|
|
18418
18418
|
class co extends Ge {
|
|
18419
18419
|
constructor(e, i, n, s) {
|
|
18420
|
-
const r = [new
|
|
18420
|
+
const r = [new je(e, i), new je(n, s)];
|
|
18421
18421
|
super(r);
|
|
18422
18422
|
for (let o in Fu)
|
|
18423
18423
|
Object.defineProperty(this, o, Fu[o]);
|
|
@@ -18599,7 +18599,7 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18599
18599
|
},
|
|
18600
18600
|
emits: ["template:select", "init-draw-template", "remove-custom-template"],
|
|
18601
18601
|
setup(t, { emit: e }) {
|
|
18602
|
-
const i = t, n =
|
|
18602
|
+
const i = t, n = U(!1), s = nt("drawing-template-containers"), r = nt("drawing-custom-template-containers"), o = e, a = (l) => {
|
|
18603
18603
|
n.value = !0, o("remove-custom-template", l, () => {
|
|
18604
18604
|
n.value = !1;
|
|
18605
18605
|
});
|
|
@@ -18642,7 +18642,7 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18642
18642
|
}, {
|
|
18643
18643
|
default: I(() => [
|
|
18644
18644
|
R("div", j0, [
|
|
18645
|
-
(w(!0), z(
|
|
18645
|
+
(w(!0), z($e, null, Xt(t.settings.allTemplates, (d, h) => (w(), z("div", {
|
|
18646
18646
|
key: `${d.id}-${h}`,
|
|
18647
18647
|
class: "group relative"
|
|
18648
18648
|
}, [
|
|
@@ -18652,7 +18652,7 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18652
18652
|
}, {
|
|
18653
18653
|
trigger: I(() => [
|
|
18654
18654
|
R("div", {
|
|
18655
|
-
class:
|
|
18655
|
+
class: Ue(["relative h-10 w-24 shrink-0 rounded-md border-2 border-solid border-slate-200", { "!border-green-700": h === t.selectTemplateIndex }]),
|
|
18656
18656
|
onClick: (g) => o("template:select", h)
|
|
18657
18657
|
}, [
|
|
18658
18658
|
R("div", q0, [
|
|
@@ -18683,7 +18683,7 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18683
18683
|
H(u)
|
|
18684
18684
|
]),
|
|
18685
18685
|
_: 1
|
|
18686
|
-
}, 8, ["loading", "disabled", "onClick"])) :
|
|
18686
|
+
}, 8, ["loading", "disabled", "onClick"])) : j("", !0)
|
|
18687
18687
|
]))), 128))
|
|
18688
18688
|
])
|
|
18689
18689
|
]),
|
|
@@ -18723,25 +18723,25 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18723
18723
|
V[0].start.x = 0, V[0].start.y = 0;
|
|
18724
18724
|
let ee = 0;
|
|
18725
18725
|
for (let K = 0; K < V.length; K++) {
|
|
18726
|
-
const
|
|
18726
|
+
const q = V[K], G = V[K - 1] ?? new Cn(0, ee);
|
|
18727
18727
|
ee += !X || K > 1 ? G.angle : 0;
|
|
18728
|
-
const Z = (!X || K > 0 ?
|
|
18729
|
-
if (V[K].end.x =
|
|
18728
|
+
const Z = (!X || K > 0 ? q.angle : 0) + ee;
|
|
18729
|
+
if (V[K].end.x = q.width * Math.cos(Z * Math.PI / 180) + V[K].start.x, V[K].end.y = q.width * Math.sin(Z * Math.PI / 180) + V[K].start.y, K < V.length - 1) {
|
|
18730
18730
|
const re = K + 1;
|
|
18731
18731
|
V[re].start.x = V[K].end.x, V[re].start.y = V[K].end.y;
|
|
18732
18732
|
}
|
|
18733
18733
|
}
|
|
18734
18734
|
return V;
|
|
18735
|
-
}, p = (V, X, ee, K,
|
|
18735
|
+
}, p = (V, X, ee, K, q = !1) => {
|
|
18736
18736
|
let G = f([...ee, ...K]);
|
|
18737
18737
|
X.length > 0 && (G = [...f(X), ...G]);
|
|
18738
18738
|
let Z = 0, re = 0, _e = 0, pe = 0;
|
|
18739
|
-
G.forEach((
|
|
18740
|
-
Z = Math.min(Z,
|
|
18739
|
+
G.forEach((Xe) => {
|
|
18740
|
+
Z = Math.min(Z, Xe.start.x, Xe.end.x), re = Math.min(re, Xe.start.y, Xe.end.y), _e = Math.max(_e, Xe.start.x, Xe.end.x), pe = Math.max(pe, Xe.start.y, Xe.end.y);
|
|
18741
18741
|
});
|
|
18742
|
-
let fe,
|
|
18743
|
-
Z === 0 && re === 0 && _e === 0 && pe === 0 ? (fe = 1,
|
|
18744
|
-
const ot = Math.min(fe,
|
|
18742
|
+
let fe, qe;
|
|
18743
|
+
Z === 0 && re === 0 && _e === 0 && pe === 0 ? (fe = 1, qe = 1) : (fe = V.width / Math.abs(_e - Z), qe = (q ? V.height : V.height - at.colorSideLabel.size) / Math.abs(pe - re));
|
|
18744
|
+
const ot = Math.min(fe, qe);
|
|
18745
18745
|
return Z = Z < 0 ? -Z * ot : 0, re = re < 0 ? -re * ot : 0, [ot, Z, re];
|
|
18746
18746
|
}, v = (V) => {
|
|
18747
18747
|
const X = new Co([V]);
|
|
@@ -18752,13 +18752,13 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18752
18752
|
K.bind(ae.Types.change, () => {
|
|
18753
18753
|
ee.vertices[0].copy(K);
|
|
18754
18754
|
});
|
|
18755
|
-
const
|
|
18756
|
-
X.add(
|
|
18755
|
+
const q = v(K);
|
|
18756
|
+
X.add(q);
|
|
18757
18757
|
}
|
|
18758
18758
|
V.forEach((ee, K) => {
|
|
18759
|
-
const
|
|
18759
|
+
const q = V[K + 1], G = new Re(ee.vertices[1].x, ee.vertices[1].y);
|
|
18760
18760
|
G.bind(ae.Types.change, () => {
|
|
18761
|
-
ee.vertices[1].copy(G),
|
|
18761
|
+
ee.vertices[1].copy(G), q !== void 0 && q.vertices[0].copy(G);
|
|
18762
18762
|
});
|
|
18763
18763
|
const Z = v(G);
|
|
18764
18764
|
X.add(Z);
|
|
@@ -18766,22 +18766,22 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18766
18766
|
}, y = (V) => V * (Math.PI / 180), $ = (V, X, ee) => {
|
|
18767
18767
|
const K = X.vertices.length - 1;
|
|
18768
18768
|
V.position.x = X.vertices[K].x, V.position.y = X.vertices[K].y;
|
|
18769
|
-
const
|
|
18770
|
-
V.rotation = y(ee) +
|
|
18769
|
+
const q = Math.atan2(X.vertices[K].y - X.vertices[0].y, X.vertices[K].x - X.vertices[0].x);
|
|
18770
|
+
V.rotation = y(ee) + q;
|
|
18771
18771
|
}, k = (V, X, ee) => {
|
|
18772
18772
|
if (X.vertices[0] === void 0)
|
|
18773
18773
|
return;
|
|
18774
18774
|
V.position.x = X.vertices[0].x, V.position.y = X.vertices[0].y;
|
|
18775
|
-
const K = X.vertices.length - 1,
|
|
18776
|
-
V.rotation = y(ee) +
|
|
18775
|
+
const K = X.vertices.length - 1, q = Math.atan2(X.vertices[K].y - X.vertices[0].y, X.vertices[K].x - X.vertices[0].x);
|
|
18776
|
+
V.rotation = y(ee) + q;
|
|
18777
18777
|
}, T = (V, X, ee) => {
|
|
18778
18778
|
const K = new Sn();
|
|
18779
18779
|
if (V.length === 0)
|
|
18780
18780
|
return K;
|
|
18781
|
-
const
|
|
18781
|
+
const q = [];
|
|
18782
18782
|
return [...V].reverse().forEach((G, Z) => {
|
|
18783
|
-
Z !== 0 && G.angle > 0 && (G.angle *= -1),
|
|
18784
|
-
}), V = f(
|
|
18783
|
+
Z !== 0 && G.angle > 0 && (G.angle *= -1), q.push(G);
|
|
18784
|
+
}), V = f(q, !0), k(K, X, V[0].angle), [X.vertices[0], X.vertices[1]].forEach((G) => {
|
|
18785
18785
|
G.bind(ae.Types.change, () => {
|
|
18786
18786
|
k(K, X, V[0].angle);
|
|
18787
18787
|
});
|
|
@@ -18791,55 +18791,55 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18791
18791
|
}), K;
|
|
18792
18792
|
}, B = (V, X, ee) => {
|
|
18793
18793
|
const K = new Sn();
|
|
18794
|
-
return V.length === 0 || (V = f(V, !0), $(K, X, V[0].angle), [X.vertices[0], X.vertices[1]].forEach((
|
|
18795
|
-
|
|
18794
|
+
return V.length === 0 || (V = f(V, !0), $(K, X, V[0].angle), [X.vertices[0], X.vertices[1]].forEach((q) => {
|
|
18795
|
+
q.bind(ae.Types.change, () => {
|
|
18796
18796
|
$(K, X, V[0].angle);
|
|
18797
18797
|
});
|
|
18798
|
-
}), V.forEach((
|
|
18799
|
-
const G =
|
|
18798
|
+
}), V.forEach((q) => {
|
|
18799
|
+
const G = q.start.x * ee, Z = q.end.x * ee, re = q.start.y * ee, _e = q.end.y * ee, pe = new co(G, re, Z, _e);
|
|
18800
18800
|
pe.linewidth = at.line.size, pe.stroke = at.line.color, K.add(pe);
|
|
18801
18801
|
})), K;
|
|
18802
18802
|
}, _ = (V, X, ee, K) => {
|
|
18803
|
-
const
|
|
18803
|
+
const q = X.vertices[0].x + (X.vertices[1].x - X.vertices[0].x) / 2 - 8 * Math.sin(V.angle * Math.PI / 180), G = X.vertices[0].y + (X.vertices[1].y - X.vertices[0].y) / 2 - 8 * Math.cos(V.angle * Math.PI / 180), Z = new qs(V.label, q + 10, G - 10);
|
|
18804
18804
|
let re;
|
|
18805
18805
|
Z.size = at.lineLabel.size, Z.weight = 600, Z.fill = at.lineLabel.color, Z.id += 1, Z.rotation = at.lineLabel.rotation, K > 0 && (re = new qs(`${V.angle}°`, X.vertices[0].x + 25, X.vertices[0].y - 25), re.size = at.angleLabel.size, re.weight = 600, re.fill = at.angleLabel.color, re.rotation = at.angleLabel.rotation, re.id += K, r.push(re), ee.add(re)), ee.add(Z), b(Z, X, 0, re), b(Z, X, 1);
|
|
18806
18806
|
}, S = () => {
|
|
18807
|
-
const { size: V } = at.colorSideLabel, X = 0, ee = 0, K = d.value ? V / 2 : V / 2 - V,
|
|
18807
|
+
const { size: V } = at.colorSideLabel, X = 0, ee = 0, K = d.value ? V / 2 : V / 2 - V, q = d.value ? V / 2 - V : V / 2, G = new Sn();
|
|
18808
18808
|
if (!l)
|
|
18809
18809
|
return G;
|
|
18810
|
-
const Z = 5, re = Math.atan2(
|
|
18811
|
-
new
|
|
18812
|
-
new
|
|
18813
|
-
new
|
|
18814
|
-
new
|
|
18815
|
-
new
|
|
18810
|
+
const Z = 5, re = Math.atan2(q - K, ee - X), _e = [
|
|
18811
|
+
new je(X, K, 0, 0, 0, 0, Ji.Commands.move),
|
|
18812
|
+
new je(ee, q, 0, 0, 0, 0, Ji.Commands.line),
|
|
18813
|
+
new je(ee - Z * Math.cos(re - Math.PI / 4), q - Z * Math.sin(re - Math.PI / 4), 0, 0, 0, 0, Ji.Commands.line),
|
|
18814
|
+
new je(ee, q, 0, 0, 0, 0, Ji.Commands.move),
|
|
18815
|
+
new je(ee - Z * Math.cos(re + Math.PI / 4), q - Z * Math.sin(re + Math.PI / 4), 0, 0, 0, 0, Ji.Commands.line)
|
|
18816
18816
|
], pe = new Ge(_e, !1, !1, !0);
|
|
18817
18817
|
pe.noFill(), pe.cap = "round", pe.join = "round", pe.linewidth = V / 7, pe.stroke = at.colorSideLabel.color, G.add(pe);
|
|
18818
18818
|
const fe = new qs(d.value ? "Цвет снизу" : "Цвет сверху", 10, 0);
|
|
18819
18819
|
fe.size = V, fe.weight = 600, fe.fill = at.colorSideLabel.color, fe.alignment = "left", G.add(fe);
|
|
18820
|
-
const
|
|
18821
|
-
return G.position.x = (l.width -
|
|
18820
|
+
const qe = G.getBoundingClientRect();
|
|
18821
|
+
return G.position.x = (l.width - qe.width) * c + 10, G.position.y = d.value ? l.height + qe.height * 2 : qe.height / 2, G;
|
|
18822
18822
|
}, b = (V, X, ee, K) => {
|
|
18823
18823
|
X.vertices[ee].bind(ae.Types.change, () => {
|
|
18824
|
-
const
|
|
18824
|
+
const q = X.vertices.length - 1, G = Math.atan2(X.vertices[0].y - X.vertices[q].y, X.vertices[0].x - X.vertices[q].x) * 180 / Math.PI, Z = X.vertices[0].x + (X.vertices[q].x - X.vertices[0].x) / 2 - 8 * Math.sin(G * Math.PI / 180), re = X.vertices[0].y + (X.vertices[q].y - X.vertices[0].y) / 2 - 8 * Math.cos(G * Math.PI / 180);
|
|
18825
18825
|
V.position.x = Z + 10, V.position.y = re - 10, V.rotation = -0.5, K && (K.position.x = X.vertices[0].x + 25, K.position.y = X.vertices[0].y - 25);
|
|
18826
18826
|
});
|
|
18827
|
-
}, P = (V, X, ee, K,
|
|
18827
|
+
}, P = (V, X, ee, K, q = !1) => {
|
|
18828
18828
|
var Ci;
|
|
18829
18829
|
if (V.clear(), ee.length === 0) {
|
|
18830
18830
|
V.update();
|
|
18831
18831
|
return;
|
|
18832
18832
|
}
|
|
18833
|
-
const G = f(ee), [Z, re, _e] = p(V, X, G, K,
|
|
18834
|
-
|
|
18833
|
+
const G = f(ee), [Z, re, _e] = p(V, X, G, K, q), pe = new Sn(), fe = new Array(), qe = new Array();
|
|
18834
|
+
q || (r = [], o = []), G.forEach((Ne, Mi) => {
|
|
18835
18835
|
const Ei = Ne.start.x * Z + re, Kt = Ne.end.x * Z + re, ui = Ne.start.y * Z + _e, Ii = Ne.end.y * Z + _e, Ot = new co(Ei, ui, Kt, Ii);
|
|
18836
|
-
Ot.linewidth =
|
|
18836
|
+
Ot.linewidth = q ? at.previewLine.size : at.line.size, Ot.stroke = q ? at.previewLine.color : at.line.color, o.push(Ot), fe.push(Ot), pe.add(Ot), !q && Ne.label !== "" && _(Ne, Ot, pe, Mi);
|
|
18837
18837
|
});
|
|
18838
18838
|
const ot = fe.at(-1);
|
|
18839
|
-
let
|
|
18840
|
-
if (!
|
|
18839
|
+
let Xe = pe.getBoundingClientRect();
|
|
18840
|
+
if (!q) {
|
|
18841
18841
|
const Ne = S();
|
|
18842
|
-
|
|
18842
|
+
qe.push(Ne);
|
|
18843
18843
|
}
|
|
18844
18844
|
if (X.length > 0) {
|
|
18845
18845
|
const Ne = T(X, fe[0], Z);
|
|
@@ -18849,7 +18849,7 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18849
18849
|
const Ne = B(K, ot, Z);
|
|
18850
18850
|
pe.add(Ne);
|
|
18851
18851
|
}
|
|
18852
|
-
if (
|
|
18852
|
+
if (qe.push(pe), V.makeGroup(qe), Xe = pe.getBoundingClientRect(), pe.position.x = 0 - Xe.left + (V.width - Xe.width) / (2 * (q ? 1 : c)), pe.position.y = 0 - Xe.top + (V.height - Xe.height) / (2 * (q ? 1 : c)), V.update(), !q) {
|
|
18853
18853
|
const Ne = ((Ci = i.value.configuratorParams) == null ? void 0 : Ci.colorSide) === "top";
|
|
18854
18854
|
pe.position.y = pe.position.y + at.colorSideLabel.size * Number(Ne), m(fe, pe), V.update();
|
|
18855
18855
|
}
|
|
@@ -18864,12 +18864,12 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18864
18864
|
}, D = () => {
|
|
18865
18865
|
l && P(l, h.value, u.value, g.value, !1);
|
|
18866
18866
|
}, N = (V) => V * (180 / Math.PI), M = (V, X) => {
|
|
18867
|
-
const ee = V[1].x - V[0].x, K = V[1].y - V[0].y,
|
|
18868
|
-
let Z = Math.atan2(ee * G - K *
|
|
18867
|
+
const ee = V[1].x - V[0].x, K = V[1].y - V[0].y, q = X[1].x - X[0].x, G = X[1].y - X[0].y;
|
|
18868
|
+
let Z = Math.atan2(ee * G - K * q, ee * q + K * G);
|
|
18869
18869
|
return Z = N(Z), Math.round(Z) * -1;
|
|
18870
18870
|
}, A = (V) => {
|
|
18871
|
-
const X = o.map((ee, K,
|
|
18872
|
-
const G =
|
|
18871
|
+
const X = o.map((ee, K, q) => {
|
|
18872
|
+
const G = q[K - 1] ?? {
|
|
18873
18873
|
vertices: [
|
|
18874
18874
|
{ x: -10, y: 0 },
|
|
18875
18875
|
{ x: 0, y: 0 }
|
|
@@ -18877,7 +18877,7 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18877
18877
|
};
|
|
18878
18878
|
let Z = Math.ceil(ee._length / V / i.settings.lineWidthStep) * i.settings.lineWidthStep;
|
|
18879
18879
|
const re = r[K - 1];
|
|
18880
|
-
Z < (
|
|
18880
|
+
Z < (q.length > 1 ? i.settings.minLineWidth : i.settings.stripMinWidth) && (Z = q.length > 1 ? i.settings.minLineWidth : i.settings.stripMinWidth), Z > i.settings.maxLineWidth && (Z = i.settings.maxLineWidth);
|
|
18881
18881
|
const _e = M(ee.vertices, G.vertices);
|
|
18882
18882
|
return re && (re.value = `${_e}°`), new Cn(Z, _e, `A-${K + 1}`);
|
|
18883
18883
|
});
|
|
@@ -18894,7 +18894,7 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18894
18894
|
u.value.map((_e) => _e),
|
|
18895
18895
|
g.value
|
|
18896
18896
|
);
|
|
18897
|
-
},
|
|
18897
|
+
}, q = (re) => {
|
|
18898
18898
|
if (X) {
|
|
18899
18899
|
const _e = X.renderer, pe = _e == null ? void 0 : _e.elem;
|
|
18900
18900
|
if (!pe) return;
|
|
@@ -18904,7 +18904,7 @@ const jo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
|
|
|
18904
18904
|
}, G = () => {
|
|
18905
18905
|
X && n("pointer:up", u.value), X = null;
|
|
18906
18906
|
}, Z = s.value;
|
|
18907
|
-
Z && (Z.addEventListener("touchstart", K, { passive: !0 }), Z.addEventListener("touchend", G, { passive: !0 }), Z.addEventListener("mousedown", K), Z.addEventListener("mouseup", G), Z.addEventListener("mousemove",
|
|
18907
|
+
Z && (Z.addEventListener("touchstart", K, { passive: !0 }), Z.addEventListener("touchend", G, { passive: !0 }), Z.addEventListener("mousedown", K), Z.addEventListener("mouseup", G), Z.addEventListener("mousemove", q), Z.addEventListener("touchmove", q, { passive: !0 }));
|
|
18908
18908
|
}, ce = (V, X) => {
|
|
18909
18909
|
n("remove-custom-template", V, X);
|
|
18910
18910
|
};
|
|
@@ -19153,14 +19153,14 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19153
19153
|
},
|
|
19154
19154
|
emits: ["submit", "click:view-switch"],
|
|
19155
19155
|
setup(t, { emit: e }) {
|
|
19156
|
-
const i = t, n = e, s =
|
|
19156
|
+
const i = t, n = e, s = U(!1), r = U(!1), o = U(!1), a = U(i.cartItem), l = U(new ty(i.settings)), c = U({
|
|
19157
19157
|
linesWidths: [...i.cartItem.configuratorParams.linesWidths],
|
|
19158
19158
|
linesAngles: [...i.cartItem.configuratorParams.linesAngles]
|
|
19159
|
-
}), u =
|
|
19159
|
+
}), u = U({
|
|
19160
19160
|
quantity: {},
|
|
19161
19161
|
marker: {},
|
|
19162
19162
|
length: {}
|
|
19163
|
-
}), d =
|
|
19163
|
+
}), d = U(0), h = nt("kozyrek-configurator-params-form"), g = (b = 0) => {
|
|
19164
19164
|
var F;
|
|
19165
19165
|
const P = (F = l.value.allTemplates) == null ? void 0 : F.at(b);
|
|
19166
19166
|
P !== void 0 && (d.value = b, a.value.configuratorParams.linesWidths = P.points.map((D) => _t(D) ? D[0] : D.width), a.value.configuratorParams.linesAngles = P.points.map((D) => _t(D) ? D[1] : D.angle), $()), m(a.value.configuratorParams);
|
|
@@ -19256,7 +19256,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19256
19256
|
ie(" Показать в виде списка ", -1)
|
|
19257
19257
|
])]),
|
|
19258
19258
|
_: 1
|
|
19259
|
-
})) :
|
|
19259
|
+
})) : j("", !0),
|
|
19260
19260
|
R("div", ny, [
|
|
19261
19261
|
H(ey, {
|
|
19262
19262
|
value: a.value,
|
|
@@ -19313,20 +19313,20 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19313
19313
|
R("div", ay, [
|
|
19314
19314
|
o[1] || (o[1] = R("div", { class: "window" }, null, -1)),
|
|
19315
19315
|
R("div", {
|
|
19316
|
-
class:
|
|
19316
|
+
class: Ue(["net", `net-${t.configuratorParams.netType}`])
|
|
19317
19317
|
}, null, 2),
|
|
19318
19318
|
R("div", {
|
|
19319
|
-
class:
|
|
19319
|
+
class: Ue(["frame", `frame-${t.configuratorParams.color}`])
|
|
19320
19320
|
}, null, 2),
|
|
19321
19321
|
n.value ? (w(), z("div", {
|
|
19322
19322
|
key: 0,
|
|
19323
|
-
class:
|
|
19324
|
-
}, null, 2)) :
|
|
19323
|
+
class: Ue(["frame-crossbar", `frame-crossbar-${n.value}-${t.configuratorParams.color}`])
|
|
19324
|
+
}, null, 2)) : j("", !0),
|
|
19325
19325
|
R("div", {
|
|
19326
|
-
class:
|
|
19326
|
+
class: Ue(["mount", `mount-${t.configuratorParams.mountType}-${t.configuratorParams.color}`])
|
|
19327
19327
|
}, null, 2),
|
|
19328
19328
|
R("div", {
|
|
19329
|
-
class:
|
|
19329
|
+
class: Ue(["cut-preview", `cut-preview-${t.configuratorParams.mountType}-${t.configuratorParams.color}`])
|
|
19330
19330
|
}, null, 2)
|
|
19331
19331
|
]),
|
|
19332
19332
|
H(a, {
|
|
@@ -19364,7 +19364,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19364
19364
|
emits: ["update:value", "update:params", "submit", "click:instructions-toggle", "click:show-preview-drawer"],
|
|
19365
19365
|
setup(t, { expose: e, emit: i }) {
|
|
19366
19366
|
var _;
|
|
19367
|
-
const n = t, s = i, r = O(() => ci.isPhoneDevice()), o = nt("form-reference"), a = nt("width-form-item-reference"), l = nt("height-form-item-reference"), c = nt("width-input-reference"), u =
|
|
19367
|
+
const n = t, s = i, r = O(() => ci.isPhoneDevice()), o = nt("form-reference"), a = nt("width-form-item-reference"), l = nt("height-form-item-reference"), c = nt("width-input-reference"), u = U(bi(n.value)), d = O(() => n.settings.widthOverlaps[u.value.configuratorParams.mountType] ?? 0), h = O(() => n.settings.heightOverlaps[u.value.configuratorParams.mountType] ?? 0), g = O(() => n.settings.maxWidths[u.value.configuratorParams.netType]), f = O(() => n.settings.maxHeights[u.value.configuratorParams.netType]), p = O(() => u.value.configuratorParams.width ? u.value.configuratorParams.width + d.value : 0), v = O(() => u.value.configuratorParams.height ? u.value.configuratorParams.height + h.value : 0), m = U(n.settings.canSetDopProdaga ?? !1), y = O(() => ({
|
|
19368
19368
|
"configuratorParams.width": [
|
|
19369
19369
|
me.required,
|
|
19370
19370
|
me.min(n.settings.minWidth - d.value),
|
|
@@ -19512,7 +19512,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19512
19512
|
])]),
|
|
19513
19513
|
_: 1
|
|
19514
19514
|
})
|
|
19515
|
-
])) :
|
|
19515
|
+
])) : j("", !0)
|
|
19516
19516
|
]),
|
|
19517
19517
|
default: I(() => [
|
|
19518
19518
|
H(E($t), {
|
|
@@ -19557,7 +19557,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19557
19557
|
])]),
|
|
19558
19558
|
_: 1
|
|
19559
19559
|
})
|
|
19560
|
-
])) :
|
|
19560
|
+
])) : j("", !0)
|
|
19561
19561
|
]),
|
|
19562
19562
|
default: I(() => [
|
|
19563
19563
|
H(E($t), {
|
|
@@ -19628,7 +19628,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19628
19628
|
ie(" ДопПродажа ", -1)
|
|
19629
19629
|
])]),
|
|
19630
19630
|
_: 1
|
|
19631
|
-
}, 8, ["checked"])) :
|
|
19631
|
+
}, 8, ["checked"])) : j("", !0),
|
|
19632
19632
|
H(zo, {
|
|
19633
19633
|
"is-product-searching": t.isProductSearching,
|
|
19634
19634
|
product: u.value.product,
|
|
@@ -19637,8 +19637,8 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19637
19637
|
$.value ? (w(), z("div", hy, [
|
|
19638
19638
|
b[29] || (b[29] = ie(" ИТОГО: ", -1)),
|
|
19639
19639
|
R("span", fy, Y($.value) + " ₽", 1)
|
|
19640
|
-
])) :
|
|
19641
|
-
k.value ?
|
|
19640
|
+
])) : j("", !0),
|
|
19641
|
+
k.value ? j("", !0) : (w(), z("div", gy, " Пожалуйста, заполните все обязательные поля корректно. ")),
|
|
19642
19642
|
R("div", py, [
|
|
19643
19643
|
H(E(De), {
|
|
19644
19644
|
loading: t.isSubmitProcessing,
|
|
@@ -19661,7 +19661,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19661
19661
|
ie(" Предварительный просмотр ", -1)
|
|
19662
19662
|
])]),
|
|
19663
19663
|
_: 1
|
|
19664
|
-
})) :
|
|
19664
|
+
})) : j("", !0)
|
|
19665
19665
|
])
|
|
19666
19666
|
]),
|
|
19667
19667
|
_: 1
|
|
@@ -19808,12 +19808,12 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19808
19808
|
},
|
|
19809
19809
|
emits: ["submit", "click:view-switch"],
|
|
19810
19810
|
setup(t, { emit: e }) {
|
|
19811
|
-
const i = t, n = e, s = O(() => ci.isPhoneDevice()), r =
|
|
19811
|
+
const i = t, n = e, s = O(() => ci.isPhoneDevice()), r = U(!1), o = U(!1), a = U(i.cartItem), l = nt("mosquito-configurator-form"), c = U({
|
|
19812
19812
|
width: {},
|
|
19813
19813
|
height: {},
|
|
19814
19814
|
quantity: {},
|
|
19815
19815
|
marker: {}
|
|
19816
|
-
}), u =
|
|
19816
|
+
}), u = U(!1), d = U(!1), h = O(() => Ke("debounce-input-time", 300)), g = qi(async (p) => {
|
|
19817
19817
|
var v, m;
|
|
19818
19818
|
a.value.product = new Rn(), (m = (v = l.value) == null ? void 0 : v.formReference) == null || m.validate((y) => {
|
|
19819
19819
|
y || (u.value = !0, i.eventEmitter.emit("configurator:search-product", {
|
|
@@ -19842,7 +19842,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19842
19842
|
{ deep: !0 }
|
|
19843
19843
|
), (p, v) => {
|
|
19844
19844
|
const m = jo;
|
|
19845
|
-
return w(), z(
|
|
19845
|
+
return w(), z($e, null, [
|
|
19846
19846
|
H(By, {
|
|
19847
19847
|
show: o.value,
|
|
19848
19848
|
"onUpdate:show": v[0] || (v[0] = (y) => o.value = y),
|
|
@@ -19923,7 +19923,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19923
19923
|
},
|
|
19924
19924
|
emits: ["update:value", "click:add-line", "click:remove-line"],
|
|
19925
19925
|
setup(t, { expose: e, emit: i }) {
|
|
19926
|
-
const n = t, s = i, r = nt("width-input-element"), o =
|
|
19926
|
+
const n = t, s = i, r = nt("width-input-element"), o = U(!1), a = U(n.value), l = nt("form-item-reference"), c = O(() => {
|
|
19927
19927
|
var h;
|
|
19928
19928
|
return !((h = l.value) != null && h.validationErrored);
|
|
19929
19929
|
}), u = (h) => {
|
|
@@ -19964,7 +19964,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
19964
19964
|
"is-product-searching": o.value,
|
|
19965
19965
|
product: t.product,
|
|
19966
19966
|
validation: t.validation.product
|
|
19967
|
-
}, null, 8, ["is-product-searching", "product", "validation"])) :
|
|
19967
|
+
}, null, 8, ["is-product-searching", "product", "validation"])) : j("", !0)
|
|
19968
19968
|
]),
|
|
19969
19969
|
default: I(() => [
|
|
19970
19970
|
H(E(Io), {
|
|
@@ -20029,7 +20029,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20029
20029
|
emits: ["update:value", "update:params", "submit", "click:add-line", "click:remove-line"],
|
|
20030
20030
|
setup(t, { expose: e, emit: i }) {
|
|
20031
20031
|
var y;
|
|
20032
|
-
const n = t, s = i, r = nt("form-reference"), o = nt("line-items-reference"), a =
|
|
20032
|
+
const n = t, s = i, r = nt("form-reference"), o = nt("line-items-reference"), a = U(bi(n.value)), l = O(() => {
|
|
20033
20033
|
const $ = {
|
|
20034
20034
|
length: [
|
|
20035
20035
|
me.required,
|
|
@@ -20050,7 +20050,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20050
20050
|
dt.serverValidation((B = n.validation[`linesWidths.${T}`]) == null ? void 0 : B.feedback)
|
|
20051
20051
|
];
|
|
20052
20052
|
}), $;
|
|
20053
|
-
}), c =
|
|
20053
|
+
}), c = U(n.settings.canSetDopProdaga ?? !1), u = O(() => n.value[0].configuratorParams.linesWidths.reduce(($, k) => ($ ?? 0) + (k ?? 0), 0)), d = O(() => n.settings.width - u.value), h = O(() => !n.value.some(({ product: $ }) => !$ || $.isNewRec())), g = O(
|
|
20054
20054
|
() => n.isSubmitProcessing || !h.value || d.value <= 0 || a.value.length >= n.settings.maxLinesCount || n.value.some(($) => $.product.isNewRec())
|
|
20055
20055
|
), f = O(
|
|
20056
20056
|
// eslint-disable-next-line unicorn/consistent-function-scoping
|
|
@@ -20106,7 +20106,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20106
20106
|
default: I(() => {
|
|
20107
20107
|
var B;
|
|
20108
20108
|
return [
|
|
20109
|
-
(w(!0), z(
|
|
20109
|
+
(w(!0), z($e, null, Xt(a.value, (_, S) => {
|
|
20110
20110
|
var b, P;
|
|
20111
20111
|
return w(), Q(Oy, {
|
|
20112
20112
|
key: S,
|
|
@@ -20136,7 +20136,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20136
20136
|
ie(" Сумма ширин всех полос должна быть равна " + Y(t.settings.width), 1)
|
|
20137
20137
|
]),
|
|
20138
20138
|
_: 1
|
|
20139
|
-
})) :
|
|
20139
|
+
})) : j("", !0),
|
|
20140
20140
|
h.value && a.value.length === t.settings.maxLinesCount && d.value > 0 ? (w(), Q(E($n), {
|
|
20141
20141
|
key: 1,
|
|
20142
20142
|
type: "error"
|
|
@@ -20145,7 +20145,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20145
20145
|
ie(" Остаток резки должен быть равен 0 ", -1)
|
|
20146
20146
|
])]),
|
|
20147
20147
|
_: 1
|
|
20148
|
-
})) :
|
|
20148
|
+
})) : j("", !0),
|
|
20149
20149
|
R("div", null, [
|
|
20150
20150
|
k[17] || (k[17] = ie(" Остаток для резки: ", -1)),
|
|
20151
20151
|
H(E($n), {
|
|
@@ -20243,11 +20243,11 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20243
20243
|
ie(" ДопПродажа ", -1)
|
|
20244
20244
|
])]),
|
|
20245
20245
|
_: 1
|
|
20246
|
-
}, 8, ["checked"])) :
|
|
20246
|
+
}, 8, ["checked"])) : j("", !0),
|
|
20247
20247
|
p.value ? (w(), z("div", Ly, [
|
|
20248
20248
|
k[20] || (k[20] = ie(" ИТОГО: ", -1)),
|
|
20249
20249
|
R("span", Dy, Y(p.value) + " ₽", 1)
|
|
20250
|
-
])) :
|
|
20250
|
+
])) : j("", !0),
|
|
20251
20251
|
R("div", Ny, [
|
|
20252
20252
|
H(E(De), {
|
|
20253
20253
|
loading: t.isSubmitProcessing,
|
|
@@ -20316,12 +20316,12 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20316
20316
|
},
|
|
20317
20317
|
emits: ["submit", "click:view-switch"],
|
|
20318
20318
|
setup(t, { emit: e }) {
|
|
20319
|
-
const i = t, n = e, s = nt("strip-configurator-form"), r =
|
|
20319
|
+
const i = t, n = e, s = nt("strip-configurator-form"), r = U(i.cartItems), o = U({
|
|
20320
20320
|
width: {},
|
|
20321
20321
|
length: {},
|
|
20322
20322
|
quantity: {},
|
|
20323
20323
|
marker: {}
|
|
20324
|
-
}), a =
|
|
20324
|
+
}), a = U(!1), l = O(() => Ke("debounce-input-time", 300)), c = O(() => {
|
|
20325
20325
|
var f;
|
|
20326
20326
|
return (f = r.value[0].configuratorParams) == null ? void 0 : f.linesWidths.reduce((p, v) => (p ?? 0) + (v ?? 0), 0);
|
|
20327
20327
|
}), u = (f) => {
|
|
@@ -20394,7 +20394,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20394
20394
|
ie(" Показать в виде списка ", -1)
|
|
20395
20395
|
])]),
|
|
20396
20396
|
_: 1
|
|
20397
|
-
})) :
|
|
20397
|
+
})) : j("", !0),
|
|
20398
20398
|
R("div", Gy, [
|
|
20399
20399
|
H(Xy, {
|
|
20400
20400
|
value: r.value,
|
|
@@ -20430,7 +20430,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20430
20430
|
emits: ["update:value", "update:params", "submit"],
|
|
20431
20431
|
setup(t, { expose: e, emit: i }) {
|
|
20432
20432
|
var g;
|
|
20433
|
-
const n = t, s = i, r = nt("form-reference"), o = nt("first-input-element"), a =
|
|
20433
|
+
const n = t, s = i, r = nt("form-reference"), o = nt("first-input-element"), a = U(bi(n.value)), l = O(() => ({
|
|
20434
20434
|
"configuratorParams.width": [
|
|
20435
20435
|
me.required,
|
|
20436
20436
|
me.min(n.settings.minWidth),
|
|
@@ -20447,7 +20447,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20447
20447
|
],
|
|
20448
20448
|
quantity: [me.required, me.min(1), me.step(1), dt.serverValidation(n.validation.quantity.feedback)],
|
|
20449
20449
|
marker: [dt.serverValidation(n.validation.marker.feedback)]
|
|
20450
|
-
})), c =
|
|
20450
|
+
})), c = U(n.settings.canSetDopProdaga ?? !1), u = () => {
|
|
20451
20451
|
s("update:params", a.value.configuratorParams), d("configuratorParams", a.value.configuratorParams);
|
|
20452
20452
|
}, d = (f, p) => {
|
|
20453
20453
|
const v = new jt(n.value);
|
|
@@ -20578,7 +20578,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20578
20578
|
ie(" ДопПродажа ", -1)
|
|
20579
20579
|
])]),
|
|
20580
20580
|
_: 1
|
|
20581
|
-
}, 8, ["checked"])) :
|
|
20581
|
+
}, 8, ["checked"])) : j("", !0),
|
|
20582
20582
|
H(zo, {
|
|
20583
20583
|
"is-product-searching": t.isProductSearching,
|
|
20584
20584
|
product: t.value.product,
|
|
@@ -20628,12 +20628,12 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20628
20628
|
},
|
|
20629
20629
|
emits: ["submit", "click:view-switch"],
|
|
20630
20630
|
setup(t, { emit: e }) {
|
|
20631
|
-
const i = t, n = e, s = nt("metal-for-doors-configurator-form"), r =
|
|
20631
|
+
const i = t, n = e, s = nt("metal-for-doors-configurator-form"), r = U(i.cartItem), o = U({
|
|
20632
20632
|
width: {},
|
|
20633
20633
|
length: {},
|
|
20634
20634
|
quantity: {},
|
|
20635
20635
|
marker: {}
|
|
20636
|
-
}), a =
|
|
20636
|
+
}), a = U(!1), l = U(!1), c = O(() => Ke("debounce-input-time", 300)), u = qi(async (h) => {
|
|
20637
20637
|
var g, f;
|
|
20638
20638
|
r.value.product = new Rn(), (f = (g = s.value) == null ? void 0 : g.formReference) == null || f.validate((p) => {
|
|
20639
20639
|
p || (a.value = !0, i.eventEmitter.emit("configurator:search-product", {
|
|
@@ -20679,7 +20679,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
|
|
|
20679
20679
|
ie(" Показать в виде списка ", -1)
|
|
20680
20680
|
])]),
|
|
20681
20681
|
_: 1
|
|
20682
|
-
})) :
|
|
20682
|
+
})) : j("", !0),
|
|
20683
20683
|
H(eb, {
|
|
20684
20684
|
ref: "metal-for-doors-configurator-form",
|
|
20685
20685
|
value: r.value,
|
|
@@ -20753,12 +20753,12 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
20753
20753
|
emits: ["update:value", "update:params", "submit", "add-item", "remove-item"],
|
|
20754
20754
|
setup(t, { expose: e, emit: i }) {
|
|
20755
20755
|
var N;
|
|
20756
|
-
const n = t, s = i, r = nt("form-reference"), o =
|
|
20756
|
+
const n = t, s = i, r = nt("form-reference"), o = U(bi(n.value)), a = O(() => n.value.category), l = U(null), c = U(null), u = O(() => a.value.products ?? []), d = O(
|
|
20757
20757
|
() => u.value.map((M) => ({
|
|
20758
20758
|
label: M.name,
|
|
20759
20759
|
value: M.id
|
|
20760
20760
|
}))
|
|
20761
|
-
), h =
|
|
20761
|
+
), h = U(null), g = U(!1), f = O(() => {
|
|
20762
20762
|
var M, A;
|
|
20763
20763
|
return (A = (M = l.value) == null ? void 0 : M.properties) != null && A.width ? me.max(l.value.properties.width) : null;
|
|
20764
20764
|
}), p = O(() => {
|
|
@@ -20769,7 +20769,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
20769
20769
|
marker: [dt.serverValidation(n.validation.marker.feedback)]
|
|
20770
20770
|
};
|
|
20771
20771
|
return o.value.configuratorParams.items.forEach((A, J) => {
|
|
20772
|
-
var ce, V, X, ee, K,
|
|
20772
|
+
var ce, V, X, ee, K, q, G;
|
|
20773
20773
|
M[`configuratorParams.items.${J}.width`] = [
|
|
20774
20774
|
me.required,
|
|
20775
20775
|
me.min(n.settings.minWidth),
|
|
@@ -20781,7 +20781,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
20781
20781
|
me.min(n.settings.minLength),
|
|
20782
20782
|
...(K = (ee = l.value) == null ? void 0 : ee.properties) != null && K.length ? [me.max(l.value.properties.length)] : [],
|
|
20783
20783
|
me.step(1),
|
|
20784
|
-
dt.serverValidation((
|
|
20784
|
+
dt.serverValidation((q = n.validation[`items.${J}.length`]) == null ? void 0 : q.feedback)
|
|
20785
20785
|
], M[`configuratorParams.items.${J}.count`] = [
|
|
20786
20786
|
me.required,
|
|
20787
20787
|
me.min(1),
|
|
@@ -20789,12 +20789,12 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
20789
20789
|
dt.serverValidation((G = n.validation[`items.${J}.count`]) == null ? void 0 : G.feedback)
|
|
20790
20790
|
];
|
|
20791
20791
|
}), M;
|
|
20792
|
-
}), m =
|
|
20792
|
+
}), m = U(n.settings.canSetDopProdaga ?? !1), y = O(() => o.value.configuratorParams.items.some(
|
|
20793
20793
|
(M) => {
|
|
20794
20794
|
var A, J;
|
|
20795
20795
|
return !l.value || !M.width || M.width < n.settings.minWidth || M.width > (((A = l.value.properties) == null ? void 0 : A.width) ?? 0) || M.length === 0 || M.length < n.settings.minLength || M.length > (((J = l.value.properties) == null ? void 0 : J.length) ?? 0) || !M.count || M.count < 1;
|
|
20796
20796
|
}
|
|
20797
|
-
)), $ = O(() => !l.value || y.value || o.value.configuratorParams.items.length === 0), k =
|
|
20797
|
+
)), $ = O(() => !l.value || y.value || o.value.configuratorParams.items.length === 0), k = U(null), T = (M) => {
|
|
20798
20798
|
if (!M) {
|
|
20799
20799
|
l.value = null, c.value = null, o.value.product = new Rn(), h.value = null;
|
|
20800
20800
|
return;
|
|
@@ -20918,7 +20918,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
20918
20918
|
l.value ? (w(), z("div", ab, [
|
|
20919
20919
|
A[9] || (A[9] = ie(" Стоимость: ", -1)),
|
|
20920
20920
|
R("span", lb, Y((V = l.value.costRub) == null ? void 0 : V.toLocaleString()) + " " + Y(l.value.currency.symbol) + "/шт.", 1)
|
|
20921
|
-
])) :
|
|
20921
|
+
])) : j("", !0),
|
|
20922
20922
|
l.value && f.value && p.value ? (w(), z("div", cb, [
|
|
20923
20923
|
A[15] || (A[15] = R("div", { class: "w-full font-bold" }, "Размеры изделий", -1)),
|
|
20924
20924
|
R("div", ub, [
|
|
@@ -20931,63 +20931,63 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
20931
20931
|
ie(" Максимальная длина: " + Y((ee = l.value.properties) == null ? void 0 : ee.length) + " мм. ", 1)
|
|
20932
20932
|
]),
|
|
20933
20933
|
R("div", db, [
|
|
20934
|
-
(w(!0), z(
|
|
20935
|
-
key:
|
|
20934
|
+
(w(!0), z($e, null, Xt(o.value.configuratorParams.items, (K, q) => (w(), z("div", {
|
|
20935
|
+
key: q,
|
|
20936
20936
|
class: "flex grow gap-2"
|
|
20937
20937
|
}, [
|
|
20938
20938
|
R("div", hb, [
|
|
20939
20939
|
H(E(tt), {
|
|
20940
|
-
path: `configuratorParams.items.${
|
|
20940
|
+
path: `configuratorParams.items.${q}.width`,
|
|
20941
20941
|
label: "Ширина, мм"
|
|
20942
20942
|
}, {
|
|
20943
20943
|
default: I(() => [
|
|
20944
20944
|
H(E($t), {
|
|
20945
|
-
value: o.value.configuratorParams.items[
|
|
20946
|
-
"onUpdate:value": [(G) => o.value.configuratorParams.items[
|
|
20945
|
+
value: o.value.configuratorParams.items[q].width,
|
|
20946
|
+
"onUpdate:value": [(G) => o.value.configuratorParams.items[q].width = G, (G) => b(q)],
|
|
20947
20947
|
parse: E(ai),
|
|
20948
20948
|
"show-button": !1,
|
|
20949
20949
|
placeholder: "Ширина",
|
|
20950
20950
|
class: "w-full",
|
|
20951
20951
|
onKeydown: A[1] || (A[1] = (G) => E(qt)(G)),
|
|
20952
|
-
onInput: (G) => E(ct)(t.validation, `items.${
|
|
20952
|
+
onInput: (G) => E(ct)(t.validation, `items.${q}.width`),
|
|
20953
20953
|
onFocus: E(ut)
|
|
20954
20954
|
}, null, 8, ["value", "onUpdate:value", "parse", "onInput", "onFocus"])
|
|
20955
20955
|
]),
|
|
20956
20956
|
_: 2
|
|
20957
20957
|
}, 1032, ["path"]),
|
|
20958
20958
|
H(E(tt), {
|
|
20959
|
-
path: `configuratorParams.items.${
|
|
20959
|
+
path: `configuratorParams.items.${q}.length`,
|
|
20960
20960
|
label: "Длина, мм"
|
|
20961
20961
|
}, {
|
|
20962
20962
|
default: I(() => [
|
|
20963
20963
|
H(E($t), {
|
|
20964
|
-
value: o.value.configuratorParams.items[
|
|
20965
|
-
"onUpdate:value": [(G) => o.value.configuratorParams.items[
|
|
20964
|
+
value: o.value.configuratorParams.items[q].length,
|
|
20965
|
+
"onUpdate:value": [(G) => o.value.configuratorParams.items[q].length = G, (G) => b(q)],
|
|
20966
20966
|
parse: E(ai),
|
|
20967
20967
|
"show-button": !1,
|
|
20968
20968
|
placeholder: "Длина",
|
|
20969
20969
|
class: "w-full",
|
|
20970
20970
|
onKeydown: A[2] || (A[2] = (G) => E(qt)(G)),
|
|
20971
|
-
onInput: (G) => E(ct)(t.validation, `items.${
|
|
20971
|
+
onInput: (G) => E(ct)(t.validation, `items.${q}.length`),
|
|
20972
20972
|
onFocus: E(ut)
|
|
20973
20973
|
}, null, 8, ["value", "onUpdate:value", "parse", "onInput", "onFocus"])
|
|
20974
20974
|
]),
|
|
20975
20975
|
_: 2
|
|
20976
20976
|
}, 1032, ["path"]),
|
|
20977
20977
|
H(E(tt), {
|
|
20978
|
-
path: `configuratorParams.items.${
|
|
20978
|
+
path: `configuratorParams.items.${q}.count`,
|
|
20979
20979
|
label: "Количество, шт"
|
|
20980
20980
|
}, {
|
|
20981
20981
|
default: I(() => [
|
|
20982
20982
|
H(E($t), {
|
|
20983
|
-
value: o.value.configuratorParams.items[
|
|
20984
|
-
"onUpdate:value": [(G) => o.value.configuratorParams.items[
|
|
20983
|
+
value: o.value.configuratorParams.items[q].count,
|
|
20984
|
+
"onUpdate:value": [(G) => o.value.configuratorParams.items[q].count = G, (G) => b(q)],
|
|
20985
20985
|
parse: E(ai),
|
|
20986
20986
|
"show-button": !1,
|
|
20987
20987
|
placeholder: "Количество",
|
|
20988
20988
|
class: "w-full",
|
|
20989
20989
|
onKeydown: A[3] || (A[3] = (G) => E(qt)(G, !1)),
|
|
20990
|
-
onInput: (G) => E(ct)(t.validation, `items.${
|
|
20990
|
+
onInput: (G) => E(ct)(t.validation, `items.${q}.count`),
|
|
20991
20991
|
onFocus: E(ut)
|
|
20992
20992
|
}, null, 8, ["value", "onUpdate:value", "parse", "onInput", "onFocus"])
|
|
20993
20993
|
]),
|
|
@@ -20999,7 +20999,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
20999
20999
|
type: "error",
|
|
21000
21000
|
size: "medium",
|
|
21001
21001
|
class: "mt-5",
|
|
21002
|
-
onClick: (G) => F(
|
|
21002
|
+
onClick: (G) => F(q)
|
|
21003
21003
|
}, {
|
|
21004
21004
|
default: I(() => [
|
|
21005
21005
|
H(J)
|
|
@@ -21040,7 +21040,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
21040
21040
|
ie(" Расчет по продукту невозможен. Обратитесь к менеджеру. ", -1)
|
|
21041
21041
|
])]),
|
|
21042
21042
|
_: 1
|
|
21043
|
-
})) :
|
|
21043
|
+
})) : j("", !0),
|
|
21044
21044
|
H(E(tt), {
|
|
21045
21045
|
path: "marker",
|
|
21046
21046
|
label: "Маркировка распила"
|
|
@@ -21069,7 +21069,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
21069
21069
|
ie(" ДопПродажа ", -1)
|
|
21070
21070
|
])]),
|
|
21071
21071
|
_: 1
|
|
21072
|
-
}, 8, ["checked"])) :
|
|
21072
|
+
}, 8, ["checked"])) : j("", !0),
|
|
21073
21073
|
H(E(ir), {
|
|
21074
21074
|
show: g.value,
|
|
21075
21075
|
size: "small",
|
|
@@ -21087,8 +21087,8 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
21087
21087
|
R("span", mb, "(" + Y(h.value.quantity) + " шт.", 1),
|
|
21088
21088
|
A[19] || (A[19] = ie(" x ", -1)),
|
|
21089
21089
|
R("span", vb, Y((K = l.value.costRub) == null ? void 0 : K.toLocaleString()) + " " + Y(l.value.currency.symbol) + "/шт.)", 1)
|
|
21090
|
-
])) :
|
|
21091
|
-
])) :
|
|
21090
|
+
])) : j("", !0)
|
|
21091
|
+
])) : j("", !0)
|
|
21092
21092
|
];
|
|
21093
21093
|
}),
|
|
21094
21094
|
_: 1
|
|
@@ -21136,13 +21136,13 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
21136
21136
|
},
|
|
21137
21137
|
emits: ["submit", "click:view-switch"],
|
|
21138
21138
|
setup(t, { emit: e }) {
|
|
21139
|
-
const i = t, n = e, s = nt("sandwich-configurator-form"), r =
|
|
21139
|
+
const i = t, n = e, s = nt("sandwich-configurator-form"), r = U(i.cartItem), o = U({
|
|
21140
21140
|
width: {},
|
|
21141
21141
|
length: {},
|
|
21142
21142
|
quantity: {},
|
|
21143
21143
|
marker: {},
|
|
21144
21144
|
product: {}
|
|
21145
|
-
}), a =
|
|
21145
|
+
}), a = U(!1), l = async () => {
|
|
21146
21146
|
var d, h;
|
|
21147
21147
|
(h = (d = s.value) == null ? void 0 : d.formReference) == null || h.validate((g) => {
|
|
21148
21148
|
if (!g) {
|
|
@@ -21184,7 +21184,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
21184
21184
|
ie(" Показать в виде списка ", -1)
|
|
21185
21185
|
])]),
|
|
21186
21186
|
_: 1
|
|
21187
|
-
})) :
|
|
21187
|
+
})) : j("", !0),
|
|
21188
21188
|
R("div", xb, [
|
|
21189
21189
|
H(_b, {
|
|
21190
21190
|
ref: "sandwich-configurator-form",
|
|
@@ -21225,7 +21225,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
21225
21225
|
category: {}
|
|
21226
21226
|
},
|
|
21227
21227
|
setup(t) {
|
|
21228
|
-
const e = t, i =
|
|
21228
|
+
const e = t, i = U(!1), n = U(null), s = U(e.cartItem ?? null), r = U(null), o = () => {
|
|
21229
21229
|
var u, d, h;
|
|
21230
21230
|
if (!e.settings) {
|
|
21231
21231
|
n.value = "Настройки конфигуратора не указаны в свойствах категории.";
|
|
@@ -21328,10 +21328,10 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
21328
21328
|
e.cartItem || o();
|
|
21329
21329
|
}), (c, u) => {
|
|
21330
21330
|
const d = ir;
|
|
21331
|
-
return w(), z(
|
|
21331
|
+
return w(), z($e, null, [
|
|
21332
21332
|
i.value ? (w(), z("div", Sb, [
|
|
21333
21333
|
H(d, { size: "large" })
|
|
21334
|
-
])) : n.value ? (w(), z("div", $b, Y(n.value), 1)) :
|
|
21334
|
+
])) : n.value ? (w(), z("div", $b, Y(n.value), 1)) : j("", !0),
|
|
21335
21335
|
t.settings !== null && (s.value !== null || r.value !== null) ? (w(), z("div", Tb, [
|
|
21336
21336
|
R("div", Pb, [
|
|
21337
21337
|
t.editor === "kozyrek" ? (w(), Q(ry, {
|
|
@@ -21368,7 +21368,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
|
|
|
21368
21368
|
"cart-item": s.value,
|
|
21369
21369
|
"onClick:viewSwitch": l,
|
|
21370
21370
|
onSubmit: a
|
|
21371
|
-
}, null, 8, ["event-emitter", "settings", "cart-item"])) :
|
|
21371
|
+
}, null, 8, ["event-emitter", "settings", "cart-item"])) : j("", !0)
|
|
21372
21372
|
])
|
|
21373
21373
|
])) : (w(), z("div", Rb, ' Конфигуратор "' + Y(t.editor) + '" не поддерживается. ', 1))
|
|
21374
21374
|
], 64);
|
|
@@ -21451,7 +21451,7 @@ const Eb = {
|
|
|
21451
21451
|
() => g.value && (kt(e.showConfigurator) ? e.showConfigurator(e.categoryItem) : e.showConfigurator)
|
|
21452
21452
|
), p = O(
|
|
21453
21453
|
() => rt(e.categoryContextButtonsConfig) ? [] : kt(e.categoryContextButtonsConfig) ? e.categoryContextButtonsConfig(e.categoryItem) : e.categoryContextButtonsConfig
|
|
21454
|
-
), v = O(() => new Sg(e.categoryItem)), m =
|
|
21454
|
+
), v = O(() => new Sg(e.categoryItem)), m = U(!1), y = U(!1), $ = O(() => !Gs(e.isCategoryItemSelected)), k = O(
|
|
21455
21455
|
() => kt(e.isCategoryItemSelected) ? e.isCategoryItemSelected(e.categoryItem) : e.isCategoryItemSelected === !0
|
|
21456
21456
|
), T = O(
|
|
21457
21457
|
() => kt(e.isCategoryItemSelected) ? e.isCategoryItemSelected(e.categoryItem) === "disabled" : e.isCategoryItemSelected === "disabled"
|
|
@@ -21491,7 +21491,7 @@ const Eb = {
|
|
|
21491
21491
|
e.eventEmitter.emit("category:context-select", { category: e.categoryItem, key: Z, target: S.value });
|
|
21492
21492
|
}, ee = () => {
|
|
21493
21493
|
e.eventEmitter.emit("configurator:click-view-switch", { category: e.categoryItem });
|
|
21494
|
-
}, K =
|
|
21494
|
+
}, K = U(0), q = O(() => K.value && r.value.length > 0 ? Im(r.value, {
|
|
21495
21495
|
eventEmitter: e.eventEmitter,
|
|
21496
21496
|
showSlugs: e.showSlugs,
|
|
21497
21497
|
showProperties: e.showProperties,
|
|
@@ -21512,7 +21512,7 @@ const Eb = {
|
|
|
21512
21512
|
return Rr(() => {
|
|
21513
21513
|
window.removeEventListener("resize", G);
|
|
21514
21514
|
}), window.addEventListener("resize", G), G(), (Z, re) => {
|
|
21515
|
-
const _e = Kn, pe = hp, fe = Ar,
|
|
21515
|
+
const _e = Kn, pe = hp, fe = Ar, qe = cp, ot = Ad, Xe = op, Ci = np, Ne = De, Mi = ep, Ei = Nd, Kt = Dd, ui = Ld, Ii = Fl, Ot = Io, hn = $l, Oi = Od, Si = ir;
|
|
21516
21516
|
return w(), Q(Tp, {
|
|
21517
21517
|
ref: "collapse-item-reference",
|
|
21518
21518
|
name: t.categoryItem.id,
|
|
@@ -21529,7 +21529,7 @@ const Eb = {
|
|
|
21529
21529
|
disabled: T.value,
|
|
21530
21530
|
"onUpdate:checked": D
|
|
21531
21531
|
}, null, 8, ["checked", "indeterminate", "disabled"])
|
|
21532
|
-
])) :
|
|
21532
|
+
])) : j("", !0),
|
|
21533
21533
|
!c.value && ((We = v.value) != null && We.isDisabled) ? (w(), Q(fe, {
|
|
21534
21534
|
key: 1,
|
|
21535
21535
|
placement: "bottom",
|
|
@@ -21542,27 +21542,27 @@ const Eb = {
|
|
|
21542
21542
|
re[1] || (re[1] = ie(" Категория скрыта для клиента ", -1))
|
|
21543
21543
|
]),
|
|
21544
21544
|
_: 1
|
|
21545
|
-
})) :
|
|
21545
|
+
})) : j("", !0),
|
|
21546
21546
|
((se = v.value) == null ? void 0 : se.isFavorite) ?? !1 ? (w(), Q(fe, {
|
|
21547
21547
|
key: 2,
|
|
21548
21548
|
placement: "bottom",
|
|
21549
21549
|
trigger: "hover"
|
|
21550
21550
|
}, {
|
|
21551
21551
|
trigger: I(() => [
|
|
21552
|
-
H(
|
|
21552
|
+
H(qe, { class: "pt-1.5" })
|
|
21553
21553
|
]),
|
|
21554
21554
|
default: I(() => [
|
|
21555
21555
|
re[2] || (re[2] = ie(" Избранная категория ", -1))
|
|
21556
21556
|
]),
|
|
21557
21557
|
_: 1
|
|
21558
|
-
})) :
|
|
21558
|
+
})) : j("", !0)
|
|
21559
21559
|
];
|
|
21560
21560
|
}),
|
|
21561
21561
|
header: I(() => {
|
|
21562
21562
|
var We, se, ge, Ze, Mn;
|
|
21563
21563
|
return [
|
|
21564
21564
|
R("div", {
|
|
21565
|
-
class:
|
|
21565
|
+
class: Ue({
|
|
21566
21566
|
"text-base font-semibold uppercase": !0,
|
|
21567
21567
|
"text-gray-400 line-through": t.categoryItem.isHidden,
|
|
21568
21568
|
"text-gray-400": (We = v.value) == null ? void 0 : We.isDisabled
|
|
@@ -21593,14 +21593,14 @@ const Eb = {
|
|
|
21593
21593
|
(se = t.categoryItem.properties) != null && se.m2Price ? (w(), Q(ot, {
|
|
21594
21594
|
key: 0,
|
|
21595
21595
|
size: E(i),
|
|
21596
|
-
class:
|
|
21596
|
+
class: Ue({ "!pr-0": ((ge = t.categoryItem.properties) == null ? void 0 : ge.templateCost) && t.categoryItem.properties.m2PriceRetail && P.value }),
|
|
21597
21597
|
round: ""
|
|
21598
21598
|
}, {
|
|
21599
21599
|
default: I(() => {
|
|
21600
21600
|
var wt;
|
|
21601
21601
|
return [
|
|
21602
21602
|
ie(" Установленная стоимость: " + Y(t.categoryItem.properties.m2Price) + " руб./м2 ", 1),
|
|
21603
|
-
(wt = t.categoryItem.properties) != null && wt.templateCost && t.categoryItem.properties.m2PriceRetail && P.value ? (w(), z(
|
|
21603
|
+
(wt = t.categoryItem.properties) != null && wt.templateCost && t.categoryItem.properties.m2PriceRetail && P.value ? (w(), z($e, { key: 0 }, [
|
|
21604
21604
|
P.value ? (w(), Q(ot, {
|
|
21605
21605
|
key: 0,
|
|
21606
21606
|
type: "success",
|
|
@@ -21610,7 +21610,7 @@ const Eb = {
|
|
|
21610
21610
|
round: ""
|
|
21611
21611
|
}, {
|
|
21612
21612
|
default: I(() => [
|
|
21613
|
-
P.value ? (w(), z("span", Ib, Y(P.value.toFixed(2)) + "%", 1)) :
|
|
21613
|
+
P.value ? (w(), z("span", Ib, Y(P.value.toFixed(2)) + "%", 1)) : j("", !0),
|
|
21614
21614
|
H(ot, {
|
|
21615
21615
|
size: E(i),
|
|
21616
21616
|
round: ""
|
|
@@ -21622,12 +21622,12 @@ const Eb = {
|
|
|
21622
21622
|
}, 8, ["size"])
|
|
21623
21623
|
]),
|
|
21624
21624
|
_: 1
|
|
21625
|
-
}, 8, ["size"])) :
|
|
21626
|
-
], 64)) :
|
|
21625
|
+
}, 8, ["size"])) : j("", !0)
|
|
21626
|
+
], 64)) : j("", !0)
|
|
21627
21627
|
];
|
|
21628
21628
|
}),
|
|
21629
21629
|
_: 1
|
|
21630
|
-
}, 8, ["size", "class"])) : (Ze = t.categoryItem.properties) != null && Ze.templateCost ? (w(), z(
|
|
21630
|
+
}, 8, ["size", "class"])) : (Ze = t.categoryItem.properties) != null && Ze.templateCost ? (w(), z($e, { key: 1 }, [
|
|
21631
21631
|
b.value || P.value ? (w(), Q(ot, {
|
|
21632
21632
|
key: 0,
|
|
21633
21633
|
size: E(i),
|
|
@@ -21636,13 +21636,13 @@ const Eb = {
|
|
|
21636
21636
|
default: I(() => {
|
|
21637
21637
|
var wt;
|
|
21638
21638
|
return [
|
|
21639
|
-
b.value ? (w(), z("span", zb, Y((wt = b.value) == null ? void 0 : wt.name), 1)) :
|
|
21640
|
-
P.value ? (w(), z("span", Lb, Y(P.value > 0 ? "+" : "") + Y(P.value.toFixed(2)) + "%", 1)) :
|
|
21639
|
+
b.value ? (w(), z("span", zb, Y((wt = b.value) == null ? void 0 : wt.name), 1)) : j("", !0),
|
|
21640
|
+
P.value ? (w(), z("span", Lb, Y(P.value > 0 ? "+" : "") + Y(P.value.toFixed(2)) + "%", 1)) : j("", !0)
|
|
21641
21641
|
];
|
|
21642
21642
|
}),
|
|
21643
21643
|
_: 1
|
|
21644
|
-
}, 8, ["size"])) :
|
|
21645
|
-
], 64)) :
|
|
21644
|
+
}, 8, ["size"])) : j("", !0)
|
|
21645
|
+
], 64)) : j("", !0),
|
|
21646
21646
|
o.value ? (w(), Q(ot, {
|
|
21647
21647
|
key: 2,
|
|
21648
21648
|
size: E(i),
|
|
@@ -21652,7 +21652,7 @@ const Eb = {
|
|
|
21652
21652
|
ie(" Фиксированный курс: " + Y(o.value), 1)
|
|
21653
21653
|
]),
|
|
21654
21654
|
_: 1
|
|
21655
|
-
}, 8, ["size"])) :
|
|
21655
|
+
}, 8, ["size"])) : j("", !0),
|
|
21656
21656
|
u.value && ((Mn = v.value) != null && Mn.manager) ? (w(), Q(ot, {
|
|
21657
21657
|
key: 3,
|
|
21658
21658
|
size: E(i),
|
|
@@ -21670,7 +21670,7 @@ const Eb = {
|
|
|
21670
21670
|
var wt, di;
|
|
21671
21671
|
return [
|
|
21672
21672
|
R("span", Db, [
|
|
21673
|
-
H(
|
|
21673
|
+
H(Xe),
|
|
21674
21674
|
ie(" " + Y((di = (wt = v.value) == null ? void 0 : wt.manager) == null ? void 0 : di.name), 1)
|
|
21675
21675
|
])
|
|
21676
21676
|
];
|
|
@@ -21685,17 +21685,17 @@ const Eb = {
|
|
|
21685
21685
|
})
|
|
21686
21686
|
]),
|
|
21687
21687
|
_: 1
|
|
21688
|
-
}, 8, ["size"])) :
|
|
21688
|
+
}, 8, ["size"])) : j("", !0)
|
|
21689
21689
|
])
|
|
21690
21690
|
];
|
|
21691
21691
|
}),
|
|
21692
21692
|
"sub-header": I(() => [
|
|
21693
21693
|
t.showSlugs || t.showProperties ? (w(), z("div", Nb, [
|
|
21694
21694
|
R("ul", Hb, [
|
|
21695
|
-
t.showSlugs ? (w(!0), z(
|
|
21696
|
-
t.showProperties ? (w(!0), z(
|
|
21695
|
+
t.showSlugs ? (w(!0), z($e, { key: 0 }, Xt({ id: t.categoryItem.id, slug: t.categoryItem.slug }, (We, se) => (w(), z("li", { key: se }, " (" + Y(se) + "): " + Y(We), 1))), 128)) : j("", !0),
|
|
21696
|
+
t.showProperties ? (w(!0), z($e, { key: 1 }, Xt(t.categoryItem.properties, (We, se) => (w(), z("li", { key: se }, " (" + Y(se) + "): " + Y(We), 1))), 128)) : j("", !0)
|
|
21697
21697
|
])
|
|
21698
|
-
])) :
|
|
21698
|
+
])) : j("", !0)
|
|
21699
21699
|
]),
|
|
21700
21700
|
"header-extra": I(() => {
|
|
21701
21701
|
var We;
|
|
@@ -21724,15 +21724,15 @@ const Eb = {
|
|
|
21724
21724
|
default: I(() => {
|
|
21725
21725
|
var se;
|
|
21726
21726
|
return [
|
|
21727
|
-
(se = v.value) != null && se.isDisabled ? (w(), z(
|
|
21727
|
+
(se = v.value) != null && se.isDisabled ? (w(), z($e, { key: 0 }, [
|
|
21728
21728
|
ie(" Скрыто для клиента" + Y(v.value.hidingComment ? `. Причина: '${v.value.hidingComment}'` : ""), 1)
|
|
21729
|
-
], 64)) : (w(), z(
|
|
21729
|
+
], 64)) : (w(), z($e, { key: 1 }, [
|
|
21730
21730
|
ie("Видимо клиенту")
|
|
21731
21731
|
], 64))
|
|
21732
21732
|
];
|
|
21733
21733
|
}),
|
|
21734
21734
|
_: 1
|
|
21735
|
-
})) :
|
|
21735
|
+
})) : j("", !0),
|
|
21736
21736
|
u.value && !((We = v.value) != null && We.manager) ? (w(), Q(fe, {
|
|
21737
21737
|
key: 1,
|
|
21738
21738
|
placement: "bottom",
|
|
@@ -21753,15 +21753,15 @@ const Eb = {
|
|
|
21753
21753
|
default: I(() => {
|
|
21754
21754
|
var se, ge, Ze;
|
|
21755
21755
|
return [
|
|
21756
|
-
(se = v.value) != null && se.manager ? (w(), z(
|
|
21756
|
+
(se = v.value) != null && se.manager ? (w(), z($e, { key: 1 }, [
|
|
21757
21757
|
ie('Категория закреплена за "' + Y(((Ze = (ge = v.value) == null ? void 0 : ge.manager) == null ? void 0 : Ze.name) ?? "-") + '"', 1)
|
|
21758
|
-
], 64)) : (w(), z(
|
|
21758
|
+
], 64)) : (w(), z($e, { key: 0 }, [
|
|
21759
21759
|
ie("Закрепить")
|
|
21760
21760
|
], 64))
|
|
21761
21761
|
];
|
|
21762
21762
|
}),
|
|
21763
21763
|
_: 1
|
|
21764
|
-
})) :
|
|
21764
|
+
})) : j("", !0),
|
|
21765
21765
|
d.value ? (w(), Q(fe, {
|
|
21766
21766
|
key: 2,
|
|
21767
21767
|
placement: "bottom",
|
|
@@ -21787,7 +21787,7 @@ const Eb = {
|
|
|
21787
21787
|
re[4] || (re[4] = ie(" Категория, которую нужно предлагать клиенту ", -1))
|
|
21788
21788
|
]),
|
|
21789
21789
|
_: 1
|
|
21790
|
-
})) :
|
|
21790
|
+
})) : j("", !0),
|
|
21791
21791
|
h.value ? (w(), Q(fe, {
|
|
21792
21792
|
key: 3,
|
|
21793
21793
|
placement: "bottom",
|
|
@@ -21810,7 +21810,7 @@ const Eb = {
|
|
|
21810
21810
|
re[5] || (re[5] = ie(" Редактировать ", -1))
|
|
21811
21811
|
]),
|
|
21812
21812
|
_: 1
|
|
21813
|
-
})) :
|
|
21813
|
+
})) : j("", !0),
|
|
21814
21814
|
p.value.length > 0 ? (w(), Q(Ot, {
|
|
21815
21815
|
key: 4,
|
|
21816
21816
|
options: p.value,
|
|
@@ -21831,12 +21831,12 @@ const Eb = {
|
|
|
21831
21831
|
}, 8, ["size"])
|
|
21832
21832
|
]),
|
|
21833
21833
|
_: 1
|
|
21834
|
-
}, 8, ["options", "size"])) :
|
|
21834
|
+
}, 8, ["options", "size"])) : j("", !0)
|
|
21835
21835
|
])
|
|
21836
21836
|
];
|
|
21837
21837
|
}),
|
|
21838
21838
|
default: I(() => [
|
|
21839
|
-
|
|
21839
|
+
Te(Z.$slots, "default", {}, () => {
|
|
21840
21840
|
var We, se, ge;
|
|
21841
21841
|
return [
|
|
21842
21842
|
R("div", Vb, [
|
|
@@ -21866,7 +21866,7 @@ const Eb = {
|
|
|
21866
21866
|
"product-context-buttons-config": t.productContextButtonsConfig,
|
|
21867
21867
|
"show-configurator": t.showConfigurator,
|
|
21868
21868
|
"can-show-configurator": t.canShowConfigurator
|
|
21869
|
-
}, null, 8, ["categories-items", "has-products", "event-emitter", "filtered-items", "is-category-item-selected", "show-slugs", "show-properties", "allow-name-click", "allow-price-click", "show-price-history", "show-cost-date", "show-category-required-button", "show-category-hide-for-client-button", "show-category-pin-button", "show-category-edit-button", "category-context-buttons-config", "is-product-item-selected", "show-product-add-to-cart-button", "show-product-costs", "show-product-required-button", "show-product-edit-button", "product-context-buttons-config", "show-configurator", "can-show-configurator"])) :
|
|
21869
|
+
}, null, 8, ["categories-items", "has-products", "event-emitter", "filtered-items", "is-category-item-selected", "show-slugs", "show-properties", "allow-name-click", "allow-price-click", "show-price-history", "show-cost-date", "show-category-required-button", "show-category-hide-for-client-button", "show-category-pin-button", "show-category-edit-button", "category-context-buttons-config", "is-product-item-selected", "show-product-add-to-cart-button", "show-product-costs", "show-product-required-button", "show-product-edit-button", "product-context-buttons-config", "show-configurator", "can-show-configurator"])) : j("", !0)
|
|
21870
21870
|
]),
|
|
21871
21871
|
g.value && f.value ? (w(), Q(Bb, {
|
|
21872
21872
|
key: 0,
|
|
@@ -21886,9 +21886,9 @@ const Eb = {
|
|
|
21886
21886
|
ie(" Назад в Конфигуратор ", -1)
|
|
21887
21887
|
])]),
|
|
21888
21888
|
_: 1
|
|
21889
|
-
})) :
|
|
21889
|
+
})) : j("", !0),
|
|
21890
21890
|
H(hn, {
|
|
21891
|
-
columns:
|
|
21891
|
+
columns: q.value,
|
|
21892
21892
|
data: a.value,
|
|
21893
21893
|
bordered: !0,
|
|
21894
21894
|
loading: m.value,
|
|
@@ -21897,21 +21897,21 @@ const Eb = {
|
|
|
21897
21897
|
"table-layout": _.value,
|
|
21898
21898
|
class: "mt-2"
|
|
21899
21899
|
}, null, 8, ["columns", "data", "loading", "row-key", "table-layout"])
|
|
21900
|
-
])) :
|
|
21900
|
+
])) : j("", !0),
|
|
21901
21901
|
!m.value && !y.value && !s.value && !l.value ? (w(), Q(Oi, {
|
|
21902
21902
|
key: 2,
|
|
21903
21903
|
"show-icon": !0,
|
|
21904
21904
|
type: "warning",
|
|
21905
21905
|
title: "Категория пуста",
|
|
21906
21906
|
class: "mx-10"
|
|
21907
|
-
})) :
|
|
21907
|
+
})) : j("", !0),
|
|
21908
21908
|
y.value ? (w(), Q(Oi, {
|
|
21909
21909
|
key: 3,
|
|
21910
21910
|
"show-icon": !0,
|
|
21911
21911
|
type: "error",
|
|
21912
21912
|
title: "При получении данных произошла ошибка",
|
|
21913
21913
|
class: "mx-10"
|
|
21914
|
-
})) :
|
|
21914
|
+
})) : j("", !0),
|
|
21915
21915
|
m.value ? (w(), Q(Si, {
|
|
21916
21916
|
key: 4,
|
|
21917
21917
|
size: E(i),
|
|
@@ -21921,7 +21921,7 @@ const Eb = {
|
|
|
21921
21921
|
R("div", null, "Выполняется загрузка данных ...", -1)
|
|
21922
21922
|
])]),
|
|
21923
21923
|
_: 1
|
|
21924
|
-
}, 8, ["size"])) :
|
|
21924
|
+
}, 8, ["size"])) : j("", !0)
|
|
21925
21925
|
];
|
|
21926
21926
|
}, !0)
|
|
21927
21927
|
]),
|
|
@@ -21942,7 +21942,7 @@ const Eb = {
|
|
|
21942
21942
|
return yi("itemHeaderClickHandler", (r, o) => {
|
|
21943
21943
|
n("on-item-header-click", r, o);
|
|
21944
21944
|
}), yi("defaultExpandedNames", i.defaultExpandedNames), yi("expandedNames", i.expandedNames), (r, o) => (w(), z("div", Yb, [
|
|
21945
|
-
|
|
21945
|
+
Te(r.$slots, "default")
|
|
21946
21946
|
]));
|
|
21947
21947
|
}
|
|
21948
21948
|
}), Zb = {}, Qb = /* @__PURE__ */ oe({
|
|
@@ -21997,10 +21997,10 @@ const Eb = {
|
|
|
21997
21997
|
};
|
|
21998
21998
|
return (r, o) => {
|
|
21999
21999
|
const a = ir, l = Od;
|
|
22000
|
-
return w(), z(
|
|
22000
|
+
return w(), z($e, null, [
|
|
22001
22001
|
n.value.length > 0 ? (w(), Q(Kb, { key: 0 }, {
|
|
22002
22002
|
default: I(() => [
|
|
22003
|
-
(w(!0), z(
|
|
22003
|
+
(w(!0), z($e, null, Xt(n.value, (c) => (w(), Q(Xb, {
|
|
22004
22004
|
key: c.id,
|
|
22005
22005
|
"category-item": c,
|
|
22006
22006
|
"event-emitter": t.eventEmitter,
|
|
@@ -22037,14 +22037,14 @@ const Eb = {
|
|
|
22037
22037
|
R("div", null, "Выполняется загрузка данных ...", -1)
|
|
22038
22038
|
])]),
|
|
22039
22039
|
_: 1
|
|
22040
|
-
}, 8, ["size"])) :
|
|
22040
|
+
}, 8, ["size"])) : j("", !0),
|
|
22041
22041
|
!t.hasProducts && !t.loading && t.categoriesItems.length > 0 && n.value.length === 0 ? (w(), Q(l, {
|
|
22042
22042
|
key: 2,
|
|
22043
22043
|
"show-icon": !0,
|
|
22044
22044
|
type: "warning",
|
|
22045
22045
|
title: "Товары не найдены",
|
|
22046
22046
|
class: "mx-10"
|
|
22047
|
-
})) :
|
|
22047
|
+
})) : j("", !0)
|
|
22048
22048
|
], 64);
|
|
22049
22049
|
};
|
|
22050
22050
|
}
|
|
@@ -22143,10 +22143,10 @@ const Eb = {
|
|
|
22143
22143
|
const S = l(_);
|
|
22144
22144
|
S ? _.name += ` (${S} ${(b = a.value) == null ? void 0 : b.currency.symbol})` : _.name = "";
|
|
22145
22145
|
}), T.filter((_) => _.name !== "");
|
|
22146
|
-
}), u =
|
|
22146
|
+
}), u = U(i.value.coefficient), d = U(((k = ($ = i.value) == null ? void 0 : $.value) == null ? void 0 : k.toString()) ?? null), h = U(null), g = O(() => {
|
|
22147
22147
|
var T, B;
|
|
22148
22148
|
return (B = (T = a.value) == null ? void 0 : T.priceCoefficients) == null ? void 0 : B.find((_) => _.coefficient.slug === Tg.K0);
|
|
22149
|
-
}), f =
|
|
22149
|
+
}), f = U(void 0), p = () => {
|
|
22150
22150
|
var B, _, S;
|
|
22151
22151
|
f.value = void 0;
|
|
22152
22152
|
let T = Number.parseFloat(((B = d.value) == null ? void 0 : B.replace(",", ".")) ?? "");
|
|
@@ -22227,13 +22227,13 @@ const Eb = {
|
|
|
22227
22227
|
}, {
|
|
22228
22228
|
default: I(() => [
|
|
22229
22229
|
R("div", {
|
|
22230
|
-
class:
|
|
22230
|
+
class: Ue([{
|
|
22231
22231
|
"sm:grid-cols-3": o.value && t.calculationType !== E(Nr).m2Cost
|
|
22232
22232
|
}, "grid w-full grid-cols-1 gap-2"])
|
|
22233
22233
|
}, [
|
|
22234
22234
|
t.calculationType !== E(Nr).m2Cost ? (w(), Q(S, {
|
|
22235
22235
|
key: 0,
|
|
22236
|
-
class:
|
|
22236
|
+
class: Ue(["w-full flex-row", { "sm:col-span-2": o.value }])
|
|
22237
22237
|
}, {
|
|
22238
22238
|
default: I(() => [
|
|
22239
22239
|
H(e_, {
|
|
@@ -22272,7 +22272,7 @@ const Eb = {
|
|
|
22272
22272
|
]), 1032, ["value", "clearable", "disabled"])
|
|
22273
22273
|
]),
|
|
22274
22274
|
_: 1
|
|
22275
|
-
}, 8, ["class"])) :
|
|
22275
|
+
}, 8, ["class"])) : j("", !0),
|
|
22276
22276
|
o.value || t.calculationType === E(Nr).m2Cost ? (w(), Q(_, {
|
|
22277
22277
|
key: 1,
|
|
22278
22278
|
value: h.value,
|
|
@@ -22295,7 +22295,7 @@ const Eb = {
|
|
|
22295
22295
|
}),
|
|
22296
22296
|
key: "0"
|
|
22297
22297
|
} : void 0
|
|
22298
|
-
]), 1032, ["value", "clearable", "disabled"])) :
|
|
22298
|
+
]), 1032, ["value", "clearable", "disabled"])) : j("", !0)
|
|
22299
22299
|
], 2)
|
|
22300
22300
|
]),
|
|
22301
22301
|
_: 1
|
|
@@ -22328,7 +22328,7 @@ const Eb = {
|
|
|
22328
22328
|
},
|
|
22329
22329
|
emits: ["update:show", "opening", "closing", "accept", "processing:cancel"],
|
|
22330
22330
|
setup(t, { expose: e, emit: i }) {
|
|
22331
|
-
const n = t, s = i, r =
|
|
22331
|
+
const n = t, s = i, r = U(n.show), o = U(n.processing), a = ci.initRefDependingOnDeviceResolution(n.sizes.phone.size, n.sizes.tablet.size, n.sizes.default.size), l = ci.initRefDependingOnDeviceResolution(
|
|
22332
22332
|
n.sizes.phone.scale,
|
|
22333
22333
|
n.sizes.tablet.scale,
|
|
22334
22334
|
n.sizes.default.scale
|
|
@@ -22390,14 +22390,14 @@ const Eb = {
|
|
|
22390
22390
|
onMaskClick: f[3] || (f[3] = (m) => d("mask"))
|
|
22391
22391
|
}, Un({
|
|
22392
22392
|
default: I(() => [
|
|
22393
|
-
|
|
22393
|
+
Te(g.$slots, "default")
|
|
22394
22394
|
]),
|
|
22395
22395
|
_: 2
|
|
22396
22396
|
}, [
|
|
22397
22397
|
g.$slots.header ? {
|
|
22398
22398
|
name: "header",
|
|
22399
22399
|
fn: I(() => [
|
|
22400
|
-
|
|
22400
|
+
Te(g.$slots, "header")
|
|
22401
22401
|
]),
|
|
22402
22402
|
key: "0"
|
|
22403
22403
|
} : void 0,
|
|
@@ -22405,10 +22405,10 @@ const Eb = {
|
|
|
22405
22405
|
name: "action",
|
|
22406
22406
|
fn: I(() => [
|
|
22407
22407
|
g.$slots["extra-action"] ? (w(), z("div", i_, [
|
|
22408
|
-
|
|
22409
|
-
])) :
|
|
22408
|
+
Te(g.$slots, "extra-action")
|
|
22409
|
+
])) : j("", !0),
|
|
22410
22410
|
g.$slots.action || t.acceptButton.show || t.cancelButton.show ? (w(), z("div", n_, [
|
|
22411
|
-
|
|
22411
|
+
Te(g.$slots, "action", { disabled: o.value }),
|
|
22412
22412
|
t.acceptButton.show ?? !0 ? (w(), Q(p, {
|
|
22413
22413
|
key: 0,
|
|
22414
22414
|
disabled: o.value || !t.valid,
|
|
@@ -22420,7 +22420,7 @@ const Eb = {
|
|
|
22420
22420
|
ie(Y(t.acceptButton.text ?? "ОК"), 1)
|
|
22421
22421
|
]),
|
|
22422
22422
|
_: 1
|
|
22423
|
-
}, 8, ["disabled", "size"])) :
|
|
22423
|
+
}, 8, ["disabled", "size"])) : j("", !0),
|
|
22424
22424
|
t.cancelButton.show ?? !0 ? (w(), Q(p, {
|
|
22425
22425
|
key: 1,
|
|
22426
22426
|
size: E(a),
|
|
@@ -22431,8 +22431,8 @@ const Eb = {
|
|
|
22431
22431
|
ie(Y(t.cancelButton.text ?? "Отмена"), 1)
|
|
22432
22432
|
]),
|
|
22433
22433
|
_: 1
|
|
22434
|
-
}, 8, ["size"])) :
|
|
22435
|
-
])) :
|
|
22434
|
+
}, 8, ["size"])) : j("", !0)
|
|
22435
|
+
])) : j("", !0)
|
|
22436
22436
|
]),
|
|
22437
22437
|
key: "1"
|
|
22438
22438
|
} : void 0
|
|
@@ -22444,14 +22444,14 @@ const Eb = {
|
|
|
22444
22444
|
__name: "add-product-to-cart-dialog",
|
|
22445
22445
|
emits: ["submit"],
|
|
22446
22446
|
setup(t, { expose: e, emit: i }) {
|
|
22447
|
-
const n = nt("form-reference"), s = nt("base-dialog-reference"), r =
|
|
22447
|
+
const n = nt("form-reference"), s = nt("base-dialog-reference"), r = U(null), o = O(() => {
|
|
22448
22448
|
var _, S, b;
|
|
22449
22449
|
return ((_ = r.value) == null ? void 0 : _.unit.isLinear) && ((b = (S = r.value) == null ? void 0 : S.properties) == null ? void 0 : b.isLengthConfigurator);
|
|
22450
|
-
}), a =
|
|
22450
|
+
}), a = U(void 0), l = U(void 0), c = U(!0), u = U(null), d = i, h = () => ({
|
|
22451
22451
|
length: {},
|
|
22452
22452
|
quantity: {},
|
|
22453
22453
|
marker: {}
|
|
22454
|
-
}), g =
|
|
22454
|
+
}), g = U(h()), f = U(!1), p = O(() => {
|
|
22455
22455
|
var F, D, N, M;
|
|
22456
22456
|
if (!r.value)
|
|
22457
22457
|
return {};
|
|
@@ -22586,7 +22586,7 @@ const Eb = {
|
|
|
22586
22586
|
}, null, 8, ["value", "parse", "onFocus"])
|
|
22587
22587
|
]),
|
|
22588
22588
|
_: 1
|
|
22589
|
-
}, 8, ["label"])) :
|
|
22589
|
+
}, 8, ["label"])) : j("", !0),
|
|
22590
22590
|
H(b, {
|
|
22591
22591
|
path: "quantity",
|
|
22592
22592
|
label: "Количество, шт."
|
|
@@ -22617,7 +22617,7 @@ const Eb = {
|
|
|
22617
22617
|
ie(" x " + Y(v.value) + " " + Y(r.value.unit.name), 1)
|
|
22618
22618
|
]),
|
|
22619
22619
|
_: 1
|
|
22620
|
-
})) :
|
|
22620
|
+
})) : j("", !0)
|
|
22621
22621
|
]),
|
|
22622
22622
|
_: 2
|
|
22623
22623
|
}, [
|
|
@@ -22647,7 +22647,7 @@ const Eb = {
|
|
|
22647
22647
|
}, null, 8, ["value", "onFocus"])
|
|
22648
22648
|
]),
|
|
22649
22649
|
_: 1
|
|
22650
|
-
})) :
|
|
22650
|
+
})) : j("", !0),
|
|
22651
22651
|
c.value ? (w(), Q(D, {
|
|
22652
22652
|
key: 2,
|
|
22653
22653
|
checked: u.value.isAdditionalSale,
|
|
@@ -22659,10 +22659,10 @@ const Eb = {
|
|
|
22659
22659
|
ie(" ДопПродажа ", -1)
|
|
22660
22660
|
])]),
|
|
22661
22661
|
_: 1
|
|
22662
|
-
}, 8, ["checked"])) :
|
|
22662
|
+
}, 8, ["checked"])) : j("", !0)
|
|
22663
22663
|
]),
|
|
22664
22664
|
_: 1
|
|
22665
|
-
}, 8, ["model", "rules", "onKeydown"])) :
|
|
22665
|
+
}, 8, ["model", "rules", "onKeydown"])) : j("", !0)
|
|
22666
22666
|
];
|
|
22667
22667
|
}),
|
|
22668
22668
|
_: 1
|
|
@@ -22707,7 +22707,7 @@ const Eb = {
|
|
|
22707
22707
|
H(l)
|
|
22708
22708
|
]),
|
|
22709
22709
|
_: 1
|
|
22710
|
-
})) :
|
|
22710
|
+
})) : j("", !0),
|
|
22711
22711
|
H(u, {
|
|
22712
22712
|
disabled: E(rt)(t.popoverPosition),
|
|
22713
22713
|
placement: t.popoverPosition
|
|
@@ -22720,21 +22720,21 @@ const Eb = {
|
|
|
22720
22720
|
onClick: a[1] || (a[1] = (d) => r(d))
|
|
22721
22721
|
}, [
|
|
22722
22722
|
R("span", {
|
|
22723
|
-
class:
|
|
22723
|
+
class: Ue({ "line-through": !t.client.isActive })
|
|
22724
22724
|
}, Y(t.client.name), 3),
|
|
22725
22725
|
t.showSalesDirection && t.client.salesDirection ? (w(), z("span", {
|
|
22726
22726
|
key: 0,
|
|
22727
|
-
class:
|
|
22728
|
-
}, " (" + Y(t.client.salesDirection.name) + ") ", 3)) :
|
|
22729
|
-
t.client.isActive ?
|
|
22727
|
+
class: Ue({ "line-through": !t.client.isActive })
|
|
22728
|
+
}, " (" + Y(t.client.salesDirection.name) + ") ", 3)) : j("", !0),
|
|
22729
|
+
t.client.isActive ? j("", !0) : (w(), z("span", d_, " [ Деактивирован ] "))
|
|
22730
22730
|
], 8, u_),
|
|
22731
|
-
t.showCityAndRegion && t.client.city ? (w(), z("span", h_, " г. " + Y(t.client.city.name) + ", " + Y(t.client.city.region.name), 1)) :
|
|
22731
|
+
t.showCityAndRegion && t.client.city ? (w(), z("span", h_, " г. " + Y(t.client.city.name) + ", " + Y(t.client.city.region.name), 1)) : j("", !0)
|
|
22732
22732
|
])
|
|
22733
22733
|
]),
|
|
22734
22734
|
default: I(() => [
|
|
22735
|
-
t.client.alternativeName ? (w(), z("div", f_, Y(t.client.alternativeName), 1)) :
|
|
22736
|
-
s.value ? (w(), z("span", g_, " Последний вход: " + Y(s.value), 1)) :
|
|
22737
|
-
|
|
22735
|
+
t.client.alternativeName ? (w(), z("div", f_, Y(t.client.alternativeName), 1)) : j("", !0),
|
|
22736
|
+
s.value ? (w(), z("span", g_, " Последний вход: " + Y(s.value), 1)) : j("", !0),
|
|
22737
|
+
Te(o.$slots, "popover-content")
|
|
22738
22738
|
]),
|
|
22739
22739
|
_: 3
|
|
22740
22740
|
}, 8, ["disabled", "placement"])
|
|
@@ -22780,9 +22780,9 @@ const w_ = Oe({ name: "tabler-mail", render: __ }), x_ = ["href"], k_ = {}, i3 =
|
|
|
22780
22780
|
return (e, i) => {
|
|
22781
22781
|
const n = w_;
|
|
22782
22782
|
return w(), z("span", {
|
|
22783
|
-
class:
|
|
22783
|
+
class: Ue({ "flex flex-row items-center gap-1": t.showEmailIcon })
|
|
22784
22784
|
}, [
|
|
22785
|
-
t.showEmailIcon ? (w(), Q(n, { key: 0 })) :
|
|
22785
|
+
t.showEmailIcon ? (w(), Q(n, { key: 0 })) : j("", !0),
|
|
22786
22786
|
R("a", {
|
|
22787
22787
|
href: `mailto:${t.email}`,
|
|
22788
22788
|
class: "no-underline"
|
|
@@ -22955,20 +22955,20 @@ const N_ = Oe({ name: "tabler-phone-call", render: D_ }), H_ = {
|
|
|
22955
22955
|
}), r = O(() => {
|
|
22956
22956
|
var a;
|
|
22957
22957
|
return rn(i.value) ? i.value : ((a = i.value) == null ? void 0 : a.format("E.164")) ?? "";
|
|
22958
|
-
}), o =
|
|
22958
|
+
}), o = U(!1);
|
|
22959
22959
|
return (a, l) => {
|
|
22960
22960
|
const c = N_, u = Uh, d = jh, h = Vh, g = Wh;
|
|
22961
22961
|
return w(), z("div", null, [
|
|
22962
22962
|
R("div", {
|
|
22963
|
-
class:
|
|
22963
|
+
class: Ue({ "border-xl relative inline-flex items-center rounded px-2": n.value && o.value, "min-w-10": !0 }),
|
|
22964
22964
|
onClick: l[0] || (l[0] = (f) => o.value = !o.value),
|
|
22965
22965
|
onFocusout: l[1] || (l[1] = (f) => o.value = !1),
|
|
22966
22966
|
onMouseleave: l[2] || (l[2] = (f) => o.value = !1)
|
|
22967
22967
|
}, [
|
|
22968
22968
|
R("div", {
|
|
22969
|
-
class:
|
|
22969
|
+
class: Ue({ "flex flex-row items-center gap-1": t.showPhoneIcon })
|
|
22970
22970
|
}, [
|
|
22971
|
-
t.showPhoneIcon ? (w(), Q(c, { key: 0 })) :
|
|
22971
|
+
t.showPhoneIcon ? (w(), Q(c, { key: 0 })) : j("", !0),
|
|
22972
22972
|
ie(" " + Y(s.value), 1)
|
|
22973
22973
|
], 2),
|
|
22974
22974
|
n.value && o.value ? (w(), z("div", H_, [
|
|
@@ -22978,7 +22978,7 @@ const N_ = Oe({ name: "tabler-phone-call", render: D_ }), H_ = {
|
|
|
22978
22978
|
class: "text-blue-600 hover:animate-pulse hover:text-blue-600"
|
|
22979
22979
|
}, [
|
|
22980
22980
|
H(u)
|
|
22981
|
-
], 8, W_)) :
|
|
22981
|
+
], 8, W_)) : j("", !0),
|
|
22982
22982
|
n.value ? (w(), z("a", {
|
|
22983
22983
|
key: 1,
|
|
22984
22984
|
href: `https://t.me/${r.value}`,
|
|
@@ -22987,7 +22987,7 @@ const N_ = Oe({ name: "tabler-phone-call", render: D_ }), H_ = {
|
|
|
22987
22987
|
class: "hover:animate-pulse"
|
|
22988
22988
|
}, [
|
|
22989
22989
|
H(d)
|
|
22990
|
-
], 8, V_)) :
|
|
22990
|
+
], 8, V_)) : j("", !0),
|
|
22991
22991
|
n.value ? (w(), z("a", {
|
|
22992
22992
|
key: 2,
|
|
22993
22993
|
href: `https://wa.me/${r.value.substring(1)}`,
|
|
@@ -22996,15 +22996,15 @@ const N_ = Oe({ name: "tabler-phone-call", render: D_ }), H_ = {
|
|
|
22996
22996
|
class: "hover:animate-pulse"
|
|
22997
22997
|
}, [
|
|
22998
22998
|
H(h)
|
|
22999
|
-
], 8, j_)) :
|
|
22999
|
+
], 8, j_)) : j("", !0),
|
|
23000
23000
|
n.value ? (w(), z("a", {
|
|
23001
23001
|
key: 3,
|
|
23002
23002
|
href: `viber://chat?number=${r.value}`,
|
|
23003
23003
|
class: "text-purple-600 hover:animate-pulse hover:text-purple-600"
|
|
23004
23004
|
}, [
|
|
23005
23005
|
H(g)
|
|
23006
|
-
], 8, U_)) :
|
|
23007
|
-
])) :
|
|
23006
|
+
], 8, U_)) : j("", !0)
|
|
23007
|
+
])) : j("", !0)
|
|
23008
23008
|
], 34)
|
|
23009
23009
|
]);
|
|
23010
23010
|
};
|
|
@@ -23077,7 +23077,7 @@ const G_ = Oe({ name: "mdi-envelope", render: Y_ }), K_ = { class: "flex flex-co
|
|
|
23077
23077
|
), r = O(() => {
|
|
23078
23078
|
var l;
|
|
23079
23079
|
return rn(i.value) ? i.value : ((l = i.value) == null ? void 0 : l.format("E.164")) ?? "";
|
|
23080
|
-
}), o = O(() => n.value || e.contact.email), a =
|
|
23080
|
+
}), o = O(() => n.value || e.contact.email), a = U(!1);
|
|
23081
23081
|
return (l, c) => {
|
|
23082
23082
|
var v, m;
|
|
23083
23083
|
const u = Uh, d = jh, h = Vh, g = Wh, f = G_, p = Bn;
|
|
@@ -23090,7 +23090,7 @@ const G_ = Oe({ name: "mdi-envelope", render: Y_ }), K_ = { class: "flex flex-co
|
|
|
23090
23090
|
var y, $, k, T;
|
|
23091
23091
|
return [
|
|
23092
23092
|
R("div", {
|
|
23093
|
-
class:
|
|
23093
|
+
class: Ue(`relative contact-btn px-3 py-2 rounded-md items-center inline-flex bg-gray-50 ${(y = t.contact) != null && y.isPrimary ? "ring-1 ring-inset ring-green-600 hover:ring-gray-200" : ""} ${t.classes}`),
|
|
23094
23094
|
style: er(t.styles),
|
|
23095
23095
|
onMouseenter: c[0] || (c[0] = (B) => a.value = !0),
|
|
23096
23096
|
onFocusin: c[1] || (c[1] = (B) => a.value = !0),
|
|
@@ -23100,10 +23100,10 @@ const G_ = Oe({ name: "mdi-envelope", render: Y_ }), K_ = { class: "flex flex-co
|
|
|
23100
23100
|
R("div", null, [
|
|
23101
23101
|
t.fullView && (t.contact.name || ($ = t.contact) != null && $.position) ? (w(), z("div", Z_, [
|
|
23102
23102
|
ie(Y(t.contact.name) + " ", 1),
|
|
23103
|
-
(k = t.contact) != null && k.position ? (w(), z("span", Q_, Y((T = t.contact) == null ? void 0 : T.position), 1)) :
|
|
23104
|
-
])) :
|
|
23105
|
-
t.contact.phone ? (w(), z("div", J_, Y(s.value), 1)) :
|
|
23106
|
-
t.contact.email ? (w(), z("div", e1, Y(t.contact.email), 1)) :
|
|
23103
|
+
(k = t.contact) != null && k.position ? (w(), z("span", Q_, Y((T = t.contact) == null ? void 0 : T.position), 1)) : j("", !0)
|
|
23104
|
+
])) : j("", !0),
|
|
23105
|
+
t.contact.phone ? (w(), z("div", J_, Y(s.value), 1)) : j("", !0),
|
|
23106
|
+
t.contact.email ? (w(), z("div", e1, Y(t.contact.email), 1)) : j("", !0),
|
|
23107
23107
|
o.value && a.value ? (w(), z("div", t1, [
|
|
23108
23108
|
n.value ? (w(), z("a", {
|
|
23109
23109
|
key: 0,
|
|
@@ -23111,7 +23111,7 @@ const G_ = Oe({ name: "mdi-envelope", render: Y_ }), K_ = { class: "flex flex-co
|
|
|
23111
23111
|
class: "text-blue-600 hover:text-3xl hover:text-blue-600"
|
|
23112
23112
|
}, [
|
|
23113
23113
|
H(u)
|
|
23114
|
-
], 8, i1)) :
|
|
23114
|
+
], 8, i1)) : j("", !0),
|
|
23115
23115
|
n.value ? (w(), z("a", {
|
|
23116
23116
|
key: 1,
|
|
23117
23117
|
href: `https://t.me/${r.value}`,
|
|
@@ -23120,7 +23120,7 @@ const G_ = Oe({ name: "mdi-envelope", render: Y_ }), K_ = { class: "flex flex-co
|
|
|
23120
23120
|
class: "hover:text-3xl"
|
|
23121
23121
|
}, [
|
|
23122
23122
|
H(d)
|
|
23123
|
-
], 8, n1)) :
|
|
23123
|
+
], 8, n1)) : j("", !0),
|
|
23124
23124
|
n.value ? (w(), z("a", {
|
|
23125
23125
|
key: 2,
|
|
23126
23126
|
href: `https://wa.me/${r.value.substring(1)}`,
|
|
@@ -23129,22 +23129,22 @@ const G_ = Oe({ name: "mdi-envelope", render: Y_ }), K_ = { class: "flex flex-co
|
|
|
23129
23129
|
class: "hover:text-3xl"
|
|
23130
23130
|
}, [
|
|
23131
23131
|
H(h)
|
|
23132
|
-
], 8, s1)) :
|
|
23132
|
+
], 8, s1)) : j("", !0),
|
|
23133
23133
|
n.value ? (w(), z("a", {
|
|
23134
23134
|
key: 3,
|
|
23135
23135
|
href: `viber://chat?number=${r.value}`,
|
|
23136
23136
|
class: "text-purple-600 hover:text-3xl hover:text-purple-600"
|
|
23137
23137
|
}, [
|
|
23138
23138
|
H(g)
|
|
23139
|
-
], 8, r1)) :
|
|
23139
|
+
], 8, r1)) : j("", !0),
|
|
23140
23140
|
t.contact.email ? (w(), z("a", {
|
|
23141
23141
|
key: 4,
|
|
23142
23142
|
href: `mailto:${t.contact.email}`,
|
|
23143
23143
|
class: "hover:text-3xl"
|
|
23144
23144
|
}, [
|
|
23145
23145
|
H(f)
|
|
23146
|
-
], 8, o1)) :
|
|
23147
|
-
])) :
|
|
23146
|
+
], 8, o1)) : j("", !0)
|
|
23147
|
+
])) : j("", !0)
|
|
23148
23148
|
])
|
|
23149
23149
|
], 38)
|
|
23150
23150
|
];
|
|
@@ -23154,12 +23154,12 @@ const G_ = Oe({ name: "mdi-envelope", render: Y_ }), K_ = { class: "flex flex-co
|
|
|
23154
23154
|
return [
|
|
23155
23155
|
t.contact.name ? (w(), z("div", a1, [
|
|
23156
23156
|
ie(Y(t.contact.name) + " ", 1),
|
|
23157
|
-
(y = t.contact) != null && y.position ? (w(), z("span", l1, Y(($ = t.contact) == null ? void 0 : $.position), 1)) :
|
|
23158
|
-
])) :
|
|
23157
|
+
(y = t.contact) != null && y.position ? (w(), z("span", l1, Y(($ = t.contact) == null ? void 0 : $.position), 1)) : j("", !0)
|
|
23158
|
+
])) : j("", !0),
|
|
23159
23159
|
(k = t.contact) != null && k.comment ? (w(), z("div", c1, [
|
|
23160
23160
|
c[4] || (c[4] = R("sup", null, "**", -1)),
|
|
23161
23161
|
ie(" " + Y((T = t.contact) == null ? void 0 : T.comment), 1)
|
|
23162
|
-
])) :
|
|
23162
|
+
])) : j("", !0)
|
|
23163
23163
|
];
|
|
23164
23164
|
}),
|
|
23165
23165
|
_: 1
|
|
@@ -23167,7 +23167,7 @@ const G_ = Oe({ name: "mdi-envelope", render: Y_ }), K_ = { class: "flex flex-co
|
|
|
23167
23167
|
t.fullView && ((v = t.contact) != null && v.comment) ? (w(), z("div", u1, [
|
|
23168
23168
|
c[5] || (c[5] = R("sup", null, "**", -1)),
|
|
23169
23169
|
ie(" " + Y((m = t.contact) == null ? void 0 : m.comment), 1)
|
|
23170
|
-
])) :
|
|
23170
|
+
])) : j("", !0)
|
|
23171
23171
|
]);
|
|
23172
23172
|
};
|
|
23173
23173
|
}
|
|
@@ -23286,7 +23286,7 @@ const h1 = { class: "flex flex-wrap gap-2" }, f1 = { class: "flex flex-col" }, g
|
|
|
23286
23286
|
name: "footer",
|
|
23287
23287
|
fn: I(() => [
|
|
23288
23288
|
R("div", f1, [
|
|
23289
|
-
(w(!0), z(
|
|
23289
|
+
(w(!0), z($e, null, Xt(s.value, (v, m) => (w(), Q(l, {
|
|
23290
23290
|
key: m,
|
|
23291
23291
|
class: "my-1 mr-2",
|
|
23292
23292
|
size: "small",
|
|
@@ -23327,7 +23327,7 @@ const h1 = { class: "flex flex-wrap gap-2" }, f1 = { class: "flex flex-col" }, g
|
|
|
23327
23327
|
name: "footer",
|
|
23328
23328
|
fn: I(() => [
|
|
23329
23329
|
R("div", g1, [
|
|
23330
|
-
(w(!0), z(
|
|
23330
|
+
(w(!0), z($e, null, Xt(s.value, (v, m) => (w(), Q(l, {
|
|
23331
23331
|
key: m,
|
|
23332
23332
|
class: "my-1 mr-2",
|
|
23333
23333
|
size: "small",
|
|
@@ -23363,13 +23363,13 @@ const h1 = { class: "flex flex-wrap gap-2" }, f1 = { class: "flex flex-col" }, g
|
|
|
23363
23363
|
setup(t) {
|
|
23364
23364
|
const e = t, i = O(() => Ks(e.date, _i().config.dateFormats.uiDate)), n = O(() => Ks(e.date, "HH:mm"));
|
|
23365
23365
|
return (s, r) => (w(), z("span", {
|
|
23366
|
-
class:
|
|
23366
|
+
class: Ue({ "flex flex-col": t.isTimeOnSecondLine })
|
|
23367
23367
|
}, [
|
|
23368
23368
|
R("span", m1, Y(i.value), 1),
|
|
23369
23369
|
t.isShowTime ? (w(), z("span", {
|
|
23370
23370
|
key: 0,
|
|
23371
|
-
class:
|
|
23372
|
-
}, Y(n.value), 3)) :
|
|
23371
|
+
class: Ue([{ "text-sc-grey": t.isTimeSecondary, "ml-1": !t.isTimeOnSecondLine }, "sc-lbl-time"])
|
|
23372
|
+
}, Y(n.value), 3)) : j("", !0)
|
|
23373
23373
|
], 2));
|
|
23374
23374
|
}
|
|
23375
23375
|
}), y1 = { class: "flex flex-row gap-2.5" }, b1 = { class: "flex grow basis-0 flex-row flex-wrap justify-start justify-items-start gap-y-1 md:flex-nowrap" }, _1 = { class: "flex min-w-0 flex-col-reverse flex-wrap-reverse justify-end gap-1 sm:flex-row" }, w1 = { class: "mb-0.5 sm:mb-0 sm:ml-3" }, x1 = {}, a3 = /* @__PURE__ */ oe({
|
|
@@ -23384,11 +23384,11 @@ const h1 = { class: "flex flex-wrap gap-2" }, f1 = { class: "flex flex-col" }, g
|
|
|
23384
23384
|
const n = jo, s = De, r = Bn;
|
|
23385
23385
|
return w(), z("div", y1, [
|
|
23386
23386
|
R("div", b1, [
|
|
23387
|
-
|
|
23387
|
+
Te(e.$slots, "main")
|
|
23388
23388
|
]),
|
|
23389
23389
|
R("div", null, [
|
|
23390
23390
|
R("div", _1, [
|
|
23391
|
-
|
|
23391
|
+
Te(e.$slots, "extra-buttons"),
|
|
23392
23392
|
R("div", w1, [
|
|
23393
23393
|
t.showCloseButton ? (w(), Q(r, {
|
|
23394
23394
|
key: 0,
|
|
@@ -23410,7 +23410,7 @@ const h1 = { class: "flex flex-wrap gap-2" }, f1 = { class: "flex flex-col" }, g
|
|
|
23410
23410
|
i[1] || (i[1] = ie(" Закрыть ", -1))
|
|
23411
23411
|
]),
|
|
23412
23412
|
_: 1
|
|
23413
|
-
})) :
|
|
23413
|
+
})) : j("", !0)
|
|
23414
23414
|
])
|
|
23415
23415
|
])
|
|
23416
23416
|
])
|
|
@@ -23452,7 +23452,7 @@ const S1 = Oe({ name: "ion-download-outline", render: C1 }), $1 = {}, l3 = /* @_
|
|
|
23452
23452
|
},
|
|
23453
23453
|
emits: ["update:file"],
|
|
23454
23454
|
setup(t, { emit: e }) {
|
|
23455
|
-
const i = t, n = e, s =
|
|
23455
|
+
const i = t, n = e, s = U([]), r = O(
|
|
23456
23456
|
() => s.value.map((a) => (a.status = i.isError ? "error" : "finished", a))
|
|
23457
23457
|
), o = (a) => {
|
|
23458
23458
|
s.value = a;
|
|
@@ -23484,7 +23484,7 @@ const S1 = Oe({ name: "ion-download-outline", render: C1 }), $1 = {}, l3 = /* @_
|
|
|
23484
23484
|
default: I(() => [
|
|
23485
23485
|
H(E(_g), null, {
|
|
23486
23486
|
default: I(() => [
|
|
23487
|
-
|
|
23487
|
+
Te(a.$slots, "dragged-area", {}, () => [
|
|
23488
23488
|
R("div", null, [
|
|
23489
23489
|
H(c, { class: "text-2xl" }),
|
|
23490
23490
|
R("div", null, Y(t.draggedAreaText ?? "Перетащите в эту область файл, который необходимо загрузить."), 1)
|
|
@@ -23573,7 +23573,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23573
23573
|
},
|
|
23574
23574
|
emits: ["edit", "apply", "cancel"],
|
|
23575
23575
|
setup(t, { emit: e }) {
|
|
23576
|
-
const i = e, n =
|
|
23576
|
+
const i = e, n = U(!1), s = () => {
|
|
23577
23577
|
i("edit");
|
|
23578
23578
|
}, r = () => {
|
|
23579
23579
|
n.value = !1;
|
|
@@ -23586,7 +23586,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23586
23586
|
const u = A1, d = De, h = Bn, g = R1, f = jo;
|
|
23587
23587
|
return w(), z("div", M1, [
|
|
23588
23588
|
R("div", E1, [
|
|
23589
|
-
|
|
23589
|
+
Te(l.$slots, "default")
|
|
23590
23590
|
]),
|
|
23591
23591
|
R("div", null, [
|
|
23592
23592
|
R("div", I1, [
|
|
@@ -23613,7 +23613,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23613
23613
|
c[0] || (c[0] = ie(" Редактировать данные ", -1))
|
|
23614
23614
|
]),
|
|
23615
23615
|
_: 1
|
|
23616
|
-
})) :
|
|
23616
|
+
})) : j("", !0),
|
|
23617
23617
|
t.showApplyButton ? (w(), Q(h, {
|
|
23618
23618
|
key: 1,
|
|
23619
23619
|
disabled: n.value,
|
|
@@ -23636,7 +23636,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23636
23636
|
c[1] || (c[1] = ie(" Сохранить изменения ", -1))
|
|
23637
23637
|
]),
|
|
23638
23638
|
_: 1
|
|
23639
|
-
}, 8, ["disabled"])) :
|
|
23639
|
+
}, 8, ["disabled"])) : j("", !0),
|
|
23640
23640
|
t.showCancelButton ? (w(), Q(h, {
|
|
23641
23641
|
key: 2,
|
|
23642
23642
|
placement: "bottom"
|
|
@@ -23658,9 +23658,9 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23658
23658
|
c[2] || (c[2] = ie(" Отменить изменения ", -1))
|
|
23659
23659
|
]),
|
|
23660
23660
|
_: 1
|
|
23661
|
-
})) :
|
|
23661
|
+
})) : j("", !0)
|
|
23662
23662
|
]),
|
|
23663
|
-
|
|
23663
|
+
Te(l.$slots, "extra-buttons")
|
|
23664
23664
|
])
|
|
23665
23665
|
])
|
|
23666
23666
|
]);
|
|
@@ -23676,7 +23676,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23676
23676
|
},
|
|
23677
23677
|
emits: ["editor:apply", "editor:cancel"],
|
|
23678
23678
|
setup(t, { emit: e }) {
|
|
23679
|
-
const i = t, n = e, s =
|
|
23679
|
+
const i = t, n = e, s = U(i.showEditor), r = (a) => {
|
|
23680
23680
|
n("editor:apply", (c) => {
|
|
23681
23681
|
s.value = !c, a();
|
|
23682
23682
|
});
|
|
@@ -23700,10 +23700,10 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23700
23700
|
onCancel: o
|
|
23701
23701
|
}, {
|
|
23702
23702
|
"extra-buttons": I(() => [
|
|
23703
|
-
|
|
23703
|
+
Te(a.$slots, "extra-editor-buttons")
|
|
23704
23704
|
]),
|
|
23705
23705
|
default: I(() => [
|
|
23706
|
-
|
|
23706
|
+
Te(a.$slots, "editor")
|
|
23707
23707
|
]),
|
|
23708
23708
|
_: 3
|
|
23709
23709
|
}, 8, ["disabled"])) : (w(), Q(Eu, {
|
|
@@ -23713,10 +23713,10 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23713
23713
|
onEdit: l[0] || (l[0] = (c) => s.value = !0)
|
|
23714
23714
|
}, {
|
|
23715
23715
|
"extra-buttons": I(() => [
|
|
23716
|
-
|
|
23716
|
+
Te(a.$slots, "extra-viewer-buttons")
|
|
23717
23717
|
]),
|
|
23718
23718
|
default: I(() => [
|
|
23719
|
-
|
|
23719
|
+
Te(a.$slots, "viewer")
|
|
23720
23720
|
]),
|
|
23721
23721
|
_: 3
|
|
23722
23722
|
}, 8, ["disabled", "show-edit-button"]))
|
|
@@ -23733,7 +23733,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23733
23733
|
},
|
|
23734
23734
|
emits: ["update:value"],
|
|
23735
23735
|
setup(t, { emit: e }) {
|
|
23736
|
-
const i = t, n = e, s =
|
|
23736
|
+
const i = t, n = e, s = U(i.value), r = O(() => Ke("debounce-input-time", i.debounceTime)), o = qi(
|
|
23737
23737
|
// eslint-disable-next-line func-names
|
|
23738
23738
|
() => n("update:value", s.value),
|
|
23739
23739
|
r.value
|
|
@@ -23755,7 +23755,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23755
23755
|
placeholder: t.placeholder
|
|
23756
23756
|
}, {
|
|
23757
23757
|
prefix: I(() => [
|
|
23758
|
-
|
|
23758
|
+
Te(l.$slots, "prefix")
|
|
23759
23759
|
]),
|
|
23760
23760
|
_: 3
|
|
23761
23761
|
}, 8, ["value", "clearable", "placeholder"]));
|
|
@@ -23777,7 +23777,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23777
23777
|
},
|
|
23778
23778
|
emits: ["update:value", "keydown", "input", "focus"],
|
|
23779
23779
|
setup(t, { expose: e, emit: i }) {
|
|
23780
|
-
const n = t, s = i, r =
|
|
23780
|
+
const n = t, s = i, r = U(n.value), o = O(() => Ke("debounce-input-time", n.debounceTime)), a = qi(
|
|
23781
23781
|
// eslint-disable-next-line func-names
|
|
23782
23782
|
() => s("update:value", r.value),
|
|
23783
23783
|
o.value
|
|
@@ -23790,7 +23790,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23790
23790
|
r.value = g;
|
|
23791
23791
|
}
|
|
23792
23792
|
);
|
|
23793
|
-
const c =
|
|
23793
|
+
const c = U(null);
|
|
23794
23794
|
return e({
|
|
23795
23795
|
focus: () => {
|
|
23796
23796
|
var g;
|
|
@@ -23822,7 +23822,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23822
23822
|
onFocus: f[2] || (f[2] = (p) => s("focus", p))
|
|
23823
23823
|
}, {
|
|
23824
23824
|
prefix: I(() => [
|
|
23825
|
-
|
|
23825
|
+
Te(g.$slots, "prefix")
|
|
23826
23826
|
]),
|
|
23827
23827
|
_: 3
|
|
23828
23828
|
}, 8, ["value", "clearable", "parse", "show-button", "placeholder", "min", "max", "step", "validator"]));
|
|
@@ -23841,7 +23841,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
|
|
|
23841
23841
|
},
|
|
23842
23842
|
emits: ["update:value"],
|
|
23843
23843
|
setup(t, { emit: e }) {
|
|
23844
|
-
const i = t, n = e, s =
|
|
23844
|
+
const i = t, n = e, s = U((i.value ?? "").replaceAll(/\D*/g, "")), r = qi(
|
|
23845
23845
|
// eslint-disable-next-line func-names
|
|
23846
23846
|
(l) => n("update:value", l),
|
|
23847
23847
|
i.debounceTime ?? 0
|
|
@@ -24862,10 +24862,10 @@ function Uw() {
|
|
|
24862
24862
|
if (V === 0 && !F && ce !== void 0) {
|
|
24863
24863
|
const K = ce.get(X);
|
|
24864
24864
|
if (K !== void 0)
|
|
24865
|
-
for (const
|
|
24865
|
+
for (const q of K) {
|
|
24866
24866
|
if (e.has(S))
|
|
24867
24867
|
break;
|
|
24868
|
-
|
|
24868
|
+
q(S);
|
|
24869
24869
|
}
|
|
24870
24870
|
}
|
|
24871
24871
|
}
|
|
@@ -25046,7 +25046,7 @@ const Aa = new Yw(), Ns = "@@ziContext", tf = {
|
|
|
25046
25046
|
}
|
|
25047
25047
|
};
|
|
25048
25048
|
function Gw(t) {
|
|
25049
|
-
const e =
|
|
25049
|
+
const e = U(!!t.value);
|
|
25050
25050
|
if (e.value)
|
|
25051
25051
|
return go(e);
|
|
25052
25052
|
const i = ke(t, (n) => {
|
|
@@ -25055,7 +25055,7 @@ function Gw(t) {
|
|
|
25055
25055
|
return go(e);
|
|
25056
25056
|
}
|
|
25057
25057
|
function Ai(t) {
|
|
25058
|
-
const e = O(t), i =
|
|
25058
|
+
const e = O(t), i = U(e.value);
|
|
25059
25059
|
return ke(e, (n) => {
|
|
25060
25060
|
i.value = n;
|
|
25061
25061
|
}), typeof t == "function" ? i : {
|
|
@@ -25095,7 +25095,7 @@ function fl(t, e) {
|
|
|
25095
25095
|
}), O(() => t.value === void 0 ? e.value : t.value);
|
|
25096
25096
|
}
|
|
25097
25097
|
function Uo() {
|
|
25098
|
-
const t =
|
|
25098
|
+
const t = U(!1);
|
|
25099
25099
|
return st(() => {
|
|
25100
25100
|
t.value = !0;
|
|
25101
25101
|
}), go(t);
|
|
@@ -25130,7 +25130,7 @@ function pl(t, e = !0, i = []) {
|
|
|
25130
25130
|
pl(n, e, i);
|
|
25131
25131
|
return;
|
|
25132
25132
|
}
|
|
25133
|
-
if (n.type ===
|
|
25133
|
+
if (n.type === $e) {
|
|
25134
25134
|
if (n.children === null)
|
|
25135
25135
|
return;
|
|
25136
25136
|
Array.isArray(n.children) && pl(n.children, e, i);
|
|
@@ -25208,7 +25208,7 @@ const of = oe({
|
|
|
25208
25208
|
setup(t) {
|
|
25209
25209
|
var e;
|
|
25210
25210
|
yi("VBinder", (e = Pd()) === null || e === void 0 ? void 0 : e.proxy);
|
|
25211
|
-
const i = Ke("VBinder", null), n =
|
|
25211
|
+
const i = Ke("VBinder", null), n = U(null), s = (m) => {
|
|
25212
25212
|
n.value = m, i && t.syncTargetWithParent && i.setTargetRef(m);
|
|
25213
25213
|
};
|
|
25214
25214
|
let r = [];
|
|
@@ -25984,7 +25984,7 @@ const Bx = Vn([
|
|
|
25984
25984
|
overlap: Boolean
|
|
25985
25985
|
},
|
|
25986
25986
|
setup(t) {
|
|
25987
|
-
const e = Ke("VBinder"), i = Ai(() => t.enabled !== void 0 ? t.enabled : t.show), n =
|
|
25987
|
+
const e = Ke("VBinder"), i = Ai(() => t.enabled !== void 0 ? t.enabled : t.show), n = U(null), s = U(null), r = () => {
|
|
25988
25988
|
const { syncTrigger: h } = t;
|
|
25989
25989
|
h.includes("scroll") && e.addScrollListener(l), h.includes("resize") && e.addResizeListener(l);
|
|
25990
25990
|
}, o = () => {
|
|
@@ -26414,7 +26414,7 @@ const yr = new Jx(), Fo = oe({
|
|
|
26414
26414
|
});
|
|
26415
26415
|
},
|
|
26416
26416
|
render() {
|
|
26417
|
-
return
|
|
26417
|
+
return Te(this.$slots, "default");
|
|
26418
26418
|
}
|
|
26419
26419
|
});
|
|
26420
26420
|
let ro;
|
|
@@ -26427,7 +26427,7 @@ function nd() {
|
|
|
26427
26427
|
}
|
|
26428
26428
|
const _f = "VVirtualListXScroll";
|
|
26429
26429
|
function t2({ columnsRef: t, renderColRef: e, renderItemWithColsRef: i }) {
|
|
26430
|
-
const n =
|
|
26430
|
+
const n = U(0), s = U(0), r = O(() => {
|
|
26431
26431
|
const c = t.value;
|
|
26432
26432
|
if (c.length === 0)
|
|
26433
26433
|
return null;
|
|
@@ -26606,13 +26606,13 @@ const sd = oe({
|
|
|
26606
26606
|
columnsRef: et(t, "columns"),
|
|
26607
26607
|
renderColRef: et(t, "renderCol"),
|
|
26608
26608
|
renderItemWithColsRef: et(t, "renderItemWithCols")
|
|
26609
|
-
}), l =
|
|
26609
|
+
}), l = U(null), c = U(void 0), u = /* @__PURE__ */ new Map(), d = O(() => {
|
|
26610
26610
|
const { items: N, itemSize: M, keyField: A } = t, J = new hf(N.length, M);
|
|
26611
26611
|
return N.forEach((ce, V) => {
|
|
26612
26612
|
const X = ce[A], ee = u.get(X);
|
|
26613
26613
|
ee !== void 0 && J.add(V, ee);
|
|
26614
26614
|
}), J;
|
|
26615
|
-
}), h =
|
|
26615
|
+
}), h = U(0), g = U(0), f = Ai(() => Math.max(d.value.getBound(g.value - $r(t.paddingTop)) - 1, 0)), p = O(() => {
|
|
26616
26616
|
const { value: N } = c;
|
|
26617
26617
|
if (N === void 0)
|
|
26618
26618
|
return [];
|
|
@@ -26631,8 +26631,8 @@ const sd = oe({
|
|
|
26631
26631
|
else if (ce !== void 0)
|
|
26632
26632
|
$(ce, ee, K);
|
|
26633
26633
|
else if (V !== void 0) {
|
|
26634
|
-
const
|
|
26635
|
-
|
|
26634
|
+
const q = r.value.get(V);
|
|
26635
|
+
q !== void 0 && $(q, ee, K);
|
|
26636
26636
|
} else X === "bottom" ? k(0, Number.MAX_SAFE_INTEGER, ee) : X === "top" && k(0, 0, ee);
|
|
26637
26637
|
};
|
|
26638
26638
|
let m, y = null;
|
|
@@ -26769,7 +26769,7 @@ const sd = oe({
|
|
|
26769
26769
|
})),
|
|
26770
26770
|
viewportItems: p,
|
|
26771
26771
|
listElRef: l,
|
|
26772
|
-
itemsElRef:
|
|
26772
|
+
itemsElRef: U(null),
|
|
26773
26773
|
scrollTo: v,
|
|
26774
26774
|
handleListResize: P,
|
|
26775
26775
|
handleListScroll: S,
|
|
@@ -26840,7 +26840,7 @@ const sd = oe({
|
|
|
26840
26840
|
onUpdateOverflow: Function
|
|
26841
26841
|
},
|
|
26842
26842
|
setup(t, { slots: e }) {
|
|
26843
|
-
const i =
|
|
26843
|
+
const i = U(null), n = U(null);
|
|
26844
26844
|
function s(o) {
|
|
26845
26845
|
const { value: a } = i, { getCounter: l, getTail: c } = t;
|
|
26846
26846
|
let u;
|
|
@@ -26903,7 +26903,7 @@ const sd = oe({
|
|
|
26903
26903
|
class: "v-overflow",
|
|
26904
26904
|
ref: "selfRef"
|
|
26905
26905
|
}, [
|
|
26906
|
-
|
|
26906
|
+
Te(t, "default"),
|
|
26907
26907
|
// $slots.counter should only has 1 element
|
|
26908
26908
|
t.counter ? t.counter() : W("span", {
|
|
26909
26909
|
style: {
|
|
@@ -26980,7 +26980,7 @@ const o2 = oe({
|
|
|
26980
26980
|
}
|
|
26981
26981
|
},
|
|
26982
26982
|
setup(t) {
|
|
26983
|
-
const e = fw(), i =
|
|
26983
|
+
const e = fw(), i = U(null), n = U(null);
|
|
26984
26984
|
let s = !1, r = !1;
|
|
26985
26985
|
const o = typeof document > "u" ? null : document.activeElement;
|
|
26986
26986
|
function a() {
|
|
@@ -27072,7 +27072,7 @@ const o2 = oe({
|
|
|
27072
27072
|
if (this.disabled)
|
|
27073
27073
|
return t();
|
|
27074
27074
|
const { active: e, focusableStyle: i } = this;
|
|
27075
|
-
return W(
|
|
27075
|
+
return W($e, null, [
|
|
27076
27076
|
W("div", {
|
|
27077
27077
|
"aria-hidden": "true",
|
|
27078
27078
|
tabindex: e ? "0" : "-1",
|
|
@@ -27093,7 +27093,7 @@ const o2 = oe({
|
|
|
27093
27093
|
});
|
|
27094
27094
|
const ic = "n-internal-select-menu", Sf = "n-internal-select-menu-body", $f = "n-drawer-body", Tf = "n-modal-body", Pf = "n-popover-body", Rf = "__disabled__";
|
|
27095
27095
|
function Fn(t) {
|
|
27096
|
-
const e = Ke(Tf, null), i = Ke($f, null), n = Ke(Pf, null), s = Ke(Sf, null), r =
|
|
27096
|
+
const e = Ke(Tf, null), i = Ke($f, null), n = Ke(Pf, null), s = Ke(Sf, null), r = U();
|
|
27097
27097
|
if (typeof document < "u") {
|
|
27098
27098
|
r.value = document.fullscreenElement;
|
|
27099
27099
|
const o = () => {
|
|
@@ -27323,7 +27323,7 @@ function bl(t, e = !0, i = []) {
|
|
|
27323
27323
|
bl(n, e, i);
|
|
27324
27324
|
return;
|
|
27325
27325
|
}
|
|
27326
|
-
if (n.type ===
|
|
27326
|
+
if (n.type === $e) {
|
|
27327
27327
|
if (n.children === null) return;
|
|
27328
27328
|
Array.isArray(n.children) && bl(n.children, e, i);
|
|
27329
27329
|
} else {
|
|
@@ -27359,7 +27359,7 @@ function js(t, ...e) {
|
|
|
27359
27359
|
return typeof t == "function" ? t(...e) : typeof t == "string" ? ie(t) : typeof t == "number" ? ie(String(t)) : null;
|
|
27360
27360
|
}
|
|
27361
27361
|
function Xo(t) {
|
|
27362
|
-
return t.some((e) => gg(e) ? !(e.type === Eo || e.type ===
|
|
27362
|
+
return t.some((e) => gg(e) ? !(e.type === Eo || e.type === $e && !Xo(e.children)) : !0) ? t : null;
|
|
27363
27363
|
}
|
|
27364
27364
|
function nc(t, e) {
|
|
27365
27365
|
return t && Xo(t()) || e();
|
|
@@ -27400,7 +27400,7 @@ function Rs(t = {}, e = {
|
|
|
27400
27400
|
}
|
|
27401
27401
|
function Fs(t, e, i, n) {
|
|
27402
27402
|
i || Mf("useThemeClass", "cssVarsRef is not passed");
|
|
27403
|
-
const s = Ke(Ps, null), r = s == null ? void 0 : s.mergedThemeHashRef, o = s == null ? void 0 : s.styleMountTarget, a =
|
|
27403
|
+
const s = Ke(Ps, null), r = s == null ? void 0 : s.mergedThemeHashRef, o = s == null ? void 0 : s.styleMountTarget, a = U(""), l = Ts();
|
|
27404
27404
|
let c;
|
|
27405
27405
|
const u = `__${t}`, d = () => {
|
|
27406
27406
|
let h = u;
|
|
@@ -29033,7 +29033,7 @@ const sc = {
|
|
|
29033
29033
|
mergedClsPrefixRef: e,
|
|
29034
29034
|
inlineThemeDisabled: i,
|
|
29035
29035
|
mergedRtlRef: n
|
|
29036
|
-
} = Rs(t), s = Er("Scrollbar", n, e), r =
|
|
29036
|
+
} = Rs(t), s = Er("Scrollbar", n, e), r = U(null), o = U(null), a = U(null), l = U(null), c = U(null), u = U(null), d = U(null), h = U(null), g = U(null), f = U(null), p = U(null), v = U(0), m = U(0), y = U(!1), $ = U(!1);
|
|
29037
29037
|
let k = !1, T = !1, B, _, S = 0, b = 0, P = 0, F = 0;
|
|
29038
29038
|
const D = ex(), N = Gt("Scrollbar", "-scrollbar", $k, sc, t, e), M = O(() => {
|
|
29039
29039
|
const {
|
|
@@ -29085,7 +29085,7 @@ const sc = {
|
|
|
29085
29085
|
const we = he - L;
|
|
29086
29086
|
return we ? te / we * (be - J.value) : 0;
|
|
29087
29087
|
}
|
|
29088
|
-
}), K = O(() => `${ee.value}px`),
|
|
29088
|
+
}), K = O(() => `${ee.value}px`), q = O(() => {
|
|
29089
29089
|
const {
|
|
29090
29090
|
value: L
|
|
29091
29091
|
} = h, {
|
|
@@ -29129,22 +29129,22 @@ const sc = {
|
|
|
29129
29129
|
left: he,
|
|
29130
29130
|
top: be,
|
|
29131
29131
|
index: we,
|
|
29132
|
-
elSize:
|
|
29132
|
+
elSize: Pe,
|
|
29133
29133
|
position: Ae,
|
|
29134
29134
|
behavior: Me,
|
|
29135
29135
|
el: ht,
|
|
29136
29136
|
debounce: Xi = !0
|
|
29137
29137
|
} = L;
|
|
29138
|
-
(he !== void 0 || be !== void 0) && Ne(he ?? 0, be ?? 0, 0, !1, Me), ht !== void 0 ? Ne(0, ht.offsetTop, ht.offsetHeight, Xi, Me) : we !== void 0 &&
|
|
29139
|
-
},
|
|
29138
|
+
(he !== void 0 || be !== void 0) && Ne(he ?? 0, be ?? 0, 0, !1, Me), ht !== void 0 ? Ne(0, ht.offsetTop, ht.offsetHeight, Xi, Me) : we !== void 0 && Pe !== void 0 ? Ne(0, we * Pe, Pe, Xi, Me) : Ae === "bottom" ? Ne(0, Number.MAX_SAFE_INTEGER, 0, !1, Me) : Ae === "top" && Ne(0, 0, 0, !1, Me);
|
|
29139
|
+
}, qe = a2(() => {
|
|
29140
29140
|
t.container || fe({
|
|
29141
29141
|
top: v.value,
|
|
29142
29142
|
left: m.value
|
|
29143
29143
|
});
|
|
29144
29144
|
}), ot = () => {
|
|
29145
|
-
|
|
29146
|
-
},
|
|
29147
|
-
if (
|
|
29145
|
+
qe.isDeactivated || ge();
|
|
29146
|
+
}, Xe = (L) => {
|
|
29147
|
+
if (qe.isDeactivated) return;
|
|
29148
29148
|
const {
|
|
29149
29149
|
onResize: te
|
|
29150
29150
|
} = t;
|
|
@@ -29158,16 +29158,16 @@ const sc = {
|
|
|
29158
29158
|
};
|
|
29159
29159
|
function Ne(L, te, he, be, we) {
|
|
29160
29160
|
const {
|
|
29161
|
-
value:
|
|
29161
|
+
value: Pe
|
|
29162
29162
|
} = _e;
|
|
29163
|
-
if (
|
|
29163
|
+
if (Pe) {
|
|
29164
29164
|
if (be) {
|
|
29165
29165
|
const {
|
|
29166
29166
|
scrollTop: Ae,
|
|
29167
29167
|
offsetHeight: Me
|
|
29168
|
-
} =
|
|
29168
|
+
} = Pe;
|
|
29169
29169
|
if (te > Ae) {
|
|
29170
|
-
te + he <= Ae + Me ||
|
|
29170
|
+
te + he <= Ae + Me || Pe.scrollTo({
|
|
29171
29171
|
left: L,
|
|
29172
29172
|
top: te + he - Me,
|
|
29173
29173
|
behavior: we
|
|
@@ -29175,7 +29175,7 @@ const sc = {
|
|
|
29175
29175
|
return;
|
|
29176
29176
|
}
|
|
29177
29177
|
}
|
|
29178
|
-
|
|
29178
|
+
Pe.scrollTo({
|
|
29179
29179
|
left: L,
|
|
29180
29180
|
top: te,
|
|
29181
29181
|
behavior: we
|
|
@@ -29268,8 +29268,8 @@ const sc = {
|
|
|
29268
29268
|
value: be
|
|
29269
29269
|
} = J;
|
|
29270
29270
|
if (te === null || he === null) return;
|
|
29271
|
-
const
|
|
29272
|
-
let Me = b +
|
|
29271
|
+
const Pe = (s != null && s.value ? window.innerWidth - L.clientX - P : L.clientX - P) * (he - te) / (te - be), Ae = he - te;
|
|
29272
|
+
let Me = b + Pe;
|
|
29273
29273
|
Me = Math.min(Ae, Me), Me = Math.max(Me, 0);
|
|
29274
29274
|
const {
|
|
29275
29275
|
value: ht
|
|
@@ -29299,8 +29299,8 @@ const sc = {
|
|
|
29299
29299
|
value: be
|
|
29300
29300
|
} = M;
|
|
29301
29301
|
if (te === null || he === null) return;
|
|
29302
|
-
const
|
|
29303
|
-
let Me = S +
|
|
29302
|
+
const Pe = (L.clientY - F) * (he - te) / (te - be), Ae = he - te;
|
|
29303
|
+
let Me = S + Pe;
|
|
29304
29304
|
Me = Math.min(Ae, Me), Me = Math.max(Me, 0);
|
|
29305
29305
|
const {
|
|
29306
29306
|
value: ht
|
|
@@ -29315,7 +29315,7 @@ const sc = {
|
|
|
29315
29315
|
value: L
|
|
29316
29316
|
} = G, {
|
|
29317
29317
|
value: te
|
|
29318
|
-
} =
|
|
29318
|
+
} = q, {
|
|
29319
29319
|
value: he
|
|
29320
29320
|
} = e, {
|
|
29321
29321
|
value: be
|
|
@@ -29338,7 +29338,7 @@ const sc = {
|
|
|
29338
29338
|
colorHover: he,
|
|
29339
29339
|
height: be,
|
|
29340
29340
|
width: we,
|
|
29341
|
-
borderRadius:
|
|
29341
|
+
borderRadius: Pe,
|
|
29342
29342
|
railInsetHorizontalTop: Ae,
|
|
29343
29343
|
railInsetHorizontalBottom: Me,
|
|
29344
29344
|
railInsetVerticalRight: ht,
|
|
@@ -29370,7 +29370,7 @@ const sc = {
|
|
|
29370
29370
|
"--n-scrollbar-bezier": L,
|
|
29371
29371
|
"--n-scrollbar-color": te,
|
|
29372
29372
|
"--n-scrollbar-color-hover": he,
|
|
29373
|
-
"--n-scrollbar-border-radius":
|
|
29373
|
+
"--n-scrollbar-border-radius": Pe,
|
|
29374
29374
|
"--n-scrollbar-width": we,
|
|
29375
29375
|
"--n-scrollbar-height": be,
|
|
29376
29376
|
"--n-scrollbar-rail-top-horizontal-top": Ko,
|
|
@@ -29408,7 +29408,7 @@ const sc = {
|
|
|
29408
29408
|
contentRef: a,
|
|
29409
29409
|
yRailRef: l,
|
|
29410
29410
|
xRailRef: c,
|
|
29411
|
-
needYBar:
|
|
29411
|
+
needYBar: q,
|
|
29412
29412
|
needXBar: G,
|
|
29413
29413
|
yBarSizePx: A,
|
|
29414
29414
|
xBarSizePx: ce,
|
|
@@ -29419,7 +29419,7 @@ const sc = {
|
|
|
29419
29419
|
isIos: D,
|
|
29420
29420
|
handleScroll: Oi,
|
|
29421
29421
|
handleContentResize: ot,
|
|
29422
|
-
handleContainerResize:
|
|
29422
|
+
handleContainerResize: Xe,
|
|
29423
29423
|
handleYScrollMouseDown: As,
|
|
29424
29424
|
handleXScrollMouseDown: Mn,
|
|
29425
29425
|
cssVars: i ? void 0 : Ms,
|
|
@@ -29508,7 +29508,7 @@ const sc = {
|
|
|
29508
29508
|
}, {
|
|
29509
29509
|
default: d
|
|
29510
29510
|
});
|
|
29511
|
-
return r ? W(
|
|
29511
|
+
return r ? W($e, null, h, u(this.themeClass, this.cssVars)) : h;
|
|
29512
29512
|
}
|
|
29513
29513
|
}), Pk = Nf, Rk = {
|
|
29514
29514
|
iconSizeTiny: "28px",
|
|
@@ -30128,26 +30128,26 @@ const zk = Se("base-select-menu", `
|
|
|
30128
30128
|
const {
|
|
30129
30129
|
mergedClsPrefixRef: e,
|
|
30130
30130
|
mergedRtlRef: i
|
|
30131
|
-
} = Rs(t), n = Er("InternalSelectMenu", i, e), s = Gt("InternalSelectMenu", "-internal-select-menu", zk, Wf, t, et(t, "clsPrefix")), r =
|
|
30131
|
+
} = Rs(t), n = Er("InternalSelectMenu", i, e), s = Gt("InternalSelectMenu", "-internal-select-menu", zk, Wf, t, et(t, "clsPrefix")), r = U(null), o = U(null), a = U(null), l = O(() => t.treeMate.getFlattenedNodes()), c = O(() => $w(l.value)), u = U(null);
|
|
30132
30132
|
function d() {
|
|
30133
30133
|
const {
|
|
30134
|
-
treeMate:
|
|
30134
|
+
treeMate: q
|
|
30135
30135
|
} = t;
|
|
30136
30136
|
let G = null;
|
|
30137
30137
|
const {
|
|
30138
30138
|
value: Z
|
|
30139
30139
|
} = t;
|
|
30140
|
-
Z === null ? G =
|
|
30140
|
+
Z === null ? G = q.getFirstAvailableNode() : (t.multiple ? G = q.getNode((Z || [])[(Z || []).length - 1]) : G = q.getNode(Z), (!G || G.disabled) && (G = q.getFirstAvailableNode())), M(G || null);
|
|
30141
30141
|
}
|
|
30142
30142
|
function h() {
|
|
30143
30143
|
const {
|
|
30144
|
-
value:
|
|
30144
|
+
value: q
|
|
30145
30145
|
} = u;
|
|
30146
|
-
|
|
30146
|
+
q && !t.treeMate.getNode(q.key) && (u.value = null);
|
|
30147
30147
|
}
|
|
30148
30148
|
let g;
|
|
30149
|
-
ke(() => t.show, (
|
|
30150
|
-
|
|
30149
|
+
ke(() => t.show, (q) => {
|
|
30150
|
+
q ? g = ke(() => t.treeMate, () => {
|
|
30151
30151
|
t.resetMenuOnOptionsChange ? (t.autoPending ? d() : h(), Rt(A)) : h();
|
|
30152
30152
|
}, {
|
|
30153
30153
|
immediate: !0
|
|
@@ -30158,91 +30158,91 @@ const zk = Se("base-select-menu", `
|
|
|
30158
30158
|
g == null || g();
|
|
30159
30159
|
});
|
|
30160
30160
|
const f = O(() => $r(s.value.self[yt("optionHeight", t.size)])), p = O(() => Vi(s.value.self[yt("padding", t.size)])), v = O(() => t.multiple && Array.isArray(t.value) ? new Set(t.value) : /* @__PURE__ */ new Set()), m = O(() => {
|
|
30161
|
-
const
|
|
30162
|
-
return
|
|
30161
|
+
const q = l.value;
|
|
30162
|
+
return q && q.length === 0;
|
|
30163
30163
|
});
|
|
30164
|
-
function y(
|
|
30164
|
+
function y(q) {
|
|
30165
30165
|
const {
|
|
30166
30166
|
onToggle: G
|
|
30167
30167
|
} = t;
|
|
30168
|
-
G && G(
|
|
30168
|
+
G && G(q);
|
|
30169
30169
|
}
|
|
30170
|
-
function $(
|
|
30170
|
+
function $(q) {
|
|
30171
30171
|
const {
|
|
30172
30172
|
onScroll: G
|
|
30173
30173
|
} = t;
|
|
30174
|
-
G && G(
|
|
30174
|
+
G && G(q);
|
|
30175
30175
|
}
|
|
30176
|
-
function k(
|
|
30176
|
+
function k(q) {
|
|
30177
30177
|
var G;
|
|
30178
|
-
(G = a.value) === null || G === void 0 || G.sync(), $(
|
|
30178
|
+
(G = a.value) === null || G === void 0 || G.sync(), $(q);
|
|
30179
30179
|
}
|
|
30180
30180
|
function T() {
|
|
30181
|
-
var
|
|
30182
|
-
(
|
|
30181
|
+
var q;
|
|
30182
|
+
(q = a.value) === null || q === void 0 || q.sync();
|
|
30183
30183
|
}
|
|
30184
30184
|
function B() {
|
|
30185
30185
|
const {
|
|
30186
|
-
value:
|
|
30186
|
+
value: q
|
|
30187
30187
|
} = u;
|
|
30188
|
-
return
|
|
30188
|
+
return q || null;
|
|
30189
30189
|
}
|
|
30190
|
-
function _(
|
|
30190
|
+
function _(q, G) {
|
|
30191
30191
|
G.disabled || M(G, !1);
|
|
30192
30192
|
}
|
|
30193
|
-
function S(
|
|
30193
|
+
function S(q, G) {
|
|
30194
30194
|
G.disabled || y(G);
|
|
30195
30195
|
}
|
|
30196
|
-
function b(
|
|
30196
|
+
function b(q) {
|
|
30197
30197
|
var G;
|
|
30198
|
-
pr(
|
|
30198
|
+
pr(q, "action") || (G = t.onKeyup) === null || G === void 0 || G.call(t, q);
|
|
30199
30199
|
}
|
|
30200
|
-
function P(
|
|
30200
|
+
function P(q) {
|
|
30201
30201
|
var G;
|
|
30202
|
-
pr(
|
|
30202
|
+
pr(q, "action") || (G = t.onKeydown) === null || G === void 0 || G.call(t, q);
|
|
30203
30203
|
}
|
|
30204
|
-
function F(
|
|
30204
|
+
function F(q) {
|
|
30205
30205
|
var G;
|
|
30206
|
-
(G = t.onMousedown) === null || G === void 0 || G.call(t,
|
|
30206
|
+
(G = t.onMousedown) === null || G === void 0 || G.call(t, q), !t.focusable && q.preventDefault();
|
|
30207
30207
|
}
|
|
30208
30208
|
function D() {
|
|
30209
30209
|
const {
|
|
30210
|
-
value:
|
|
30210
|
+
value: q
|
|
30211
30211
|
} = u;
|
|
30212
|
-
|
|
30212
|
+
q && M(q.getNext({
|
|
30213
30213
|
loop: !0
|
|
30214
30214
|
}), !0);
|
|
30215
30215
|
}
|
|
30216
30216
|
function N() {
|
|
30217
30217
|
const {
|
|
30218
|
-
value:
|
|
30218
|
+
value: q
|
|
30219
30219
|
} = u;
|
|
30220
|
-
|
|
30220
|
+
q && M(q.getPrev({
|
|
30221
30221
|
loop: !0
|
|
30222
30222
|
}), !0);
|
|
30223
30223
|
}
|
|
30224
|
-
function M(
|
|
30225
|
-
u.value =
|
|
30224
|
+
function M(q, G = !1) {
|
|
30225
|
+
u.value = q, G && A();
|
|
30226
30226
|
}
|
|
30227
30227
|
function A() {
|
|
30228
|
-
var
|
|
30228
|
+
var q, G;
|
|
30229
30229
|
const Z = u.value;
|
|
30230
30230
|
if (!Z) return;
|
|
30231
30231
|
const re = c.value(Z.key);
|
|
30232
|
-
re !== null && (t.virtualScroll ? (
|
|
30232
|
+
re !== null && (t.virtualScroll ? (q = o.value) === null || q === void 0 || q.scrollTo({
|
|
30233
30233
|
index: re
|
|
30234
30234
|
}) : (G = a.value) === null || G === void 0 || G.scrollTo({
|
|
30235
30235
|
index: re,
|
|
30236
30236
|
elSize: f.value
|
|
30237
30237
|
}));
|
|
30238
30238
|
}
|
|
30239
|
-
function J(
|
|
30239
|
+
function J(q) {
|
|
30240
30240
|
var G, Z;
|
|
30241
|
-
!((G = r.value) === null || G === void 0) && G.contains(
|
|
30241
|
+
!((G = r.value) === null || G === void 0) && G.contains(q.target) && ((Z = t.onFocus) === null || Z === void 0 || Z.call(t, q));
|
|
30242
30242
|
}
|
|
30243
|
-
function ce(
|
|
30243
|
+
function ce(q) {
|
|
30244
30244
|
var G, Z;
|
|
30245
|
-
!((G = r.value) === null || G === void 0) && G.contains(
|
|
30245
|
+
!((G = r.value) === null || G === void 0) && G.contains(q.relatedTarget) || (Z = t.onBlur) === null || Z === void 0 || Z.call(t, q);
|
|
30246
30246
|
}
|
|
30247
30247
|
yi(ic, {
|
|
30248
30248
|
handleOptionMouseEnter: _,
|
|
@@ -30259,13 +30259,13 @@ const zk = Se("base-select-menu", `
|
|
|
30259
30259
|
valueFieldRef: et(t, "valueField")
|
|
30260
30260
|
}), yi(Sf, r), st(() => {
|
|
30261
30261
|
const {
|
|
30262
|
-
value:
|
|
30262
|
+
value: q
|
|
30263
30263
|
} = a;
|
|
30264
|
-
|
|
30264
|
+
q && q.sync();
|
|
30265
30265
|
});
|
|
30266
30266
|
const V = O(() => {
|
|
30267
30267
|
const {
|
|
30268
|
-
size:
|
|
30268
|
+
size: q
|
|
30269
30269
|
} = t, {
|
|
30270
30270
|
common: {
|
|
30271
30271
|
cubicBezierEaseInOut: G
|
|
@@ -30276,9 +30276,9 @@ const zk = Se("base-select-menu", `
|
|
|
30276
30276
|
color: _e,
|
|
30277
30277
|
groupHeaderTextColor: pe,
|
|
30278
30278
|
actionDividerColor: fe,
|
|
30279
|
-
optionTextColorPressed:
|
|
30279
|
+
optionTextColorPressed: qe,
|
|
30280
30280
|
optionTextColor: ot,
|
|
30281
|
-
optionTextColorDisabled:
|
|
30281
|
+
optionTextColorDisabled: Xe,
|
|
30282
30282
|
optionTextColorActive: Ci,
|
|
30283
30283
|
optionOpacityDisabled: Ne,
|
|
30284
30284
|
optionCheckColor: Mi,
|
|
@@ -30288,9 +30288,9 @@ const zk = Se("base-select-menu", `
|
|
|
30288
30288
|
loadingColor: Ii,
|
|
30289
30289
|
loadingSize: Ot,
|
|
30290
30290
|
optionColorActivePending: hn,
|
|
30291
|
-
[yt("optionFontSize",
|
|
30292
|
-
[yt("optionHeight",
|
|
30293
|
-
[yt("optionPadding",
|
|
30291
|
+
[yt("optionFontSize", q)]: Oi,
|
|
30292
|
+
[yt("optionHeight", q)]: Si,
|
|
30293
|
+
[yt("optionPadding", q)]: We
|
|
30294
30294
|
}
|
|
30295
30295
|
} = s.value;
|
|
30296
30296
|
return {
|
|
@@ -30310,8 +30310,8 @@ const zk = Se("base-select-menu", `
|
|
|
30310
30310
|
"--n-option-opacity-disabled": Ne,
|
|
30311
30311
|
"--n-option-text-color": ot,
|
|
30312
30312
|
"--n-option-text-color-active": Ci,
|
|
30313
|
-
"--n-option-text-color-disabled":
|
|
30314
|
-
"--n-option-text-color-pressed":
|
|
30313
|
+
"--n-option-text-color-disabled": Xe,
|
|
30314
|
+
"--n-option-text-color-pressed": qe,
|
|
30315
30315
|
"--n-option-padding": We,
|
|
30316
30316
|
"--n-option-padding-left": Vi(We, "left"),
|
|
30317
30317
|
"--n-option-padding-right": Vi(We, "right"),
|
|
@@ -30338,15 +30338,15 @@ const zk = Se("base-select-menu", `
|
|
|
30338
30338
|
empty: m,
|
|
30339
30339
|
virtualListContainer() {
|
|
30340
30340
|
const {
|
|
30341
|
-
value:
|
|
30341
|
+
value: q
|
|
30342
30342
|
} = o;
|
|
30343
|
-
return
|
|
30343
|
+
return q == null ? void 0 : q.listElRef;
|
|
30344
30344
|
},
|
|
30345
30345
|
virtualListContent() {
|
|
30346
30346
|
const {
|
|
30347
|
-
value:
|
|
30347
|
+
value: q
|
|
30348
30348
|
} = o;
|
|
30349
|
-
return
|
|
30349
|
+
return q == null ? void 0 : q.itemsElRef;
|
|
30350
30350
|
},
|
|
30351
30351
|
doScroll: $,
|
|
30352
30352
|
handleFocusin: J,
|
|
@@ -30701,7 +30701,7 @@ const Vk = oe({
|
|
|
30701
30701
|
mergedClsPrefixRef: s,
|
|
30702
30702
|
inlineThemeDisabled: r,
|
|
30703
30703
|
mergedRtlRef: o
|
|
30704
|
-
} = Rs(t), a = Gt("Popover", "-popover", Hk, jf, t, s), l = Er("Popover", o, s), c =
|
|
30704
|
+
} = Rs(t), a = Gt("Popover", "-popover", Hk, jf, t, s), l = Er("Popover", o, s), c = U(null), u = Ke("NPopover"), d = U(null), h = U(t.show), g = U(!1);
|
|
30705
30705
|
Pn(() => {
|
|
30706
30706
|
const {
|
|
30707
30707
|
show: b
|
|
@@ -30740,7 +30740,7 @@ const Vk = oe({
|
|
|
30740
30740
|
boxShadow: X,
|
|
30741
30741
|
borderRadius: ee,
|
|
30742
30742
|
arrowHeight: K,
|
|
30743
|
-
arrowOffset:
|
|
30743
|
+
arrowOffset: q,
|
|
30744
30744
|
arrowOffsetVertical: G
|
|
30745
30745
|
}
|
|
30746
30746
|
} = a.value;
|
|
@@ -30755,7 +30755,7 @@ const Vk = oe({
|
|
|
30755
30755
|
"--n-divider-color": ce,
|
|
30756
30756
|
"--n-border-radius": ee,
|
|
30757
30757
|
"--n-arrow-height": K,
|
|
30758
|
-
"--n-arrow-offset":
|
|
30758
|
+
"--n-arrow-offset": q,
|
|
30759
30759
|
"--n-arrow-offset-vertical": G,
|
|
30760
30760
|
"--n-padding": M,
|
|
30761
30761
|
"--n-space": D,
|
|
@@ -30828,16 +30828,16 @@ const Vk = oe({
|
|
|
30828
30828
|
internalTrapFocus: M
|
|
30829
30829
|
} = t, A = !fd(e.header) || !fd(e.footer), J = () => {
|
|
30830
30830
|
var ce, V;
|
|
30831
|
-
const X = A ? W(
|
|
30831
|
+
const X = A ? W($e, null, bs(e.header, (q) => q ? W("div", {
|
|
30832
30832
|
class: [`${D}-popover__header`, t.headerClass],
|
|
30833
30833
|
style: t.headerStyle
|
|
30834
|
-
},
|
|
30834
|
+
}, q) : null), bs(e.default, (q) => q ? W("div", {
|
|
30835
30835
|
class: [`${D}-popover__content`, t.contentClass],
|
|
30836
30836
|
style: t.contentStyle
|
|
30837
|
-
}, e) : null), bs(e.footer, (
|
|
30837
|
+
}, e) : null), bs(e.footer, (q) => q ? W("div", {
|
|
30838
30838
|
class: [`${D}-popover__footer`, t.footerClass],
|
|
30839
30839
|
style: t.footerStyle
|
|
30840
|
-
},
|
|
30840
|
+
}, q) : null)) : t.scrollable ? (ce = e.default) === null || ce === void 0 ? void 0 : ce.call(e) : W("div", {
|
|
30841
30841
|
class: [`${D}-popover__content`, t.contentClass],
|
|
30842
30842
|
style: t.contentStyle
|
|
30843
30843
|
}, e), ee = t.scrollable ? W(Pk, {
|
|
@@ -31045,7 +31045,7 @@ const Yk = {
|
|
|
31045
31045
|
jk.NODE_ENV !== "production" && Pn(() => {
|
|
31046
31046
|
t.maxWidth !== void 0 && Hn("popover", "`max-width` is deprecated, please use `style` instead."), t.minWidth !== void 0 && Hn("popover", "`min-width` is deprecated, please use `style` instead."), t.arrow !== void 0 && Hn("popover", "`arrow` is deprecated, please use `showArrow` instead."), t.onHide !== void 0 && Hn("popover", "`on-hide` is deprecated, please use `on-update:show` instead."), t.onShow !== void 0 && Hn("popover", "`on-show` is deprecated, please use `on-update:show` instead.");
|
|
31047
31047
|
});
|
|
31048
|
-
const e = Uo(), i =
|
|
31048
|
+
const e = Uo(), i = U(null), n = O(() => t.show), s = U(t.defaultShow), r = fl(n, s), o = Ai(() => t.disabled ? !1 : r.value), a = () => {
|
|
31049
31049
|
if (t.disabled) return !0;
|
|
31050
31050
|
const {
|
|
31051
31051
|
getDisabled: A
|
|
@@ -31053,7 +31053,7 @@ const Yk = {
|
|
|
31053
31053
|
return !!(A != null && A());
|
|
31054
31054
|
}, l = () => a() ? !1 : r.value, c = nf(t, ["arrow", "showArrow"]), u = O(() => t.overlap ? !1 : c.value);
|
|
31055
31055
|
let d = null;
|
|
31056
|
-
const h =
|
|
31056
|
+
const h = U(null), g = U(null), f = Ai(() => t.x !== void 0 && t.y !== void 0);
|
|
31057
31057
|
function p(A) {
|
|
31058
31058
|
const {
|
|
31059
31059
|
"onUpdate:show": J,
|
|
@@ -31569,7 +31569,7 @@ const nC = Object.assign(Object.assign(Object.assign({}, Gt.props), eC), {
|
|
|
31569
31569
|
iC.NODE_ENV !== "production" && Pn(() => {
|
|
31570
31570
|
t.onCheckedChange !== void 0 && Hn("tag", "`on-checked-change` is deprecated, please use `on-update:checked` instead");
|
|
31571
31571
|
});
|
|
31572
|
-
const e =
|
|
31572
|
+
const e = U(null), {
|
|
31573
31573
|
mergedBorderedRef: i,
|
|
31574
31574
|
mergedClsPrefixRef: n,
|
|
31575
31575
|
inlineThemeDisabled: s,
|
|
@@ -31637,35 +31637,35 @@ const nC = Object.assign(Object.assign(Object.assign({}, Gt.props), eC), {
|
|
|
31637
31637
|
[yt("closeSize", f)]: X,
|
|
31638
31638
|
[yt("closeIconSize", f)]: ee,
|
|
31639
31639
|
[yt("fontSize", f)]: K,
|
|
31640
|
-
[yt("height", f)]:
|
|
31640
|
+
[yt("height", f)]: q,
|
|
31641
31641
|
[yt("color", g)]: G,
|
|
31642
31642
|
[yt("textColor", g)]: Z,
|
|
31643
31643
|
[yt("border", g)]: re,
|
|
31644
31644
|
[yt("closeIconColor", g)]: _e,
|
|
31645
31645
|
[yt("closeIconColorHover", g)]: pe,
|
|
31646
31646
|
[yt("closeIconColorPressed", g)]: fe,
|
|
31647
|
-
[yt("closeColorHover", g)]:
|
|
31647
|
+
[yt("closeColorHover", g)]: qe,
|
|
31648
31648
|
[yt("closeColorPressed", g)]: ot
|
|
31649
31649
|
}
|
|
31650
|
-
} = o.value,
|
|
31650
|
+
} = o.value, Xe = Vi($);
|
|
31651
31651
|
return {
|
|
31652
31652
|
"--n-font-weight-strong": ce,
|
|
31653
|
-
"--n-avatar-size-override": `calc(${
|
|
31653
|
+
"--n-avatar-size-override": `calc(${q} - 8px)`,
|
|
31654
31654
|
"--n-bezier": m,
|
|
31655
31655
|
"--n-border-radius": k,
|
|
31656
31656
|
"--n-border": re,
|
|
31657
31657
|
"--n-close-icon-size": ee,
|
|
31658
31658
|
"--n-close-color-pressed": ot,
|
|
31659
|
-
"--n-close-color-hover":
|
|
31659
|
+
"--n-close-color-hover": qe,
|
|
31660
31660
|
"--n-close-border-radius": J,
|
|
31661
31661
|
"--n-close-icon-color": _e,
|
|
31662
31662
|
"--n-close-icon-color-hover": pe,
|
|
31663
31663
|
"--n-close-icon-color-pressed": fe,
|
|
31664
31664
|
"--n-close-icon-color-disabled": _e,
|
|
31665
|
-
"--n-close-margin-top":
|
|
31666
|
-
"--n-close-margin-right":
|
|
31667
|
-
"--n-close-margin-bottom":
|
|
31668
|
-
"--n-close-margin-left":
|
|
31665
|
+
"--n-close-margin-top": Xe.top,
|
|
31666
|
+
"--n-close-margin-right": Xe.right,
|
|
31667
|
+
"--n-close-margin-bottom": Xe.bottom,
|
|
31668
|
+
"--n-close-margin-left": Xe.left,
|
|
31669
31669
|
"--n-close-size": X,
|
|
31670
31670
|
"--n-color": p || (i.value ? V : G),
|
|
31671
31671
|
"--n-color-checkable": P,
|
|
@@ -31675,7 +31675,7 @@ const nC = Object.assign(Object.assign(Object.assign({}, Gt.props), eC), {
|
|
|
31675
31675
|
"--n-color-hover-checkable": F,
|
|
31676
31676
|
"--n-color-pressed-checkable": D,
|
|
31677
31677
|
"--n-font-size": K,
|
|
31678
|
-
"--n-height":
|
|
31678
|
+
"--n-height": q,
|
|
31679
31679
|
"--n-opacity-disabled": T,
|
|
31680
31680
|
"--n-padding": y,
|
|
31681
31681
|
"--n-text-color": v || Z,
|
|
@@ -32197,7 +32197,7 @@ const qf = {
|
|
|
32197
32197
|
const {
|
|
32198
32198
|
mergedClsPrefixRef: e,
|
|
32199
32199
|
mergedRtlRef: i
|
|
32200
|
-
} = Rs(t), n = Er("InternalSelection", i, e), s =
|
|
32200
|
+
} = Rs(t), n = Er("InternalSelection", i, e), s = U(null), r = U(null), o = U(null), a = U(null), l = U(null), c = U(null), u = U(null), d = U(null), h = U(null), g = U(null), f = U(!1), p = U(!1), v = U(!1), m = Gt("InternalSelection", "-internal-selection", lC, qf, t, et(t, "clsPrefix")), y = O(() => t.clearable && !t.disabled && (v.value || t.active)), $ = O(() => t.selectedOption ? t.renderTag ? t.renderTag({
|
|
32201
32201
|
option: t.selectedOption,
|
|
32202
32202
|
handleClose: () => {
|
|
32203
32203
|
}
|
|
@@ -32290,8 +32290,8 @@ const qf = {
|
|
|
32290
32290
|
function ee(se) {
|
|
32291
32291
|
F(se);
|
|
32292
32292
|
}
|
|
32293
|
-
const K =
|
|
32294
|
-
function
|
|
32293
|
+
const K = U(!1);
|
|
32294
|
+
function q(se) {
|
|
32295
32295
|
if (se.key === "Backspace" && !K.value && !t.pattern.length) {
|
|
32296
32296
|
const {
|
|
32297
32297
|
selectedOptions: ge
|
|
@@ -32324,7 +32324,7 @@ const qf = {
|
|
|
32324
32324
|
var ge;
|
|
32325
32325
|
p.value = !1, (ge = t.onPatternBlur) === null || ge === void 0 || ge.call(t, se);
|
|
32326
32326
|
}
|
|
32327
|
-
function
|
|
32327
|
+
function qe() {
|
|
32328
32328
|
var se, ge;
|
|
32329
32329
|
if (t.filterable)
|
|
32330
32330
|
p.value = !1, (se = c.value) === null || se === void 0 || se.blur(), (ge = r.value) === null || ge === void 0 || ge.blur();
|
|
@@ -32344,7 +32344,7 @@ const qf = {
|
|
|
32344
32344
|
var se, ge, Ze;
|
|
32345
32345
|
t.filterable ? (p.value = !1, (se = c.value) === null || se === void 0 || se.focus()) : t.multiple ? (ge = a.value) === null || ge === void 0 || ge.focus() : (Ze = l.value) === null || Ze === void 0 || Ze.focus();
|
|
32346
32346
|
}
|
|
32347
|
-
function
|
|
32347
|
+
function Xe() {
|
|
32348
32348
|
const {
|
|
32349
32349
|
value: se
|
|
32350
32350
|
} = r;
|
|
@@ -32419,7 +32419,7 @@ const qf = {
|
|
|
32419
32419
|
boxShadowFocus: he,
|
|
32420
32420
|
boxShadowActive: be,
|
|
32421
32421
|
boxShadowHover: we,
|
|
32422
|
-
border:
|
|
32422
|
+
border: Pe,
|
|
32423
32423
|
borderFocus: Ae,
|
|
32424
32424
|
borderHover: Me,
|
|
32425
32425
|
borderActive: ht,
|
|
@@ -32457,7 +32457,7 @@ const qf = {
|
|
|
32457
32457
|
} = m.value, zr = Vi(En), Lr = Vi(Jn);
|
|
32458
32458
|
return {
|
|
32459
32459
|
"--n-bezier": ge,
|
|
32460
|
-
"--n-border":
|
|
32460
|
+
"--n-border": Pe,
|
|
32461
32461
|
"--n-border-active": ht,
|
|
32462
32462
|
"--n-border-focus": Ae,
|
|
32463
32463
|
"--n-border-hover": Me,
|
|
@@ -32543,7 +32543,7 @@ const qf = {
|
|
|
32543
32543
|
handleMouseEnter: ce,
|
|
32544
32544
|
handleMouseLeave: V,
|
|
32545
32545
|
handleDeleteOption: ee,
|
|
32546
|
-
handlePatternKeyDown:
|
|
32546
|
+
handlePatternKeyDown: q,
|
|
32547
32547
|
handlePatternInputInput: Z,
|
|
32548
32548
|
handlePatternInputBlur: fe,
|
|
32549
32549
|
handlePatternInputFocus: pe,
|
|
@@ -32554,8 +32554,8 @@ const qf = {
|
|
|
32554
32554
|
handleCompositionStart: re,
|
|
32555
32555
|
onPopoverUpdateShow: hn,
|
|
32556
32556
|
focus: ot,
|
|
32557
|
-
focusInput:
|
|
32558
|
-
blur:
|
|
32557
|
+
focusInput: Xe,
|
|
32558
|
+
blur: qe,
|
|
32559
32559
|
blurInput: Ci,
|
|
32560
32560
|
updateCounter: Ne,
|
|
32561
32561
|
getCounter: Mi,
|
|
@@ -32713,7 +32713,7 @@ const qf = {
|
|
|
32713
32713
|
class: `${a}-base-selection-tags`,
|
|
32714
32714
|
tabindex: n ? void 0 : 0
|
|
32715
32715
|
}, _, p);
|
|
32716
|
-
v = W(
|
|
32716
|
+
v = W($e, null, f ? W(Kk, Object.assign({}, b, {
|
|
32717
32717
|
scrollable: !0,
|
|
32718
32718
|
style: "max-height: calc(var(--v-target-height) * 6.6);"
|
|
32719
32719
|
}), {
|
|
@@ -33017,7 +33017,7 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33017
33017
|
mergedBorderedRef: i,
|
|
33018
33018
|
namespaceRef: n,
|
|
33019
33019
|
inlineThemeDisabled: s
|
|
33020
|
-
} = Rs(t), r = Gt("Select", "-select", hC, dC, t, e), o =
|
|
33020
|
+
} = Rs(t), r = Gt("Select", "-select", hC, dC, t, e), o = U(t.defaultValue), a = et(t, "value"), l = fl(a, o), c = U(!1), u = U(""), d = nf(t, ["items", "options"]), h = U([]), g = U([]), f = O(() => g.value.concat(h.value).concat(d.value)), p = O(() => {
|
|
33021
33021
|
const {
|
|
33022
33022
|
filter: L
|
|
33023
33023
|
} = t;
|
|
@@ -33028,9 +33028,9 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33028
33028
|
} = t;
|
|
33029
33029
|
return (be, we) => {
|
|
33030
33030
|
if (!we) return !1;
|
|
33031
|
-
const
|
|
33032
|
-
if (typeof
|
|
33033
|
-
return Ua(be,
|
|
33031
|
+
const Pe = we[te];
|
|
33032
|
+
if (typeof Pe == "string")
|
|
33033
|
+
return Ua(be, Pe);
|
|
33034
33034
|
const Ae = we[he];
|
|
33035
33035
|
return typeof Ae == "string" ? Ua(be, Ae) : typeof Ae == "number" ? Ua(be, String(Ae)) : !1;
|
|
33036
33036
|
};
|
|
@@ -33051,12 +33051,12 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33051
33051
|
childrenField: te
|
|
33052
33052
|
} = t, he = fC(L, te);
|
|
33053
33053
|
return Nw(v.value, he);
|
|
33054
|
-
}), y = O(() => pC(f.value, t.valueField, t.childrenField)), $ =
|
|
33054
|
+
}), y = O(() => pC(f.value, t.valueField, t.childrenField)), $ = U(!1), k = fl(et(t, "show"), $), T = U(null), B = U(null), _ = U(null), {
|
|
33055
33055
|
localeRef: S
|
|
33056
33056
|
} = Ef("Select"), b = O(() => {
|
|
33057
33057
|
var L;
|
|
33058
33058
|
return (L = t.placeholder) !== null && L !== void 0 ? L : S.value.placeholder;
|
|
33059
|
-
}), P = [], F =
|
|
33059
|
+
}), P = [], F = U(/* @__PURE__ */ new Map()), D = O(() => {
|
|
33060
33060
|
const {
|
|
33061
33061
|
fallbackOption: L
|
|
33062
33062
|
} = t;
|
|
@@ -33081,17 +33081,17 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33081
33081
|
value: be
|
|
33082
33082
|
} = y, {
|
|
33083
33083
|
value: we
|
|
33084
|
-
} = D,
|
|
33084
|
+
} = D, Pe = [];
|
|
33085
33085
|
return L.forEach((Ae) => {
|
|
33086
33086
|
if (be.has(Ae))
|
|
33087
|
-
|
|
33087
|
+
Pe.push(be.get(Ae));
|
|
33088
33088
|
else if (te && he.has(Ae))
|
|
33089
|
-
|
|
33089
|
+
Pe.push(he.get(Ae));
|
|
33090
33090
|
else if (we) {
|
|
33091
33091
|
const Me = we(Ae);
|
|
33092
|
-
Me &&
|
|
33092
|
+
Me && Pe.push(Me);
|
|
33093
33093
|
}
|
|
33094
|
-
}),
|
|
33094
|
+
}), Pe;
|
|
33095
33095
|
}
|
|
33096
33096
|
const M = O(() => {
|
|
33097
33097
|
if (t.multiple) {
|
|
@@ -33117,10 +33117,10 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33117
33117
|
"onUpdate:value": be,
|
|
33118
33118
|
onUpdateValue: we
|
|
33119
33119
|
} = t, {
|
|
33120
|
-
nTriggerFormChange:
|
|
33120
|
+
nTriggerFormChange: Pe,
|
|
33121
33121
|
nTriggerFormInput: Ae
|
|
33122
33122
|
} = J;
|
|
33123
|
-
he && Wt(he, L, te), we && Wt(we, L, te), be && Wt(be, L, te), o.value = L,
|
|
33123
|
+
he && Wt(he, L, te), we && Wt(we, L, te), be && Wt(be, L, te), o.value = L, Pe(), Ae();
|
|
33124
33124
|
}
|
|
33125
33125
|
function K(L) {
|
|
33126
33126
|
const {
|
|
@@ -33130,7 +33130,7 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33130
33130
|
} = J;
|
|
33131
33131
|
te && Wt(te, L), he();
|
|
33132
33132
|
}
|
|
33133
|
-
function
|
|
33133
|
+
function q() {
|
|
33134
33134
|
const {
|
|
33135
33135
|
onClear: L
|
|
33136
33136
|
} = t;
|
|
@@ -33171,8 +33171,8 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33171
33171
|
const {
|
|
33172
33172
|
valueField: we
|
|
33173
33173
|
} = t;
|
|
33174
|
-
(L = M.value) === null || L === void 0 || L.forEach((
|
|
33175
|
-
be.set(
|
|
33174
|
+
(L = M.value) === null || L === void 0 || L.forEach((Pe) => {
|
|
33175
|
+
be.set(Pe[we], Pe);
|
|
33176
33176
|
});
|
|
33177
33177
|
} else {
|
|
33178
33178
|
const we = A.value;
|
|
@@ -33190,25 +33190,25 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33190
33190
|
function fe() {
|
|
33191
33191
|
V.value || (pe(!0), $.value = !0, t.filterable && En());
|
|
33192
33192
|
}
|
|
33193
|
-
function
|
|
33193
|
+
function qe() {
|
|
33194
33194
|
pe(!1);
|
|
33195
33195
|
}
|
|
33196
33196
|
function ot() {
|
|
33197
33197
|
u.value = "", g.value = P;
|
|
33198
33198
|
}
|
|
33199
|
-
const
|
|
33199
|
+
const Xe = U(!1);
|
|
33200
33200
|
function Ci() {
|
|
33201
|
-
t.filterable && (
|
|
33201
|
+
t.filterable && (Xe.value = !0);
|
|
33202
33202
|
}
|
|
33203
33203
|
function Ne() {
|
|
33204
|
-
t.filterable && (
|
|
33204
|
+
t.filterable && (Xe.value = !1, k.value || ot());
|
|
33205
33205
|
}
|
|
33206
33206
|
function Mi() {
|
|
33207
|
-
V.value || (k.value ? t.filterable ? En() :
|
|
33207
|
+
V.value || (k.value ? t.filterable ? En() : qe() : fe());
|
|
33208
33208
|
}
|
|
33209
33209
|
function Ei(L) {
|
|
33210
33210
|
var te, he;
|
|
33211
|
-
!((he = (te = _.value) === null || te === void 0 ? void 0 : te.selfRef) === null || he === void 0) && he.contains(L.relatedTarget) || (c.value = !1, K(L),
|
|
33211
|
+
!((he = (te = _.value) === null || te === void 0 ? void 0 : te.selfRef) === null || he === void 0) && he.contains(L.relatedTarget) || (c.value = !1, K(L), qe());
|
|
33212
33212
|
}
|
|
33213
33213
|
function Kt(L) {
|
|
33214
33214
|
G(L), c.value = !0;
|
|
@@ -33218,15 +33218,15 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33218
33218
|
}
|
|
33219
33219
|
function Ii(L) {
|
|
33220
33220
|
var te;
|
|
33221
|
-
!((te = T.value) === null || te === void 0) && te.$el.contains(L.relatedTarget) || (c.value = !1, K(L),
|
|
33221
|
+
!((te = T.value) === null || te === void 0) && te.$el.contains(L.relatedTarget) || (c.value = !1, K(L), qe());
|
|
33222
33222
|
}
|
|
33223
33223
|
function Ot() {
|
|
33224
33224
|
var L;
|
|
33225
|
-
(L = T.value) === null || L === void 0 || L.focus(),
|
|
33225
|
+
(L = T.value) === null || L === void 0 || L.focus(), qe();
|
|
33226
33226
|
}
|
|
33227
33227
|
function hn(L) {
|
|
33228
33228
|
var te;
|
|
33229
|
-
k.value && (!((te = T.value) === null || te === void 0) && te.$el.contains(Sr(L)) ||
|
|
33229
|
+
k.value && (!((te = T.value) === null || te === void 0) && te.$el.contains(Sr(L)) || qe());
|
|
33230
33230
|
}
|
|
33231
33231
|
function Oi(L) {
|
|
33232
33232
|
if (!Array.isArray(L)) return [];
|
|
@@ -33260,29 +33260,29 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33260
33260
|
} = t;
|
|
33261
33261
|
if (te && !he) {
|
|
33262
33262
|
const {
|
|
33263
|
-
value:
|
|
33264
|
-
} = g, Ae =
|
|
33263
|
+
value: Pe
|
|
33264
|
+
} = g, Ae = Pe[0] || null;
|
|
33265
33265
|
if (Ae) {
|
|
33266
33266
|
const Me = h.value;
|
|
33267
33267
|
Me.length ? Me.push(Ae) : h.value = [Ae], g.value = P;
|
|
33268
33268
|
}
|
|
33269
33269
|
}
|
|
33270
33270
|
if (he && F.value.set(L[we], L), t.multiple) {
|
|
33271
|
-
const
|
|
33271
|
+
const Pe = Oi(l.value), Ae = Pe.findIndex((Me) => Me === L[we]);
|
|
33272
33272
|
if (~Ae) {
|
|
33273
|
-
if (
|
|
33273
|
+
if (Pe.splice(Ae, 1), te && !he) {
|
|
33274
33274
|
const Me = se(L[we]);
|
|
33275
33275
|
~Me && (h.value.splice(Me, 1), be && (u.value = ""));
|
|
33276
33276
|
}
|
|
33277
33277
|
} else
|
|
33278
|
-
|
|
33279
|
-
ee(
|
|
33278
|
+
Pe.push(L[we]), be && (u.value = "");
|
|
33279
|
+
ee(Pe, N(Pe));
|
|
33280
33280
|
} else {
|
|
33281
33281
|
if (te && !he) {
|
|
33282
|
-
const
|
|
33283
|
-
~
|
|
33282
|
+
const Pe = se(L[we]);
|
|
33283
|
+
~Pe ? h.value = [h.value[Pe]] : h.value = P;
|
|
33284
33284
|
}
|
|
33285
|
-
As(),
|
|
33285
|
+
As(), qe(), ee(L[we], L);
|
|
33286
33286
|
}
|
|
33287
33287
|
}
|
|
33288
33288
|
function se(L) {
|
|
@@ -33305,14 +33305,14 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33305
33305
|
}
|
|
33306
33306
|
const {
|
|
33307
33307
|
onCreate: we
|
|
33308
|
-
} = t,
|
|
33308
|
+
} = t, Pe = we ? we(te) : {
|
|
33309
33309
|
[t.labelField]: te,
|
|
33310
33310
|
[t.valueField]: te
|
|
33311
33311
|
}, {
|
|
33312
33312
|
valueField: Ae,
|
|
33313
33313
|
labelField: Me
|
|
33314
33314
|
} = t;
|
|
33315
|
-
d.value.some((ht) => ht[Ae] ===
|
|
33315
|
+
d.value.some((ht) => ht[Ae] === Pe[Ae] || ht[Me] === Pe[Me]) || h.value.some((ht) => ht[Ae] === Pe[Ae] || ht[Me] === Pe[Me]) ? g.value = P : g.value = [Pe];
|
|
33316
33316
|
}
|
|
33317
33317
|
}
|
|
33318
33318
|
function Ze(L) {
|
|
@@ -33320,7 +33320,7 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33320
33320
|
const {
|
|
33321
33321
|
multiple: te
|
|
33322
33322
|
} = t;
|
|
33323
|
-
!te && t.filterable &&
|
|
33323
|
+
!te && t.filterable && qe(), q(), te ? ee([], []) : ee(null, null);
|
|
33324
33324
|
}
|
|
33325
33325
|
function Mn(L) {
|
|
33326
33326
|
!pr(L, "action") && !pr(L, "empty") && !pr(L, "header") && L.preventDefault();
|
|
@@ -33329,7 +33329,7 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33329
33329
|
re(L);
|
|
33330
33330
|
}
|
|
33331
33331
|
function di(L) {
|
|
33332
|
-
var te, he, be, we,
|
|
33332
|
+
var te, he, be, we, Pe;
|
|
33333
33333
|
if (!t.keyboard) {
|
|
33334
33334
|
L.preventDefault();
|
|
33335
33335
|
return;
|
|
@@ -33344,8 +33344,8 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33344
33344
|
if (!(!((te = T.value) === null || te === void 0) && te.isComposing)) {
|
|
33345
33345
|
if (k.value) {
|
|
33346
33346
|
const Ae = (he = _.value) === null || he === void 0 ? void 0 : he.getPendingTmNode();
|
|
33347
|
-
Ae ? Si(Ae) : t.filterable || (
|
|
33348
|
-
} else if (fe(), t.tag &&
|
|
33347
|
+
Ae ? Si(Ae) : t.filterable || (qe(), As());
|
|
33348
|
+
} else if (fe(), t.tag && Xe.value) {
|
|
33349
33349
|
const Ae = g.value[0];
|
|
33350
33350
|
if (Ae) {
|
|
33351
33351
|
const Me = Ae[t.valueField], {
|
|
@@ -33366,7 +33366,7 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33366
33366
|
k.value ? (we = _.value) === null || we === void 0 || we.next() : fe();
|
|
33367
33367
|
break;
|
|
33368
33368
|
case "Escape":
|
|
33369
|
-
k.value && (v2(L),
|
|
33369
|
+
k.value && (v2(L), qe()), (Pe = T.value) === null || Pe === void 0 || Pe.focus();
|
|
33370
33370
|
break;
|
|
33371
33371
|
}
|
|
33372
33372
|
}
|
|
@@ -33432,7 +33432,7 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33432
33432
|
mergedSize: ce,
|
|
33433
33433
|
mergedDisabled: V,
|
|
33434
33434
|
focused: c,
|
|
33435
|
-
activeWithoutMenuOpen:
|
|
33435
|
+
activeWithoutMenuOpen: Xe,
|
|
33436
33436
|
inlineThemeDisabled: s,
|
|
33437
33437
|
onTriggerInputFocus: Ci,
|
|
33438
33438
|
onTriggerInputBlur: Ne,
|
|
@@ -33601,14 +33601,14 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33601
33601
|
},
|
|
33602
33602
|
emits: ["update:value"],
|
|
33603
33603
|
setup(t, { expose: e, emit: i }) {
|
|
33604
|
-
const n = t, s = i, r = O(() => _t(n.value)), o = O(() => r.value ? n.value.map((y) => y.id) : n.value ? n.value.id : null), a =
|
|
33604
|
+
const n = t, s = i, r = O(() => _t(n.value)), o = O(() => r.value ? n.value.map((y) => y.id) : n.value ? n.value.id : null), a = U(
|
|
33605
33605
|
r.value ? n.optionsListConverter(n.value) : n.value ? n.optionsListConverter([n.value]) : []
|
|
33606
33606
|
), l = O(
|
|
33607
33607
|
() => a.value.map((y) => ({
|
|
33608
33608
|
...y,
|
|
33609
33609
|
class: n.wrapContent ? `${y.class} consistent-menu-width` : y.class
|
|
33610
33610
|
}))
|
|
33611
|
-
), c =
|
|
33611
|
+
), c = U(!1), u = nt("select-component"), d = (y) => {
|
|
33612
33612
|
y.length < n.minTermLength || (c.value = !0, n.searchDataHandler(y, c).then(($) => {
|
|
33613
33613
|
if (xl($))
|
|
33614
33614
|
return;
|
|
@@ -33743,7 +33743,7 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33743
33743
|
},
|
|
33744
33744
|
emits: ["update:value"],
|
|
33745
33745
|
setup(t, { emit: e }) {
|
|
33746
|
-
const i = t, n = e, s =
|
|
33746
|
+
const i = t, n = e, s = U(null), r = () => structuredClone(Bi(i.value)), o = U(r()), a = () => {
|
|
33747
33747
|
n(
|
|
33748
33748
|
"update:value",
|
|
33749
33749
|
o.value.map((d) => Bi(d))
|
|
@@ -33773,7 +33773,7 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33773
33773
|
hoverable: !0
|
|
33774
33774
|
}, {
|
|
33775
33775
|
header: I(() => [
|
|
33776
|
-
|
|
33776
|
+
Te(d.$slots, "header")
|
|
33777
33777
|
]),
|
|
33778
33778
|
footer: I(() => [
|
|
33779
33779
|
H(xC, {
|
|
@@ -33798,8 +33798,8 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33798
33798
|
ie(" --- Список пуст --- ", -1)
|
|
33799
33799
|
])]),
|
|
33800
33800
|
_: 1
|
|
33801
|
-
})) :
|
|
33802
|
-
(w(!0), z(
|
|
33801
|
+
})) : j("", !0),
|
|
33802
|
+
(w(!0), z($e, null, Xt(o.value, (m) => (w(), Q(g, {
|
|
33803
33803
|
key: m.id
|
|
33804
33804
|
}, {
|
|
33805
33805
|
suffix: I(() => [
|
|
@@ -33822,11 +33822,11 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
|
|
|
33822
33822
|
R("span", $C, Y(m.name), 1)
|
|
33823
33823
|
]),
|
|
33824
33824
|
d.$slots["item-extra"] ? (w(), z("div", TC, [
|
|
33825
|
-
|
|
33825
|
+
Te(d.$slots, "item-extra", {
|
|
33826
33826
|
item: m,
|
|
33827
33827
|
updateItemCallback: c
|
|
33828
33828
|
})
|
|
33829
|
-
])) :
|
|
33829
|
+
])) : j("", !0)
|
|
33830
33830
|
])
|
|
33831
33831
|
]),
|
|
33832
33832
|
_: 2
|
|
@@ -33893,8 +33893,8 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
33893
33893
|
}, NC = {
|
|
33894
33894
|
key: 1,
|
|
33895
33895
|
class: "text-base"
|
|
33896
|
-
}, HC = { class: "text-sc-dark-grey mr-1.5" }, WC = { key: 0 }, VC = { key: 1 }, jC = {
|
|
33897
|
-
...
|
|
33896
|
+
}, HC = { class: "text-sc-dark-grey mr-1.5" }, WC = { key: 0 }, VC = { key: 1 }, jC = {}, rc = /* @__PURE__ */ oe({
|
|
33897
|
+
...jC,
|
|
33898
33898
|
__name: "order-delivery-label",
|
|
33899
33899
|
props: {
|
|
33900
33900
|
delivery: {},
|
|
@@ -33911,20 +33911,23 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
33911
33911
|
const o = zC, a = EC, l = BC;
|
|
33912
33912
|
return w(), z("div", LC, [
|
|
33913
33913
|
t.showType ? (w(), z("span", DC, [
|
|
33914
|
-
((c = e.value) == null ? void 0 : c.slug) === "self_delivery" ? (w(), Q(o, { key: 0 })) :
|
|
33915
|
-
((u = e.value) == null ? void 0 : u.slug) === "delivery" ? (w(), Q(a, { key: 1 })) :
|
|
33916
|
-
((d = e.value) == null ? void 0 : d.slug) === "transport_company_delivery" ? (w(), Q(l, { key: 2 })) :
|
|
33914
|
+
((c = e.value) == null ? void 0 : c.slug) === "self_delivery" ? (w(), Q(o, { key: 0 })) : j("", !0),
|
|
33915
|
+
((u = e.value) == null ? void 0 : u.slug) === "delivery" ? (w(), Q(a, { key: 1 })) : j("", !0),
|
|
33916
|
+
((d = e.value) == null ? void 0 : d.slug) === "transport_company_delivery" ? (w(), Q(l, { key: 2 })) : j("", !0),
|
|
33917
33917
|
R("span", null, Y((h = e.value) == null ? void 0 : h.name), 1)
|
|
33918
|
-
])) :
|
|
33918
|
+
])) : j("", !0),
|
|
33919
33919
|
t.showDetails ? (w(), z("span", NC, [
|
|
33920
33920
|
R("span", HC, Y(i.value), 1),
|
|
33921
|
-
(f = (g = t.delivery) == null ? void 0 : g.address) != null && f.address ? (w(), z("span", WC, Y(t.delivery.address.address), 1)) :
|
|
33922
|
-
(v = (p = t.delivery) == null ? void 0 : p.warehouse) != null && v.address ? (w(), z("span", VC, " со склада " + Y(t.delivery.warehouse.address), 1)) : (
|
|
33923
|
-
])) :
|
|
33921
|
+
(f = (g = t.delivery) == null ? void 0 : g.address) != null && f.address ? (w(), z("span", WC, Y(t.delivery.address.address), 1)) : j("", !0),
|
|
33922
|
+
(v = (p = t.delivery) == null ? void 0 : p.warehouse) != null && v.address ? (w(), z("span", VC, " со склада " + Y(t.delivery.warehouse.address), 1)) : j("", !0)
|
|
33923
|
+
])) : j("", !0)
|
|
33924
33924
|
]);
|
|
33925
33925
|
};
|
|
33926
33926
|
}
|
|
33927
|
-
}),
|
|
33927
|
+
}), UC = { class: "flex flex-col gap-2.5" }, qC = { class: "text-base flex flex-wrap items-baseline gap-x-1 gap-y-1" }, XC = ["href"], YC = { class: "text-sc-grey" }, GC = {
|
|
33928
|
+
key: 0,
|
|
33929
|
+
class: "ml-3 text-base text-sc-dark-grey"
|
|
33930
|
+
}, KC = {}, ZC = /* @__PURE__ */ oe({
|
|
33928
33931
|
...KC,
|
|
33929
33932
|
__name: "order-common-info",
|
|
33930
33933
|
props: {
|
|
@@ -33936,44 +33939,58 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
33936
33939
|
orderUrl: {}
|
|
33937
33940
|
},
|
|
33938
33941
|
setup(t) {
|
|
33939
|
-
const e = t, i = O(() => e.fields.includes(
|
|
33942
|
+
const e = t, i = O(() => e.fields.includes(Ve.Id) ? e.order.id : void 0), n = O(
|
|
33940
33943
|
() => {
|
|
33941
|
-
var
|
|
33942
|
-
return e.fields.includes(
|
|
33943
|
-
}
|
|
33944
|
-
), s = O(() => e.fields.includes(
|
|
33945
|
-
() => e.fields.includes(
|
|
33946
|
-
), o = O(() =>
|
|
33947
|
-
|
|
33948
|
-
|
|
33944
|
+
var c, u;
|
|
33945
|
+
return e.fields.includes(Ve.Status) ? (u = (c = Ft().orderStatusReference) == null ? void 0 : c.find((d) => d.id === (e.order.status ?? -1))) == null ? void 0 : u.name : void 0;
|
|
33946
|
+
}
|
|
33947
|
+
), s = O(() => e.fields.includes(Ve.CreatedAt)), r = O(
|
|
33948
|
+
() => e.fields.includes(Ve.ClientInfo) || e.fields.includes(Ve.ClientInfoShort) ? e.order.client : void 0
|
|
33949
|
+
), o = O(() => {
|
|
33950
|
+
var c;
|
|
33951
|
+
return !!r.value && e.fields.includes(Ve.ClientInfo) && !!((c = r.value.city) != null && c.name);
|
|
33952
|
+
}), a = O(() => {
|
|
33953
|
+
var d, h;
|
|
33954
|
+
const c = (d = r.value) == null ? void 0 : d.city;
|
|
33955
|
+
if (!(c != null && c.name))
|
|
33956
|
+
return "";
|
|
33957
|
+
const u = (h = c.region) == null ? void 0 : h.name;
|
|
33958
|
+
return u ? `г. ${c.name}, ${u}` : `г. ${c.name}`;
|
|
33959
|
+
}), l = O(() => e.fields.includes(Ve.DeliveryInfo) ? e.order.delivery : void 0);
|
|
33960
|
+
return (c, u) => (w(), z("div", UC, [
|
|
33961
|
+
R("span", qC, [
|
|
33949
33962
|
i.value ? (w(), z("a", {
|
|
33950
33963
|
key: 0,
|
|
33951
33964
|
href: t.orderUrl.replace(":id", t.order.id.toString()),
|
|
33952
33965
|
target: "_blank",
|
|
33953
33966
|
class: "text-sc-dark-grey"
|
|
33954
|
-
}, " #" + Y(i.value), 9,
|
|
33955
|
-
|
|
33956
|
-
|
|
33967
|
+
}, " #" + Y(i.value), 9, XC)) : j("", !0),
|
|
33968
|
+
r.value ? (w(), z($e, { key: 1 }, [
|
|
33969
|
+
u[0] || (u[0] = R("span", { class: "text-sc-grey" }, "—", -1)),
|
|
33970
|
+
H(So, {
|
|
33971
|
+
client: r.value,
|
|
33972
|
+
"show-city-and-region": !1,
|
|
33973
|
+
class: "inline-flex min-w-0"
|
|
33974
|
+
}, null, 8, ["client"])
|
|
33975
|
+
], 64)) : j("", !0),
|
|
33976
|
+
s.value ? (w(), z($e, { key: 2 }, [
|
|
33977
|
+
u[1] || (u[1] = ie(" от ", -1)),
|
|
33957
33978
|
H(ul, {
|
|
33958
33979
|
date: t.order.createdAt,
|
|
33959
33980
|
"is-time-secondary": !0
|
|
33960
33981
|
}, null, 8, ["date"])
|
|
33961
|
-
], 64)) :
|
|
33962
|
-
n.value ? (w(), z(
|
|
33963
|
-
|
|
33964
|
-
R("span",
|
|
33965
|
-
], 64)) :
|
|
33982
|
+
], 64)) : j("", !0),
|
|
33983
|
+
n.value ? (w(), z($e, { key: 3 }, [
|
|
33984
|
+
u[2] || (u[2] = ie(" - ", -1)),
|
|
33985
|
+
R("span", YC, Y(n.value), 1)
|
|
33986
|
+
], 64)) : j("", !0)
|
|
33966
33987
|
]),
|
|
33967
|
-
|
|
33968
|
-
|
|
33969
|
-
client: r.value,
|
|
33970
|
-
class: "ml-3"
|
|
33971
|
-
}, null, 8, ["client"])) : q("", !0),
|
|
33972
|
-
o.value ? (w(), Q(rc, {
|
|
33988
|
+
o.value && a.value ? (w(), z("span", GC, Y(a.value), 1)) : j("", !0),
|
|
33989
|
+
l.value ? (w(), Q(rc, {
|
|
33973
33990
|
key: 1,
|
|
33974
|
-
delivery:
|
|
33991
|
+
delivery: l.value,
|
|
33975
33992
|
class: "ml-3"
|
|
33976
|
-
}, null, 8, ["delivery"])) :
|
|
33993
|
+
}, null, 8, ["delivery"])) : j("", !0)
|
|
33977
33994
|
]));
|
|
33978
33995
|
}
|
|
33979
33996
|
}), QC = {}, Yf = /* @__PURE__ */ oe({
|
|
@@ -34032,7 +34049,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34032
34049
|
key: 0,
|
|
34033
34050
|
"user-type": t.product.creatorUser.type,
|
|
34034
34051
|
class: "mt-1 self-start"
|
|
34035
|
-
}, null, 8, ["user-type"])) :
|
|
34052
|
+
}, null, 8, ["user-type"])) : j("", !0),
|
|
34036
34053
|
R("div", sS, [
|
|
34037
34054
|
i[0] || (i[0] = R("span", null, "Кол-во", -1)),
|
|
34038
34055
|
t.product.product.getIsMeasurable() ? (w(), z("span", rS, Y(`${t.product.length} ${t.product.product.unit.name} x ${t.product.quantity} шт.`), 1)) : (w(), z("span", oS, Y(`${t.product.quantity} ${t.product.product.unit.name}`), 1)),
|
|
@@ -34132,7 +34149,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34132
34149
|
default:
|
|
34133
34150
|
return s;
|
|
34134
34151
|
}
|
|
34135
|
-
}, i =
|
|
34152
|
+
}, i = U(e()), n = () => {
|
|
34136
34153
|
i.value = e();
|
|
34137
34154
|
};
|
|
34138
34155
|
return st(() => {
|
|
@@ -34141,7 +34158,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34141
34158
|
window.removeEventListener("resize", n);
|
|
34142
34159
|
}), (s, r) => {
|
|
34143
34160
|
const o = $l;
|
|
34144
|
-
return w(), z(
|
|
34161
|
+
return w(), z($e, null, [
|
|
34145
34162
|
r[0] || (r[0] = R("h3", null, "Список позиций", -1)),
|
|
34146
34163
|
H(o, {
|
|
34147
34164
|
columns: i.value,
|
|
@@ -34164,13 +34181,13 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34164
34181
|
},
|
|
34165
34182
|
setup(t) {
|
|
34166
34183
|
return (e, i) => (w(), z("div", {
|
|
34167
|
-
class:
|
|
34184
|
+
class: Ue({ "flex flex-col": t.showUserType && t.extraInfoOnSecondLine })
|
|
34168
34185
|
}, [
|
|
34169
34186
|
R("span", hS, Y(t.user.name), 1),
|
|
34170
34187
|
t.showUserType ? (w(), z("span", {
|
|
34171
34188
|
key: 0,
|
|
34172
|
-
class:
|
|
34173
|
-
}, " [" + Y(t.user.type) + "] ", 3)) :
|
|
34189
|
+
class: Ue([{ "ml-1": !t.extraInfoOnSecondLine }, "text-sc-grey"])
|
|
34190
|
+
}, " [" + Y(t.user.type) + "] ", 3)) : j("", !0)
|
|
34174
34191
|
], 2));
|
|
34175
34192
|
}
|
|
34176
34193
|
}), gS = { class: "ml-4 grid grid-cols-3 gap-1.5 text-base" }, pS = { class: "col-span-2" }, mS = { class: "col-span-2" }, vS = {
|
|
@@ -34188,71 +34205,71 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34188
34205
|
return (n, s) => (w(), z("div", null, [
|
|
34189
34206
|
s[12] || (s[12] = R("h3", null, "Детали заказа", -1)),
|
|
34190
34207
|
R("div", gS, [
|
|
34191
|
-
t.order.creator.id !== t.order.client.id ? (w(), z(
|
|
34208
|
+
t.order.creator.id !== t.order.client.id ? (w(), z($e, { key: 0 }, [
|
|
34192
34209
|
s[1] || (s[1] = R("span", null, "Создал", -1)),
|
|
34193
34210
|
H(wd, {
|
|
34194
34211
|
user: t.order.creator,
|
|
34195
34212
|
class: "col-span-2"
|
|
34196
34213
|
}, null, 8, ["user"])
|
|
34197
|
-
], 64)) :
|
|
34214
|
+
], 64)) : j("", !0),
|
|
34198
34215
|
s[11] || (s[11] = R("span", null, "Клиент", -1)),
|
|
34199
34216
|
H(So, {
|
|
34200
34217
|
client: t.order.client,
|
|
34201
34218
|
class: "col-span-2",
|
|
34202
34219
|
"onClick:clientName": s[0] || (s[0] = (r) => i("click:client-name", t.order.client, r))
|
|
34203
34220
|
}, null, 8, ["client"]),
|
|
34204
|
-
t.order.contragent ? (w(), z(
|
|
34221
|
+
t.order.contragent ? (w(), z($e, { key: 1 }, [
|
|
34205
34222
|
s[2] || (s[2] = R("span", null, "Контрагент", -1)),
|
|
34206
34223
|
H(y_, {
|
|
34207
34224
|
contragent: t.order.contragent,
|
|
34208
34225
|
class: "col-span-2"
|
|
34209
34226
|
}, null, 8, ["contragent"])
|
|
34210
|
-
], 64)) :
|
|
34211
|
-
t.order.image ? (w(), z(
|
|
34227
|
+
], 64)) : j("", !0),
|
|
34228
|
+
t.order.image ? (w(), z($e, { key: 2 }, [
|
|
34212
34229
|
s[3] || (s[3] = R("span", null, "Графический файл клиента", -1)),
|
|
34213
34230
|
s[4] || (s[4] = R("a", {
|
|
34214
34231
|
class: "fancybox col-span-2",
|
|
34215
34232
|
href: "{{ order.image }}"
|
|
34216
34233
|
}, " Посмотреть ", -1))
|
|
34217
|
-
], 64)) :
|
|
34218
|
-
t.order.barcode ? (w(), z(
|
|
34234
|
+
], 64)) : j("", !0),
|
|
34235
|
+
t.order.barcode ? (w(), z($e, { key: 3 }, [
|
|
34219
34236
|
s[5] || (s[5] = R("span", null, "Штрих-код", -1)),
|
|
34220
34237
|
R("span", pS, Y(t.order.barcode), 1)
|
|
34221
|
-
], 64)) :
|
|
34222
|
-
t.order.payment ? (w(), z(
|
|
34238
|
+
], 64)) : j("", !0),
|
|
34239
|
+
t.order.payment ? (w(), z($e, { key: 4 }, [
|
|
34223
34240
|
s[6] || (s[6] = R("span", null, "Оплата", -1)),
|
|
34224
34241
|
H(Yf, {
|
|
34225
34242
|
payment: t.order.payment,
|
|
34226
34243
|
class: "col-span-2"
|
|
34227
34244
|
}, null, 8, ["payment"])
|
|
34228
|
-
], 64)) :
|
|
34229
|
-
t.order.delivery ? (w(), z(
|
|
34245
|
+
], 64)) : j("", !0),
|
|
34246
|
+
t.order.delivery ? (w(), z($e, { key: 5 }, [
|
|
34230
34247
|
s[7] || (s[7] = R("span", null, "Доставка", -1)),
|
|
34231
34248
|
H(rc, {
|
|
34232
34249
|
delivery: t.order.delivery,
|
|
34233
34250
|
class: "col-span-2"
|
|
34234
34251
|
}, null, 8, ["delivery"])
|
|
34235
|
-
], 64)) :
|
|
34236
|
-
t.order.comment ? (w(), z(
|
|
34252
|
+
], 64)) : j("", !0),
|
|
34253
|
+
t.order.comment ? (w(), z($e, { key: 6 }, [
|
|
34237
34254
|
s[8] || (s[8] = R("span", null, "Комментарий", -1)),
|
|
34238
34255
|
R("span", mS, Y(t.order.comment), 1)
|
|
34239
|
-
], 64)) :
|
|
34240
|
-
t.order.attachedUser ? (w(), z(
|
|
34256
|
+
], 64)) : j("", !0),
|
|
34257
|
+
t.order.attachedUser ? (w(), z($e, { key: 7 }, [
|
|
34241
34258
|
s[9] || (s[9] = R("span", null, "Закреплен за", -1)),
|
|
34242
34259
|
H(wd, {
|
|
34243
34260
|
user: t.order.attachedUser,
|
|
34244
34261
|
class: "col-span-2"
|
|
34245
34262
|
}, null, 8, ["user"])
|
|
34246
|
-
], 64)) :
|
|
34247
|
-
t.order.invoices && t.order.invoices.length > 0 ? (w(), z(
|
|
34263
|
+
], 64)) : j("", !0),
|
|
34264
|
+
t.order.invoices && t.order.invoices.length > 0 ? (w(), z($e, { key: 8 }, [
|
|
34248
34265
|
s[10] || (s[10] = R("span", null, "Прикрепленные счета", -1)),
|
|
34249
|
-
(w(!0), z(
|
|
34266
|
+
(w(!0), z($e, null, Xt(t.order.invoices, (r, o) => (w(), z("div", {
|
|
34250
34267
|
key: o,
|
|
34251
34268
|
class: "col-span-2"
|
|
34252
34269
|
}, [
|
|
34253
34270
|
R("a", vS, " Скачать счет №" + Y(o + 1), 1)
|
|
34254
34271
|
]))), 128))
|
|
34255
|
-
], 64)) :
|
|
34272
|
+
], 64)) : j("", !0)
|
|
34256
34273
|
])
|
|
34257
34274
|
]));
|
|
34258
34275
|
}
|
|
@@ -34267,7 +34284,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34267
34284
|
},
|
|
34268
34285
|
emits: ["click:client-name"],
|
|
34269
34286
|
setup(t, { emit: e }) {
|
|
34270
|
-
const i = t, n = e, s =
|
|
34287
|
+
const i = t, n = e, s = U(!1), r = U(new Ag(i.order)), o = (l = !0) => {
|
|
34271
34288
|
l && (s.value = !0), cn.getInstance(qa).getOrder(i.order.id).then((c) => {
|
|
34272
34289
|
r.value = c;
|
|
34273
34290
|
}).finally(() => {
|
|
@@ -34346,7 +34363,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34346
34363
|
}, 8, ["size"])
|
|
34347
34364
|
]),
|
|
34348
34365
|
_: 1
|
|
34349
|
-
}, 8, ["options", "size"])) :
|
|
34366
|
+
}, 8, ["options", "size"])) : j("", !0);
|
|
34350
34367
|
};
|
|
34351
34368
|
}
|
|
34352
34369
|
}), FS = {}, BS = /* @__PURE__ */ oe({
|
|
@@ -34375,7 +34392,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34375
34392
|
direction: "desc"
|
|
34376
34393
|
}
|
|
34377
34394
|
]
|
|
34378
|
-
), r =
|
|
34395
|
+
), r = U(s()), o = U([]), a = U(!1), l = O(() => Ft().orderStatusReference), c = (b) => {
|
|
34379
34396
|
var N, M;
|
|
34380
34397
|
const P = {
|
|
34381
34398
|
onDblclick: () => n("dblclick:row", b)
|
|
@@ -34388,16 +34405,16 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34388
34405
|
return D && F.push("order-status", D), b.delivery.date && Ng(new Date(b.delivery.date)) && F.push("next-day-order"), F.length > 0 && (P.class = F.join(" ")), P;
|
|
34389
34406
|
}, u = () => {
|
|
34390
34407
|
const b = [
|
|
34391
|
-
|
|
34392
|
-
|
|
34393
|
-
|
|
34394
|
-
|
|
34395
|
-
|
|
34396
|
-
|
|
34397
|
-
|
|
34398
|
-
|
|
34399
|
-
...i.showAttachedUserColumn ? [
|
|
34400
|
-
|
|
34408
|
+
Ve.CreatedAt,
|
|
34409
|
+
Ve.Id,
|
|
34410
|
+
Ve.ClientInfo,
|
|
34411
|
+
Ve.ClientCity,
|
|
34412
|
+
Ve.DeliveryDate,
|
|
34413
|
+
Ve.PaymentType,
|
|
34414
|
+
Ve.SalesDirections,
|
|
34415
|
+
Ve.Status,
|
|
34416
|
+
...i.showAttachedUserColumn ? [Ve.AttachedUser] : [],
|
|
34417
|
+
Ve.actions
|
|
34401
34418
|
], P = i.fields.length > 0 ? i.fields : b, F = {
|
|
34402
34419
|
title: "???",
|
|
34403
34420
|
key: "undefined",
|
|
@@ -34417,7 +34434,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34417
34434
|
let N = [
|
|
34418
34435
|
{
|
|
34419
34436
|
title: "Дата заказа",
|
|
34420
|
-
key:
|
|
34437
|
+
key: Ve.CreatedAt,
|
|
34421
34438
|
resizable: !0,
|
|
34422
34439
|
width: 100,
|
|
34423
34440
|
// eslint-disable-next-line vue/max-len
|
|
@@ -34425,7 +34442,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34425
34442
|
},
|
|
34426
34443
|
{
|
|
34427
34444
|
title: "№ заказа",
|
|
34428
|
-
key:
|
|
34445
|
+
key: Ve.Id,
|
|
34429
34446
|
resizable: !0,
|
|
34430
34447
|
width: 75,
|
|
34431
34448
|
className: "order-id",
|
|
@@ -34441,7 +34458,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34441
34458
|
},
|
|
34442
34459
|
{
|
|
34443
34460
|
title: "Дата доставки / самовывоза",
|
|
34444
|
-
key:
|
|
34461
|
+
key: Ve.DeliveryDate,
|
|
34445
34462
|
resizable: !0,
|
|
34446
34463
|
width: 100,
|
|
34447
34464
|
className: "delivery-date",
|
|
@@ -34449,7 +34466,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34449
34466
|
},
|
|
34450
34467
|
{
|
|
34451
34468
|
title: "Клиент",
|
|
34452
|
-
key:
|
|
34469
|
+
key: Ve.ClientInfo,
|
|
34453
34470
|
resizable: !0,
|
|
34454
34471
|
minWidth: 320,
|
|
34455
34472
|
render: (M) => W(So, {
|
|
@@ -34461,14 +34478,14 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34461
34478
|
},
|
|
34462
34479
|
{
|
|
34463
34480
|
title: "Тип доставки",
|
|
34464
|
-
key:
|
|
34481
|
+
key: Ve.DeliveryInfo,
|
|
34465
34482
|
resizable: !0,
|
|
34466
34483
|
minWidth: 320,
|
|
34467
34484
|
render: (M) => W(rc, { delivery: M.delivery })
|
|
34468
34485
|
},
|
|
34469
34486
|
{
|
|
34470
34487
|
title: "Клиент",
|
|
34471
|
-
key:
|
|
34488
|
+
key: Ve.ClientInfoShort,
|
|
34472
34489
|
resizable: !0,
|
|
34473
34490
|
minWidth: 320,
|
|
34474
34491
|
render: (M) => W(So, {
|
|
@@ -34481,7 +34498,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34481
34498
|
},
|
|
34482
34499
|
{
|
|
34483
34500
|
title: "Город клиента",
|
|
34484
|
-
key:
|
|
34501
|
+
key: Ve.ClientCity,
|
|
34485
34502
|
resizable: !0,
|
|
34486
34503
|
minWidth: 90,
|
|
34487
34504
|
width: 120,
|
|
@@ -34492,7 +34509,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34492
34509
|
},
|
|
34493
34510
|
{
|
|
34494
34511
|
title: "Статус",
|
|
34495
|
-
key:
|
|
34512
|
+
key: Ve.Status,
|
|
34496
34513
|
resizable: !0,
|
|
34497
34514
|
width: 150,
|
|
34498
34515
|
minWidth: 115,
|
|
@@ -34504,7 +34521,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34504
34521
|
},
|
|
34505
34522
|
{
|
|
34506
34523
|
title: "Тип оплаты",
|
|
34507
|
-
key:
|
|
34524
|
+
key: Ve.PaymentType,
|
|
34508
34525
|
resizable: !0,
|
|
34509
34526
|
width: 115,
|
|
34510
34527
|
minWidth: 95,
|
|
@@ -34512,7 +34529,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34512
34529
|
},
|
|
34513
34530
|
{
|
|
34514
34531
|
title: "Напр. продаж",
|
|
34515
|
-
key:
|
|
34532
|
+
key: Ve.SalesDirections,
|
|
34516
34533
|
resizable: !0,
|
|
34517
34534
|
width: 70,
|
|
34518
34535
|
render: (M) => {
|
|
@@ -34523,7 +34540,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34523
34540
|
...i.showAttachedUserColumn ? [
|
|
34524
34541
|
{
|
|
34525
34542
|
title: "Закреплено за",
|
|
34526
|
-
key:
|
|
34543
|
+
key: Ve.AttachedUser,
|
|
34527
34544
|
resizable: !0,
|
|
34528
34545
|
minWidth: 120,
|
|
34529
34546
|
render: (M) => {
|
|
@@ -34543,7 +34560,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34543
34560
|
orderContextButtonsConfig: i.orderContextButtonsConfig,
|
|
34544
34561
|
onOrderContextSelect: i.onOrderContextSelect
|
|
34545
34562
|
})
|
|
34546
|
-
}), i.enableSorting && (N = N.map((M) => [
|
|
34563
|
+
}), i.enableSorting && (N = N.map((M) => [Ve.Id, Ve.CreatedAt, Ve.DeliveryDate].includes(M.key) ? {
|
|
34547
34564
|
...M,
|
|
34548
34565
|
sorter: !0,
|
|
34549
34566
|
sortOrder: !1,
|
|
@@ -34562,13 +34579,13 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34562
34579
|
}
|
|
34563
34580
|
];
|
|
34564
34581
|
case bt.laptop: {
|
|
34565
|
-
const M = i.showAttachedUserColumn ? P : P.filter((A) => A !==
|
|
34582
|
+
const M = i.showAttachedUserColumn ? P : P.filter((A) => A !== Ve.AttachedUser);
|
|
34566
34583
|
return [D, ...M.map((A) => N.find((J) => J.key === A) ?? F)];
|
|
34567
34584
|
}
|
|
34568
34585
|
default:
|
|
34569
34586
|
return [F];
|
|
34570
34587
|
}
|
|
34571
|
-
}, d =
|
|
34588
|
+
}, d = U(u()), h = U(
|
|
34572
34589
|
new Mg(
|
|
34573
34590
|
i.pagination ?? {
|
|
34574
34591
|
page: 1,
|
|
@@ -34585,7 +34602,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34585
34602
|
prefix({ itemCount: b }) {
|
|
34586
34603
|
return `Всего заказов: ${b}.`;
|
|
34587
34604
|
}
|
|
34588
|
-
})), f =
|
|
34605
|
+
})), f = U(null), p = U(null), v = U(null), m = () => {
|
|
34589
34606
|
v.value !== null && (clearInterval(v.value), v.value = null);
|
|
34590
34607
|
}, y = () => {
|
|
34591
34608
|
m(), i.refreshInterval && (v.value = setInterval(() => {
|
|
@@ -34689,7 +34706,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34689
34706
|
const i = t, n = e, s = O(() => Ks(i.order.createdAt, _i().config.dateFormats.uiDateWithTime)), r = (o) => {
|
|
34690
34707
|
rt(i.orderLink) && (o.preventDefault(), o.stopPropagation()), n("click:order-id", i.order, o);
|
|
34691
34708
|
};
|
|
34692
|
-
return (o, a) => (w(), z(
|
|
34709
|
+
return (o, a) => (w(), z($e, null, [
|
|
34693
34710
|
R("span", null, [
|
|
34694
34711
|
a[1] || (a[1] = ie(" #", -1)),
|
|
34695
34712
|
R("a", {
|
|
@@ -34697,9 +34714,9 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34697
34714
|
onClick: a[0] || (a[0] = (l) => r(l))
|
|
34698
34715
|
}, Y(t.order.id), 9, AS),
|
|
34699
34716
|
ie(" от " + Y(s.value), 1),
|
|
34700
|
-
t.order.isApproved1c ? (w(), z(
|
|
34717
|
+
t.order.isApproved1c ? (w(), z($e, { key: 0 }, [
|
|
34701
34718
|
ie(" (подтверждён)")
|
|
34702
|
-
], 64)) :
|
|
34719
|
+
], 64)) : j("", !0)
|
|
34703
34720
|
]),
|
|
34704
34721
|
a[2] || (a[2] = ie(", ", -1)),
|
|
34705
34722
|
R("span", MS, "автор: " + Y(t.order.creator.name) + " [" + Y(t.order.creator.type) + "]", 1)
|
|
@@ -34724,12 +34741,12 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34724
34741
|
const n = kg;
|
|
34725
34742
|
return w(), z("div", IS, [
|
|
34726
34743
|
R("div", {
|
|
34727
|
-
class:
|
|
34744
|
+
class: Ue(t.stickyHeader ? "sticky z-10 bg-inherit" : void 0),
|
|
34728
34745
|
style: er(t.stickyHeader ? { top: `${t.stickyTopOffset ?? 0}px` } : void 0)
|
|
34729
34746
|
}, [
|
|
34730
34747
|
R("div", OS, [
|
|
34731
34748
|
R("div", zS, [
|
|
34732
|
-
|
|
34749
|
+
Te(e.$slots, "title", {}, () => [
|
|
34733
34750
|
H(n, { class: "m-0 leading-none lg:mb-3 lg:leading-normal" }, {
|
|
34734
34751
|
default: I(() => [
|
|
34735
34752
|
ie(Y(t.title ?? ""), 1)
|
|
@@ -34740,16 +34757,16 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34740
34757
|
]),
|
|
34741
34758
|
e.$slots["title-buttons"] ? (w(), z("div", LS, [
|
|
34742
34759
|
R("div", DS, [
|
|
34743
|
-
|
|
34760
|
+
Te(e.$slots, "title-buttons")
|
|
34744
34761
|
])
|
|
34745
|
-
])) :
|
|
34762
|
+
])) : j("", !0)
|
|
34746
34763
|
]),
|
|
34747
34764
|
e.$slots["title-extra"] ? (w(), z("div", NS, [
|
|
34748
|
-
|
|
34749
|
-
])) :
|
|
34750
|
-
|
|
34765
|
+
Te(e.$slots, "title-extra")
|
|
34766
|
+
])) : j("", !0),
|
|
34767
|
+
Te(e.$slots, "sticky-extra")
|
|
34751
34768
|
], 6),
|
|
34752
|
-
|
|
34769
|
+
Te(e.$slots, "default")
|
|
34753
34770
|
]);
|
|
34754
34771
|
};
|
|
34755
34772
|
}
|
|
@@ -34763,10 +34780,10 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34763
34780
|
},
|
|
34764
34781
|
emits: ["update:show-drawer"],
|
|
34765
34782
|
setup(t, { emit: e }) {
|
|
34766
|
-
const i = t, n = e, s =
|
|
34783
|
+
const i = t, n = e, s = U(0), r = U(i.showDrawer), o = () => {
|
|
34767
34784
|
switch (ci.getDeviceTypeByResolution()) {
|
|
34768
34785
|
case bt.phone:
|
|
34769
|
-
return window.innerWidth * 0.
|
|
34786
|
+
return window.innerWidth * 0.8;
|
|
34770
34787
|
case bt.tablet:
|
|
34771
34788
|
return window.innerWidth * 0.5;
|
|
34772
34789
|
default:
|
|
@@ -34794,13 +34811,13 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34794
34811
|
window.removeEventListener("resize", a);
|
|
34795
34812
|
}), a(), window.addEventListener("resize", a), (l, c) => {
|
|
34796
34813
|
const u = Id, d = Ed;
|
|
34797
|
-
return w(), z(
|
|
34814
|
+
return w(), z($e, null, [
|
|
34798
34815
|
R("div", VS, [
|
|
34799
34816
|
R("div", {
|
|
34800
34817
|
style: er(`margin-left: ${s.value}px;`),
|
|
34801
34818
|
class: "w-full"
|
|
34802
34819
|
}, [
|
|
34803
|
-
|
|
34820
|
+
Te(l.$slots, "default")
|
|
34804
34821
|
], 4)
|
|
34805
34822
|
]),
|
|
34806
34823
|
H(d, {
|
|
@@ -34813,15 +34830,15 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34813
34830
|
default: I(() => [
|
|
34814
34831
|
H(u, { closable: "" }, {
|
|
34815
34832
|
header: I(() => [
|
|
34816
|
-
|
|
34833
|
+
Te(l.$slots, "drawer-header", {}, () => [
|
|
34817
34834
|
R("div", jS, Y(t.title), 1)
|
|
34818
34835
|
])
|
|
34819
34836
|
]),
|
|
34820
34837
|
default: I(() => [
|
|
34821
|
-
|
|
34838
|
+
Te(l.$slots, "drawer-content")
|
|
34822
34839
|
]),
|
|
34823
34840
|
footer: I(() => [
|
|
34824
|
-
|
|
34841
|
+
Te(l.$slots, "drawer-footer")
|
|
34825
34842
|
]),
|
|
34826
34843
|
_: 3
|
|
34827
34844
|
})
|
|
@@ -34849,7 +34866,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34849
34866
|
stickyTopOffset: { default: 0 }
|
|
34850
34867
|
},
|
|
34851
34868
|
setup(t, { expose: e }) {
|
|
34852
|
-
const i =
|
|
34869
|
+
const i = U(!1), n = () => {
|
|
34853
34870
|
i.value = !0;
|
|
34854
34871
|
}, s = () => {
|
|
34855
34872
|
i.value = !1;
|
|
@@ -34893,24 +34910,24 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34893
34910
|
title: t.panelTitle
|
|
34894
34911
|
}, Un({
|
|
34895
34912
|
"drawer-content": I(() => [
|
|
34896
|
-
|
|
34913
|
+
Te(a.$slots, "panel-content")
|
|
34897
34914
|
]),
|
|
34898
34915
|
default: I(() => [
|
|
34899
|
-
|
|
34916
|
+
Te(a.$slots, "default")
|
|
34900
34917
|
]),
|
|
34901
34918
|
_: 2
|
|
34902
34919
|
}, [
|
|
34903
34920
|
a.$slots["panel-header"] ? {
|
|
34904
34921
|
name: "drawer-header",
|
|
34905
34922
|
fn: I(() => [
|
|
34906
|
-
|
|
34923
|
+
Te(a.$slots, "panel-header")
|
|
34907
34924
|
]),
|
|
34908
34925
|
key: "0"
|
|
34909
34926
|
} : void 0,
|
|
34910
34927
|
a.$slots["panel-bottom"] ? {
|
|
34911
34928
|
name: "drawer-footer",
|
|
34912
34929
|
fn: I(() => [
|
|
34913
|
-
|
|
34930
|
+
Te(a.$slots, "panel-bottom")
|
|
34914
34931
|
]),
|
|
34915
34932
|
key: "1"
|
|
34916
34933
|
} : void 0
|
|
@@ -34921,21 +34938,21 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34921
34938
|
a.$slots.title ? {
|
|
34922
34939
|
name: "title",
|
|
34923
34940
|
fn: I(() => [
|
|
34924
|
-
|
|
34941
|
+
Te(a.$slots, "title")
|
|
34925
34942
|
]),
|
|
34926
34943
|
key: "0"
|
|
34927
34944
|
} : void 0,
|
|
34928
34945
|
a.$slots["title-buttons"] ? {
|
|
34929
34946
|
name: "title-buttons",
|
|
34930
34947
|
fn: I(() => [
|
|
34931
|
-
|
|
34948
|
+
Te(a.$slots, "title-buttons")
|
|
34932
34949
|
]),
|
|
34933
34950
|
key: "1"
|
|
34934
34951
|
} : void 0,
|
|
34935
34952
|
a.$slots["title-extra"] ? {
|
|
34936
34953
|
name: "title-extra",
|
|
34937
34954
|
fn: I(() => [
|
|
34938
|
-
|
|
34955
|
+
Te(a.$slots, "title-extra")
|
|
34939
34956
|
]),
|
|
34940
34957
|
key: "2"
|
|
34941
34958
|
} : void 0,
|
|
@@ -34944,7 +34961,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34944
34961
|
fn: I(() => [
|
|
34945
34962
|
R("div", XS, [
|
|
34946
34963
|
t.isShowPanelButtonVisible ? (w(), z("div", YS, [
|
|
34947
|
-
|
|
34964
|
+
Te(a.$slots, "show-panel-button", {
|
|
34948
34965
|
onClickHandler: () => {
|
|
34949
34966
|
i.value = !0;
|
|
34950
34967
|
}
|
|
@@ -34959,13 +34976,13 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
34959
34976
|
_: 1
|
|
34960
34977
|
})
|
|
34961
34978
|
])
|
|
34962
|
-
])) :
|
|
34979
|
+
])) : j("", !0),
|
|
34963
34980
|
R("div", GS, [
|
|
34964
|
-
|
|
34981
|
+
Te(a.$slots, "preview-panel")
|
|
34965
34982
|
]),
|
|
34966
34983
|
a.$slots["preview-panel-extra"] ? (w(), z("div", KS, [
|
|
34967
|
-
|
|
34968
|
-
])) :
|
|
34984
|
+
Te(a.$slots, "preview-panel-extra")
|
|
34985
|
+
])) : j("", !0)
|
|
34969
34986
|
], 512)
|
|
34970
34987
|
]),
|
|
34971
34988
|
key: "3"
|
|
@@ -35182,16 +35199,16 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35182
35199
|
setup(t) {
|
|
35183
35200
|
return (e, i) => (w(), z("div", e5, [
|
|
35184
35201
|
R("span", t5, [
|
|
35185
|
-
t.addr.postIndex ? (w(), z("span", i5, Y(t.addr.postIndex) + ", ", 1)) :
|
|
35186
|
-
t.addr.city ? (w(), z("span", n5, Y(t.addr.city) + ", ", 1)) :
|
|
35187
|
-
t.addr.locality ? (w(), z("span", s5, Y(t.addr.locality) + ", ", 1)) :
|
|
35188
|
-
t.addr.region ? (w(), z("span", r5, Y(t.addr.region) + ", ", 1)) :
|
|
35202
|
+
t.addr.postIndex ? (w(), z("span", i5, Y(t.addr.postIndex) + ", ", 1)) : j("", !0),
|
|
35203
|
+
t.addr.city ? (w(), z("span", n5, Y(t.addr.city) + ", ", 1)) : j("", !0),
|
|
35204
|
+
t.addr.locality ? (w(), z("span", s5, Y(t.addr.locality) + ", ", 1)) : j("", !0),
|
|
35205
|
+
t.addr.region ? (w(), z("span", r5, Y(t.addr.region) + ", ", 1)) : j("", !0)
|
|
35189
35206
|
]),
|
|
35190
35207
|
R("span", o5, [
|
|
35191
|
-
t.addr.street ? (w(), z("span", a5, Y(t.addr.street) + ", ", 1)) :
|
|
35192
|
-
t.addr.building ? (w(), z("span", l5, Y(t.addr.building) + ", ", 1)) :
|
|
35193
|
-
t.addr.buildingPart ? (w(), z("span", c5, Y(t.addr.buildingPart) + ", ", 1)) :
|
|
35194
|
-
t.addr.apartments ? (w(), z("span", u5, Y(t.addr.apartments) + ", ", 1)) :
|
|
35208
|
+
t.addr.street ? (w(), z("span", a5, Y(t.addr.street) + ", ", 1)) : j("", !0),
|
|
35209
|
+
t.addr.building ? (w(), z("span", l5, Y(t.addr.building) + ", ", 1)) : j("", !0),
|
|
35210
|
+
t.addr.buildingPart ? (w(), z("span", c5, Y(t.addr.buildingPart) + ", ", 1)) : j("", !0),
|
|
35211
|
+
t.addr.apartments ? (w(), z("span", u5, Y(t.addr.apartments) + ", ", 1)) : j("", !0)
|
|
35195
35212
|
])
|
|
35196
35213
|
]));
|
|
35197
35214
|
}
|
|
@@ -35221,7 +35238,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35221
35238
|
}),
|
|
35222
35239
|
emits: ["select", "update:value"],
|
|
35223
35240
|
setup(t, { expose: e, emit: i }) {
|
|
35224
|
-
const n = t, s = i, r =
|
|
35241
|
+
const n = t, s = i, r = U(n.value), o = U(!1), a = U([]), l = O(
|
|
35225
35242
|
() => a.value.map((p) => ({
|
|
35226
35243
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
35227
35244
|
label: p[n.field ?? "addressString"] ?? "-",
|
|
@@ -35261,7 +35278,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35261
35278
|
c.cancel();
|
|
35262
35279
|
const v = a.value.find((m) => m.id === p) || {};
|
|
35263
35280
|
s("select", v);
|
|
35264
|
-
}, g =
|
|
35281
|
+
}, g = U(null);
|
|
35265
35282
|
function f() {
|
|
35266
35283
|
g.value.focus();
|
|
35267
35284
|
}
|
|
@@ -35301,8 +35318,8 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35301
35318
|
return (e, i) => (w(), z("div", g5, [
|
|
35302
35319
|
R("span", p5, Y(t.bank.name), 1),
|
|
35303
35320
|
R("span", m5, [
|
|
35304
|
-
t.bank.bic ? (w(), z("span", v5, " БИК: " + Y(t.bank.bic), 1)) :
|
|
35305
|
-
t.bank.inn ? (w(), z("span", y5, " ИНН: " + Y(t.bank.inn), 1)) :
|
|
35321
|
+
t.bank.bic ? (w(), z("span", v5, " БИК: " + Y(t.bank.bic), 1)) : j("", !0),
|
|
35322
|
+
t.bank.inn ? (w(), z("span", y5, " ИНН: " + Y(t.bank.inn), 1)) : j("", !0)
|
|
35306
35323
|
])
|
|
35307
35324
|
]));
|
|
35308
35325
|
}
|
|
@@ -35324,7 +35341,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35324
35341
|
}),
|
|
35325
35342
|
emits: ["select", "update:value"],
|
|
35326
35343
|
setup(t, { expose: e, emit: i }) {
|
|
35327
|
-
const n = t, s = i, r =
|
|
35344
|
+
const n = t, s = i, r = U(n.value), o = U(!1), a = U([]), l = O(
|
|
35328
35345
|
() => a.value.map((p) => ({
|
|
35329
35346
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
35330
35347
|
label: p[n.field ?? "_"] ?? "-",
|
|
@@ -35369,7 +35386,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35369
35386
|
c.cancel();
|
|
35370
35387
|
const v = a.value.find((m) => m.id === p) || {};
|
|
35371
35388
|
s("select", v);
|
|
35372
|
-
}, g =
|
|
35389
|
+
}, g = U(null);
|
|
35373
35390
|
function f() {
|
|
35374
35391
|
g.value.focus();
|
|
35375
35392
|
}
|
|
@@ -35423,13 +35440,13 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35423
35440
|
return ((r = (s = e.org.rawData) == null ? void 0 : s.address) == null ? void 0 : r.value) ?? "";
|
|
35424
35441
|
});
|
|
35425
35442
|
return (s, r) => (w(), z("div", {
|
|
35426
|
-
class:
|
|
35443
|
+
class: Ue(`m-0.5 flex flex-col p-0.5 ${i.value ? "line-through" : ""}`)
|
|
35427
35444
|
}, [
|
|
35428
35445
|
R("span", x5, Y(t.org.name), 1),
|
|
35429
35446
|
t.org.inn || n.value ? (w(), z("div", k5, [
|
|
35430
|
-
t.org.inn ? (w(), z("span", C5, Y(t.org.inn), 1)) :
|
|
35431
|
-
n.value ? (w(), z("span", S5, Y(n.value), 1)) :
|
|
35432
|
-
])) :
|
|
35447
|
+
t.org.inn ? (w(), z("span", C5, Y(t.org.inn), 1)) : j("", !0),
|
|
35448
|
+
n.value ? (w(), z("span", S5, Y(n.value), 1)) : j("", !0)
|
|
35449
|
+
])) : j("", !0)
|
|
35433
35450
|
], 2));
|
|
35434
35451
|
}
|
|
35435
35452
|
}), P5 = {}, x3 = /* @__PURE__ */ oe({
|
|
@@ -35451,7 +35468,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35451
35468
|
}),
|
|
35452
35469
|
emits: ["select", "update:value"],
|
|
35453
35470
|
setup(t, { expose: e, emit: i }) {
|
|
35454
|
-
const n = t, s = i, r =
|
|
35471
|
+
const n = t, s = i, r = U(n.value), o = U(!1), a = U([]), l = (v) => {
|
|
35455
35472
|
var m, y;
|
|
35456
35473
|
return !!(((y = (m = v.rawData) == null ? void 0 : m.state) == null ? void 0 : y.liquidationDate) ?? !1);
|
|
35457
35474
|
}, c = O(
|
|
@@ -35501,7 +35518,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35501
35518
|
u.cancel();
|
|
35502
35519
|
const m = a.value.find((y) => y.id === v) || {};
|
|
35503
35520
|
(n.allowSelectTerminated || !l(m)) && s("select", m);
|
|
35504
|
-
}, f =
|
|
35521
|
+
}, f = U(null);
|
|
35505
35522
|
function p() {
|
|
35506
35523
|
f.value.focus();
|
|
35507
35524
|
}
|
|
@@ -35548,7 +35565,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35548
35565
|
},
|
|
35549
35566
|
emits: ["accept"],
|
|
35550
35567
|
setup(t, { emit: e }) {
|
|
35551
|
-
const i = t, n = e, s =
|
|
35568
|
+
const i = t, n = e, s = U(!1), r = () => {
|
|
35552
35569
|
n("accept", () => {
|
|
35553
35570
|
s.value = !1;
|
|
35554
35571
|
});
|
|
@@ -35574,7 +35591,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35574
35591
|
onClick: o
|
|
35575
35592
|
}, {
|
|
35576
35593
|
default: I(() => [
|
|
35577
|
-
|
|
35594
|
+
Te(a.$slots, "default")
|
|
35578
35595
|
]),
|
|
35579
35596
|
_: 3
|
|
35580
35597
|
}, 8, ["disabled", "ghost", "loading", "size", "type", "quaternary", "circle"])
|
|
@@ -35636,7 +35653,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35636
35653
|
},
|
|
35637
35654
|
emits: ["update:comment"],
|
|
35638
35655
|
setup(t, { emit: e }) {
|
|
35639
|
-
const i = t, n = e, s =
|
|
35656
|
+
const i = t, n = e, s = U(i.comment);
|
|
35640
35657
|
ke(
|
|
35641
35658
|
() => s.value,
|
|
35642
35659
|
(a) => {
|
|
@@ -35687,13 +35704,13 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
|
|
|
35687
35704
|
});
|
|
35688
35705
|
return (n, s) => t.debt !== 0 ? (w(), z("span", {
|
|
35689
35706
|
key: 0,
|
|
35690
|
-
class:
|
|
35707
|
+
class: Ue({ "text-sm": t.wrapAsSmall })
|
|
35691
35708
|
}, [
|
|
35692
35709
|
ie(Y(i.value) + " ", 1),
|
|
35693
35710
|
R("span", {
|
|
35694
|
-
class:
|
|
35711
|
+
class: Ue({ "text-green-700": t.debt > 0, "text-red-700": t.debt < 0 })
|
|
35695
35712
|
}, Y(t.debt) + " ₽ ", 3)
|
|
35696
|
-
], 2)) :
|
|
35713
|
+
], 2)) : j("", !0);
|
|
35697
35714
|
}
|
|
35698
35715
|
}), E5 = {
|
|
35699
35716
|
viewBox: "0 0 512 512",
|
|
@@ -35724,7 +35741,7 @@ const O5 = Oe({ name: "ion-warning", render: I5 }), z5 = {}, $3 = /* @__PURE__ *
|
|
|
35724
35741
|
}, {
|
|
35725
35742
|
trigger: I(() => [
|
|
35726
35743
|
H(n, {
|
|
35727
|
-
class:
|
|
35744
|
+
class: Ue(`ml-0.5 ${t.iconClass}`)
|
|
35728
35745
|
}, null, 8, ["class"])
|
|
35729
35746
|
]),
|
|
35730
35747
|
default: I(() => [
|
|
@@ -35835,7 +35852,7 @@ export {
|
|
|
35835
35852
|
Cn as KozyrekLine,
|
|
35836
35853
|
Au as KozyrekTailTemplate,
|
|
35837
35854
|
gr as KozyrekTemplate,
|
|
35838
|
-
|
|
35855
|
+
Ve as OrdersTableFields,
|
|
35839
35856
|
Bu as Point,
|
|
35840
35857
|
_3 as ScAddressSuggestion,
|
|
35841
35858
|
h5 as ScAddressSuggestionLabel,
|