@snabcentr/vue-ui-lib 3.66.1 → 3.66.2
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 +1 -1
- package/dist/release_notes.tmp +3 -3
- package/dist/sc-vue-ui-lib.js +611 -607
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/components/catalog/forms/set-client-price-form-item.vue.d.ts +10 -0
- package/package.json +1 -1
package/dist/sc-vue-ui-lib.js
CHANGED
|
@@ -7,7 +7,7 @@ var T = (t, e, n) => _g(t, typeof e != "symbol" ? e + "" : e, n), mc = (t, e, n)
|
|
|
7
7
|
var rn = (t, e, n) => (mc(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ba = (t, e, n) => e.has(t) ? gc("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), pc = (t, e, n, i) => (mc(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n);
|
|
8
8
|
import { FieldValidationResultData as wg, useBaseConfigStateStore as vn, OrderItemBase as vt, ClientProduct as Kn, Identity as xg, ConfiguratorsEnum as Zt, ClientCategory as kg, Reference as Cg, useReferencesStore as Ot, PriceCoefficientEnum as Sg, CalculationTypeEnum as Vr, PriceCoefficient as $g, UnitsHelper as Sn, DateTimeProvider as Id, STANDARD_PERIOD_GROUPS as vc, STANDARD_PERIOD_SECTIONS as Pg, PreferencesStorageProvider as yc, HttpRequester as hi, ProductCategoryDataProvider as Tg, ProductDataProvider as Rg, UserTypeEnum as jr, Order as Fg, OrdersDataProvider as el, TableDataPagination as Bg, Curator as bc, CuratedDirection as Mg, ManagerDataFactory as _c, Manager as _a, DataSuggestionProvider as Bl, ReferenceDataProvider as Ag, ClientDataProvider as Eg } from "@snabcentr/common-lib";
|
|
9
9
|
import { isEmpty as Ar, isNil as lt, noop as $t, isString as ci, groupBy as Ig, get as vo, some as Ln, isFunction as Ft, find as wc, forOwn as Og, forEach as ps, sortBy as Ml, cloneDeep as tn, reduce as Od, every as xc, isArray as dt, keys as zg, debounce as Zn, sum as kc, isUndefined as Js, unset as Lg, isNull as zd, isObject as Dg, merge as qr, upperFirst as Ng, map as Hg, constant as Lo, union as Wg } from "lodash-es";
|
|
10
|
-
import { Comment as Do, Text as Ld, Fragment as be, markRaw as He, createElementBlock as A, openBlock as w, createElementVNode as
|
|
10
|
+
import { Comment as Do, Text as Ld, Fragment as be, markRaw as He, createElementBlock as A, openBlock as w, createElementVNode as P, defineComponent as re, inject as et, computed as E, ref as W, readonly as yo, normalizeClass as je, createVNode as z, createCommentVNode as H, renderSlot as Re, unref as M, createTextVNode as J, toDisplayString as q, Transition as ks, withCtx as I, createBlock as ne, useTemplateRef as Xe, onMounted as ut, onBeforeUnmount as bn, onUnmounted as Er, normalizeStyle as es, renderList as Ct, h as j, watch as we, withKeys as Ki, withModifiers as Rn, nextTick as gt, onBeforeMount as Ir, toRaw as mn, withDirectives as rr, provide as Fn, createSlots as er, getCurrentInstance as Dd, Teleport as Vg, toRef as st, mergeProps as Al, onActivated as Nd, onDeactivated as Hd, isVNode as jg, shallowRef as qg, watchEffect as Bi, vShow as Wd, cloneVNode as Ug, mergeDefaults as El } from "vue";
|
|
11
11
|
import { NTooltip as Or, NButton as Oe, NDropdown as No, NTag as Vd, NPopover as Ai, NText as Xi, NScrollbar as Il, NCheckbox as Ei, NSpin as Rs, NForm as Fs, NFormItem as Ve, NSelect as Bn, NInputNumber as _t, NInput as fi, NModal as Ho, NDrawer as jd, NDrawerContent as qd, NDataTable as Ol, NAlert as Ud, NInputGroup as Xd, NInputGroupLabel as Xg, useThemeVars as Yg, NDatePicker as Kg, NMenu as Gg, NUpload as Zg, NUploadDragger as Qg, NList as Jg, NListItem as em, NH1 as tm, NAutoComplete as zl } from "naive-ui";
|
|
12
12
|
import { format as tr, endOfDay as nm, startOfDay as im, isSameDay as Cc, startOfMonth as sm, endOfMonth as wa, isValid as yr, addYears as Yd, addMonths as rm, getDate as om, getDaysInMonth as am, startOfToday as lm, isTomorrow as cm } from "date-fns";
|
|
13
13
|
import { parsePhoneNumberWithError as Ll, PhoneNumber as um, ParseError as dm } from "libphonenumber-js";
|
|
@@ -345,19 +345,19 @@ const pe = {
|
|
|
345
345
|
};
|
|
346
346
|
function bm(t, e) {
|
|
347
347
|
return w(), A("svg", ym, [...e[0] || (e[0] = [
|
|
348
|
-
|
|
348
|
+
P("circle", {
|
|
349
349
|
cx: "256",
|
|
350
350
|
cy: "256",
|
|
351
351
|
r: "48",
|
|
352
352
|
fill: "currentColor"
|
|
353
353
|
}, null, -1),
|
|
354
|
-
|
|
354
|
+
P("circle", {
|
|
355
355
|
cx: "256",
|
|
356
356
|
cy: "416",
|
|
357
357
|
r: "48",
|
|
358
358
|
fill: "currentColor"
|
|
359
359
|
}, null, -1),
|
|
360
|
-
|
|
360
|
+
P("circle", {
|
|
361
361
|
cx: "256",
|
|
362
362
|
cy: "96",
|
|
363
363
|
r: "48",
|
|
@@ -372,15 +372,15 @@ const Dl = He({ name: "ion-ellipsis-vertical-sharp", render: bm }), _m = {
|
|
|
372
372
|
};
|
|
373
373
|
function wm(t, e) {
|
|
374
374
|
return w(), A("svg", _m, [...e[0] || (e[0] = [
|
|
375
|
-
|
|
375
|
+
P("g", {
|
|
376
376
|
fill: "none",
|
|
377
377
|
stroke: "currentColor",
|
|
378
378
|
"stroke-linecap": "round",
|
|
379
379
|
"stroke-linejoin": "round",
|
|
380
380
|
"stroke-width": "2"
|
|
381
381
|
}, [
|
|
382
|
-
|
|
383
|
-
|
|
382
|
+
P("path", { d: "M7 7H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2v-1" }),
|
|
383
|
+
P("path", { d: "M20.385 6.585a2.1 2.1 0 0 0-2.97-2.97L9 12v3h3zM16 5l3 3" })
|
|
384
384
|
], -1)
|
|
385
385
|
])]);
|
|
386
386
|
}
|
|
@@ -391,7 +391,7 @@ const Kd = He({ name: "tabler-edit", render: wm }), xm = {
|
|
|
391
391
|
};
|
|
392
392
|
function km(t, e) {
|
|
393
393
|
return w(), A("svg", xm, [...e[0] || (e[0] = [
|
|
394
|
-
|
|
394
|
+
P("path", {
|
|
395
395
|
fill: "currentColor",
|
|
396
396
|
d: "M258.9 48C141.92 46.42 46.42 141.92 48 258.9c1.56 112.19 92.91 203.54 205.1 205.1c117 1.6 212.48-93.9 210.88-210.88C462.44 140.91 371.09 49.56 258.9 48m-16.79 192.47l51.55-59a16 16 0 0 1 24.1 21.06l-51.55 59a16 16 0 1 1-24.1-21.06m-38.86 90.85a16 16 0 0 1-22.62 0l-47.95-48a16 16 0 1 1 22.64-22.62l48 48a16 16 0 0 1-.07 22.62m176.8-128.79l-111.88 128a16 16 0 0 1-11.51 5.47h-.54a16 16 0 0 1-11.32-4.69l-47.94-48a16 16 0 1 1 22.64-22.62l29.8 29.83a8 8 0 0 0 11.68-.39l95-108.66a16 16 0 0 1 24.1 21.06Z"
|
|
397
397
|
}, null, -1)
|
|
@@ -404,14 +404,14 @@ const Gd = He({ name: "ion-checkmark-done-circle", render: km }), Cm = {
|
|
|
404
404
|
};
|
|
405
405
|
function Sm(t, e) {
|
|
406
406
|
return w(), A("svg", Cm, [...e[0] || (e[0] = [
|
|
407
|
-
|
|
407
|
+
P("path", {
|
|
408
408
|
fill: "none",
|
|
409
409
|
stroke: "currentColor",
|
|
410
410
|
"stroke-miterlimit": "10",
|
|
411
411
|
"stroke-width": "32",
|
|
412
412
|
d: "M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192s192-86 192-192Z"
|
|
413
413
|
}, null, -1),
|
|
414
|
-
|
|
414
|
+
P("path", {
|
|
415
415
|
fill: "none",
|
|
416
416
|
stroke: "currentColor",
|
|
417
417
|
"stroke-linecap": "round",
|
|
@@ -428,7 +428,7 @@ const Zd = He({ name: "ion-checkmark-done-circle-outline", render: Sm }), $m = {
|
|
|
428
428
|
};
|
|
429
429
|
function Pm(t, e) {
|
|
430
430
|
return w(), A("svg", $m, [...e[0] || (e[0] = [
|
|
431
|
-
|
|
431
|
+
P("path", {
|
|
432
432
|
fill: "currentColor",
|
|
433
433
|
d: "M22.15 3.237c-1.93-1.93-5.185-1.403-6.406 1.04l-3.175 6.35a1.5 1.5 0 0 1-.868.752L6.72 13.04a2 2 0 0 0-.782 3.312l4.149 4.149L4 26.586v1.415h1.414l6.086-6.086l4.149 4.149a2 2 0 0 0 3.311-.782l1.661-4.983a1.5 1.5 0 0 1 .752-.867l6.351-3.175c2.442-1.222 2.97-4.476 1.04-6.407zM17.533 5.17a2 2 0 0 1 3.203-.52l6.614 6.614a2 2 0 0 1-.52 3.203l-6.351 3.175a3.5 3.5 0 0 0-1.755 2.024l-1.661 4.982l-9.712-9.711l4.983-1.661a3.5 3.5 0 0 0 2.024-1.755z"
|
|
434
434
|
}, null, -1)
|
|
@@ -441,7 +441,7 @@ const Tm = He({ name: "fluent-pin32-regular", render: Pm }), Rm = {
|
|
|
441
441
|
};
|
|
442
442
|
function Fm(t, e) {
|
|
443
443
|
return w(), A("svg", Rm, [...e[0] || (e[0] = [
|
|
444
|
-
|
|
444
|
+
P("path", {
|
|
445
445
|
fill: "none",
|
|
446
446
|
stroke: "currentColor",
|
|
447
447
|
"stroke-linecap": "round",
|
|
@@ -449,7 +449,7 @@ function Fm(t, e) {
|
|
|
449
449
|
"stroke-width": "32",
|
|
450
450
|
d: "M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112"
|
|
451
451
|
}, null, -1),
|
|
452
|
-
|
|
452
|
+
P("circle", {
|
|
453
453
|
cx: "256",
|
|
454
454
|
cy: "256",
|
|
455
455
|
r: "80",
|
|
@@ -467,7 +467,7 @@ const Bm = He({ name: "ion-eye-outline", render: Fm }), Mm = {
|
|
|
467
467
|
};
|
|
468
468
|
function Am(t, e) {
|
|
469
469
|
return w(), A("svg", Mm, [...e[0] || (e[0] = [
|
|
470
|
-
|
|
470
|
+
P("path", {
|
|
471
471
|
fill: "currentColor",
|
|
472
472
|
d: "M15.744 4.276c1.221-2.442 4.476-2.97 6.406-1.04l6.614 6.614c1.93 1.93 1.402 5.186-1.04 6.406l-6.35 3.176a1.5 1.5 0 0 0-.753.867l-1.66 4.983a2 2 0 0 1-3.312.782l-4.149-4.15l-6.086 6.087H4v-1.415l6.086-6.085l-4.149-4.15a2 2 0 0 1 .782-3.31l4.982-1.662a1.5 1.5 0 0 0 .868-.752z"
|
|
473
473
|
}, null, -1)
|
|
@@ -480,7 +480,7 @@ const Em = He({ name: "fluent-pin32-filled", render: Am }), Im = {
|
|
|
480
480
|
};
|
|
481
481
|
function Om(t, e) {
|
|
482
482
|
return w(), A("svg", Im, [...e[0] || (e[0] = [
|
|
483
|
-
|
|
483
|
+
P("path", {
|
|
484
484
|
fill: "none",
|
|
485
485
|
stroke: "currentColor",
|
|
486
486
|
"stroke-linecap": "round",
|
|
@@ -497,11 +497,11 @@ const zm = He({ name: "ion-bookmark-outline", render: Om }), Lm = {
|
|
|
497
497
|
};
|
|
498
498
|
function Dm(t, e) {
|
|
499
499
|
return w(), A("svg", Lm, [...e[0] || (e[0] = [
|
|
500
|
-
|
|
500
|
+
P("path", {
|
|
501
501
|
fill: "currentColor",
|
|
502
502
|
d: "m63.998 86.005l21.998-21.998L447.999 426.01l-21.998 21.998zM259.34 192.09l60.57 60.57a64.07 64.07 0 0 0-60.57-60.57m-6.68 127.82l-60.57-60.57a64.07 64.07 0 0 0 60.57 60.57"
|
|
503
503
|
}, null, -1),
|
|
504
|
-
|
|
504
|
+
P("path", {
|
|
505
505
|
fill: "currentColor",
|
|
506
506
|
d: "M256 352a96 96 0 0 1-92.6-121.34l-69.07-69.08C66.12 187.42 39.24 221.14 16 256c26.42 44 62.56 89.24 100.2 115.18C159.38 400.92 206.33 416 255.76 416A233.5 233.5 0 0 0 335 402.2l-53.61-53.6A95.8 95.8 0 0 1 256 352m0-192a96 96 0 0 1 92.6 121.34L419.26 352c29.15-26.25 56.07-61.56 76.74-96c-26.38-43.43-62.9-88.56-101.18-114.82C351.1 111.2 304.31 96 255.76 96a222.9 222.9 0 0 0-78.21 14.29l53.11 53.11A95.8 95.8 0 0 1 256 160"
|
|
507
507
|
}, null, -1)
|
|
@@ -514,7 +514,7 @@ const Nm = He({ name: "ion-eye-off-sharp", render: Dm }), Hm = {
|
|
|
514
514
|
};
|
|
515
515
|
function Wm(t, e) {
|
|
516
516
|
return w(), A("svg", Hm, [...e[0] || (e[0] = [
|
|
517
|
-
|
|
517
|
+
P("path", {
|
|
518
518
|
fill: "none",
|
|
519
519
|
stroke: "currentColor",
|
|
520
520
|
"stroke-linecap": "round",
|
|
@@ -575,9 +575,9 @@ const Vm = He({ name: "ion-chevron-forward-outline", render: Wm }), jm = ["data-
|
|
|
575
575
|
"data-name": t.name,
|
|
576
576
|
class: je([{ "cursor-not-allowed text-gray-400": t.disabled }, "sc-collapse-item flex flex-col p-2"])
|
|
577
577
|
}, [
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
578
|
+
P("div", qm, [
|
|
579
|
+
P("div", Um, [
|
|
580
|
+
P("div", {
|
|
581
581
|
class: je({ "rotate-90": u.value }),
|
|
582
582
|
onClick: d
|
|
583
583
|
}, [
|
|
@@ -587,12 +587,12 @@ const Vm = He({ name: "ion-chevron-forward-outline", render: Wm }), jm = ["data-
|
|
|
587
587
|
], 2)
|
|
588
588
|
]),
|
|
589
589
|
M(Ks).hasSlotContent(m.$slots["pre-arrow"]) ? (w(), A("div", Xm, [
|
|
590
|
-
|
|
590
|
+
P("div", Ym, [
|
|
591
591
|
Re(m.$slots, "pre-arrow", {}, void 0, !0)
|
|
592
592
|
])
|
|
593
593
|
])) : H("", !0),
|
|
594
|
-
|
|
595
|
-
|
|
594
|
+
P("div", Km, [
|
|
595
|
+
P("div", {
|
|
596
596
|
class: "sc-collapse-item-title flex flex-1 cursor-pointer flex-col text-lg font-semibold",
|
|
597
597
|
onClick: d
|
|
598
598
|
}, [
|
|
@@ -631,7 +631,7 @@ const Vm = He({ name: "ion-chevron-forward-outline", render: Wm }), jm = ["data-
|
|
|
631
631
|
};
|
|
632
632
|
function ip(t, e) {
|
|
633
633
|
return w(), A("svg", np, [...e[0] || (e[0] = [
|
|
634
|
-
|
|
634
|
+
P("circle", {
|
|
635
635
|
cx: "176",
|
|
636
636
|
cy: "416",
|
|
637
637
|
r: "16",
|
|
@@ -641,7 +641,7 @@ function ip(t, e) {
|
|
|
641
641
|
"stroke-linejoin": "round",
|
|
642
642
|
"stroke-width": "32"
|
|
643
643
|
}, null, -1),
|
|
644
|
-
|
|
644
|
+
P("circle", {
|
|
645
645
|
cx: "400",
|
|
646
646
|
cy: "416",
|
|
647
647
|
r: "16",
|
|
@@ -651,7 +651,7 @@ function ip(t, e) {
|
|
|
651
651
|
"stroke-linejoin": "round",
|
|
652
652
|
"stroke-width": "32"
|
|
653
653
|
}, null, -1),
|
|
654
|
-
|
|
654
|
+
P("path", {
|
|
655
655
|
fill: "none",
|
|
656
656
|
stroke: "currentColor",
|
|
657
657
|
"stroke-linecap": "round",
|
|
@@ -659,7 +659,7 @@ function ip(t, e) {
|
|
|
659
659
|
"stroke-width": "32",
|
|
660
660
|
d: "M48 80h64l48 272h256"
|
|
661
661
|
}, null, -1),
|
|
662
|
-
|
|
662
|
+
P("path", {
|
|
663
663
|
fill: "none",
|
|
664
664
|
stroke: "currentColor",
|
|
665
665
|
"stroke-linecap": "round",
|
|
@@ -879,15 +879,15 @@ const Qd = He({ name: "ion-cart-outline", render: ip }), Wo = Symbol(), c6 = {
|
|
|
879
879
|
};
|
|
880
880
|
function ap(t, e) {
|
|
881
881
|
return w(), A("svg", op, [...e[0] || (e[0] = [
|
|
882
|
-
|
|
882
|
+
P("g", {
|
|
883
883
|
fill: "none",
|
|
884
884
|
stroke: "currentColor",
|
|
885
885
|
"stroke-linecap": "round",
|
|
886
886
|
"stroke-linejoin": "round",
|
|
887
887
|
"stroke-width": "2"
|
|
888
888
|
}, [
|
|
889
|
-
|
|
890
|
-
|
|
889
|
+
P("path", { d: "M12 8v4l2 2" }),
|
|
890
|
+
P("path", { d: "M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5" })
|
|
891
891
|
], -1)
|
|
892
892
|
])]);
|
|
893
893
|
}
|
|
@@ -898,7 +898,7 @@ const lp = He({ name: "tabler-history", render: ap }), cp = {
|
|
|
898
898
|
};
|
|
899
899
|
function up(t, e) {
|
|
900
900
|
return w(), A("svg", cp, [...e[0] || (e[0] = [
|
|
901
|
-
|
|
901
|
+
P("path", {
|
|
902
902
|
fill: "currentColor",
|
|
903
903
|
d: "m18.5 3.5l2 2l-15 15l-2-2zM7 4c1.66 0 3 1.34 3 3s-1.34 3-3 3s-3-1.34-3-3s1.34-3 3-3m10 10c1.66 0 3 1.34 3 3s-1.34 3-3 3s-3-1.34-3-3s1.34-3 3-3M7 6c-.55 0-1 .45-1 1s.45 1 1 1s1-.45 1-1s-.45-1-1-1m10 10c-.55 0-1 .45-1 1s.45 1 1 1s1-.45 1-1s-.45-1-1-1"
|
|
904
904
|
}, null, -1)
|
|
@@ -980,7 +980,7 @@ const dp = He({ name: "mdi-percent-outline", render: up }), hp = { class: "flex
|
|
|
980
980
|
}),
|
|
981
981
|
_: 1
|
|
982
982
|
})) : H("", !0),
|
|
983
|
-
|
|
983
|
+
P("div", {
|
|
984
984
|
class: je({ "!text-red-600": r.value })
|
|
985
985
|
}, [
|
|
986
986
|
l.value && l.value !== a.value || m.value ? (w(), A("div", fp, [
|
|
@@ -990,10 +990,10 @@ const dp = He({ name: "mdi-percent-outline", render: up }), hp = { class: "flex
|
|
|
990
990
|
class: je(["flex text-nowrap text-sm text-gray-600", { "!text-red-600": r.value }])
|
|
991
991
|
}, " (" + q(m.value) + "%) ", 3)) : H("", !0)
|
|
992
992
|
])) : H("", !0),
|
|
993
|
-
|
|
993
|
+
P("span", {
|
|
994
994
|
class: je(["whitespace-nowrap text-base flex items-center gap-1", { "text-gray-600": (b = s.value) == null ? void 0 : b.readOnly, "font-bold": !s.value && !n.value }])
|
|
995
995
|
}, [
|
|
996
|
-
|
|
996
|
+
P("span", {
|
|
997
997
|
class: je({ "text-nowrap": !0, "cursor-pointer underline decoration-dashed": d.value && t.eventEmitter }),
|
|
998
998
|
onClick: y[0] || (y[0] = () => {
|
|
999
999
|
var k;
|
|
@@ -1006,7 +1006,7 @@ const dp = He({ name: "mdi-percent-outline", render: up }), hp = { class: "flex
|
|
|
1006
1006
|
z(R, { class: "text-sm text-black bg-amber-400 rounded p-px" })
|
|
1007
1007
|
]),
|
|
1008
1008
|
default: I(() => [
|
|
1009
|
-
|
|
1009
|
+
P("span", null, ' На продукт действует скидка "' + q(t.product.discount.name) + '"; ', 1)
|
|
1010
1010
|
]),
|
|
1011
1011
|
_: 1
|
|
1012
1012
|
})) : H("", !0)
|
|
@@ -1044,14 +1044,14 @@ const dp = He({ name: "mdi-percent-outline", render: up }), hp = { class: "flex
|
|
|
1044
1044
|
};
|
|
1045
1045
|
function bp(t, e) {
|
|
1046
1046
|
return w(), A("svg", yp, [...e[0] || (e[0] = [
|
|
1047
|
-
|
|
1047
|
+
P("path", {
|
|
1048
1048
|
fill: "none",
|
|
1049
1049
|
stroke: "currentColor",
|
|
1050
1050
|
"stroke-miterlimit": "10",
|
|
1051
1051
|
"stroke-width": "32",
|
|
1052
1052
|
d: "M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184s184-82.39 184-184S349.61 64 248 64Z"
|
|
1053
1053
|
}, null, -1),
|
|
1054
|
-
|
|
1054
|
+
P("path", {
|
|
1055
1055
|
fill: "none",
|
|
1056
1056
|
stroke: "currentColor",
|
|
1057
1057
|
"stroke-linecap": "round",
|
|
@@ -1059,7 +1059,7 @@ function bp(t, e) {
|
|
|
1059
1059
|
"stroke-width": "32",
|
|
1060
1060
|
d: "M220 220h32v116"
|
|
1061
1061
|
}, null, -1),
|
|
1062
|
-
|
|
1062
|
+
P("path", {
|
|
1063
1063
|
fill: "none",
|
|
1064
1064
|
stroke: "currentColor",
|
|
1065
1065
|
"stroke-linecap": "round",
|
|
@@ -1067,7 +1067,7 @@ function bp(t, e) {
|
|
|
1067
1067
|
"stroke-width": "32",
|
|
1068
1068
|
d: "M208 340h88"
|
|
1069
1069
|
}, null, -1),
|
|
1070
|
-
|
|
1070
|
+
P("path", {
|
|
1071
1071
|
fill: "currentColor",
|
|
1072
1072
|
d: "M248 130a26 26 0 1 0 26 26a26 26 0 0 0-26-26"
|
|
1073
1073
|
}, null, -1)
|
|
@@ -1080,11 +1080,11 @@ const Nl = He({ name: "ion-information-circle-outline", render: bp }), _p = {
|
|
|
1080
1080
|
};
|
|
1081
1081
|
function wp(t, e) {
|
|
1082
1082
|
return w(), A("svg", _p, [...e[0] || (e[0] = [
|
|
1083
|
-
|
|
1083
|
+
P("path", {
|
|
1084
1084
|
fill: "currentColor",
|
|
1085
1085
|
d: "M450.29 112H142c-34 0-62 27.51-62 61.33v245.34c0 33.82 28 61.33 62 61.33h308c34 0 62-26.18 62-60V173.33c0-33.82-27.68-61.33-61.71-61.33m-77.15 61.34a46 46 0 1 1-46.28 46a46.19 46.19 0 0 1 46.28-46.01Zm-231.55 276c-17 0-29.86-13.75-29.86-30.66v-64.83l90.46-80.79a46.54 46.54 0 0 1 63.44 1.83L328.27 337l-113 112.33ZM480 418.67a30.67 30.67 0 0 1-30.71 30.66H259L376.08 333a46.24 46.24 0 0 1 59.44-.16L480 370.59Z"
|
|
1086
1086
|
}, null, -1),
|
|
1087
|
-
|
|
1087
|
+
P("path", {
|
|
1088
1088
|
fill: "currentColor",
|
|
1089
1089
|
d: "M384 32H64A64 64 0 0 0 0 96v256a64.11 64.11 0 0 0 48 62V152a72 72 0 0 1 72-72h326a64.11 64.11 0 0 0-62-48"
|
|
1090
1090
|
}, null, -1)
|
|
@@ -1097,7 +1097,7 @@ const eh = He({ name: "ion-images", render: wp }), xp = {
|
|
|
1097
1097
|
};
|
|
1098
1098
|
function kp(t, e) {
|
|
1099
1099
|
return w(), A("svg", xp, [...e[0] || (e[0] = [
|
|
1100
|
-
|
|
1100
|
+
P("path", {
|
|
1101
1101
|
fill: "currentColor",
|
|
1102
1102
|
d: "M400 480a16 16 0 0 1-10.63-4L256 357.41L122.63 476A16 16 0 0 1 96 464V96a64.07 64.07 0 0 1 64-64h192a64.07 64.07 0 0 1 64 64v368a16 16 0 0 1-16 16"
|
|
1103
1103
|
}, null, -1)
|
|
@@ -1888,7 +1888,7 @@ const Mp = ["href"], Ap = ["src", "alt"], Ep = {}, Ip = /* @__PURE__ */ re({
|
|
|
1888
1888
|
})
|
|
1889
1889
|
}, {
|
|
1890
1890
|
trigger: I(() => [
|
|
1891
|
-
|
|
1891
|
+
P("div", {
|
|
1892
1892
|
class: "inline-flex",
|
|
1893
1893
|
onClick: u[0] || (u[0] = (g) => n.value = !n.value)
|
|
1894
1894
|
}, [
|
|
@@ -1914,7 +1914,7 @@ const Mp = ["href"], Ap = ["src", "alt"], Ep = {}, Ip = /* @__PURE__ */ re({
|
|
|
1914
1914
|
key: f,
|
|
1915
1915
|
href: g.image
|
|
1916
1916
|
}, [
|
|
1917
|
-
|
|
1917
|
+
P("img", {
|
|
1918
1918
|
src: g.preview,
|
|
1919
1919
|
alt: `Изображение #${f + 1}`
|
|
1920
1920
|
}, null, 8, Ap)
|
|
@@ -1947,10 +1947,10 @@ const Mp = ["href"], Ap = ["src", "alt"], Ep = {}, Ip = /* @__PURE__ */ re({
|
|
|
1947
1947
|
])
|
|
1948
1948
|
]),
|
|
1949
1949
|
default: I(() => [
|
|
1950
|
-
|
|
1950
|
+
P("div", Op, [
|
|
1951
1951
|
(w(!0), A(be, null, Ct(t.product.stockCount, (r, o) => (w(), A(be, { key: o }, [
|
|
1952
|
-
|
|
1953
|
-
|
|
1952
|
+
P("span", zp, q(r.warehouse.name), 1),
|
|
1953
|
+
P("span", Lp, [
|
|
1954
1954
|
J(q(r.count ?? "В наличии") + " ", 1),
|
|
1955
1955
|
r.count ? (w(), A(be, { key: 0 }, [
|
|
1956
1956
|
J(q(t.product.unit.name), 1)
|
|
@@ -2035,15 +2035,15 @@ const Mp = ["href"], Ap = ["src", "alt"], Ep = {}, Ip = /* @__PURE__ */ re({
|
|
|
2035
2035
|
var R, F, b, k;
|
|
2036
2036
|
const g = Cp, f = Or, m = Qd, v = eh, p = Xi, y = Jd, C = Nl, _ = Il;
|
|
2037
2037
|
return w(), A("div", null, [
|
|
2038
|
-
|
|
2038
|
+
P("div", Hp, [
|
|
2039
2039
|
z(p, {
|
|
2040
2040
|
type: "info",
|
|
2041
2041
|
class: "sc-product-name text-balance text-base font-medium"
|
|
2042
2042
|
}, {
|
|
2043
2043
|
default: I(() => {
|
|
2044
|
-
var x,
|
|
2044
|
+
var x, $;
|
|
2045
2045
|
return [
|
|
2046
|
-
|
|
2046
|
+
P("div", Wp, [
|
|
2047
2047
|
((x = t.product) == null ? void 0 : x.isFavorite) ?? !1 ? (w(), ne(f, {
|
|
2048
2048
|
key: 0,
|
|
2049
2049
|
placement: "bottom",
|
|
@@ -2057,7 +2057,7 @@ const Mp = ["href"], Ap = ["src", "alt"], Ep = {}, Ip = /* @__PURE__ */ re({
|
|
|
2057
2057
|
]),
|
|
2058
2058
|
_: 1
|
|
2059
2059
|
})) : H("", !0),
|
|
2060
|
-
((
|
|
2060
|
+
(($ = t.product) == null ? void 0 : $.isPreviouslyOrdered) ?? !1 ? (w(), ne(f, {
|
|
2061
2061
|
key: 1,
|
|
2062
2062
|
placement: "bottom",
|
|
2063
2063
|
trigger: "hover"
|
|
@@ -2071,19 +2071,19 @@ const Mp = ["href"], Ap = ["src", "alt"], Ep = {}, Ip = /* @__PURE__ */ re({
|
|
|
2071
2071
|
_: 1
|
|
2072
2072
|
})) : H("", !0)
|
|
2073
2073
|
]),
|
|
2074
|
-
|
|
2074
|
+
P("span", {
|
|
2075
2075
|
class: je({ "cursor-pointer": l.value && t.eventEmitter }),
|
|
2076
2076
|
onClick: u
|
|
2077
2077
|
}, q(t.product.name), 3),
|
|
2078
2078
|
t.product.onOrder ? (w(), A("span", Vp, " [Под заказ] ")) : H("", !0),
|
|
2079
|
-
|
|
2079
|
+
P("span", jp, [
|
|
2080
2080
|
t.product.images && t.product.images.length > 0 ? (w(), ne(Ip, {
|
|
2081
2081
|
key: 0,
|
|
2082
2082
|
ref: "image-gallery",
|
|
2083
2083
|
images: t.product.images
|
|
2084
2084
|
}, {
|
|
2085
2085
|
default: I(() => [
|
|
2086
|
-
|
|
2086
|
+
P("div", qp, [
|
|
2087
2087
|
z(v)
|
|
2088
2088
|
])
|
|
2089
2089
|
]),
|
|
@@ -2104,23 +2104,23 @@ const Mp = ["href"], Ap = ["src", "alt"], Ep = {}, Ip = /* @__PURE__ */ re({
|
|
|
2104
2104
|
"product-context-buttons-config": t.productContextButtonsConfig
|
|
2105
2105
|
}, null, 8, ["product", "event-emitter", "show-product-add-to-cart-button", "show-product-edit-button", "show-product-required-button", "product-context-buttons-config"])) : H("", !0)
|
|
2106
2106
|
]),
|
|
2107
|
-
|
|
2108
|
-
|
|
2107
|
+
P("div", Up, [
|
|
2108
|
+
P("div", Xp, [
|
|
2109
2109
|
t.product.supplierSku ? (w(), A("div", Yp, [
|
|
2110
2110
|
h[2] || (h[2] = J(" Артикул производителя/поставщика: ", -1)),
|
|
2111
|
-
|
|
2111
|
+
P("span", Kp, q(t.product.supplierSku), 1)
|
|
2112
2112
|
])) : H("", !0),
|
|
2113
2113
|
t.showCode ? (w(), A("span", Gp, [
|
|
2114
2114
|
h[3] || (h[3] = J(" Артикул: ", -1)),
|
|
2115
|
-
|
|
2115
|
+
P("span", Zp, q(t.product.code), 1)
|
|
2116
2116
|
])) : H("", !0),
|
|
2117
2117
|
t.product.stockCount && t.product.stockCount.length > 0 ? (w(), ne(Np, {
|
|
2118
2118
|
key: 2,
|
|
2119
2119
|
product: t.product
|
|
2120
2120
|
}, {
|
|
2121
2121
|
default: I(() => [
|
|
2122
|
-
|
|
2123
|
-
h[4] || (h[4] =
|
|
2122
|
+
P("span", Qp, [
|
|
2123
|
+
h[4] || (h[4] = P("span", { class: "underline decoration-dashed" }, "В наличии", -1)),
|
|
2124
2124
|
z(C, { class: "mt-0.5" })
|
|
2125
2125
|
])
|
|
2126
2126
|
]),
|
|
@@ -2128,11 +2128,11 @@ const Mp = ["href"], Ap = ["src", "alt"], Ep = {}, Ip = /* @__PURE__ */ re({
|
|
|
2128
2128
|
}, 8, ["product"])) : (w(), A("span", Jp, " Нет в наличии ")),
|
|
2129
2129
|
t.product.pack ?? ((F = (R = t.product) == null ? void 0 : R.properties) == null ? void 0 : F.pack) ? (w(), A("span", ev, [
|
|
2130
2130
|
h[5] || (h[5] = J(" Норма упаковки: ", -1)),
|
|
2131
|
-
|
|
2131
|
+
P("span", tv, q(t.product.pack ?? ((k = (b = t.product) == null ? void 0 : b.properties) == null ? void 0 : k.pack)), 1)
|
|
2132
2132
|
])) : H("", !0),
|
|
2133
2133
|
t.showPlanningDates && r.value ? (w(), A("span", nv, [
|
|
2134
2134
|
h[6] || (h[6] = J(" Планируемая дата поступления на основной склад: ", -1)),
|
|
2135
|
-
|
|
2135
|
+
P("span", iv, q(r.value), 1)
|
|
2136
2136
|
])) : H("", !0)
|
|
2137
2137
|
])
|
|
2138
2138
|
]),
|
|
@@ -2168,9 +2168,9 @@ const Mp = ["href"], Ap = ["src", "alt"], Ep = {}, Ip = /* @__PURE__ */ re({
|
|
|
2168
2168
|
_: 1
|
|
2169
2169
|
}),
|
|
2170
2170
|
t.showSlugs || t.showProperties ? (w(), A("div", rv, [
|
|
2171
|
-
|
|
2172
|
-
t.showSlugs ? (w(!0), A(be, { key: 0 }, Ct({ id: t.product.id, slug: t.product.slug }, (x,
|
|
2173
|
-
t.showProperties ? (w(!0), A(be, { key: 1 }, Ct(t.product.properties, (x,
|
|
2171
|
+
P("ul", ov, [
|
|
2172
|
+
t.showSlugs ? (w(!0), A(be, { key: 0 }, Ct({ id: t.product.id, slug: t.product.slug }, (x, $) => (w(), A("li", { key: $ }, " (" + q($) + "): " + q(x), 1))), 128)) : H("", !0),
|
|
2173
|
+
t.showProperties ? (w(!0), A(be, { key: 1 }, Ct(t.product.properties, (x, $) => (w(), A("li", { key: $ }, " (" + q($) + "): " + q(x), 1))), 128)) : H("", !0)
|
|
2174
2174
|
])
|
|
2175
2175
|
])) : H("", !0)
|
|
2176
2176
|
]);
|
|
@@ -2296,11 +2296,11 @@ const Mp = ["href"], Ap = ["src", "alt"], Ep = {}, Ip = /* @__PURE__ */ re({
|
|
|
2296
2296
|
};
|
|
2297
2297
|
function dv(t, e) {
|
|
2298
2298
|
return w(), A("svg", uv, [...e[0] || (e[0] = [
|
|
2299
|
-
|
|
2299
|
+
P("path", {
|
|
2300
2300
|
fill: "none",
|
|
2301
2301
|
d: "M296 64h-80a7.91 7.91 0 0 0-8 8v24h96V72a7.91 7.91 0 0 0-8-8"
|
|
2302
2302
|
}, null, -1),
|
|
2303
|
-
|
|
2303
|
+
P("path", {
|
|
2304
2304
|
fill: "currentColor",
|
|
2305
2305
|
d: "M432 96h-96V72a40 40 0 0 0-40-40h-80a40 40 0 0 0-40 40v24H80a16 16 0 0 0 0 32h17l19 304.92c1.42 26.85 22 47.08 48 47.08h184c26.13 0 46.3-19.78 48-47l19-305h17a16 16 0 0 0 0-32M192.57 416H192a16 16 0 0 1-16-15.43l-8-224a16 16 0 1 1 32-1.14l8 224A16 16 0 0 1 192.57 416M272 400a16 16 0 0 1-32 0V176a16 16 0 0 1 32 0Zm32-304h-96V72a7.91 7.91 0 0 1 8-8h80a7.91 7.91 0 0 1 8 8Zm32 304.57A16 16 0 0 1 320 416h-.58A16 16 0 0 1 304 399.43l8-224a16 16 0 1 1 32 1.14Z"
|
|
2306
2306
|
}, null, -1)
|
|
@@ -2313,7 +2313,7 @@ const Vo = He({ name: "ion-trash", render: dv }), hv = {
|
|
|
2313
2313
|
};
|
|
2314
2314
|
function fv(t, e) {
|
|
2315
2315
|
return w(), A("svg", hv, [...e[0] || (e[0] = [
|
|
2316
|
-
|
|
2316
|
+
P("path", {
|
|
2317
2317
|
d: "M448 224H288V64h-64v160H64v64h160v160h64V288h160z",
|
|
2318
2318
|
fill: "currentColor"
|
|
2319
2319
|
}, null, -1)
|
|
@@ -2345,9 +2345,9 @@ const th = He({ name: "ion-plus", render: fv }), gv = {
|
|
|
2345
2345
|
size: 17,
|
|
2346
2346
|
class: "w-fit"
|
|
2347
2347
|
}),
|
|
2348
|
-
s[0] || (s[0] =
|
|
2348
|
+
s[0] || (s[0] = P("div", null, "Выполняется поиск товара ...", -1))
|
|
2349
2349
|
])) : t.product && !t.product.isNewRec() ? (w(), A("div", mv, [
|
|
2350
|
-
|
|
2350
|
+
P("div", null, q(t.product.code) + " - " + q(t.product.name) + " - " + q(t.product.costRub.toLocaleString()) + " ₽ / " + q(t.product.unit.name), 1),
|
|
2351
2351
|
n.value ? (w(), A("div", pv, "(Планируемая дата производства: " + q(n.value) + ")", 1)) : H("", !0)
|
|
2352
2352
|
])) : t.validation ? (w(), A("div", vv, [
|
|
2353
2353
|
z(o, {
|
|
@@ -2473,8 +2473,8 @@ const th = He({ name: "ion-plus", render: fv }), gv = {
|
|
|
2473
2473
|
default: I(() => {
|
|
2474
2474
|
var F;
|
|
2475
2475
|
return [
|
|
2476
|
-
|
|
2477
|
-
y[22] || (y[22] =
|
|
2476
|
+
P("div", bv, [
|
|
2477
|
+
y[22] || (y[22] = P("span", { class: "w-full font-bold" }, "Ширина участка, мм / Угол сгиба, ° (А)", -1)),
|
|
2478
2478
|
t.settings.startTailConfigs && t.settings.startTailConfigs.length > 0 ? (w(), ne(M(Ve), {
|
|
2479
2479
|
key: 0,
|
|
2480
2480
|
required: !0,
|
|
@@ -2494,13 +2494,13 @@ const th = He({ name: "ion-plus", render: fv }), gv = {
|
|
|
2494
2494
|
]),
|
|
2495
2495
|
_: 1
|
|
2496
2496
|
})) : H("", !0),
|
|
2497
|
-
|
|
2497
|
+
P("div", _v, [
|
|
2498
2498
|
(w(!0), A(be, null, Ct(a.value.configuratorParams.linesAngles, (b, k) => (w(), A("div", {
|
|
2499
2499
|
key: k,
|
|
2500
2500
|
class: "flex items-start gap-2"
|
|
2501
2501
|
}, [
|
|
2502
|
-
|
|
2503
|
-
|
|
2502
|
+
P("div", wv, q(k + 1), 1),
|
|
2503
|
+
P("div", xv, [
|
|
2504
2504
|
z(M(Ve), {
|
|
2505
2505
|
path: `configuratorParams.linesWidths.${k}`,
|
|
2506
2506
|
label: "Ширина, мм"
|
|
@@ -2617,7 +2617,7 @@ const th = He({ name: "ion-plus", render: fv }), gv = {
|
|
|
2617
2617
|
_: 1
|
|
2618
2618
|
}, 8, ["loading"])) : H("", !0)
|
|
2619
2619
|
]),
|
|
2620
|
-
|
|
2620
|
+
P("div", Sv, [
|
|
2621
2621
|
z(M(Ve), {
|
|
2622
2622
|
label: "С какой стороны изделие будет иметь цвет",
|
|
2623
2623
|
"show-feedback": !1
|
|
@@ -2714,9 +2714,9 @@ const th = He({ name: "ion-plus", render: fv }), gv = {
|
|
|
2714
2714
|
}, 8, ["checked"])) : H("", !0),
|
|
2715
2715
|
u.value ? (w(), A("div", $v, [
|
|
2716
2716
|
y[24] || (y[24] = J(" ИТОГО: ", -1)),
|
|
2717
|
-
|
|
2717
|
+
P("span", Pv, q(u.value) + " ₽", 1)
|
|
2718
2718
|
])) : H("", !0),
|
|
2719
|
-
|
|
2719
|
+
P("div", Tv, [
|
|
2720
2720
|
z(M(Oe), {
|
|
2721
2721
|
loading: t.isSubmitProcessing,
|
|
2722
2722
|
disabled: !g.value || a.value.product.isNewRec(),
|
|
@@ -5038,8 +5038,8 @@ var Zv = Math.cos, Qv = Math.sin, Lc = Math.tan, Sa = [], wh = class kn extends
|
|
|
5038
5038
|
if (n.length <= 3) {
|
|
5039
5039
|
const F = e;
|
|
5040
5040
|
let b, k, x;
|
|
5041
|
-
const
|
|
5042
|
-
return b = F[0] *
|
|
5041
|
+
const $ = n[0] || 0, B = n[1] || 0, O = n[2] || 0;
|
|
5042
|
+
return b = F[0] * $ + F[1] * B + F[2] * O, k = F[3] * $ + F[4] * B + F[5] * O, x = F[6] * $ + F[7] * B + F[8] * O, [b, k, x];
|
|
5043
5043
|
}
|
|
5044
5044
|
const s = e[0], r = e[1], o = e[2], a = e[3], l = e[4], c = e[5], u = e[6], d = e[7], h = e[8], g = n[0], f = n[1], m = n[2], v = n[3], p = n[4], y = n[5], C = n[6], _ = n[7], R = n[8];
|
|
5045
5045
|
return i = i || new li(9), i[0] = s * g + r * v + o * C, i[1] = s * f + r * p + o * _, i[2] = s * m + r * y + o * R, i[3] = a * g + l * v + c * C, i[4] = a * f + l * p + c * _, i[5] = a * m + l * y + c * R, i[6] = u * g + d * v + h * C, i[7] = u * f + d * p + h * _, i[8] = u * m + d * y + h * R, i;
|
|
@@ -5138,8 +5138,8 @@ var Zv = Math.cos, Qv = Math.sin, Lc = Math.tan, Sa = [], wh = class kn extends
|
|
|
5138
5138
|
const Z = r[0] * e + r[1] * n + r[2] * i, V = r[3] * e + r[4] * n + r[5] * i, oe = r[6] * e + r[7] * n + r[8] * i;
|
|
5139
5139
|
return [Z, V, oe];
|
|
5140
5140
|
}
|
|
5141
|
-
const u = this.elements, d = [e, n, i, s, r, o, a, l, c], h = u[0], g = u[1], f = u[2], m = u[3], v = u[4], p = u[5], y = u[6], C = u[7], _ = u[8], R = d[0], F = d[1], b = d[2], k = d[3], x = d[4],
|
|
5142
|
-
return this.elements[0] = h * R + g * k + f * B, this.elements[1] = h * F + g * x + f * O, this.elements[2] = h * b + g *
|
|
5141
|
+
const u = this.elements, d = [e, n, i, s, r, o, a, l, c], h = u[0], g = u[1], f = u[2], m = u[3], v = u[4], p = u[5], y = u[6], C = u[7], _ = u[8], R = d[0], F = d[1], b = d[2], k = d[3], x = d[4], $ = d[5], B = d[6], O = d[7], L = d[8];
|
|
5142
|
+
return this.elements[0] = h * R + g * k + f * B, this.elements[1] = h * F + g * x + f * O, this.elements[2] = h * b + g * $ + f * L, this.elements[3] = m * R + v * k + p * B, this.elements[4] = m * F + v * x + p * O, this.elements[5] = m * b + v * $ + p * L, this.elements[6] = y * R + C * k + _ * B, this.elements[7] = y * F + C * x + _ * O, this.elements[8] = y * b + C * $ + _ * L, this.trigger(ae.Types.change);
|
|
5143
5143
|
}
|
|
5144
5144
|
/**
|
|
5145
5145
|
* @name Two.Matrix#inverse
|
|
@@ -5693,7 +5693,7 @@ var Ls = Math.min, Ds = Math.max, Jv = Math.ceil, e0 = Math.floor, t0 = new fe()
|
|
|
5693
5693
|
return R;
|
|
5694
5694
|
} else return F;
|
|
5695
5695
|
p = F.controls && F.controls.right, v = R.controls && R.controls.left, a = F.x, h = F.y, l = (p || F).x, g = (p || F).y, c = (v || R).x, f = (v || R).y, u = R.x, m = R.y, p && F.relative && (l += F.x, g += F.y), v && R.relative && (c += R.x, f += R.y), o = Cr(e, a, l, c, u), d = Cr(e, h, g, f, m);
|
|
5696
|
-
const b = $n(a, l, e), k = $n(h, g, e), x = $n(l, c, e),
|
|
5696
|
+
const b = $n(a, l, e), k = $n(h, g, e), x = $n(l, c, e), $ = $n(g, f, e), B = $n(c, u, e), O = $n(f, m, e), L = $n(b, x, e), Z = $n(k, $, e), V = $n(x, B, e), oe = $n($, O, e);
|
|
5697
5697
|
return he.isObject(n) ? (n.x = o, n.y = d, n instanceof Ne && (n.controls.left.x = L, n.controls.left.y = Z, n.controls.right.x = V, n.controls.right.y = oe, (typeof n.relative != "boolean" || n.relative) && (n.controls.left.x -= o, n.controls.left.y -= d, n.controls.right.x -= o, n.controls.right.y -= d)), n.t = e, n) : (r = new Ne(
|
|
5698
5698
|
o,
|
|
5699
5699
|
d,
|
|
@@ -9001,7 +9001,7 @@ var ft = {
|
|
|
9001
9001
|
let f, m, v;
|
|
9002
9002
|
const p = h[0], y = p.toLowerCase();
|
|
9003
9003
|
c = h.slice(1).trim().match(ai.path), r = p === y;
|
|
9004
|
-
let C, _, R, F, b, k, x,
|
|
9004
|
+
let C, _, R, F, b, k, x, $, B, O, L, Z, V, oe, ue, Y, K;
|
|
9005
9005
|
switch (y) {
|
|
9006
9006
|
case "z":
|
|
9007
9007
|
if (g >= d)
|
|
@@ -9051,11 +9051,11 @@ var ft = {
|
|
|
9051
9051
|
break;
|
|
9052
9052
|
case "c":
|
|
9053
9053
|
case "s":
|
|
9054
|
-
C = a.x, _ = a.y, l || (l = new fe()), /c/i.test(y) ? (R = parseFloat(c[0]), F = parseFloat(c[1]), b = parseFloat(c[2]), k = parseFloat(c[3]), x = parseFloat(c[4]),
|
|
9054
|
+
C = a.x, _ = a.y, l || (l = new fe()), /c/i.test(y) ? (R = parseFloat(c[0]), F = parseFloat(c[1]), b = parseFloat(c[2]), k = parseFloat(c[3]), x = parseFloat(c[4]), $ = parseFloat(c[5])) : (B = il(a, l, r), R = B.x, F = B.y, b = parseFloat(c[0]), k = parseFloat(c[1]), x = parseFloat(c[2]), $ = parseFloat(c[3])), r && (R += C, F += _, b += C, k += _, x += C, $ += _), a.controls.right.set(R - a.x, F - a.y), f = new Ne(
|
|
9055
9055
|
x,
|
|
9056
|
-
|
|
9056
|
+
$,
|
|
9057
9057
|
b - x,
|
|
9058
|
-
k -
|
|
9058
|
+
k - $,
|
|
9059
9059
|
void 0,
|
|
9060
9060
|
void 0,
|
|
9061
9061
|
ge.curve
|
|
@@ -9063,21 +9063,21 @@ var ft = {
|
|
|
9063
9063
|
break;
|
|
9064
9064
|
case "t":
|
|
9065
9065
|
case "q":
|
|
9066
|
-
C = a.x, _ = a.y, l || (l = new fe()), /q/i.test(y) ? (R = parseFloat(c[0]), F = parseFloat(c[1]), b = parseFloat(c[0]), k = parseFloat(c[1]), x = parseFloat(c[2]),
|
|
9066
|
+
C = a.x, _ = a.y, l || (l = new fe()), /q/i.test(y) ? (R = parseFloat(c[0]), F = parseFloat(c[1]), b = parseFloat(c[0]), k = parseFloat(c[1]), x = parseFloat(c[2]), $ = parseFloat(c[3])) : (B = il(a, l, r), R = B.x, F = B.y, b = B.x, k = B.y, x = parseFloat(c[0]), $ = parseFloat(c[1])), r && (R += C, F += _, b += C, k += _, x += C, $ += _), a.controls.right.set(
|
|
9067
9067
|
(R - a.x) * 0.33,
|
|
9068
9068
|
(F - a.y) * 0.33
|
|
9069
9069
|
), f = new Ne(
|
|
9070
9070
|
x,
|
|
9071
|
-
|
|
9071
|
+
$,
|
|
9072
9072
|
b - x,
|
|
9073
|
-
k -
|
|
9073
|
+
k - $,
|
|
9074
9074
|
void 0,
|
|
9075
9075
|
void 0,
|
|
9076
9076
|
ge.curve
|
|
9077
9077
|
), a = f, l = f.controls.left;
|
|
9078
9078
|
break;
|
|
9079
9079
|
case "a":
|
|
9080
|
-
C = a.x, _ = a.y, V = parseFloat(c[0]), oe = parseFloat(c[1]), ue = parseFloat(c[2]), Y = parseFloat(c[3]), K = parseFloat(c[4]), x = parseFloat(c[5]),
|
|
9080
|
+
C = a.x, _ = a.y, V = parseFloat(c[0]), oe = parseFloat(c[1]), ue = parseFloat(c[2]), Y = parseFloat(c[3]), K = parseFloat(c[4]), x = parseFloat(c[5]), $ = parseFloat(c[6]), r && (x += C, $ += _), Z = new Ne(x, $), Z.command = ge.arc, Z.rx = V, Z.ry = oe, Z.xAxisRotation = ue, Z.largeArcFlag = Y, Z.sweepFlag = K, f = Z, a = Z, l = void 0;
|
|
9081
9081
|
break;
|
|
9082
9082
|
}
|
|
9083
9083
|
f && (Array.isArray(f) ? i = i.concat(f) : i.push(f));
|
|
@@ -9369,7 +9369,7 @@ var Nh = rc, ru = {
|
|
|
9369
9369
|
},
|
|
9370
9370
|
path: {
|
|
9371
9371
|
render: function(t, e, n) {
|
|
9372
|
-
let i, s, r, o, a, l, c, u, d, h, g, f, m, v, p, y, C, _, R, F, b, k, x,
|
|
9372
|
+
let i, s, r, o, a, l, c, u, d, h, g, f, m, v, p, y, C, _, R, F, b, k, x, $, B, O, L, Z, V, oe, ue, Y, K, G;
|
|
9373
9373
|
if (G = this.parent && this.parent._renderer ? this.parent._renderer.opacity : 1, V = this._mask, oe = this._clip, a = this._opacity * (G || 1), l = this._visible, !e && (!l || oe || a === 0))
|
|
9374
9374
|
return this;
|
|
9375
9375
|
if (he.isFunction(this._renderer.onBeforeRender) && this._renderer.onBeforeRender(), this._update(), i = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, c = this._cap, u = this._join, d = this._miter, h = this._closed, g = this._renderer.vertices, f = g.length, m = f - 1, ue = Zr(i), K = this.dashes, ue || (t.save(), t.transform(
|
|
@@ -9421,7 +9421,7 @@ var Nh = rc, ru = {
|
|
|
9421
9421
|
);
|
|
9422
9422
|
break;
|
|
9423
9423
|
case ge.curve:
|
|
9424
|
-
v = h ? Mn(ce - 1, f) : Math.max(ce - 1, 0), p = g[v], x = p.controls && p.controls.right || fe.zero,
|
|
9424
|
+
v = h ? Mn(ce - 1, f) : Math.max(ce - 1, 0), p = g[v], x = p.controls && p.controls.right || fe.zero, $ = y.controls && y.controls.left || fe.zero, p._relative ? (b = x.x + p.x, k = x.y + p.y) : (b = x.x, k = x.y), y._relative ? (R = $.x + y.x, F = $.y + y.y) : (R = $.x, F = $.y), t.bezierCurveTo(b, k, R, F, L, Z), ce >= m && h && (C = _, B = y.controls && y.controls.right || fe.zero, O = C.controls && C.controls.left || fe.zero, y._relative ? (b = B.x + y.x, k = B.y + y.y) : (b = B.x, k = B.y), C._relative ? (R = O.x + C.x, F = O.y + C.y) : (R = O.x, F = O.y), L = C.x, Z = C.y, t.bezierCurveTo(b, k, R, F, L, Z));
|
|
9425
9425
|
break;
|
|
9426
9426
|
case ge.line:
|
|
9427
9427
|
t.lineTo(L, Z);
|
|
@@ -9475,7 +9475,7 @@ var Nh = rc, ru = {
|
|
|
9475
9475
|
return this;
|
|
9476
9476
|
he.isFunction(this._renderer.onBeforeRender) && this._renderer.onBeforeRender(), this._update();
|
|
9477
9477
|
const l = this._matrix.elements, c = this._stroke, u = this._linewidth, d = this._fill, h = this._decoration, g = this._direction, f = Zr(l), m = d._renderer && d._renderer.offset && c._renderer && c._renderer.offset, v = this.dashes, p = Ye.alignments[this._alignment] || this._alignment, y = Ye.baselines[this._baseline] || this._baseline;
|
|
9478
|
-
let C, _, R, F, b, k, x,
|
|
9478
|
+
let C, _, R, F, b, k, x, $, B, O, L;
|
|
9479
9479
|
if (f || (t.save(), t.transform(
|
|
9480
9480
|
l[0],
|
|
9481
9481
|
l[3],
|
|
@@ -9546,16 +9546,16 @@ var Nh = rc, ru = {
|
|
|
9546
9546
|
switch (p) {
|
|
9547
9547
|
case "left":
|
|
9548
9548
|
case "start":
|
|
9549
|
-
|
|
9549
|
+
$ = 0, O = Z.width;
|
|
9550
9550
|
break;
|
|
9551
9551
|
case "right":
|
|
9552
9552
|
case "end":
|
|
9553
|
-
|
|
9553
|
+
$ = -Z.width, O = 0;
|
|
9554
9554
|
break;
|
|
9555
9555
|
default:
|
|
9556
|
-
|
|
9556
|
+
$ = -Z.width / 2, O = Z.width / 2;
|
|
9557
9557
|
}
|
|
9558
|
-
t.lineWidth = Math.max(Math.floor(this._size / 15), 1), t.strokeStyle = t.fillStyle, t.beginPath(), t.moveTo(
|
|
9558
|
+
t.lineWidth = Math.max(Math.floor(this._size / 15), 1), t.strokeStyle = t.fillStyle, t.beginPath(), t.moveTo($, B), t.lineTo(O, L), t.stroke();
|
|
9559
9559
|
}
|
|
9560
9560
|
return f || t.restore(), a && !n && t.clip(), v && v.length > 0 && t.setLineDash(Fa), he.isFunction(this._renderer.onAfterRender) && this._renderer.onAfterRender(), this.flagReset();
|
|
9561
9561
|
}
|
|
@@ -9616,19 +9616,19 @@ var Nh = rc, ru = {
|
|
|
9616
9616
|
const C = v * m + p * f, _ = (v * p - C) / C;
|
|
9617
9617
|
let R = Co(al(0, _));
|
|
9618
9618
|
r === o && (R = -R);
|
|
9619
|
-
const F = R * i * g / s, b = -R * s * h / i, k = Gr(a) * F - Kr(a) * b + (e + l) / 2, x = Kr(a) * F + Gr(a) * b + (n + c) / 2,
|
|
9619
|
+
const F = R * i * g / s, b = -R * s * h / i, k = Gr(a) * F - Kr(a) * b + (e + l) / 2, x = Kr(a) * F + Gr(a) * b + (n + c) / 2, $ = au(1, 0, (h - F) / i, (g - b) / s), B = au(
|
|
9620
9620
|
(h - F) / i,
|
|
9621
9621
|
(g - b) / s,
|
|
9622
9622
|
(-h - F) / i,
|
|
9623
9623
|
(-g - b) / s
|
|
9624
|
-
) % en, O =
|
|
9624
|
+
) % en, O = $ + B;
|
|
9625
9625
|
$0(
|
|
9626
9626
|
t,
|
|
9627
9627
|
k,
|
|
9628
9628
|
x,
|
|
9629
9629
|
i,
|
|
9630
9630
|
s,
|
|
9631
|
-
|
|
9631
|
+
$,
|
|
9632
9632
|
O,
|
|
9633
9633
|
o === 0,
|
|
9634
9634
|
a
|
|
@@ -9731,24 +9731,24 @@ var _e = {
|
|
|
9731
9731
|
let n = t.length, i = n - 1, s, r = "";
|
|
9732
9732
|
for (let o = 0; o < n; o++) {
|
|
9733
9733
|
const a = t[o], l = e ? Mn(o - 1, n) : Math.max(o - 1, 0), c = t[l];
|
|
9734
|
-
let u, d, h, g, f, m, v, p, y, C, _, R, F, b, k, x = it(a.x),
|
|
9734
|
+
let u, d, h, g, f, m, v, p, y, C, _, R, F, b, k, x = it(a.x), $ = it(a.y);
|
|
9735
9735
|
switch (a.command) {
|
|
9736
9736
|
case ge.close:
|
|
9737
9737
|
u = ge.close;
|
|
9738
9738
|
break;
|
|
9739
9739
|
case ge.arc:
|
|
9740
|
-
_ = a.rx, R = a.ry, F = a.xAxisRotation, b = a.largeArcFlag, k = a.sweepFlag, u = ge.arc + " " + _ + " " + R + " " + F + " " + b + " " + k + " " + x + " " +
|
|
9740
|
+
_ = a.rx, R = a.ry, F = a.xAxisRotation, b = a.largeArcFlag, k = a.sweepFlag, u = ge.arc + " " + _ + " " + R + " " + F + " " + b + " " + k + " " + x + " " + $;
|
|
9741
9741
|
break;
|
|
9742
9742
|
case ge.curve:
|
|
9743
|
-
v = c.controls && c.controls.right || fe.zero, p = a.controls && a.controls.left || fe.zero, c.relative ? (h = it(v.x + c.x), g = it(v.y + c.y)) : (h = it(v.x), g = it(v.y)), a.relative ? (f = it(p.x + a.x), m = it(p.y + a.y)) : (f = it(p.x), m = it(p.y)), u = (o === 0 ? ge.move : ge.curve) + " " + h + " " + g + " " + f + " " + m + " " + x + " " +
|
|
9743
|
+
v = c.controls && c.controls.right || fe.zero, p = a.controls && a.controls.left || fe.zero, c.relative ? (h = it(v.x + c.x), g = it(v.y + c.y)) : (h = it(v.x), g = it(v.y)), a.relative ? (f = it(p.x + a.x), m = it(p.y + a.y)) : (f = it(p.x), m = it(p.y)), u = (o === 0 ? ge.move : ge.curve) + " " + h + " " + g + " " + f + " " + m + " " + x + " " + $;
|
|
9744
9744
|
break;
|
|
9745
9745
|
case ge.move:
|
|
9746
|
-
s = a, u = ge.move + " " + x + " " +
|
|
9746
|
+
s = a, u = ge.move + " " + x + " " + $;
|
|
9747
9747
|
break;
|
|
9748
9748
|
default:
|
|
9749
|
-
u = a.command + " " + x + " " +
|
|
9749
|
+
u = a.command + " " + x + " " + $;
|
|
9750
9750
|
}
|
|
9751
|
-
o >= i && e && (a.command === ge.curve && (d = s, y = a.controls && a.controls.right || a, C = d.controls && d.controls.left || d, a.relative ? (h = it(y.x + a.x), g = it(y.y + a.y)) : (h = it(y.x), g = it(y.y)), d.relative ? (f = it(C.x + d.x), m = it(C.y + d.y)) : (f = it(C.x), m = it(C.y)), x = it(d.x),
|
|
9751
|
+
o >= i && e && (a.command === ge.curve && (d = s, y = a.controls && a.controls.right || a, C = d.controls && d.controls.left || d, a.relative ? (h = it(y.x + a.x), g = it(y.y + a.y)) : (h = it(y.x), g = it(y.y)), d.relative ? (f = it(C.x + d.x), m = it(C.y + d.y)) : (f = it(C.x), m = it(C.y)), x = it(d.x), $ = it(d.y), u += " C " + h + " " + g + " " + f + " " + m + " " + x + " " + $), a.command !== ge.close && (u += " Z")), r += u + " ";
|
|
9752
9752
|
}
|
|
9753
9753
|
return r;
|
|
9754
9754
|
},
|
|
@@ -10157,7 +10157,7 @@ var In = {
|
|
|
10157
10157
|
path: {
|
|
10158
10158
|
updateCanvas: function(t, e) {
|
|
10159
10159
|
let n, i, s, r, o, a, l, c, u, d, h, g, f, m;
|
|
10160
|
-
const v = e._renderer.vertices, p = this.canvas, y = this.ctx, C = t.renderer.ratio, _ = lu.copy(e._renderer.scale).multiply(C), R = e._stroke, F = e._linewidth, b = e._fill, k = e._renderer.opacity || e._opacity, x = e._cap,
|
|
10160
|
+
const v = e._renderer.vertices, p = this.canvas, y = this.ctx, C = t.renderer.ratio, _ = lu.copy(e._renderer.scale).multiply(C), R = e._stroke, F = e._linewidth, b = e._fill, k = e._renderer.opacity || e._opacity, x = e._cap, $ = e._join, B = e._miter, O = e._closed, L = e.dashes, Z = v.length, V = Z - 1;
|
|
10161
10161
|
p.width = Math.max(
|
|
10162
10162
|
Math.ceil(e._renderer.rect.width * _.x),
|
|
10163
10163
|
1
|
|
@@ -10184,7 +10184,7 @@ var In = {
|
|
|
10184
10184
|
);
|
|
10185
10185
|
Ae[ee].render.call(R, y, e), y.strokeStyle = R._renderer.effect;
|
|
10186
10186
|
}
|
|
10187
|
-
F && (y.lineWidth = ui(e)), B && (y.miterLimit = B),
|
|
10187
|
+
F && (y.lineWidth = ui(e)), B && (y.miterLimit = B), $ && (y.lineJoin = $), !O && x && (y.lineCap = x);
|
|
10188
10188
|
}
|
|
10189
10189
|
typeof k == "number" && (y.globalAlpha = k), L && L.length > 0 && (y.lineDashOffset = L.offset || 0, y.setLineDash(L));
|
|
10190
10190
|
let K, G, X, U, te, ie, N, Q;
|
|
@@ -10343,7 +10343,7 @@ var In = {
|
|
|
10343
10343
|
1
|
|
10344
10344
|
);
|
|
10345
10345
|
const g = e._renderer.rect.centroid, f = g.x, m = g.y;
|
|
10346
|
-
let v, p, y, C, _, R, F, b, k, x,
|
|
10346
|
+
let v, p, y, C, _, R, F, b, k, x, $;
|
|
10347
10347
|
const B = l._renderer && l._renderer.offset && o._renderer && o._renderer.offset;
|
|
10348
10348
|
if (i.clearRect(0, 0, n.width, n.height), B || (i.font = [
|
|
10349
10349
|
e._style,
|
|
@@ -10386,13 +10386,13 @@ var In = {
|
|
|
10386
10386
|
const O = i.measureText(e.value);
|
|
10387
10387
|
switch (d) {
|
|
10388
10388
|
case "underline":
|
|
10389
|
-
k = O.actualBoundingBoxDescent,
|
|
10389
|
+
k = O.actualBoundingBoxDescent, $ = O.actualBoundingBoxDescent;
|
|
10390
10390
|
break;
|
|
10391
10391
|
case "strikethrough":
|
|
10392
|
-
k = 0,
|
|
10392
|
+
k = 0, $ = 0;
|
|
10393
10393
|
break;
|
|
10394
10394
|
}
|
|
10395
|
-
b = -O.width / 2, x = O.width / 2, i.lineWidth = Math.max(Math.floor(e._size / 15), 1), i.strokeStyle = i.fillStyle, i.beginPath(), i.moveTo(b, k), i.lineTo(x,
|
|
10395
|
+
b = -O.width / 2, x = O.width / 2, i.lineWidth = Math.max(Math.floor(e._size / 15), 1), i.strokeStyle = i.fillStyle, i.beginPath(), i.moveTo(b, k), i.lineTo(x, $), i.stroke();
|
|
10396
10396
|
}
|
|
10397
10397
|
i.restore();
|
|
10398
10398
|
},
|
|
@@ -13771,9 +13771,9 @@ const J0 = Math.cos, ey = Math.sin, ku = Math.tan, Ba = [], on = class on extend
|
|
|
13771
13771
|
static Multiply(n, i, s) {
|
|
13772
13772
|
if (i.length <= 3) {
|
|
13773
13773
|
const b = n;
|
|
13774
|
-
let k, x,
|
|
13774
|
+
let k, x, $;
|
|
13775
13775
|
const B = i[0] || 0, O = i[1] || 0, L = i[2] || 0;
|
|
13776
|
-
return k = b[0] * B + b[1] * O + b[2] * L, x = b[3] * B + b[4] * O + b[5] * L,
|
|
13776
|
+
return k = b[0] * B + b[1] * O + b[2] * L, x = b[3] * B + b[4] * O + b[5] * L, $ = b[6] * B + b[7] * O + b[8] * L, [k, x, $];
|
|
13777
13777
|
}
|
|
13778
13778
|
const r = n[0], o = n[1], a = n[2], l = n[3], c = n[4], u = n[5], d = n[6], h = n[7], g = n[8], f = i[0], m = i[1], v = i[2], p = i[3], y = i[4], C = i[5], _ = i[6], R = i[7], F = i[8];
|
|
13779
13779
|
return s = s || new cu(9), s[0] = r * f + o * p + a * _, s[1] = r * m + o * y + a * R, s[2] = r * v + o * C + a * F, s[3] = l * f + c * p + u * _, s[4] = l * m + c * y + u * R, s[5] = l * v + c * C + u * F, s[6] = d * f + h * p + g * _, s[7] = d * m + h * y + g * R, s[8] = d * v + h * C + g * F, s;
|
|
@@ -13872,8 +13872,8 @@ const J0 = Math.cos, ey = Math.sin, ku = Math.tan, Ba = [], on = class on extend
|
|
|
13872
13872
|
const V = o[0] * n + o[1] * i + o[2] * s, oe = o[3] * n + o[4] * i + o[5] * s, ue = o[6] * n + o[7] * i + o[8] * s;
|
|
13873
13873
|
return [V, oe, ue];
|
|
13874
13874
|
}
|
|
13875
|
-
const d = this.elements, h = [n, i, s, r, o, a, l, c, u], g = d[0], f = d[1], m = d[2], v = d[3], p = d[4], y = d[5], C = d[6], _ = d[7], R = d[8], F = h[0], b = h[1], k = h[2], x = h[3],
|
|
13876
|
-
return this.elements[0] = g * F + f * x + m * O, this.elements[1] = g * b + f *
|
|
13875
|
+
const d = this.elements, h = [n, i, s, r, o, a, l, c, u], g = d[0], f = d[1], m = d[2], v = d[3], p = d[4], y = d[5], C = d[6], _ = d[7], R = d[8], F = h[0], b = h[1], k = h[2], x = h[3], $ = h[4], B = h[5], O = h[6], L = h[7], Z = h[8];
|
|
13876
|
+
return this.elements[0] = g * F + f * x + m * O, this.elements[1] = g * b + f * $ + m * L, this.elements[2] = g * k + f * B + m * Z, this.elements[3] = v * F + p * x + y * O, this.elements[4] = v * b + p * $ + y * L, this.elements[5] = v * k + p * B + y * Z, this.elements[6] = C * F + _ * x + R * O, this.elements[7] = C * b + _ * $ + R * L, this.elements[8] = C * k + _ * B + R * Z, this.trigger(de.Types.change);
|
|
13877
13877
|
}
|
|
13878
13878
|
/**
|
|
13879
13879
|
* @name Two.Matrix#inverse
|
|
@@ -14675,7 +14675,7 @@ const Ns = Math.min, Hs = Math.max, ty = Math.ceil, ny = Math.floor, iy = new Be
|
|
|
14675
14675
|
return F;
|
|
14676
14676
|
} else return b;
|
|
14677
14677
|
y = b.controls && b.controls.right, p = F.controls && F.controls.left, l = b.x, g = b.y, c = (y || b).x, f = (y || b).y, u = (p || F).x, m = (p || F).y, d = F.x, v = F.y, y && b.relative && (c += b.x, f += b.y), p && F.relative && (u += F.x, m += F.y), a = $o(n, l, c, u, d), h = $o(n, g, f, m, v);
|
|
14678
|
-
const k = zn(l, c, n), x = zn(g, f, n),
|
|
14678
|
+
const k = zn(l, c, n), x = zn(g, f, n), $ = zn(c, u, n), B = zn(f, m, n), O = zn(u, d, n), L = zn(m, v, n), Z = zn(k, $, n), V = zn(x, B, n), oe = zn($, O, n), ue = zn(B, L, n);
|
|
14679
14679
|
return Qe.isObject(i) ? (i.x = a, i.y = h, i instanceof Ge && (i.controls.left.x = Z, i.controls.left.y = V, i.controls.right.x = oe, i.controls.right.y = ue, (typeof i.relative != "boolean" || i.relative) && (i.controls.left.x -= a, i.controls.left.y -= h, i.controls.right.x -= a, i.controls.right.y -= h)), i.t = n, i) : (o = new Ge(
|
|
14680
14680
|
a,
|
|
14681
14681
|
h,
|
|
@@ -18726,7 +18726,7 @@ const ht = {
|
|
|
18726
18726
|
};
|
|
18727
18727
|
function vy(t, e) {
|
|
18728
18728
|
return w(), A("svg", py, [...e[0] || (e[0] = [
|
|
18729
|
-
|
|
18729
|
+
P("path", {
|
|
18730
18730
|
fill: "currentColor",
|
|
18731
18731
|
d: "m289.94 256l95-95A24 24 0 0 0 351 127l-95 95l-95-95a24 24 0 0 0-34 34l95 95l-95 95a24 24 0 1 0 34 34l95-95l95 95a24 24 0 0 0 34-34Z"
|
|
18732
18732
|
}, null, -1)
|
|
@@ -18783,7 +18783,7 @@ const Zo = He({ name: "ion-close", render: vy }), yy = { class: "mr-3 flex flex-
|
|
|
18783
18783
|
class: "max-h-[19rem] md:max-h-[40rem] w-auto"
|
|
18784
18784
|
}, {
|
|
18785
18785
|
default: I(() => [
|
|
18786
|
-
|
|
18786
|
+
P("div", yy, [
|
|
18787
18787
|
(w(!0), A(be, null, Ct(t.settings.allTemplates, (d, h) => (w(), A("div", {
|
|
18788
18788
|
key: `${d.id}-${h}`,
|
|
18789
18789
|
class: "group relative"
|
|
@@ -18793,12 +18793,12 @@ const Zo = He({ name: "ion-close", render: vy }), yy = { class: "mr-3 flex flex-
|
|
|
18793
18793
|
placement: "right"
|
|
18794
18794
|
}, {
|
|
18795
18795
|
trigger: I(() => [
|
|
18796
|
-
|
|
18796
|
+
P("div", {
|
|
18797
18797
|
class: je(["relative h-10 w-24 shrink-0 rounded-md border-2 border-solid border-slate-200", { "!border-green-700": h === t.selectTemplateIndex }]),
|
|
18798
18798
|
onClick: (g) => o("template:select", h)
|
|
18799
18799
|
}, [
|
|
18800
|
-
|
|
18801
|
-
|
|
18800
|
+
P("div", _y, [
|
|
18801
|
+
P("div", {
|
|
18802
18802
|
ref_for: !0,
|
|
18803
18803
|
ref: d.isCustom && d.id !== -1 ? "drawing-custom-template-containers" : "drawing-template-containers",
|
|
18804
18804
|
class: "kozyrek-preview h-full"
|
|
@@ -18966,7 +18966,7 @@ const Zo = He({ name: "ion-close", render: vy }), yy = { class: "mr-3 flex flex-
|
|
|
18966
18966
|
const U = K.vertices.length - 1, te = Math.atan2(K.vertices[0].y - K.vertices[U].y, K.vertices[0].x - K.vertices[U].x) * 180 / Math.PI, ie = K.vertices[0].x + (K.vertices[U].x - K.vertices[0].x) / 2 - 8 * Math.sin(te * Math.PI / 180), N = K.vertices[0].y + (K.vertices[U].y - K.vertices[0].y) / 2 - 8 * Math.cos(te * Math.PI / 180);
|
|
18967
18967
|
Y.position.x = ie + 10, Y.position.y = N - 10, Y.rotation = -0.5, X && (X.position.x = K.vertices[0].x + 25, X.position.y = K.vertices[0].y - 25);
|
|
18968
18968
|
});
|
|
18969
|
-
},
|
|
18969
|
+
}, $ = (Y, K, G, X, U = !1) => {
|
|
18970
18970
|
var ot;
|
|
18971
18971
|
if (Y.clear(), G.length === 0) {
|
|
18972
18972
|
Y.update();
|
|
@@ -19001,10 +19001,10 @@ const Zo = He({ name: "ion-close", render: vy }), yy = { class: "mr-3 flex flex-
|
|
|
19001
19001
|
width: Y.scrollWidth,
|
|
19002
19002
|
height: Y.scrollHeight
|
|
19003
19003
|
});
|
|
19004
|
-
G.appendTo(Y),
|
|
19004
|
+
G.appendTo(Y), $(G, [], K.points, [], !0);
|
|
19005
19005
|
}
|
|
19006
19006
|
}, O = () => {
|
|
19007
|
-
l &&
|
|
19007
|
+
l && $(l, h.value, u.value, g.value, !1);
|
|
19008
19008
|
}, L = (Y) => Y * (180 / Math.PI), Z = (Y, K) => {
|
|
19009
19009
|
const G = Y[1].x - Y[0].x, X = Y[1].y - Y[0].y, U = K[1].x - K[0].x, te = K[1].y - K[0].y;
|
|
19010
19010
|
let ie = Math.atan2(G * te - X * U, G * U + X * te);
|
|
@@ -19072,8 +19072,8 @@ const Zo = He({ name: "ion-close", render: vy }), yy = { class: "mr-3 flex flex-
|
|
|
19072
19072
|
onInitDrawTemplate: B,
|
|
19073
19073
|
onRemoveCustomTemplate: ue
|
|
19074
19074
|
}, null, 8, ["select-template-index", "settings"]),
|
|
19075
|
-
|
|
19076
|
-
|
|
19075
|
+
P("div", Sy, [
|
|
19076
|
+
P("div", $y, null, 512)
|
|
19077
19077
|
])
|
|
19078
19078
|
]));
|
|
19079
19079
|
}
|
|
@@ -19304,37 +19304,37 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19304
19304
|
length: {}
|
|
19305
19305
|
}), d = W(0), h = Xe("kozyrek-configurator-params-form"), g = (x = 0) => {
|
|
19306
19306
|
var B;
|
|
19307
|
-
const
|
|
19308
|
-
|
|
19307
|
+
const $ = (B = l.value.allTemplates) == null ? void 0 : B.at(x);
|
|
19308
|
+
$ !== void 0 && (d.value = x, a.value.configuratorParams.linesWidths = $.points.map((O) => dt(O) ? O[0] : O.width), a.value.configuratorParams.linesAngles = $.points.map((O) => dt(O) ? O[1] : O.angle), C()), p(a.value.configuratorParams);
|
|
19309
19309
|
}, f = async () => {
|
|
19310
19310
|
const x = prompt("Введите название шаблона:");
|
|
19311
19311
|
if (!x)
|
|
19312
19312
|
return;
|
|
19313
19313
|
o.value = !0;
|
|
19314
|
-
const
|
|
19314
|
+
const $ = {
|
|
19315
19315
|
label: x,
|
|
19316
19316
|
points: a.value.configuratorParams.linesWidths.map((O, L) => [
|
|
19317
19317
|
O,
|
|
19318
19318
|
a.value.configuratorParams.linesAngles[L]
|
|
19319
19319
|
])
|
|
19320
19320
|
}, B = (O) => {
|
|
19321
|
-
O && (l.value.addCustomTemplate(
|
|
19321
|
+
O && (l.value.addCustomTemplate($), d.value = l.value.allTemplates.length - 2), o.value = !1;
|
|
19322
19322
|
};
|
|
19323
|
-
n.eventEmitter.emit("configurator:create-template", { category: n.cartItem.category, template:
|
|
19324
|
-
}, m = async (x,
|
|
19323
|
+
n.eventEmitter.emit("configurator:create-template", { category: n.cartItem.category, template: $, callback: B });
|
|
19324
|
+
}, m = async (x, $) => {
|
|
19325
19325
|
var L;
|
|
19326
19326
|
const B = (L = l.value.allTemplates) == null ? void 0 : L.at(x);
|
|
19327
19327
|
if (!B || !B.isCustom)
|
|
19328
19328
|
return;
|
|
19329
19329
|
const O = (Z) => {
|
|
19330
|
-
Z && (l.value.removeCustomTemplate(B.id), g()),
|
|
19330
|
+
Z && (l.value.removeCustomTemplate(B.id), g()), $ == null || $();
|
|
19331
19331
|
};
|
|
19332
19332
|
n.eventEmitter.emit("configurator:remove-template", { category: n.cartItem.category, templateId: B.id, callback: O });
|
|
19333
19333
|
}, v = () => {
|
|
19334
19334
|
l.value.showOnlyTemplates || l.value.allowSaveTemplates && (d.value = l.value.allTemplates.length - 1);
|
|
19335
19335
|
}, p = async (x) => {
|
|
19336
|
-
var
|
|
19337
|
-
a.value.product = new Kn(), (B = (
|
|
19336
|
+
var $, B;
|
|
19337
|
+
a.value.product = new Kn(), (B = ($ = h.value) == null ? void 0 : $.formReference) == null || B.validate((O) => {
|
|
19338
19338
|
O || (C(), s.value = !0, n.eventEmitter.emit("configurator:search-product", {
|
|
19339
19339
|
category: n.cartItem.category,
|
|
19340
19340
|
params: x,
|
|
@@ -19349,8 +19349,8 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19349
19349
|
}));
|
|
19350
19350
|
}).catch($t);
|
|
19351
19351
|
}, y = async () => {
|
|
19352
|
-
var x,
|
|
19353
|
-
(
|
|
19352
|
+
var x, $;
|
|
19353
|
+
($ = (x = h.value) == null ? void 0 : x.formReference) == null || $.validate((B) => {
|
|
19354
19354
|
B || (r.value = !0, i("submit", a.value, u.value, () => {
|
|
19355
19355
|
r.value = !1, gt(() => {
|
|
19356
19356
|
var O, L;
|
|
@@ -19363,18 +19363,18 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19363
19363
|
quantity: u.value.quantity,
|
|
19364
19364
|
marker: u.value.marker
|
|
19365
19365
|
};
|
|
19366
|
-
a.value.configuratorParams.linesWidths.forEach((
|
|
19366
|
+
a.value.configuratorParams.linesWidths.forEach(($, B) => {
|
|
19367
19367
|
x[`lines_widths[${B + 1}]`] = {}, x[`lines_angles[${B + 1}]`] = {};
|
|
19368
19368
|
}), u.value = x;
|
|
19369
19369
|
}, _ = (x) => {
|
|
19370
|
-
c.value.linesWidths = x.map((
|
|
19370
|
+
c.value.linesWidths = x.map(($) => $.width), c.value.linesAngles = x.map(($) => $.angle);
|
|
19371
19371
|
}, R = (x) => {
|
|
19372
19372
|
a.value.configuratorParams.linesWidths = c.value.linesWidths, a.value.configuratorParams.linesAngles = c.value.linesAngles, C(), v(), p(a.value.configuratorParams);
|
|
19373
|
-
}, F = (x,
|
|
19374
|
-
c.value.linesWidths = x, c.value.linesAngles =
|
|
19373
|
+
}, F = (x, $) => {
|
|
19374
|
+
c.value.linesWidths = x, c.value.linesAngles = $;
|
|
19375
19375
|
}, b = (x) => {
|
|
19376
|
-
const
|
|
19377
|
-
a.value.configuratorParams.linesWidths.splice(x + 1, 0,
|
|
19376
|
+
const $ = a.value.configuratorParams.linesWidths.length > 1 ? l.value.minLineWidth : l.value.stripMinWidth, B = 0;
|
|
19377
|
+
a.value.configuratorParams.linesWidths.splice(x + 1, 0, $), a.value.configuratorParams.linesAngles.splice(x + 1, 0, B), c.value.linesWidths = [...a.value.configuratorParams.linesWidths], c.value.linesAngles = [...a.value.configuratorParams.linesAngles], C(), v(), p(a.value.configuratorParams);
|
|
19378
19378
|
}, k = (x) => {
|
|
19379
19379
|
a.value.configuratorParams.linesWidths.length <= 1 || (a.value.configuratorParams.linesWidths.splice(x, 1), a.value.configuratorParams.linesAngles.splice(x, 1), c.value.linesWidths = [...a.value.configuratorParams.linesWidths], c.value.linesAngles = [...a.value.configuratorParams.linesAngles], C(), v(), p(a.value.configuratorParams));
|
|
19380
19380
|
};
|
|
@@ -19385,21 +19385,21 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19385
19385
|
(x) => {
|
|
19386
19386
|
a.value = new vt(x), g();
|
|
19387
19387
|
}
|
|
19388
|
-
), (x,
|
|
19388
|
+
), (x, $) => {
|
|
19389
19389
|
const B = Oe;
|
|
19390
19390
|
return w(), A("div", Fy, [
|
|
19391
19391
|
t.settings.allowShowTable ? (w(), ne(B, {
|
|
19392
19392
|
key: 0,
|
|
19393
19393
|
type: "tertiary",
|
|
19394
19394
|
class: "self-end",
|
|
19395
|
-
onClick:
|
|
19395
|
+
onClick: $[0] || ($[0] = (O) => i("click:view-switch"))
|
|
19396
19396
|
}, {
|
|
19397
|
-
default: I(() => [
|
|
19397
|
+
default: I(() => [...$[3] || ($[3] = [
|
|
19398
19398
|
J(" Показать в виде списка ", -1)
|
|
19399
19399
|
])]),
|
|
19400
19400
|
_: 1
|
|
19401
19401
|
})) : H("", !0),
|
|
19402
|
-
|
|
19402
|
+
P("div", By, [
|
|
19403
19403
|
z(Ty, {
|
|
19404
19404
|
value: a.value,
|
|
19405
19405
|
"select-template-index": d.value,
|
|
@@ -19413,7 +19413,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19413
19413
|
z(Bv, {
|
|
19414
19414
|
ref: "kozyrek-configurator-params-form",
|
|
19415
19415
|
value: a.value,
|
|
19416
|
-
"onUpdate:value":
|
|
19416
|
+
"onUpdate:value": $[1] || ($[1] = (O) => a.value = O),
|
|
19417
19417
|
"preview-params": c.value,
|
|
19418
19418
|
validation: u.value,
|
|
19419
19419
|
settings: l.value,
|
|
@@ -19421,7 +19421,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19421
19421
|
"is-product-searching": s.value,
|
|
19422
19422
|
"select-template-index": d.value,
|
|
19423
19423
|
class: "col-span-2",
|
|
19424
|
-
"onUpdate:params":
|
|
19424
|
+
"onUpdate:params": $[2] || ($[2] = (O) => p(O)),
|
|
19425
19425
|
"onUpdate:preview": F,
|
|
19426
19426
|
onSubmit: y,
|
|
19427
19427
|
"onClick:saveTemplate": f,
|
|
@@ -19452,22 +19452,22 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19452
19452
|
return (r, o) => {
|
|
19453
19453
|
const a = Oe;
|
|
19454
19454
|
return w(), A("div", Ey, [
|
|
19455
|
-
|
|
19456
|
-
o[1] || (o[1] =
|
|
19457
|
-
|
|
19455
|
+
P("div", Iy, [
|
|
19456
|
+
o[1] || (o[1] = P("div", { class: "window" }, null, -1)),
|
|
19457
|
+
P("div", {
|
|
19458
19458
|
class: je(["net", `net-${t.configuratorParams.netType}`])
|
|
19459
19459
|
}, null, 2),
|
|
19460
|
-
|
|
19460
|
+
P("div", {
|
|
19461
19461
|
class: je(["frame", `frame-${t.configuratorParams.color}`])
|
|
19462
19462
|
}, null, 2),
|
|
19463
19463
|
i.value ? (w(), A("div", {
|
|
19464
19464
|
key: 0,
|
|
19465
19465
|
class: je(["frame-crossbar", `frame-crossbar-${i.value}-${t.configuratorParams.color}`])
|
|
19466
19466
|
}, null, 2)) : H("", !0),
|
|
19467
|
-
|
|
19467
|
+
P("div", {
|
|
19468
19468
|
class: je(["mount", `mount-${t.configuratorParams.mountType}-${t.configuratorParams.color}`])
|
|
19469
19469
|
}, null, 2),
|
|
19470
|
-
|
|
19470
|
+
P("div", {
|
|
19471
19471
|
class: je(["cut-preview", `cut-preview-${t.configuratorParams.mountType}-${t.configuratorParams.color}`])
|
|
19472
19472
|
}, null, 2)
|
|
19473
19473
|
]),
|
|
@@ -19525,20 +19525,20 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19525
19525
|
marker: [ct.serverValidation(i.validation.marker.feedback)]
|
|
19526
19526
|
})), C = E(() => {
|
|
19527
19527
|
var L;
|
|
19528
|
-
const k = m.value, x = v.value, { quantity:
|
|
19529
|
-
if (!k || !x ||
|
|
19528
|
+
const k = m.value, x = v.value, { quantity: $ } = i.value, B = ((L = i.value.product) == null ? void 0 : L.costRub) || 0;
|
|
19529
|
+
if (!k || !x || !$ || B === 0)
|
|
19530
19530
|
return null;
|
|
19531
19531
|
const O = k * x / 1e6;
|
|
19532
|
-
return (B *
|
|
19532
|
+
return (B * $ * O).toLocaleString("ru-ru", { minimumFractionDigits: 2 });
|
|
19533
19533
|
}), _ = E(() => {
|
|
19534
|
-
const k = m.value, x = v.value,
|
|
19535
|
-
return
|
|
19534
|
+
const k = m.value, x = v.value, $ = !!(k && k >= i.settings.minWidth && k <= i.settings.maxWidths[u.value.configuratorParams.netType]), B = !!(x && x >= i.settings.minHeight && x <= i.settings.maxHeights[u.value.configuratorParams.netType]), O = !!(i.value.quantity && i.value.quantity > 0);
|
|
19535
|
+
return $ && B && O;
|
|
19536
19536
|
}), R = (k, x) => {
|
|
19537
19537
|
var O, L;
|
|
19538
|
-
const
|
|
19539
|
-
k && k in
|
|
19538
|
+
const $ = u.value.configuratorParams;
|
|
19539
|
+
k && k in $ && ($[k] = x);
|
|
19540
19540
|
const B = {
|
|
19541
|
-
|
|
19541
|
+
...$,
|
|
19542
19542
|
width: m.value ?? 0,
|
|
19543
19543
|
height: v.value ?? 0
|
|
19544
19544
|
};
|
|
@@ -19547,13 +19547,13 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19547
19547
|
!((V = a.value) != null && V.validationErrored) && !((oe = l.value) != null && oe.validationErrored) && B.height && B.width && s("update:params", B), F("configuratorParams", B);
|
|
19548
19548
|
});
|
|
19549
19549
|
}, F = (k, x) => {
|
|
19550
|
-
const
|
|
19551
|
-
|
|
19550
|
+
const $ = new vt(i.value);
|
|
19551
|
+
$[k] = x, k === "configuratorParams" && ($.product = new Kn()), s("update:value", $);
|
|
19552
19552
|
};
|
|
19553
19553
|
return we(
|
|
19554
19554
|
() => i.value,
|
|
19555
19555
|
(k) => {
|
|
19556
|
-
const x = tn(mn(k)),
|
|
19556
|
+
const x = tn(mn(k)), $ = x.configuratorParams.mountType, B = i.settings.widthOverlaps[$] ?? 0, O = i.settings.heightOverlaps[$] ?? 0;
|
|
19557
19557
|
x.configuratorParams.width && x.configuratorParams.width > 0 && (x.configuratorParams.width -= B), x.configuratorParams.height && x.configuratorParams.height > 0 && (x.configuratorParams.height -= O), u.value = x;
|
|
19558
19558
|
},
|
|
19559
19559
|
{ deep: !0 }
|
|
@@ -19570,7 +19570,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19570
19570
|
*/
|
|
19571
19571
|
formReference: o
|
|
19572
19572
|
}), (k, x) => {
|
|
19573
|
-
const
|
|
19573
|
+
const $ = Ei;
|
|
19574
19574
|
return w(), ne(M(Fs), {
|
|
19575
19575
|
ref: "form-reference",
|
|
19576
19576
|
model: u.value,
|
|
@@ -19650,7 +19650,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19650
19650
|
onClick: x[10] || (x[10] = (B) => s("click:instructions-toggle"))
|
|
19651
19651
|
}, {
|
|
19652
19652
|
default: I(() => [...x[26] || (x[26] = [
|
|
19653
|
-
|
|
19653
|
+
P("span", { class: "text-sm" }, "Руководство", -1)
|
|
19654
19654
|
])]),
|
|
19655
19655
|
_: 1
|
|
19656
19656
|
})
|
|
@@ -19695,7 +19695,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19695
19695
|
onClick: x[15] || (x[15] = (B) => s("click:instructions-toggle"))
|
|
19696
19696
|
}, {
|
|
19697
19697
|
default: I(() => [...x[27] || (x[27] = [
|
|
19698
|
-
|
|
19698
|
+
P("span", { class: "text-sm" }, "Руководство", -1)
|
|
19699
19699
|
])]),
|
|
19700
19700
|
_: 1
|
|
19701
19701
|
})
|
|
@@ -19757,7 +19757,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19757
19757
|
]),
|
|
19758
19758
|
_: 1
|
|
19759
19759
|
}),
|
|
19760
|
-
p.value ? (w(), ne(
|
|
19760
|
+
p.value ? (w(), ne($, {
|
|
19761
19761
|
key: 0,
|
|
19762
19762
|
checked: u.value.isAdditionalSale ?? !1,
|
|
19763
19763
|
"true-value": !0,
|
|
@@ -19778,10 +19778,10 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19778
19778
|
}, null, 8, ["is-product-searching", "product", "validation"]),
|
|
19779
19779
|
C.value ? (w(), A("div", Ny, [
|
|
19780
19780
|
x[29] || (x[29] = J(" ИТОГО: ", -1)),
|
|
19781
|
-
|
|
19781
|
+
P("span", Hy, q(C.value) + " ₽", 1)
|
|
19782
19782
|
])) : H("", !0),
|
|
19783
19783
|
_.value ? H("", !0) : (w(), A("div", Wy, " Пожалуйста, заполните все обязательные поля корректно. ")),
|
|
19784
|
-
|
|
19784
|
+
P("div", Vy, [
|
|
19785
19785
|
z(M(Oe), {
|
|
19786
19786
|
loading: t.isSubmitProcessing,
|
|
19787
19787
|
disabled: !_.value || u.value.product.isNewRec(),
|
|
@@ -19836,7 +19836,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19836
19836
|
onMaskClick: a[2] || (a[2] = (c) => r("update:show", !1))
|
|
19837
19837
|
}, {
|
|
19838
19838
|
default: I(() => [
|
|
19839
|
-
|
|
19839
|
+
P("div", Zy, [
|
|
19840
19840
|
z(l, {
|
|
19841
19841
|
type: "error",
|
|
19842
19842
|
class: "text-base font-medium"
|
|
@@ -19846,77 +19846,77 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19846
19846
|
])]),
|
|
19847
19847
|
_: 1
|
|
19848
19848
|
}),
|
|
19849
|
-
a[22] || (a[22] =
|
|
19850
|
-
|
|
19851
|
-
|
|
19849
|
+
a[22] || (a[22] = P("div", { class: "grid gap-6 md:grid-cols-2" }, [
|
|
19850
|
+
P("div", { class: "flex items-start gap-4" }, [
|
|
19851
|
+
P("img", {
|
|
19852
19852
|
src: Uy,
|
|
19853
19853
|
alt: "measurement-height",
|
|
19854
19854
|
class: "w-[7.5rem]"
|
|
19855
19855
|
}),
|
|
19856
|
-
|
|
19857
|
-
|
|
19858
|
-
|
|
19856
|
+
P("div", { class: "flex flex-col gap-2" }, [
|
|
19857
|
+
P("span", { class: "text-lg font-bold" }, "Замер ширины"),
|
|
19858
|
+
P("span", null, "Замерить по ширине световой проем оконной рамы. Размер учитывать c точностью до 1 мм")
|
|
19859
19859
|
])
|
|
19860
19860
|
]),
|
|
19861
|
-
|
|
19862
|
-
|
|
19861
|
+
P("div", { class: "flex items-start gap-4" }, [
|
|
19862
|
+
P("img", {
|
|
19863
19863
|
src: Xy,
|
|
19864
19864
|
alt: "measurement-height",
|
|
19865
19865
|
class: "w-[7.5rem]"
|
|
19866
19866
|
}),
|
|
19867
|
-
|
|
19868
|
-
|
|
19869
|
-
|
|
19867
|
+
P("div", { class: "flex flex-col gap-2" }, [
|
|
19868
|
+
P("span", { class: "text-lg font-bold" }, "Замер высоты"),
|
|
19869
|
+
P("span", null, "Замерить по высоте световой проем оконной рамы. Размер учитывать с точностью до 1 мм")
|
|
19870
19870
|
])
|
|
19871
19871
|
])
|
|
19872
19872
|
], -1)),
|
|
19873
|
-
|
|
19874
|
-
a[9] || (a[9] =
|
|
19873
|
+
P("div", Qy, [
|
|
19874
|
+
a[9] || (a[9] = P("img", {
|
|
19875
19875
|
src: Yy,
|
|
19876
19876
|
alt: "measurement-height",
|
|
19877
19877
|
class: "w-[7.5rem]"
|
|
19878
19878
|
}, null, -1)),
|
|
19879
|
-
|
|
19880
|
-
a[8] || (a[8] =
|
|
19881
|
-
|
|
19879
|
+
P("div", Jy, [
|
|
19880
|
+
a[8] || (a[8] = P("span", { class: "text-lg font-bold" }, "Крепление на раме сетки", -1)),
|
|
19881
|
+
P("span", null, [
|
|
19882
19882
|
a[4] || (a[4] = J(" Расчетные размеры москитной сетки: ", -1)),
|
|
19883
|
-
a[5] || (a[5] =
|
|
19883
|
+
a[5] || (a[5] = P("br", null, null, -1)),
|
|
19884
19884
|
J(" Ширина светового проема +" + q(t.widthOverlaps.frame) + " мм. Высота светового проема +" + q(t.heightOverlaps.frame) + " мм. ", 1),
|
|
19885
|
-
a[6] || (a[6] =
|
|
19885
|
+
a[6] || (a[6] = P("br", null, null, -1)),
|
|
19886
19886
|
a[7] || (a[7] = J(" Крепления находятся на раме сетки. ", -1))
|
|
19887
19887
|
])
|
|
19888
19888
|
])
|
|
19889
19889
|
]),
|
|
19890
|
-
|
|
19891
|
-
a[15] || (a[15] =
|
|
19890
|
+
P("div", eb, [
|
|
19891
|
+
a[15] || (a[15] = P("img", {
|
|
19892
19892
|
src: Ky,
|
|
19893
19893
|
alt: "measurement-height",
|
|
19894
19894
|
class: "w-[7.5rem]"
|
|
19895
19895
|
}, null, -1)),
|
|
19896
|
-
|
|
19897
|
-
a[14] || (a[14] =
|
|
19898
|
-
|
|
19896
|
+
P("div", tb, [
|
|
19897
|
+
a[14] || (a[14] = P("span", { class: "text-lg font-bold" }, "Z-Образное крепление пластик (верх+низ)", -1)),
|
|
19898
|
+
P("span", null, [
|
|
19899
19899
|
a[10] || (a[10] = J(" Расчетные размеры москитной сетки:", -1)),
|
|
19900
|
-
a[11] || (a[11] =
|
|
19900
|
+
a[11] || (a[11] = P("br", null, null, -1)),
|
|
19901
19901
|
J(" Ширина светового проема +" + q(t.widthOverlaps.external_plastic) + " мм. Высота светового проема +" + q(t.heightOverlaps.external_plastic) + " мм. ", 1),
|
|
19902
|
-
a[12] || (a[12] =
|
|
19902
|
+
a[12] || (a[12] = P("br", null, null, -1)),
|
|
19903
19903
|
a[13] || (a[13] = J(" Крепления прикручиваются к раме окна c помощью шурупов. ", -1))
|
|
19904
19904
|
])
|
|
19905
19905
|
])
|
|
19906
19906
|
]),
|
|
19907
|
-
|
|
19908
|
-
a[21] || (a[21] =
|
|
19907
|
+
P("div", nb, [
|
|
19908
|
+
a[21] || (a[21] = P("img", {
|
|
19909
19909
|
src: Gy,
|
|
19910
19910
|
alt: "measurement-height",
|
|
19911
19911
|
class: "w-[7.5rem]"
|
|
19912
19912
|
}, null, -1)),
|
|
19913
|
-
|
|
19914
|
-
a[20] || (a[20] =
|
|
19915
|
-
|
|
19913
|
+
P("div", ib, [
|
|
19914
|
+
a[20] || (a[20] = P("span", { class: "text-lg font-bold" }, "Z-Образное крепление металл (верх+низ)", -1)),
|
|
19915
|
+
P("span", null, [
|
|
19916
19916
|
a[16] || (a[16] = J(" Расчетные размеры москитной сетки: ", -1)),
|
|
19917
|
-
a[17] || (a[17] =
|
|
19917
|
+
a[17] || (a[17] = P("br", null, null, -1)),
|
|
19918
19918
|
J(" Ширина светового проема +" + q(t.widthOverlaps.external_metal) + " мм. Высота светового проема +" + q(t.heightOverlaps.external_metal) + " мм. ", 1),
|
|
19919
|
-
a[18] || (a[18] =
|
|
19919
|
+
a[18] || (a[18] = P("br", null, null, -1)),
|
|
19920
19920
|
a[19] || (a[19] = J(" Крепления прикручиваются к раме окна c помощью шурупов. ", -1))
|
|
19921
19921
|
])
|
|
19922
19922
|
])
|
|
@@ -19991,7 +19991,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
19991
19991
|
"height-overlaps": t.settings.heightOverlaps,
|
|
19992
19992
|
"width-overlaps": t.settings.widthOverlaps
|
|
19993
19993
|
}, null, 8, ["show", "height-overlaps", "width-overlaps"]),
|
|
19994
|
-
|
|
19994
|
+
P("div", ob, [
|
|
19995
19995
|
s.value ? (w(), ne(M(jd), {
|
|
19996
19996
|
key: 1,
|
|
19997
19997
|
show: r.value,
|
|
@@ -20213,8 +20213,8 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
20213
20213
|
a.value[_].product.id = -1;
|
|
20214
20214
|
const { configuratorParams: F } = a.value[_];
|
|
20215
20215
|
F.linesWidths[_] = C, p("configuratorParams", F), (x = (k = (b = o.value) == null ? void 0 : b.at(_)) == null ? void 0 : k.formItemReference) == null || x.validate().catch($t), gt(() => {
|
|
20216
|
-
var
|
|
20217
|
-
(B = (
|
|
20216
|
+
var $, B;
|
|
20217
|
+
(B = ($ = o.value) == null ? void 0 : $.at(_)) != null && B.isValid && s("update:params", F, _, R);
|
|
20218
20218
|
});
|
|
20219
20219
|
}, p = (C, _) => {
|
|
20220
20220
|
a.value.forEach((R) => {
|
|
@@ -20249,7 +20249,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
20249
20249
|
var F;
|
|
20250
20250
|
return [
|
|
20251
20251
|
(w(!0), A(be, null, Ct(a.value, (b, k) => {
|
|
20252
|
-
var x,
|
|
20252
|
+
var x, $;
|
|
20253
20253
|
return w(), ne(ub, {
|
|
20254
20254
|
key: k,
|
|
20255
20255
|
ref_for: !0,
|
|
@@ -20261,7 +20261,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
20261
20261
|
product: b.product,
|
|
20262
20262
|
settings: t.settings,
|
|
20263
20263
|
validation: t.validation,
|
|
20264
|
-
"suggestion-option": f.value(((
|
|
20264
|
+
"suggestion-option": f.value((($ = b.configuratorParams) == null ? void 0 : $.linesWidths.at(k)) ?? 0),
|
|
20265
20265
|
"add-line-button-disabled": d.value <= 0 || t.value.length >= t.settings.maxLinesCount || t.value.some((B) => B.product.isNewRec()),
|
|
20266
20266
|
"remove-line-button-disabled": a.value.length === 1,
|
|
20267
20267
|
"onUpdate:value": v,
|
|
@@ -20269,7 +20269,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
20269
20269
|
"onClick:removeLine": _[1] || (_[1] = (B) => s("click:remove-line", B))
|
|
20270
20270
|
}, null, 8, ["value", "index", "path", "product", "settings", "validation", "suggestion-option", "add-line-button-disabled", "remove-line-button-disabled"]);
|
|
20271
20271
|
}), 128)),
|
|
20272
|
-
|
|
20272
|
+
P("div", db, [
|
|
20273
20273
|
d.value < 0 ? (w(), ne(M(Xi), {
|
|
20274
20274
|
key: 0,
|
|
20275
20275
|
type: "error"
|
|
@@ -20288,7 +20288,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
20288
20288
|
])]),
|
|
20289
20289
|
_: 1
|
|
20290
20290
|
})) : H("", !0),
|
|
20291
|
-
|
|
20291
|
+
P("div", null, [
|
|
20292
20292
|
_[17] || (_[17] = J(" Остаток для резки: ", -1)),
|
|
20293
20293
|
z(M(Xi), {
|
|
20294
20294
|
type: d.value >= 0 ? "Success" : "error"
|
|
@@ -20388,9 +20388,9 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
20388
20388
|
}, 8, ["checked"])) : H("", !0),
|
|
20389
20389
|
m.value ? (w(), A("div", hb, [
|
|
20390
20390
|
_[20] || (_[20] = J(" ИТОГО: ", -1)),
|
|
20391
|
-
|
|
20391
|
+
P("span", fb, q(m.value) + " ₽", 1)
|
|
20392
20392
|
])) : H("", !0),
|
|
20393
|
-
|
|
20393
|
+
P("div", gb, [
|
|
20394
20394
|
z(M(Oe), {
|
|
20395
20395
|
loading: t.isSubmitProcessing,
|
|
20396
20396
|
disabled: !h.value || d.value != 0 || !((F = a.value[0]) != null && F.length) || a.value[0].length > t.settings.maxLength || a.value[0].length < t.settings.minLength || a.value[0].quantity === 0,
|
|
@@ -20419,18 +20419,18 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
20419
20419
|
},
|
|
20420
20420
|
setup(t) {
|
|
20421
20421
|
return (e, n) => (w(), A("div", vb, [
|
|
20422
|
-
|
|
20422
|
+
P("img", {
|
|
20423
20423
|
src: "/img/configurators/strip/strip-" + t.value.length + ".png",
|
|
20424
20424
|
class: "w-full max-w-96 self-center py-5",
|
|
20425
20425
|
alt: "Штрипс"
|
|
20426
20426
|
}, null, 8, yb),
|
|
20427
|
-
|
|
20427
|
+
P("div", bb, [
|
|
20428
20428
|
J(" Число полос можно указать от " + q(t.settings.minLinesCount) + " до " + q(t.settings.maxLinesCount) + ". ", 1),
|
|
20429
|
-
n[0] || (n[0] =
|
|
20429
|
+
n[0] || (n[0] = P("br", null, null, -1)),
|
|
20430
20430
|
J(" Минимальная ширина полосы " + q(t.settings.minLineWidth) + " мм. ", 1),
|
|
20431
|
-
n[1] || (n[1] =
|
|
20431
|
+
n[1] || (n[1] = P("br", null, null, -1)),
|
|
20432
20432
|
J(" Ширина всех полос " + q(t.settings.width) + " мм. ", 1),
|
|
20433
|
-
n[2] || (n[2] =
|
|
20433
|
+
n[2] || (n[2] = P("br", null, null, -1)),
|
|
20434
20434
|
J(" Шаг ширины полосы - " + q(t.settings.lineWidthStep) + " мм. ", 1)
|
|
20435
20435
|
])
|
|
20436
20436
|
]));
|
|
@@ -20537,7 +20537,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
20537
20537
|
])]),
|
|
20538
20538
|
_: 1
|
|
20539
20539
|
})) : H("", !0),
|
|
20540
|
-
|
|
20540
|
+
P("div", kb, [
|
|
20541
20541
|
z(wb, {
|
|
20542
20542
|
value: r.value,
|
|
20543
20543
|
"onUpdate:value": m[1] || (m[1] = (p) => r.value = p),
|
|
@@ -20726,7 +20726,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
20726
20726
|
product: t.value.product,
|
|
20727
20727
|
validation: t.validation.product
|
|
20728
20728
|
}, null, 8, ["is-product-searching", "product", "validation"]),
|
|
20729
|
-
|
|
20729
|
+
P("div", $b, [
|
|
20730
20730
|
z(M(Oe), {
|
|
20731
20731
|
disabled: (
|
|
20732
20732
|
// eslint-disable-next-line vue/max-len
|
|
@@ -20843,7 +20843,7 @@ const Fy = { class: "flex flex-col gap-3" }, By = { class: "grid gap-5 md:grid-c
|
|
|
20843
20843
|
};
|
|
20844
20844
|
function Ab(t, e) {
|
|
20845
20845
|
return w(), A("svg", Mb, [...e[0] || (e[0] = [
|
|
20846
|
-
|
|
20846
|
+
P("path", {
|
|
20847
20847
|
fill: "none",
|
|
20848
20848
|
stroke: "currentColor",
|
|
20849
20849
|
"stroke-linecap": "round",
|
|
@@ -20963,24 +20963,24 @@ const Jh = He({ name: "ion-add", render: Ab }), Eb = {
|
|
|
20963
20963
|
X && (u.value = X, d.value = G, o.value.product = X, ue("product", o.value.product), o.value.configuratorParams.items.forEach((U) => {
|
|
20964
20964
|
var te, ie;
|
|
20965
20965
|
(te = X.properties) != null && te.width && U.width > X.properties.width && (U.width = X.properties.width), (ie = X.properties) != null && ie.length && U.length > X.properties.length && (U.length = X.properties.length);
|
|
20966
|
-
}),
|
|
20966
|
+
}), $());
|
|
20967
20967
|
};
|
|
20968
20968
|
let x = !1;
|
|
20969
|
-
const
|
|
20969
|
+
const $ = () => {
|
|
20970
20970
|
x = !0, p.value = null, b.value = null, o.value.configuratorParams.calculationId = "", o.value.quantity = 0;
|
|
20971
20971
|
}, B = async () => {
|
|
20972
20972
|
var G;
|
|
20973
20973
|
if (!u.value || o.value.configuratorParams.items.length === 0 || R.value) {
|
|
20974
|
-
|
|
20974
|
+
$();
|
|
20975
20975
|
return;
|
|
20976
20976
|
}
|
|
20977
20977
|
(G = r.value) == null || G.validate((X) => {
|
|
20978
20978
|
if (X) {
|
|
20979
|
-
|
|
20979
|
+
$();
|
|
20980
20980
|
return;
|
|
20981
20981
|
}
|
|
20982
20982
|
if (y.value = !0, !u.value || !c.value) {
|
|
20983
|
-
|
|
20983
|
+
$(), y.value = !1;
|
|
20984
20984
|
return;
|
|
20985
20985
|
}
|
|
20986
20986
|
i.eventEmitter.emit("configurator:calculate", {
|
|
@@ -20992,11 +20992,11 @@ const Jh = He({ name: "ion-add", render: Ab }), Eb = {
|
|
|
20992
20992
|
callback: (U) => {
|
|
20993
20993
|
U ? (p.value = U, o.value.configuratorParams.calculationId = U.id, o.value.quantity = U.quantity, gt(() => {
|
|
20994
20994
|
ue("quantity", U.quantity);
|
|
20995
|
-
})) : (o.value.configuratorParams.calculationId = "", o.value.quantity = 0,
|
|
20995
|
+
})) : (o.value.configuratorParams.calculationId = "", o.value.quantity = 0, $()), ue("configuratorParams", o.value.configuratorParams), O(), y.value = !1;
|
|
20996
20996
|
}
|
|
20997
20997
|
});
|
|
20998
20998
|
}).catch(() => {
|
|
20999
|
-
|
|
20999
|
+
$(), y.value = !1;
|
|
21000
21000
|
});
|
|
21001
21001
|
}, O = () => {
|
|
21002
21002
|
var X;
|
|
@@ -21009,15 +21009,15 @@ const Jh = He({ name: "ion-add", render: Ab }), Eb = {
|
|
|
21009
21009
|
}, L = (G) => {
|
|
21010
21010
|
var U, te;
|
|
21011
21011
|
const X = o.value.configuratorParams.items[G];
|
|
21012
|
-
u.value && ((U = u.value.properties) != null && U.width && X.width > u.value.properties.width && (X.width = u.value.properties.width), (te = u.value.properties) != null && te.length && X.length > u.value.properties.length && (X.length = u.value.properties.length)), ue("configuratorParams", o.value.configuratorParams),
|
|
21012
|
+
u.value && ((U = u.value.properties) != null && U.width && X.width > u.value.properties.width && (X.width = u.value.properties.width), (te = u.value.properties) != null && te.length && X.length > u.value.properties.length && (X.length = u.value.properties.length)), ue("configuratorParams", o.value.configuratorParams), $();
|
|
21013
21013
|
}, Z = () => {
|
|
21014
21014
|
o.value.configuratorParams.calculationId = "", o.value.configuratorParams.items.push({
|
|
21015
21015
|
width: 0,
|
|
21016
21016
|
length: 0,
|
|
21017
21017
|
count: 1
|
|
21018
|
-
}), ue("configuratorParams", o.value.configuratorParams),
|
|
21018
|
+
}), ue("configuratorParams", o.value.configuratorParams), $(), s("add-item", o.value.configuratorParams.items.length);
|
|
21019
21019
|
}, V = (G) => {
|
|
21020
|
-
o.value.configuratorParams.items.splice(G, 1), ue("configuratorParams", o.value.configuratorParams),
|
|
21020
|
+
o.value.configuratorParams.items.splice(G, 1), ue("configuratorParams", o.value.configuratorParams), $(), s("remove-item", G);
|
|
21021
21021
|
}, oe = () => {
|
|
21022
21022
|
if (!(F.value || y.value || i.isSubmitProcessing)) {
|
|
21023
21023
|
if (!p.value) {
|
|
@@ -21095,23 +21095,23 @@ const Jh = He({ name: "ion-add", render: Ab }), Eb = {
|
|
|
21095
21095
|
_: 1
|
|
21096
21096
|
}),
|
|
21097
21097
|
((ie = u.value) == null ? void 0 : ie.costRub) != null ? (w(), A("div", Eb, [
|
|
21098
|
-
|
|
21098
|
+
P("span", Ib, q(u.value.code), 1),
|
|
21099
21099
|
J(" — " + q(u.value.costRub.toLocaleString()) + " " + q(u.value.currency.symbol) + "/шт. ", 1)
|
|
21100
21100
|
])) : H("", !0),
|
|
21101
|
-
|
|
21101
|
+
P("div", Ob, [
|
|
21102
21102
|
u.value ? (w(), A("div", zb, [
|
|
21103
|
-
X[7] || (X[7] =
|
|
21104
|
-
|
|
21103
|
+
X[7] || (X[7] = P("div", { class: "w-full font-bold" }, "Размеры изделий", -1)),
|
|
21104
|
+
P("div", Lb, [
|
|
21105
21105
|
m.value ? (w(), A("div", Db, "Ширина " + q(m.value) + ".", 1)) : H("", !0),
|
|
21106
21106
|
v.value ? (w(), A("div", Nb, "Длина " + q(v.value) + ".", 1)) : H("", !0)
|
|
21107
21107
|
])
|
|
21108
21108
|
])) : H("", !0),
|
|
21109
|
-
|
|
21109
|
+
P("div", Hb, [
|
|
21110
21110
|
(w(!0), A(be, null, Ct(o.value.configuratorParams.items, (N, Q) => (w(), A("div", {
|
|
21111
21111
|
key: Q,
|
|
21112
21112
|
class: "flex grow gap-2"
|
|
21113
21113
|
}, [
|
|
21114
|
-
|
|
21114
|
+
P("div", Wb, [
|
|
21115
21115
|
z(M(Ve), {
|
|
21116
21116
|
path: `configuratorParams.items.${Q}.width`,
|
|
21117
21117
|
label: "Ширина, мм"
|
|
@@ -21240,21 +21240,21 @@ const Jh = He({ name: "ion-add", render: Ab }), Eb = {
|
|
|
21240
21240
|
var N;
|
|
21241
21241
|
return [
|
|
21242
21242
|
p.value && u.value && b.value ? (w(), A("div", Vb, [
|
|
21243
|
-
|
|
21243
|
+
P("div", null, [
|
|
21244
21244
|
X[10] || (X[10] = J(" Итого: ", -1)),
|
|
21245
|
-
|
|
21245
|
+
P("span", jb, q(b.value.toLocaleString()) + " " + q(u.value.currency.symbol), 1)
|
|
21246
21246
|
]),
|
|
21247
21247
|
p.value.quantity && u.value ? (w(), A("div", qb, [
|
|
21248
|
-
|
|
21248
|
+
P("span", Ub, "(" + q(p.value.quantity) + " шт.", 1),
|
|
21249
21249
|
X[11] || (X[11] = J(" x ", -1)),
|
|
21250
|
-
|
|
21250
|
+
P("span", Xb, q((N = u.value.costRub) == null ? void 0 : N.toLocaleString()) + " " + q(u.value.currency.symbol) + "/шт.)", 1)
|
|
21251
21251
|
])) : H("", !0)
|
|
21252
21252
|
])) : H("", !0)
|
|
21253
21253
|
];
|
|
21254
21254
|
}),
|
|
21255
21255
|
_: 1
|
|
21256
21256
|
}, 8, ["show"]),
|
|
21257
|
-
|
|
21257
|
+
P("div", Yb, [
|
|
21258
21258
|
p.value && !y.value ? (w(), ne(M(Oe), {
|
|
21259
21259
|
key: 0,
|
|
21260
21260
|
loading: t.isSubmitProcessing,
|
|
@@ -21359,7 +21359,7 @@ const Jh = He({ name: "ion-add", render: Ab }), Eb = {
|
|
|
21359
21359
|
])]),
|
|
21360
21360
|
_: 1
|
|
21361
21361
|
})) : H("", !0),
|
|
21362
|
-
|
|
21362
|
+
P("div", Qb, [
|
|
21363
21363
|
z(Gb, {
|
|
21364
21364
|
ref: "sandwich-configurator-form",
|
|
21365
21365
|
value: r.value,
|
|
@@ -21383,7 +21383,7 @@ const Jh = He({ name: "ion-add", render: Ab }), Eb = {
|
|
|
21383
21383
|
};
|
|
21384
21384
|
function n_(t, e) {
|
|
21385
21385
|
return w(), A("svg", t_, [...e[0] || (e[0] = [
|
|
21386
|
-
|
|
21386
|
+
P("path", {
|
|
21387
21387
|
fill: "none",
|
|
21388
21388
|
stroke: "currentColor",
|
|
21389
21389
|
"stroke-linecap": "round",
|
|
@@ -21508,7 +21508,7 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21508
21508
|
}), F = E(() => !h.value || R.value || l.value.length === 0), b = E(() => {
|
|
21509
21509
|
const N = l.value[0];
|
|
21510
21510
|
return N != null && !N.isNewRec();
|
|
21511
|
-
}), k = (N) => i.itemStates[N] ?? "idle", x = (N) => k(N) === "success",
|
|
21511
|
+
}), k = (N) => i.itemStates[N] ?? "idle", x = (N) => k(N) === "success", $ = (N) => k(N) === "loading", B = E(() => l.value.length === 0 ? !0 : l.value.every((N, Q) => {
|
|
21512
21512
|
const ee = k(Q);
|
|
21513
21513
|
return ee === "success" || ee === "loading";
|
|
21514
21514
|
})), O = (N) => N.width === 0 || N.length === 0 ? 0 : N.width * N.length / 1e6, L = (N) => {
|
|
@@ -21625,27 +21625,27 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21625
21625
|
_: 1
|
|
21626
21626
|
}),
|
|
21627
21627
|
((Ie = h.value) == null ? void 0 : Ie.costRub) != null ? (w(), A("div", s_, [
|
|
21628
|
-
|
|
21628
|
+
P("span", r_, q(h.value.code), 1),
|
|
21629
21629
|
J(" — " + q(h.value.costRub.toLocaleString()) + " " + q(h.value.currency.symbol) + "/м² ", 1)
|
|
21630
21630
|
])) : H("", !0),
|
|
21631
|
-
|
|
21631
|
+
P("div", o_, [
|
|
21632
21632
|
h.value ? (w(), A("div", a_, [
|
|
21633
|
-
Q[6] || (Q[6] =
|
|
21634
|
-
|
|
21633
|
+
Q[6] || (Q[6] = P("div", { class: "w-full font-bold" }, "Размеры изделий", -1)),
|
|
21634
|
+
P("div", l_, [
|
|
21635
21635
|
p.value ? (w(), A("div", c_, "Ширина " + q(p.value) + ".", 1)) : H("", !0),
|
|
21636
21636
|
y.value ? (w(), A("div", u_, "Длина " + q(y.value) + ".", 1)) : H("", !0)
|
|
21637
21637
|
])
|
|
21638
21638
|
])) : H("", !0),
|
|
21639
|
-
|
|
21639
|
+
P("div", d_, [
|
|
21640
21640
|
(w(!0), A(be, null, Ct(c.value.items, (ot, ye) => {
|
|
21641
21641
|
var Wt;
|
|
21642
21642
|
return w(), A("div", {
|
|
21643
21643
|
key: ye,
|
|
21644
21644
|
class: je(["flex min-w-0 items-start gap-2 border-b border-gray-100 last:border-0", x(ye) ? "opacity-70" : ""])
|
|
21645
21645
|
}, [
|
|
21646
|
-
|
|
21647
|
-
|
|
21648
|
-
|
|
21646
|
+
P("div", h_, [
|
|
21647
|
+
P("div", f_, [
|
|
21648
|
+
P("div", g_, [
|
|
21649
21649
|
z(M(Ve), {
|
|
21650
21650
|
path: `items.${ye}.configuratorParams.width`,
|
|
21651
21651
|
label: "Ширина, мм",
|
|
@@ -21659,7 +21659,7 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21659
21659
|
"onUpdate:value": [(We) => c.value.items[ye].configuratorParams.width = We, (We) => Y(ye)],
|
|
21660
21660
|
parse: M(Nt),
|
|
21661
21661
|
"show-button": !1,
|
|
21662
|
-
disabled: !h.value || x(ye) ||
|
|
21662
|
+
disabled: !h.value || x(ye) || $(ye),
|
|
21663
21663
|
placeholder: "Ширина",
|
|
21664
21664
|
class: "w-full",
|
|
21665
21665
|
onKeydown: Q[1] || (Q[1] = (We) => M(At)(We)),
|
|
@@ -21680,7 +21680,7 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21680
21680
|
"onUpdate:value": [(We) => c.value.items[ye].configuratorParams.length = We, (We) => Y(ye)],
|
|
21681
21681
|
parse: M(Nt),
|
|
21682
21682
|
"show-button": !1,
|
|
21683
|
-
disabled: !h.value || x(ye) ||
|
|
21683
|
+
disabled: !h.value || x(ye) || $(ye),
|
|
21684
21684
|
placeholder: "Длина",
|
|
21685
21685
|
class: "w-full",
|
|
21686
21686
|
onKeydown: Q[2] || (Q[2] = (We) => M(At)(We)),
|
|
@@ -21691,7 +21691,7 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21691
21691
|
_: 2
|
|
21692
21692
|
}, 1032, ["path"])
|
|
21693
21693
|
]),
|
|
21694
|
-
|
|
21694
|
+
P("div", m_, [
|
|
21695
21695
|
z(M(Ve), {
|
|
21696
21696
|
path: `items.${ye}.quantity`,
|
|
21697
21697
|
label: "Количество, шт",
|
|
@@ -21703,7 +21703,7 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21703
21703
|
"onUpdate:value": [(We) => c.value.items[ye].quantity = We, (We) => Y(ye)],
|
|
21704
21704
|
parse: M(Nt),
|
|
21705
21705
|
"show-button": !1,
|
|
21706
|
-
disabled: !h.value || x(ye) ||
|
|
21706
|
+
disabled: !h.value || x(ye) || $(ye),
|
|
21707
21707
|
placeholder: "Кол-во",
|
|
21708
21708
|
class: "w-full",
|
|
21709
21709
|
onKeydown: Q[3] || (Q[3] = (We) => M(At)(We, !1)),
|
|
@@ -21721,7 +21721,7 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21721
21721
|
default: I(() => [
|
|
21722
21722
|
z(M(fi), {
|
|
21723
21723
|
value: c.value.items[ye].marker ?? null,
|
|
21724
|
-
disabled: !h.value || x(ye) ||
|
|
21724
|
+
disabled: !h.value || x(ye) || $(ye),
|
|
21725
21725
|
placeholder: "Маркировка",
|
|
21726
21726
|
class: "w-full",
|
|
21727
21727
|
onInput: (We) => d(`items.${ye}.marker`),
|
|
@@ -21732,8 +21732,8 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21732
21732
|
_: 2
|
|
21733
21733
|
}, 1032, ["path"])
|
|
21734
21734
|
]),
|
|
21735
|
-
|
|
21736
|
-
|
|
21735
|
+
$(ye) || x(ye) ? (w(), A("div", p_, [
|
|
21736
|
+
$(ye) ? (w(), ne(M(Rs), {
|
|
21737
21737
|
key: 0,
|
|
21738
21738
|
size: 14
|
|
21739
21739
|
})) : x(ye) ? (w(), ne(ee, {
|
|
@@ -21742,20 +21742,20 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21742
21742
|
})) : H("", !0)
|
|
21743
21743
|
])) : H("", !0)
|
|
21744
21744
|
]),
|
|
21745
|
-
|
|
21745
|
+
P("div", v_, [
|
|
21746
21746
|
ot.configuratorParams.width > 0 && ot.configuratorParams.length > 0 ? (w(), A("div", y_, [
|
|
21747
21747
|
Q[7] || (Q[7] = J(" Площадь (S) = ", -1)),
|
|
21748
|
-
|
|
21748
|
+
P("span", b_, q(O(ot.configuratorParams).toLocaleString(void 0, { maximumFractionDigits: 4 })) + " м²", 1)
|
|
21749
21749
|
])) : H("", !0),
|
|
21750
21750
|
L(ot) > 0 ? (w(), A("div", __, [
|
|
21751
21751
|
Q[8] || (Q[8] = J(" Итого: ", -1)),
|
|
21752
|
-
|
|
21752
|
+
P("span", w_, q(L(ot).toLocaleString()) + " " + q((Wt = h.value) == null ? void 0 : Wt.currency.symbol), 1)
|
|
21753
21753
|
])) : H("", !0)
|
|
21754
21754
|
])
|
|
21755
21755
|
]),
|
|
21756
21756
|
b.value ? H("", !0) : (w(), ne(M(Oe), {
|
|
21757
21757
|
key: 0,
|
|
21758
|
-
disabled:
|
|
21758
|
+
disabled: $(ye) || c.value.items.length <= 1,
|
|
21759
21759
|
type: "error",
|
|
21760
21760
|
size: "medium",
|
|
21761
21761
|
class: "mt-5 shrink-0 lg:!ml-4",
|
|
@@ -21772,11 +21772,11 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21772
21772
|
h.value ? (w(), A("div", x_, [
|
|
21773
21773
|
Z.value > 0 ? (w(), A("div", k_, [
|
|
21774
21774
|
Q[9] || (Q[9] = J(" Общая площадь: ", -1)),
|
|
21775
|
-
|
|
21775
|
+
P("span", C_, q(Z.value.toLocaleString(void 0, { maximumFractionDigits: 4 })) + " м²", 1)
|
|
21776
21776
|
])) : H("", !0),
|
|
21777
21777
|
V.value > 0 ? (w(), A("div", S_, [
|
|
21778
21778
|
Q[10] || (Q[10] = J(" Итого: ", -1)),
|
|
21779
|
-
|
|
21779
|
+
P("span", $_, q(V.value.toLocaleString()) + " " + q(h.value.currency.symbol), 1)
|
|
21780
21780
|
])) : H("", !0)
|
|
21781
21781
|
])) : H("", !0)
|
|
21782
21782
|
]),
|
|
@@ -21792,7 +21792,7 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21792
21792
|
])]),
|
|
21793
21793
|
_: 1
|
|
21794
21794
|
}, 8, ["checked"])) : H("", !0),
|
|
21795
|
-
|
|
21795
|
+
P("div", P_, [
|
|
21796
21796
|
h.value && !b.value ? (w(), ne(M(Oe), {
|
|
21797
21797
|
key: 0,
|
|
21798
21798
|
disabled: R.value,
|
|
@@ -21874,17 +21874,17 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21874
21874
|
let R = !1;
|
|
21875
21875
|
return l.forEach((F) => {
|
|
21876
21876
|
var O, L;
|
|
21877
|
-
const b = `items.0.${F}`, k = (O = C[F]) == null ? void 0 : O.feedback,
|
|
21878
|
-
|
|
21877
|
+
const b = `items.0.${F}`, k = (O = C[F]) == null ? void 0 : O.feedback, $ = ((L = C[b]) == null ? void 0 : L.feedback) ?? k, B = `items.${_}.${F}`;
|
|
21878
|
+
$ ? (a.value[B] = C[b] ?? C[F], R = !0) : a.value[B] = {};
|
|
21879
21879
|
}), R;
|
|
21880
21880
|
}, f = (C, _, R) => new Promise((F) => {
|
|
21881
21881
|
const b = h();
|
|
21882
21882
|
let k = !1;
|
|
21883
|
-
const x = (
|
|
21883
|
+
const x = ($) => {
|
|
21884
21884
|
if (k)
|
|
21885
21885
|
return;
|
|
21886
21886
|
k = !0;
|
|
21887
|
-
const B = g(b, _), O = (
|
|
21887
|
+
const B = g(b, _), O = ($ === void 0 ? !B : $) && !B;
|
|
21888
21888
|
o.value[_] = O ? "success" : "error", gt(() => {
|
|
21889
21889
|
var L, Z;
|
|
21890
21890
|
(Z = (L = s.value) == null ? void 0 : L.formReference) == null || Z.restoreValidation();
|
|
@@ -21949,7 +21949,7 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
21949
21949
|
])]),
|
|
21950
21950
|
_: 1
|
|
21951
21951
|
})) : H("", !0),
|
|
21952
|
-
|
|
21952
|
+
P("div", B_, [
|
|
21953
21953
|
z(R_, {
|
|
21954
21954
|
ref: "sandwich-m2-configurator-form",
|
|
21955
21955
|
value: r.value,
|
|
@@ -22141,7 +22141,7 @@ const i_ = He({ name: "ion-checkmark", render: n_ }), s_ = {
|
|
|
22141
22141
|
z(f, { size: "large" })
|
|
22142
22142
|
])) : i.value ? (w(), A("div", I_, q(i.value), 1)) : H("", !0),
|
|
22143
22143
|
t.settings !== null && (s.value !== null || r.value !== null || a.value !== null) ? (w(), A("div", O_, [
|
|
22144
|
-
|
|
22144
|
+
P("div", z_, [
|
|
22145
22145
|
t.editor === "kozyrek" ? (w(), ne(Ay, {
|
|
22146
22146
|
key: 0,
|
|
22147
22147
|
"event-emitter": t.eventEmitter,
|
|
@@ -22274,7 +22274,7 @@ const V_ = {
|
|
|
22274
22274
|
), b = E(() => X.value && Ht.getDeviceTypeByResolution() === St.laptop ? "auto" : "fixed"), k = Xe("collapse-item-reference"), x = E(() => {
|
|
22275
22275
|
var ie, N;
|
|
22276
22276
|
return (N = (ie = e.categoryItem.properties) == null ? void 0 : ie.templateCost) == null ? void 0 : N.priceCoefficient;
|
|
22277
|
-
}),
|
|
22277
|
+
}), $ = E(() => {
|
|
22278
22278
|
var ie, N;
|
|
22279
22279
|
return (N = (ie = e.categoryItem.properties) == null ? void 0 : ie.templateCost) == null ? void 0 : N.increasePercent;
|
|
22280
22280
|
}), B = (ie, N = "ru-RU") => 0 .toLocaleString(N, {
|
|
@@ -22375,7 +22375,7 @@ const V_ = {
|
|
|
22375
22375
|
header: I(() => {
|
|
22376
22376
|
var Ke, le, ve, tt, Oi;
|
|
22377
22377
|
return [
|
|
22378
|
-
|
|
22378
|
+
P("div", {
|
|
22379
22379
|
class: je({
|
|
22380
22380
|
"text-base font-semibold uppercase": !0,
|
|
22381
22381
|
"text-gray-400 line-through": t.categoryItem.isHidden,
|
|
@@ -22388,7 +22388,7 @@ const V_ = {
|
|
|
22388
22388
|
trigger: "hover"
|
|
22389
22389
|
}, {
|
|
22390
22390
|
trigger: I(() => [
|
|
22391
|
-
|
|
22391
|
+
P("span", null, q(t.categoryItem.name), 1)
|
|
22392
22392
|
]),
|
|
22393
22393
|
default: I(() => [
|
|
22394
22394
|
N[3] || (N[3] = J(" Категория скрыта ", -1))
|
|
@@ -22396,7 +22396,7 @@ const V_ = {
|
|
|
22396
22396
|
_: 1
|
|
22397
22397
|
}, 8, ["disabled"])
|
|
22398
22398
|
], 2),
|
|
22399
|
-
|
|
22399
|
+
P("div", {
|
|
22400
22400
|
class: "w-fit",
|
|
22401
22401
|
onClick: N[0] || (N[0] = Rn(
|
|
22402
22402
|
//@ts-ignore
|
|
@@ -22407,15 +22407,15 @@ const V_ = {
|
|
|
22407
22407
|
(le = t.categoryItem.properties) != null && le.m2Price ? (w(), ne(Ie, {
|
|
22408
22408
|
key: 0,
|
|
22409
22409
|
size: M(n),
|
|
22410
|
-
class: je({ "!pr-0": ((ve = t.categoryItem.properties) == null ? void 0 : ve.templateCost) && t.categoryItem.properties.m2PriceRetail &&
|
|
22410
|
+
class: je({ "!pr-0": ((ve = t.categoryItem.properties) == null ? void 0 : ve.templateCost) && t.categoryItem.properties.m2PriceRetail && $.value }),
|
|
22411
22411
|
round: ""
|
|
22412
22412
|
}, {
|
|
22413
22413
|
default: I(() => {
|
|
22414
22414
|
var Pt;
|
|
22415
22415
|
return [
|
|
22416
22416
|
J(" Установленная стоимость: " + q(t.categoryItem.properties.m2Price) + " руб./м2 ", 1),
|
|
22417
|
-
(Pt = t.categoryItem.properties) != null && Pt.templateCost && t.categoryItem.properties.m2PriceRetail &&
|
|
22418
|
-
|
|
22417
|
+
(Pt = t.categoryItem.properties) != null && Pt.templateCost && t.categoryItem.properties.m2PriceRetail && $.value ? (w(), A(be, { key: 0 }, [
|
|
22418
|
+
$.value ? (w(), ne(Ie, {
|
|
22419
22419
|
key: 0,
|
|
22420
22420
|
type: "success",
|
|
22421
22421
|
bordered: !1,
|
|
@@ -22424,13 +22424,13 @@ const V_ = {
|
|
|
22424
22424
|
round: ""
|
|
22425
22425
|
}, {
|
|
22426
22426
|
default: I(() => [
|
|
22427
|
-
|
|
22427
|
+
$.value ? (w(), A("span", j_, q($.value.toFixed(2)) + "%", 1)) : H("", !0),
|
|
22428
22428
|
z(Ie, {
|
|
22429
22429
|
size: M(n),
|
|
22430
22430
|
round: ""
|
|
22431
22431
|
}, {
|
|
22432
22432
|
default: I(() => [
|
|
22433
|
-
|
|
22433
|
+
P("span", q_, q(t.categoryItem.properties.m2PriceRetail) + " руб./м2", 1)
|
|
22434
22434
|
]),
|
|
22435
22435
|
_: 1
|
|
22436
22436
|
}, 8, ["size"])
|
|
@@ -22442,7 +22442,7 @@ const V_ = {
|
|
|
22442
22442
|
}),
|
|
22443
22443
|
_: 1
|
|
22444
22444
|
}, 8, ["size", "class"])) : (tt = t.categoryItem.properties) != null && tt.templateCost ? (w(), A(be, { key: 1 }, [
|
|
22445
|
-
x.value ||
|
|
22445
|
+
x.value || $.value ? (w(), ne(Ie, {
|
|
22446
22446
|
key: 0,
|
|
22447
22447
|
size: M(n),
|
|
22448
22448
|
round: ""
|
|
@@ -22451,7 +22451,7 @@ const V_ = {
|
|
|
22451
22451
|
var Pt;
|
|
22452
22452
|
return [
|
|
22453
22453
|
x.value ? (w(), A("span", U_, q((Pt = x.value) == null ? void 0 : Pt.name), 1)) : H("", !0),
|
|
22454
|
-
|
|
22454
|
+
$.value ? (w(), A("span", X_, q($.value > 0 ? "+" : "") + q($.value.toFixed(2)) + "%", 1)) : H("", !0)
|
|
22455
22455
|
];
|
|
22456
22456
|
}),
|
|
22457
22457
|
_: 1
|
|
@@ -22483,7 +22483,7 @@ const V_ = {
|
|
|
22483
22483
|
trigger: I(() => {
|
|
22484
22484
|
var Pt, wn;
|
|
22485
22485
|
return [
|
|
22486
|
-
|
|
22486
|
+
P("span", Y_, [
|
|
22487
22487
|
z(De),
|
|
22488
22488
|
J(" " + q((wn = (Pt = v.value) == null ? void 0 : Pt.manager) == null ? void 0 : wn.name), 1)
|
|
22489
22489
|
])
|
|
@@ -22505,7 +22505,7 @@ const V_ = {
|
|
|
22505
22505
|
}),
|
|
22506
22506
|
"sub-header": I(() => [
|
|
22507
22507
|
t.showSlugs || t.showProperties ? (w(), A("div", K_, [
|
|
22508
|
-
|
|
22508
|
+
P("ul", G_, [
|
|
22509
22509
|
t.showSlugs ? (w(!0), A(be, { key: 0 }, Ct({ id: t.categoryItem.id, slug: t.categoryItem.slug }, (Ke, le) => (w(), A("li", { key: le }, " (" + q(le) + "): " + q(Ke), 1))), 128)) : H("", !0),
|
|
22510
22510
|
t.showProperties ? (w(!0), A(be, { key: 1 }, Ct(t.categoryItem.properties, (Ke, le) => (w(), A("li", { key: le }, " (" + q(le) + "): " + q(Ke), 1))), 128)) : H("", !0)
|
|
22511
22511
|
])
|
|
@@ -22514,7 +22514,7 @@ const V_ = {
|
|
|
22514
22514
|
"header-extra": I(() => {
|
|
22515
22515
|
var Ke;
|
|
22516
22516
|
return [
|
|
22517
|
-
|
|
22517
|
+
P("div", Z_, [
|
|
22518
22518
|
c.value ? (w(), ne(ce, {
|
|
22519
22519
|
key: 0,
|
|
22520
22520
|
placement: "bottom",
|
|
@@ -22653,7 +22653,7 @@ const V_ = {
|
|
|
22653
22653
|
Re(ie.$slots, "default", {}, () => {
|
|
22654
22654
|
var Ke, le, ve;
|
|
22655
22655
|
return [
|
|
22656
|
-
|
|
22656
|
+
P("div", Q_, [
|
|
22657
22657
|
s.value ? (w(), ne(a1, {
|
|
22658
22658
|
key: 0,
|
|
22659
22659
|
"categories-items": t.categoryItem.categories ?? [],
|
|
@@ -22732,7 +22732,7 @@ const V_ = {
|
|
|
22732
22732
|
class: "w-full"
|
|
22733
22733
|
}, {
|
|
22734
22734
|
description: I(() => [...N[7] || (N[7] = [
|
|
22735
|
-
|
|
22735
|
+
P("div", null, "Выполняется загрузка данных ...", -1)
|
|
22736
22736
|
])]),
|
|
22737
22737
|
_: 1
|
|
22738
22738
|
}, 8, ["size"])) : H("", !0)
|
|
@@ -22848,7 +22848,7 @@ const V_ = {
|
|
|
22848
22848
|
class: "w-full"
|
|
22849
22849
|
}, {
|
|
22850
22850
|
description: I(() => [...o[0] || (o[0] = [
|
|
22851
|
-
|
|
22851
|
+
P("div", null, "Выполняется загрузка данных ...", -1)
|
|
22852
22852
|
])]),
|
|
22853
22853
|
_: 1
|
|
22854
22854
|
}, 8, ["size"])) : H("", !0),
|
|
@@ -22938,7 +22938,8 @@ const V_ = {
|
|
|
22938
22938
|
catalogItem: {},
|
|
22939
22939
|
calculationType: {},
|
|
22940
22940
|
label: {},
|
|
22941
|
-
disabledCoefficient: { type: Function }
|
|
22941
|
+
disabledCoefficient: { type: Function },
|
|
22942
|
+
visibleCoefficient: { type: Function }
|
|
22942
22943
|
},
|
|
22943
22944
|
emits: ["update:value"],
|
|
22944
22945
|
setup(t, { emit: e }) {
|
|
@@ -22950,22 +22951,25 @@ const V_ = {
|
|
|
22950
22951
|
var F;
|
|
22951
22952
|
return ((F = n.catalogItem) == null ? void 0 : F.type) === "product";
|
|
22952
22953
|
}), a = E(() => o.value ? n.catalogItem : void 0), l = (F) => {
|
|
22953
|
-
var b, k, x,
|
|
22954
|
+
var b, k, x, $;
|
|
22954
22955
|
return F.id === s().id ? (b = a.value) == null ? void 0 : b.getRetailCost() : (
|
|
22955
22956
|
// eslint-disable-next-line vue/max-len
|
|
22956
|
-
(
|
|
22957
|
+
($ = (x = (k = a.value) == null ? void 0 : k.priceCoefficients) == null ? void 0 : x.find((B) => B.coefficient.id === F.id)) == null ? void 0 : $.cost
|
|
22957
22958
|
);
|
|
22958
22959
|
}, c = E(() => {
|
|
22959
|
-
var
|
|
22960
|
-
const
|
|
22961
|
-
...((
|
|
22960
|
+
var k;
|
|
22961
|
+
const b = [
|
|
22962
|
+
...((k = Ot().priceCoefficientsReference) == null ? void 0 : k.map((x) => structuredClone(mn(x)))) ?? [],
|
|
22962
22963
|
s()
|
|
22963
|
-
]
|
|
22964
|
-
|
|
22965
|
-
|
|
22966
|
-
|
|
22967
|
-
|
|
22968
|
-
|
|
22964
|
+
].filter((x) => {
|
|
22965
|
+
var $;
|
|
22966
|
+
return (($ = n.visibleCoefficient) == null ? void 0 : $.call(n, x)) ?? !0;
|
|
22967
|
+
});
|
|
22968
|
+
return o.value && b.forEach((x) => {
|
|
22969
|
+
var B;
|
|
22970
|
+
const $ = l(x);
|
|
22971
|
+
$ ? x.name += ` (${$} ${(B = a.value) == null ? void 0 : B.currency.symbol})` : x.name = "";
|
|
22972
|
+
}), b.filter((x) => x.name !== "");
|
|
22969
22973
|
}), u = W(n.value.coefficient), d = W(((R = (_ = n.value) == null ? void 0 : _.value) == null ? void 0 : R.toString()) ?? null), h = W(null), g = E(() => {
|
|
22970
22974
|
var F, b;
|
|
22971
22975
|
return (b = (F = a.value) == null ? void 0 : F.priceCoefficients) == null ? void 0 : b.find((k) => k.coefficient.slug === Sg.K0);
|
|
@@ -22975,7 +22979,7 @@ const V_ = {
|
|
|
22975
22979
|
let F = m(d.value);
|
|
22976
22980
|
if (F = Number.isNaN(F) ? void 0 : F, o.value)
|
|
22977
22981
|
if (u.value || d.value) {
|
|
22978
|
-
const x = s(),
|
|
22982
|
+
const x = s(), $ = l(u.value ?? x) ?? 0, B = $ + $ * ((F ?? 0) / 100);
|
|
22979
22983
|
h.value = new Intl.NumberFormat("ru-RU", { style: "decimal", minimumFractionDigits: 2 }).format(B), B > (((b = a.value) == null ? void 0 : b.getRetailCost()) ?? B) && (f.value = {
|
|
22980
22984
|
validationStatus: "warning",
|
|
22981
22985
|
feedback: "Устанавливается цена выше розничной цены"
|
|
@@ -22995,7 +22999,7 @@ const V_ = {
|
|
|
22995
22999
|
}, y = () => {
|
|
22996
23000
|
u.value || (u.value = s()), v();
|
|
22997
23001
|
}, C = (F) => {
|
|
22998
|
-
var k, x,
|
|
23002
|
+
var k, x, $, B, O;
|
|
22999
23003
|
const b = m(F);
|
|
23000
23004
|
if (o.value) {
|
|
23001
23005
|
let L = 0;
|
|
@@ -23006,7 +23010,7 @@ const V_ = {
|
|
|
23006
23010
|
validationStatus: "warning",
|
|
23007
23011
|
feedback: "Устанавливается цена ниже минимальной цены"
|
|
23008
23012
|
};
|
|
23009
|
-
else if (b > (((
|
|
23013
|
+
else if (b > ((($ = a.value) == null ? void 0 : $.getRetailCost()) ?? b)) {
|
|
23010
23014
|
u.value = s();
|
|
23011
23015
|
const Z = ((B = a.value) == null ? void 0 : B.getRetailCost()) ?? 0;
|
|
23012
23016
|
L = (b - Z) * 100 / Z, f.value = {
|
|
@@ -23035,17 +23039,17 @@ const V_ = {
|
|
|
23035
23039
|
var F, b, k, x;
|
|
23036
23040
|
n.calculationType === Vr.m2Cost ? h.value = ((b = (F = n.value) == null ? void 0 : F.value) == null ? void 0 : b.toString()) ?? null : !((k = n.value) != null && k.coefficient) && ((x = n.value) != null && x.value) && (u.value = s()), v();
|
|
23037
23041
|
}), (F, b) => {
|
|
23038
|
-
var
|
|
23042
|
+
var $, B, O;
|
|
23039
23043
|
const k = fi, x = Xd;
|
|
23040
23044
|
return w(), ne(M(Ve), {
|
|
23041
23045
|
"show-label": !M(lt)(t.label),
|
|
23042
23046
|
label: t.label,
|
|
23043
|
-
"show-feedback": !M(lt)(((
|
|
23047
|
+
"show-feedback": !M(lt)((($ = f.value) == null ? void 0 : $.feedback) ?? t.feedback),
|
|
23044
23048
|
feedback: ((B = f.value) == null ? void 0 : B.feedback) ?? t.feedback,
|
|
23045
23049
|
"validation-status": ((O = f.value) == null ? void 0 : O.validationStatus) ?? t.validationStatus
|
|
23046
23050
|
}, {
|
|
23047
23051
|
default: I(() => [
|
|
23048
|
-
|
|
23052
|
+
P("div", {
|
|
23049
23053
|
class: je([{
|
|
23050
23054
|
"sm:grid-cols-3": o.value && t.calculationType !== M(Vr).m2Cost
|
|
23051
23055
|
}, "grid w-full grid-cols-1 gap-2"])
|
|
@@ -23275,12 +23279,12 @@ const V_ = {
|
|
|
23275
23279
|
var B, O, L, Z;
|
|
23276
23280
|
if (!r.value)
|
|
23277
23281
|
return {};
|
|
23278
|
-
const b = Sn.getProductLengthMultiplicity(r.value), k = Sn.getProductMultiplicity(r.value), x = ((O = (B = r.value) == null ? void 0 : B.properties) == null ? void 0 : O.minLength) || b,
|
|
23282
|
+
const b = Sn.getProductLengthMultiplicity(r.value), k = Sn.getProductMultiplicity(r.value), x = ((O = (B = r.value) == null ? void 0 : B.properties) == null ? void 0 : O.minLength) || b, $ = (Z = (L = r.value) == null ? void 0 : L.properties) == null ? void 0 : Z.maxLength;
|
|
23279
23283
|
return {
|
|
23280
23284
|
length: [
|
|
23281
23285
|
pe.required,
|
|
23282
23286
|
pe.min(x ?? 0.1),
|
|
23283
|
-
pe.max(
|
|
23287
|
+
pe.max($),
|
|
23284
23288
|
pe.step(b),
|
|
23285
23289
|
ct.serverValidation(g.value.length.feedback)
|
|
23286
23290
|
],
|
|
@@ -23296,28 +23300,28 @@ const V_ = {
|
|
|
23296
23300
|
var b, k, x;
|
|
23297
23301
|
return r.value ? ((b = r.value.properties) == null ? void 0 : b.lengthStep) ?? ((k = r.value.properties) != null && k.ignoreMinCountCheck ? 0 : ((x = r.value.properties) == null ? void 0 : x.minCount) ?? 0) : 0;
|
|
23298
23302
|
}), p = E(() => {
|
|
23299
|
-
var x,
|
|
23303
|
+
var x, $, B, O, L, Z, V, oe, ue;
|
|
23300
23304
|
if (!r.value) return "";
|
|
23301
|
-
const b = ((
|
|
23305
|
+
const b = (($ = (x = r.value) == null ? void 0 : x.properties) == null ? void 0 : $.minLength) ?? ((O = (B = r.value) == null ? void 0 : B.properties) != null && O.ignoreMinCountCheck ? 0 : (Z = (L = r.value) == null ? void 0 : L.properties) == null ? void 0 : Z.minCount), k = (oe = (V = r.value) == null ? void 0 : V.properties) == null ? void 0 : oe.maxLength;
|
|
23302
23306
|
return b || k ? `(${b ? `от ${b}` : ""}${b && k ? " " : ""}${k ? `до ${k}` : ""} ${(ue = r.value) == null ? void 0 : ue.unit.name})` : "";
|
|
23303
23307
|
}), y = (b) => {
|
|
23304
23308
|
var O, L;
|
|
23305
23309
|
if (!((L = (O = r.value) == null ? void 0 : O.properties) != null && L.isLengthConfigurator) || !u.value || lt(b) || v.value === 0)
|
|
23306
23310
|
return;
|
|
23307
|
-
const k = b / v.value, x = Math.round(k),
|
|
23311
|
+
const k = b / v.value, x = Math.round(k), $ = Sn.getProductMultiplicity(r.value), B = Math.max(x, $);
|
|
23308
23312
|
u.value.quantity = B;
|
|
23309
23313
|
}, C = (b) => {
|
|
23310
23314
|
var B, O, L, Z;
|
|
23311
23315
|
if (!((O = (B = r.value) == null ? void 0 : B.properties) != null && O.isLengthConfigurator) || !u.value || lt(b) || v.value === 0)
|
|
23312
23316
|
return;
|
|
23313
|
-
const k = b * v.value, x = ((L = r.value.properties) == null ? void 0 : L.minLength) || Sn.getProductLengthMultiplicity(r.value),
|
|
23314
|
-
x !== void 0 && k < x ? u.value.length = x :
|
|
23317
|
+
const k = b * v.value, x = ((L = r.value.properties) == null ? void 0 : L.minLength) || Sn.getProductLengthMultiplicity(r.value), $ = (Z = r.value.properties) == null ? void 0 : Z.maxLength;
|
|
23318
|
+
x !== void 0 && k < x ? u.value.length = x : $ !== void 0 && k > $ ? u.value.length = $ : u.value.length = k;
|
|
23315
23319
|
}, _ = async (b) => {
|
|
23316
23320
|
var x;
|
|
23317
23321
|
const k = tn(u.value);
|
|
23318
23322
|
try {
|
|
23319
|
-
await ((x = i.value) == null ? void 0 : x.validate((
|
|
23320
|
-
if (
|
|
23323
|
+
await ((x = i.value) == null ? void 0 : x.validate(($) => {
|
|
23324
|
+
if (!$) {
|
|
23321
23325
|
if (!r.value || !k)
|
|
23322
23326
|
return;
|
|
23323
23327
|
Sn.productIsMeasurable(r.value) || delete k.length, o.value && v.value && (k.length = v.value), f.value = !0, d("submit", k, g.value, () => {
|
|
@@ -23341,14 +23345,14 @@ const V_ = {
|
|
|
23341
23345
|
* @param cartItemData Данные о товаре в корзине (опционально).
|
|
23342
23346
|
*/
|
|
23343
23347
|
show: (b, k) => {
|
|
23344
|
-
var x,
|
|
23348
|
+
var x, $, B, O, L;
|
|
23345
23349
|
if (r.value = b, a.value = k == null ? void 0 : k.cartItemData, l.value = k == null ? void 0 : k.orderId, c.value = (k == null ? void 0 : k.canSetDopProdaga) ?? !1, u.value = new vt(
|
|
23346
23350
|
(k == null ? void 0 : k.cartItemData) ?? new vt({
|
|
23347
23351
|
product: b,
|
|
23348
23352
|
// eslint-disable-next-line vue/max-len
|
|
23349
23353
|
quantity: Sn.productIsMeasurable(r.value) ? 1 : ((x = b == null ? void 0 : b.properties) == null ? void 0 : x.minCount) ?? 1,
|
|
23350
23354
|
// eslint-disable-next-line vue/max-len
|
|
23351
|
-
length: ((
|
|
23355
|
+
length: (($ = b == null ? void 0 : b.properties) == null ? void 0 : $.minLength) || ((B = b == null ? void 0 : b.properties) != null && B.ignoreMinCountCheck ? 0 : (O = b == null ? void 0 : b.properties) == null ? void 0 : O.minCount) || 0
|
|
23352
23356
|
})
|
|
23353
23357
|
), (L = b == null ? void 0 : b.properties) != null && L.isLengthConfigurator && u.value && v.value > 0) {
|
|
23354
23358
|
const Z = v.value, V = u.value.quantity || 1;
|
|
@@ -23361,7 +23365,7 @@ const V_ = {
|
|
|
23361
23365
|
closeDialog: R
|
|
23362
23366
|
}), (b, k) => {
|
|
23363
23367
|
var L;
|
|
23364
|
-
const x = Ve,
|
|
23368
|
+
const x = Ve, $ = Xg, B = Xd, O = Ei;
|
|
23365
23369
|
return w(), ne(g1, {
|
|
23366
23370
|
ref: "base-dialog-reference",
|
|
23367
23371
|
show: !M(lt)(r.value) && !M(lt)(u.value),
|
|
@@ -23429,7 +23433,7 @@ const V_ = {
|
|
|
23429
23433
|
onInput: k[5] || (k[5] = (V) => M(Tt)(g.value, "quantity")),
|
|
23430
23434
|
onFocus: M(at)
|
|
23431
23435
|
}, null, 8, ["value", "parse", "step", "onFocus"]),
|
|
23432
|
-
o.value ? (w(), ne(
|
|
23436
|
+
o.value ? (w(), ne($, {
|
|
23433
23437
|
key: 0,
|
|
23434
23438
|
class: "bg-orange-100 font-bold"
|
|
23435
23439
|
}, {
|
|
@@ -23444,7 +23448,7 @@ const V_ = {
|
|
|
23444
23448
|
!g.value.quantity.feedback && M(Sn).getProductMultiplicity(r.value) !== 1 ? {
|
|
23445
23449
|
name: "feedback",
|
|
23446
23450
|
fn: I(() => [
|
|
23447
|
-
|
|
23451
|
+
P("span", m1, "Количество должно быть кратно " + q(M(Sn).getProductMultiplicity(r.value)), 1)
|
|
23448
23452
|
]),
|
|
23449
23453
|
key: "0"
|
|
23450
23454
|
} : void 0
|
|
@@ -23533,13 +23537,13 @@ const V_ = {
|
|
|
23533
23537
|
placement: t.popoverPosition
|
|
23534
23538
|
}, {
|
|
23535
23539
|
trigger: I(() => [
|
|
23536
|
-
|
|
23537
|
-
|
|
23540
|
+
P("div", y1, [
|
|
23541
|
+
P("a", {
|
|
23538
23542
|
href: t.nameLink ?? "#",
|
|
23539
23543
|
class: "text-base no-underline",
|
|
23540
23544
|
onClick: a[1] || (a[1] = (d) => r(d))
|
|
23541
23545
|
}, [
|
|
23542
|
-
|
|
23546
|
+
P("span", {
|
|
23543
23547
|
class: je({ "line-through": !t.client.isActive })
|
|
23544
23548
|
}, q(t.client.name), 3),
|
|
23545
23549
|
t.showSalesDirection && t.client.salesDirection ? (w(), A("span", {
|
|
@@ -23577,15 +23581,15 @@ const V_ = {
|
|
|
23577
23581
|
};
|
|
23578
23582
|
function R1(t, e) {
|
|
23579
23583
|
return w(), A("svg", T1, [...e[0] || (e[0] = [
|
|
23580
|
-
|
|
23584
|
+
P("g", {
|
|
23581
23585
|
fill: "none",
|
|
23582
23586
|
stroke: "currentColor",
|
|
23583
23587
|
"stroke-linecap": "round",
|
|
23584
23588
|
"stroke-linejoin": "round",
|
|
23585
23589
|
"stroke-width": "2"
|
|
23586
23590
|
}, [
|
|
23587
|
-
|
|
23588
|
-
|
|
23591
|
+
P("path", { d: "M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
|
|
23592
|
+
P("path", { d: "m3 7l9 6l9-6" })
|
|
23589
23593
|
], -1)
|
|
23590
23594
|
])]);
|
|
23591
23595
|
}
|
|
@@ -23603,7 +23607,7 @@ const F1 = He({ name: "tabler-mail", render: R1 }), B1 = ["href"], M1 = {}, y6 =
|
|
|
23603
23607
|
class: je({ "flex flex-row items-center gap-1": t.showEmailIcon })
|
|
23604
23608
|
}, [
|
|
23605
23609
|
t.showEmailIcon ? (w(), ne(i, { key: 0 })) : H("", !0),
|
|
23606
|
-
|
|
23610
|
+
P("a", {
|
|
23607
23611
|
href: `mailto:${t.email}`,
|
|
23608
23612
|
class: "no-underline"
|
|
23609
23613
|
}, q(t.email), 9, B1)
|
|
@@ -23617,7 +23621,7 @@ const F1 = He({ name: "tabler-mail", render: R1 }), B1 = ["href"], M1 = {}, y6 =
|
|
|
23617
23621
|
};
|
|
23618
23622
|
function E1(t, e) {
|
|
23619
23623
|
return w(), A("svg", A1, [...e[0] || (e[0] = [
|
|
23620
|
-
|
|
23624
|
+
P("path", {
|
|
23621
23625
|
fill: "currentColor",
|
|
23622
23626
|
d: "M444 49.9C431.3 38.2 379.9.9 265.3.4c0 0-135.1-8.1-200.9 52.3C27.8 89.3 14.9 143 13.5 209.5s-3.1 191.1 117 224.9h.1l-.1 51.6s-.8 20.9 13 25.1c16.6 5.2 26.4-10.7 42.3-27.8c8.7-9.4 20.7-23.2 29.8-33.7c82.2 6.9 145.3-8.9 152.5-11.2c16.6-5.4 110.5-17.4 125.7-142c15.8-128.6-7.6-209.8-49.8-246.5M457.9 287c-12.9 104-89 110.6-103 115.1c-6 1.9-61.5 15.7-131.2 11.2c0 0-52 62.7-68.2 79c-5.3 5.3-11.1 4.8-11-5.7c0-6.9.4-85.7.4-85.7q-.15 0 0 0C43.1 372.7 49.1 266.6 50.2 211.1s11.6-101 42.6-131.6c55.7-50.5 170.4-43 170.4-43c96.9.4 143.3 29.6 154.1 39.4c35.7 30.6 53.9 103.8 40.6 211.1m-139-80.8c.4 8.6-12.5 9.2-12.9.6c-1.1-22-11.4-32.7-32.6-33.9c-8.6-.5-7.8-13.4.7-12.9c27.9 1.5 43.4 17.5 44.8 46.2m20.3 11.3c1-42.4-25.5-75.6-75.8-79.3c-8.5-.6-7.6-13.5.9-12.9c58 4.2 88.9 44.1 87.8 92.5c-.1 8.6-13.1 8.2-12.9-.3m47 13.4c.1 8.6-12.9 8.7-12.9.1c-.6-81.5-54.9-125.9-120.8-126.4c-8.5-.1-8.5-12.9 0-12.9c73.7.5 133 51.4 133.7 139.2M374.9 329v.2c-10.8 19-31 40-51.8 33.3l-.2-.3c-21.1-5.9-70.8-31.5-102.2-56.5c-16.2-12.8-31-27.9-42.4-42.4c-10.3-12.9-20.7-28.2-30.8-46.6c-21.3-38.5-26-55.7-26-55.7c-6.7-20.8 14.2-41 33.3-51.8h.2c9.2-4.8 18-3.2 23.9 3.9c0 0 12.4 14.8 17.7 22.1c5 6.8 11.7 17.7 15.2 23.8c6.1 10.9 2.3 22-3.7 26.6l-12 9.6c-6.1 4.9-5.3 14-5.3 14s17.8 67.3 84.3 84.3c0 0 9.1.8 14-5.3l9.6-12c4.6-6 15.7-9.8 26.6-3.7c14.7 8.3 33.4 21.2 45.8 32.9c7 5.7 8.6 14.4 3.8 23.6"
|
|
23623
23627
|
}, null, -1)
|
|
@@ -23630,49 +23634,49 @@ const ef = He({ name: "fa6-brands-viber", render: E1 }), I1 = {
|
|
|
23630
23634
|
}, O1 = ["id"], z1 = ["id"], L1 = ["fill"], D1 = ["fill"];
|
|
23631
23635
|
function N1(t, e) {
|
|
23632
23636
|
return w(), A("svg", I1, [
|
|
23633
|
-
|
|
23634
|
-
|
|
23637
|
+
P("defs", null, [
|
|
23638
|
+
P("linearGradient", {
|
|
23635
23639
|
id: t.idMap.SVGBRLHCcSy,
|
|
23636
23640
|
x1: "50%",
|
|
23637
23641
|
x2: "50%",
|
|
23638
23642
|
y1: "100%",
|
|
23639
23643
|
y2: "0%"
|
|
23640
23644
|
}, [...e[0] || (e[0] = [
|
|
23641
|
-
|
|
23645
|
+
P("stop", {
|
|
23642
23646
|
offset: "0%",
|
|
23643
23647
|
"stop-color": "#1FAF38"
|
|
23644
23648
|
}, null, -1),
|
|
23645
|
-
|
|
23649
|
+
P("stop", {
|
|
23646
23650
|
offset: "100%",
|
|
23647
23651
|
"stop-color": "#60D669"
|
|
23648
23652
|
}, null, -1)
|
|
23649
23653
|
])], 8, O1),
|
|
23650
|
-
|
|
23654
|
+
P("linearGradient", {
|
|
23651
23655
|
id: t.idMap.SVGHW6lecxh,
|
|
23652
23656
|
x1: "50%",
|
|
23653
23657
|
x2: "50%",
|
|
23654
23658
|
y1: "100%",
|
|
23655
23659
|
y2: "0%"
|
|
23656
23660
|
}, [...e[1] || (e[1] = [
|
|
23657
|
-
|
|
23661
|
+
P("stop", {
|
|
23658
23662
|
offset: "0%",
|
|
23659
23663
|
"stop-color": "#F9F9F9"
|
|
23660
23664
|
}, null, -1),
|
|
23661
|
-
|
|
23665
|
+
P("stop", {
|
|
23662
23666
|
offset: "100%",
|
|
23663
23667
|
"stop-color": "#FFF"
|
|
23664
23668
|
}, null, -1)
|
|
23665
23669
|
])], 8, z1)
|
|
23666
23670
|
]),
|
|
23667
|
-
|
|
23671
|
+
P("path", {
|
|
23668
23672
|
fill: "url(#" + t.idMap.SVGBRLHCcSy + ")",
|
|
23669
23673
|
d: "M5.463 127.456c-.006 21.677 5.658 42.843 16.428 61.499L4.433 252.697l65.232-17.104a123 123 0 0 0 58.8 14.97h.054c67.815 0 123.018-55.183 123.047-123.01c.013-32.867-12.775-63.773-36.009-87.025c-23.23-23.25-54.125-36.061-87.043-36.076c-67.823 0-123.022 55.18-123.05 123.004"
|
|
23670
23674
|
}, null, 8, L1),
|
|
23671
|
-
|
|
23675
|
+
P("path", {
|
|
23672
23676
|
fill: "url(#" + t.idMap.SVGHW6lecxh + ")",
|
|
23673
23677
|
d: "M1.07 127.416c-.007 22.457 5.86 44.38 17.014 63.704L0 257.147l67.571-17.717c18.618 10.151 39.58 15.503 60.91 15.511h.055c70.248 0 127.434-57.168 127.464-127.423c.012-34.048-13.236-66.065-37.3-90.15C194.633 13.286 162.633.014 128.536 0C58.276 0 1.099 57.16 1.071 127.416m40.24 60.376l-2.523-4.005c-10.606-16.864-16.204-36.352-16.196-56.363C22.614 69.029 70.138 21.52 128.576 21.52c28.3.012 54.896 11.044 74.9 31.06c20.003 20.018 31.01 46.628 31.003 74.93c-.026 58.395-47.551 105.91-105.943 105.91h-.042c-19.013-.01-37.66-5.116-53.922-14.765l-3.87-2.295l-40.098 10.513z"
|
|
23674
23678
|
}, null, 8, D1),
|
|
23675
|
-
e[2] || (e[2] =
|
|
23679
|
+
e[2] || (e[2] = P("path", {
|
|
23676
23680
|
fill: "#FFF",
|
|
23677
23681
|
d: "M96.678 74.148c-2.386-5.303-4.897-5.41-7.166-5.503c-1.858-.08-3.982-.074-6.104-.074c-2.124 0-5.575.799-8.492 3.984c-2.92 3.188-11.148 10.892-11.148 26.561s11.413 30.813 13.004 32.94c1.593 2.123 22.033 35.307 54.405 48.073c26.904 10.609 32.379 8.499 38.218 7.967c5.84-.53 18.844-7.702 21.497-15.139c2.655-7.436 2.655-13.81 1.859-15.142c-.796-1.327-2.92-2.124-6.105-3.716s-18.844-9.298-21.763-10.361c-2.92-1.062-5.043-1.592-7.167 1.597c-2.124 3.184-8.223 10.356-10.082 12.48c-1.857 2.129-3.716 2.394-6.9.801c-3.187-1.598-13.444-4.957-25.613-15.806c-9.468-8.442-15.86-18.867-17.718-22.056c-1.858-3.184-.199-4.91 1.398-6.497c1.431-1.427 3.186-3.719 4.78-5.578c1.588-1.86 2.118-3.187 3.18-5.311c1.063-2.126.531-3.986-.264-5.579c-.798-1.593-6.987-17.343-9.819-23.64"
|
|
23678
23682
|
}, null, -1))
|
|
@@ -23688,29 +23692,29 @@ const tf = He({ name: "logos-whatsapp-icon", render: N1, setup() {
|
|
|
23688
23692
|
}, W1 = ["id"], V1 = ["fill"];
|
|
23689
23693
|
function j1(t, e) {
|
|
23690
23694
|
return w(), A("svg", H1, [
|
|
23691
|
-
|
|
23692
|
-
|
|
23695
|
+
P("defs", null, [
|
|
23696
|
+
P("linearGradient", {
|
|
23693
23697
|
id: t.idMap.SVGuySfwdaH,
|
|
23694
23698
|
x1: "50%",
|
|
23695
23699
|
x2: "50%",
|
|
23696
23700
|
y1: "0%",
|
|
23697
23701
|
y2: "100%"
|
|
23698
23702
|
}, [...e[0] || (e[0] = [
|
|
23699
|
-
|
|
23703
|
+
P("stop", {
|
|
23700
23704
|
offset: "0%",
|
|
23701
23705
|
"stop-color": "#2AABEE"
|
|
23702
23706
|
}, null, -1),
|
|
23703
|
-
|
|
23707
|
+
P("stop", {
|
|
23704
23708
|
offset: "100%",
|
|
23705
23709
|
"stop-color": "#229ED9"
|
|
23706
23710
|
}, null, -1)
|
|
23707
23711
|
])], 8, W1)
|
|
23708
23712
|
]),
|
|
23709
|
-
|
|
23713
|
+
P("path", {
|
|
23710
23714
|
fill: "url(#" + t.idMap.SVGuySfwdaH + ")",
|
|
23711
23715
|
d: "M128 0C94.06 0 61.48 13.494 37.5 37.49A128.04 128.04 0 0 0 0 128c0 33.934 13.5 66.514 37.5 90.51C61.48 242.506 94.06 256 128 256s66.52-13.494 90.5-37.49c24-23.996 37.5-56.576 37.5-90.51s-13.5-66.514-37.5-90.51C194.52 13.494 161.94 0 128 0"
|
|
23712
23716
|
}, null, 8, V1),
|
|
23713
|
-
e[1] || (e[1] =
|
|
23717
|
+
e[1] || (e[1] = P("path", {
|
|
23714
23718
|
fill: "#FFF",
|
|
23715
23719
|
d: "M57.94 126.648q55.98-24.384 74.64-32.152c35.56-14.786 42.94-17.354 47.76-17.441c1.06-.017 3.42.245 4.96 1.49c1.28 1.05 1.64 2.47 1.82 3.467c.16.996.38 3.266.2 5.038c-1.92 20.24-10.26 69.356-14.5 92.026c-1.78 9.592-5.32 12.808-8.74 13.122c-7.44.684-13.08-4.912-20.28-9.63c-11.26-7.386-17.62-11.982-28.56-19.188c-12.64-8.328-4.44-12.906 2.76-20.386c1.88-1.958 34.64-31.748 35.26-34.45c.08-.338.16-1.598-.6-2.262c-.74-.666-1.84-.438-2.64-.258c-1.14.256-19.12 12.152-54 35.686c-5.1 3.508-9.72 5.218-13.88 5.128c-4.56-.098-13.36-2.584-19.9-4.708c-8-2.606-14.38-3.984-13.82-8.41c.28-2.304 3.46-4.662 9.52-7.072"
|
|
23716
23720
|
}, null, -1))
|
|
@@ -23725,7 +23729,7 @@ const nf = He({ name: "logos-telegram", render: j1, setup() {
|
|
|
23725
23729
|
};
|
|
23726
23730
|
function U1(t, e) {
|
|
23727
23731
|
return w(), A("svg", q1, [...e[0] || (e[0] = [
|
|
23728
|
-
|
|
23732
|
+
P("path", {
|
|
23729
23733
|
fill: "currentColor",
|
|
23730
23734
|
d: "M391 480c-19.52 0-46.94-7.06-88-30c-49.93-28-88.55-53.85-138.21-103.38C116.91 298.77 93.61 267.79 61 208.45c-36.84-67-30.56-102.12-23.54-117.13C45.82 73.38 58.16 62.65 74.11 52a176.3 176.3 0 0 1 28.64-15.2c1-.43 1.93-.84 2.76-1.21c4.95-2.23 12.45-5.6 21.95-2c6.34 2.38 12 7.25 20.86 16c18.17 17.92 43 57.83 52.16 77.43c6.15 13.21 10.22 21.93 10.23 31.71c0 11.45-5.76 20.28-12.75 29.81c-1.31 1.79-2.61 3.5-3.87 5.16c-7.61 10-9.28 12.89-8.18 18.05c2.23 10.37 18.86 41.24 46.19 68.51s57.31 42.85 67.72 45.07c5.38 1.15 8.33-.59 18.65-8.47c1.48-1.13 3-2.3 4.59-3.47c10.66-7.93 19.08-13.54 30.26-13.54h.06c9.73 0 18.06 4.22 31.86 11.18c18 9.08 59.11 33.59 77.14 51.78c8.77 8.84 13.66 14.48 16.05 20.81c3.6 9.53.21 17-2 22c-.37.83-.78 1.74-1.21 2.75a176.5 176.5 0 0 1-15.29 28.58c-10.63 15.9-21.4 28.21-39.38 36.58A67.4 67.4 0 0 1 391 480"
|
|
23731
23735
|
}, null, -1)
|
|
@@ -23738,7 +23742,7 @@ const sf = He({ name: "ion-call", render: U1 }), X1 = {
|
|
|
23738
23742
|
};
|
|
23739
23743
|
function Y1(t, e) {
|
|
23740
23744
|
return w(), A("svg", X1, [...e[0] || (e[0] = [
|
|
23741
|
-
|
|
23745
|
+
P("path", {
|
|
23742
23746
|
fill: "none",
|
|
23743
23747
|
stroke: "currentColor",
|
|
23744
23748
|
"stroke-linecap": "round",
|
|
@@ -23779,13 +23783,13 @@ const K1 = He({ name: "tabler-phone-call", render: Y1 }), G1 = {
|
|
|
23779
23783
|
return (a, l) => {
|
|
23780
23784
|
const c = K1, u = sf, d = nf, h = tf, g = ef;
|
|
23781
23785
|
return w(), A("div", null, [
|
|
23782
|
-
|
|
23786
|
+
P("div", {
|
|
23783
23787
|
class: je({ "border-xl relative inline-flex items-center rounded px-2": i.value && o.value, "min-w-10": !0 }),
|
|
23784
23788
|
onClick: l[0] || (l[0] = (f) => o.value = !o.value),
|
|
23785
23789
|
onFocusout: l[1] || (l[1] = (f) => o.value = !1),
|
|
23786
23790
|
onMouseleave: l[2] || (l[2] = (f) => o.value = !1)
|
|
23787
23791
|
}, [
|
|
23788
|
-
|
|
23792
|
+
P("div", {
|
|
23789
23793
|
class: je({ "flex flex-row items-center gap-1": t.showPhoneIcon })
|
|
23790
23794
|
}, [
|
|
23791
23795
|
t.showPhoneIcon ? (w(), ne(c, { key: 0 })) : H("", !0),
|
|
@@ -23836,7 +23840,7 @@ const K1 = He({ name: "tabler-phone-call", render: Y1 }), G1 = {
|
|
|
23836
23840
|
};
|
|
23837
23841
|
function iw(t, e) {
|
|
23838
23842
|
return w(), A("svg", nw, [...e[0] || (e[0] = [
|
|
23839
|
-
|
|
23843
|
+
P("path", {
|
|
23840
23844
|
fill: "currentColor",
|
|
23841
23845
|
d: "m20 8l-8 5l-8-5V6l8 5l8-5m0-2H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2"
|
|
23842
23846
|
}, null, -1)
|
|
@@ -23909,7 +23913,7 @@ const sw = He({ name: "mdi-envelope", render: iw }), rw = { class: "flex flex-co
|
|
|
23909
23913
|
trigger: I(() => {
|
|
23910
23914
|
var y, C, _, R;
|
|
23911
23915
|
return [
|
|
23912
|
-
|
|
23916
|
+
P("div", {
|
|
23913
23917
|
class: je(`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}`),
|
|
23914
23918
|
style: es(t.styles),
|
|
23915
23919
|
onMouseenter: c[0] || (c[0] = (F) => a.value = !0),
|
|
@@ -23917,7 +23921,7 @@ const sw = He({ name: "mdi-envelope", render: iw }), rw = { class: "flex flex-co
|
|
|
23917
23921
|
onMouseleave: c[2] || (c[2] = (F) => a.value = !1),
|
|
23918
23922
|
onFocusout: c[3] || (c[3] = (F) => a.value = !1)
|
|
23919
23923
|
}, [
|
|
23920
|
-
|
|
23924
|
+
P("div", null, [
|
|
23921
23925
|
t.fullView && (t.contact.name || (C = t.contact) != null && C.position) ? (w(), A("div", ow, [
|
|
23922
23926
|
J(q(t.contact.name) + " ", 1),
|
|
23923
23927
|
(_ = t.contact) != null && _.position ? (w(), A("span", aw, q((R = t.contact) == null ? void 0 : R.position), 1)) : H("", !0)
|
|
@@ -23977,7 +23981,7 @@ const sw = He({ name: "mdi-envelope", render: iw }), rw = { class: "flex flex-co
|
|
|
23977
23981
|
(y = t.contact) != null && y.position ? (w(), A("span", vw, q((C = t.contact) == null ? void 0 : C.position), 1)) : H("", !0)
|
|
23978
23982
|
])) : H("", !0),
|
|
23979
23983
|
(_ = t.contact) != null && _.comment ? (w(), A("div", yw, [
|
|
23980
|
-
c[4] || (c[4] =
|
|
23984
|
+
c[4] || (c[4] = P("sup", null, "**", -1)),
|
|
23981
23985
|
J(" " + q((R = t.contact) == null ? void 0 : R.comment), 1)
|
|
23982
23986
|
])) : H("", !0)
|
|
23983
23987
|
];
|
|
@@ -23985,7 +23989,7 @@ const sw = He({ name: "mdi-envelope", render: iw }), rw = { class: "flex flex-co
|
|
|
23985
23989
|
_: 1
|
|
23986
23990
|
}, 8, ["disabled"]),
|
|
23987
23991
|
t.fullView && ((v = t.contact) != null && v.comment) ? (w(), A("div", bw, [
|
|
23988
|
-
c[5] || (c[5] =
|
|
23992
|
+
c[5] || (c[5] = P("sup", null, "**", -1)),
|
|
23989
23993
|
J(" " + q((p = t.contact) == null ? void 0 : p.comment), 1)
|
|
23990
23994
|
])) : H("", !0)
|
|
23991
23995
|
]);
|
|
@@ -24061,7 +24065,7 @@ const ww = {
|
|
|
24061
24065
|
};
|
|
24062
24066
|
function xw(t, e) {
|
|
24063
24067
|
return w(), A("svg", ww, [...e[0] || (e[0] = [
|
|
24064
|
-
|
|
24068
|
+
P("path", {
|
|
24065
24069
|
fill: "currentColor",
|
|
24066
24070
|
d: "M16 12a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2m-6 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2m-6 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2"
|
|
24067
24071
|
}, null, -1)
|
|
@@ -24091,13 +24095,13 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24091
24095
|
const { from: b, to: k } = n;
|
|
24092
24096
|
return !b || !k || !Cc(b, sm(b)) || !Cc(k, wa(k)) ? null : [b.getFullYear() * 12 + b.getMonth(), k.getFullYear() * 12 + k.getMonth()];
|
|
24093
24097
|
}), m = E(() => h.value && d.value !== null && g.value !== null ? v(d.value, g.value) : u.value !== null ? g.value === null ? [u.value, u.value] : v(u.value, g.value) : f.value), v = (b, k) => b <= k ? [b, k] : [k, b], p = (b, k) => {
|
|
24094
|
-
const x = b * 12 + k,
|
|
24095
|
-
return
|
|
24098
|
+
const x = b * 12 + k, $ = m.value;
|
|
24099
|
+
return $ && x >= $[0] && x <= $[1] ? [x === $[0] || x === $[1] ? "sc-month--bound" : "sc-month--in-range"] : [];
|
|
24096
24100
|
}, y = (b, k) => {
|
|
24097
|
-
const [x,
|
|
24101
|
+
const [x, $] = v(b, k);
|
|
24098
24102
|
u.value = null, i("select", {
|
|
24099
24103
|
from: new Date(Math.floor(x / 12), x % 12, 1),
|
|
24100
|
-
to: wa(new Date(Math.floor(
|
|
24104
|
+
to: wa(new Date(Math.floor($ / 12), $ % 12, 1))
|
|
24101
24105
|
});
|
|
24102
24106
|
}, C = (b) => {
|
|
24103
24107
|
u.value === null ? (u.value = b, i("select", { from: new Date(Math.floor(b / 12), b % 12, 1), to: wa(new Date(Math.floor(b / 12), b % 12, 1)) })) : y(u.value, b);
|
|
@@ -24133,37 +24137,37 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24133
24137
|
return w(), A("div", {
|
|
24134
24138
|
class: "flex select-none items-start gap-2",
|
|
24135
24139
|
style: es(r.value),
|
|
24136
|
-
onPointerleave: k[2] || (k[2] = (
|
|
24140
|
+
onPointerleave: k[2] || (k[2] = ($) => g.value = null)
|
|
24137
24141
|
}, [
|
|
24138
24142
|
z(x, {
|
|
24139
24143
|
size: "small",
|
|
24140
24144
|
quaternary: "",
|
|
24141
24145
|
class: "mt-5",
|
|
24142
|
-
onClick: k[0] || (k[0] = (
|
|
24146
|
+
onClick: k[0] || (k[0] = ($) => a.value -= 1)
|
|
24143
24147
|
}, {
|
|
24144
24148
|
default: I(() => [...k[3] || (k[3] = [
|
|
24145
24149
|
J(" ‹ ", -1)
|
|
24146
24150
|
])]),
|
|
24147
24151
|
_: 1
|
|
24148
24152
|
}),
|
|
24149
|
-
|
|
24153
|
+
P("div", {
|
|
24150
24154
|
class: je(["grid flex-1 gap-4 sm:gap-8", c.value.length === 1 ? "grid-cols-1" : "grid-cols-3"])
|
|
24151
24155
|
}, [
|
|
24152
|
-
(w(!0), A(be, null, Ct(c.value, (
|
|
24153
|
-
key:
|
|
24156
|
+
(w(!0), A(be, null, Ct(c.value, ($) => (w(), A("div", {
|
|
24157
|
+
key: $,
|
|
24154
24158
|
class: "flex flex-col gap-1"
|
|
24155
24159
|
}, [
|
|
24156
|
-
|
|
24157
|
-
|
|
24160
|
+
P("div", Cw, q($), 1),
|
|
24161
|
+
P("div", Sw, [
|
|
24158
24162
|
(w(!0), A(be, null, Ct(M(rf), (B, O) => (w(), A("button", {
|
|
24159
24163
|
key: B,
|
|
24160
24164
|
type: "button",
|
|
24161
|
-
class: je(["sc-month cursor-pointer rounded border-0 px-1 py-1 text-sm", p(
|
|
24162
|
-
onPointerdown: Rn((L) => R(
|
|
24163
|
-
onPointerenter: (L) => F(
|
|
24165
|
+
class: je(["sc-month cursor-pointer rounded border-0 px-1 py-1 text-sm", p($, O)]),
|
|
24166
|
+
onPointerdown: Rn((L) => R($, O), ["prevent"]),
|
|
24167
|
+
onPointerenter: (L) => F($, O),
|
|
24164
24168
|
onKeydown: [
|
|
24165
|
-
Ki(Rn((L) => C(
|
|
24166
|
-
Ki(Rn((L) => C(
|
|
24169
|
+
Ki(Rn((L) => C($ * 12 + O), ["prevent"]), ["enter"]),
|
|
24170
|
+
Ki(Rn((L) => C($ * 12 + O), ["prevent"]), ["space"])
|
|
24167
24171
|
]
|
|
24168
24172
|
}, q(B), 43, $w))), 128))
|
|
24169
24173
|
])
|
|
@@ -24173,7 +24177,7 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24173
24177
|
size: "small",
|
|
24174
24178
|
quaternary: "",
|
|
24175
24179
|
class: "mt-5",
|
|
24176
|
-
onClick: k[1] || (k[1] = (
|
|
24180
|
+
onClick: k[1] || (k[1] = ($) => a.value += 1)
|
|
24177
24181
|
}, {
|
|
24178
24182
|
default: I(() => [...k[4] || (k[4] = [
|
|
24179
24183
|
J(" › ", -1)
|
|
@@ -24196,7 +24200,7 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24196
24200
|
return (i, s) => {
|
|
24197
24201
|
const r = Oe;
|
|
24198
24202
|
return w(), A("div", Fw, [
|
|
24199
|
-
|
|
24203
|
+
P("div", Bw, [
|
|
24200
24204
|
z(r, {
|
|
24201
24205
|
size: "small",
|
|
24202
24206
|
quaternary: "",
|
|
@@ -24207,7 +24211,7 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24207
24211
|
])]),
|
|
24208
24212
|
_: 1
|
|
24209
24213
|
}),
|
|
24210
|
-
|
|
24214
|
+
P("span", Mw, q(t.year), 1),
|
|
24211
24215
|
z(r, {
|
|
24212
24216
|
size: "small",
|
|
24213
24217
|
quaternary: "",
|
|
@@ -24219,7 +24223,7 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24219
24223
|
_: 1
|
|
24220
24224
|
})
|
|
24221
24225
|
]),
|
|
24222
|
-
|
|
24226
|
+
P("div", Aw, [
|
|
24223
24227
|
(w(!0), A(be, null, Ct(M(rf), (o, a) => (w(), ne(r, {
|
|
24224
24228
|
key: o,
|
|
24225
24229
|
size: "small",
|
|
@@ -24358,7 +24362,7 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24358
24362
|
return (i, s) => {
|
|
24359
24363
|
var r, o;
|
|
24360
24364
|
return w(), A("div", zw, [
|
|
24361
|
-
|
|
24365
|
+
P("div", Lw, [
|
|
24362
24366
|
z(Uu, {
|
|
24363
24367
|
value: t.from,
|
|
24364
24368
|
clearable: t.clearable,
|
|
@@ -24368,7 +24372,7 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24368
24372
|
class: "@xs:flex-1",
|
|
24369
24373
|
"onUpdate:value": s[0] || (s[0] = (a) => n("update:from", a))
|
|
24370
24374
|
}, null, 8, ["value", "clearable", "disabled", "placeholder", "date-format"]),
|
|
24371
|
-
s[2] || (s[2] =
|
|
24375
|
+
s[2] || (s[2] = P("span", { class: "hidden text-gray-400 @xs:inline" }, "–", -1)),
|
|
24372
24376
|
z(Uu, {
|
|
24373
24377
|
value: t.to,
|
|
24374
24378
|
clearable: t.clearable,
|
|
@@ -24419,10 +24423,10 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24419
24423
|
return (d, h) => {
|
|
24420
24424
|
const g = Oe, f = Il, m = Bn, v = Gg;
|
|
24421
24425
|
return w(), A("div", Nw, [
|
|
24422
|
-
|
|
24426
|
+
P("div", Hw, [
|
|
24423
24427
|
z(f, { class: "max-h-96" }, {
|
|
24424
24428
|
default: I(() => [
|
|
24425
|
-
|
|
24429
|
+
P("div", Ww, [
|
|
24426
24430
|
(w(!0), A(be, null, Ct(u.value, (p) => (w(), A(be, {
|
|
24427
24431
|
key: p.key
|
|
24428
24432
|
}, [
|
|
@@ -24523,7 +24527,7 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24523
24527
|
"onUpdate:show": R[1] || (R[1] = (k) => i("update:show", k))
|
|
24524
24528
|
}, {
|
|
24525
24529
|
footer: I(() => [
|
|
24526
|
-
|
|
24530
|
+
P("div", Gw, [
|
|
24527
24531
|
z(F, {
|
|
24528
24532
|
text: "",
|
|
24529
24533
|
type: "info",
|
|
@@ -24534,7 +24538,7 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24534
24538
|
]),
|
|
24535
24539
|
_: 1
|
|
24536
24540
|
}),
|
|
24537
|
-
|
|
24541
|
+
P("div", Zw, [
|
|
24538
24542
|
z(F, {
|
|
24539
24543
|
type: "primary",
|
|
24540
24544
|
onClick: C
|
|
@@ -24556,8 +24560,8 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24556
24560
|
])
|
|
24557
24561
|
]),
|
|
24558
24562
|
default: I(() => [
|
|
24559
|
-
|
|
24560
|
-
|
|
24563
|
+
P("div", Xw, [
|
|
24564
|
+
P("div", Yw, [
|
|
24561
24565
|
z(af, {
|
|
24562
24566
|
from: u.value.from,
|
|
24563
24567
|
to: u.value.to,
|
|
@@ -24686,7 +24690,7 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24686
24690
|
return (s, r) => (w(), A("span", {
|
|
24687
24691
|
class: je({ "flex flex-col": t.isTimeOnSecondLine })
|
|
24688
24692
|
}, [
|
|
24689
|
-
|
|
24693
|
+
P("span", nx, q(n.value), 1),
|
|
24690
24694
|
t.isShowTime ? (w(), A("span", {
|
|
24691
24695
|
key: 0,
|
|
24692
24696
|
class: je([{ "text-sc-grey": t.isTimeSecondary, "ml-1": !t.isTimeOnSecondLine }, "sc-lbl-time"])
|
|
@@ -24704,13 +24708,13 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24704
24708
|
return (e, n) => {
|
|
24705
24709
|
const i = Zo, s = Oe, r = Ai;
|
|
24706
24710
|
return w(), A("div", sx, [
|
|
24707
|
-
|
|
24711
|
+
P("div", rx, [
|
|
24708
24712
|
Re(e.$slots, "main")
|
|
24709
24713
|
]),
|
|
24710
|
-
|
|
24711
|
-
|
|
24714
|
+
P("div", null, [
|
|
24715
|
+
P("div", ox, [
|
|
24712
24716
|
Re(e.$slots, "extra-buttons"),
|
|
24713
|
-
|
|
24717
|
+
P("div", ax, [
|
|
24714
24718
|
t.showCloseButton ? (w(), ne(r, {
|
|
24715
24719
|
key: 0,
|
|
24716
24720
|
placement: "bottom"
|
|
@@ -24745,7 +24749,7 @@ const kw = He({ name: "mdi-dots-horizontal", render: xw }), qu = "date-range.dia
|
|
|
24745
24749
|
};
|
|
24746
24750
|
function ux(t, e) {
|
|
24747
24751
|
return w(), A("svg", cx, [...e[0] || (e[0] = [
|
|
24748
|
-
|
|
24752
|
+
P("path", {
|
|
24749
24753
|
fill: "none",
|
|
24750
24754
|
stroke: "currentColor",
|
|
24751
24755
|
"stroke-linecap": "round",
|
|
@@ -24753,7 +24757,7 @@ function ux(t, e) {
|
|
|
24753
24757
|
"stroke-width": "32",
|
|
24754
24758
|
d: "M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40"
|
|
24755
24759
|
}, null, -1),
|
|
24756
|
-
|
|
24760
|
+
P("path", {
|
|
24757
24761
|
fill: "none",
|
|
24758
24762
|
stroke: "currentColor",
|
|
24759
24763
|
"stroke-linecap": "round",
|
|
@@ -24806,9 +24810,9 @@ const dx = He({ name: "ion-download-outline", render: ux }), hx = {}, S6 = /* @_
|
|
|
24806
24810
|
z(M(Qg), null, {
|
|
24807
24811
|
default: I(() => [
|
|
24808
24812
|
Re(a.$slots, "dragged-area", {}, () => [
|
|
24809
|
-
|
|
24813
|
+
P("div", null, [
|
|
24810
24814
|
z(c, { class: "text-2xl" }),
|
|
24811
|
-
|
|
24815
|
+
P("div", null, q(t.draggedAreaText ?? "Перетащите в эту область файл, который необходимо загрузить."), 1)
|
|
24812
24816
|
])
|
|
24813
24817
|
])
|
|
24814
24818
|
]),
|
|
@@ -24826,7 +24830,7 @@ const dx = He({ name: "ion-download-outline", render: ux }), hx = {}, S6 = /* @_
|
|
|
24826
24830
|
};
|
|
24827
24831
|
function gx(t, e) {
|
|
24828
24832
|
return w(), A("svg", fx, [...e[0] || (e[0] = [
|
|
24829
|
-
|
|
24833
|
+
P("path", {
|
|
24830
24834
|
fill: "none",
|
|
24831
24835
|
stroke: "currentColor",
|
|
24832
24836
|
"stroke-linecap": "square",
|
|
@@ -24843,7 +24847,7 @@ const mx = He({ name: "ion-checkmark-done-sharp", render: gx }), px = {
|
|
|
24843
24847
|
};
|
|
24844
24848
|
function vx(t, e) {
|
|
24845
24849
|
return w(), A("svg", px, [...e[0] || (e[0] = [
|
|
24846
|
-
|
|
24850
|
+
P("path", {
|
|
24847
24851
|
fill: "none",
|
|
24848
24852
|
stroke: "currentColor",
|
|
24849
24853
|
"stroke-linecap": "round",
|
|
@@ -24851,7 +24855,7 @@ function vx(t, e) {
|
|
|
24851
24855
|
"stroke-width": "32",
|
|
24852
24856
|
d: "M368 128h80m-384 0h240m64 256h80m-384 0h240m-96-128h240m-384 0h80"
|
|
24853
24857
|
}, null, -1),
|
|
24854
|
-
|
|
24858
|
+
P("circle", {
|
|
24855
24859
|
cx: "336",
|
|
24856
24860
|
cy: "128",
|
|
24857
24861
|
r: "32",
|
|
@@ -24861,7 +24865,7 @@ function vx(t, e) {
|
|
|
24861
24865
|
"stroke-linejoin": "round",
|
|
24862
24866
|
"stroke-width": "32"
|
|
24863
24867
|
}, null, -1),
|
|
24864
|
-
|
|
24868
|
+
P("circle", {
|
|
24865
24869
|
cx: "176",
|
|
24866
24870
|
cy: "256",
|
|
24867
24871
|
r: "32",
|
|
@@ -24871,7 +24875,7 @@ function vx(t, e) {
|
|
|
24871
24875
|
"stroke-linejoin": "round",
|
|
24872
24876
|
"stroke-width": "32"
|
|
24873
24877
|
}, null, -1),
|
|
24874
|
-
|
|
24878
|
+
P("circle", {
|
|
24875
24879
|
cx: "336",
|
|
24876
24880
|
cy: "384",
|
|
24877
24881
|
r: "32",
|
|
@@ -24906,12 +24910,12 @@ const yx = He({ name: "ion-options-outline", render: vx }), bx = { class: "flex
|
|
|
24906
24910
|
return (l, c) => {
|
|
24907
24911
|
const u = yx, d = Oe, h = Ai, g = mx, f = Zo;
|
|
24908
24912
|
return w(), A("div", bx, [
|
|
24909
|
-
|
|
24913
|
+
P("div", _x, [
|
|
24910
24914
|
Re(l.$slots, "default")
|
|
24911
24915
|
]),
|
|
24912
|
-
|
|
24913
|
-
|
|
24914
|
-
|
|
24916
|
+
P("div", null, [
|
|
24917
|
+
P("div", wx, [
|
|
24918
|
+
P("div", xx, [
|
|
24915
24919
|
t.showEditButton ? (w(), ne(h, {
|
|
24916
24920
|
key: 0,
|
|
24917
24921
|
placement: "bottom"
|
|
@@ -25223,7 +25227,7 @@ const yx = He({ name: "ion-options-outline", render: vx }), bx = { class: "flex
|
|
|
25223
25227
|
};
|
|
25224
25228
|
function Bx(t, e) {
|
|
25225
25229
|
return w(), A("svg", Fx, [...e[0] || (e[0] = [
|
|
25226
|
-
|
|
25230
|
+
P("path", {
|
|
25227
25231
|
fill: "none",
|
|
25228
25232
|
stroke: "currentColor",
|
|
25229
25233
|
"stroke-linecap": "round",
|
|
@@ -25249,8 +25253,8 @@ const Mx = He({ name: "tabler-external-link", render: Bx }), Ax = { class: "flex
|
|
|
25249
25253
|
placement: "top-start"
|
|
25250
25254
|
}, {
|
|
25251
25255
|
trigger: I(() => [
|
|
25252
|
-
|
|
25253
|
-
|
|
25256
|
+
P("span", Ax, [
|
|
25257
|
+
P("a", {
|
|
25254
25258
|
href: t.url,
|
|
25255
25259
|
target: "_blank",
|
|
25256
25260
|
class: "no-underline"
|
|
@@ -25272,14 +25276,14 @@ const Mx = He({ name: "tabler-external-link", render: Bx }), Ax = { class: "flex
|
|
|
25272
25276
|
};
|
|
25273
25277
|
function zx(t, e) {
|
|
25274
25278
|
return w(), A("svg", Ox, [...e[0] || (e[0] = [
|
|
25275
|
-
|
|
25279
|
+
P("path", {
|
|
25276
25280
|
fill: "none",
|
|
25277
25281
|
stroke: "currentColor",
|
|
25278
25282
|
"stroke-miterlimit": "10",
|
|
25279
25283
|
"stroke-width": "32",
|
|
25280
25284
|
d: "M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192s192-86 192-192Z"
|
|
25281
25285
|
}, null, -1),
|
|
25282
|
-
|
|
25286
|
+
P("path", {
|
|
25283
25287
|
fill: "none",
|
|
25284
25288
|
stroke: "currentColor",
|
|
25285
25289
|
"stroke-linecap": "round",
|
|
@@ -25764,14 +25768,14 @@ function Da(t, e) {
|
|
|
25764
25768
|
if (_.isLeaf)
|
|
25765
25769
|
continue;
|
|
25766
25770
|
const { key: R, shallowLoaded: F } = _;
|
|
25767
|
-
if (g && F && _.children.forEach((
|
|
25768
|
-
|
|
25771
|
+
if (g && F && _.children.forEach(($) => {
|
|
25772
|
+
!$.disabled && !$.isLeaf && $.shallowLoaded && f.has($.key) && f.delete($.key);
|
|
25769
25773
|
}), _.disabled || !F)
|
|
25770
25774
|
continue;
|
|
25771
25775
|
let b = !0, k = !1, x = !0;
|
|
25772
|
-
for (const
|
|
25773
|
-
const B =
|
|
25774
|
-
if (
|
|
25776
|
+
for (const $ of _.children) {
|
|
25777
|
+
const B = $.key;
|
|
25778
|
+
if (!$.disabled) {
|
|
25775
25779
|
if (x && (x = !1), f.has(B))
|
|
25776
25780
|
k = !0;
|
|
25777
25781
|
else if (m.has(B)) {
|
|
@@ -25781,8 +25785,8 @@ function Da(t, e) {
|
|
|
25781
25785
|
break;
|
|
25782
25786
|
}
|
|
25783
25787
|
}
|
|
25784
|
-
b && !x ? (h && _.children.forEach((
|
|
25785
|
-
|
|
25788
|
+
b && !x ? (h && _.children.forEach(($) => {
|
|
25789
|
+
!$.disabled && f.has($.key) && f.delete($.key);
|
|
25786
25790
|
}), f.add(R)) : k && m.add(R), y && g && f.has(R) && f.delete(R);
|
|
25787
25791
|
}
|
|
25788
25792
|
}
|
|
@@ -26027,7 +26031,7 @@ function $2(t, e = {}) {
|
|
|
26027
26031
|
}, C);
|
|
26028
26032
|
},
|
|
26029
26033
|
check(_, R, F = {}) {
|
|
26030
|
-
const { cascade: b = !0, leafOnly: k = !1, checkStrategy: x = "all", allowNotLoaded:
|
|
26034
|
+
const { cascade: b = !0, leafOnly: k = !1, checkStrategy: x = "all", allowNotLoaded: $ = !1 } = F;
|
|
26031
26035
|
return Da({
|
|
26032
26036
|
checkedKeys: za(R),
|
|
26033
26037
|
indeterminateKeys: La(R),
|
|
@@ -26035,11 +26039,11 @@ function $2(t, e = {}) {
|
|
|
26035
26039
|
cascade: b,
|
|
26036
26040
|
leafOnly: k,
|
|
26037
26041
|
checkStrategy: x,
|
|
26038
|
-
allowNotLoaded:
|
|
26042
|
+
allowNotLoaded: $
|
|
26039
26043
|
}, C);
|
|
26040
26044
|
},
|
|
26041
26045
|
uncheck(_, R, F = {}) {
|
|
26042
|
-
const { cascade: b = !0, leafOnly: k = !1, checkStrategy: x = "all", allowNotLoaded:
|
|
26046
|
+
const { cascade: b = !0, leafOnly: k = !1, checkStrategy: x = "all", allowNotLoaded: $ = !1 } = F;
|
|
26043
26047
|
return Da({
|
|
26044
26048
|
checkedKeys: za(R),
|
|
26045
26049
|
indeterminateKeys: La(R),
|
|
@@ -26047,7 +26051,7 @@ function $2(t, e = {}) {
|
|
|
26047
26051
|
cascade: b,
|
|
26048
26052
|
leafOnly: k,
|
|
26049
26053
|
checkStrategy: x,
|
|
26050
|
-
allowNotLoaded:
|
|
26054
|
+
allowNotLoaded: $
|
|
26051
26055
|
}, C);
|
|
26052
26056
|
},
|
|
26053
26057
|
getNonLeafKeys(_ = {}) {
|
|
@@ -26132,9 +26136,9 @@ function B2() {
|
|
|
26132
26136
|
t.set(this, !0), e.set(this, !0);
|
|
26133
26137
|
}
|
|
26134
26138
|
function s(b, k, x) {
|
|
26135
|
-
const
|
|
26139
|
+
const $ = b[k];
|
|
26136
26140
|
return b[k] = function() {
|
|
26137
|
-
return x.apply(b, arguments),
|
|
26141
|
+
return x.apply(b, arguments), $.apply(b, arguments);
|
|
26138
26142
|
}, b;
|
|
26139
26143
|
}
|
|
26140
26144
|
function r(b, k) {
|
|
@@ -26158,10 +26162,10 @@ function B2() {
|
|
|
26158
26162
|
}, d = {};
|
|
26159
26163
|
function h() {
|
|
26160
26164
|
const b = function(k) {
|
|
26161
|
-
const { type: x, eventPhase:
|
|
26162
|
-
if (
|
|
26165
|
+
const { type: x, eventPhase: $, bubbles: B } = k, O = mo(k);
|
|
26166
|
+
if ($ === 2)
|
|
26163
26167
|
return;
|
|
26164
|
-
const L =
|
|
26168
|
+
const L = $ === 1 ? "capture" : "bubble";
|
|
26165
26169
|
let Z = O;
|
|
26166
26170
|
const V = [];
|
|
26167
26171
|
for (; Z === null && (Z = window), V.push(Z), Z !== window; )
|
|
@@ -26211,8 +26215,8 @@ function B2() {
|
|
|
26211
26215
|
}
|
|
26212
26216
|
function g() {
|
|
26213
26217
|
const b = function(k) {
|
|
26214
|
-
const { type: x, eventPhase:
|
|
26215
|
-
if (
|
|
26218
|
+
const { type: x, eventPhase: $ } = k;
|
|
26219
|
+
if ($ !== 2)
|
|
26216
26220
|
return;
|
|
26217
26221
|
const B = d[x];
|
|
26218
26222
|
B !== void 0 && B.forEach((O) => O(k));
|
|
@@ -26231,11 +26235,11 @@ function B2() {
|
|
|
26231
26235
|
let x = b.get(k);
|
|
26232
26236
|
return x === void 0 && b.set(k, x = /* @__PURE__ */ new Set()), x;
|
|
26233
26237
|
}
|
|
26234
|
-
function C(b, k, x,
|
|
26238
|
+
function C(b, k, x, $) {
|
|
26235
26239
|
const B = u[k][x];
|
|
26236
26240
|
if (B !== void 0) {
|
|
26237
26241
|
const O = B.get(b);
|
|
26238
|
-
if (O !== void 0 && O.has(
|
|
26242
|
+
if (O !== void 0 && O.has($))
|
|
26239
26243
|
return !0;
|
|
26240
26244
|
}
|
|
26241
26245
|
return !1;
|
|
@@ -26244,22 +26248,22 @@ function B2() {
|
|
|
26244
26248
|
const x = d[b];
|
|
26245
26249
|
return !!(x !== void 0 && x.has(k));
|
|
26246
26250
|
}
|
|
26247
|
-
function R(b, k, x,
|
|
26251
|
+
function R(b, k, x, $) {
|
|
26248
26252
|
let B;
|
|
26249
|
-
if (typeof
|
|
26250
|
-
F(b, k, B,
|
|
26251
|
-
} : B = x, R2(b, k, B,
|
|
26253
|
+
if (typeof $ == "object" && $.once === !0 ? B = (oe) => {
|
|
26254
|
+
F(b, k, B, $), x(oe);
|
|
26255
|
+
} : B = x, R2(b, k, B, $))
|
|
26252
26256
|
return;
|
|
26253
|
-
const L =
|
|
26257
|
+
const L = $ === !0 || typeof $ == "object" && $.capture === !0 ? "capture" : "bubble", Z = v(L, b), V = y(Z, k);
|
|
26254
26258
|
if (V.has(B) || V.add(B), k === window) {
|
|
26255
26259
|
const oe = p(b);
|
|
26256
26260
|
oe.has(B) || oe.add(B);
|
|
26257
26261
|
}
|
|
26258
26262
|
}
|
|
26259
|
-
function F(b, k, x,
|
|
26260
|
-
if (F2(b, k, x,
|
|
26263
|
+
function F(b, k, x, $) {
|
|
26264
|
+
if (F2(b, k, x, $))
|
|
26261
26265
|
return;
|
|
26262
|
-
const O =
|
|
26266
|
+
const O = $ === !0 || typeof $ == "object" && $.capture === !0, L = O ? "capture" : "bubble", Z = v(L, b), V = y(Z, k);
|
|
26263
26267
|
if (k === window && !C(k, O ? "bubble" : "capture", b, x) && _(b, x)) {
|
|
26264
26268
|
const ue = d[b];
|
|
26265
26269
|
ue.delete(x), ue.size === 0 && (window.removeEventListener(b, m), d[b] = void 0);
|
|
@@ -27337,8 +27341,8 @@ const vk = Ui([
|
|
|
27337
27341
|
h.setAttribute("v-placement", _), v ? h.setAttribute("v-overlap", "") : h.removeAttribute("v-overlap");
|
|
27338
27342
|
const { style: b } = h;
|
|
27339
27343
|
y === "target" ? b.width = `${p.width}px` : y !== void 0 ? b.width = y : b.width = "", C === "target" ? b.minWidth = `${p.width}px` : C !== void 0 ? b.minWidth = C : b.minWidth = "";
|
|
27340
|
-
const k = Ha(h), x = Ha(s.value), { left:
|
|
27341
|
-
h.setAttribute("v-placement", O), h.style.setProperty("--v-offset-left", `${Math.round(
|
|
27344
|
+
const k = Ha(h), x = Ha(s.value), { left: $, top: B, placement: O } = gk(_, p, k, R, F, v), L = mk(O, v), { left: Z, top: V, transform: oe } = pk(O, x, p, B, $, v);
|
|
27345
|
+
h.setAttribute("v-placement", O), h.style.setProperty("--v-offset-left", `${Math.round($)}px`), h.style.setProperty("--v-offset-top", `${Math.round(B)}px`), h.style.transform = `translateX(${Z}) translateY(${V}) ${oe}`, h.style.setProperty("--v-transform-origin", L), h.style.transformOrigin = L;
|
|
27342
27346
|
};
|
|
27343
27347
|
we(n, (h) => {
|
|
27344
27348
|
h ? (r(), c()) : o();
|
|
@@ -27485,9 +27489,9 @@ var ws = function(t) {
|
|
|
27485
27489
|
return oo.get(t);
|
|
27486
27490
|
if (Ff(t))
|
|
27487
27491
|
return oo.set(t, ud), ud;
|
|
27488
|
-
var n = getComputedStyle(t), i = lc(t) && t.ownerSVGElement && t.getBBox(), s = !Ck && n.boxSizing === "border-box", r = kk.test(n.writingMode || ""), o = !i && cd.test(n.overflowY || ""), a = !i && cd.test(n.overflowX || ""), l = i ? 0 : Jn(n.paddingTop), c = i ? 0 : Jn(n.paddingRight), u = i ? 0 : Jn(n.paddingBottom), d = i ? 0 : Jn(n.paddingLeft), h = i ? 0 : Jn(n.borderTopWidth), g = i ? 0 : Jn(n.borderRightWidth), f = i ? 0 : Jn(n.borderBottomWidth), m = i ? 0 : Jn(n.borderLeftWidth), v = d + c, p = l + u, y = m + g, C = h + f, _ = a ? t.offsetHeight - C - t.clientHeight : 0, R = o ? t.offsetWidth - y - t.clientWidth : 0, F = s ? v + y : 0, b = s ? p + C : 0, k = i ? i.width : Jn(n.width) - F - R, x = i ? i.height : Jn(n.height) - b - _,
|
|
27492
|
+
var n = getComputedStyle(t), i = lc(t) && t.ownerSVGElement && t.getBBox(), s = !Ck && n.boxSizing === "border-box", r = kk.test(n.writingMode || ""), o = !i && cd.test(n.overflowY || ""), a = !i && cd.test(n.overflowX || ""), l = i ? 0 : Jn(n.paddingTop), c = i ? 0 : Jn(n.paddingRight), u = i ? 0 : Jn(n.paddingBottom), d = i ? 0 : Jn(n.paddingLeft), h = i ? 0 : Jn(n.borderTopWidth), g = i ? 0 : Jn(n.borderRightWidth), f = i ? 0 : Jn(n.borderBottomWidth), m = i ? 0 : Jn(n.borderLeftWidth), v = d + c, p = l + u, y = m + g, C = h + f, _ = a ? t.offsetHeight - C - t.clientHeight : 0, R = o ? t.offsetWidth - y - t.clientWidth : 0, F = s ? v + y : 0, b = s ? p + C : 0, k = i ? i.width : Jn(n.width) - F - R, x = i ? i.height : Jn(n.height) - b - _, $ = k + v + R + y, B = x + p + _ + C, O = ws({
|
|
27489
27493
|
devicePixelContentBoxSize: Qs(Math.round(k * devicePixelRatio), Math.round(x * devicePixelRatio), r),
|
|
27490
|
-
borderBoxSize: Qs(
|
|
27494
|
+
borderBoxSize: Qs($, B, r),
|
|
27491
27495
|
contentBoxSize: Qs(k, x, r),
|
|
27492
27496
|
contentRect: new Rf(d, l, k, x)
|
|
27493
27497
|
});
|
|
@@ -28040,7 +28044,7 @@ const vd = re({
|
|
|
28040
28044
|
}
|
|
28041
28045
|
}
|
|
28042
28046
|
}
|
|
28043
|
-
function
|
|
28047
|
+
function $(L) {
|
|
28044
28048
|
if (n || O(L.target))
|
|
28045
28049
|
return;
|
|
28046
28050
|
if (t.renderCol == null && t.renderItemWithCols == null) {
|
|
@@ -28092,7 +28096,7 @@ const vd = re({
|
|
|
28092
28096
|
listElRef: l,
|
|
28093
28097
|
itemsElRef: W(null),
|
|
28094
28098
|
scrollTo: v,
|
|
28095
|
-
handleListResize:
|
|
28099
|
+
handleListResize: $,
|
|
28096
28100
|
handleListScroll: k,
|
|
28097
28101
|
handleListWheel: x,
|
|
28098
28102
|
handleItemResize: R
|
|
@@ -28192,8 +28196,8 @@ const vd = re({
|
|
|
28192
28196
|
const x = u.offsetWidth;
|
|
28193
28197
|
if (m -= g[b], m + x <= h || b === 0) {
|
|
28194
28198
|
v = !0, C = b - 1, f && (C === -1 ? (f.style.maxWidth = `${h - x}px`, f.style.boxSizing = "border-box") : f.style.maxWidth = "");
|
|
28195
|
-
const { onUpdateCount:
|
|
28196
|
-
|
|
28199
|
+
const { onUpdateCount: $ } = t;
|
|
28200
|
+
$ && $(k);
|
|
28197
28201
|
break;
|
|
28198
28202
|
}
|
|
28199
28203
|
}
|
|
@@ -29533,7 +29537,7 @@ function nn(t, e, n, i, s, r) {
|
|
|
29533
29537
|
} = (a == null ? void 0 : a.mergedThemeOverridesRef.value) || {}, {
|
|
29534
29538
|
common: b,
|
|
29535
29539
|
peers: k = {}
|
|
29536
|
-
} = F, x = qr({}, u || y || p || i.common, R, b, m),
|
|
29540
|
+
} = F, x = qr({}, u || y || p || i.common, R, b, m), $ = qr(
|
|
29537
29541
|
// {}, executed every time, no need for empty obj
|
|
29538
29542
|
(c = d || C || i.self) === null || c === void 0 ? void 0 : c(x),
|
|
29539
29543
|
f,
|
|
@@ -29542,7 +29546,7 @@ function nn(t, e, n, i, s, r) {
|
|
|
29542
29546
|
);
|
|
29543
29547
|
return {
|
|
29544
29548
|
common: x,
|
|
29545
|
-
self:
|
|
29549
|
+
self: $,
|
|
29546
29550
|
peers: qr({}, i.peers, _, h),
|
|
29547
29551
|
peerOverrides: qr({}, f.peers, k, v)
|
|
29548
29552
|
};
|
|
@@ -30355,7 +30359,7 @@ const dc = {
|
|
|
30355
30359
|
inlineThemeDisabled: n,
|
|
30356
30360
|
mergedRtlRef: i
|
|
30357
30361
|
} = As(t), s = Lr("Scrollbar", i, e), r = W(null), o = W(null), a = W(null), l = W(null), c = W(null), u = W(null), d = W(null), h = W(null), g = W(null), f = W(null), m = W(null), v = W(0), p = W(0), y = W(!1), C = W(!1);
|
|
30358
|
-
let _ = !1, R = !1, F, b, k = 0, x = 0,
|
|
30362
|
+
let _ = !1, R = !1, F, b, k = 0, x = 0, $ = 0, B = 0;
|
|
30359
30363
|
const O = N2(), L = nn("Scrollbar", "-scrollbar", hS, dc, t, e), Z = E(() => {
|
|
30360
30364
|
const {
|
|
30361
30365
|
value: D
|
|
@@ -30576,7 +30580,7 @@ const dc = {
|
|
|
30576
30580
|
return !(!((se = r.value) === null || se === void 0) && se.contains(Rr(D)));
|
|
30577
30581
|
}
|
|
30578
30582
|
function Oi(D) {
|
|
30579
|
-
D.preventDefault(), D.stopPropagation(), R = !0, un("mousemove", window, Pt, !0), un("mouseup", window, wn, !0), x = p.value,
|
|
30583
|
+
D.preventDefault(), D.stopPropagation(), R = !0, un("mousemove", window, Pt, !0), un("mouseup", window, wn, !0), x = p.value, $ = s != null && s.value ? window.innerWidth - D.clientX : D.clientX;
|
|
30580
30584
|
}
|
|
30581
30585
|
function Pt(D) {
|
|
30582
30586
|
if (!R) return;
|
|
@@ -30589,7 +30593,7 @@ const dc = {
|
|
|
30589
30593
|
value: Ce
|
|
30590
30594
|
} = oe;
|
|
30591
30595
|
if (se === null || me === null) return;
|
|
30592
|
-
const Fe = (s != null && s.value ? window.innerWidth - D.clientX -
|
|
30596
|
+
const Fe = (s != null && s.value ? window.innerWidth - D.clientX - $ : D.clientX - $) * (me - se) / (se - Ce), Ee = me - se;
|
|
30593
30597
|
let ze = x + Fe;
|
|
30594
30598
|
ze = Math.min(Ee, ze), ze = Math.max(ze, 0);
|
|
30595
30599
|
const {
|
|
@@ -31518,7 +31522,7 @@ const kS = Te("base-select-menu", `
|
|
|
31518
31522
|
var te;
|
|
31519
31523
|
br(U, "action") || (te = t.onKeyup) === null || te === void 0 || te.call(t, U);
|
|
31520
31524
|
}
|
|
31521
|
-
function
|
|
31525
|
+
function $(U) {
|
|
31522
31526
|
var te;
|
|
31523
31527
|
br(U, "action") || (te = t.onKeydown) === null || te === void 0 || te.call(t, U);
|
|
31524
31528
|
}
|
|
@@ -31673,7 +31677,7 @@ const kS = Te("base-select-menu", `
|
|
|
31673
31677
|
handleFocusin: oe,
|
|
31674
31678
|
handleFocusout: ue,
|
|
31675
31679
|
handleKeyUp: x,
|
|
31676
|
-
handleKeyDown:
|
|
31680
|
+
handleKeyDown: $,
|
|
31677
31681
|
handleMouseDown: B,
|
|
31678
31682
|
handleVirtualListResize: R,
|
|
31679
31683
|
handleVirtualListScroll: _,
|
|
@@ -32032,22 +32036,22 @@ const RS = re({
|
|
|
32032
32036
|
const f = E(() => {
|
|
32033
32037
|
const {
|
|
32034
32038
|
trigger: x,
|
|
32035
|
-
onClickoutside:
|
|
32039
|
+
onClickoutside: $
|
|
32036
32040
|
} = t, B = [], {
|
|
32037
32041
|
positionManuallyRef: {
|
|
32038
32042
|
value: O
|
|
32039
32043
|
}
|
|
32040
32044
|
} = u;
|
|
32041
|
-
return O || (x === "click" &&
|
|
32045
|
+
return O || (x === "click" && !$ && B.push([Eo, F, void 0, {
|
|
32042
32046
|
capture: !0
|
|
32043
|
-
}]), x === "hover" && B.push([M2, R])),
|
|
32047
|
+
}]), x === "hover" && B.push([M2, R])), $ && B.push([Eo, F, void 0, {
|
|
32044
32048
|
capture: !0
|
|
32045
32049
|
}]), (t.displayDirective === "show" || t.animated && g.value) && B.push([Wd, t.show]), B;
|
|
32046
32050
|
}), m = E(() => {
|
|
32047
32051
|
const {
|
|
32048
32052
|
common: {
|
|
32049
32053
|
cubicBezierEaseInOut: x,
|
|
32050
|
-
cubicBezierEaseIn:
|
|
32054
|
+
cubicBezierEaseIn: $,
|
|
32051
32055
|
cubicBezierEaseOut: B
|
|
32052
32056
|
},
|
|
32053
32057
|
self: {
|
|
@@ -32068,7 +32072,7 @@ const RS = re({
|
|
|
32068
32072
|
return {
|
|
32069
32073
|
"--n-box-shadow": K,
|
|
32070
32074
|
"--n-bezier": x,
|
|
32071
|
-
"--n-bezier-ease-in":
|
|
32075
|
+
"--n-bezier-ease-in": $,
|
|
32072
32076
|
"--n-bezier-ease-out": B,
|
|
32073
32077
|
"--n-font-size": V,
|
|
32074
32078
|
"--n-text-color": oe,
|
|
@@ -32083,19 +32087,19 @@ const RS = re({
|
|
|
32083
32087
|
"--n-space-arrow": L
|
|
32084
32088
|
};
|
|
32085
32089
|
}), v = E(() => {
|
|
32086
|
-
const x = t.width === "trigger" ? void 0 : Ua(t.width),
|
|
32087
|
-
x &&
|
|
32090
|
+
const x = t.width === "trigger" ? void 0 : Ua(t.width), $ = [];
|
|
32091
|
+
x && $.push({
|
|
32088
32092
|
width: x
|
|
32089
32093
|
});
|
|
32090
32094
|
const {
|
|
32091
32095
|
maxWidth: B,
|
|
32092
32096
|
minWidth: O
|
|
32093
32097
|
} = t;
|
|
32094
|
-
return B &&
|
|
32098
|
+
return B && $.push({
|
|
32095
32099
|
maxWidth: Ua(B)
|
|
32096
|
-
}), O &&
|
|
32100
|
+
}), O && $.push({
|
|
32097
32101
|
maxWidth: Ua(O)
|
|
32098
|
-
}), r ||
|
|
32102
|
+
}), r || $.push(m.value), $;
|
|
32099
32103
|
}), p = r ? Es("popover", void 0, m, t) : void 0;
|
|
32100
32104
|
u.setBodyInstance({
|
|
32101
32105
|
syncPosition: y
|
|
@@ -32127,12 +32131,12 @@ const RS = re({
|
|
|
32127
32131
|
function k() {
|
|
32128
32132
|
if (p == null || p.onRender(), !(t.displayDirective === "show" || t.show || t.animated && g.value))
|
|
32129
32133
|
return null;
|
|
32130
|
-
let
|
|
32134
|
+
let $;
|
|
32131
32135
|
const B = u.internalRenderBodyRef.value, {
|
|
32132
32136
|
value: O
|
|
32133
32137
|
} = s;
|
|
32134
32138
|
if (B)
|
|
32135
|
-
|
|
32139
|
+
$ = B(
|
|
32136
32140
|
// The popover class and overlap class must exists, they will be used
|
|
32137
32141
|
// to place the body & transition animation.
|
|
32138
32142
|
// Shadow class exists for reuse box-shadow.
|
|
@@ -32177,7 +32181,7 @@ const RS = re({
|
|
|
32177
32181
|
}) : null;
|
|
32178
32182
|
return [G, X];
|
|
32179
32183
|
};
|
|
32180
|
-
|
|
32184
|
+
$ = j("div", Al({
|
|
32181
32185
|
class: [`${O}-popover`, `${O}-popover-shared`, (l == null ? void 0 : l.value) && `${O}-popover--rtl`, p == null ? void 0 : p.themeClass.value, L.map((ue) => `${O}-${ue}`), {
|
|
32182
32186
|
[`${O}-popover--scrollable`]: t.scrollable,
|
|
32183
32187
|
[`${O}-popover--show-header-or-footer`]: V,
|
|
@@ -32198,7 +32202,7 @@ const RS = re({
|
|
|
32198
32202
|
default: oe
|
|
32199
32203
|
}) : oe());
|
|
32200
32204
|
}
|
|
32201
|
-
return rr(
|
|
32205
|
+
return rr($, f.value);
|
|
32202
32206
|
}
|
|
32203
32207
|
return {
|
|
32204
32208
|
displayed: g,
|
|
@@ -32451,7 +32455,7 @@ const ES = {
|
|
|
32451
32455
|
m(V);
|
|
32452
32456
|
}
|
|
32453
32457
|
}
|
|
32454
|
-
function
|
|
32458
|
+
function $(V) {
|
|
32455
32459
|
t.internalTrapFocus && V.key === "Escape" && (p(), y(), m(!1));
|
|
32456
32460
|
}
|
|
32457
32461
|
function B(V) {
|
|
@@ -32466,7 +32470,7 @@ const ES = {
|
|
|
32466
32470
|
}
|
|
32467
32471
|
return Fn("NPopover", {
|
|
32468
32472
|
getTriggerElement: O,
|
|
32469
|
-
handleKeydown:
|
|
32473
|
+
handleKeydown: $,
|
|
32470
32474
|
handleMouseEnter: R,
|
|
32471
32475
|
handleMouseLeave: F,
|
|
32472
32476
|
handleClickOutside: k,
|
|
@@ -32630,7 +32634,7 @@ function LS(t) {
|
|
|
32630
32634
|
heightSmall: b,
|
|
32631
32635
|
heightMedium: k,
|
|
32632
32636
|
closeColorHover: x,
|
|
32633
|
-
closeColorPressed:
|
|
32637
|
+
closeColorPressed: $,
|
|
32634
32638
|
buttonColor2Hover: B,
|
|
32635
32639
|
buttonColor2Pressed: O,
|
|
32636
32640
|
fontWeightStrong: L
|
|
@@ -32668,7 +32672,7 @@ function LS(t) {
|
|
|
32668
32672
|
closeIconColorHover: f,
|
|
32669
32673
|
closeIconColorPressed: m,
|
|
32670
32674
|
closeColorHover: x,
|
|
32671
|
-
closeColorPressed:
|
|
32675
|
+
closeColorPressed: $,
|
|
32672
32676
|
borderPrimary: `1px solid ${nt(s, {
|
|
32673
32677
|
alpha: 0.3
|
|
32674
32678
|
})}`,
|
|
@@ -32946,7 +32950,7 @@ const VS = Object.assign(Object.assign(Object.assign({}, nn.props), NS), {
|
|
|
32946
32950
|
textColorHoverCheckable: b,
|
|
32947
32951
|
textColorPressedCheckable: k,
|
|
32948
32952
|
textColorChecked: x,
|
|
32949
|
-
colorCheckable:
|
|
32953
|
+
colorCheckable: $,
|
|
32950
32954
|
colorHoverCheckable: B,
|
|
32951
32955
|
colorPressedCheckable: O,
|
|
32952
32956
|
colorChecked: L,
|
|
@@ -32989,7 +32993,7 @@ const VS = Object.assign(Object.assign(Object.assign({}, nn.props), NS), {
|
|
|
32989
32993
|
"--n-close-margin-left": De.left,
|
|
32990
32994
|
"--n-close-size": K,
|
|
32991
32995
|
"--n-color": m || (n.value ? Y : te),
|
|
32992
|
-
"--n-color-checkable":
|
|
32996
|
+
"--n-color-checkable": $,
|
|
32993
32997
|
"--n-color-checked": L,
|
|
32994
32998
|
"--n-color-checked-hover": Z,
|
|
32995
32999
|
"--n-color-checked-pressed": V,
|
|
@@ -33166,7 +33170,7 @@ function XS(t) {
|
|
|
33166
33170
|
fontSizeLarge: b,
|
|
33167
33171
|
heightTiny: k,
|
|
33168
33172
|
heightSmall: x,
|
|
33169
|
-
heightMedium:
|
|
33173
|
+
heightMedium: $,
|
|
33170
33174
|
heightLarge: B,
|
|
33171
33175
|
fontWeight: O
|
|
33172
33176
|
} = t;
|
|
@@ -33177,7 +33181,7 @@ function XS(t) {
|
|
|
33177
33181
|
fontSizeLarge: b,
|
|
33178
33182
|
heightTiny: k,
|
|
33179
33183
|
heightSmall: x,
|
|
33180
|
-
heightMedium:
|
|
33184
|
+
heightMedium: $,
|
|
33181
33185
|
heightLarge: B,
|
|
33182
33186
|
borderRadius: e,
|
|
33183
33187
|
fontWeight: O,
|
|
@@ -33564,7 +33568,7 @@ const ag = {
|
|
|
33564
33568
|
} = t;
|
|
33565
33569
|
ve && ve(le);
|
|
33566
33570
|
}
|
|
33567
|
-
function
|
|
33571
|
+
function $(le) {
|
|
33568
33572
|
const {
|
|
33569
33573
|
onBlur: ve
|
|
33570
33574
|
} = t;
|
|
@@ -33594,7 +33598,7 @@ const ag = {
|
|
|
33594
33598
|
}
|
|
33595
33599
|
function V(le) {
|
|
33596
33600
|
var ve;
|
|
33597
|
-
!((ve = o.value) === null || ve === void 0) && ve.contains(le.relatedTarget) ||
|
|
33601
|
+
!((ve = o.value) === null || ve === void 0) && ve.contains(le.relatedTarget) || $(le);
|
|
33598
33602
|
}
|
|
33599
33603
|
function oe(le) {
|
|
33600
33604
|
O(le);
|
|
@@ -34377,7 +34381,7 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
34377
34381
|
} = Kf("Select"), x = E(() => {
|
|
34378
34382
|
var D;
|
|
34379
34383
|
return (D = t.placeholder) !== null && D !== void 0 ? D : k.value.placeholder;
|
|
34380
|
-
}),
|
|
34384
|
+
}), $ = [], B = W(/* @__PURE__ */ new Map()), O = E(() => {
|
|
34381
34385
|
const {
|
|
34382
34386
|
fallbackOption: D
|
|
34383
34387
|
} = t;
|
|
@@ -34515,7 +34519,7 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
34515
34519
|
ee(!1);
|
|
34516
34520
|
}
|
|
34517
34521
|
function Ie() {
|
|
34518
|
-
u.value = "", g.value =
|
|
34522
|
+
u.value = "", g.value = $;
|
|
34519
34523
|
}
|
|
34520
34524
|
const De = W(!1);
|
|
34521
34525
|
function ot() {
|
|
@@ -34585,7 +34589,7 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
34585
34589
|
} = g, Ee = Fe[0] || null;
|
|
34586
34590
|
if (Ee) {
|
|
34587
34591
|
const ze = h.value;
|
|
34588
|
-
ze.length ? ze.push(Ee) : h.value = [Ee], g.value =
|
|
34592
|
+
ze.length ? ze.push(Ee) : h.value = [Ee], g.value = $;
|
|
34589
34593
|
}
|
|
34590
34594
|
}
|
|
34591
34595
|
if (me && B.value.set(D[Se], D), t.multiple) {
|
|
@@ -34601,7 +34605,7 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
34601
34605
|
} else {
|
|
34602
34606
|
if (se && !me) {
|
|
34603
34607
|
const Fe = le(D[Se]);
|
|
34604
|
-
~Fe ? h.value = [h.value[Fe]] : h.value =
|
|
34608
|
+
~Fe ? h.value = [h.value[Fe]] : h.value = $;
|
|
34605
34609
|
}
|
|
34606
34610
|
Os(), xe(), G(D[Se], D);
|
|
34607
34611
|
}
|
|
@@ -34621,7 +34625,7 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
34621
34625
|
} = t;
|
|
34622
34626
|
if (ie(se), me && !Ce) {
|
|
34623
34627
|
if (!se) {
|
|
34624
|
-
g.value =
|
|
34628
|
+
g.value = $;
|
|
34625
34629
|
return;
|
|
34626
34630
|
}
|
|
34627
34631
|
const {
|
|
@@ -34633,7 +34637,7 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
34633
34637
|
valueField: Ee,
|
|
34634
34638
|
labelField: ze
|
|
34635
34639
|
} = t;
|
|
34636
|
-
d.value.some((mt) => mt[Ee] === Fe[Ee] || mt[ze] === Fe[ze]) || h.value.some((mt) => mt[Ee] === Fe[Ee] || mt[ze] === Fe[ze]) ? g.value =
|
|
34640
|
+
d.value.some((mt) => mt[Ee] === Fe[Ee] || mt[ze] === Fe[ze]) || h.value.some((mt) => mt[Ee] === Fe[Ee] || mt[ze] === Fe[ze]) ? g.value = $ : g.value = [Fe];
|
|
34637
34641
|
}
|
|
34638
34642
|
}
|
|
34639
34643
|
function tt(D) {
|
|
@@ -35137,10 +35141,10 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
35137
35141
|
}, 8, ["disabled", "onClick"])
|
|
35138
35142
|
]),
|
|
35139
35143
|
default: I(() => [
|
|
35140
|
-
|
|
35141
|
-
|
|
35142
|
-
|
|
35143
|
-
|
|
35144
|
+
P("div", c3, [
|
|
35145
|
+
P("span", u3, [
|
|
35146
|
+
P("span", d3, q(p.code), 1),
|
|
35147
|
+
P("span", h3, q(p.name), 1)
|
|
35144
35148
|
]),
|
|
35145
35149
|
d.$slots["item-extra"] ? (w(), A("div", f3, [
|
|
35146
35150
|
Re(d.$slots, "item-extra", {
|
|
@@ -35204,58 +35208,58 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
35204
35208
|
const f = _t;
|
|
35205
35209
|
return w(), A("div", m3, [
|
|
35206
35210
|
t.item.configurator && t.item.configuratorParams && e.includes(t.item.configurator) ? (w(), A(be, { key: 0 }, [
|
|
35207
|
-
|
|
35208
|
-
|
|
35211
|
+
P("div", p3, [
|
|
35212
|
+
P("span", null, [
|
|
35209
35213
|
g[1] || (g[1] = J(" Количество: ", -1)),
|
|
35210
|
-
|
|
35214
|
+
P("span", v3, q(t.item.quantity) + " шт.", 1)
|
|
35211
35215
|
]),
|
|
35212
|
-
|
|
35216
|
+
P("div", y3, [
|
|
35213
35217
|
t.item.configurator === M(Zt).Kozyrek ? (w(), A("span", b3, [
|
|
35214
35218
|
g[2] || (g[2] = J(" Длина: ", -1)),
|
|
35215
|
-
|
|
35219
|
+
P("span", _3, q(Math.round(t.item.length * 1e3)) + " мм.", 1)
|
|
35216
35220
|
])) : H("", !0),
|
|
35217
35221
|
t.item.configurator === M(Zt).Mosquitto ? (w(), A(be, { key: 1 }, [
|
|
35218
|
-
|
|
35222
|
+
P("span", null, [
|
|
35219
35223
|
g[3] || (g[3] = J(" Ширина: ", -1)),
|
|
35220
|
-
|
|
35224
|
+
P("span", w3, q(Math.round(t.item.width * 1e3)) + " мм.", 1)
|
|
35221
35225
|
]),
|
|
35222
|
-
|
|
35226
|
+
P("span", null, [
|
|
35223
35227
|
g[4] || (g[4] = J(" Высота: ", -1)),
|
|
35224
|
-
|
|
35228
|
+
P("span", x3, q(Math.round(t.item.height * 1e3)) + " мм.", 1)
|
|
35225
35229
|
])
|
|
35226
35230
|
], 64)) : H("", !0),
|
|
35227
35231
|
t.item.configurator === M(Zt).Strip ? (w(), A(be, { key: 2 }, [
|
|
35228
35232
|
(w(!0), A(be, null, Ct(t.item.configuratorParams.linesWidths, (m, v) => (w(), A("span", { key: v }, [
|
|
35229
35233
|
J(" Полоса №" + q(Number(v) + 1) + ": ", 1),
|
|
35230
|
-
|
|
35234
|
+
P("span", k3, q(m) + " мм.", 1)
|
|
35231
35235
|
]))), 128)),
|
|
35232
|
-
|
|
35236
|
+
P("span", null, [
|
|
35233
35237
|
g[5] || (g[5] = J(" Метраж: ", -1)),
|
|
35234
|
-
|
|
35238
|
+
P("span", C3, q(t.item.length) + " м.", 1)
|
|
35235
35239
|
])
|
|
35236
35240
|
], 64)) : H("", !0),
|
|
35237
35241
|
t.item.configurator === M(Zt).MetalForDoors ? (w(), A(be, { key: 3 }, [
|
|
35238
|
-
|
|
35242
|
+
P("span", null, [
|
|
35239
35243
|
g[6] || (g[6] = J(" Ширина: ", -1)),
|
|
35240
|
-
|
|
35244
|
+
P("span", S3, q(t.item.width) + " мм.", 1)
|
|
35241
35245
|
]),
|
|
35242
|
-
|
|
35246
|
+
P("span", null, [
|
|
35243
35247
|
g[7] || (g[7] = J(" Длина: ", -1)),
|
|
35244
|
-
|
|
35248
|
+
P("span", $3, q(Math.round(t.item.length * 1e3)) + " мм.", 1)
|
|
35245
35249
|
])
|
|
35246
35250
|
], 64)) : H("", !0),
|
|
35247
35251
|
t.item.configurator === M(Zt).Sandwich ? (w(!0), A(be, { key: 4 }, Ct(t.item.configuratorParams.items ?? [], (m, v) => (w(), A("span", { key: v }, [
|
|
35248
35252
|
J(" Изделие №" + q(Number(v) + 1) + ": ", 1),
|
|
35249
|
-
|
|
35253
|
+
P("span", P3, q(m.width) + "×" + q(m.length) + " мм", 1)
|
|
35250
35254
|
]))), 128)) : H("", !0),
|
|
35251
35255
|
t.item.configurator === M(Zt).SandwichM2 ? (w(), A(be, { key: 5 }, [
|
|
35252
|
-
|
|
35256
|
+
P("span", null, [
|
|
35253
35257
|
g[8] || (g[8] = J(" Ширина: ", -1)),
|
|
35254
|
-
|
|
35258
|
+
P("span", T3, q(Math.round(t.item.width * 1e3)) + " мм.", 1)
|
|
35255
35259
|
]),
|
|
35256
|
-
|
|
35260
|
+
P("span", null, [
|
|
35257
35261
|
g[9] || (g[9] = J(" Длина: ", -1)),
|
|
35258
|
-
|
|
35262
|
+
P("span", R3, q(Math.round(t.item.length * 1e3)) + " мм.", 1)
|
|
35259
35263
|
])
|
|
35260
35264
|
], 64)) : H("", !0)
|
|
35261
35265
|
])
|
|
@@ -35267,19 +35271,19 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
35267
35271
|
onClick: Rn(u, ["prevent"])
|
|
35268
35272
|
}, " Изменить ")) : H("", !0)
|
|
35269
35273
|
], 64)) : s.value && r.value > 0 ? (w(), A(be, { key: 1 }, [
|
|
35270
|
-
|
|
35271
|
-
|
|
35274
|
+
P("div", F3, [
|
|
35275
|
+
P("span", null, [
|
|
35272
35276
|
g[10] || (g[10] = J(" Количество: ", -1)),
|
|
35273
|
-
|
|
35277
|
+
P("span", B3, q(t.item.quantity) + " шт.", 1)
|
|
35274
35278
|
]),
|
|
35275
|
-
|
|
35276
|
-
|
|
35279
|
+
P("div", M3, [
|
|
35280
|
+
P("span", null, [
|
|
35277
35281
|
g[11] || (g[11] = J(" Длина: ", -1)),
|
|
35278
|
-
|
|
35282
|
+
P("span", A3, q(r.value) + " " + q(t.item.product.unit.name), 1)
|
|
35279
35283
|
]),
|
|
35280
|
-
|
|
35284
|
+
P("span", null, [
|
|
35281
35285
|
g[12] || (g[12] = J(" Всего: ", -1)),
|
|
35282
|
-
|
|
35286
|
+
P("span", E3, q(t.item.quantity * r.value) + " " + q(t.item.product.unit.name), 1)
|
|
35283
35287
|
])
|
|
35284
35288
|
])
|
|
35285
35289
|
]),
|
|
@@ -35290,14 +35294,14 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
35290
35294
|
onClick: Rn(d, ["prevent"])
|
|
35291
35295
|
}, " Изменить ")) : H("", !0)
|
|
35292
35296
|
], 64)) : t.item.product.getIsMeasurable() ? (w(), A(be, { key: 2 }, [
|
|
35293
|
-
|
|
35294
|
-
|
|
35297
|
+
P("div", I3, [
|
|
35298
|
+
P("span", null, [
|
|
35295
35299
|
g[13] || (g[13] = J(" Количество: ", -1)),
|
|
35296
|
-
|
|
35300
|
+
P("span", O3, q(t.item.quantity) + " шт.", 1)
|
|
35297
35301
|
]),
|
|
35298
|
-
|
|
35302
|
+
P("span", z3, [
|
|
35299
35303
|
g[14] || (g[14] = J(" Метраж: ", -1)),
|
|
35300
|
-
|
|
35304
|
+
P("span", L3, q(t.item.length ?? t.item.width) + " " + q(t.item.product.unit.name), 1)
|
|
35301
35305
|
])
|
|
35302
35306
|
]),
|
|
35303
35307
|
t.allowEdit ? (w(), A("a", {
|
|
@@ -35330,7 +35334,7 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
35330
35334
|
_: 1
|
|
35331
35335
|
}, 8, ["value", "parse", "min", "step", "show-button", "disabled", "loading", "onFocus"])) : (w(), A("span", D3, [
|
|
35332
35336
|
g[16] || (g[16] = J(" Количество: ", -1)),
|
|
35333
|
-
|
|
35337
|
+
P("span", N3, q(t.item.quantity) + " шт.", 1)
|
|
35334
35338
|
]))
|
|
35335
35339
|
], 64))
|
|
35336
35340
|
]);
|
|
@@ -35343,7 +35347,7 @@ const i3 = Object.assign(Object.assign({}, nn.props), {
|
|
|
35343
35347
|
};
|
|
35344
35348
|
function j3(t, e) {
|
|
35345
35349
|
return w(), A("svg", V3, [...e[0] || (e[0] = [
|
|
35346
|
-
|
|
35350
|
+
P("path", {
|
|
35347
35351
|
fill: "currentColor",
|
|
35348
35352
|
d: "M13 4a1 1 0 0 1 1 1h4a1 1 0 0 1 .783.378l.074.108l3 5l.055.103l.04.107l.029.109l.016.11L22 11v6a1 1 0 0 1-1 1h-1.171a3.001 3.001 0 0 1-5.658 0H9.829a3.001 3.001 0 0 1-5.658 0H3a1 1 0 0 1-1-1V6a2 2 0 0 1 2-2zM7 16a1 1 0 1 0 0 2a1 1 0 0 0 0-2m10 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2m.434-9H14v3h5.234z"
|
|
35349
35353
|
}, null, -1)
|
|
@@ -35356,15 +35360,15 @@ const q3 = He({ name: "tabler-truck-filled", render: j3 }), U3 = {
|
|
|
35356
35360
|
};
|
|
35357
35361
|
function X3(t, e) {
|
|
35358
35362
|
return w(), A("svg", U3, [...e[0] || (e[0] = [
|
|
35359
|
-
|
|
35363
|
+
P("g", {
|
|
35360
35364
|
fill: "none",
|
|
35361
35365
|
stroke: "currentColor",
|
|
35362
35366
|
"stroke-linecap": "round",
|
|
35363
35367
|
"stroke-linejoin": "round",
|
|
35364
35368
|
"stroke-width": "2"
|
|
35365
35369
|
}, [
|
|
35366
|
-
|
|
35367
|
-
|
|
35370
|
+
P("path", { d: "M5 17a2 2 0 1 0 4 0a2 2 0 1 0-4 0m10 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0" }),
|
|
35371
|
+
P("path", { d: "M5 17H3v-4M2 5h11v12m-4 0h6m4 0h2v-6h-8m0-5h5l3 5M3 9h4" })
|
|
35368
35372
|
], -1)
|
|
35369
35373
|
])]);
|
|
35370
35374
|
}
|
|
@@ -35375,15 +35379,15 @@ const Y3 = He({ name: "tabler-truck-delivery", render: X3 }), K3 = {
|
|
|
35375
35379
|
};
|
|
35376
35380
|
function G3(t, e) {
|
|
35377
35381
|
return w(), A("svg", K3, [...e[0] || (e[0] = [
|
|
35378
|
-
|
|
35382
|
+
P("g", {
|
|
35379
35383
|
fill: "none",
|
|
35380
35384
|
stroke: "currentColor",
|
|
35381
35385
|
"stroke-linecap": "round",
|
|
35382
35386
|
"stroke-linejoin": "round",
|
|
35383
35387
|
"stroke-width": "2"
|
|
35384
35388
|
}, [
|
|
35385
|
-
|
|
35386
|
-
|
|
35389
|
+
P("path", { d: "M2 3h1a2 2 0 0 1 2 2v10a2 2 0 0 0 2 2h15" }),
|
|
35390
|
+
P("path", { d: "M9 9a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v2a3 3 0 0 1-3 3h-4a3 3 0 0 1-3-3zM7 19a2 2 0 1 0 4 0a2 2 0 1 0-4 0m9 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0" })
|
|
35387
35391
|
], -1)
|
|
35388
35392
|
])]);
|
|
35389
35393
|
}
|
|
@@ -35414,10 +35418,10 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35414
35418
|
((c = e.value) == null ? void 0 : c.slug) === "self_delivery" ? (w(), ne(o, { key: 0 })) : H("", !0),
|
|
35415
35419
|
((u = e.value) == null ? void 0 : u.slug) === "delivery" ? (w(), ne(a, { key: 1 })) : H("", !0),
|
|
35416
35420
|
((d = e.value) == null ? void 0 : d.slug) === "transport_company_delivery" ? (w(), ne(l, { key: 2 })) : H("", !0),
|
|
35417
|
-
|
|
35421
|
+
P("span", null, q((h = e.value) == null ? void 0 : h.name), 1)
|
|
35418
35422
|
])) : H("", !0),
|
|
35419
35423
|
t.showDetails ? (w(), A("span", e5, [
|
|
35420
|
-
|
|
35424
|
+
P("span", t5, q(n.value), 1),
|
|
35421
35425
|
(f = (g = t.delivery) == null ? void 0 : g.address) != null && f.address ? (w(), A("span", n5, q(t.delivery.address.address), 1)) : H("", !0),
|
|
35422
35426
|
(v = (m = t.delivery) == null ? void 0 : m.warehouse) != null && v.address ? (w(), A("span", i5, " со склада " + q(t.delivery.warehouse.address), 1)) : H("", !0)
|
|
35423
35427
|
])) : H("", !0)
|
|
@@ -35445,7 +35449,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35445
35449
|
() => e.fields.includes(Ze.ClientInfo) || e.fields.includes(Ze.ClientInfoShort) ? e.order.client : void 0
|
|
35446
35450
|
), o = E(() => e.fields.includes(Ze.DeliveryInfo) ? e.order.delivery : void 0);
|
|
35447
35451
|
return (a, l) => (w(), A("div", r5, [
|
|
35448
|
-
|
|
35452
|
+
P("span", o5, [
|
|
35449
35453
|
n.value ? (w(), A("a", {
|
|
35450
35454
|
key: 0,
|
|
35451
35455
|
href: t.orderUrl.replace(":id", t.order.id.toString()),
|
|
@@ -35461,7 +35465,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35461
35465
|
], 64)) : H("", !0),
|
|
35462
35466
|
i.value ? (w(), A(be, { key: 2 }, [
|
|
35463
35467
|
l[1] || (l[1] = J(" - ", -1)),
|
|
35464
|
-
|
|
35468
|
+
P("span", l5, q(i.value), 1)
|
|
35465
35469
|
], 64)) : H("", !0)
|
|
35466
35470
|
]),
|
|
35467
35471
|
r.value ? (w(), ne(Fo, {
|
|
@@ -35522,8 +35526,8 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35522
35526
|
return (e, n) => {
|
|
35523
35527
|
const i = ug;
|
|
35524
35528
|
return w(), A("div", g5, [
|
|
35525
|
-
|
|
35526
|
-
|
|
35529
|
+
P("span", m5, q(t.index + 1) + ".", 1),
|
|
35530
|
+
P("div", p5, [
|
|
35527
35531
|
z(xo, {
|
|
35528
35532
|
product: t.product.product,
|
|
35529
35533
|
"show-planning-dates": !1
|
|
@@ -35533,15 +35537,15 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35533
35537
|
"user-type": t.product.creatorUser.type,
|
|
35534
35538
|
class: "mt-1 self-start"
|
|
35535
35539
|
}, null, 8, ["user-type"])) : H("", !0),
|
|
35536
|
-
|
|
35537
|
-
n[0] || (n[0] =
|
|
35540
|
+
P("div", v5, [
|
|
35541
|
+
n[0] || (n[0] = P("span", null, "Кол-во", -1)),
|
|
35538
35542
|
t.product.product.getIsMeasurable() ? (w(), A("span", y5, q(`${t.product.length} ${t.product.product.unit.name} x ${t.product.quantity} шт.`), 1)) : (w(), A("span", b5, q(`${t.product.quantity} ${t.product.product.unit.name}`), 1)),
|
|
35539
|
-
n[1] || (n[1] =
|
|
35543
|
+
n[1] || (n[1] = P("span", null, "Цена за ед.", -1)),
|
|
35540
35544
|
z(Gi, {
|
|
35541
35545
|
product: t.product,
|
|
35542
35546
|
"cost-field-name": "costOneRub"
|
|
35543
35547
|
}, null, 8, ["product"]),
|
|
35544
|
-
n[2] || (n[2] =
|
|
35548
|
+
n[2] || (n[2] = P("span", null, "Сумма", -1)),
|
|
35545
35549
|
z(Gi, {
|
|
35546
35550
|
product: t.product,
|
|
35547
35551
|
"cost-field-name": "cost"
|
|
@@ -35638,7 +35642,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35638
35642
|
}), (s, r) => {
|
|
35639
35643
|
const o = Ol;
|
|
35640
35644
|
return w(), A(be, null, [
|
|
35641
|
-
r[0] || (r[0] =
|
|
35645
|
+
r[0] || (r[0] = P("h3", null, "Список позиций", -1)),
|
|
35642
35646
|
z(o, {
|
|
35643
35647
|
columns: n.value,
|
|
35644
35648
|
data: t.products,
|
|
@@ -35662,7 +35666,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35662
35666
|
return (e, n) => (w(), A("div", {
|
|
35663
35667
|
class: je({ "flex flex-col": t.showUserType && t.extraInfoOnSecondLine })
|
|
35664
35668
|
}, [
|
|
35665
|
-
|
|
35669
|
+
P("span", S5, q(t.user.name), 1),
|
|
35666
35670
|
t.showUserType ? (w(), A("span", {
|
|
35667
35671
|
key: 0,
|
|
35668
35672
|
class: je([{ "ml-1": !t.extraInfoOnSecondLine }, "text-sc-grey"])
|
|
@@ -35679,71 +35683,71 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35679
35683
|
setup(t, { emit: e }) {
|
|
35680
35684
|
const n = e;
|
|
35681
35685
|
return (i, s) => (w(), A("div", null, [
|
|
35682
|
-
s[12] || (s[12] =
|
|
35683
|
-
|
|
35686
|
+
s[12] || (s[12] = P("h3", null, "Детали заказа", -1)),
|
|
35687
|
+
P("div", P5, [
|
|
35684
35688
|
t.order.creator.id !== t.order.client.id ? (w(), A(be, { key: 0 }, [
|
|
35685
|
-
s[1] || (s[1] =
|
|
35689
|
+
s[1] || (s[1] = P("span", null, "Создал", -1)),
|
|
35686
35690
|
z(Ed, {
|
|
35687
35691
|
user: t.order.creator,
|
|
35688
35692
|
class: "col-span-2"
|
|
35689
35693
|
}, null, 8, ["user"])
|
|
35690
35694
|
], 64)) : H("", !0),
|
|
35691
|
-
s[11] || (s[11] =
|
|
35695
|
+
s[11] || (s[11] = P("span", null, "Клиент", -1)),
|
|
35692
35696
|
z(Fo, {
|
|
35693
35697
|
client: t.order.client,
|
|
35694
35698
|
class: "col-span-2",
|
|
35695
35699
|
"onClick:clientName": s[0] || (s[0] = (r) => n("click:client-name", t.order.client, r))
|
|
35696
35700
|
}, null, 8, ["client"]),
|
|
35697
35701
|
t.order.contragent ? (w(), A(be, { key: 1 }, [
|
|
35698
|
-
s[2] || (s[2] =
|
|
35702
|
+
s[2] || (s[2] = P("span", null, "Контрагент", -1)),
|
|
35699
35703
|
z(P1, {
|
|
35700
35704
|
contragent: t.order.contragent,
|
|
35701
35705
|
class: "col-span-2"
|
|
35702
35706
|
}, null, 8, ["contragent"])
|
|
35703
35707
|
], 64)) : H("", !0),
|
|
35704
35708
|
t.order.image ? (w(), A(be, { key: 2 }, [
|
|
35705
|
-
s[3] || (s[3] =
|
|
35706
|
-
s[4] || (s[4] =
|
|
35709
|
+
s[3] || (s[3] = P("span", null, "Графический файл клиента", -1)),
|
|
35710
|
+
s[4] || (s[4] = P("a", {
|
|
35707
35711
|
class: "fancybox col-span-2",
|
|
35708
35712
|
href: "{{ order.image }}"
|
|
35709
35713
|
}, " Посмотреть ", -1))
|
|
35710
35714
|
], 64)) : H("", !0),
|
|
35711
35715
|
t.order.barcode ? (w(), A(be, { key: 3 }, [
|
|
35712
|
-
s[5] || (s[5] =
|
|
35713
|
-
|
|
35716
|
+
s[5] || (s[5] = P("span", null, "Штрих-код", -1)),
|
|
35717
|
+
P("span", T5, q(t.order.barcode), 1)
|
|
35714
35718
|
], 64)) : H("", !0),
|
|
35715
35719
|
t.order.payment ? (w(), A(be, { key: 4 }, [
|
|
35716
|
-
s[6] || (s[6] =
|
|
35720
|
+
s[6] || (s[6] = P("span", null, "Оплата", -1)),
|
|
35717
35721
|
z(cg, {
|
|
35718
35722
|
payment: t.order.payment,
|
|
35719
35723
|
class: "col-span-2"
|
|
35720
35724
|
}, null, 8, ["payment"])
|
|
35721
35725
|
], 64)) : H("", !0),
|
|
35722
35726
|
t.order.delivery ? (w(), A(be, { key: 5 }, [
|
|
35723
|
-
s[7] || (s[7] =
|
|
35727
|
+
s[7] || (s[7] = P("span", null, "Доставка", -1)),
|
|
35724
35728
|
z(hc, {
|
|
35725
35729
|
delivery: t.order.delivery,
|
|
35726
35730
|
class: "col-span-2"
|
|
35727
35731
|
}, null, 8, ["delivery"])
|
|
35728
35732
|
], 64)) : H("", !0),
|
|
35729
35733
|
t.order.comment ? (w(), A(be, { key: 6 }, [
|
|
35730
|
-
s[8] || (s[8] =
|
|
35731
|
-
|
|
35734
|
+
s[8] || (s[8] = P("span", null, "Комментарий", -1)),
|
|
35735
|
+
P("span", R5, q(t.order.comment), 1)
|
|
35732
35736
|
], 64)) : H("", !0),
|
|
35733
35737
|
t.order.attachedUser ? (w(), A(be, { key: 7 }, [
|
|
35734
|
-
s[9] || (s[9] =
|
|
35738
|
+
s[9] || (s[9] = P("span", null, "Закреплен за", -1)),
|
|
35735
35739
|
z(Ed, {
|
|
35736
35740
|
user: t.order.attachedUser,
|
|
35737
35741
|
class: "col-span-2"
|
|
35738
35742
|
}, null, 8, ["user"])
|
|
35739
35743
|
], 64)) : H("", !0),
|
|
35740
35744
|
t.order.invoices && t.order.invoices.length > 0 ? (w(), A(be, { key: 8 }, [
|
|
35741
|
-
s[10] || (s[10] =
|
|
35745
|
+
s[10] || (s[10] = P("span", null, "Прикрепленные счета", -1)),
|
|
35742
35746
|
(w(!0), A(be, null, Ct(t.order.invoices, (r, o) => (w(), A("div", {
|
|
35743
35747
|
key: o,
|
|
35744
35748
|
class: "col-span-2"
|
|
35745
35749
|
}, [
|
|
35746
|
-
|
|
35750
|
+
P("a", {
|
|
35747
35751
|
class: "btn btn-primary",
|
|
35748
35752
|
href: r
|
|
35749
35753
|
}, " Скачать счет №" + q(o + 1), 9, F5)
|
|
@@ -35780,22 +35784,22 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35780
35784
|
}), (l, c) => {
|
|
35781
35785
|
const u = Rs;
|
|
35782
35786
|
return s.value ? (w(), A("div", A5, [
|
|
35783
|
-
|
|
35787
|
+
P("div", E5, [
|
|
35784
35788
|
z(u, {
|
|
35785
35789
|
size: "small",
|
|
35786
35790
|
class: "mb-2.5 align-middle"
|
|
35787
35791
|
}),
|
|
35788
|
-
c[1] || (c[1] =
|
|
35789
|
-
|
|
35792
|
+
c[1] || (c[1] = P("div", null, [
|
|
35793
|
+
P("span", null, "Загрузка данных ...")
|
|
35790
35794
|
], -1))
|
|
35791
35795
|
])
|
|
35792
35796
|
])) : r.value.products.length === 0 ? (w(), A("div", I5, " --- Не удалось загрузить данные о заказе --- ")) : (w(), A("div", O5, [
|
|
35793
35797
|
z(C5, {
|
|
35794
35798
|
products: r.value.products
|
|
35795
35799
|
}, null, 8, ["products"]),
|
|
35796
|
-
|
|
35800
|
+
P("div", z5, [
|
|
35797
35801
|
c[2] || (c[2] = J(" ИТОГО: ", -1)),
|
|
35798
|
-
|
|
35802
|
+
P("span", L5, q(a.value) + " ₽", 1)
|
|
35799
35803
|
]),
|
|
35800
35804
|
z(M5, {
|
|
35801
35805
|
order: r.value,
|
|
@@ -35871,19 +35875,19 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35871
35875
|
direction: "desc"
|
|
35872
35876
|
}
|
|
35873
35877
|
]
|
|
35874
|
-
), r = W(s()), o = W([]), a = W(!1), l = E(() => Ot().orderStatusReference), c = W(700), u = (
|
|
35878
|
+
), r = W(s()), o = W([]), a = W(!1), l = E(() => Ot().orderStatusReference), c = W(700), u = ($) => {
|
|
35875
35879
|
var Z, V;
|
|
35876
35880
|
const B = {
|
|
35877
|
-
onDblclick: () => i("dblclick:row",
|
|
35881
|
+
onDblclick: () => i("dblclick:row", $)
|
|
35878
35882
|
};
|
|
35879
35883
|
if (!n.useCellIndication)
|
|
35880
35884
|
return B;
|
|
35881
35885
|
const O = [];
|
|
35882
|
-
|
|
35883
|
-
const L = (V = (Z = l.value) == null ? void 0 : Z.find((oe) => oe.id === (
|
|
35884
|
-
return L && O.push("order-status", L),
|
|
35886
|
+
$.isOnOrder && O.push("on-order"), $.isLargeOrder && O.push("large-order"), $.isNotInStock && O.push("not-in-stock");
|
|
35887
|
+
const L = (V = (Z = l.value) == null ? void 0 : Z.find((oe) => oe.id === ($.status ?? -1))) == null ? void 0 : V.slug;
|
|
35888
|
+
return L && O.push("order-status", L), $.delivery.date && cm(new Date($.delivery.date)) && O.push("next-day-order"), O.length > 0 && (B.class = O.join(" ")), B;
|
|
35885
35889
|
}, d = () => {
|
|
35886
|
-
const
|
|
35890
|
+
const $ = [
|
|
35887
35891
|
Ze.CreatedAt,
|
|
35888
35892
|
Ze.Id,
|
|
35889
35893
|
Ze.ClientInfo,
|
|
@@ -35894,7 +35898,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
35894
35898
|
Ze.Status,
|
|
35895
35899
|
...n.showAttachedUserColumn ? [Ze.AttachedUser] : [],
|
|
35896
35900
|
Ze.actions
|
|
35897
|
-
], B = n.fields.length > 0 ? n.fields :
|
|
35901
|
+
], B = n.fields.length > 0 ? n.fields : $, O = {
|
|
35898
35902
|
title: "???",
|
|
35899
35903
|
key: "undefined",
|
|
35900
35904
|
render: () => j("span", {}, ["--- unknown ---"])
|
|
@@ -36078,8 +36082,8 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36078
36082
|
)
|
|
36079
36083
|
), f = E(() => ({
|
|
36080
36084
|
...g.value,
|
|
36081
|
-
prefix({ itemCount:
|
|
36082
|
-
return `Всего заказов: ${
|
|
36085
|
+
prefix({ itemCount: $ }) {
|
|
36086
|
+
return `Всего заказов: ${$}`;
|
|
36083
36087
|
}
|
|
36084
36088
|
})), m = W(null), v = W(null), p = W(null), y = () => {
|
|
36085
36089
|
p.value !== null && (clearInterval(p.value), p.value = null);
|
|
@@ -36088,8 +36092,8 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36088
36092
|
R();
|
|
36089
36093
|
}, n.refreshInterval));
|
|
36090
36094
|
}, _ = () => {
|
|
36091
|
-
var
|
|
36092
|
-
n.filters && ((
|
|
36095
|
+
var $, B;
|
|
36096
|
+
n.filters && (($ = v.value) == null || $.abort(), v.value = null, (B = m.value) == null || B.abort(), m.value = new AbortController(), a.value = !0, hi.getInstance(el).getOrders(
|
|
36093
36097
|
n.filters,
|
|
36094
36098
|
r.value,
|
|
36095
36099
|
// eslint-disable-next-line vue/max-len
|
|
@@ -36102,8 +36106,8 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36102
36106
|
throw a.value = !1, O;
|
|
36103
36107
|
}));
|
|
36104
36108
|
}, R = () => {
|
|
36105
|
-
var
|
|
36106
|
-
!n.filters || a.value || ((
|
|
36109
|
+
var $;
|
|
36110
|
+
!n.filters || a.value || (($ = v.value) == null || $.abort(), v.value = new AbortController(), hi.getInstance(el).getOrders(
|
|
36107
36111
|
n.filters,
|
|
36108
36112
|
r.value,
|
|
36109
36113
|
// eslint-disable-next-line vue/max-len
|
|
@@ -36115,21 +36119,21 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36115
36119
|
if ((B == null ? void 0 : B.name) !== "CanceledError")
|
|
36116
36120
|
throw B;
|
|
36117
36121
|
}));
|
|
36118
|
-
}, F = (
|
|
36119
|
-
g.value.page =
|
|
36120
|
-
}, b = (
|
|
36121
|
-
g.value.pageSize =
|
|
36122
|
-
}, k = (
|
|
36123
|
-
if (zd(
|
|
36122
|
+
}, F = ($) => {
|
|
36123
|
+
g.value.page = $, _(), i("update:pagination", g.value);
|
|
36124
|
+
}, b = ($) => {
|
|
36125
|
+
g.value.pageSize = $, g.value.page = 1, _(), i("update:pagination", g.value);
|
|
36126
|
+
}, k = ($) => {
|
|
36127
|
+
if (zd($))
|
|
36124
36128
|
r.value = s();
|
|
36125
36129
|
else {
|
|
36126
36130
|
const [B] = r.value;
|
|
36127
|
-
B.field =
|
|
36131
|
+
B.field = $.columnKey.toString(), B.direction = $.order === "ascend" ? "asc" : "desc", r.value = [B];
|
|
36128
36132
|
}
|
|
36129
36133
|
h.value.forEach((B) => {
|
|
36130
36134
|
if (Object.hasOwn(B, "sortOrder")) {
|
|
36131
36135
|
const O = B;
|
|
36132
|
-
O.sortOrder = O.key === (
|
|
36136
|
+
O.sortOrder = O.key === ($ == null ? void 0 : $.columnKey) && ($ != null && $.sorter) && $.order !== !1 ? $.order : !1;
|
|
36133
36137
|
}
|
|
36134
36138
|
}), _(), i("update:sort", r.value);
|
|
36135
36139
|
}, x = () => {
|
|
@@ -36150,9 +36154,9 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36150
36154
|
_(), C();
|
|
36151
36155
|
});
|
|
36152
36156
|
}), Er(() => {
|
|
36153
|
-
var
|
|
36154
|
-
window.removeEventListener("resize", x), (
|
|
36155
|
-
}), (
|
|
36157
|
+
var $, B;
|
|
36158
|
+
window.removeEventListener("resize", x), ($ = m.value) == null || $.abort(), (B = v.value) == null || B.abort(), y();
|
|
36159
|
+
}), ($, B) => {
|
|
36156
36160
|
const O = Ol;
|
|
36157
36161
|
return w(), ne(O, {
|
|
36158
36162
|
columns: h.value,
|
|
@@ -36187,9 +36191,9 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36187
36191
|
lt(n.orderLink) && (o.preventDefault(), o.stopPropagation()), i("click:order-id", n.order, o);
|
|
36188
36192
|
};
|
|
36189
36193
|
return (o, a) => (w(), A(be, null, [
|
|
36190
|
-
|
|
36194
|
+
P("span", null, [
|
|
36191
36195
|
a[1] || (a[1] = J(" #", -1)),
|
|
36192
|
-
|
|
36196
|
+
P("a", {
|
|
36193
36197
|
href: t.orderLink ?? "#",
|
|
36194
36198
|
onClick: a[0] || (a[0] = (l) => r(l))
|
|
36195
36199
|
}, q(t.order.id), 9, q5),
|
|
@@ -36199,7 +36203,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36199
36203
|
], 64)) : H("", !0)
|
|
36200
36204
|
]),
|
|
36201
36205
|
a[2] || (a[2] = J(", ", -1)),
|
|
36202
|
-
|
|
36206
|
+
P("span", U5, "автор: " + q(t.order.creator.name) + " [" + q(t.order.creator.type) + "]", 1)
|
|
36203
36207
|
], 64));
|
|
36204
36208
|
}
|
|
36205
36209
|
}), Y5 = { class: "sc-page flex flex-col bg-inherit" }, K5 = { class: "my-2 flex flex-row items-end" }, G5 = { class: "sc-title grow" }, Z5 = {
|
|
@@ -36220,12 +36224,12 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36220
36224
|
return (e, n) => {
|
|
36221
36225
|
const i = tm;
|
|
36222
36226
|
return w(), A("div", Y5, [
|
|
36223
|
-
|
|
36227
|
+
P("div", {
|
|
36224
36228
|
class: je(t.stickyHeader ? "sticky z-10 bg-inherit" : void 0),
|
|
36225
36229
|
style: es(t.stickyHeader ? { top: `${t.stickyTopOffset ?? 0}px` } : void 0)
|
|
36226
36230
|
}, [
|
|
36227
|
-
|
|
36228
|
-
|
|
36231
|
+
P("div", K5, [
|
|
36232
|
+
P("div", G5, [
|
|
36229
36233
|
Re(e.$slots, "title", {}, () => [
|
|
36230
36234
|
z(i, { class: "m-0 leading-none lg:mb-3 lg:leading-normal" }, {
|
|
36231
36235
|
default: I(() => [
|
|
@@ -36236,7 +36240,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36236
36240
|
])
|
|
36237
36241
|
]),
|
|
36238
36242
|
e.$slots["title-buttons"] ? (w(), A("div", Z5, [
|
|
36239
|
-
|
|
36243
|
+
P("div", Q5, [
|
|
36240
36244
|
Re(e.$slots, "title-buttons")
|
|
36241
36245
|
])
|
|
36242
36246
|
])) : H("", !0)
|
|
@@ -36292,8 +36296,8 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36292
36296
|
}), a(), window.addEventListener("resize", a), (l, c) => {
|
|
36293
36297
|
const u = qd, d = jd;
|
|
36294
36298
|
return w(), A(be, null, [
|
|
36295
|
-
|
|
36296
|
-
|
|
36299
|
+
P("div", n4, [
|
|
36300
|
+
P("div", {
|
|
36297
36301
|
style: es(`margin-left: ${s.value}px;`),
|
|
36298
36302
|
class: "w-full"
|
|
36299
36303
|
}, [
|
|
@@ -36311,7 +36315,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36311
36315
|
z(u, { closable: "" }, {
|
|
36312
36316
|
header: I(() => [
|
|
36313
36317
|
Re(l.$slots, "drawer-header", {}, () => [
|
|
36314
|
-
|
|
36318
|
+
P("div", i4, q(t.title), 1)
|
|
36315
36319
|
])
|
|
36316
36320
|
]),
|
|
36317
36321
|
default: I(() => [
|
|
@@ -36439,7 +36443,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36439
36443
|
a.$slots["preview-panel"] || a.$slots["preview-panel-extra"] || t.isShowPanelButtonVisible ? {
|
|
36440
36444
|
name: "sticky-extra",
|
|
36441
36445
|
fn: I(() => [
|
|
36442
|
-
|
|
36446
|
+
P("div", o4, [
|
|
36443
36447
|
t.isShowPanelButtonVisible ? (w(), A("div", a4, [
|
|
36444
36448
|
Re(a.$slots, "show-panel-button", {
|
|
36445
36449
|
onClickHandler: () => {
|
|
@@ -36457,7 +36461,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36457
36461
|
})
|
|
36458
36462
|
])
|
|
36459
36463
|
])) : H("", !0),
|
|
36460
|
-
|
|
36464
|
+
P("div", l4, [
|
|
36461
36465
|
Re(a.$slots, "preview-panel")
|
|
36462
36466
|
]),
|
|
36463
36467
|
a.$slots["preview-panel-extra"] ? (w(), A("div", c4, [
|
|
@@ -36776,13 +36780,13 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36776
36780
|
},
|
|
36777
36781
|
setup(t) {
|
|
36778
36782
|
return (e, n) => (w(), A("div", g4, [
|
|
36779
|
-
|
|
36783
|
+
P("span", m4, [
|
|
36780
36784
|
t.addr.postIndex ? (w(), A("span", p4, q(t.addr.postIndex) + ", ", 1)) : H("", !0),
|
|
36781
36785
|
t.addr.city ? (w(), A("span", v4, q(t.addr.city) + ", ", 1)) : H("", !0),
|
|
36782
36786
|
t.addr.locality ? (w(), A("span", y4, q(t.addr.locality) + ", ", 1)) : H("", !0),
|
|
36783
36787
|
t.addr.region ? (w(), A("span", b4, q(t.addr.region) + ", ", 1)) : H("", !0)
|
|
36784
36788
|
]),
|
|
36785
|
-
|
|
36789
|
+
P("span", _4, [
|
|
36786
36790
|
t.addr.street ? (w(), A("span", w4, q(t.addr.street) + ", ", 1)) : H("", !0),
|
|
36787
36791
|
t.addr.building ? (w(), A("span", x4, q(t.addr.building) + ", ", 1)) : H("", !0),
|
|
36788
36792
|
t.addr.buildingPart ? (w(), A("span", k4, q(t.addr.buildingPart) + ", ", 1)) : H("", !0),
|
|
@@ -36894,8 +36898,8 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
36894
36898
|
},
|
|
36895
36899
|
setup(t) {
|
|
36896
36900
|
return (e, n) => (w(), A("div", T4, [
|
|
36897
|
-
|
|
36898
|
-
|
|
36901
|
+
P("span", R4, q(t.bank.name), 1),
|
|
36902
|
+
P("span", F4, [
|
|
36899
36903
|
t.bank.bic ? (w(), A("span", B4, " БИК: " + q(t.bank.bic), 1)) : H("", !0),
|
|
36900
36904
|
t.bank.inn ? (w(), A("span", M4, " ИНН: " + q(t.bank.inn), 1)) : H("", !0)
|
|
36901
36905
|
])
|
|
@@ -37020,7 +37024,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
37020
37024
|
return (s, r) => (w(), A("div", {
|
|
37021
37025
|
class: je(`m-0.5 flex flex-col p-0.5 ${n.value ? "line-through" : ""}`)
|
|
37022
37026
|
}, [
|
|
37023
|
-
|
|
37027
|
+
P("span", O4, q(t.org.name), 1),
|
|
37024
37028
|
t.org.inn || i.value ? (w(), A("div", z4, [
|
|
37025
37029
|
t.org.inn ? (w(), A("span", L4, q(t.org.inn), 1)) : H("", !0),
|
|
37026
37030
|
i.value ? (w(), A("span", D4, q(i.value), 1)) : H("", !0)
|
|
@@ -37251,7 +37255,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
37251
37255
|
"onEditor:cancel": o
|
|
37252
37256
|
}, {
|
|
37253
37257
|
viewer: I(() => [
|
|
37254
|
-
|
|
37258
|
+
P("div", null, [
|
|
37255
37259
|
t.comment ? (w(), A("span", j4, q(t.comment), 1)) : (w(), A("span", q4, " - Комментарий отсутствует - "))
|
|
37256
37260
|
])
|
|
37257
37261
|
]),
|
|
@@ -37285,7 +37289,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
37285
37289
|
class: je({ "text-sm": t.wrapAsSmall })
|
|
37286
37290
|
}, [
|
|
37287
37291
|
J(q(n.value) + " ", 1),
|
|
37288
|
-
|
|
37292
|
+
P("span", {
|
|
37289
37293
|
class: je({ "text-green-700": t.debt > 0, "text-red-700": t.debt < 0 })
|
|
37290
37294
|
}, q(t.debt) + " ₽ ", 3)
|
|
37291
37295
|
], 2)) : H("", !0);
|
|
@@ -37297,7 +37301,7 @@ const Z3 = He({ name: "tabler-truck-loading", render: G3 }), Q3 = { class: "flex
|
|
|
37297
37301
|
};
|
|
37298
37302
|
function K4(t, e) {
|
|
37299
37303
|
return w(), A("svg", Y4, [...e[0] || (e[0] = [
|
|
37300
|
-
|
|
37304
|
+
P("path", {
|
|
37301
37305
|
fill: "currentColor",
|
|
37302
37306
|
d: "M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17m-198.6-1.83a20 20 0 1 1 20-20a20 20 0 0 1-20 20m21.72-201.15l-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7Z"
|
|
37303
37307
|
}, null, -1)
|