@snabcentr/vue-ui-lib 5.7.4 → 5.7.6
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 -10
- package/dist/sc-vue-ui-lib.js +747 -728
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +53 -53
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/providers/ui-notification-provider.d.ts +8 -0
- package/package.json +1 -1
package/dist/sc-vue-ui-lib.js
CHANGED
|
@@ -6,9 +6,9 @@ var Kp = (t, e, n) => e in t ? Yp(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var P = (t, e, n) => Kp(t, typeof e != "symbol" ? e + "" : e, n), hu = (t, e, n) => e.has(t) || du("Cannot " + n);
|
|
7
7
|
var yn = (t, e, n) => (hu(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ol = (t, e, n) => e.has(t) ? du("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), fu = (t, e, n, i) => (hu(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n);
|
|
8
8
|
import { FieldValidationResultData as Gp, OrderStatusEnum as Di, useBaseConfigStateStore as fn, useReferencesStore as Dt, OrderItemBase as _t, ClientProduct as di, Identity as Zp, ConfiguratorsEnum as un, ClientCategory as Qp, Reference as Jp, PriceCoefficientEnum as em, CalculationTypeEnum as al, PriceCoefficient as tm, UnitsHelper as Xt, STANDARD_PERIOD_SECTIONS as nm, DateTimeProvider as xa, STANDARD_PERIOD_GROUPS as Wl, pluralize as im, PreferencesStorageProvider as jr, HttpRequester as Yn, ProductCategoryDataProvider as sm, ProductDataProvider as rm, UserTypeEnum as vo, currentOrderInjectionKey as Wh, OrdersDataProvider as qr, Order as om, TableDataPagination as am, ReferenceDataProvider as Vh, Region as lm, ClientDataProvider as cm, Curator as gu, CuratedDirection as um, ManagerDataFactory as pu, Manager as ll, DataSuggestionProvider as Tc } from "@snabcentr/common-lib";
|
|
9
|
-
import { isEmpty as $r, isNil as Ue, noop as Ot, forEach as Os, isFunction as It, some as Mn, startsWith as dm, trim as hm, isString as ui, split as mu, round as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { isEmpty as $r, isNil as Ue, noop as Ot, forEach as Os, isFunction as It, some as Mn, startsWith as dm, trim as hm, isString as ui, split as mu, round as zr, floor as fm, groupBy as gm, get as Xo, compact as Vl, find as vu, forOwn as pm, sortBy as ka, cloneDeep as gn, reduce as jh, every as yu, isArray as ut, keys as mm, debounce as pi, sum as bu, isUndefined as kr, unset as vm, isNull as qh, times as _u, isObject as ym, merge as yo, upperFirst as bm, map as Yo, sumBy as _m, assign as wm, constant as Ca, isEqual as xm, join as km, union as Cm } from "lodash-es";
|
|
10
|
+
import { h as G, ref as V, computed as F, onMounted as lt, onUnmounted as Pr, onScopeDispose as Sm, readonly as Qr, Comment as Sa, Text as Uh, Fragment as ye, defineComponent as re, createElementBlock as R, openBlock as b, createVNode as D, withCtx as I, createTextVNode as ne, toDisplayString as W, renderSlot as Pe, renderList as Xe, createBlock as J, unref as T, markRaw as Le, createElementVNode as k, inject as et, normalizeClass as Ie, createCommentVNode as H, Transition as Ws, useTemplateRef as Ke, onBeforeUnmount as zn, normalizeStyle as en, watch as xe, createSlots as ts, withDirectives as Dn, nextTick as wt, toRaw as Bn, withModifiers as Ri, provide as On, createStaticVNode as $m, withKeys as Ko, resolveDynamicComponent as Pm, onBeforeMount as $a, getCurrentInstance as Xh, Teleport as Tm, toRef as ot, mergeProps as Rc, onActivated as Yh, onDeactivated as Kh, isVNode as Rm, shallowRef as Fm, watchEffect as ns, vShow as Fc, cloneVNode as Mm, toValue as Bm, mergeModels as jl, useModel as Gh, mergeDefaults as Mc } from "vue";
|
|
11
|
+
import { isTomorrow as Am, format as gs, isFuture as Im, differenceInCalendarDays as Em, endOfDay as Zh, startOfDay as Qh, addDays as Jh, subMonths as wu, isValid as ni, addMonths as ql, startOfMonth as Om, subDays as Lm, getDay as zm, isToday as Dm, isSameMonth as Nm, endOfMonth as Hm, addYears as Bc, getDate as Wm, getDaysInMonth as Vm, startOfToday as ef } from "date-fns";
|
|
12
12
|
import { getActivePinia as jm } from "pinia";
|
|
13
13
|
import { NPopover as Ai, NButton as Ee, NModal as co, NTooltip as Tr, NDropdown as Pa, NTag as Ac, NTabs as qm, NTabPane as Um, NScrollbar as Rr, NText as fs, NCheckbox as Gn, NSpin as ss, NForm as Ks, NFormItem as Ye, NSelect as Kn, NInputNumber as Pt, NInput as Ii, NDrawer as tf, NDrawerContent as nf, NDataTable as Ic, NAlert as sf, NInputGroup as rf, NInputGroupLabel as Xm, useThemeVars as of, NDatePicker as Ym, NCheckboxGroup as Km, NMenu as Gm, NUpload as Zm, NUploadDragger as Qm, NEmpty as Jm, NPagination as ev, NList as tv, NListItem as nv, NImage as iv, NTimeline as sv, NTimelineItem as rv, NH1 as ov, NAutoComplete as Ec } from "naive-ui";
|
|
14
14
|
import { parsePhoneNumberWithError as Oc, PhoneNumber as av, ParseError as lv } from "libphonenumber-js";
|
|
@@ -58,12 +58,31 @@ const Do = "Чтобы изменить, включите режим управ
|
|
|
58
58
|
meta: `#${e.status}${o}: ${e.statusText}`,
|
|
59
59
|
duration: 3e3
|
|
60
60
|
}) : console.log("Show notification error response data: UI provider is not initialized.", e);
|
|
61
|
-
} else
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
} else {
|
|
62
|
+
const r = [];
|
|
63
|
+
for (const o in e.errors)
|
|
64
|
+
Object.prototype.hasOwnProperty.call(n, o) ? n[o] = new Gp(e.errors[o].toString(), "error") : r.push(e.errors[o].toString());
|
|
65
|
+
an.showErrorMessages(r);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Отображает сообщения об ошибках запроса: одно сообщение выводит UI-сообщением, несколько собирает
|
|
70
|
+
* в одно уведомление со списком, чтобы массовые ошибки (например, по каждому товару при импорте)
|
|
71
|
+
* не выводились сотнями отдельных сообщений.
|
|
72
|
+
*
|
|
73
|
+
* @param messages Сообщения об ошибках.
|
|
74
|
+
*/
|
|
75
|
+
static showErrorMessages(e) {
|
|
76
|
+
const { messagesService: n, notificationsService: i } = an;
|
|
77
|
+
e.length === 1 && n ? n.error(e[0]) : e.length > 1 && i ? i.error({
|
|
78
|
+
title: "Ошибки выполнения запроса",
|
|
79
|
+
meta: `Всего ошибок: ${e.length}`,
|
|
80
|
+
content: () => G(
|
|
81
|
+
"ul",
|
|
82
|
+
{ style: { maxHeight: "240px", overflowY: "auto", margin: 0, paddingLeft: "1.25em", listStyleType: "disc" } },
|
|
83
|
+
e.map((s) => G("li", s))
|
|
84
|
+
)
|
|
85
|
+
}) : e.length > 0 && console.log("Show notification error response data: UI provider is not initialized.", e);
|
|
67
86
|
}
|
|
68
87
|
};
|
|
69
88
|
/**
|
|
@@ -148,7 +167,7 @@ const Br = /* @__PURE__ */ new WeakMap(), uv = async (t) => {
|
|
|
148
167
|
t.removeEventListener("keydown", Su), No.delete(t);
|
|
149
168
|
}
|
|
150
169
|
};
|
|
151
|
-
var
|
|
170
|
+
var Lt = /* @__PURE__ */ ((t) => (t.NotInStock = "not_in_stock", t.OnOrder = "on_order", t.LargeOrder = "large_order", t.NextDayDelivery = "next_day_delivery", t))(Lt || {});
|
|
152
171
|
const af = {
|
|
153
172
|
color: "#4b5563",
|
|
154
173
|
backgroundColor: "#e5e7eb",
|
|
@@ -187,18 +206,18 @@ const af = {
|
|
|
187
206
|
"--sc-order-status-text": e.textOnBackgroundColor
|
|
188
207
|
};
|
|
189
208
|
}, lf = /* @__PURE__ */ new Map([
|
|
190
|
-
[
|
|
191
|
-
[
|
|
192
|
-
[
|
|
193
|
-
[
|
|
209
|
+
[Lt.NotInStock, { color: "#ef4444", backgroundColor: "#f7ff00", textOnBackgroundColor: "#ff0000" }],
|
|
210
|
+
[Lt.OnOrder, { color: "#ca8a04", backgroundColor: "#f7ff00", textOnBackgroundColor: "#ff0000" }],
|
|
211
|
+
[Lt.LargeOrder, { color: "#ef2929", backgroundColor: "#ef2929", textOnBackgroundColor: "#ffffff" }],
|
|
212
|
+
[Lt.NextDayDelivery, { color: "#ef2929", backgroundColor: "#ef2929", textOnBackgroundColor: "#ffffff" }]
|
|
194
213
|
]), _v = /* @__PURE__ */ new Map([
|
|
195
|
-
[
|
|
196
|
-
[
|
|
197
|
-
[
|
|
198
|
-
[
|
|
214
|
+
[Lt.NotInStock, "Нет в наличии"],
|
|
215
|
+
[Lt.OnOrder, "Под заказ"],
|
|
216
|
+
[Lt.LargeOrder, "Крупный заказ"],
|
|
217
|
+
[Lt.NextDayDelivery, "Доставка на завтра"]
|
|
199
218
|
]), Ul = [...lf.keys()], Zo = (t) => lf.get(t) ?? af, cf = (t) => _v.get(t) ?? t, uf = (t) => {
|
|
200
219
|
const e = [];
|
|
201
|
-
return t.isNotInStock && e.push(
|
|
220
|
+
return t.isNotInStock && e.push(Lt.NotInStock), t.isOnOrder && e.push(Lt.OnOrder), t.isLargeOrder && e.push(Lt.LargeOrder), !Ue(t.delivery.date) && Am(new Date(t.delivery.date)) && e.push(Lt.NextDayDelivery), e;
|
|
202
221
|
};
|
|
203
222
|
var tt = /* @__PURE__ */ ((t) => (t.AttachedUser = "attached_user", t.ClientInfo = "client_info", t.ClientInfoShort = "client_info_short", t.CreatedAt = "created_at", t.ClientCity = "client_city", t.DeliveryInfo = "delivery_info", t.DeliveryDate = "delivery_date", t.Id = "id", t.PaymentType = "payment_type", t.SalesDirections = "sales_directions", t.Status = "status", t.actions = "actions", t))(tt || {}), pt = /* @__PURE__ */ ((t) => (t.phone = "phone", t.tablet = "tablet", t.laptop = "laptop", t))(pt || {});
|
|
204
223
|
const Yt = class Yt {
|
|
@@ -311,11 +330,11 @@ function aR() {
|
|
|
311
330
|
window.removeEventListener("resize", n);
|
|
312
331
|
}), { isCompactLayout: e };
|
|
313
332
|
}
|
|
314
|
-
const wv = "(hover: hover) and (pointer: fine)",
|
|
333
|
+
const wv = "(hover: hover) and (pointer: fine)", Lc = () => {
|
|
315
334
|
const t = It(globalThis.matchMedia) ? globalThis.matchMedia(wv) : void 0, e = V(t ? t.matches : !0), n = (i) => {
|
|
316
335
|
e.value = i.matches;
|
|
317
336
|
};
|
|
318
|
-
return t == null || t.addEventListener("change", n),
|
|
337
|
+
return t == null || t.addEventListener("change", n), Sm(() => {
|
|
319
338
|
t == null || t.removeEventListener("change", n);
|
|
320
339
|
}, !0), Qr(e);
|
|
321
340
|
}, xv = ".sc-versions-list";
|
|
@@ -336,7 +355,7 @@ class yr {
|
|
|
336
355
|
* @param vnodes Список виртуальных узлов.
|
|
337
356
|
*/
|
|
338
357
|
static isVnodeEmpty(e) {
|
|
339
|
-
return e.every((n) => n.type === Sa || n.type ===
|
|
358
|
+
return e.every((n) => n.type === Sa || n.type === Uh && ui(n.children) && !n.children.trim() ? !0 : n.type === ye && yr.isVnodeEmpty(n.children));
|
|
340
359
|
}
|
|
341
360
|
/**
|
|
342
361
|
* Возвращает признак, что указанный слот имеет контент.
|
|
@@ -393,7 +412,7 @@ class Zs {
|
|
|
393
412
|
* @param entity Данные сущности.
|
|
394
413
|
*/
|
|
395
414
|
static isDeleted(e) {
|
|
396
|
-
return !!(e.deletedAt &&
|
|
415
|
+
return !!(e.deletedAt && !Im(e.deletedAt));
|
|
397
416
|
}
|
|
398
417
|
/**
|
|
399
418
|
* Возвращает название сущности с пометкой об удалении.
|
|
@@ -417,7 +436,7 @@ const jt = (t, e = !1) => {
|
|
|
417
436
|
}, Xl = (t, e = ".", n = !1) => {
|
|
418
437
|
const { key: i } = t, s = t.target;
|
|
419
438
|
["Backspace", "Delete", "Tab", "Escape", "Enter", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(i) || (t.ctrlKey || t.metaKey) && ["a", "c", "v", "x", "z", "ф", "с", "м", "ч", "я"].includes(i.toLowerCase()) || n && i === "-" && !s.value.includes("-") && ((s.selectionStart ?? 0) === 0 || s.value.length === 0) || (i === e || i === (e === "." ? "," : ".")) && !s.value.includes(e) && !s.value.includes(e === "." ? "," : ".") || /^\d$/.test(i) || t.preventDefault();
|
|
420
|
-
}, Zt = (t) => t ? Number.parseFloat(t.replace(",", ".")) : null,
|
|
439
|
+
}, Zt = (t) => t ? Number.parseFloat(t.replace(",", ".")) : null, zt = (t, e) => {
|
|
421
440
|
t[e] = {};
|
|
422
441
|
}, dt = (t) => {
|
|
423
442
|
const e = t.target;
|
|
@@ -451,7 +470,7 @@ const jt = (t, e = !1) => {
|
|
|
451
470
|
* @param step Шаг с нужной точностью, например длина одного отрезка.
|
|
452
471
|
*/
|
|
453
472
|
static multiplyByStep(e, n) {
|
|
454
|
-
return
|
|
473
|
+
return zr(e * n, gt.getDecimalsCount(n) + gt.getDecimalsCount(e));
|
|
455
474
|
}
|
|
456
475
|
/**
|
|
457
476
|
* Возвращает частное от деления значения на шаг без погрешности дробной арифметики.
|
|
@@ -487,7 +506,7 @@ const jt = (t, e = !1) => {
|
|
|
487
506
|
* @param value Координата.
|
|
488
507
|
*/
|
|
489
508
|
static roundCoordinate(e) {
|
|
490
|
-
return
|
|
509
|
+
return zr(e, gt.coordinateFractionDigits);
|
|
491
510
|
}
|
|
492
511
|
/**
|
|
493
512
|
* Возвращает денежную сумму, округлённую до точности валюты. Пока точность неизвестна, убирает только погрешность дробной арифметики.
|
|
@@ -496,7 +515,7 @@ const jt = (t, e = !1) => {
|
|
|
496
515
|
* @param precision Точность валюты суммы, по умолчанию точность валюты по умолчанию из справочника валют.
|
|
497
516
|
*/
|
|
498
517
|
static roundMoney(e, n = Ur.getPrecision()) {
|
|
499
|
-
return n === void 0 ? gt.normalize(e) :
|
|
518
|
+
return n === void 0 ? gt.normalize(e) : zr(e, n);
|
|
500
519
|
}
|
|
501
520
|
/**
|
|
502
521
|
* Возвращает денежную сумму, округлённую до точности валюты в меньшую сторону. Пока точность неизвестна, убирает только
|
|
@@ -515,7 +534,7 @@ const jt = (t, e = !1) => {
|
|
|
515
534
|
* @param fractionDigits Количество знаков после запятой, по умолчанию {@link NumberHelper.percentFractionDigits}.
|
|
516
535
|
*/
|
|
517
536
|
static roundPercent(e, n = gt.percentFractionDigits) {
|
|
518
|
-
return
|
|
537
|
+
return zr(e, n);
|
|
519
538
|
}
|
|
520
539
|
/**
|
|
521
540
|
* Возвращает денежную сумму в виде строки с разделителями разрядов и количеством знаков после запятой по точности валюты.
|
|
@@ -945,7 +964,7 @@ function Rv(t, e) {
|
|
|
945
964
|
}, null, -1)
|
|
946
965
|
])]);
|
|
947
966
|
}
|
|
948
|
-
const
|
|
967
|
+
const zc = Le({ name: "ion-ellipsis-vertical-sharp", render: Rv }), Fv = {
|
|
949
968
|
viewBox: "0 0 24 24",
|
|
950
969
|
width: "1.2em",
|
|
951
970
|
height: "1.2em"
|
|
@@ -964,7 +983,7 @@ function Mv(t, e) {
|
|
|
964
983
|
], -1)
|
|
965
984
|
])]);
|
|
966
985
|
}
|
|
967
|
-
const hf =
|
|
986
|
+
const hf = Le({ name: "tabler-edit", render: Mv }), Bv = {
|
|
968
987
|
viewBox: "0 0 512 512",
|
|
969
988
|
width: "1.2em",
|
|
970
989
|
height: "1.2em"
|
|
@@ -977,7 +996,7 @@ function Av(t, e) {
|
|
|
977
996
|
}, null, -1)
|
|
978
997
|
])]);
|
|
979
998
|
}
|
|
980
|
-
const ff =
|
|
999
|
+
const ff = Le({ name: "ion-checkmark-done-circle", render: Av }), Iv = {
|
|
981
1000
|
viewBox: "0 0 512 512",
|
|
982
1001
|
width: "1.2em",
|
|
983
1002
|
height: "1.2em"
|
|
@@ -1001,12 +1020,12 @@ function Ev(t, e) {
|
|
|
1001
1020
|
}, null, -1)
|
|
1002
1021
|
])]);
|
|
1003
1022
|
}
|
|
1004
|
-
const gf =
|
|
1023
|
+
const gf = Le({ name: "ion-checkmark-done-circle-outline", render: Ev }), Ov = {
|
|
1005
1024
|
viewBox: "0 0 32 32",
|
|
1006
1025
|
width: "1.2em",
|
|
1007
1026
|
height: "1.2em"
|
|
1008
1027
|
};
|
|
1009
|
-
function
|
|
1028
|
+
function Lv(t, e) {
|
|
1010
1029
|
return b(), R("svg", Ov, [...e[0] || (e[0] = [
|
|
1011
1030
|
k("path", {
|
|
1012
1031
|
fill: "currentColor",
|
|
@@ -1014,7 +1033,7 @@ function zv(t, e) {
|
|
|
1014
1033
|
}, null, -1)
|
|
1015
1034
|
])]);
|
|
1016
1035
|
}
|
|
1017
|
-
const
|
|
1036
|
+
const zv = Le({ name: "fluent-pin32-regular", render: Lv }), Dv = {
|
|
1018
1037
|
viewBox: "0 0 512 512",
|
|
1019
1038
|
width: "1.2em",
|
|
1020
1039
|
height: "1.2em"
|
|
@@ -1040,7 +1059,7 @@ function Nv(t, e) {
|
|
|
1040
1059
|
}, null, -1)
|
|
1041
1060
|
])]);
|
|
1042
1061
|
}
|
|
1043
|
-
const Hv =
|
|
1062
|
+
const Hv = Le({ name: "ion-eye-outline", render: Nv }), Wv = {
|
|
1044
1063
|
viewBox: "0 0 32 32",
|
|
1045
1064
|
width: "1.2em",
|
|
1046
1065
|
height: "1.2em"
|
|
@@ -1053,7 +1072,7 @@ function Vv(t, e) {
|
|
|
1053
1072
|
}, null, -1)
|
|
1054
1073
|
])]);
|
|
1055
1074
|
}
|
|
1056
|
-
const jv =
|
|
1075
|
+
const jv = Le({ name: "fluent-pin32-filled", render: Vv }), qv = {
|
|
1057
1076
|
viewBox: "0 0 512 512",
|
|
1058
1077
|
width: "1.2em",
|
|
1059
1078
|
height: "1.2em"
|
|
@@ -1070,7 +1089,7 @@ function Uv(t, e) {
|
|
|
1070
1089
|
}, null, -1)
|
|
1071
1090
|
])]);
|
|
1072
1091
|
}
|
|
1073
|
-
const Xv =
|
|
1092
|
+
const Xv = Le({ name: "ion-bookmark-outline", render: Uv }), Yv = {
|
|
1074
1093
|
viewBox: "0 0 512 512",
|
|
1075
1094
|
width: "1.2em",
|
|
1076
1095
|
height: "1.2em"
|
|
@@ -1087,7 +1106,7 @@ function Kv(t, e) {
|
|
|
1087
1106
|
}, null, -1)
|
|
1088
1107
|
])]);
|
|
1089
1108
|
}
|
|
1090
|
-
const Gv =
|
|
1109
|
+
const Gv = Le({ name: "ion-eye-off-sharp", render: Kv }), Zv = {
|
|
1091
1110
|
viewBox: "0 0 512 512",
|
|
1092
1111
|
width: "1.2em",
|
|
1093
1112
|
height: "1.2em"
|
|
@@ -1104,7 +1123,7 @@ function Qv(t, e) {
|
|
|
1104
1123
|
}, null, -1)
|
|
1105
1124
|
])]);
|
|
1106
1125
|
}
|
|
1107
|
-
const Jv =
|
|
1126
|
+
const Jv = Le({ name: "ion-chevron-forward-outline", render: Qv }), ey = ["data-name"], ty = { class: "sc-collapse-item-header flex flex-row gap-2.5" }, ny = { class: "sc-collapse-item-arrow flex-none cursor-pointer pt-1.5" }, iy = { key: 0 }, sy = { class: "sc-collapse-item-pre-arrow flex flex-none flex-row gap-1" }, ry = { class: "flex flex-1 flex-col" }, oy = {
|
|
1108
1127
|
key: 0,
|
|
1109
1128
|
class: "sc-collapse-item-sub-title flex-1"
|
|
1110
1129
|
}, ay = {
|
|
@@ -1249,7 +1268,7 @@ function fy(t, e) {
|
|
|
1249
1268
|
}, null, -1)
|
|
1250
1269
|
])]);
|
|
1251
1270
|
}
|
|
1252
|
-
const pf =
|
|
1271
|
+
const pf = Le({ name: "ion-cart-outline", render: fy }), Ta = Symbol(), gR = {
|
|
1253
1272
|
Button: {
|
|
1254
1273
|
border: "1px solid grey"
|
|
1255
1274
|
},
|
|
@@ -1335,7 +1354,7 @@ const pf = ze({ name: "ion-cart-outline", render: fy }), Ta = Symbol(), gR = {
|
|
|
1335
1354
|
product: {}
|
|
1336
1355
|
},
|
|
1337
1356
|
setup(t) {
|
|
1338
|
-
const e = t, n = et(Ta, "medium"), i =
|
|
1357
|
+
const e = t, n = et(Ta, "medium"), i = Lc(), s = F(
|
|
1339
1358
|
() => It(e.showProductAddToCartButton) ? e.showProductAddToCartButton(e.product) : e.showProductAddToCartButton
|
|
1340
1359
|
), r = F(
|
|
1341
1360
|
() => It(e.showProductEditButton) ? e.showProductEditButton(e.product) : e.showProductEditButton
|
|
@@ -1356,7 +1375,7 @@ const pf = ze({ name: "ion-cart-outline", render: fy }), Ta = Symbol(), gR = {
|
|
|
1356
1375
|
};
|
|
1357
1376
|
return (g, f) => {
|
|
1358
1377
|
var x;
|
|
1359
|
-
const p = gf, v = ff, m = Ee, y = Tr, w = hf, _ = pf, C =
|
|
1378
|
+
const p = gf, v = ff, m = Ee, y = Tr, w = hf, _ = pf, C = zc, M = Pa;
|
|
1360
1379
|
return b(), R("div", gy, [
|
|
1361
1380
|
o.value ? (b(), J(y, {
|
|
1362
1381
|
key: 0,
|
|
@@ -1478,7 +1497,7 @@ function yy(t, e) {
|
|
|
1478
1497
|
], -1)
|
|
1479
1498
|
])]);
|
|
1480
1499
|
}
|
|
1481
|
-
const by =
|
|
1500
|
+
const by = Le({ name: "tabler-history", render: yy }), _y = {
|
|
1482
1501
|
viewBox: "0 0 24 24",
|
|
1483
1502
|
width: "1.2em",
|
|
1484
1503
|
height: "1.2em"
|
|
@@ -1491,7 +1510,7 @@ function wy(t, e) {
|
|
|
1491
1510
|
}, null, -1)
|
|
1492
1511
|
])]);
|
|
1493
1512
|
}
|
|
1494
|
-
const xy =
|
|
1513
|
+
const xy = Le({ name: "mdi-percent-outline", render: wy }), ky = { class: "flex flex-row gap-1" }, Cy = {
|
|
1495
1514
|
key: 0,
|
|
1496
1515
|
class: "flex gap-1"
|
|
1497
1516
|
}, Sy = {
|
|
@@ -1521,7 +1540,7 @@ const xy = ze({ name: "mdi-percent-outline", render: wy }), ky = { class: "flex
|
|
|
1521
1540
|
},
|
|
1522
1541
|
setup(t) {
|
|
1523
1542
|
var _;
|
|
1524
|
-
const e = t, n =
|
|
1543
|
+
const e = t, n = Lc(), i = F(() => "product" in e.product), s = F(() => "discount" in e.product && e.product.discount ? Zs.getFormatEntityName(e.product.discount) : ""), r = F(() => "product" in e.product ? e.product.product : e.product), o = F(() => Ue(d.value) ? "" : e.showQuantityUnit ? Vl([r.value.currency.symbol, r.value.unit.name]).join("/") : e.showCurrency ? r.value.currency.symbol : ""), a = F(() => e.showQuantityUnit ? Vl(["₽", r.value.unit.name]).join("/") : e.showCurrency ? "₽" : ""), l = F(() => vu(r.value.priceCoefficients, ["coefficient.slug", e.costFieldName])), c = F(() => {
|
|
1525
1544
|
const C = vu(r.value.priceCoefficients, ["coefficient.slug", "k0"]);
|
|
1526
1545
|
return l.value || !C || Ue(d.value) || Ue(C.cost) ? !1 : d.value < C.cost;
|
|
1527
1546
|
}), u = ((_ = fn().getConfig()) == null ? void 0 : _.defaultCurrency) ?? "RUB", d = F(() => l.value ? l.value.cost : Xo(e.product, e.costFieldName)), h = F(() => e.additionalThroughFieldName ? Xo(e.product, e.additionalThroughFieldName) : void 0), g = F(() => r.value.costDate ? gs(r.value.costDate, fn().config.dateFormats.uiDate) : void 0), f = F(() => e.currencyRates || r.value.currency.signature === u ? e.currencyRates : {
|
|
@@ -1540,7 +1559,7 @@ const xy = ze({ name: "mdi-percent-outline", render: wy }), ky = { class: "flex
|
|
|
1540
1559
|
return Je.formatPercent(C);
|
|
1541
1560
|
});
|
|
1542
1561
|
return (C, M) => {
|
|
1543
|
-
var
|
|
1562
|
+
var L;
|
|
1544
1563
|
const x = Ac, A = Tr, S = xy, E = by;
|
|
1545
1564
|
return b(), R("div", ky, [
|
|
1546
1565
|
t.showTag ? (b(), J(A, { key: 0 }, {
|
|
@@ -1552,18 +1571,18 @@ const xy = ze({ name: "mdi-percent-outline", render: wy }), ky = { class: "flex
|
|
|
1552
1571
|
class: Ie(["text-slate-600", { "font-bold": !l.value }])
|
|
1553
1572
|
}, {
|
|
1554
1573
|
default: I(() => {
|
|
1555
|
-
var
|
|
1574
|
+
var z;
|
|
1556
1575
|
return [
|
|
1557
|
-
ne(W(((
|
|
1576
|
+
ne(W(((z = l.value) == null ? void 0 : z.coefficient.slug) ?? "Ц"), 1)
|
|
1558
1577
|
];
|
|
1559
1578
|
}),
|
|
1560
1579
|
_: 1
|
|
1561
1580
|
}, 8, ["class"])
|
|
1562
1581
|
]),
|
|
1563
1582
|
default: I(() => {
|
|
1564
|
-
var
|
|
1583
|
+
var z;
|
|
1565
1584
|
return [
|
|
1566
|
-
ne(" " + W(((
|
|
1585
|
+
ne(" " + W(((z = l.value) == null ? void 0 : z.coefficient.name) ?? "Розничная цена"), 1)
|
|
1567
1586
|
];
|
|
1568
1587
|
}),
|
|
1569
1588
|
_: 1
|
|
@@ -1579,13 +1598,13 @@ const xy = ze({ name: "mdi-percent-outline", render: wy }), ky = { class: "flex
|
|
|
1579
1598
|
}, " (" + W(w.value) + "%) ", 3)) : H("", !0)
|
|
1580
1599
|
])) : H("", !0),
|
|
1581
1600
|
k("span", {
|
|
1582
|
-
class: Ie(["whitespace-nowrap text-base flex items-center gap-1", { "text-gray-600": (
|
|
1601
|
+
class: Ie(["whitespace-nowrap text-base flex items-center gap-1", { "text-gray-600": (L = l.value) == null ? void 0 : L.readOnly, "font-bold": !l.value && !i.value }])
|
|
1583
1602
|
}, [
|
|
1584
1603
|
k("span", {
|
|
1585
1604
|
class: Ie({ "text-nowrap": !0, "cursor-pointer underline decoration-dashed": p.value && t.eventEmitter }),
|
|
1586
1605
|
onClick: M[0] || (M[0] = () => {
|
|
1587
|
-
var
|
|
1588
|
-
p.value && ((
|
|
1606
|
+
var z;
|
|
1607
|
+
p.value && ((z = t.eventEmitter) == null || z.emit("cost:click", { product: r.value, cost: d.value }));
|
|
1589
1608
|
})
|
|
1590
1609
|
}, W(v.value), 3),
|
|
1591
1610
|
ne(" " + W(o.value) + " ", 1),
|
|
@@ -1610,7 +1629,7 @@ const xy = ze({ name: "mdi-percent-outline", render: wy }), ky = { class: "flex
|
|
|
1610
1629
|
trigger: I(() => [
|
|
1611
1630
|
D(E, {
|
|
1612
1631
|
class: "cursor-pointer",
|
|
1613
|
-
onClick: M[1] || (M[1] = (
|
|
1632
|
+
onClick: M[1] || (M[1] = (z) => {
|
|
1614
1633
|
var O;
|
|
1615
1634
|
return (O = t.eventEmitter) == null ? void 0 : O.emit("cost:show-price-history", { product: r.value });
|
|
1616
1635
|
})
|
|
@@ -1662,7 +1681,7 @@ function Fy(t, e) {
|
|
|
1662
1681
|
}, null, -1)
|
|
1663
1682
|
])]);
|
|
1664
1683
|
}
|
|
1665
|
-
const Ra =
|
|
1684
|
+
const Ra = Le({ name: "ion-information-circle-outline", render: Fy }), My = {
|
|
1666
1685
|
viewBox: "0 0 512 512",
|
|
1667
1686
|
width: "1.2em",
|
|
1668
1687
|
height: "1.2em"
|
|
@@ -1679,7 +1698,7 @@ function By(t, e) {
|
|
|
1679
1698
|
}, null, -1)
|
|
1680
1699
|
])]);
|
|
1681
1700
|
}
|
|
1682
|
-
const vf =
|
|
1701
|
+
const vf = Le({ name: "ion-images", render: By }), Ay = {
|
|
1683
1702
|
viewBox: "0 0 512 512",
|
|
1684
1703
|
width: "1.2em",
|
|
1685
1704
|
height: "1.2em"
|
|
@@ -1692,12 +1711,12 @@ function Iy(t, e) {
|
|
|
1692
1711
|
}, null, -1)
|
|
1693
1712
|
])]);
|
|
1694
1713
|
}
|
|
1695
|
-
const Ey =
|
|
1714
|
+
const Ey = Le({ name: "ion-information-circle", render: Iy }), Oy = {
|
|
1696
1715
|
viewBox: "0 0 512 512",
|
|
1697
1716
|
width: "1.2em",
|
|
1698
1717
|
height: "1.2em"
|
|
1699
1718
|
};
|
|
1700
|
-
function
|
|
1719
|
+
function Ly(t, e) {
|
|
1701
1720
|
return b(), R("svg", Oy, [...e[0] || (e[0] = [
|
|
1702
1721
|
k("path", {
|
|
1703
1722
|
fill: "currentColor",
|
|
@@ -1705,7 +1724,7 @@ function zy(t, e) {
|
|
|
1705
1724
|
}, null, -1)
|
|
1706
1725
|
])]);
|
|
1707
1726
|
}
|
|
1708
|
-
const
|
|
1727
|
+
const zy = Le({ name: "ion-bookmark", render: Ly });
|
|
1709
1728
|
/*!
|
|
1710
1729
|
* lightgallery | 2.9.0 | October 1st 2025
|
|
1711
1730
|
* http://www.lightgalleryjs.com/
|
|
@@ -2346,7 +2365,7 @@ const Vy = {
|
|
|
2346
2365
|
var l;
|
|
2347
2366
|
o && ((l = i.value) == null || l.addEventListener(a, o));
|
|
2348
2367
|
});
|
|
2349
|
-
}),
|
|
2368
|
+
}), zn(() => {
|
|
2350
2369
|
var r;
|
|
2351
2370
|
s.value && ((r = s.value) == null || r.destroy(), s.value = null);
|
|
2352
2371
|
}), (r, o) => (b(), R("div", Vy, [
|
|
@@ -2839,7 +2858,7 @@ const Vy = {
|
|
|
2839
2858
|
}, E0 = { class: "text-gray-600" }, O0 = {
|
|
2840
2859
|
key: 0,
|
|
2841
2860
|
class: "mt-3 flex flex-row gap-3 pb-2 text-base xl:text-lg"
|
|
2842
|
-
},
|
|
2861
|
+
}, L0 = { key: 0 }, z0 = { class: "sc-product-properties m-0 mt-3 list-inside list-disc p-0 pl-1.5 text-xs text-gray-500" }, D0 = {}, Yl = /* @__PURE__ */ re({
|
|
2843
2862
|
...D0,
|
|
2844
2863
|
__name: "product-name",
|
|
2845
2864
|
props: {
|
|
@@ -2893,7 +2912,7 @@ const Vy = {
|
|
|
2893
2912
|
showProductImagesPreview: a
|
|
2894
2913
|
}), (h, g) => {
|
|
2895
2914
|
var x, A, S, E;
|
|
2896
|
-
const f =
|
|
2915
|
+
const f = zy, p = Tr, v = pf, m = Ey, y = vf, w = fs, _ = mf, C = Ra, M = Rr;
|
|
2897
2916
|
return b(), R("div", null, [
|
|
2898
2917
|
k("div", y0, [
|
|
2899
2918
|
D(w, {
|
|
@@ -2901,9 +2920,9 @@ const Vy = {
|
|
|
2901
2920
|
class: "sc-product-name text-balance text-base font-medium text-black"
|
|
2902
2921
|
}, {
|
|
2903
2922
|
default: I(() => {
|
|
2904
|
-
var
|
|
2923
|
+
var L, z, O, N;
|
|
2905
2924
|
return [
|
|
2906
|
-
(
|
|
2925
|
+
(L = t.product) != null && L.isFavorite || (z = t.product) != null && z.isPreviouslyOrdered || t.showAdditionalSaleIcon ? (b(), R("div", b0, [
|
|
2907
2926
|
((O = t.product) == null ? void 0 : O.isFavorite) ?? !1 ? (b(), J(p, {
|
|
2908
2927
|
key: 0,
|
|
2909
2928
|
placement: "bottom",
|
|
@@ -3015,10 +3034,10 @@ const Vy = {
|
|
|
3015
3034
|
D(M, { "x-scrollable": "" }, {
|
|
3016
3035
|
default: I(() => [
|
|
3017
3036
|
i.value ? (b(), R("div", O0, [
|
|
3018
|
-
(b(!0), R(ye, null, Xe(s.value, (
|
|
3019
|
-
key:
|
|
3037
|
+
(b(!0), R(ye, null, Xe(s.value, (L) => (b(), J(ps, {
|
|
3038
|
+
key: L.coefficient.slug,
|
|
3020
3039
|
product: t.product,
|
|
3021
|
-
"cost-field-name":
|
|
3040
|
+
"cost-field-name": L.coefficient.slug ?? "",
|
|
3022
3041
|
"event-emitter": t.eventEmitter,
|
|
3023
3042
|
"allow-price-click": t.allowPriceClick,
|
|
3024
3043
|
"show-tag": !0,
|
|
@@ -3043,10 +3062,10 @@ const Vy = {
|
|
|
3043
3062
|
]),
|
|
3044
3063
|
_: 1
|
|
3045
3064
|
}),
|
|
3046
|
-
t.showSlugs || t.showProperties ? (b(), R("div",
|
|
3047
|
-
k("ul",
|
|
3048
|
-
t.showSlugs ? (b(!0), R(ye, { key: 0 }, Xe({ id: t.product.id, slug: t.product.slug }, (
|
|
3049
|
-
t.showProperties ? (b(!0), R(ye, { key: 1 }, Xe(t.product.properties, (
|
|
3065
|
+
t.showSlugs || t.showProperties ? (b(), R("div", L0, [
|
|
3066
|
+
k("ul", z0, [
|
|
3067
|
+
t.showSlugs ? (b(!0), R(ye, { key: 0 }, Xe({ id: t.product.id, slug: t.product.slug }, (L, z) => (b(), R("li", { key: z }, " (" + W(z) + "): " + W(L), 1))), 128)) : H("", !0),
|
|
3068
|
+
t.showProperties ? (b(!0), R(ye, { key: 1 }, Xe(t.product.properties, (L, z) => (b(), R("li", { key: z }, " (" + W(z) + "): " + W(L), 1))), 128)) : H("", !0)
|
|
3050
3069
|
])
|
|
3051
3070
|
])) : H("", !0)
|
|
3052
3071
|
]);
|
|
@@ -3184,7 +3203,7 @@ function V0(t, e) {
|
|
|
3184
3203
|
}, null, -1)
|
|
3185
3204
|
])]);
|
|
3186
3205
|
}
|
|
3187
|
-
const Fa =
|
|
3206
|
+
const Fa = Le({ name: "ion-trash", render: V0 }), j0 = {
|
|
3188
3207
|
viewBox: "0 0 512 512",
|
|
3189
3208
|
width: "1.2em",
|
|
3190
3209
|
height: "1.2em"
|
|
@@ -3197,7 +3216,7 @@ function q0(t, e) {
|
|
|
3197
3216
|
}, null, -1)
|
|
3198
3217
|
])]);
|
|
3199
3218
|
}
|
|
3200
|
-
const _f =
|
|
3219
|
+
const _f = Le({ name: "ion-plus", render: q0 }), U0 = {
|
|
3201
3220
|
key: 0,
|
|
3202
3221
|
class: "flex w-fit items-center gap-2"
|
|
3203
3222
|
}, X0 = {
|
|
@@ -3393,7 +3412,7 @@ const _f = ze({ name: "ion-plus", render: q0 }), U0 = {
|
|
|
3393
3412
|
"show-button": !1,
|
|
3394
3413
|
class: "w-full",
|
|
3395
3414
|
onKeydown: y[1] || (y[1] = (S) => T(jt)(S)),
|
|
3396
|
-
onInput: (S) => T(
|
|
3415
|
+
onInput: (S) => T(zt)(t.validation, `lines_widths[${A + 1}]`),
|
|
3397
3416
|
onFocus: T(dt)
|
|
3398
3417
|
}, null, 8, ["value", "onUpdate:value", "parse", "onInput", "onFocus"])
|
|
3399
3418
|
]),
|
|
@@ -3414,7 +3433,7 @@ const _f = ze({ name: "ion-plus", render: q0 }), U0 = {
|
|
|
3414
3433
|
"show-button": !1,
|
|
3415
3434
|
class: "w-full",
|
|
3416
3435
|
onKeydown: y[3] || (y[3] = (S) => T(jt)(S, !0)),
|
|
3417
|
-
onInput: (S) => T(
|
|
3436
|
+
onInput: (S) => T(zt)(t.validation, `lines_angles[${A + 1}]`),
|
|
3418
3437
|
onFocus: T(dt)
|
|
3419
3438
|
}, null, 8, ["value", "onUpdate:value", "parse", "onInput", "onFocus"])
|
|
3420
3439
|
]),
|
|
@@ -3531,7 +3550,7 @@ const _f = ze({ name: "ion-plus", render: q0 }), U0 = {
|
|
|
3531
3550
|
placeholder: "Введите метраж",
|
|
3532
3551
|
class: "w-full",
|
|
3533
3552
|
onKeydown: y[9] || (y[9] = (x) => T(jt)(x)),
|
|
3534
|
-
onInput: y[10] || (y[10] = (x) => T(
|
|
3553
|
+
onInput: y[10] || (y[10] = (x) => T(zt)(t.validation, "length")),
|
|
3535
3554
|
onFocus: T(dt)
|
|
3536
3555
|
}, null, 8, ["value", "parse", "onFocus"])
|
|
3537
3556
|
]),
|
|
@@ -3552,7 +3571,7 @@ const _f = ze({ name: "ion-plus", render: q0 }), U0 = {
|
|
|
3552
3571
|
placeholder: "Введите количество",
|
|
3553
3572
|
class: "w-full",
|
|
3554
3573
|
onKeydown: y[13] || (y[13] = (x) => T(jt)(x, !1)),
|
|
3555
|
-
onInput: y[14] || (y[14] = (x) => T(
|
|
3574
|
+
onInput: y[14] || (y[14] = (x) => T(zt)(t.validation, "quantity")),
|
|
3556
3575
|
onFocus: T(dt)
|
|
3557
3576
|
}, null, 8, ["value", "onFocus"])
|
|
3558
3577
|
]),
|
|
@@ -3566,7 +3585,7 @@ const _f = ze({ name: "ion-plus", render: q0 }), U0 = {
|
|
|
3566
3585
|
D(T(Ii), {
|
|
3567
3586
|
value: a.value.marker ?? null,
|
|
3568
3587
|
placeholder: "Введите маркировку",
|
|
3569
|
-
onInput: y[16] || (y[16] = (x) => T(
|
|
3588
|
+
onInput: y[16] || (y[16] = (x) => T(zt)(t.validation, "marker")),
|
|
3570
3589
|
"onUpdate:value": y[17] || (y[17] = (x) => {
|
|
3571
3590
|
a.value.marker = x ?? null, p("marker", x ?? null);
|
|
3572
3591
|
}),
|
|
@@ -4868,7 +4887,7 @@ Object.defineProperty(qn, "temp", {
|
|
|
4868
4887
|
return fe.isElement(fr) && !Tt.document.head.contains(fr) && (fr.style.display = "none", Tt.document.head.appendChild(fr)), fr;
|
|
4869
4888
|
}
|
|
4870
4889
|
});
|
|
4871
|
-
var
|
|
4890
|
+
var Ln = class extends Error {
|
|
4872
4891
|
constructor(e) {
|
|
4873
4892
|
super(), $(this, "name", "Two.js"), $(this, "message"), this.message = e;
|
|
4874
4893
|
}
|
|
@@ -5027,7 +5046,7 @@ var Ba = class {
|
|
|
5027
5046
|
}
|
|
5028
5047
|
};
|
|
5029
5048
|
on = /* @__PURE__ */ new WeakMap();
|
|
5030
|
-
var Of = class
|
|
5049
|
+
var Of = class Lf extends ce {
|
|
5031
5050
|
constructor() {
|
|
5032
5051
|
super(), $(this, "_flagId", !1), $(this, "_flagClassName", !1), $(this, "_renderer", {}), $(this, "_id", pn.Identifier + pn.uniqueId()), $(this, "_className", ""), $(this, "classList", []);
|
|
5033
5052
|
for (let e in Mu)
|
|
@@ -5042,7 +5061,7 @@ var Of = class zf extends ce {
|
|
|
5042
5061
|
* @nota-bene Works in conjunction with {@link Two.Element#toObject}
|
|
5043
5062
|
*/
|
|
5044
5063
|
static fromObject(e) {
|
|
5045
|
-
const n = new
|
|
5064
|
+
const n = new Lf().copy(e);
|
|
5046
5065
|
return "id" in e && (n.id = e.id), n;
|
|
5047
5066
|
}
|
|
5048
5067
|
/**
|
|
@@ -5108,7 +5127,7 @@ var Mr = Of, Mu = {
|
|
|
5108
5127
|
this._className !== t && (this._flagClassName = !0, this.classList = t.split(/\s+?/), this._className = t);
|
|
5109
5128
|
}
|
|
5110
5129
|
}
|
|
5111
|
-
}, Wo,
|
|
5130
|
+
}, Wo, zf = {
|
|
5112
5131
|
video: /\.(mp4|webm|ogg)$/i,
|
|
5113
5132
|
image: /\.(jpe?g|png|gif|tiff|webp)$/i,
|
|
5114
5133
|
effect: /texture|gradient/i
|
|
@@ -5185,7 +5204,7 @@ var ai = class Wn extends Mr {
|
|
|
5185
5204
|
if (Wn.ImageRegistry.contains(n))
|
|
5186
5205
|
return Wn.ImageRegistry.get(n);
|
|
5187
5206
|
let i;
|
|
5188
|
-
return xn.Image ? (i = new xn.Image(), xn.shim(i, "img")) : Tt.document ?
|
|
5207
|
+
return xn.Image ? (i = new xn.Image(), xn.shim(i, "img")) : Tt.document ? zf.video.test(n) ? i = document.createElement("video") : i = document.createElement("img") : console.warn("Two.js: no prototypical image defined for Two.Texture"), i.crossOrigin = "anonymous", i.referrerPolicy = "no-referrer", i;
|
|
5189
5208
|
}
|
|
5190
5209
|
/**
|
|
5191
5210
|
* @name Two.Texture.load
|
|
@@ -5265,7 +5284,7 @@ var ai = class Wn extends Mr {
|
|
|
5265
5284
|
}
|
|
5266
5285
|
};
|
|
5267
5286
|
$(ai, "Properties", ["src", "loaded", "repeat", "scale", "offset", "image"]);
|
|
5268
|
-
$(ai, "RegularExpressions",
|
|
5287
|
+
$(ai, "RegularExpressions", zf);
|
|
5269
5288
|
$(ai, "ImageRegistry", new Ba());
|
|
5270
5289
|
$(ai, "Register", {
|
|
5271
5290
|
canvas: function(t, e) {
|
|
@@ -5275,19 +5294,19 @@ $(ai, "Register", {
|
|
|
5275
5294
|
const n = t.image, i = function(r) {
|
|
5276
5295
|
!xn.isHeadless && n.removeEventListener && typeof n.removeEventListener == "function" && (n.removeEventListener("load", i, !1), n.removeEventListener("error", s, !1)), typeof e == "function" && e();
|
|
5277
5296
|
}, s = function(r) {
|
|
5278
|
-
throw !xn.isHeadless && typeof n.removeEventListener == "function" && (n.removeEventListener("load", i, !1), n.removeEventListener("error", s, !1)), new
|
|
5297
|
+
throw !xn.isHeadless && typeof n.removeEventListener == "function" && (n.removeEventListener("load", i, !1), n.removeEventListener("error", s, !1)), new Ln("unable to load " + t.src);
|
|
5279
5298
|
};
|
|
5280
5299
|
typeof n.width == "number" && n.width > 0 && typeof n.height == "number" && n.height > 0 ? i() : !xn.isHeadless && typeof n.addEventListener == "function" && (n.addEventListener("load", i, !1), n.addEventListener("error", s, !1)), t._src = ai.getAbsoluteURL(t._src), !(!xn.isHeadless && n && n.getAttribute("two-src")) && (xn.isHeadless || n.setAttribute("two-src", t.src), ai.ImageRegistry.add(t.src, n), xn.isHeadless ? ai.loadHeadlessBuffer(t, i) : t.image.src = t.src);
|
|
5281
5300
|
},
|
|
5282
5301
|
video: function(t, e) {
|
|
5283
5302
|
if (xn.isHeadless)
|
|
5284
|
-
throw new
|
|
5303
|
+
throw new Ln(
|
|
5285
5304
|
"video textures are not implemented in headless environments."
|
|
5286
5305
|
);
|
|
5287
5306
|
const n = function(s) {
|
|
5288
5307
|
t.image.removeEventListener("canplaythrough", n, !1), t.image.removeEventListener("error", i, !1), t.image.width = t.image.videoWidth, t.image.height = t.image.videoHeight, typeof e == "function" && e();
|
|
5289
5308
|
}, i = function(s) {
|
|
5290
|
-
throw t.image.removeEventListener("canplaythrough", n, !1), t.image.removeEventListener("error", i, !1), new
|
|
5309
|
+
throw t.image.removeEventListener("canplaythrough", n, !1), t.image.removeEventListener("error", i, !1), new Ln("unable to load " + t.src);
|
|
5291
5310
|
};
|
|
5292
5311
|
t._src = ai.getAbsoluteURL(t._src), t.image.getAttribute("two-src") || (t.image.setAttribute("two-src", t.src), ai.ImageRegistry.add(t.src, t.image)), t.image.readyState >= 4 ? n() : (t.image.addEventListener("canplaythrough", n, !1), t.image.addEventListener("error", i, !1), t.image.src = t.src, t.image.load());
|
|
5293
5312
|
}
|
|
@@ -5866,7 +5885,7 @@ function Pb() {
|
|
|
5866
5885
|
function Tb() {
|
|
5867
5886
|
this._flagFocal = !0;
|
|
5868
5887
|
}
|
|
5869
|
-
function
|
|
5888
|
+
function Lu(t, e) {
|
|
5870
5889
|
if (e === 0 || e === 1)
|
|
5871
5890
|
return !0;
|
|
5872
5891
|
const i = t._length * e;
|
|
@@ -5915,7 +5934,7 @@ function js(t) {
|
|
|
5915
5934
|
}
|
|
5916
5935
|
return t;
|
|
5917
5936
|
}
|
|
5918
|
-
var Rb = Math.cos, Fb = Math.sin,
|
|
5937
|
+
var Rb = Math.cos, Fb = Math.sin, zu = Math.tan, hl = [], Nf = class Vn extends ce {
|
|
5919
5938
|
constructor(e, n, i, s, r, o) {
|
|
5920
5939
|
super(), $(this, "elements", new Ti(9)), $(this, "manual", !1);
|
|
5921
5940
|
let a = e;
|
|
@@ -5934,8 +5953,8 @@ var Rb = Math.cos, Fb = Math.sin, Lu = Math.tan, hl = [], Nf = class Vn extends
|
|
|
5934
5953
|
if (n.length <= 3) {
|
|
5935
5954
|
const M = e;
|
|
5936
5955
|
let x, A, S;
|
|
5937
|
-
const E = n[0] || 0,
|
|
5938
|
-
return x = M[0] * E + M[1] *
|
|
5956
|
+
const E = n[0] || 0, L = n[1] || 0, z = n[2] || 0;
|
|
5957
|
+
return x = M[0] * E + M[1] * L + M[2] * z, A = M[3] * E + M[4] * L + M[5] * z, S = M[6] * E + M[7] * L + M[8] * z, [x, A, S];
|
|
5939
5958
|
}
|
|
5940
5959
|
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], p = n[2], v = n[3], m = n[4], y = n[5], w = n[6], _ = n[7], C = n[8];
|
|
5941
5960
|
return i = i || new Ti(9), i[0] = s * g + r * v + o * w, i[1] = s * f + r * m + o * _, i[2] = s * p + r * y + o * C, i[3] = a * g + l * v + c * w, i[4] = a * f + l * m + c * _, i[5] = a * p + l * y + c * C, i[6] = u * g + d * v + h * w, i[7] = u * f + d * m + h * _, i[8] = u * p + d * y + h * C, i;
|
|
@@ -6034,8 +6053,8 @@ var Rb = Math.cos, Fb = Math.sin, Lu = Math.tan, hl = [], Nf = class Vn extends
|
|
|
6034
6053
|
const N = r[0] * e + r[1] * n + r[2] * i, Q = r[3] * e + r[4] * n + r[5] * i, se = r[6] * e + r[7] * n + r[8] * i;
|
|
6035
6054
|
return [N, Q, se];
|
|
6036
6055
|
}
|
|
6037
|
-
const u = this.elements, d = [e, n, i, s, r, o, a, l, c], h = u[0], g = u[1], f = u[2], p = u[3], v = u[4], m = u[5], y = u[6], w = u[7], _ = u[8], C = d[0], M = d[1], x = d[2], A = d[3], S = d[4], E = d[5],
|
|
6038
|
-
return this.elements[0] = h * C + g * A + f *
|
|
6056
|
+
const u = this.elements, d = [e, n, i, s, r, o, a, l, c], h = u[0], g = u[1], f = u[2], p = u[3], v = u[4], m = u[5], y = u[6], w = u[7], _ = u[8], C = d[0], M = d[1], x = d[2], A = d[3], S = d[4], E = d[5], L = d[6], z = d[7], O = d[8];
|
|
6057
|
+
return this.elements[0] = h * C + g * A + f * L, this.elements[1] = h * M + g * S + f * z, this.elements[2] = h * x + g * E + f * O, this.elements[3] = p * C + v * A + m * L, this.elements[4] = p * M + v * S + m * z, this.elements[5] = p * x + v * E + m * O, this.elements[6] = y * C + w * A + _ * L, this.elements[7] = y * M + w * S + _ * z, this.elements[8] = y * x + w * E + _ * O, this.trigger(ce.Types.change);
|
|
6039
6058
|
}
|
|
6040
6059
|
/**
|
|
6041
6060
|
* @name Two.Matrix#inverse
|
|
@@ -6093,7 +6112,7 @@ var Rb = Math.cos, Fb = Math.sin, Lu = Math.tan, hl = [], Nf = class Vn extends
|
|
|
6093
6112
|
* @description Skew the matrix by an angle in the x axis direction.
|
|
6094
6113
|
*/
|
|
6095
6114
|
skewX(e) {
|
|
6096
|
-
const n =
|
|
6115
|
+
const n = zu(e);
|
|
6097
6116
|
return this.multiply(1, n, 0, 0, 1, 0, 0, 0, 1);
|
|
6098
6117
|
}
|
|
6099
6118
|
/**
|
|
@@ -6103,7 +6122,7 @@ var Rb = Math.cos, Fb = Math.sin, Lu = Math.tan, hl = [], Nf = class Vn extends
|
|
|
6103
6122
|
* @description Skew the matrix by an angle in the y axis direction.
|
|
6104
6123
|
*/
|
|
6105
6124
|
skewY(e) {
|
|
6106
|
-
const n =
|
|
6125
|
+
const n = zu(e);
|
|
6107
6126
|
return this.multiply(1, 0, 0, n, 1, 0, 0, 0, 1);
|
|
6108
6127
|
}
|
|
6109
6128
|
/**
|
|
@@ -6434,22 +6453,22 @@ function Bb(t, e, n) {
|
|
|
6434
6453
|
const C = y * m * m + w * v * v, M = C === 0 ? 0 : (y * w - C) / C;
|
|
6435
6454
|
let x = Math.sqrt(Math.max(0, M));
|
|
6436
6455
|
o === a && (x = -x);
|
|
6437
|
-
const A = x * i * m / s, S = -x * s * v / i, E = f * A - p * S + (l + u) / 2,
|
|
6456
|
+
const A = x * i * m / s, S = -x * s * v / i, E = f * A - p * S + (l + u) / 2, L = p * A + f * S + (c + d) / 2, z = Du(1, 0, (v - A) / i, (m - S) / s), O = Du(
|
|
6438
6457
|
(v - A) / i,
|
|
6439
6458
|
(m - S) / s,
|
|
6440
6459
|
(-v - A) / i,
|
|
6441
6460
|
(-m - S) / s
|
|
6442
|
-
) % At, N =
|
|
6443
|
-
const j = N -
|
|
6461
|
+
) % At, N = z + O, Q = a === 0, se = (() => {
|
|
6462
|
+
const j = N - z, ee = Math.abs(j) < Number.EPSILON;
|
|
6444
6463
|
let K = Et(j, At);
|
|
6445
6464
|
return K < Number.EPSILON && (K = ee ? 0 : At), Q && !ee && (K = K === At ? -At : K - At), K;
|
|
6446
6465
|
})(), oe = Math.max(pn.Resolution, Math.max(n * 2, 1)), q = [];
|
|
6447
6466
|
for (let j = 1; j <= oe; j++) {
|
|
6448
|
-
const ee = j / oe, K =
|
|
6449
|
-
let B = E + i * Math.cos(K), X =
|
|
6467
|
+
const ee = j / oe, K = z + ee * se;
|
|
6468
|
+
let B = E + i * Math.cos(K), X = L + s * Math.sin(K);
|
|
6450
6469
|
if (r !== 0) {
|
|
6451
|
-
const ie = B - E, le = X -
|
|
6452
|
-
B = ie * te - le * Z + E, X = ie * Z + le * te +
|
|
6470
|
+
const ie = B - E, le = X - L, te = Math.cos(r), Z = Math.sin(r);
|
|
6471
|
+
B = ie * te - le * Z + E, X = ie * Z + le * te + L;
|
|
6453
6472
|
}
|
|
6454
6473
|
q.push(Gi(B, X));
|
|
6455
6474
|
}
|
|
@@ -6543,13 +6562,13 @@ function Ob(t, e, n) {
|
|
|
6543
6562
|
}
|
|
6544
6563
|
return Math.sqrt(i);
|
|
6545
6564
|
}
|
|
6546
|
-
function
|
|
6565
|
+
function Lb(t, e) {
|
|
6547
6566
|
if (typeof e == "boolean")
|
|
6548
6567
|
return e;
|
|
6549
6568
|
const n = t.fill;
|
|
6550
6569
|
return !n && n !== 0 ? !1 : typeof n == "string" ? !Vf.test(n) : !0;
|
|
6551
6570
|
}
|
|
6552
|
-
function
|
|
6571
|
+
function zb(t, e) {
|
|
6553
6572
|
const n = typeof t.linewidth == "number" ? t.linewidth : t._linewidth || 0;
|
|
6554
6573
|
if (typeof e == "boolean")
|
|
6555
6574
|
return e && n > 0;
|
|
@@ -6632,8 +6651,8 @@ function Vb(t, e, n, i, s, r) {
|
|
|
6632
6651
|
let g = h[0].x + 2 * h[1].x, f = h[0].y + 2 * h[1].y, p = 2;
|
|
6633
6652
|
const v = l - 1, m = [g], y = [f], w = [p], _ = new Array(l + 1), C = new Array(l + 1);
|
|
6634
6653
|
for (let x = 1; x < l; x += 1) {
|
|
6635
|
-
const A = x < v, S = A || r ? 1 : 2, E = A ? 4 : r ? 2 : 7,
|
|
6636
|
-
p = w[x] = E - O, g = m[x] =
|
|
6654
|
+
const A = x < v, S = A || r ? 1 : 2, E = A ? 4 : r ? 2 : 7, L = A ? 4 : r ? 3 : 8, z = A ? 2 : r ? 0 : 1, O = S / p;
|
|
6655
|
+
p = w[x] = E - O, g = m[x] = L * h[x].x + z * h[x + 1].x - O * g, f = y[x] = L * h[x].y + z * h[x + 1].y - O * f;
|
|
6637
6656
|
}
|
|
6638
6657
|
_[v] = m[v] / w[v], C[v] = y[v] / w[v];
|
|
6639
6658
|
for (let x = l - 2; x >= 0; x -= 1)
|
|
@@ -6641,8 +6660,8 @@ function Vb(t, e, n, i, s, r) {
|
|
|
6641
6660
|
_[l] = (3 * h[l].x - _[v]) / 2, C[l] = (3 * h[l].y - C[v]) / 2;
|
|
6642
6661
|
const M = l - d;
|
|
6643
6662
|
for (let x = u, A = e; x <= M; x += 1, A += 1) {
|
|
6644
|
-
const S = Et(A, o), E = t[S],
|
|
6645
|
-
s || x < M ? fi(E, "right",
|
|
6663
|
+
const S = Et(A, o), E = t[S], L = _[x] - E.x, z = C[x] - E.y;
|
|
6664
|
+
s || x < M ? fi(E, "right", L, z) : An(E, "right"), s || x > u ? fi(E, "left", -L, -z) : An(E, "left"), ia(E);
|
|
6646
6665
|
}
|
|
6647
6666
|
}
|
|
6648
6667
|
function jb(t, e, n, i, s, r) {
|
|
@@ -6909,7 +6928,7 @@ var sr = Math.min, rr = Math.max, Xb = Math.ceil, Yb = Math.floor, Kb = new he()
|
|
|
6909
6928
|
const l = this.worldMatrix, c = l && l.inverse(Gb);
|
|
6910
6929
|
if (!c)
|
|
6911
6930
|
return super.contains(e, n, s);
|
|
6912
|
-
const [u, d] = c.multiply(e, n, 1), h = typeof s.precision == "number" && !Number.isNaN(s.precision) ? Math.max(1, Math.floor(s.precision)) : 8, g =
|
|
6931
|
+
const [u, d] = c.multiply(e, n, 1), h = typeof s.precision == "number" && !Number.isNaN(s.precision) ? Math.max(1, Math.floor(s.precision)) : 8, g = Lb(this, s.fill), f = zb(this, s.stroke), { polygons: p, segments: v } = Ab(this, h);
|
|
6913
6932
|
if (g && p.length > 0 && Ib(p, u, d))
|
|
6914
6933
|
return !0;
|
|
6915
6934
|
if (f && v.length > 0) {
|
|
@@ -6945,7 +6964,7 @@ var sr = Math.min, rr = Math.max, Xb = Math.ceil, Yb = Math.floor, Kb = new he()
|
|
|
6945
6964
|
return C;
|
|
6946
6965
|
} else return M;
|
|
6947
6966
|
m = M.controls && M.controls.right, v = C.controls && C.controls.left, a = M.x, h = M.y, l = (m || M).x, g = (m || M).y, c = (v || C).x, f = (v || C).y, u = C.x, p = C.y, m && M.relative && (l += M.x, g += M.y), v && C.relative && (c += C.x, f += C.y), o = eo(e, a, l, c, u), d = eo(e, h, g, f, p);
|
|
6948
|
-
const x = wn(a, l, e), A = wn(h, g, e), S = wn(l, c, e), E = wn(g, f, e),
|
|
6967
|
+
const x = wn(a, l, e), A = wn(h, g, e), S = wn(l, c, e), E = wn(g, f, e), L = wn(c, u, e), z = wn(f, p, e), O = wn(x, S, e), N = wn(A, E, e), Q = wn(S, L, e), se = wn(E, z, e);
|
|
6949
6968
|
return fe.isObject(n) ? (n.x = o, n.y = d, n instanceof qe && (n.controls.left.x = O, n.controls.left.y = N, n.controls.right.x = Q, n.controls.right.y = se, (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 qe(
|
|
6950
6969
|
o,
|
|
6951
6970
|
d,
|
|
@@ -7137,7 +7156,7 @@ var sr = Math.min, rr = Math.max, Xb = Math.ceil, Yb = Math.floor, Kb = new he()
|
|
|
7137
7156
|
const e = this._collection.length, n = this._closed, i = Math.min(this._beginning, this._ending), s = Math.max(this._beginning, this._ending), r = ea(this, i * this._length), o = ea(this, s * this._length), a = Xb(r), l = Yb(o);
|
|
7138
7157
|
let c, u, d, h, g, f;
|
|
7139
7158
|
for (this._renderer.vertices.length = 0, f = 0; f < e; f++)
|
|
7140
|
-
this._renderer.collection.length <= f && this._renderer.collection.push(new qe()), f > l && !u ? (g = this._renderer.collection[f].copy(this._collection[f]), this.getPointAt(s, g), g.command = this._renderer.collection[f].command, this._renderer.vertices.push(g), u = g, d = this._collection[f - 1], d && d.controls && (g.relative ? g.controls.right.clear() : g.controls.right.copy(g), d.relative ? this._renderer.collection[f - 1].controls.right.copy(d.controls.right).lerp(he.zero, 1 - g.t) : this._renderer.collection[f - 1].controls.right.copy(d.controls.right).lerp(d, 1 - g.t))) : f >= a && f <= l && (g = this._renderer.collection[f].copy(this._collection[f]), this._renderer.vertices.push(g), f === l &&
|
|
7159
|
+
this._renderer.collection.length <= f && this._renderer.collection.push(new qe()), f > l && !u ? (g = this._renderer.collection[f].copy(this._collection[f]), this.getPointAt(s, g), g.command = this._renderer.collection[f].command, this._renderer.vertices.push(g), u = g, d = this._collection[f - 1], d && d.controls && (g.relative ? g.controls.right.clear() : g.controls.right.copy(g), d.relative ? this._renderer.collection[f - 1].controls.right.copy(d.controls.right).lerp(he.zero, 1 - g.t) : this._renderer.collection[f - 1].controls.right.copy(d.controls.right).lerp(d, 1 - g.t))) : f >= a && f <= l && (g = this._renderer.collection[f].copy(this._collection[f]), this._renderer.vertices.push(g), f === l && Lu(this, s) ? (u = g, !n && u.controls && (u.relative ? u.controls.right.clear() : u.controls.right.copy(u))) : f === a && Lu(this, i) && (c = g, c.command = de.move, !n && c.controls && (c.relative ? c.controls.left.clear() : c.controls.left.copy(c))));
|
|
7141
7160
|
a > 0 && !c && (f = a - 1, g = this._renderer.collection[f].copy(this._collection[f]), this.getPointAt(i, g), g.command = de.move, this._renderer.vertices.unshift(g), h = this._collection[f + 1], h && h.controls && (g.controls.left.clear(), h.relative ? this._renderer.collection[f + 1].controls.left.copy(h.controls.left).lerp(he.zero, g.t) : (Kb.copy(h), this._renderer.collection[f + 1].controls.left.copy(h.controls.left).lerp(h, g.t))));
|
|
7142
7161
|
}
|
|
7143
7162
|
return es.prototype._update.apply(this, arguments), this;
|
|
@@ -10091,7 +10110,7 @@ function id(t, e) {
|
|
|
10091
10110
|
i = Array.prototype.indexOf.call(n.additions, t), i >= 0 && n.additions.splice(i, 1), i = Array.prototype.indexOf.call(n.subtractions, t), i < 0 && (n.subtractions.push(t), n._flagSubtractions = !0);
|
|
10092
10111
|
}
|
|
10093
10112
|
}
|
|
10094
|
-
var
|
|
10113
|
+
var La = class extends Ze {
|
|
10095
10114
|
constructor(e, n, i, s) {
|
|
10096
10115
|
const r = [new qe(e, n), new qe(i, s)];
|
|
10097
10116
|
super(r);
|
|
@@ -10100,7 +10119,7 @@ var za = class extends Ze {
|
|
|
10100
10119
|
this.vertices[0].command = de.move, this.vertices[1].command = de.line, this.automatic = !1;
|
|
10101
10120
|
}
|
|
10102
10121
|
};
|
|
10103
|
-
$(
|
|
10122
|
+
$(La, "Properties", ["left", "right"]);
|
|
10104
10123
|
var sd = {
|
|
10105
10124
|
left: {
|
|
10106
10125
|
enumerable: !0,
|
|
@@ -10111,7 +10130,7 @@ var sd = {
|
|
|
10111
10130
|
if (fe.isObject(t))
|
|
10112
10131
|
this.vertices.splice(0, 1, t), this.vertices[0].command = de.move;
|
|
10113
10132
|
else {
|
|
10114
|
-
const e = new
|
|
10133
|
+
const e = new Ln("Two.Line.left argument is not an object.");
|
|
10115
10134
|
console.warn(e.name, e.message);
|
|
10116
10135
|
}
|
|
10117
10136
|
}
|
|
@@ -10125,7 +10144,7 @@ var sd = {
|
|
|
10125
10144
|
if (fe.isObject(t))
|
|
10126
10145
|
this.vertices.splice(1, 1, t), this.vertices[1].command = de.line;
|
|
10127
10146
|
else {
|
|
10128
|
-
const e = new
|
|
10147
|
+
const e = new Ln("Two.Line.right argument is not an object.");
|
|
10129
10148
|
console.warn(e.name, e.message);
|
|
10130
10149
|
}
|
|
10131
10150
|
}
|
|
@@ -10297,7 +10316,7 @@ function Qn(t, e, n) {
|
|
|
10297
10316
|
case "y":
|
|
10298
10317
|
if (w = e instanceof qt, _ = e instanceof St, C = e instanceof $t, w || _ || C)
|
|
10299
10318
|
break;
|
|
10300
|
-
c.match("[a-z%]$") && !c.endsWith("px") && (M = new
|
|
10319
|
+
c.match("[a-z%]$") && !c.endsWith("px") && (M = new Ln(
|
|
10301
10320
|
"only pixel values are supported with the " + l + " attribute."
|
|
10302
10321
|
), console.warn(M.name, M.message)), e.translation[l] = parseFloat(c);
|
|
10303
10322
|
break;
|
|
@@ -10305,7 +10324,7 @@ function Qn(t, e, n) {
|
|
|
10305
10324
|
e instanceof $i && (e.family = c);
|
|
10306
10325
|
break;
|
|
10307
10326
|
case "font-size":
|
|
10308
|
-
e instanceof $i && (c.match("[a-z%]$") && !c.endsWith("px") && (M = new
|
|
10327
|
+
e instanceof $i && (c.match("[a-z%]$") && !c.endsWith("px") && (M = new Ln(
|
|
10309
10328
|
"only pixel values are supported with the " + l + " attribute."
|
|
10310
10329
|
), console.warn(M.name, M.message)), e.size = parseFloat(c));
|
|
10311
10330
|
break;
|
|
@@ -10352,10 +10371,10 @@ var bt = {
|
|
|
10352
10371
|
let n;
|
|
10353
10372
|
const i = t.getAttribute("href") || t.getAttribute("xlink:href");
|
|
10354
10373
|
if (!i)
|
|
10355
|
-
return n = new
|
|
10374
|
+
return n = new Ln("encountered <use /> with no href."), console.warn(n.name, n.message), null;
|
|
10356
10375
|
const s = i.slice(1);
|
|
10357
10376
|
if (!bt.defs.current.contains(s))
|
|
10358
|
-
return n = new
|
|
10377
|
+
return n = new Ln(
|
|
10359
10378
|
"unable to find element for reference " + i + "."
|
|
10360
10379
|
), console.warn(n.name, n.message), null;
|
|
10361
10380
|
const o = bt.defs.current.get(s).cloneNode(!0);
|
|
@@ -10450,7 +10469,7 @@ var bt = {
|
|
|
10450
10469
|
let f, p, v;
|
|
10451
10470
|
const m = h[0], y = m.toLowerCase();
|
|
10452
10471
|
c = h.slice(1).trim().match(Pi.path), r = m === y;
|
|
10453
|
-
let w, _, C, M, x, A, S, E,
|
|
10472
|
+
let w, _, C, M, x, A, S, E, L, z, O, N, Q, se, oe, q, j;
|
|
10454
10473
|
switch (y) {
|
|
10455
10474
|
case "z":
|
|
10456
10475
|
if (g >= d)
|
|
@@ -10488,7 +10507,7 @@ var bt = {
|
|
|
10488
10507
|
break;
|
|
10489
10508
|
case "h":
|
|
10490
10509
|
case "v":
|
|
10491
|
-
|
|
10510
|
+
z = /h/i.test(y) ? "x" : "y", O = /x/i.test(z) ? "y" : "x", f = new qe(
|
|
10492
10511
|
void 0,
|
|
10493
10512
|
void 0,
|
|
10494
10513
|
void 0,
|
|
@@ -10496,11 +10515,11 @@ var bt = {
|
|
|
10496
10515
|
void 0,
|
|
10497
10516
|
void 0,
|
|
10498
10517
|
de.line
|
|
10499
|
-
), f[
|
|
10518
|
+
), f[z] = parseFloat(c[0]), f[O] = a[O], r && (f[z] += a[z]), a = f;
|
|
10500
10519
|
break;
|
|
10501
10520
|
case "c":
|
|
10502
10521
|
case "s":
|
|
10503
|
-
w = a.x, _ = a.y, l || (l = new he()), /c/i.test(y) ? (C = parseFloat(c[0]), M = parseFloat(c[1]), x = parseFloat(c[2]), A = parseFloat(c[3]), S = parseFloat(c[4]), E = parseFloat(c[5])) : (
|
|
10522
|
+
w = a.x, _ = a.y, l || (l = new he()), /c/i.test(y) ? (C = parseFloat(c[0]), M = parseFloat(c[1]), x = parseFloat(c[2]), A = parseFloat(c[3]), S = parseFloat(c[4]), E = parseFloat(c[5])) : (L = Gl(a, l, r), C = L.x, M = L.y, x = parseFloat(c[0]), A = parseFloat(c[1]), S = parseFloat(c[2]), E = parseFloat(c[3])), r && (C += w, M += _, x += w, A += _, S += w, E += _), a.controls.right.set(C - a.x, M - a.y), f = new qe(
|
|
10504
10523
|
S,
|
|
10505
10524
|
E,
|
|
10506
10525
|
x - S,
|
|
@@ -10512,7 +10531,7 @@ var bt = {
|
|
|
10512
10531
|
break;
|
|
10513
10532
|
case "t":
|
|
10514
10533
|
case "q":
|
|
10515
|
-
w = a.x, _ = a.y, l || (l = new he()), /q/i.test(y) ? (C = parseFloat(c[0]), M = parseFloat(c[1]), x = parseFloat(c[0]), A = parseFloat(c[1]), S = parseFloat(c[2]), E = parseFloat(c[3])) : (
|
|
10534
|
+
w = a.x, _ = a.y, l || (l = new he()), /q/i.test(y) ? (C = parseFloat(c[0]), M = parseFloat(c[1]), x = parseFloat(c[0]), A = parseFloat(c[1]), S = parseFloat(c[2]), E = parseFloat(c[3])) : (L = Gl(a, l, r), C = L.x, M = L.y, x = L.x, A = L.y, S = parseFloat(c[0]), E = parseFloat(c[1])), r && (C += w, M += _, x += w, A += _, S += w, E += _), a.controls.right.set(
|
|
10516
10535
|
(C - a.x) * 0.33,
|
|
10517
10536
|
(M - a.y) * 0.33
|
|
10518
10537
|
), f = new qe(
|
|
@@ -10561,7 +10580,7 @@ var bt = {
|
|
|
10561
10580
|
return c.stroke = "none", c.fill = "black", Qn.call(this, t, c, e), c.translation.x += o, c.translation.y += a, c;
|
|
10562
10581
|
},
|
|
10563
10582
|
line: function(t, e) {
|
|
10564
|
-
const n = parseFloat(t.getAttribute("x1")), i = parseFloat(t.getAttribute("y1")), s = parseFloat(t.getAttribute("x2")), r = parseFloat(t.getAttribute("y2")), o = new
|
|
10583
|
+
const n = parseFloat(t.getAttribute("x1")), i = parseFloat(t.getAttribute("y1")), s = parseFloat(t.getAttribute("x2")), r = parseFloat(t.getAttribute("y2")), o = new La(n, i, s, r).noFill();
|
|
10565
10584
|
return Qn.call(this, t, o, e), o;
|
|
10566
10585
|
},
|
|
10567
10586
|
lineargradient: function(t, e) {
|
|
@@ -10613,7 +10632,7 @@ var bt = {
|
|
|
10613
10632
|
let n;
|
|
10614
10633
|
const i = t.getAttribute("href") || t.getAttribute("xlink:href");
|
|
10615
10634
|
if (!i)
|
|
10616
|
-
return n = new
|
|
10635
|
+
return n = new Ln("encountered <image /> with no href."), console.warn(n.name, n.message), null;
|
|
10617
10636
|
const s = parseFloat(t.getAttribute("x")) || 0, r = parseFloat(t.getAttribute("y")) || 0, o = parseFloat(t.getAttribute("width")), a = parseFloat(t.getAttribute("height")), l = new Aa(i, s, r);
|
|
10618
10637
|
return fe.isNaN(o) || (l.width = o), fe.isNaN(a) || (l.height = a), Qn.call(this, t, l, e), l;
|
|
10619
10638
|
}
|
|
@@ -10818,7 +10837,7 @@ var ag = nu, ad = {
|
|
|
10818
10837
|
},
|
|
10819
10838
|
path: {
|
|
10820
10839
|
render: function(t, e, n) {
|
|
10821
|
-
let i, s, r, o, a, l, c, u, d, h, g, f, p, v, m, y, w, _, C, M, x, A, S, E,
|
|
10840
|
+
let i, s, r, o, a, l, c, u, d, h, g, f, p, v, m, y, w, _, C, M, x, A, S, E, L, z, O, N, Q, se, oe, q, j, ee;
|
|
10822
10841
|
if (ee = this.parent && this.parent._renderer ? this.parent._renderer.opacity : 1, Q = this._mask, se = this._clip, a = this._opacity * (ee || 1), l = this._visible, !e && (!l || se || a === 0))
|
|
10823
10842
|
return this;
|
|
10824
10843
|
if (fe.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, p = f - 1, oe = So(i), j = this.dashes, oe || (t.save(), t.transform(
|
|
@@ -10870,7 +10889,7 @@ var ag = nu, ad = {
|
|
|
10870
10889
|
);
|
|
10871
10890
|
break;
|
|
10872
10891
|
case de.curve:
|
|
10873
|
-
v = h ? Et(Y - 1, f) : Math.max(Y - 1, 0), m = g[v], S = m.controls && m.controls.right || he.zero, E = y.controls && y.controls.left || he.zero, m._relative ? (x = S.x + m.x, A = S.y + m.y) : (x = S.x, A = S.y), y._relative ? (C = E.x + y.x, M = E.y + y.y) : (C = E.x, M = E.y), t.bezierCurveTo(x, A, C, M, O, N), Y >= p && h && (w = _,
|
|
10892
|
+
v = h ? Et(Y - 1, f) : Math.max(Y - 1, 0), m = g[v], S = m.controls && m.controls.right || he.zero, E = y.controls && y.controls.left || he.zero, m._relative ? (x = S.x + m.x, A = S.y + m.y) : (x = S.x, A = S.y), y._relative ? (C = E.x + y.x, M = E.y + y.y) : (C = E.x, M = E.y), t.bezierCurveTo(x, A, C, M, O, N), Y >= p && h && (w = _, L = y.controls && y.controls.right || he.zero, z = w.controls && w.controls.left || he.zero, y._relative ? (x = L.x + y.x, A = L.y + y.y) : (x = L.x, A = L.y), w._relative ? (C = z.x + w.x, M = z.y + w.y) : (C = z.x, M = z.y), O = w.x, N = w.y, t.bezierCurveTo(x, A, C, M, O, N));
|
|
10874
10893
|
break;
|
|
10875
10894
|
case de.line:
|
|
10876
10895
|
t.lineTo(O, N);
|
|
@@ -10924,7 +10943,7 @@ var ag = nu, ad = {
|
|
|
10924
10943
|
return this;
|
|
10925
10944
|
fe.isFunction(this._renderer.onBeforeRender) && this._renderer.onBeforeRender(), this._update();
|
|
10926
10945
|
const l = this._matrix.elements, c = this._stroke, u = this._linewidth, d = this._fill, h = this._decoration, g = this._direction, f = So(l), p = d._renderer && d._renderer.offset && c._renderer && c._renderer.offset, v = this.dashes, m = Qe.alignments[this._alignment] || this._alignment, y = Qe.baselines[this._baseline] || this._baseline;
|
|
10927
|
-
let w, _, C, M, x, A, S, E,
|
|
10946
|
+
let w, _, C, M, x, A, S, E, L, z, O;
|
|
10928
10947
|
if (f || (t.save(), t.transform(
|
|
10929
10948
|
l[0],
|
|
10930
10949
|
l[3],
|
|
@@ -10977,34 +10996,34 @@ var ag = nu, ad = {
|
|
|
10977
10996
|
let Q = 1;
|
|
10978
10997
|
switch (h) {
|
|
10979
10998
|
case "underline":
|
|
10980
|
-
|
|
10999
|
+
L = N.actualBoundingBoxDescent, O = N.actualBoundingBoxDescent;
|
|
10981
11000
|
break;
|
|
10982
11001
|
case "strikethrough":
|
|
10983
|
-
|
|
11002
|
+
L = 0, O = 0, Q = 0.5;
|
|
10984
11003
|
break;
|
|
10985
11004
|
}
|
|
10986
11005
|
switch (y) {
|
|
10987
11006
|
case "top":
|
|
10988
|
-
|
|
11007
|
+
L += this._size * Q, O += this._size * Q;
|
|
10989
11008
|
break;
|
|
10990
11009
|
case "baseline":
|
|
10991
11010
|
case "bottom":
|
|
10992
|
-
|
|
11011
|
+
L -= this._size * Q, O -= this._size * Q;
|
|
10993
11012
|
break;
|
|
10994
11013
|
}
|
|
10995
11014
|
switch (m) {
|
|
10996
11015
|
case "left":
|
|
10997
11016
|
case "start":
|
|
10998
|
-
E = 0,
|
|
11017
|
+
E = 0, z = N.width;
|
|
10999
11018
|
break;
|
|
11000
11019
|
case "right":
|
|
11001
11020
|
case "end":
|
|
11002
|
-
E = -N.width,
|
|
11021
|
+
E = -N.width, z = 0;
|
|
11003
11022
|
break;
|
|
11004
11023
|
default:
|
|
11005
|
-
E = -N.width / 2,
|
|
11024
|
+
E = -N.width / 2, z = N.width / 2;
|
|
11006
11025
|
}
|
|
11007
|
-
t.lineWidth = Math.max(Math.floor(this._size / 15), 1), t.strokeStyle = t.fillStyle, t.beginPath(), t.moveTo(E,
|
|
11026
|
+
t.lineWidth = Math.max(Math.floor(this._size / 15), 1), t.strokeStyle = t.fillStyle, t.beginPath(), t.moveTo(E, L), t.lineTo(z, O), t.stroke();
|
|
11008
11027
|
}
|
|
11009
11028
|
return f || t.restore(), a && !n && t.clip(), v && v.length > 0 && t.setLineDash(vl), fe.isFunction(this._renderer.onAfterRender) && this._renderer.onAfterRender(), this.flagReset();
|
|
11010
11029
|
}
|
|
@@ -11065,12 +11084,12 @@ var ag = nu, ad = {
|
|
|
11065
11084
|
const w = v * p + m * f, _ = (v * m - w) / w;
|
|
11066
11085
|
let C = sa(nc(0, _));
|
|
11067
11086
|
r === o && (C = -C);
|
|
11068
|
-
const M = C * i * g / s, x = -C * s * h / i, A = Co(a) * M - ko(a) * x + (e + l) / 2, S = ko(a) * M + Co(a) * x + (n + c) / 2, E = cd(1, 0, (h - M) / i, (g - x) / s),
|
|
11087
|
+
const M = C * i * g / s, x = -C * s * h / i, A = Co(a) * M - ko(a) * x + (e + l) / 2, S = ko(a) * M + Co(a) * x + (n + c) / 2, E = cd(1, 0, (h - M) / i, (g - x) / s), L = cd(
|
|
11069
11088
|
(h - M) / i,
|
|
11070
11089
|
(g - x) / s,
|
|
11071
11090
|
(-h - M) / i,
|
|
11072
11091
|
(-g - x) / s
|
|
11073
|
-
) % At,
|
|
11092
|
+
) % At, z = E + L;
|
|
11074
11093
|
x1(
|
|
11075
11094
|
t,
|
|
11076
11095
|
A,
|
|
@@ -11078,7 +11097,7 @@ var ag = nu, ad = {
|
|
|
11078
11097
|
i,
|
|
11079
11098
|
s,
|
|
11080
11099
|
E,
|
|
11081
|
-
|
|
11100
|
+
z,
|
|
11082
11101
|
o === 0,
|
|
11083
11102
|
a
|
|
11084
11103
|
);
|
|
@@ -11472,7 +11491,7 @@ var Jn = {
|
|
|
11472
11491
|
const i = t.createShader(t[n]);
|
|
11473
11492
|
if (t.shaderSource(i, e), t.compileShader(i), !t.getShaderParameter(i, t.COMPILE_STATUS)) {
|
|
11474
11493
|
const r = t.getShaderInfoLog(i);
|
|
11475
|
-
throw t.deleteShader(i), new
|
|
11494
|
+
throw t.deleteShader(i), new Ln("unable to compile shader " + i + ": " + r);
|
|
11476
11495
|
}
|
|
11477
11496
|
return i;
|
|
11478
11497
|
},
|
|
@@ -11606,7 +11625,7 @@ var Jn = {
|
|
|
11606
11625
|
path: {
|
|
11607
11626
|
updateCanvas: function(t, e) {
|
|
11608
11627
|
let n, i, s, r, o, a, l, c, u, d, h, g, f, p;
|
|
11609
|
-
const v = e._renderer.vertices, m = this.canvas, y = this.ctx, w = t.renderer.ratio, _ = ud.copy(e._renderer.scale).multiply(w), C = e._stroke, M = e._linewidth, x = e._fill, A = e._renderer.opacity || e._opacity, S = e._cap, E = e._join,
|
|
11628
|
+
const v = e._renderer.vertices, m = this.canvas, y = this.ctx, w = t.renderer.ratio, _ = ud.copy(e._renderer.scale).multiply(w), C = e._stroke, M = e._linewidth, x = e._fill, A = e._renderer.opacity || e._opacity, S = e._cap, E = e._join, L = e._miter, z = e._closed, O = e.dashes, N = v.length, Q = N - 1;
|
|
11610
11629
|
m.width = Math.max(
|
|
11611
11630
|
Math.ceil(e._renderer.rect.width * _.x),
|
|
11612
11631
|
1
|
|
@@ -11633,7 +11652,7 @@ var Jn = {
|
|
|
11633
11652
|
);
|
|
11634
11653
|
Ne[Z].render.call(C, y, e), y.strokeStyle = C._renderer.effect;
|
|
11635
11654
|
}
|
|
11636
|
-
M && (y.lineWidth = Fi(e)),
|
|
11655
|
+
M && (y.lineWidth = Fi(e)), L && (y.miterLimit = L), E && (y.lineJoin = E), !z && S && (y.lineCap = S);
|
|
11637
11656
|
}
|
|
11638
11657
|
typeof A == "number" && (y.globalAlpha = A), O && O.length > 0 && (y.lineDashOffset = O.offset || 0, y.setLineDash(O));
|
|
11639
11658
|
let j, ee, K, B, X, ie, le, te;
|
|
@@ -11645,7 +11664,7 @@ var Jn = {
|
|
|
11645
11664
|
y.closePath();
|
|
11646
11665
|
break;
|
|
11647
11666
|
case de.arc:
|
|
11648
|
-
ee = Y.rx, K = Y.ry, B = Y.xAxisRotation, X = Y.largeArcFlag, ie = Y.sweepFlag, n =
|
|
11667
|
+
ee = Y.rx, K = Y.ry, B = Y.xAxisRotation, X = Y.largeArcFlag, ie = Y.sweepFlag, n = z ? Et(Z - 1, N) : Math.max(Z - 1, 0), i = v[n], le = i.x, te = i.y, C1.renderSvgArcCommand(
|
|
11649
11668
|
y,
|
|
11650
11669
|
le,
|
|
11651
11670
|
te,
|
|
@@ -11659,7 +11678,7 @@ var Jn = {
|
|
|
11659
11678
|
);
|
|
11660
11679
|
break;
|
|
11661
11680
|
case de.curve:
|
|
11662
|
-
n =
|
|
11681
|
+
n = z ? Et(Z - 1, N) : Math.max(Z - 1, 0), i = v[n], c = i.controls && i.controls.right || he.zero, u = Y.controls && Y.controls.left || he.zero, i._relative ? (a = c.x + i.x, l = c.y + i.y) : (a = c.x, l = c.y), Y._relative ? (r = u.x + Y.x, o = u.y + Y.y) : (r = u.x, o = u.y), y.bezierCurveTo(a, l, r, o, g, f), Z >= Q && z && (s = j, d = Y.controls && Y.controls.right || he.zero, h = s.controls && s.controls.left || he.zero, Y._relative ? (a = d.x + Y.x, l = d.y + Y.y) : (a = d.x, l = d.y), s._relative ? (r = h.x + s.x, o = h.y + s.y) : (r = h.x, o = h.y), g = s.x, f = s.y, y.bezierCurveTo(a, l, r, o, g, f));
|
|
11663
11682
|
break;
|
|
11664
11683
|
case de.line:
|
|
11665
11684
|
y.lineTo(g, f);
|
|
@@ -11669,7 +11688,7 @@ var Jn = {
|
|
|
11669
11688
|
break;
|
|
11670
11689
|
}
|
|
11671
11690
|
}
|
|
11672
|
-
|
|
11691
|
+
z && y.closePath(), Ne.isHidden.test(x) || (p = x._renderer && x._renderer.offset, p && (y.save(), y.translate(-x._renderer.offset.x, -x._renderer.offset.y), y.scale(x._renderer.scale.x, x._renderer.scale.y)), y.fill(), p && y.restore()), Ne.isHidden.test(C) || (p = C._renderer && C._renderer.offset, p && (y.save(), y.translate(-C._renderer.offset.x, -C._renderer.offset.y), y.scale(C._renderer.scale.x, C._renderer.scale.y), y.lineWidth = M / C._renderer.scale.x), y.stroke(), p && y.restore()), y.restore();
|
|
11673
11692
|
},
|
|
11674
11693
|
// Returns the rect of a set of verts. Typically takes vertices that are
|
|
11675
11694
|
// "centered" around 0 and returns them to be anchored upper-left.
|
|
@@ -11793,8 +11812,8 @@ var Jn = {
|
|
|
11793
11812
|
);
|
|
11794
11813
|
const g = e._renderer.rect.centroid, f = g.x, p = g.y;
|
|
11795
11814
|
let v, m, y, w, _, C, M, x, A, S, E;
|
|
11796
|
-
const
|
|
11797
|
-
if (i.clearRect(0, 0, n.width, n.height),
|
|
11815
|
+
const L = l._renderer && l._renderer.offset && o._renderer && o._renderer.offset;
|
|
11816
|
+
if (i.clearRect(0, 0, n.width, n.height), L || (i.font = [
|
|
11798
11817
|
e._style,
|
|
11799
11818
|
e._weight,
|
|
11800
11819
|
e._size + "px/" + e._leading + "px",
|
|
@@ -11803,19 +11822,19 @@ var Jn = {
|
|
|
11803
11822
|
if (typeof l == "string")
|
|
11804
11823
|
i.fillStyle = l;
|
|
11805
11824
|
else {
|
|
11806
|
-
const
|
|
11825
|
+
const z = cn.Utils.getRendererType(
|
|
11807
11826
|
l._renderer.type
|
|
11808
11827
|
);
|
|
11809
|
-
Ne[
|
|
11828
|
+
Ne[z].render.call(l, i, e), i.fillStyle = l._renderer.effect;
|
|
11810
11829
|
}
|
|
11811
11830
|
if (o) {
|
|
11812
11831
|
if (typeof o == "string")
|
|
11813
11832
|
i.strokeStyle = o;
|
|
11814
11833
|
else {
|
|
11815
|
-
const
|
|
11834
|
+
const z = cn.Utils.getRendererType(
|
|
11816
11835
|
o._renderer.type
|
|
11817
11836
|
);
|
|
11818
|
-
Ne[
|
|
11837
|
+
Ne[z].render.call(o, i, e), i.strokeStyle = o._renderer.effect;
|
|
11819
11838
|
}
|
|
11820
11839
|
a && (i.lineWidth = Fi(e));
|
|
11821
11840
|
}
|
|
@@ -11832,16 +11851,16 @@ var Jn = {
|
|
|
11832
11851
|
m + "px",
|
|
11833
11852
|
e._family
|
|
11834
11853
|
].join(" "), y = o._renderer.offset.x / o._renderer.scale.x, w = o._renderer.offset.y / o._renderer.scale.y, _ = a / o._renderer.scale.x, i.lineWidth = _, i.strokeText(e.value, y, w), i.restore()) : i.strokeText(e.value, 0, 0)), /(underline|strikethrough)/i.test(d)) {
|
|
11835
|
-
const
|
|
11854
|
+
const z = i.measureText(e.value);
|
|
11836
11855
|
switch (d) {
|
|
11837
11856
|
case "underline":
|
|
11838
|
-
A =
|
|
11857
|
+
A = z.actualBoundingBoxDescent, E = z.actualBoundingBoxDescent;
|
|
11839
11858
|
break;
|
|
11840
11859
|
case "strikethrough":
|
|
11841
11860
|
A = 0, E = 0;
|
|
11842
11861
|
break;
|
|
11843
11862
|
}
|
|
11844
|
-
x = -
|
|
11863
|
+
x = -z.width / 2, S = z.width / 2, i.lineWidth = Math.max(Math.floor(e._size / 15), 1), i.strokeStyle = i.fillStyle, i.beginPath(), i.moveTo(x, A), i.lineTo(S, E), i.stroke();
|
|
11845
11864
|
}
|
|
11846
11865
|
i.restore();
|
|
11847
11866
|
},
|
|
@@ -11994,7 +12013,7 @@ var Jn = {
|
|
|
11994
12013
|
if (n = t.createProgram(), fe.each(e, function(r) {
|
|
11995
12014
|
t.attachShader(n, r);
|
|
11996
12015
|
}), t.linkProgram(n), i = t.getProgramParameter(n, t.LINK_STATUS), !i)
|
|
11997
|
-
throw s = t.getProgramInfoLog(n), t.deleteProgram(n), new
|
|
12016
|
+
throw s = t.getProgramInfoLog(n), t.deleteProgram(n), new Ln("unable to link program: " + s);
|
|
11998
12017
|
return n;
|
|
11999
12018
|
}
|
|
12000
12019
|
},
|
|
@@ -12036,7 +12055,7 @@ var cg = class extends ce {
|
|
|
12036
12055
|
preserveDrawingBuffer: !0,
|
|
12037
12056
|
overdraw: !1
|
|
12038
12057
|
}), this.overdraw = t.overdraw, e = this.ctx = this.domElement.getContext("webgl", t) || this.domElement.getContext("experimental-webgl", t), !this.ctx)
|
|
12039
|
-
throw new
|
|
12058
|
+
throw new Ln(
|
|
12040
12059
|
"unable to create a webgl context. Try using another renderer."
|
|
12041
12060
|
);
|
|
12042
12061
|
i = Jn.create(e, Jn.path.vertex, Jn.types.vertex), s = Jn.create(e, Jn.path.fragment, Jn.types.fragment), this.programs = {
|
|
@@ -12084,7 +12103,7 @@ var cg = class extends ce {
|
|
|
12084
12103
|
$(cg, "Utils", Ne);
|
|
12085
12104
|
var S1 = fe.extend(
|
|
12086
12105
|
{
|
|
12087
|
-
Error:
|
|
12106
|
+
Error: Ln,
|
|
12088
12107
|
getRatio: Wc,
|
|
12089
12108
|
read: bt,
|
|
12090
12109
|
xhr: og
|
|
@@ -12334,7 +12353,7 @@ var S1 = fe.extend(
|
|
|
12334
12353
|
* @description Creates a Two.js line and adds it to the scene.
|
|
12335
12354
|
*/
|
|
12336
12355
|
makeLine(e, n, i, s) {
|
|
12337
|
-
const r = new
|
|
12356
|
+
const r = new La(e, n, i, s);
|
|
12338
12357
|
return this.scene.add(r), r;
|
|
12339
12358
|
}
|
|
12340
12359
|
/**
|
|
@@ -12774,7 +12793,7 @@ $(Ve, "Texture", at);
|
|
|
12774
12793
|
$(Ve, "ArcSegment", Yc);
|
|
12775
12794
|
$(Ve, "Circle", Ia);
|
|
12776
12795
|
$(Ve, "Ellipse", Ea);
|
|
12777
|
-
$(Ve, "Line",
|
|
12796
|
+
$(Ve, "Line", La);
|
|
12778
12797
|
$(Ve, "Points", Kc);
|
|
12779
12798
|
$(Ve, "Polygon", Gc);
|
|
12780
12799
|
$(Ve, "Rectangle", bs);
|
|
@@ -13899,14 +13918,14 @@ function O1(t, e, n, i) {
|
|
|
13899
13918
|
}
|
|
13900
13919
|
return o * u;
|
|
13901
13920
|
}
|
|
13902
|
-
function
|
|
13921
|
+
function L1(t, e) {
|
|
13903
13922
|
const n = t.length, i = n - 1;
|
|
13904
13923
|
for (let s = 0; s < n; s++) {
|
|
13905
13924
|
const r = t[s], o = e ? In(s - 1, n) : Math.max(s - 1, 0), a = e ? In(s + 1, n) : Math.min(s + 1, i), l = t[o], c = r, u = t[a];
|
|
13906
|
-
|
|
13925
|
+
z1(l, c, u), c.command = s === 0 ? Se.move : Se.curve;
|
|
13907
13926
|
}
|
|
13908
13927
|
}
|
|
13909
|
-
function
|
|
13928
|
+
function z1(t, e, n) {
|
|
13910
13929
|
const i = Be.angleBetween(t, e), s = Be.angleBetween(n, e);
|
|
13911
13930
|
let r = Be.distanceBetween(t, e), o = Be.distanceBetween(n, e), a = (i + s) / 2;
|
|
13912
13931
|
return r < 1e-3 || o < 1e-3 ? (typeof e.relative == "boolean" && !e.relative && (e.controls.left.copy(e), e.controls.right.copy(e)), e) : (r *= 0.33, o *= 0.33, s < i ? a += Kt : a -= Kt, e.controls.left.x = Math.cos(a) * r, e.controls.left.y = Math.sin(a) * r, a -= Math.PI, e.controls.right.x = Math.cos(a) * o, e.controls.right.y = Math.sin(a) * o, typeof e.relative == "boolean" && !e.relative && (e.controls.left.x += e.x, e.controls.left.y += e.y, e.controls.right.x += e.x, e.controls.right.y += e.y), e);
|
|
@@ -14712,7 +14731,7 @@ P(Rn, "Index", 0), /**
|
|
|
14712
14731
|
* @property {String[]} - A list of properties that are on every {@link Two.Stop}.
|
|
14713
14732
|
*/
|
|
14714
14733
|
P(Rn, "Properties", ["offset", "opacity", "color"]);
|
|
14715
|
-
let
|
|
14734
|
+
let Ls = Rn;
|
|
14716
14735
|
const yd = {
|
|
14717
14736
|
offset: {
|
|
14718
14737
|
enumerable: !0,
|
|
@@ -14763,7 +14782,7 @@ const yd = {
|
|
|
14763
14782
|
*/
|
|
14764
14783
|
static fromObject(n) {
|
|
14765
14784
|
let i = n.stops;
|
|
14766
|
-
i && i.length > 0 && (i = i.map((r) => r instanceof
|
|
14785
|
+
i && i.length > 0 && (i = i.map((r) => r instanceof Ls ? r : new Ls().copy(r)));
|
|
14767
14786
|
const s = new wi(i).copy(n);
|
|
14768
14787
|
return "id" in n && (s.id = n.id), s;
|
|
14769
14788
|
}
|
|
@@ -14853,7 +14872,7 @@ const yd = {
|
|
|
14853
14872
|
* @name Two.Gradient.Stop
|
|
14854
14873
|
* @see {@link Two.Stop}
|
|
14855
14874
|
*/
|
|
14856
|
-
P(wi, "Stop",
|
|
14875
|
+
P(wi, "Stop", Ls), /**
|
|
14857
14876
|
* @name Two.Gradient.Properties
|
|
14858
14877
|
* @property {String[]} - A list of properties that are on every {@link Two.Gradient}.
|
|
14859
14878
|
*/
|
|
@@ -15005,7 +15024,7 @@ const cs = class cs extends Ut {
|
|
|
15005
15024
|
* @name Two.LinearGradient.Stop
|
|
15006
15025
|
* @see {@link Two.Stop}
|
|
15007
15026
|
*/
|
|
15008
|
-
P(cs, "Stop",
|
|
15027
|
+
P(cs, "Stop", Ls), P(cs, "Properties", ["left", "right"]);
|
|
15009
15028
|
let kn = cs;
|
|
15010
15029
|
const _d = {
|
|
15011
15030
|
left: {
|
|
@@ -15151,7 +15170,7 @@ const xi = class xi extends Ut {
|
|
|
15151
15170
|
* @name Two.RadialGradient.Stop
|
|
15152
15171
|
* @see {@link Two.Stop}
|
|
15153
15172
|
*/
|
|
15154
|
-
P(xi, "Stop",
|
|
15173
|
+
P(xi, "Stop", Ls), /**
|
|
15155
15174
|
* @name Two.RadialGradient.Properties
|
|
15156
15175
|
* @property {String[]} - A list of properties that are on every {@link Two.RadialGradient}.
|
|
15157
15176
|
*/
|
|
@@ -15271,8 +15290,8 @@ const K1 = Math.cos, G1 = Math.sin, Cd = Math.tan, yl = [], bn = class bn extend
|
|
|
15271
15290
|
if (i.length <= 3) {
|
|
15272
15291
|
const x = n;
|
|
15273
15292
|
let A, S, E;
|
|
15274
|
-
const
|
|
15275
|
-
return A = x[0] *
|
|
15293
|
+
const L = i[0] || 0, z = i[1] || 0, O = i[2] || 0;
|
|
15294
|
+
return A = x[0] * L + x[1] * z + x[2] * O, S = x[3] * L + x[4] * z + x[5] * O, E = x[6] * L + x[7] * z + x[8] * O, [A, S, E];
|
|
15276
15295
|
}
|
|
15277
15296
|
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], p = i[1], v = i[2], m = i[3], y = i[4], w = i[5], _ = i[6], C = i[7], M = i[8];
|
|
15278
15297
|
return s = s || new dd(9), s[0] = r * f + o * m + a * _, s[1] = r * p + o * y + a * C, s[2] = r * v + o * w + a * M, s[3] = l * f + c * m + u * _, s[4] = l * p + c * y + u * C, s[5] = l * v + c * w + u * M, s[6] = d * f + h * m + g * _, s[7] = d * p + h * y + g * C, s[8] = d * v + h * w + g * M, s;
|
|
@@ -15371,8 +15390,8 @@ const K1 = Math.cos, G1 = Math.sin, Cd = Math.tan, yl = [], bn = class bn extend
|
|
|
15371
15390
|
const Q = o[0] * n + o[1] * i + o[2] * s, se = o[3] * n + o[4] * i + o[5] * s, oe = o[6] * n + o[7] * i + o[8] * s;
|
|
15372
15391
|
return [Q, se, oe];
|
|
15373
15392
|
}
|
|
15374
|
-
const d = this.elements, h = [n, i, s, r, o, a, l, c, u], g = d[0], f = d[1], p = d[2], v = d[3], m = d[4], y = d[5], w = d[6], _ = d[7], C = d[8], M = h[0], x = h[1], A = h[2], S = h[3], E = h[4],
|
|
15375
|
-
return this.elements[0] = g * M + f * S + p *
|
|
15393
|
+
const d = this.elements, h = [n, i, s, r, o, a, l, c, u], g = d[0], f = d[1], p = d[2], v = d[3], m = d[4], y = d[5], w = d[6], _ = d[7], C = d[8], M = h[0], x = h[1], A = h[2], S = h[3], E = h[4], L = h[5], z = h[6], O = h[7], N = h[8];
|
|
15394
|
+
return this.elements[0] = g * M + f * S + p * z, this.elements[1] = g * x + f * E + p * O, this.elements[2] = g * A + f * L + p * N, this.elements[3] = v * M + m * S + y * z, this.elements[4] = v * x + m * E + y * O, this.elements[5] = v * A + m * L + y * N, this.elements[6] = w * M + _ * S + C * z, this.elements[7] = w * x + _ * E + C * O, this.elements[8] = w * A + _ * L + C * N, this.trigger(ue.Types.change);
|
|
15376
15395
|
}
|
|
15377
15396
|
/**
|
|
15378
15397
|
* @name Two.Matrix#inverse
|
|
@@ -15832,22 +15851,22 @@ function Q1(t, e, n) {
|
|
|
15832
15851
|
const C = y * m * m + w * v * v, M = C === 0 ? 0 : (y * w - C) / C;
|
|
15833
15852
|
let x = Math.sqrt(Math.max(0, M));
|
|
15834
15853
|
o === a && (x = -x);
|
|
15835
|
-
const A = x * i * m / s, S = -x * s * v / i, E = f * A - p * S + (l + u) / 2,
|
|
15854
|
+
const A = x * i * m / s, S = -x * s * v / i, E = f * A - p * S + (l + u) / 2, L = p * A + f * S + (c + d) / 2, z = Sd(1, 0, (v - A) / i, (m - S) / s), O = Sd(
|
|
15836
15855
|
(v - A) / i,
|
|
15837
15856
|
(m - S) / s,
|
|
15838
15857
|
(-v - A) / i,
|
|
15839
15858
|
(-m - S) / s
|
|
15840
|
-
) % Un, N =
|
|
15841
|
-
const j = N -
|
|
15859
|
+
) % Un, N = z + O, Q = a === 0, se = (() => {
|
|
15860
|
+
const j = N - z, ee = Math.abs(j) < Number.EPSILON;
|
|
15842
15861
|
let K = In(j, Un);
|
|
15843
15862
|
return K < Number.EPSILON && (K = ee ? 0 : Un), Q && !ee && (K = K === Un ? -Un : K - Un), K;
|
|
15844
15863
|
})(), oe = Math.max(ra.Resolution, Math.max(n * 2, 1)), q = [];
|
|
15845
15864
|
for (let j = 1; j <= oe; j++) {
|
|
15846
|
-
const ee = j / oe, K =
|
|
15847
|
-
let B = E + i * Math.cos(K), X =
|
|
15865
|
+
const ee = j / oe, K = z + ee * se;
|
|
15866
|
+
let B = E + i * Math.cos(K), X = L + s * Math.sin(K);
|
|
15848
15867
|
if (r !== 0) {
|
|
15849
|
-
const ie = B - E, le = X -
|
|
15850
|
-
B = ie * te - le * Z + E, X = ie * Z + le * te +
|
|
15868
|
+
const ie = B - E, le = X - L, te = Math.cos(r), Z = Math.sin(r);
|
|
15869
|
+
B = ie * te - le * Z + E, X = ie * Z + le * te + L;
|
|
15851
15870
|
}
|
|
15852
15871
|
q.push(Zi(B, X));
|
|
15853
15872
|
}
|
|
@@ -16030,8 +16049,8 @@ function c_(t, e, n, i, s, r) {
|
|
|
16030
16049
|
let g = h[0].x + 2 * h[1].x, f = h[0].y + 2 * h[1].y, p = 2;
|
|
16031
16050
|
const v = l - 1, m = [g], y = [f], w = [p], _ = new Array(l + 1), C = new Array(l + 1);
|
|
16032
16051
|
for (let x = 1; x < l; x += 1) {
|
|
16033
|
-
const A = x < v, S = A || r ? 1 : 2, E = A ? 4 : r ? 2 : 7,
|
|
16034
|
-
p = w[x] = E - O, g = m[x] =
|
|
16052
|
+
const A = x < v, S = A || r ? 1 : 2, E = A ? 4 : r ? 2 : 7, L = A ? 4 : r ? 3 : 8, z = A ? 2 : r ? 0 : 1, O = S / p;
|
|
16053
|
+
p = w[x] = E - O, g = m[x] = L * h[x].x + z * h[x + 1].x - O * g, f = y[x] = L * h[x].y + z * h[x + 1].y - O * f;
|
|
16035
16054
|
}
|
|
16036
16055
|
_[v] = m[v] / w[v], C[v] = y[v] / w[v];
|
|
16037
16056
|
for (let x = l - 2; x >= 0; x -= 1)
|
|
@@ -16039,8 +16058,8 @@ function c_(t, e, n, i, s, r) {
|
|
|
16039
16058
|
_[l] = (3 * h[l].x - _[v]) / 2, C[l] = (3 * h[l].y - C[v]) / 2;
|
|
16040
16059
|
const M = l - d;
|
|
16041
16060
|
for (let x = u, A = e; x <= M; x += 1, A += 1) {
|
|
16042
|
-
const S = In(A, o), E = t[S],
|
|
16043
|
-
s || x < M ? gi(E, "right",
|
|
16061
|
+
const S = In(A, o), E = t[S], L = _[x] - E.x, z = C[x] - E.y;
|
|
16062
|
+
s || x < M ? gi(E, "right", L, z) : En(E, "right"), s || x > u ? gi(E, "left", -L, -z) : En(E, "left"), ha(E);
|
|
16044
16063
|
}
|
|
16045
16064
|
}
|
|
16046
16065
|
function u_(t, e, n, i, s, r) {
|
|
@@ -16530,7 +16549,7 @@ const ar = Math.min, lr = Math.max, f_ = Math.ceil, g_ = Math.floor, p_ = new Be
|
|
|
16530
16549
|
return M;
|
|
16531
16550
|
} else return x;
|
|
16532
16551
|
y = x.controls && x.controls.right, m = M.controls && M.controls.left, l = x.x, g = x.y, c = (y || x).x, f = (y || x).y, u = (m || M).x, p = (m || M).y, d = M.x, v = M.y, y && x.relative && (c += x.x, f += x.y), m && M.relative && (u += M.x, p += M.y), a = aa(n, l, c, u, d), h = aa(n, g, f, p, v);
|
|
16533
|
-
const A = Fn(l, c, n), S = Fn(g, f, n), E = Fn(c, u, n),
|
|
16552
|
+
const A = Fn(l, c, n), S = Fn(g, f, n), E = Fn(c, u, n), L = Fn(f, p, n), z = Fn(u, d, n), O = Fn(p, v, n), N = Fn(A, E, n), Q = Fn(S, L, n), se = Fn(E, z, n), oe = Fn(L, O, n);
|
|
16534
16553
|
return ht.isObject(i) ? (i.x = a, i.y = h, i instanceof it && (i.controls.left.x = N, i.controls.left.y = Q, i.controls.right.x = se, i.controls.right.y = oe, (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 it(
|
|
16535
16554
|
a,
|
|
16536
16555
|
h,
|
|
@@ -16549,7 +16568,7 @@ const ar = Math.min, lr = Math.max, f_ = Math.ceil, g_ = Math.floor, p_ = new Be
|
|
|
16549
16568
|
*/
|
|
16550
16569
|
plot() {
|
|
16551
16570
|
if (this.curved)
|
|
16552
|
-
return
|
|
16571
|
+
return L1(this._collection, this.closed), this;
|
|
16553
16572
|
for (let n = 0; n < this._collection.length; n++)
|
|
16554
16573
|
this._collection[n].command = n === 0 ? Se.move : Se.line;
|
|
16555
16574
|
return this;
|
|
@@ -18513,7 +18532,7 @@ const Ed = {
|
|
|
18513
18532
|
}
|
|
18514
18533
|
};
|
|
18515
18534
|
let hc;
|
|
18516
|
-
const Od = Math.min,
|
|
18535
|
+
const Od = Math.min, Ld = Math.max;
|
|
18517
18536
|
Mi.document && (hc = document.createElement("canvas"));
|
|
18518
18537
|
const ln = class ln extends Bi {
|
|
18519
18538
|
constructor(n, i, s, r) {
|
|
@@ -18731,8 +18750,8 @@ const ln = class ln extends Bi {
|
|
|
18731
18750
|
* @see {@link Two.Text#strokeAttenuation}
|
|
18732
18751
|
*/
|
|
18733
18752
|
P(this, "_strokeAttenuation", !0);
|
|
18734
|
-
for (let o in
|
|
18735
|
-
Object.defineProperty(this, o,
|
|
18753
|
+
for (let o in zd)
|
|
18754
|
+
Object.defineProperty(this, o, zd[o]);
|
|
18736
18755
|
if (this._renderer.type = "text", this._renderer.flagFill = C_.bind(this), this._renderer.flagStroke = S_.bind(this), this.value = n, typeof i == "number" && (this.translation.x = i), typeof s == "number" && (this.translation.y = s), this.dashes = [], this.dashes.offset = 0, !ht.isObject(r))
|
|
18737
18756
|
return this;
|
|
18738
18757
|
for (let o = 0; o < ln.Properties.length; o++) {
|
|
@@ -18889,7 +18908,7 @@ const ln = class ln extends Bi {
|
|
|
18889
18908
|
o = -(c + u), a = u;
|
|
18890
18909
|
}
|
|
18891
18910
|
const [d, h] = i.multiply(s, o), [g, f] = i.multiply(s, a), [p, v] = i.multiply(r, o), [m, y] = i.multiply(r, a);
|
|
18892
|
-
return o = Od(h, f, v, y), s = Od(d, g, p, m), r =
|
|
18911
|
+
return o = Od(h, f, v, y), s = Od(d, g, p, m), r = Ld(d, g, p, m), a = Ld(h, f, v, y), {
|
|
18893
18912
|
top: o,
|
|
18894
18913
|
left: s,
|
|
18895
18914
|
right: r,
|
|
@@ -18936,7 +18955,7 @@ P(ln, "Properties", [
|
|
|
18936
18955
|
"strokeAttenuation"
|
|
18937
18956
|
]);
|
|
18938
18957
|
let _r = ln;
|
|
18939
|
-
const
|
|
18958
|
+
const zd = {
|
|
18940
18959
|
value: {
|
|
18941
18960
|
enumerable: !0,
|
|
18942
18961
|
get: function() {
|
|
@@ -20784,7 +20803,7 @@ function M_(t, e) {
|
|
|
20784
20803
|
}, null, -1)
|
|
20785
20804
|
])]);
|
|
20786
20805
|
}
|
|
20787
|
-
const
|
|
20806
|
+
const za = Le({ name: "ion-close", render: M_ }), B_ = { class: "mr-3 flex flex-col gap-2" }, A_ = ["onClick"], I_ = { class: "h-full p-2" }, E_ = {}, O_ = /* @__PURE__ */ re({
|
|
20788
20807
|
...E_,
|
|
20789
20808
|
__name: "kozyrek-configurator-templates",
|
|
20790
20809
|
props: {
|
|
@@ -20828,7 +20847,7 @@ const La = ze({ name: "ion-close", render: M_ }), B_ = { class: "mr-3 flex flex-
|
|
|
20828
20847
|
},
|
|
20829
20848
|
{ deep: !0 }
|
|
20830
20849
|
), (l, c) => {
|
|
20831
|
-
const u =
|
|
20850
|
+
const u = za;
|
|
20832
20851
|
return b(), J(T(Rr), {
|
|
20833
20852
|
style: { width: "auto" },
|
|
20834
20853
|
trigger: "none",
|
|
@@ -20885,7 +20904,7 @@ const La = ze({ name: "ion-close", render: M_ }), B_ = { class: "mr-3 flex flex-
|
|
|
20885
20904
|
});
|
|
20886
20905
|
};
|
|
20887
20906
|
}
|
|
20888
|
-
}),
|
|
20907
|
+
}), L_ = /* @__PURE__ */ mi(O_, [["__scopeId", "data-v-afccb364"]]), z_ = { class: "flex gap-3 min-w-[20rem] relative" }, D_ = { class: "kozyrek-preview w-fill h-[18rem] grow touch-none overflow-hidden rounded-lg bg-gray-200 p-2" }, N_ = {
|
|
20889
20908
|
ref: "drawing-container",
|
|
20890
20909
|
class: "size-full"
|
|
20891
20910
|
}, H_ = {}, W_ = /* @__PURE__ */ re({
|
|
@@ -21047,7 +21066,7 @@ const La = ze({ name: "ion-close", render: M_ }), B_ = { class: "mr-3 flex flex-
|
|
|
21047
21066
|
const Te = ((ke = n.value.configuratorParams) == null ? void 0 : ke.colorSide) === "top";
|
|
21048
21067
|
Z.position.y = Z.position.y + yt.colorSideLabel.size * Number(Te), m(Y, Z), q.update();
|
|
21049
21068
|
}
|
|
21050
|
-
},
|
|
21069
|
+
}, L = (q, j) => {
|
|
21051
21070
|
if (q && !j.isNewRec()) {
|
|
21052
21071
|
const ee = new Ci({
|
|
21053
21072
|
width: q.scrollWidth,
|
|
@@ -21055,7 +21074,7 @@ const La = ze({ name: "ion-close", render: M_ }), B_ = { class: "mr-3 flex flex-
|
|
|
21055
21074
|
});
|
|
21056
21075
|
ee.appendTo(q), E(ee, [], j.points, [], !0);
|
|
21057
21076
|
}
|
|
21058
|
-
},
|
|
21077
|
+
}, z = () => {
|
|
21059
21078
|
l && E(l, h.value, u.value, g.value, !1);
|
|
21060
21079
|
}, O = (q) => q * (180 / Math.PI), N = (q, j) => {
|
|
21061
21080
|
const ee = q[1].x - q[0].x, K = q[1].y - q[0].y, B = j[1].x - j[0].x, X = j[1].y - j[0].y;
|
|
@@ -21113,18 +21132,18 @@ const La = ze({ name: "ion-close", render: M_ }), B_ = { class: "mr-3 flex flex-
|
|
|
21113
21132
|
}).appendTo(s.value), l.scene.scale = c, l.update(), xe(
|
|
21114
21133
|
() => n.value,
|
|
21115
21134
|
() => {
|
|
21116
|
-
|
|
21135
|
+
z();
|
|
21117
21136
|
},
|
|
21118
21137
|
{ deep: !0, immediate: !0 }
|
|
21119
21138
|
), se(l));
|
|
21120
|
-
}),
|
|
21139
|
+
}), zn(() => {
|
|
21121
21140
|
l && (l.clear(), l = null);
|
|
21122
|
-
}), (q, j) => (b(), R("div",
|
|
21123
|
-
D(
|
|
21141
|
+
}), (q, j) => (b(), R("div", z_, [
|
|
21142
|
+
D(L_, {
|
|
21124
21143
|
"select-template-index": t.selectTemplateIndex,
|
|
21125
21144
|
settings: t.settings,
|
|
21126
21145
|
"onTemplate:select": j[0] || (j[0] = (ee) => i("template:select", ee)),
|
|
21127
|
-
onInitDrawTemplate:
|
|
21146
|
+
onInitDrawTemplate: L,
|
|
21128
21147
|
onRemoveCustomTemplate: oe
|
|
21129
21148
|
}, null, 8, ["select-template-index", "settings"]),
|
|
21130
21149
|
k("div", D_, [
|
|
@@ -21359,9 +21378,9 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21359
21378
|
marker: {},
|
|
21360
21379
|
length: {}
|
|
21361
21380
|
}), d = V(0), h = Ke("kozyrek-configurator-params-form"), g = (S = 0) => {
|
|
21362
|
-
var
|
|
21363
|
-
const E = (
|
|
21364
|
-
E !== void 0 && (d.value = S, a.value.configuratorParams.linesWidths = E.points.map((
|
|
21381
|
+
var L;
|
|
21382
|
+
const E = (L = l.value.allTemplates) == null ? void 0 : L.at(S);
|
|
21383
|
+
E !== void 0 && (d.value = S, a.value.configuratorParams.linesWidths = E.points.map((z) => ut(z) ? z[0] : z.width), a.value.configuratorParams.linesAngles = E.points.map((z) => ut(z) ? z[1] : z.angle), w()), m(a.value.configuratorParams);
|
|
21365
21384
|
}, f = async () => {
|
|
21366
21385
|
const S = prompt("Введите название шаблона:");
|
|
21367
21386
|
if (!S)
|
|
@@ -21369,29 +21388,29 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21369
21388
|
o.value = !0;
|
|
21370
21389
|
const E = {
|
|
21371
21390
|
label: S,
|
|
21372
|
-
points: a.value.configuratorParams.linesWidths.map((
|
|
21373
|
-
|
|
21391
|
+
points: a.value.configuratorParams.linesWidths.map((z, O) => [
|
|
21392
|
+
z,
|
|
21374
21393
|
a.value.configuratorParams.linesAngles[O]
|
|
21375
21394
|
])
|
|
21376
|
-
},
|
|
21377
|
-
|
|
21395
|
+
}, L = (z) => {
|
|
21396
|
+
z && (l.value.addCustomTemplate(E), d.value = l.value.allTemplates.length - 2), o.value = !1;
|
|
21378
21397
|
};
|
|
21379
|
-
n.eventEmitter.emit("configurator:create-template", { category: n.cartItem.category, template: E, callback:
|
|
21398
|
+
n.eventEmitter.emit("configurator:create-template", { category: n.cartItem.category, template: E, callback: L });
|
|
21380
21399
|
}, p = async (S, E) => {
|
|
21381
21400
|
var O;
|
|
21382
|
-
const
|
|
21383
|
-
if (!
|
|
21401
|
+
const L = (O = l.value.allTemplates) == null ? void 0 : O.at(S);
|
|
21402
|
+
if (!L || !L.isCustom)
|
|
21384
21403
|
return;
|
|
21385
|
-
const
|
|
21386
|
-
N && (l.value.removeCustomTemplate(
|
|
21404
|
+
const z = (N) => {
|
|
21405
|
+
N && (l.value.removeCustomTemplate(L.id), g()), E == null || E();
|
|
21387
21406
|
};
|
|
21388
|
-
n.eventEmitter.emit("configurator:remove-template", { category: n.cartItem.category, templateId:
|
|
21407
|
+
n.eventEmitter.emit("configurator:remove-template", { category: n.cartItem.category, templateId: L.id, callback: z });
|
|
21389
21408
|
}, v = () => {
|
|
21390
21409
|
l.value.showOnlyTemplates || l.value.allowSaveTemplates && (d.value = l.value.allTemplates.length - 1);
|
|
21391
21410
|
}, m = async (S) => {
|
|
21392
|
-
var E,
|
|
21393
|
-
a.value.product = new di(), (
|
|
21394
|
-
|
|
21411
|
+
var E, L;
|
|
21412
|
+
a.value.product = new di(), (L = (E = h.value) == null ? void 0 : E.formReference) == null || L.validate((z) => {
|
|
21413
|
+
z || (w(), s.value = !0, n.eventEmitter.emit("configurator:search-product", {
|
|
21395
21414
|
category: n.cartItem.category,
|
|
21396
21415
|
params: S,
|
|
21397
21416
|
validationFieldResultData: u.value,
|
|
@@ -21406,12 +21425,12 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21406
21425
|
}).catch(Ot);
|
|
21407
21426
|
}, y = async () => {
|
|
21408
21427
|
var S, E;
|
|
21409
|
-
(E = (S = h.value) == null ? void 0 : S.formReference) == null || E.validate((
|
|
21410
|
-
var
|
|
21411
|
-
if (!
|
|
21428
|
+
(E = (S = h.value) == null ? void 0 : S.formReference) == null || E.validate((L) => {
|
|
21429
|
+
var z, O;
|
|
21430
|
+
if (!L) {
|
|
21412
21431
|
r.value = !0;
|
|
21413
21432
|
const N = new _t(a.value);
|
|
21414
|
-
(
|
|
21433
|
+
(z = l.value.startTailConfigs) != null && z.length || delete N.configuratorParams.startTailType, (O = l.value.endTailConfigs) != null && O.length || delete N.configuratorParams.endTailType, i("submit", N, u.value, () => {
|
|
21415
21434
|
r.value = !1, wt(() => {
|
|
21416
21435
|
var Q, se;
|
|
21417
21436
|
(se = (Q = h.value) == null ? void 0 : Q.formReference) == null || se.restoreValidation();
|
|
@@ -21424,8 +21443,8 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21424
21443
|
quantity: u.value.quantity,
|
|
21425
21444
|
marker: u.value.marker
|
|
21426
21445
|
};
|
|
21427
|
-
a.value.configuratorParams.linesWidths.forEach((E,
|
|
21428
|
-
S[`lines_widths[${
|
|
21446
|
+
a.value.configuratorParams.linesWidths.forEach((E, L) => {
|
|
21447
|
+
S[`lines_widths[${L + 1}]`] = {}, S[`lines_angles[${L + 1}]`] = {};
|
|
21429
21448
|
}), u.value = S;
|
|
21430
21449
|
}, _ = (S) => {
|
|
21431
21450
|
c.value.linesWidths = S.map((E) => E.width), c.value.linesAngles = S.map((E) => E.angle);
|
|
@@ -21434,8 +21453,8 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21434
21453
|
}, M = (S, E) => {
|
|
21435
21454
|
c.value.linesWidths = S, c.value.linesAngles = E;
|
|
21436
21455
|
}, x = (S) => {
|
|
21437
|
-
const E = a.value.configuratorParams.linesWidths.length > 1 ? l.value.minLineWidth : l.value.stripMinWidth,
|
|
21438
|
-
a.value.configuratorParams.linesWidths.splice(S + 1, 0, E), a.value.configuratorParams.linesAngles.splice(S + 1, 0,
|
|
21456
|
+
const E = a.value.configuratorParams.linesWidths.length > 1 ? l.value.minLineWidth : l.value.stripMinWidth, L = 0;
|
|
21457
|
+
a.value.configuratorParams.linesWidths.splice(S + 1, 0, E), a.value.configuratorParams.linesAngles.splice(S + 1, 0, L), c.value.linesWidths = [...a.value.configuratorParams.linesWidths], c.value.linesAngles = [...a.value.configuratorParams.linesAngles], w(), v(), m(a.value.configuratorParams);
|
|
21439
21458
|
}, A = (S) => {
|
|
21440
21459
|
a.value.configuratorParams.linesWidths.length <= 1 || (a.value.configuratorParams.linesWidths.splice(S, 1), a.value.configuratorParams.linesAngles.splice(S, 1), c.value.linesWidths = [...a.value.configuratorParams.linesWidths], c.value.linesAngles = [...a.value.configuratorParams.linesAngles], w(), v(), m(a.value.configuratorParams));
|
|
21441
21460
|
};
|
|
@@ -21447,13 +21466,13 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21447
21466
|
a.value = new _t(S), S.isNewRec() ? g() : (w(), d.value = -1, m(a.value.configuratorParams));
|
|
21448
21467
|
}
|
|
21449
21468
|
), (S, E) => {
|
|
21450
|
-
const
|
|
21469
|
+
const L = Ee;
|
|
21451
21470
|
return b(), R("div", j_, [
|
|
21452
|
-
t.settings.allowShowTable ? (b(), J(
|
|
21471
|
+
t.settings.allowShowTable ? (b(), J(L, {
|
|
21453
21472
|
key: 0,
|
|
21454
21473
|
type: "tertiary",
|
|
21455
21474
|
class: "self-end",
|
|
21456
|
-
onClick: E[0] || (E[0] = (
|
|
21475
|
+
onClick: E[0] || (E[0] = (z) => i("click:view-switch"))
|
|
21457
21476
|
}, {
|
|
21458
21477
|
default: I(() => [...E[3] || (E[3] = [
|
|
21459
21478
|
ne(" Показать в виде списка ", -1)
|
|
@@ -21474,7 +21493,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21474
21493
|
D(cb, {
|
|
21475
21494
|
ref: "kozyrek-configurator-params-form",
|
|
21476
21495
|
value: a.value,
|
|
21477
|
-
"onUpdate:value": E[1] || (E[1] = (
|
|
21496
|
+
"onUpdate:value": E[1] || (E[1] = (z) => a.value = z),
|
|
21478
21497
|
"preview-params": c.value,
|
|
21479
21498
|
validation: u.value,
|
|
21480
21499
|
settings: l.value,
|
|
@@ -21482,7 +21501,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21482
21501
|
"is-product-searching": s.value,
|
|
21483
21502
|
"select-template-index": d.value,
|
|
21484
21503
|
class: "col-span-2",
|
|
21485
|
-
"onUpdate:params": E[2] || (E[2] = (
|
|
21504
|
+
"onUpdate:params": E[2] || (E[2] = (z) => m(z)),
|
|
21486
21505
|
"onUpdate:preview": M,
|
|
21487
21506
|
onSubmit: y,
|
|
21488
21507
|
"onClick:saveTemplate": f,
|
|
@@ -21582,26 +21601,26 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21582
21601
|
marker: [ft.serverValidation(i.validation.marker.feedback)]
|
|
21583
21602
|
})), w = F(() => {
|
|
21584
21603
|
var O;
|
|
21585
|
-
const A = p.value, S = v.value, { quantity: E } = i.value,
|
|
21586
|
-
if (!A || !S || !E ||
|
|
21604
|
+
const A = p.value, S = v.value, { quantity: E } = i.value, L = ((O = i.value.product) == null ? void 0 : O.costRub) || 0;
|
|
21605
|
+
if (!A || !S || !E || L === 0)
|
|
21587
21606
|
return null;
|
|
21588
|
-
const
|
|
21589
|
-
return Je.formatMoney(
|
|
21607
|
+
const z = A * S / 1e6;
|
|
21608
|
+
return Je.formatMoney(L * E * z);
|
|
21590
21609
|
}), _ = F(() => {
|
|
21591
|
-
const A = p.value, S = v.value, E = !!(A && A >= i.settings.minWidth && A <= i.settings.maxWidths[u.value.configuratorParams.netType]),
|
|
21592
|
-
return E &&
|
|
21610
|
+
const A = p.value, S = v.value, E = !!(A && A >= i.settings.minWidth && A <= i.settings.maxWidths[u.value.configuratorParams.netType]), L = !!(S && S >= i.settings.minHeight && S <= i.settings.maxHeights[u.value.configuratorParams.netType]), z = !!(i.value.quantity && i.value.quantity > 0);
|
|
21611
|
+
return E && L && z;
|
|
21593
21612
|
}), C = (A, S) => {
|
|
21594
|
-
var
|
|
21613
|
+
var z, O;
|
|
21595
21614
|
const E = u.value.configuratorParams;
|
|
21596
21615
|
A && A in E && (E[A] = S);
|
|
21597
|
-
const
|
|
21616
|
+
const L = {
|
|
21598
21617
|
...E,
|
|
21599
21618
|
width: p.value ?? 0,
|
|
21600
21619
|
height: v.value ?? 0
|
|
21601
21620
|
};
|
|
21602
|
-
A === "width" && ((
|
|
21621
|
+
A === "width" && ((z = a.value) == null || z.validate().catch(Ot)), A === "height" && ((O = l.value) == null || O.validate().catch(Ot)), wt(() => {
|
|
21603
21622
|
var Q, se;
|
|
21604
|
-
!((Q = a.value) != null && Q.validationErrored) && !((se = l.value) != null && se.validationErrored) &&
|
|
21623
|
+
!((Q = a.value) != null && Q.validationErrored) && !((se = l.value) != null && se.validationErrored) && L.height && L.width && s("update:params", L), M("configuratorParams", L);
|
|
21605
21624
|
});
|
|
21606
21625
|
}, M = (A, S) => {
|
|
21607
21626
|
const E = new _t(i.value);
|
|
@@ -21610,8 +21629,8 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21610
21629
|
return xe(
|
|
21611
21630
|
() => i.value,
|
|
21612
21631
|
(A) => {
|
|
21613
|
-
const S = gn(Bn(A)), E = S.configuratorParams.mountType,
|
|
21614
|
-
S.configuratorParams.width && S.configuratorParams.width > 0 && (S.configuratorParams.width -=
|
|
21632
|
+
const S = gn(Bn(A)), E = S.configuratorParams.mountType, L = i.settings.widthOverlaps[E] ?? 0, z = i.settings.heightOverlaps[E] ?? 0;
|
|
21633
|
+
S.configuratorParams.width && S.configuratorParams.width > 0 && (S.configuratorParams.width -= L), S.configuratorParams.height && S.configuratorParams.height > 0 && (S.configuratorParams.height -= z), u.value = S;
|
|
21615
21634
|
},
|
|
21616
21635
|
{ deep: !0, immediate: !0 }
|
|
21617
21636
|
), lt(() => {
|
|
@@ -21644,10 +21663,10 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21644
21663
|
D(T(Kn), {
|
|
21645
21664
|
value: u.value.configuratorParams.netType,
|
|
21646
21665
|
"onUpdate:value": [
|
|
21647
|
-
S[0] || (S[0] = (
|
|
21648
|
-
S[1] || (S[1] = (
|
|
21666
|
+
S[0] || (S[0] = (L) => u.value.configuratorParams.netType = L),
|
|
21667
|
+
S[1] || (S[1] = (L) => C("netType", L))
|
|
21649
21668
|
],
|
|
21650
|
-
options: t.settings.netType.map((
|
|
21669
|
+
options: t.settings.netType.map((L) => ({ label: t.settings.descriptions.net_type[L], value: L }))
|
|
21651
21670
|
}, null, 8, ["value", "options"])
|
|
21652
21671
|
]),
|
|
21653
21672
|
_: 1
|
|
@@ -21661,10 +21680,10 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21661
21680
|
D(T(Kn), {
|
|
21662
21681
|
value: u.value.configuratorParams.color,
|
|
21663
21682
|
"onUpdate:value": [
|
|
21664
|
-
S[2] || (S[2] = (
|
|
21665
|
-
S[3] || (S[3] = (
|
|
21683
|
+
S[2] || (S[2] = (L) => u.value.configuratorParams.color = L),
|
|
21684
|
+
S[3] || (S[3] = (L) => C("color", L))
|
|
21666
21685
|
],
|
|
21667
|
-
options: t.settings.color.map((
|
|
21686
|
+
options: t.settings.color.map((L) => ({ label: t.settings.descriptions.color[L], value: L }))
|
|
21668
21687
|
}, null, 8, ["value", "options"])
|
|
21669
21688
|
]),
|
|
21670
21689
|
_: 1
|
|
@@ -21678,10 +21697,10 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21678
21697
|
D(T(Kn), {
|
|
21679
21698
|
value: u.value.configuratorParams.mountType,
|
|
21680
21699
|
"onUpdate:value": [
|
|
21681
|
-
S[4] || (S[4] = (
|
|
21682
|
-
S[5] || (S[5] = (
|
|
21700
|
+
S[4] || (S[4] = (L) => u.value.configuratorParams.mountType = L),
|
|
21701
|
+
S[5] || (S[5] = (L) => C("mountType", L))
|
|
21683
21702
|
],
|
|
21684
|
-
options: t.settings.mountType.map((
|
|
21703
|
+
options: t.settings.mountType.map((L) => ({ label: t.settings.descriptions.mount_type[L], value: L }))
|
|
21685
21704
|
}, null, 8, ["value", "options"])
|
|
21686
21705
|
]),
|
|
21687
21706
|
_: 1
|
|
@@ -21703,7 +21722,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21703
21722
|
quaternary: "",
|
|
21704
21723
|
type: "info",
|
|
21705
21724
|
size: "tiny",
|
|
21706
|
-
onClick: S[10] || (S[10] = (
|
|
21725
|
+
onClick: S[10] || (S[10] = (L) => s("click:instructions-toggle"))
|
|
21707
21726
|
}, {
|
|
21708
21727
|
default: I(() => [...S[25] || (S[25] = [
|
|
21709
21728
|
k("span", { class: "text-sm" }, "Руководство", -1)
|
|
@@ -21717,15 +21736,15 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21717
21736
|
ref: "width-input-reference",
|
|
21718
21737
|
value: u.value.configuratorParams.width,
|
|
21719
21738
|
"onUpdate:value": [
|
|
21720
|
-
S[6] || (S[6] = (
|
|
21721
|
-
S[9] || (S[9] = (
|
|
21739
|
+
S[6] || (S[6] = (L) => u.value.configuratorParams.width = L),
|
|
21740
|
+
S[9] || (S[9] = (L) => C("width", L))
|
|
21722
21741
|
],
|
|
21723
21742
|
parse: T(Zt),
|
|
21724
21743
|
"show-button": !1,
|
|
21725
21744
|
placeholder: "Введите высоту светового проёма",
|
|
21726
21745
|
class: "w-full",
|
|
21727
|
-
onKeydown: S[7] || (S[7] = (
|
|
21728
|
-
onInput: S[8] || (S[8] = (
|
|
21746
|
+
onKeydown: S[7] || (S[7] = (L) => T(jt)(L)),
|
|
21747
|
+
onInput: S[8] || (S[8] = (L) => T(zt)(t.validation, "width")),
|
|
21729
21748
|
onFocus: T(dt)
|
|
21730
21749
|
}, null, 8, ["value", "parse", "onFocus"])
|
|
21731
21750
|
]),
|
|
@@ -21748,7 +21767,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21748
21767
|
quaternary: "",
|
|
21749
21768
|
type: "info",
|
|
21750
21769
|
size: "tiny",
|
|
21751
|
-
onClick: S[15] || (S[15] = (
|
|
21770
|
+
onClick: S[15] || (S[15] = (L) => s("click:instructions-toggle"))
|
|
21752
21771
|
}, {
|
|
21753
21772
|
default: I(() => [...S[26] || (S[26] = [
|
|
21754
21773
|
k("span", { class: "text-sm" }, "Руководство", -1)
|
|
@@ -21761,15 +21780,15 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21761
21780
|
D(T(Pt), {
|
|
21762
21781
|
value: u.value.configuratorParams.height,
|
|
21763
21782
|
"onUpdate:value": [
|
|
21764
|
-
S[11] || (S[11] = (
|
|
21765
|
-
S[14] || (S[14] = (
|
|
21783
|
+
S[11] || (S[11] = (L) => u.value.configuratorParams.height = L),
|
|
21784
|
+
S[14] || (S[14] = (L) => C("height", L))
|
|
21766
21785
|
],
|
|
21767
21786
|
parse: T(Zt),
|
|
21768
21787
|
"show-button": !1,
|
|
21769
21788
|
placeholder: "Введите высоту светового проёма",
|
|
21770
21789
|
class: "w-full",
|
|
21771
|
-
onKeydown: S[12] || (S[12] = (
|
|
21772
|
-
onInput: S[13] || (S[13] = (
|
|
21790
|
+
onKeydown: S[12] || (S[12] = (L) => T(jt)(L)),
|
|
21791
|
+
onInput: S[13] || (S[13] = (L) => T(zt)(t.validation, "height")),
|
|
21773
21792
|
onFocus: T(dt)
|
|
21774
21793
|
}, null, 8, ["value", "parse", "onFocus"])
|
|
21775
21794
|
]),
|
|
@@ -21783,14 +21802,14 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21783
21802
|
D(T(Pt), {
|
|
21784
21803
|
value: u.value.quantity,
|
|
21785
21804
|
"onUpdate:value": [
|
|
21786
|
-
S[16] || (S[16] = (
|
|
21787
|
-
S[19] || (S[19] = (
|
|
21805
|
+
S[16] || (S[16] = (L) => u.value.quantity = L),
|
|
21806
|
+
S[19] || (S[19] = (L) => M("quantity", L ?? 0))
|
|
21788
21807
|
],
|
|
21789
21808
|
"show-button": !1,
|
|
21790
21809
|
placeholder: "Введите количество",
|
|
21791
21810
|
class: "w-full",
|
|
21792
|
-
onKeydown: S[17] || (S[17] = (
|
|
21793
|
-
onInput: S[18] || (S[18] = (
|
|
21811
|
+
onKeydown: S[17] || (S[17] = (L) => T(jt)(L, !1)),
|
|
21812
|
+
onInput: S[18] || (S[18] = (L) => T(zt)(t.validation, "quantity")),
|
|
21794
21813
|
onFocus: T(dt)
|
|
21795
21814
|
}, null, 8, ["value", "onFocus"])
|
|
21796
21815
|
]),
|
|
@@ -21804,9 +21823,9 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21804
21823
|
D(T(Ii), {
|
|
21805
21824
|
value: u.value.marker ?? null,
|
|
21806
21825
|
placeholder: "Введите маркировку",
|
|
21807
|
-
onInput: S[20] || (S[20] = (
|
|
21808
|
-
"onUpdate:value": S[21] || (S[21] = (
|
|
21809
|
-
u.value.marker =
|
|
21826
|
+
onInput: S[20] || (S[20] = (L) => T(zt)(t.validation, "marker")),
|
|
21827
|
+
"onUpdate:value": S[21] || (S[21] = (L) => {
|
|
21828
|
+
u.value.marker = L ?? null, M("marker", L ?? null);
|
|
21810
21829
|
}),
|
|
21811
21830
|
onFocus: T(dt)
|
|
21812
21831
|
}, null, 8, ["value", "onFocus"])
|
|
@@ -21818,8 +21837,8 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21818
21837
|
checked: u.value.isAdditionalSale ?? !1,
|
|
21819
21838
|
"true-value": !0,
|
|
21820
21839
|
"false-value": !1,
|
|
21821
|
-
"onUpdate:checked": S[22] || (S[22] = (
|
|
21822
|
-
u.value.isAdditionalSale =
|
|
21840
|
+
"onUpdate:checked": S[22] || (S[22] = (L) => {
|
|
21841
|
+
u.value.isAdditionalSale = L ?? !1, M("isAdditionalSale", L ?? !1);
|
|
21823
21842
|
})
|
|
21824
21843
|
}, {
|
|
21825
21844
|
default: I(() => [...S[27] || (S[27] = [
|
|
@@ -21843,7 +21862,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21843
21862
|
disabled: !_.value || u.value.product.isNewRec(),
|
|
21844
21863
|
type: "primary",
|
|
21845
21864
|
class: "self-start",
|
|
21846
|
-
onClick: S[23] || (S[23] = (
|
|
21865
|
+
onClick: S[23] || (S[23] = (L) => s("submit", t.value))
|
|
21847
21866
|
}, {
|
|
21848
21867
|
default: I(() => [
|
|
21849
21868
|
ne(W(t.value.isNewRec() ? "В корзину" : "Изменить"), 1)
|
|
@@ -21853,7 +21872,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
21853
21872
|
r.value ? (b(), J(T(Ee), {
|
|
21854
21873
|
key: 0,
|
|
21855
21874
|
type: "default",
|
|
21856
|
-
onClick: S[24] || (S[24] = (
|
|
21875
|
+
onClick: S[24] || (S[24] = (L) => s("click:show-preview-drawer"))
|
|
21857
21876
|
}, {
|
|
21858
21877
|
default: I(() => [...S[29] || (S[29] = [
|
|
21859
21878
|
ne(" Предварительный просмотр ", -1)
|
|
@@ -22042,7 +22061,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22042
22061
|
},
|
|
22043
22062
|
{ deep: !0 }
|
|
22044
22063
|
), (p, v) => {
|
|
22045
|
-
const m =
|
|
22064
|
+
const m = za;
|
|
22046
22065
|
return b(), R(ye, null, [
|
|
22047
22066
|
D(bw, {
|
|
22048
22067
|
show: o.value,
|
|
@@ -22187,7 +22206,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22187
22206
|
parse: T(Zt),
|
|
22188
22207
|
placeholder: "Введите ширину",
|
|
22189
22208
|
onKeydown: d,
|
|
22190
|
-
onInput: f[0] || (f[0] = (m) => T(
|
|
22209
|
+
onInput: f[0] || (f[0] = (m) => T(zt)(t.validation, `linesWidths.${t.index}`)),
|
|
22191
22210
|
onFocus: T(dt),
|
|
22192
22211
|
"onUpdate:value": u
|
|
22193
22212
|
}, null, 8, ["value", "parse", "onFocus"])
|
|
@@ -22278,8 +22297,8 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22278
22297
|
a.value[_].product.id = -1;
|
|
22279
22298
|
const { configuratorParams: M } = a.value[_];
|
|
22280
22299
|
M.linesWidths[_] = w, m("configuratorParams", M), (S = (A = (x = o.value) == null ? void 0 : x.at(_)) == null ? void 0 : A.formItemReference) == null || S.validate().catch(Ot), wt(() => {
|
|
22281
|
-
var E,
|
|
22282
|
-
(
|
|
22300
|
+
var E, L;
|
|
22301
|
+
(L = (E = o.value) == null ? void 0 : E.at(_)) != null && L.isValid && s("update:params", M, _, C);
|
|
22283
22302
|
});
|
|
22284
22303
|
}, m = (w, _) => {
|
|
22285
22304
|
a.value.forEach((C) => {
|
|
@@ -22313,7 +22332,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22313
22332
|
var M;
|
|
22314
22333
|
return [
|
|
22315
22334
|
(b(!0), R(ye, null, Xe(a.value, (x, A) => {
|
|
22316
|
-
var S, E,
|
|
22335
|
+
var S, E, L;
|
|
22317
22336
|
return b(), J(Cw, {
|
|
22318
22337
|
key: A,
|
|
22319
22338
|
ref_for: !0,
|
|
@@ -22325,13 +22344,13 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22325
22344
|
product: x.product,
|
|
22326
22345
|
settings: t.settings,
|
|
22327
22346
|
validation: t.validation,
|
|
22328
|
-
"suggestion-option": f.value(((
|
|
22329
|
-
"add-line-button-disabled": d.value <= 0 || t.value.length >= t.settings.maxLinesCount || t.value.some((
|
|
22347
|
+
"suggestion-option": f.value(((L = x.configuratorParams) == null ? void 0 : L.linesWidths.at(A)) ?? 0),
|
|
22348
|
+
"add-line-button-disabled": d.value <= 0 || t.value.length >= t.settings.maxLinesCount || t.value.some((z) => z.product.isNewRec()),
|
|
22330
22349
|
"remove-line-button-disabled": a.value.length === 1,
|
|
22331
22350
|
"is-last-line": A === a.value.length - 1 && d.value === 0,
|
|
22332
22351
|
"onUpdate:value": v,
|
|
22333
|
-
"onClick:addLine": _[0] || (_[0] = (
|
|
22334
|
-
"onClick:removeLine": _[1] || (_[1] = (
|
|
22352
|
+
"onClick:addLine": _[0] || (_[0] = (z) => s("click:add-line", z)),
|
|
22353
|
+
"onClick:removeLine": _[1] || (_[1] = (z) => s("click:remove-line", z))
|
|
22335
22354
|
}, null, 8, ["value", "auto-focus", "index", "path", "product", "settings", "validation", "suggestion-option", "add-line-button-disabled", "remove-line-button-disabled", "is-last-line"]);
|
|
22336
22355
|
}), 128)),
|
|
22337
22356
|
k("div", Sw, [
|
|
@@ -22393,7 +22412,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22393
22412
|
placeholder: "Введите метраж",
|
|
22394
22413
|
class: "w-full",
|
|
22395
22414
|
onKeydown: _[4] || (_[4] = (x) => T(jt)(x, !1)),
|
|
22396
|
-
onInput: _[5] || (_[5] = (x) => T(
|
|
22415
|
+
onInput: _[5] || (_[5] = (x) => T(zt)(t.validation, "length")),
|
|
22397
22416
|
onFocus: T(dt)
|
|
22398
22417
|
}, null, 8, ["value", "parse", "onFocus"])
|
|
22399
22418
|
]),
|
|
@@ -22414,7 +22433,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22414
22433
|
placeholder: "Введите количество",
|
|
22415
22434
|
class: "w-full",
|
|
22416
22435
|
onKeydown: _[8] || (_[8] = (x) => T(jt)(x, !1)),
|
|
22417
|
-
onInput: _[9] || (_[9] = (x) => T(
|
|
22436
|
+
onInput: _[9] || (_[9] = (x) => T(zt)(t.validation, "quantity")),
|
|
22418
22437
|
onFocus: T(dt)
|
|
22419
22438
|
}, null, 8, ["value", "onFocus"])
|
|
22420
22439
|
]),
|
|
@@ -22428,7 +22447,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22428
22447
|
D(T(Ii), {
|
|
22429
22448
|
value: a.value[0].marker ?? null,
|
|
22430
22449
|
placeholder: "Введите маркировку",
|
|
22431
|
-
onInput: _[11] || (_[11] = (x) => T(
|
|
22450
|
+
onInput: _[11] || (_[11] = (x) => T(zt)(t.validation, "marker")),
|
|
22432
22451
|
"onUpdate:value": _[12] || (_[12] = (x) => {
|
|
22433
22452
|
a.value[0].marker = x ?? null, m("marker", x ?? null);
|
|
22434
22453
|
}),
|
|
@@ -22502,8 +22521,8 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22502
22521
|
])
|
|
22503
22522
|
]));
|
|
22504
22523
|
}
|
|
22505
|
-
}), Ow = { class: "flex flex-col gap-2" },
|
|
22506
|
-
...
|
|
22524
|
+
}), Ow = { class: "flex flex-col gap-2" }, Lw = { class: "flex grow flex-col px-5 md:w-104" }, zw = {}, Dw = /* @__PURE__ */ re({
|
|
22525
|
+
...zw,
|
|
22507
22526
|
__name: "strip-configurator",
|
|
22508
22527
|
props: {
|
|
22509
22528
|
eventEmitter: {},
|
|
@@ -22605,7 +22624,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22605
22624
|
])]),
|
|
22606
22625
|
_: 1
|
|
22607
22626
|
})) : H("", !0),
|
|
22608
|
-
k("div",
|
|
22627
|
+
k("div", Lw, [
|
|
22609
22628
|
D(Ew, {
|
|
22610
22629
|
value: r.value,
|
|
22611
22630
|
"onUpdate:value": p[1] || (p[1] = (m) => r.value = m),
|
|
@@ -22712,7 +22731,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22712
22731
|
"show-button": !1,
|
|
22713
22732
|
placeholder: "Введите ширину",
|
|
22714
22733
|
onKeydown: p[1] || (p[1] = (m) => T(jt)(m)),
|
|
22715
|
-
onInput: p[2] || (p[2] = (m) => T(
|
|
22734
|
+
onInput: p[2] || (p[2] = (m) => T(zt)(t.validation, "width")),
|
|
22716
22735
|
onFocus: T(dt)
|
|
22717
22736
|
}, null, 8, ["value", "parse", "onFocus"])
|
|
22718
22737
|
]),
|
|
@@ -22734,7 +22753,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22734
22753
|
"show-button": !1,
|
|
22735
22754
|
class: "w-full",
|
|
22736
22755
|
onKeydown: p[4] || (p[4] = (m) => T(jt)(m)),
|
|
22737
|
-
onInput: p[5] || (p[5] = (m) => T(
|
|
22756
|
+
onInput: p[5] || (p[5] = (m) => T(zt)(t.validation, "length")),
|
|
22738
22757
|
onFocus: T(dt)
|
|
22739
22758
|
}, null, 8, ["value", "parse", "onFocus"])
|
|
22740
22759
|
]),
|
|
@@ -22752,7 +22771,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22752
22771
|
"show-button": !1,
|
|
22753
22772
|
class: "w-full",
|
|
22754
22773
|
onKeydown: p[6] || (p[6] = (m) => T(jt)(m, !1)),
|
|
22755
|
-
onInput: p[7] || (p[7] = (m) => T(
|
|
22774
|
+
onInput: p[7] || (p[7] = (m) => T(zt)(t.validation, "quantity")),
|
|
22756
22775
|
"onUpdate:value": p[8] || (p[8] = (m) => d("quantity", m ?? 0)),
|
|
22757
22776
|
onFocus: T(dt)
|
|
22758
22777
|
}, null, 8, ["value", "onFocus"])
|
|
@@ -22767,7 +22786,7 @@ const j_ = { class: "flex flex-col gap-3" }, q_ = { class: "grid gap-5 md:grid-c
|
|
|
22767
22786
|
D(T(Ii), {
|
|
22768
22787
|
value: t.value.marker ?? null,
|
|
22769
22788
|
placeholder: "Введите маркировку",
|
|
22770
|
-
onInput: p[9] || (p[9] = (m) => T(
|
|
22789
|
+
onInput: p[9] || (p[9] = (m) => T(zt)(t.validation, "marker")),
|
|
22771
22790
|
"onUpdate:value": p[10] || (p[10] = (m) => d("marker", m ?? null)),
|
|
22772
22791
|
onFocus: T(dt)
|
|
22773
22792
|
}, null, 8, ["value", "onFocus"])
|
|
@@ -22923,7 +22942,7 @@ function Xw(t, e) {
|
|
|
22923
22942
|
}, null, -1)
|
|
22924
22943
|
])]);
|
|
22925
22944
|
}
|
|
22926
|
-
const xg =
|
|
22945
|
+
const xg = Le({ name: "ion-add", render: Xw }), Yw = {
|
|
22927
22946
|
key: 0,
|
|
22928
22947
|
class: "-mt-1 text-sm text-gray-500"
|
|
22929
22948
|
}, Kw = { class: "font-bold" }, Gw = { class: "flex flex-col gap-3" }, Zw = {
|
|
@@ -23034,24 +23053,24 @@ const xg = ze({ name: "ion-add", render: Xw }), Yw = {
|
|
|
23034
23053
|
B && (u.value = B, d.value = K, o.value.product = B, q("product", o.value.product), o.value.configuratorParams.items.forEach((X) => {
|
|
23035
23054
|
var ie, le;
|
|
23036
23055
|
(ie = B.properties) != null && ie.width && X.width > B.properties.width && (X.width = B.properties.width), (le = B.properties) != null && le.length && X.length > B.properties.length && (X.length = B.properties.length);
|
|
23037
|
-
}),
|
|
23056
|
+
}), L());
|
|
23038
23057
|
};
|
|
23039
23058
|
let E = !1;
|
|
23040
|
-
const
|
|
23059
|
+
const L = () => {
|
|
23041
23060
|
E = !0, m.value = null, x.value = null, o.value.configuratorParams.calculationId = "", o.value.quantity = 0;
|
|
23042
|
-
},
|
|
23061
|
+
}, z = async () => {
|
|
23043
23062
|
var K;
|
|
23044
23063
|
if (!u.value || o.value.configuratorParams.items.length === 0 || C.value) {
|
|
23045
|
-
|
|
23064
|
+
L();
|
|
23046
23065
|
return;
|
|
23047
23066
|
}
|
|
23048
23067
|
(K = r.value) == null || K.validate((B) => {
|
|
23049
23068
|
if (B) {
|
|
23050
|
-
|
|
23069
|
+
L();
|
|
23051
23070
|
return;
|
|
23052
23071
|
}
|
|
23053
23072
|
if (y.value = !0, !u.value || !c.value) {
|
|
23054
|
-
|
|
23073
|
+
L(), y.value = !1;
|
|
23055
23074
|
return;
|
|
23056
23075
|
}
|
|
23057
23076
|
i.eventEmitter.emit("configurator:calculate", {
|
|
@@ -23063,11 +23082,11 @@ const xg = ze({ name: "ion-add", render: Xw }), Yw = {
|
|
|
23063
23082
|
callback: (X) => {
|
|
23064
23083
|
X ? (m.value = X, o.value.configuratorParams.calculationId = X.id, o.value.quantity = X.quantity, wt(() => {
|
|
23065
23084
|
q("quantity", X.quantity);
|
|
23066
|
-
})) : (o.value.configuratorParams.calculationId = "", o.value.quantity = 0,
|
|
23085
|
+
})) : (o.value.configuratorParams.calculationId = "", o.value.quantity = 0, L()), q("configuratorParams", o.value.configuratorParams), O(), y.value = !1;
|
|
23067
23086
|
}
|
|
23068
23087
|
});
|
|
23069
23088
|
}).catch(() => {
|
|
23070
|
-
|
|
23089
|
+
L(), y.value = !1;
|
|
23071
23090
|
});
|
|
23072
23091
|
}, O = () => {
|
|
23073
23092
|
var B;
|
|
@@ -23080,19 +23099,19 @@ const xg = ze({ name: "ion-add", render: Xw }), Yw = {
|
|
|
23080
23099
|
}, N = (K) => {
|
|
23081
23100
|
var X, ie;
|
|
23082
23101
|
const B = o.value.configuratorParams.items[K];
|
|
23083
|
-
u.value && ((X = u.value.properties) != null && X.width && B.width > u.value.properties.width && (B.width = u.value.properties.width), (ie = u.value.properties) != null && ie.length && B.length > u.value.properties.length && (B.length = u.value.properties.length)), q("configuratorParams", o.value.configuratorParams),
|
|
23102
|
+
u.value && ((X = u.value.properties) != null && X.width && B.width > u.value.properties.width && (B.width = u.value.properties.width), (ie = u.value.properties) != null && ie.length && B.length > u.value.properties.length && (B.length = u.value.properties.length)), q("configuratorParams", o.value.configuratorParams), L();
|
|
23084
23103
|
}, Q = () => {
|
|
23085
23104
|
o.value.configuratorParams.calculationId = "", o.value.configuratorParams.items.push({
|
|
23086
23105
|
width: 0,
|
|
23087
23106
|
length: 0,
|
|
23088
23107
|
count: 1
|
|
23089
|
-
}), q("configuratorParams", o.value.configuratorParams),
|
|
23108
|
+
}), q("configuratorParams", o.value.configuratorParams), L(), s("add-item", o.value.configuratorParams.items.length);
|
|
23090
23109
|
}, se = (K) => {
|
|
23091
|
-
o.value.configuratorParams.items.splice(K, 1), q("configuratorParams", o.value.configuratorParams),
|
|
23110
|
+
o.value.configuratorParams.items.splice(K, 1), q("configuratorParams", o.value.configuratorParams), L(), s("remove-item", K);
|
|
23092
23111
|
}, oe = () => {
|
|
23093
23112
|
if (!(M.value || y.value || i.isSubmitProcessing)) {
|
|
23094
23113
|
if (!m.value) {
|
|
23095
|
-
|
|
23114
|
+
z();
|
|
23096
23115
|
return;
|
|
23097
23116
|
}
|
|
23098
23117
|
s("submit", o.value);
|
|
@@ -23340,7 +23359,7 @@ const xg = ze({ name: "ion-add", render: Xw }), Yw = {
|
|
|
23340
23359
|
disabled: M.value || y.value,
|
|
23341
23360
|
type: "info",
|
|
23342
23361
|
class: "self-start",
|
|
23343
|
-
onClick:
|
|
23362
|
+
onClick: z
|
|
23344
23363
|
}, {
|
|
23345
23364
|
default: I(() => [...B[12] || (B[12] = [
|
|
23346
23365
|
ne(" Рассчитать ", -1)
|
|
@@ -23463,7 +23482,7 @@ function mx(t, e) {
|
|
|
23463
23482
|
}, null, -1)
|
|
23464
23483
|
])]);
|
|
23465
23484
|
}
|
|
23466
|
-
const vx =
|
|
23485
|
+
const vx = Le({ name: "ion-checkmark", render: mx }), yx = {
|
|
23467
23486
|
key: 0,
|
|
23468
23487
|
class: "-mt-1 text-sm text-gray-500"
|
|
23469
23488
|
}, bx = { class: "font-bold" }, _x = { class: "flex flex-col gap-3" }, wx = {
|
|
@@ -23484,7 +23503,7 @@ const vx = ze({ name: "ion-checkmark", render: mx }), yx = {
|
|
|
23484
23503
|
}, Ex = { class: "font-bold" }, Ox = {
|
|
23485
23504
|
key: 1,
|
|
23486
23505
|
class: "min-w-0 flex flex-col items-end gap-1 text-right text-sm text-gray-700 border-t border-gray-200 pt-2"
|
|
23487
|
-
},
|
|
23506
|
+
}, Lx = { key: 0 }, zx = { class: "font-bold" }, Dx = { key: 1 }, Nx = { class: "font-bold" }, Hx = { class: "flex flex-wrap items-center gap-3" }, Wx = {}, Vx = /* @__PURE__ */ re({
|
|
23488
23507
|
...Wx,
|
|
23489
23508
|
__name: "sandwich-m2-configurator-form",
|
|
23490
23509
|
props: {
|
|
@@ -23579,12 +23598,12 @@ const vx = ze({ name: "ion-checkmark", render: mx }), yx = {
|
|
|
23579
23598
|
}), M = F(() => !h.value || C.value || l.value.length === 0), x = F(() => {
|
|
23580
23599
|
const te = l.value[0];
|
|
23581
23600
|
return te != null && !te.isNewRec();
|
|
23582
|
-
}), A = (te) => i.itemStates[te] ?? "idle", S = (te) => A(te) === "success", E = (te) => A(te) === "loading",
|
|
23601
|
+
}), A = (te) => i.itemStates[te] ?? "idle", S = (te) => A(te) === "success", E = (te) => A(te) === "loading", L = F(() => l.value.length === 0 ? !0 : l.value.every((te, Z) => {
|
|
23583
23602
|
const Y = A(Z);
|
|
23584
23603
|
return Y === "success" || Y === "loading";
|
|
23585
|
-
})),
|
|
23604
|
+
})), z = (te) => te.width === 0 || te.length === 0 ? 0 : te.width * te.length / 1e6, O = (te) => Je.formatArea(z(te)), N = (te) => {
|
|
23586
23605
|
var ge;
|
|
23587
|
-
const Z = te.configuratorParams, Y =
|
|
23606
|
+
const Z = te.configuratorParams, Y = z(Z), ve = ((ge = h.value) == null ? void 0 : ge.costRub) ?? 0, we = te.quantity ?? 0;
|
|
23588
23607
|
return !Y || !we ? 0 : Je.roundMoney(Y * ve * we);
|
|
23589
23608
|
}, Q = F(
|
|
23590
23609
|
() => bu(
|
|
@@ -23841,9 +23860,9 @@ const vx = ze({ name: "ion-checkmark", render: mx }), yx = {
|
|
|
23841
23860
|
}), 128))
|
|
23842
23861
|
]),
|
|
23843
23862
|
h.value ? (b(), R("div", Ox, [
|
|
23844
|
-
Q.value > 0 ? (b(), R("div",
|
|
23863
|
+
Q.value > 0 ? (b(), R("div", Lx, [
|
|
23845
23864
|
Z[9] || (Z[9] = ne(" Общая площадь: ", -1)),
|
|
23846
|
-
k("span",
|
|
23865
|
+
k("span", zx, W(T(Je).formatArea(Q.value)) + " м²", 1)
|
|
23847
23866
|
])) : H("", !0),
|
|
23848
23867
|
se.value > 0 ? (b(), R("div", Dx, [
|
|
23849
23868
|
Z[10] || (Z[10] = ne(" Итого: ", -1)),
|
|
@@ -23878,7 +23897,7 @@ const vx = ze({ name: "ion-checkmark", render: mx }), yx = {
|
|
|
23878
23897
|
}, 8, ["disabled"])) : H("", !0),
|
|
23879
23898
|
D(T(Ee), {
|
|
23880
23899
|
loading: t.isSubmitProcessing,
|
|
23881
|
-
disabled: M.value ||
|
|
23900
|
+
disabled: M.value || L.value,
|
|
23882
23901
|
type: "primary",
|
|
23883
23902
|
class: "ml-auto",
|
|
23884
23903
|
onClick: Z[5] || (Z[5] = (Te) => s("submit", l.value))
|
|
@@ -23945,9 +23964,9 @@ const vx = ze({ name: "ion-checkmark", render: mx }), yx = {
|
|
|
23945
23964
|
}), g = (w, _) => {
|
|
23946
23965
|
let C = !1;
|
|
23947
23966
|
return l.forEach((M) => {
|
|
23948
|
-
var
|
|
23949
|
-
const x = `items.0.${M}`, A = (
|
|
23950
|
-
E ? (a.value[
|
|
23967
|
+
var z, O;
|
|
23968
|
+
const x = `items.0.${M}`, A = (z = w[M]) == null ? void 0 : z.feedback, E = ((O = w[x]) == null ? void 0 : O.feedback) ?? A, L = `items.${_}.${M}`;
|
|
23969
|
+
E ? (a.value[L] = w[x] ?? w[M], C = !0) : a.value[L] = {};
|
|
23951
23970
|
}), C;
|
|
23952
23971
|
}, f = (w, _, C) => new Promise((M) => {
|
|
23953
23972
|
const x = h();
|
|
@@ -23956,11 +23975,11 @@ const vx = ze({ name: "ion-checkmark", render: mx }), yx = {
|
|
|
23956
23975
|
if (A)
|
|
23957
23976
|
return;
|
|
23958
23977
|
A = !0;
|
|
23959
|
-
const
|
|
23960
|
-
o.value[_] =
|
|
23978
|
+
const L = g(x, _), z = (E === void 0 ? !L : E) && !L;
|
|
23979
|
+
o.value[_] = z ? "success" : "error", wt(() => {
|
|
23961
23980
|
var O, N;
|
|
23962
23981
|
(N = (O = s.value) == null ? void 0 : O.formReference) == null || N.restoreValidation();
|
|
23963
|
-
}), M(
|
|
23982
|
+
}), M(z);
|
|
23964
23983
|
};
|
|
23965
23984
|
o.value[_] = "loading", i("submit", [gn(w)], x, S, { isFinalSuccessfulCompletion: C });
|
|
23966
23985
|
}), p = async () => {
|
|
@@ -23979,8 +23998,8 @@ const vx = ze({ name: "ion-checkmark", render: mx }), yx = {
|
|
|
23979
23998
|
const A = w[x], S = r.value[A];
|
|
23980
23999
|
if (!S)
|
|
23981
24000
|
break;
|
|
23982
|
-
const
|
|
23983
|
-
await f(S, A,
|
|
24001
|
+
const L = x === w.length - 1 && _;
|
|
24002
|
+
await f(S, A, L) || (_ = !1);
|
|
23984
24003
|
}
|
|
23985
24004
|
}, v = (w) => {
|
|
23986
24005
|
const _ = w - 1;
|
|
@@ -24310,7 +24329,7 @@ const i2 = {
|
|
|
24310
24329
|
productContextButtonsConfig: { type: Function, default: void 0 }
|
|
24311
24330
|
},
|
|
24312
24331
|
setup(t) {
|
|
24313
|
-
const e = t, n = et(Ta, "medium"), i =
|
|
24332
|
+
const e = t, n = et(Ta, "medium"), i = Lc(), s = F(() => {
|
|
24314
24333
|
var ge;
|
|
24315
24334
|
return (ge = e == null ? void 0 : e.filteredItems) == null ? void 0 : ge[e.categoryItem.id];
|
|
24316
24335
|
}), r = F(() => {
|
|
@@ -24356,7 +24375,7 @@ const i2 = {
|
|
|
24356
24375
|
() => It(e.isCategoryItemSelected) ? e.isCategoryItemSelected(e.categoryItem) === "disabled" : e.isCategoryItemSelected === "disabled"
|
|
24357
24376
|
), E = F(
|
|
24358
24377
|
() => It(e.isCategoryItemSelected) ? e.isCategoryItemSelected(e.categoryItem) === "indeterminate" : e.isCategoryItemSelected === "indeterminate"
|
|
24359
|
-
),
|
|
24378
|
+
), L = F(() => Y.value && xt.getDeviceTypeByResolution() === pt.laptop ? "auto" : "fixed"), z = Ke("collapse-item-reference"), O = F(() => {
|
|
24360
24379
|
var ge, ke;
|
|
24361
24380
|
return (ke = (ge = e.categoryItem.properties) == null ? void 0 : ge.templateCost) == null ? void 0 : ke.priceCoefficient;
|
|
24362
24381
|
}), N = F(() => {
|
|
@@ -24375,26 +24394,26 @@ const i2 = {
|
|
|
24375
24394
|
minimumFractionDigits: 0,
|
|
24376
24395
|
maximumFractionDigits: 0
|
|
24377
24396
|
}).replaceAll(/\d/g, "").trim(), j = (ge) => {
|
|
24378
|
-
e.eventEmitter.emit("category:checked", { category: e.categoryItem, checked: ge, target:
|
|
24397
|
+
e.eventEmitter.emit("category:checked", { category: e.categoryItem, checked: ge, target: z.value });
|
|
24379
24398
|
}, ee = (ge, ke) => {
|
|
24380
24399
|
e.eventEmitter.emit("category:header-click", {
|
|
24381
24400
|
categoryItem: e.categoryItem,
|
|
24382
24401
|
expanded: ke,
|
|
24383
24402
|
isLoadingState: C,
|
|
24384
|
-
target:
|
|
24403
|
+
target: z.value
|
|
24385
24404
|
});
|
|
24386
24405
|
}, K = () => {
|
|
24387
|
-
e.eventEmitter.emit("category:hide", { category: e.categoryItem, target:
|
|
24406
|
+
e.eventEmitter.emit("category:hide", { category: e.categoryItem, target: z.value });
|
|
24388
24407
|
}, B = () => {
|
|
24389
|
-
e.eventEmitter.emit("category:required", { category: e.categoryItem, target:
|
|
24408
|
+
e.eventEmitter.emit("category:required", { category: e.categoryItem, target: z.value });
|
|
24390
24409
|
}, X = () => {
|
|
24391
|
-
e.eventEmitter.emit("category:attach", { category: e.categoryItem, target:
|
|
24410
|
+
e.eventEmitter.emit("category:attach", { category: e.categoryItem, target: z.value });
|
|
24392
24411
|
}, ie = () => {
|
|
24393
|
-
e.eventEmitter.emit("category:detach", { category: e.categoryItem, target:
|
|
24412
|
+
e.eventEmitter.emit("category:detach", { category: e.categoryItem, target: z.value });
|
|
24394
24413
|
}, le = () => {
|
|
24395
|
-
e.eventEmitter.emit("category:edit", { category: e.categoryItem, target:
|
|
24414
|
+
e.eventEmitter.emit("category:edit", { category: e.categoryItem, target: z.value });
|
|
24396
24415
|
}, te = (ge) => {
|
|
24397
|
-
e.eventEmitter.emit("category:context-select", { category: e.categoryItem, key: ge, target:
|
|
24416
|
+
e.eventEmitter.emit("category:context-select", { category: e.categoryItem, key: ge, target: z.value });
|
|
24398
24417
|
}, Z = () => {
|
|
24399
24418
|
e.eventEmitter.emit("configurator:click-view-switch", { category: e.categoryItem });
|
|
24400
24419
|
}, Y = V(0), ve = F(() => Y.value && o.value.length > 0 ? H0(o.value, {
|
|
@@ -24419,7 +24438,7 @@ const i2 = {
|
|
|
24419
24438
|
return Pr(() => {
|
|
24420
24439
|
window.removeEventListener("resize", we), we.cancel();
|
|
24421
24440
|
}), window.addEventListener("resize", we), we(), (ge, ke) => {
|
|
24422
|
-
const Te = Gn, Fe = Gv, vt = Tr, je = Xv, nn = Ac, si = jv, sn = Hv, $n = Ee, vi =
|
|
24441
|
+
const Te = Gn, Fe = Gv, vt = Tr, je = Xv, nn = Ac, si = jv, sn = Hv, $n = Ee, vi = zv, Zn = gf, Nt = ff, me = hf, _e = zc, mt = Pa, _s = Ic, Li = sf, zi = ss;
|
|
24423
24442
|
return b(), J(dy, {
|
|
24424
24443
|
ref: "collapse-item-reference",
|
|
24425
24444
|
name: t.categoryItem.id,
|
|
@@ -24787,25 +24806,25 @@ const i2 = {
|
|
|
24787
24806
|
loading: C.value,
|
|
24788
24807
|
remote: !0,
|
|
24789
24808
|
"row-key": (Hn) => Hn.id,
|
|
24790
|
-
"table-layout":
|
|
24809
|
+
"table-layout": L.value,
|
|
24791
24810
|
class: "mt-2"
|
|
24792
24811
|
}, null, 8, ["columns", "data", "loading", "row-key", "table-layout"])
|
|
24793
24812
|
])) : H("", !0),
|
|
24794
|
-
!C.value && !M.value && !r.value && !c.value ? (b(), J(
|
|
24813
|
+
!C.value && !M.value && !r.value && !c.value ? (b(), J(Li, {
|
|
24795
24814
|
key: 2,
|
|
24796
24815
|
"show-icon": !0,
|
|
24797
24816
|
type: "warning",
|
|
24798
24817
|
title: "Категория пуста",
|
|
24799
24818
|
class: "mx-10"
|
|
24800
24819
|
})) : H("", !0),
|
|
24801
|
-
M.value ? (b(), J(
|
|
24820
|
+
M.value ? (b(), J(Li, {
|
|
24802
24821
|
key: 3,
|
|
24803
24822
|
"show-icon": !0,
|
|
24804
24823
|
type: "error",
|
|
24805
24824
|
title: "При получении данных произошла ошибка",
|
|
24806
24825
|
class: "mx-10"
|
|
24807
24826
|
})) : H("", !0),
|
|
24808
|
-
C.value ? (b(), J(
|
|
24827
|
+
C.value ? (b(), J(zi, {
|
|
24809
24828
|
key: 4,
|
|
24810
24829
|
size: T(n),
|
|
24811
24830
|
class: "w-full"
|
|
@@ -25038,22 +25057,22 @@ const i2 = {
|
|
|
25038
25057
|
},
|
|
25039
25058
|
emits: ["update:value"],
|
|
25040
25059
|
setup(t, { emit: e }) {
|
|
25041
|
-
var E,
|
|
25060
|
+
var E, L;
|
|
25042
25061
|
const n = t, i = e, s = () => {
|
|
25043
|
-
const
|
|
25044
|
-
return vm(
|
|
25045
|
-
}, r = (
|
|
25046
|
-
var
|
|
25047
|
-
return ((
|
|
25062
|
+
const z = tm.getRetailPriceCoefficient();
|
|
25063
|
+
return vm(z, "isNewRec"), z;
|
|
25064
|
+
}, r = (z) => !z || z.id === s().id, o = F(() => {
|
|
25065
|
+
var z;
|
|
25066
|
+
return ((z = n.catalogItem) == null ? void 0 : z.type) === "product";
|
|
25048
25067
|
}), a = F(() => !o.value && !Ue(n.m2ReferenceProduct)), l = F(() => o.value ? n.catalogItem : n.m2ReferenceProduct), c = F(() => !Ue(l.value)), u = F(() => {
|
|
25049
|
-
var
|
|
25050
|
-
return `${((
|
|
25051
|
-
}), d = (
|
|
25052
|
-
var
|
|
25053
|
-
return (((
|
|
25054
|
-
}), f = (
|
|
25068
|
+
var z;
|
|
25069
|
+
return `${((z = l.value) == null ? void 0 : z.currency.symbol) ?? ""}${a.value ? "/м²" : ""}`;
|
|
25070
|
+
}), d = (z) => a.value && n.m2ReferenceProduct ? br.toM2Cost(z, n.m2ReferenceProduct) : z, h = F(() => l.value ? d(l.value.retailCost ?? l.value.cost) : void 0), g = F(() => {
|
|
25071
|
+
var z;
|
|
25072
|
+
return (((z = l.value) == null ? void 0 : z.priceCoefficients) ?? []).map((O) => ({ ...O, cost: d(O.cost) }));
|
|
25073
|
+
}), f = (z) => {
|
|
25055
25074
|
var O;
|
|
25056
|
-
return
|
|
25075
|
+
return z.id === s().id ? h.value : (O = g.value.find((N) => N.coefficient.id === z.id)) == null ? void 0 : O.cost;
|
|
25057
25076
|
}, p = F(() => {
|
|
25058
25077
|
var N;
|
|
25059
25078
|
const O = [
|
|
@@ -25065,16 +25084,16 @@ const i2 = {
|
|
|
25065
25084
|
});
|
|
25066
25085
|
return c.value && O.forEach((Q) => {
|
|
25067
25086
|
const se = f(Q);
|
|
25068
|
-
se ? Q.name += ` (${
|
|
25087
|
+
se ? Q.name += ` (${zr(se, 2)} ${u.value})` : Q.name = "";
|
|
25069
25088
|
}), O.filter((Q) => Q.name !== "");
|
|
25070
|
-
}), v = V(n.value.coefficient), m = V(((
|
|
25089
|
+
}), v = V(n.value.coefficient), m = V(((L = (E = n.value) == null ? void 0 : E.value) == null ? void 0 : L.toString()) ?? null), y = V(null), w = F(() => g.value.find((z) => z.coefficient.slug === em.K0)), _ = V(void 0), C = (z) => Number.parseFloat((z ?? "").replaceAll(/[\s\u00A0\u202F]/g, "").replace(",", ".")), M = () => {
|
|
25071
25090
|
var O, N;
|
|
25072
25091
|
_.value = void 0;
|
|
25073
|
-
let
|
|
25074
|
-
if (
|
|
25092
|
+
let z = C(m.value);
|
|
25093
|
+
if (z = Number.isNaN(z) ? void 0 : z, c.value)
|
|
25075
25094
|
if (v.value || m.value) {
|
|
25076
|
-
const Q = s(), se = f(v.value ?? Q) ?? 0, oe = se + se * ((
|
|
25077
|
-
y.value = Je.formatMoney(oe, (O =
|
|
25095
|
+
const Q = s(), se = f(v.value ?? Q) ?? 0, oe = se + se * ((z ?? 0) / 100);
|
|
25096
|
+
y.value = Je.formatMoney(oe, (O = l.value) == null ? void 0 : O.currency.precision), oe > (h.value ?? oe) && (_.value = {
|
|
25078
25097
|
validationStatus: "warning",
|
|
25079
25098
|
feedback: "Устанавливается цена выше розничной цены"
|
|
25080
25099
|
}), w.value && oe < (((N = w.value) == null ? void 0 : N.cost) ?? 0) && (_.value = {
|
|
@@ -25084,16 +25103,16 @@ const i2 = {
|
|
|
25084
25103
|
} else
|
|
25085
25104
|
y.value = null;
|
|
25086
25105
|
i("update:value", {
|
|
25087
|
-
value: Number.isNaN(
|
|
25106
|
+
value: Number.isNaN(z) ? void 0 : z,
|
|
25088
25107
|
coefficient: r(v.value) ? void 0 : structuredClone(Bn(v.value))
|
|
25089
25108
|
});
|
|
25090
|
-
}, x = (
|
|
25091
|
-
ut(
|
|
25109
|
+
}, x = (z) => {
|
|
25110
|
+
ut(z) || qh(z) || (v.value = z, m.value = null, !v.value && m.value && (v.value = s()), M());
|
|
25092
25111
|
}, A = () => {
|
|
25093
25112
|
v.value || (v.value = s()), M();
|
|
25094
|
-
}, S = (
|
|
25113
|
+
}, S = (z) => {
|
|
25095
25114
|
var N, Q;
|
|
25096
|
-
const O = C(
|
|
25115
|
+
const O = C(z);
|
|
25097
25116
|
if (c.value) {
|
|
25098
25117
|
if (Number.isNaN(O)) {
|
|
25099
25118
|
v.value = void 0, m.value = null, i("update:value", {
|
|
@@ -25135,9 +25154,9 @@ const i2 = {
|
|
|
25135
25154
|
});
|
|
25136
25155
|
};
|
|
25137
25156
|
return lt(() => {
|
|
25138
|
-
var
|
|
25139
|
-
n.calculationType === al.m2Cost ? y.value = ((O = (
|
|
25140
|
-
}), (
|
|
25157
|
+
var z, O, N, Q;
|
|
25158
|
+
n.calculationType === al.m2Cost ? y.value = ((O = (z = n.value) == null ? void 0 : z.value) == null ? void 0 : O.toString()) ?? null : !((N = n.value) != null && N.coefficient) && ((Q = n.value) != null && Q.value) && (v.value = s()), M();
|
|
25159
|
+
}), (z, O) => {
|
|
25141
25160
|
var se, oe, q;
|
|
25142
25161
|
const N = Ii, Q = rf;
|
|
25143
25162
|
return b(), J(T(Ye), {
|
|
@@ -25314,7 +25333,7 @@ const i2 = {
|
|
|
25314
25333
|
}
|
|
25315
25334
|
}, E = () => {
|
|
25316
25335
|
o.value = null, c.value = void 0, h.value = null, y.value = m();
|
|
25317
|
-
},
|
|
25336
|
+
}, L = () => {
|
|
25318
25337
|
r.value = !1;
|
|
25319
25338
|
};
|
|
25320
25339
|
return e({
|
|
@@ -25342,7 +25361,7 @@ const i2 = {
|
|
|
25342
25361
|
/**
|
|
25343
25362
|
* Закрывает диалоговое окно.
|
|
25344
25363
|
*/
|
|
25345
|
-
closeDialog:
|
|
25364
|
+
closeDialog: L
|
|
25346
25365
|
}), (O, N) => {
|
|
25347
25366
|
var j;
|
|
25348
25367
|
const Q = Ye, se = Xm, oe = rf, q = Gn;
|
|
@@ -25354,7 +25373,7 @@ const i2 = {
|
|
|
25354
25373
|
processing: w.value,
|
|
25355
25374
|
"modal-width": 500,
|
|
25356
25375
|
onAccept: S,
|
|
25357
|
-
onClosing:
|
|
25376
|
+
onClosing: L
|
|
25358
25377
|
}, {
|
|
25359
25378
|
default: I(() => [
|
|
25360
25379
|
o.value && h.value ? Dn((b(), J(T(Ks), {
|
|
@@ -25383,7 +25402,7 @@ const i2 = {
|
|
|
25383
25402
|
placeholder: "Введите метраж",
|
|
25384
25403
|
class: "w-full",
|
|
25385
25404
|
onKeydown: N[1] || (N[1] = (ee) => T(Xl)(ee, ".", !1)),
|
|
25386
|
-
onInput: N[2] || (N[2] = (ee) => T(
|
|
25405
|
+
onInput: N[2] || (N[2] = (ee) => T(zt)(y.value, "length")),
|
|
25387
25406
|
onFocus: T(dt)
|
|
25388
25407
|
}, null, 8, ["value", "parse", "step", "onFocus"])
|
|
25389
25408
|
]),
|
|
@@ -25417,7 +25436,7 @@ const i2 = {
|
|
|
25417
25436
|
placeholder: "Введите количество",
|
|
25418
25437
|
class: "w-full",
|
|
25419
25438
|
onKeydown: N[4] || (N[4] = (ee) => T(Xl)(ee, ".", !1)),
|
|
25420
|
-
onInput: N[5] || (N[5] = (ee) => T(
|
|
25439
|
+
onInput: N[5] || (N[5] = (ee) => T(zt)(y.value, "quantity")),
|
|
25421
25440
|
onFocus: T(dt)
|
|
25422
25441
|
}, null, 8, ["value", "parse", "step", "show-button", "onFocus"]),
|
|
25423
25442
|
a.value ? (b(), J(se, {
|
|
@@ -25452,7 +25471,7 @@ const i2 = {
|
|
|
25452
25471
|
D(T(Ii), {
|
|
25453
25472
|
value: h.value.marker ?? null,
|
|
25454
25473
|
placeholder: "Введите маркировку",
|
|
25455
|
-
onInput: N[6] || (N[6] = (ee) => T(
|
|
25474
|
+
onInput: N[6] || (N[6] = (ee) => T(zt)(y.value, "marker")),
|
|
25456
25475
|
"onUpdate:value": N[7] || (N[7] = (ee) => p(ee)),
|
|
25457
25476
|
onFocus: T(dt)
|
|
25458
25477
|
}, null, 8, ["value", "onFocus"])
|
|
@@ -25493,8 +25512,8 @@ const i2 = {
|
|
|
25493
25512
|
}, E2 = { key: 0 }, O2 = {
|
|
25494
25513
|
key: 1,
|
|
25495
25514
|
class: "text-sm"
|
|
25496
|
-
},
|
|
25497
|
-
...
|
|
25515
|
+
}, L2 = {}, ga = /* @__PURE__ */ re({
|
|
25516
|
+
...L2,
|
|
25498
25517
|
__name: "client-name-with-short-info",
|
|
25499
25518
|
props: {
|
|
25500
25519
|
client: {},
|
|
@@ -25556,7 +25575,7 @@ const i2 = {
|
|
|
25556
25575
|
]);
|
|
25557
25576
|
};
|
|
25558
25577
|
}
|
|
25559
|
-
}),
|
|
25578
|
+
}), z2 = { class: "text-base" }, D2 = {}, N2 = /* @__PURE__ */ re({
|
|
25560
25579
|
...D2,
|
|
25561
25580
|
__name: "contragent-with-short-info",
|
|
25562
25581
|
props: {
|
|
@@ -25564,7 +25583,7 @@ const i2 = {
|
|
|
25564
25583
|
},
|
|
25565
25584
|
setup(t) {
|
|
25566
25585
|
const e = t, n = F(() => Zs.getFormatEntityName(e.contragent));
|
|
25567
|
-
return (i, s) => (b(), R("span",
|
|
25586
|
+
return (i, s) => (b(), R("span", z2, W(n.value), 1));
|
|
25568
25587
|
}
|
|
25569
25588
|
}), H2 = {
|
|
25570
25589
|
viewBox: "0 0 24 24",
|
|
@@ -25585,7 +25604,7 @@ function W2(t, e) {
|
|
|
25585
25604
|
], -1)
|
|
25586
25605
|
])]);
|
|
25587
25606
|
}
|
|
25588
|
-
const V2 =
|
|
25607
|
+
const V2 = Le({ name: "tabler-mail", render: W2 }), j2 = ["href"], q2 = {}, kR = /* @__PURE__ */ re({
|
|
25589
25608
|
...q2,
|
|
25590
25609
|
__name: "email",
|
|
25591
25610
|
props: {
|
|
@@ -25619,7 +25638,7 @@ function X2(t, e) {
|
|
|
25619
25638
|
}, null, -1)
|
|
25620
25639
|
])]);
|
|
25621
25640
|
}
|
|
25622
|
-
const kg =
|
|
25641
|
+
const kg = Le({ name: "fa6-brands-viber", render: X2 }), Y2 = {
|
|
25623
25642
|
viewBox: "0 0 256 258",
|
|
25624
25643
|
width: "1.2em",
|
|
25625
25644
|
height: "1.2em"
|
|
@@ -25674,7 +25693,7 @@ function J2(t, e) {
|
|
|
25674
25693
|
}, null, -1))
|
|
25675
25694
|
]);
|
|
25676
25695
|
}
|
|
25677
|
-
const Cg =
|
|
25696
|
+
const Cg = Le({ name: "logos-whatsapp-icon", render: J2, setup() {
|
|
25678
25697
|
const t = () => Math.random().toString(36).substr(2, 10);
|
|
25679
25698
|
return { idMap: { SVGBRLHCcSy: "uicons-" + t(), SVGHW6lecxh: "uicons-" + t() } };
|
|
25680
25699
|
} }), ek = {
|
|
@@ -25712,7 +25731,7 @@ function ik(t, e) {
|
|
|
25712
25731
|
}, null, -1))
|
|
25713
25732
|
]);
|
|
25714
25733
|
}
|
|
25715
|
-
const Sg =
|
|
25734
|
+
const Sg = Le({ name: "logos-telegram", render: ik, setup() {
|
|
25716
25735
|
return { idMap: { SVGuySfwdaH: "uicons-" + Math.random().toString(36).substr(2, 10) } };
|
|
25717
25736
|
} }), sk = {
|
|
25718
25737
|
viewBox: "0 0 512 512",
|
|
@@ -25727,7 +25746,7 @@ function rk(t, e) {
|
|
|
25727
25746
|
}, null, -1)
|
|
25728
25747
|
])]);
|
|
25729
25748
|
}
|
|
25730
|
-
const $g =
|
|
25749
|
+
const $g = Le({ name: "ion-call", render: rk }), ok = {
|
|
25731
25750
|
viewBox: "0 0 24 24",
|
|
25732
25751
|
width: "1.2em",
|
|
25733
25752
|
height: "1.2em"
|
|
@@ -25744,7 +25763,7 @@ function ak(t, e) {
|
|
|
25744
25763
|
}, null, -1)
|
|
25745
25764
|
])]);
|
|
25746
25765
|
}
|
|
25747
|
-
const lk =
|
|
25766
|
+
const lk = Le({ name: "tabler-phone-call", render: ak }), ck = {
|
|
25748
25767
|
key: 0,
|
|
25749
25768
|
class: "absolute left-0 top-0 flex w-full flex-row items-center justify-around text-center backdrop-blur-sm"
|
|
25750
25769
|
}, uk = ["href"], dk = ["href"], hk = ["href"], fk = ["href"], gk = {}, CR = /* @__PURE__ */ re({
|
|
@@ -25838,7 +25857,7 @@ function mk(t, e) {
|
|
|
25838
25857
|
}, null, -1)
|
|
25839
25858
|
])]);
|
|
25840
25859
|
}
|
|
25841
|
-
const vk =
|
|
25860
|
+
const vk = Le({ name: "mdi-envelope", render: mk }), yk = { class: "flex flex-col gap-1" }, bk = {
|
|
25842
25861
|
key: 0,
|
|
25843
25862
|
class: "mb-2 flex flex-col text-base"
|
|
25844
25863
|
}, _k = {
|
|
@@ -26063,20 +26082,20 @@ function Ek(t, e) {
|
|
|
26063
26082
|
}, null, -1)
|
|
26064
26083
|
])]);
|
|
26065
26084
|
}
|
|
26066
|
-
const Ok =
|
|
26085
|
+
const Ok = Le({ name: "mdi-dots-horizontal", render: Ek }), Lk = {
|
|
26067
26086
|
viewBox: "0 0 24 24",
|
|
26068
26087
|
width: "1.2em",
|
|
26069
26088
|
height: "1.2em"
|
|
26070
26089
|
};
|
|
26071
|
-
function
|
|
26072
|
-
return b(), R("svg",
|
|
26090
|
+
function zk(t, e) {
|
|
26091
|
+
return b(), R("svg", Lk, [...e[0] || (e[0] = [
|
|
26073
26092
|
k("path", {
|
|
26074
26093
|
fill: "currentColor",
|
|
26075
26094
|
d: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5A6.5 6.5 0 0 0 9.5 3A6.5 6.5 0 0 0 3 9.5A6.5 6.5 0 0 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5l1.5-1.5zm-6 0C7 14 5 12 5 9.5S7 5 9.5 5S14 7 14 9.5S12 14 9.5 14M7 9h5v1H7z"
|
|
26076
26095
|
}, null, -1)
|
|
26077
26096
|
])]);
|
|
26078
26097
|
}
|
|
26079
|
-
const Dk =
|
|
26098
|
+
const Dk = Le({ name: "mdi-magnify-minus-outline", render: zk }), Nk = {
|
|
26080
26099
|
viewBox: "0 0 24 24",
|
|
26081
26100
|
width: "1.2em",
|
|
26082
26101
|
height: "1.2em"
|
|
@@ -26089,7 +26108,7 @@ function Hk(t, e) {
|
|
|
26089
26108
|
}, null, -1)
|
|
26090
26109
|
])]);
|
|
26091
26110
|
}
|
|
26092
|
-
const Wk =
|
|
26111
|
+
const Wk = Le({ name: "mdi-magnify-plus-outline", render: Hk }), Vk = {
|
|
26093
26112
|
viewBox: "0 0 24 24",
|
|
26094
26113
|
width: "1.2em",
|
|
26095
26114
|
height: "1.2em"
|
|
@@ -26102,7 +26121,7 @@ function jk(t, e) {
|
|
|
26102
26121
|
}, null, -1)
|
|
26103
26122
|
])]);
|
|
26104
26123
|
}
|
|
26105
|
-
const Pg =
|
|
26124
|
+
const Pg = Le({ name: "mdi-chevron-right", render: jk }), qk = {
|
|
26106
26125
|
viewBox: "0 0 24 24",
|
|
26107
26126
|
width: "1.2em",
|
|
26108
26127
|
height: "1.2em"
|
|
@@ -26115,7 +26134,7 @@ function Uk(t, e) {
|
|
|
26115
26134
|
}, null, -1)
|
|
26116
26135
|
])]);
|
|
26117
26136
|
}
|
|
26118
|
-
const Tg =
|
|
26137
|
+
const Tg = Le({ name: "mdi-chevron-left", render: Uk }), Xk = {
|
|
26119
26138
|
heightMedium: "40px",
|
|
26120
26139
|
paddingMedium: "0 16px",
|
|
26121
26140
|
borderRadiusMedium: "10px",
|
|
@@ -26135,9 +26154,9 @@ const Tg = ze({ name: "mdi-chevron-left", render: Uk }), Xk = {
|
|
|
26135
26154
|
borderHover: "1px solid #9ca3af",
|
|
26136
26155
|
borderPressed: "1px solid #9ca3af",
|
|
26137
26156
|
borderFocus: "1px solid #9ca3af"
|
|
26138
|
-
}, Yd = "date-range.dialog.mode", Kd = "date-range.dialog.scale", Gd = "date-range.quick-periods", Rg = ["thisMonth", "lastMonth", "thisQuarter", "lastQuarter", "thisYear", "lastYear", "fromBeginningOfThisYear"], Fg = ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"], Yk = ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"], Kk = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], Mg = new Date(2e3, 0, 1), Bs = (t) =>
|
|
26157
|
+
}, Yd = "date-range.dialog.mode", Kd = "date-range.dialog.scale", Gd = "date-range.quick-periods", Rg = ["thisMonth", "lastMonth", "thisQuarter", "lastQuarter", "thisYear", "lastYear", "fromBeginningOfThisYear"], Fg = ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"], Yk = ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"], Kk = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], Mg = new Date(2e3, 0, 1), Bs = (t) => Em(t, Mg), Zd = (t) => Jh(Mg, t), Bg = (t, e, n) => {
|
|
26139
26158
|
let i = t ?? void 0, s = e ?? void 0;
|
|
26140
|
-
return i && s && i > s && (n != null && n.from ? s = i : n != null && n.to ? i = s : [i, s] = [s, i]), { from: i ?
|
|
26159
|
+
return i && s && i > s && (n != null && n.from ? s = i : n != null && n.to ? i = s : [i, s] = [s, i]), { from: i ? Qh(i) : void 0, to: s ? Zh(s) : void 0 };
|
|
26141
26160
|
}, pc = (t) => Object.entries(t).map(([e, n]) => ({ value: e, label: n.label, item: n })), Ag = (t, e) => {
|
|
26142
26161
|
const n = Object.entries(t).filter(([, i]) => i.group === e);
|
|
26143
26162
|
return e !== "other" ? [{ type: "group", key: e, children: pc(Object.fromEntries(n)) }] : nm.map((i) => {
|
|
@@ -26174,7 +26193,7 @@ const Tg = ze({ name: "mdi-chevron-left", render: Uk }), Xk = {
|
|
|
26174
26193
|
const v = a.value;
|
|
26175
26194
|
return !v || p < v[0] || p > v[1] ? null : p === v[0] || p === v[1] ? "bound" : "in-range";
|
|
26176
26195
|
};
|
|
26177
|
-
return
|
|
26196
|
+
return zn(() => {
|
|
26178
26197
|
globalThis.removeEventListener("pointerup", u);
|
|
26179
26198
|
}), { activeRange: a, cellPosition: f, pointerDownHandler: d, pointerEnterHandler: h, pointerLeaveHandler: g, selectHandler: c };
|
|
26180
26199
|
}, Gk = { class: "flex items-center justify-between gap-2" }, Zk = { class: "flex items-center gap-2" }, Qk = { class: "text-center font-semibold" }, Jk = { class: "grid grid-cols-7 gap-0.5 text-center text-xs text-gray-500" }, eC = { class: "grid grid-cols-7 gap-0.5" }, tC = ["disabled", "onPointerdown", "onPointerenter", "onKeydown"], nC = {}, iC = /* @__PURE__ */ re({
|
|
@@ -26191,25 +26210,25 @@ const Tg = ze({ name: "mdi-chevron-left", render: Uk }), Xk = {
|
|
|
26191
26210
|
"--sc-primary-color-hover": r.value.primaryColorHover,
|
|
26192
26211
|
"--sc-primary-color-suppl": r.value.primaryColorSuppl,
|
|
26193
26212
|
"--sc-hover-color": r.value.hoverColor
|
|
26194
|
-
})), a = xt.initRefDependingOnDeviceResolution(1, 2, 3), l = F(() => ["grid-cols-1", "grid-cols-2", "grid-cols-3"][a.value - 1]), c = (m) => wu(
|
|
26213
|
+
})), a = xt.initRefDependingOnDeviceResolution(1, 2, 3), l = F(() => ["grid-cols-1", "grid-cols-2", "grid-cols-3"][a.value - 1]), c = (m) => wu(Om(m), a.value === 3 ? 1 : 0), d = V(c(((m) => m && ni(m) ? m : /* @__PURE__ */ new Date())(n.from ?? n.to))), h = F(() => {
|
|
26195
26214
|
const { from: m, to: y } = n;
|
|
26196
26215
|
return !m || !y || !ni(m) || !ni(y) ? null : [Bs(m), Bs(y)];
|
|
26197
26216
|
}), g = Ig(h, (m, y) => {
|
|
26198
|
-
i("select", { from:
|
|
26217
|
+
i("select", { from: Qh(Zd(m)), to: Zh(Zd(y)) });
|
|
26199
26218
|
}), f = (m) => {
|
|
26200
|
-
const y =
|
|
26219
|
+
const y = Lm(m, (zm(m) + 6) % 7);
|
|
26201
26220
|
return _u(s, (w) => {
|
|
26202
|
-
const _ =
|
|
26221
|
+
const _ = Jh(y, w);
|
|
26203
26222
|
return {
|
|
26204
26223
|
index: Bs(_),
|
|
26205
26224
|
day: _.getDate(),
|
|
26206
|
-
isCurrentMonth:
|
|
26207
|
-
isToday:
|
|
26225
|
+
isCurrentMonth: Nm(_, m),
|
|
26226
|
+
isToday: Dm(_)
|
|
26208
26227
|
};
|
|
26209
26228
|
});
|
|
26210
26229
|
}, p = F(
|
|
26211
26230
|
() => _u(a.value, (m) => {
|
|
26212
|
-
const y =
|
|
26231
|
+
const y = ql(d.value, m);
|
|
26213
26232
|
return {
|
|
26214
26233
|
key: `${y.getFullYear()}-${y.getMonth()}`,
|
|
26215
26234
|
title: `${Yk[y.getMonth()]} ${y.getFullYear()}`,
|
|
@@ -26258,7 +26277,7 @@ const Tg = ze({ name: "mdi-chevron-left", render: Uk }), Xk = {
|
|
|
26258
26277
|
size: "small",
|
|
26259
26278
|
"aria-label": "Следующий месяц",
|
|
26260
26279
|
"theme-overrides": T(so),
|
|
26261
|
-
onClick: y[1] || (y[1] = (M) => d.value = T(
|
|
26280
|
+
onClick: y[1] || (y[1] = (M) => d.value = T(ql)(d.value, 1))
|
|
26262
26281
|
}, {
|
|
26263
26282
|
icon: I(() => [
|
|
26264
26283
|
D(C)
|
|
@@ -26294,7 +26313,7 @@ const Tg = ze({ name: "mdi-chevron-left", render: Uk }), Xk = {
|
|
|
26294
26313
|
])
|
|
26295
26314
|
]))), 128))
|
|
26296
26315
|
], 2),
|
|
26297
|
-
y[4] || (y[4] =
|
|
26316
|
+
y[4] || (y[4] = $m('<div class="flex flex-wrap items-center gap-x-6 gap-y-1 text-xs text-gray-700" data-v-a41e813d><span class="flex items-center gap-2" data-v-a41e813d><i class="sc-legend sc-legend--bound" data-v-a41e813d></i>Дата начала</span><span class="flex items-center gap-2" data-v-a41e813d><i class="sc-legend sc-legend--in-range" data-v-a41e813d></i>Выбранный период</span><span class="flex items-center gap-2" data-v-a41e813d><i class="sc-legend sc-legend--bound" data-v-a41e813d></i>Дата окончания</span></div>', 1))
|
|
26298
26317
|
], 36);
|
|
26299
26318
|
};
|
|
26300
26319
|
}
|
|
@@ -26321,7 +26340,7 @@ const Tg = ze({ name: "mdi-chevron-left", render: Uk }), Xk = {
|
|
|
26321
26340
|
}), d = Ig(u, (g, f) => {
|
|
26322
26341
|
i("select", {
|
|
26323
26342
|
from: new Date(Math.floor(g / 12), g % 12, 1),
|
|
26324
|
-
to:
|
|
26343
|
+
to: Hm(new Date(Math.floor(f / 12), f % 12, 1))
|
|
26325
26344
|
});
|
|
26326
26345
|
}), h = (g, f) => {
|
|
26327
26346
|
const p = d.cellPosition(g * 12 + f);
|
|
@@ -26489,7 +26508,7 @@ const Tg = ze({ name: "mdi-chevron-left", render: Uk }), Xk = {
|
|
|
26489
26508
|
}, f = (w, _) => {
|
|
26490
26509
|
const C = new Date(w, _, 1);
|
|
26491
26510
|
if (l.value = C, n.value && ni(n.value)) {
|
|
26492
|
-
const M = Math.min(
|
|
26511
|
+
const M = Math.min(Wm(n.value), Vm(C));
|
|
26493
26512
|
i("update:value", new Date(w, _, M));
|
|
26494
26513
|
return;
|
|
26495
26514
|
}
|
|
@@ -26498,7 +26517,7 @@ const Tg = ze({ name: "mdi-chevron-left", render: Uk }), Xk = {
|
|
|
26498
26517
|
return (M = r.value) == null ? void 0 : M.focus();
|
|
26499
26518
|
});
|
|
26500
26519
|
}, p = (w, _) => {
|
|
26501
|
-
l.value =
|
|
26520
|
+
l.value = Bc(ql(l.value, w), _);
|
|
26502
26521
|
}, v = (w) => {
|
|
26503
26522
|
f(w, l.value.getMonth());
|
|
26504
26523
|
}, m = (w) => {
|
|
@@ -26613,7 +26632,7 @@ function kC(t, e) {
|
|
|
26613
26632
|
}, null, -1)
|
|
26614
26633
|
])]);
|
|
26615
26634
|
}
|
|
26616
|
-
const CC =
|
|
26635
|
+
const CC = Le({ name: "mdi-calendar-month-outline", render: kC }), SC = {
|
|
26617
26636
|
viewBox: "0 0 24 24",
|
|
26618
26637
|
width: "1.2em",
|
|
26619
26638
|
height: "1.2em"
|
|
@@ -26626,7 +26645,7 @@ function $C(t, e) {
|
|
|
26626
26645
|
}, null, -1)
|
|
26627
26646
|
])]);
|
|
26628
26647
|
}
|
|
26629
|
-
const PC =
|
|
26648
|
+
const PC = Le({ name: "mdi-chart-line", render: $C }), TC = {
|
|
26630
26649
|
viewBox: "0 0 24 24",
|
|
26631
26650
|
width: "1.2em",
|
|
26632
26651
|
height: "1.2em"
|
|
@@ -26639,7 +26658,7 @@ function RC(t, e) {
|
|
|
26639
26658
|
}, null, -1)
|
|
26640
26659
|
])]);
|
|
26641
26660
|
}
|
|
26642
|
-
const FC =
|
|
26661
|
+
const FC = Le({ name: "mdi-chart-bar", render: RC }), MC = {
|
|
26643
26662
|
viewBox: "0 0 24 24",
|
|
26644
26663
|
width: "1.2em",
|
|
26645
26664
|
height: "1.2em"
|
|
@@ -26652,7 +26671,7 @@ function BC(t, e) {
|
|
|
26652
26671
|
}, null, -1)
|
|
26653
26672
|
])]);
|
|
26654
26673
|
}
|
|
26655
|
-
const AC =
|
|
26674
|
+
const AC = Le({ name: "mdi-calendar-week-outline", render: BC }), IC = {
|
|
26656
26675
|
viewBox: "0 0 24 24",
|
|
26657
26676
|
width: "1.2em",
|
|
26658
26677
|
height: "1.2em"
|
|
@@ -26665,20 +26684,20 @@ function EC(t, e) {
|
|
|
26665
26684
|
}, null, -1)
|
|
26666
26685
|
])]);
|
|
26667
26686
|
}
|
|
26668
|
-
const OC =
|
|
26687
|
+
const OC = Le({ name: "mdi-calendar-today-outline", render: EC }), LC = {
|
|
26669
26688
|
viewBox: "0 0 24 24",
|
|
26670
26689
|
width: "1.2em",
|
|
26671
26690
|
height: "1.2em"
|
|
26672
26691
|
};
|
|
26673
|
-
function
|
|
26674
|
-
return b(), R("svg",
|
|
26692
|
+
function zC(t, e) {
|
|
26693
|
+
return b(), R("svg", LC, [...e[0] || (e[0] = [
|
|
26675
26694
|
k("path", {
|
|
26676
26695
|
fill: "currentColor",
|
|
26677
26696
|
d: "M12 8a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 2a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2m-2 12c-.25 0-.46-.18-.5-.42l-.37-2.65c-.63-.25-1.17-.59-1.69-.99l-2.49 1.01c-.22.08-.49 0-.61-.22l-2-3.46a.493.493 0 0 1 .12-.64l2.11-1.66L4.5 12l.07-1l-2.11-1.63a.493.493 0 0 1-.12-.64l2-3.46c.12-.22.39-.31.61-.22l2.49 1c.52-.39 1.06-.73 1.69-.98l.37-2.65c.04-.24.25-.42.5-.42h4c.25 0 .46.18.5.42l.37 2.65c.63.25 1.17.59 1.69.98l2.49-1c.22-.09.49 0 .61.22l2 3.46c.13.22.07.49-.12.64L19.43 11l.07 1l-.07 1l2.11 1.63c.19.15.25.42.12.64l-2 3.46c-.12.22-.39.31-.61.22l-2.49-1c-.52.39-1.06.73-1.69.98l-.37 2.65c-.04.24-.25.42-.5.42zm1.25-18l-.37 2.61c-1.2.25-2.26.89-3.03 1.78L5.44 7.35l-.75 1.3L6.8 10.2a5.55 5.55 0 0 0 0 3.6l-2.12 1.56l.75 1.3l2.43-1.04c.77.88 1.82 1.52 3.01 1.76l.37 2.62h1.52l.37-2.61c1.19-.25 2.24-.89 3.01-1.77l2.43 1.04l.75-1.3l-2.12-1.55c.4-1.17.4-2.44 0-3.61l2.11-1.55l-.75-1.3l-2.41 1.04a5.42 5.42 0 0 0-3.03-1.77L12.75 4z"
|
|
26678
26697
|
}, null, -1)
|
|
26679
26698
|
])]);
|
|
26680
26699
|
}
|
|
26681
|
-
const DC =
|
|
26700
|
+
const DC = Le({ name: "mdi-cog-outline", render: zC }), NC = { class: "grid gap-x-6 gap-y-4 pr-3 sm:grid-cols-2" }, HC = { class: "font-medium" }, WC = {
|
|
26682
26701
|
key: 0,
|
|
26683
26702
|
class: "pt-1 text-xs text-gray-500"
|
|
26684
26703
|
}, VC = { class: "flex flex-col items-stretch justify-between gap-2 sm:flex-row sm:items-center" }, jC = { class: "flex items-center gap-3" }, qC = { class: "text-sm text-gray-600" }, UC = { class: "flex gap-2" }, XC = {}, YC = /* @__PURE__ */ re({
|
|
@@ -26834,7 +26853,7 @@ const DC = ze({ name: "mdi-cog-outline", render: LC }), NC = { class: "grid gap-
|
|
|
26834
26853
|
}), u = (d) => {
|
|
26835
26854
|
o.value = d;
|
|
26836
26855
|
const h = Gd;
|
|
26837
|
-
jr.saveActualDataToStorage(h, d,
|
|
26856
|
+
jr.saveActualDataToStorage(h, d, Bc(ef(), 1));
|
|
26838
26857
|
};
|
|
26839
26858
|
return (d, h) => {
|
|
26840
26859
|
const g = DC, f = Ee, p = OC, v = AC, m = FC, y = PC, w = CC, _ = Rr;
|
|
@@ -26978,11 +26997,11 @@ const DC = ze({ name: "mdi-cog-outline", render: LC }), NC = { class: "grid gap-
|
|
|
26978
26997
|
emits: ["update:show", "select"],
|
|
26979
26998
|
setup(t, { emit: e }) {
|
|
26980
26999
|
const n = t, i = e, s = xt.initRefDependingOnDeviceResolution("100%", "90%", "48rem"), r = V("custom"), o = V("months"), a = F(() => o.value === "months" ? "Показать по дням" : "Показать по месяцам"), l = () => jr.getActualDataFromStorage(Yd) === "standard" ? "standard" : "custom", c = () => jr.getActualDataFromStorage(Kd) === "days" ? "days" : "months", u = (S, E) => {
|
|
26981
|
-
jr.saveActualDataToStorage(S, E,
|
|
27000
|
+
jr.saveActualDataToStorage(S, E, Bc(ef(), 1));
|
|
26982
27001
|
}, d = V({}), h = V(null), g = V(null), f = F(() => h.value ?? d.value), p = (S, E) => {
|
|
26983
27002
|
var O, N;
|
|
26984
|
-
const
|
|
26985
|
-
h.value = null, d.value = Bg(
|
|
27003
|
+
const L = (O = n.disabled) != null && O.from ? d.value.from : S, z = (N = n.disabled) != null && N.to ? d.value.to : E;
|
|
27004
|
+
h.value = null, d.value = Bg(L, z, n.disabled);
|
|
26986
27005
|
}, v = (S) => {
|
|
26987
27006
|
g.value = null, p(S, d.value.to);
|
|
26988
27007
|
}, m = (S) => {
|
|
@@ -27010,7 +27029,7 @@ const DC = ze({ name: "mdi-cog-outline", render: LC }), NC = { class: "grid gap-
|
|
|
27010
27029
|
S && (r.value = l(), o.value = c(), g.value = null, h.value = null, d.value = { ...n.dateRange });
|
|
27011
27030
|
}
|
|
27012
27031
|
), (S, E) => {
|
|
27013
|
-
const
|
|
27032
|
+
const L = Ee, z = Wk, O = Dk, N = Tr, Q = co;
|
|
27014
27033
|
return b(), J(Q, {
|
|
27015
27034
|
show: t.show,
|
|
27016
27035
|
preset: "card",
|
|
@@ -27022,7 +27041,7 @@ const DC = ze({ name: "mdi-cog-outline", render: LC }), NC = { class: "grid gap-
|
|
|
27022
27041
|
}, {
|
|
27023
27042
|
footer: I(() => [
|
|
27024
27043
|
k("div", dS, [
|
|
27025
|
-
D(
|
|
27044
|
+
D(L, {
|
|
27026
27045
|
text: "",
|
|
27027
27046
|
type: "info",
|
|
27028
27047
|
onClick: M
|
|
@@ -27033,7 +27052,7 @@ const DC = ze({ name: "mdi-cog-outline", render: LC }), NC = { class: "grid gap-
|
|
|
27033
27052
|
_: 1
|
|
27034
27053
|
}),
|
|
27035
27054
|
k("div", hS, [
|
|
27036
|
-
D(
|
|
27055
|
+
D(L, {
|
|
27037
27056
|
type: "primary",
|
|
27038
27057
|
onClick: A
|
|
27039
27058
|
}, {
|
|
@@ -27042,7 +27061,7 @@ const DC = ze({ name: "mdi-cog-outline", render: LC }), NC = { class: "grid gap-
|
|
|
27042
27061
|
])]),
|
|
27043
27062
|
_: 1
|
|
27044
27063
|
}),
|
|
27045
|
-
D(
|
|
27064
|
+
D(L, {
|
|
27046
27065
|
onClick: E[0] || (E[0] = (se) => i("update:show", !1))
|
|
27047
27066
|
}, {
|
|
27048
27067
|
default: I(() => [...E[4] || (E[4] = [
|
|
@@ -27073,7 +27092,7 @@ const DC = ze({ name: "mdi-cog-outline", render: LC }), NC = { class: "grid gap-
|
|
|
27073
27092
|
"onUpdate:from": v,
|
|
27074
27093
|
"onUpdate:to": m
|
|
27075
27094
|
}, null, 8, ["from", "to", "clearable", "disabled", "date-format"]),
|
|
27076
|
-
t.clearable ? (b(), J(
|
|
27095
|
+
t.clearable ? (b(), J(L, {
|
|
27077
27096
|
key: 0,
|
|
27078
27097
|
text: "",
|
|
27079
27098
|
type: "info",
|
|
@@ -27087,7 +27106,7 @@ const DC = ze({ name: "mdi-cog-outline", render: LC }), NC = { class: "grid gap-
|
|
|
27087
27106
|
})) : H("", !0)
|
|
27088
27107
|
]),
|
|
27089
27108
|
r.value === "custom" ? (b(), R("div", uS, [
|
|
27090
|
-
(b(), J(
|
|
27109
|
+
(b(), J(Pm(o.value === "months" ? hC : sC), {
|
|
27091
27110
|
from: d.value.from,
|
|
27092
27111
|
to: d.value.to,
|
|
27093
27112
|
onSelect: w
|
|
@@ -27098,14 +27117,14 @@ const DC = ze({ name: "mdi-cog-outline", render: LC }), NC = { class: "grid gap-
|
|
|
27098
27117
|
trigger: "hover"
|
|
27099
27118
|
}, {
|
|
27100
27119
|
trigger: I(() => [
|
|
27101
|
-
D(
|
|
27120
|
+
D(L, {
|
|
27102
27121
|
size: "small",
|
|
27103
27122
|
"aria-label": a.value,
|
|
27104
27123
|
"theme-overrides": T(so),
|
|
27105
27124
|
onClick: x
|
|
27106
27125
|
}, {
|
|
27107
27126
|
icon: I(() => [
|
|
27108
|
-
o.value === "months" ? (b(), J(
|
|
27127
|
+
o.value === "months" ? (b(), J(z, { key: 0 })) : (b(), J(O, { key: 1 }))
|
|
27109
27128
|
]),
|
|
27110
27129
|
_: 1
|
|
27111
27130
|
}, 8, ["aria-label", "theme-overrides"])
|
|
@@ -27256,7 +27275,7 @@ const DC = ze({ name: "mdi-cog-outline", render: LC }), NC = { class: "grid gap-
|
|
|
27256
27275
|
emits: ["close"],
|
|
27257
27276
|
setup(t) {
|
|
27258
27277
|
return (e, n) => {
|
|
27259
|
-
const i =
|
|
27278
|
+
const i = za, s = Ee, r = Ai;
|
|
27260
27279
|
return b(), R("div", _S, [
|
|
27261
27280
|
k("div", wS, [
|
|
27262
27281
|
Pe(e.$slots, "main")
|
|
@@ -27309,7 +27328,7 @@ function $S(t, e) {
|
|
|
27309
27328
|
}, null, -1)
|
|
27310
27329
|
])]);
|
|
27311
27330
|
}
|
|
27312
|
-
const PS =
|
|
27331
|
+
const PS = Le({ name: "ion-checkmark-done-sharp", render: $S }), TS = {
|
|
27313
27332
|
viewBox: "0 0 512 512",
|
|
27314
27333
|
width: "1.2em",
|
|
27315
27334
|
height: "1.2em"
|
|
@@ -27356,7 +27375,7 @@ function RS(t, e) {
|
|
|
27356
27375
|
}, null, -1)
|
|
27357
27376
|
])]);
|
|
27358
27377
|
}
|
|
27359
|
-
const FS =
|
|
27378
|
+
const FS = Le({ name: "ion-options-outline", render: RS }), MS = { class: "flex flex-row gap-x-2.5 p-0 sm:p-1" }, BS = { class: "flex-auto" }, AS = { class: "sticky top-0 flex flex-none flex-col justify-start gap-y-1 sm:flex-row sm:justify-start sm:gap-x-1 sm:gap-y-0" }, IS = { class: "flex flex-none flex-col-reverse justify-end gap-y-1 sm:flex-row sm:justify-start sm:gap-x-1 sm:gap-y-0" }, ES = {}, Jd = /* @__PURE__ */ re({
|
|
27360
27379
|
...ES,
|
|
27361
27380
|
__name: "inline-view",
|
|
27362
27381
|
props: {
|
|
@@ -27377,7 +27396,7 @@ const FS = ze({ name: "ion-options-outline", render: RS }), MS = { class: "flex
|
|
|
27377
27396
|
n("cancel", r);
|
|
27378
27397
|
};
|
|
27379
27398
|
return (l, c) => {
|
|
27380
|
-
const u = FS, d = Ee, h = Ai, g = PS, f =
|
|
27399
|
+
const u = FS, d = Ee, h = Ai, g = PS, f = za;
|
|
27381
27400
|
return b(), R("div", MS, [
|
|
27382
27401
|
k("div", BS, [
|
|
27383
27402
|
Pe(l.$slots, "default")
|
|
@@ -27460,7 +27479,7 @@ const FS = ze({ name: "ion-options-outline", render: RS }), MS = { class: "flex
|
|
|
27460
27479
|
]);
|
|
27461
27480
|
};
|
|
27462
27481
|
}
|
|
27463
|
-
}), OS = {},
|
|
27482
|
+
}), OS = {}, LS = /* @__PURE__ */ re({
|
|
27464
27483
|
...OS,
|
|
27465
27484
|
__name: "inline-editable-item",
|
|
27466
27485
|
props: {
|
|
@@ -27516,7 +27535,7 @@ const FS = ze({ name: "ion-options-outline", render: RS }), MS = { class: "flex
|
|
|
27516
27535
|
}, 8, ["disabled", "show-edit-button"]))
|
|
27517
27536
|
]));
|
|
27518
27537
|
}
|
|
27519
|
-
}),
|
|
27538
|
+
}), zS = {
|
|
27520
27539
|
key: 0,
|
|
27521
27540
|
class: "whitespace-pre-line"
|
|
27522
27541
|
}, DS = {
|
|
@@ -27545,14 +27564,14 @@ const FS = ze({ name: "ion-options-outline", render: RS }), MS = { class: "flex
|
|
|
27545
27564
|
};
|
|
27546
27565
|
return (a, l) => {
|
|
27547
27566
|
const c = Ii;
|
|
27548
|
-
return b(), J(
|
|
27567
|
+
return b(), J(LS, {
|
|
27549
27568
|
disabled: t.disabled,
|
|
27550
27569
|
"onEditor:apply": r,
|
|
27551
27570
|
"onEditor:cancel": o
|
|
27552
27571
|
}, {
|
|
27553
27572
|
viewer: I(() => [
|
|
27554
27573
|
k("div", null, [
|
|
27555
|
-
t.comment ? (b(), R("span",
|
|
27574
|
+
t.comment ? (b(), R("span", zS, W(t.comment), 1)) : (b(), R("span", DS, " - Комментарий отсутствует - "))
|
|
27556
27575
|
])
|
|
27557
27576
|
]),
|
|
27558
27577
|
editor: I(() => [
|
|
@@ -27592,7 +27611,7 @@ function WS(t, e) {
|
|
|
27592
27611
|
}, null, -1)
|
|
27593
27612
|
])]);
|
|
27594
27613
|
}
|
|
27595
|
-
const VS =
|
|
27614
|
+
const VS = Le({ name: "ion-download-outline", render: WS }), jS = {}, BR = /* @__PURE__ */ re({
|
|
27596
27615
|
...jS,
|
|
27597
27616
|
__name: "single-file-upload-selector",
|
|
27598
27617
|
props: {
|
|
@@ -27661,7 +27680,7 @@ function US(t, e) {
|
|
|
27661
27680
|
}, null, -1)
|
|
27662
27681
|
])]);
|
|
27663
27682
|
}
|
|
27664
|
-
const XS =
|
|
27683
|
+
const XS = Le({ name: "ion-warning", render: US }), YS = {}, AR = /* @__PURE__ */ re({
|
|
27665
27684
|
...YS,
|
|
27666
27685
|
__name: "warning-icon",
|
|
27667
27686
|
props: {
|
|
@@ -27860,7 +27879,7 @@ const XS = ze({ name: "ion-warning", render: US }), YS = {}, AR = /* @__PURE__ *
|
|
|
27860
27879
|
class: "tel-input"
|
|
27861
27880
|
}, null, 8, ["modelValue", "default-country", "disabled", "input-options", "preferred-countries", "only-countries"]));
|
|
27862
27881
|
}
|
|
27863
|
-
}), OR = /* @__PURE__ */ mi(QS, [["__scopeId", "data-v-751dbb0e"]]), JS = { class: "mb-7 grid grid-cols-2 gap-3.5 lg:grid-cols-4" }, e5 = { class: "mb-2 text-[11.5px] font-semibold uppercase text-gray-500" }, t5 = {},
|
|
27882
|
+
}), OR = /* @__PURE__ */ mi(QS, [["__scopeId", "data-v-751dbb0e"]]), JS = { class: "mb-7 grid grid-cols-2 gap-3.5 lg:grid-cols-4" }, e5 = { class: "mb-2 text-[11.5px] font-semibold uppercase text-gray-500" }, t5 = {}, LR = /* @__PURE__ */ re({
|
|
27864
27883
|
...t5,
|
|
27865
27884
|
__name: "kpi-grid",
|
|
27866
27885
|
props: {
|
|
@@ -27900,7 +27919,7 @@ function i5(t, e) {
|
|
|
27900
27919
|
}, null, -1)
|
|
27901
27920
|
])]);
|
|
27902
27921
|
}
|
|
27903
|
-
const s5 =
|
|
27922
|
+
const s5 = Le({ name: "tabler-external-link", render: i5 }), r5 = { class: "flex flex-row gap-1 hover:underline hover:decoration-dashed" }, o5 = ["href"], a5 = {}, zR = /* @__PURE__ */ re({
|
|
27904
27923
|
...a5,
|
|
27905
27924
|
__name: "external-link",
|
|
27906
27925
|
props: {
|
|
@@ -28000,13 +28019,13 @@ function h5(t, e) {
|
|
|
28000
28019
|
}, null, -1)
|
|
28001
28020
|
])]);
|
|
28002
28021
|
}
|
|
28003
|
-
const f5 =
|
|
28022
|
+
const f5 = Le({ name: "ion-remove-circle-outline", render: h5 });
|
|
28004
28023
|
let pa = [];
|
|
28005
28024
|
const Og = /* @__PURE__ */ new WeakMap();
|
|
28006
28025
|
function g5() {
|
|
28007
28026
|
pa.forEach((t) => t(...Og.get(t))), pa = [];
|
|
28008
28027
|
}
|
|
28009
|
-
function
|
|
28028
|
+
function Lg(t, ...e) {
|
|
28010
28029
|
Og.set(t, e), !pa.includes(t) && pa.push(t) === 1 && requestAnimationFrame(g5);
|
|
28011
28030
|
}
|
|
28012
28031
|
function Xr(t, e) {
|
|
@@ -28211,7 +28230,7 @@ function m5(t, e, n) {
|
|
|
28211
28230
|
let i = e * Math.min(n, 1 - n), s = (r, o = (r + t / 30) % 12) => n - i * Math.max(Math.min(o - 3, 9 - o, 1), -1);
|
|
28212
28231
|
return [s(0) * 255, s(8) * 255, s(4) * 255];
|
|
28213
28232
|
}
|
|
28214
|
-
const Ei = "^\\s*", Oi = "\\s*$", ys = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*", Xn = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*", As = "([0-9A-Fa-f])", Is = "([0-9A-Fa-f]{2})",
|
|
28233
|
+
const Ei = "^\\s*", Oi = "\\s*$", ys = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*", Xn = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*", As = "([0-9A-Fa-f])", Is = "([0-9A-Fa-f]{2})", zg = new RegExp(`${Ei}hsl\\s*\\(${Xn},${ys},${ys}\\)${Oi}`), Dg = new RegExp(`${Ei}hsv\\s*\\(${Xn},${ys},${ys}\\)${Oi}`), Ng = new RegExp(`${Ei}hsla\\s*\\(${Xn},${ys},${ys},${Xn}\\)${Oi}`), Hg = new RegExp(`${Ei}hsva\\s*\\(${Xn},${ys},${ys},${Xn}\\)${Oi}`), v5 = new RegExp(`${Ei}rgb\\s*\\(${Xn},${Xn},${Xn}\\)${Oi}`), y5 = new RegExp(`${Ei}rgba\\s*\\(${Xn},${Xn},${Xn},${Xn}\\)${Oi}`), b5 = new RegExp(`${Ei}#${As}${As}${As}${Oi}`), _5 = new RegExp(`${Ei}#${Is}${Is}${Is}${Oi}`), w5 = new RegExp(`${Ei}#${As}${As}${As}${As}${Oi}`), x5 = new RegExp(`${Ei}#${Is}${Is}${Is}${Is}${Oi}`);
|
|
28215
28234
|
function Pn(t) {
|
|
28216
28235
|
return parseInt(t, 16);
|
|
28217
28236
|
}
|
|
@@ -28223,9 +28242,9 @@ function k5(t) {
|
|
|
28223
28242
|
ma(e[1]),
|
|
28224
28243
|
ds(e[5]),
|
|
28225
28244
|
ds(e[9]),
|
|
28226
|
-
|
|
28245
|
+
zs(e[13])
|
|
28227
28246
|
];
|
|
28228
|
-
if (e =
|
|
28247
|
+
if (e = zg.exec(t))
|
|
28229
28248
|
return [ma(e[1]), ds(e[5]), ds(e[9]), 1];
|
|
28230
28249
|
throw new Error(`[seemly/hsla]: Invalid color value ${t}.`);
|
|
28231
28250
|
} catch (e) {
|
|
@@ -28240,7 +28259,7 @@ function C5(t) {
|
|
|
28240
28259
|
ma(e[1]),
|
|
28241
28260
|
ds(e[5]),
|
|
28242
28261
|
ds(e[9]),
|
|
28243
|
-
|
|
28262
|
+
zs(e[13])
|
|
28244
28263
|
];
|
|
28245
28264
|
if (e = Dg.exec(t))
|
|
28246
28265
|
return [ma(e[1]), ds(e[5]), ds(e[9]), 1];
|
|
@@ -28261,7 +28280,7 @@ function Ys(t) {
|
|
|
28261
28280
|
hn(e[1]),
|
|
28262
28281
|
hn(e[5]),
|
|
28263
28282
|
hn(e[9]),
|
|
28264
|
-
|
|
28283
|
+
zs(e[13])
|
|
28265
28284
|
];
|
|
28266
28285
|
if (e = b5.exec(t))
|
|
28267
28286
|
return [
|
|
@@ -28275,18 +28294,18 @@ function Ys(t) {
|
|
|
28275
28294
|
Pn(e[1]),
|
|
28276
28295
|
Pn(e[2]),
|
|
28277
28296
|
Pn(e[3]),
|
|
28278
|
-
|
|
28297
|
+
zs(Pn(e[4]) / 255)
|
|
28279
28298
|
];
|
|
28280
28299
|
if (e = w5.exec(t))
|
|
28281
28300
|
return [
|
|
28282
28301
|
Pn(e[1] + e[1]),
|
|
28283
28302
|
Pn(e[2] + e[2]),
|
|
28284
28303
|
Pn(e[3] + e[3]),
|
|
28285
|
-
|
|
28304
|
+
zs(Pn(e[4] + e[4]) / 255)
|
|
28286
28305
|
];
|
|
28287
28306
|
if (t in eh)
|
|
28288
28307
|
return Ys(eh[t]);
|
|
28289
|
-
if (
|
|
28308
|
+
if (zg.test(t) || Ng.test(t)) {
|
|
28290
28309
|
const [n, i, s, r] = k5(t);
|
|
28291
28310
|
return [...m5(n, i, s), r];
|
|
28292
28311
|
} else if (Dg.test(t) || Hg.test(t)) {
|
|
@@ -28309,7 +28328,7 @@ function kl(t, e, n, i, s) {
|
|
|
28309
28328
|
}
|
|
28310
28329
|
function $5(t, e) {
|
|
28311
28330
|
Array.isArray(t) || (t = Ys(t)), Array.isArray(e) || (e = Ys(e));
|
|
28312
|
-
const n = t[3], i = e[3], s =
|
|
28331
|
+
const n = t[3], i = e[3], s = zs(n + i - n * i);
|
|
28313
28332
|
return vc(kl(t[0], n, e[0], i, s), kl(t[1], n, e[1], i, s), kl(t[2], n, e[2], i, s), s);
|
|
28314
28333
|
}
|
|
28315
28334
|
function st(t, e) {
|
|
@@ -28320,7 +28339,7 @@ function Mo(t, e) {
|
|
|
28320
28339
|
const [n, i, s, r = 1] = Array.isArray(t) ? t : Ys(t), { lightness: o = 1, alpha: a = 1 } = e;
|
|
28321
28340
|
return P5([n * o, i * o, s * o, r * a]);
|
|
28322
28341
|
}
|
|
28323
|
-
function
|
|
28342
|
+
function zs(t) {
|
|
28324
28343
|
const e = Math.round(Number(t) * 100) / 100;
|
|
28325
28344
|
return e > 1 ? 1 : e < 0 ? 0 : e;
|
|
28326
28345
|
}
|
|
@@ -28338,7 +28357,7 @@ function ds(t) {
|
|
|
28338
28357
|
}
|
|
28339
28358
|
function P5(t) {
|
|
28340
28359
|
const [e, n, i] = t;
|
|
28341
|
-
return 3 in t ? `rgba(${hn(e)}, ${hn(n)}, ${hn(i)}, ${
|
|
28360
|
+
return 3 in t ? `rgba(${hn(e)}, ${hn(n)}, ${hn(i)}, ${zs(t[3])})` : `rgba(${hn(e)}, ${hn(n)}, ${hn(i)}, 1)`;
|
|
28342
28361
|
}
|
|
28343
28362
|
function T5(t = 8) {
|
|
28344
28363
|
return Math.random().toString(16).slice(2, 2 + t);
|
|
@@ -28387,7 +28406,7 @@ function E5(t) {
|
|
|
28387
28406
|
function O5(t, e) {
|
|
28388
28407
|
return t.isLeaf === !1 && !Array.isArray(e(t));
|
|
28389
28408
|
}
|
|
28390
|
-
function
|
|
28409
|
+
function L5(t, e) {
|
|
28391
28410
|
if (t.isLeaf === !0) {
|
|
28392
28411
|
const n = e(t);
|
|
28393
28412
|
if (Array.isArray(n) && n.length > 0)
|
|
@@ -28403,7 +28422,7 @@ function Sl(t) {
|
|
|
28403
28422
|
var e;
|
|
28404
28423
|
return t == null || Array.isArray(t) ? [] : (e = t.indeterminateKeys) !== null && e !== void 0 ? e : [];
|
|
28405
28424
|
}
|
|
28406
|
-
function
|
|
28425
|
+
function z5(t, e) {
|
|
28407
28426
|
const n = new Set(t);
|
|
28408
28427
|
return e.forEach((i) => {
|
|
28409
28428
|
n.has(i) || n.add(i);
|
|
@@ -28456,7 +28475,7 @@ function $l(t, e) {
|
|
|
28456
28475
|
const { checkedKeys: n, keysToCheck: i, keysToUncheck: s, indeterminateKeys: r, cascade: o, leafOnly: a, checkStrategy: l, allowNotLoaded: c } = t;
|
|
28457
28476
|
if (!o)
|
|
28458
28477
|
return i !== void 0 ? {
|
|
28459
|
-
checkedKeys:
|
|
28478
|
+
checkedKeys: z5(n, i),
|
|
28460
28479
|
indeterminateKeys: Array.from(r)
|
|
28461
28480
|
} : s !== void 0 ? {
|
|
28462
28481
|
checkedKeys: D5(n, s),
|
|
@@ -28481,11 +28500,11 @@ function $l(t, e) {
|
|
|
28481
28500
|
continue;
|
|
28482
28501
|
let x = !0, A = !1, S = !0;
|
|
28483
28502
|
for (const E of _.children) {
|
|
28484
|
-
const
|
|
28503
|
+
const L = E.key;
|
|
28485
28504
|
if (!E.disabled) {
|
|
28486
|
-
if (S && (S = !1), f.has(
|
|
28505
|
+
if (S && (S = !1), f.has(L))
|
|
28487
28506
|
A = !0;
|
|
28488
|
-
else if (p.has(
|
|
28507
|
+
else if (p.has(L)) {
|
|
28489
28508
|
A = !0, x = !1;
|
|
28490
28509
|
break;
|
|
28491
28510
|
} else if (x = !1, A)
|
|
@@ -28641,7 +28660,7 @@ function Vg(t, e, n, i, s, r = null, o = 0) {
|
|
|
28641
28660
|
const a = [];
|
|
28642
28661
|
return t.forEach((l, c) => {
|
|
28643
28662
|
var u;
|
|
28644
|
-
e3.NODE_ENV !== "production" &&
|
|
28663
|
+
e3.NODE_ENV !== "production" && L5(l, s) && console.error("[treemate]: node", l, "is invalid");
|
|
28645
28664
|
const d = Object.create(i);
|
|
28646
28665
|
if (d.rawNode = l, d.siblings = a, d.level = o, d.index = c, d.isFirstChild = c === 0, d.isLastChild = c + 1 === t.length, d.parent = r, !d.ignored) {
|
|
28647
28666
|
const h = s(l);
|
|
@@ -28869,11 +28888,11 @@ function o3() {
|
|
|
28869
28888
|
}, d = {};
|
|
28870
28889
|
function h() {
|
|
28871
28890
|
const x = function(A) {
|
|
28872
|
-
const { type: S, eventPhase: E, bubbles:
|
|
28891
|
+
const { type: S, eventPhase: E, bubbles: L } = A, z = qo(A);
|
|
28873
28892
|
if (E === 2)
|
|
28874
28893
|
return;
|
|
28875
28894
|
const O = E === 1 ? "capture" : "bubble";
|
|
28876
|
-
let N =
|
|
28895
|
+
let N = z;
|
|
28877
28896
|
const Q = [];
|
|
28878
28897
|
for (; N === null && (N = window), Q.push(N), N !== window; )
|
|
28879
28898
|
N = N.parentNode || null;
|
|
@@ -28891,7 +28910,7 @@ function o3() {
|
|
|
28891
28910
|
K(A);
|
|
28892
28911
|
}
|
|
28893
28912
|
}
|
|
28894
|
-
if (q === 0 && !
|
|
28913
|
+
if (q === 0 && !L && oe !== void 0) {
|
|
28895
28914
|
const K = oe.get(j);
|
|
28896
28915
|
if (K !== void 0)
|
|
28897
28916
|
for (const B of K) {
|
|
@@ -28925,8 +28944,8 @@ function o3() {
|
|
|
28925
28944
|
const { type: S, eventPhase: E } = A;
|
|
28926
28945
|
if (E !== 2)
|
|
28927
28946
|
return;
|
|
28928
|
-
const
|
|
28929
|
-
|
|
28947
|
+
const L = d[S];
|
|
28948
|
+
L !== void 0 && L.forEach((z) => z(A));
|
|
28930
28949
|
};
|
|
28931
28950
|
return x.displayName = "evtdUnifiedWindowEventHandler", x;
|
|
28932
28951
|
}
|
|
@@ -28943,10 +28962,10 @@ function o3() {
|
|
|
28943
28962
|
return S === void 0 && x.set(A, S = /* @__PURE__ */ new Set()), S;
|
|
28944
28963
|
}
|
|
28945
28964
|
function w(x, A, S, E) {
|
|
28946
|
-
const
|
|
28947
|
-
if (
|
|
28948
|
-
const
|
|
28949
|
-
if (
|
|
28965
|
+
const L = u[A][S];
|
|
28966
|
+
if (L !== void 0) {
|
|
28967
|
+
const z = L.get(x);
|
|
28968
|
+
if (z !== void 0 && z.has(E))
|
|
28950
28969
|
return !0;
|
|
28951
28970
|
}
|
|
28952
28971
|
return !1;
|
|
@@ -28956,22 +28975,22 @@ function o3() {
|
|
|
28956
28975
|
return !!(S !== void 0 && S.has(A));
|
|
28957
28976
|
}
|
|
28958
28977
|
function C(x, A, S, E) {
|
|
28959
|
-
let
|
|
28960
|
-
if (typeof E == "object" && E.once === !0 ?
|
|
28961
|
-
M(x, A,
|
|
28962
|
-
} :
|
|
28978
|
+
let L;
|
|
28979
|
+
if (typeof E == "object" && E.once === !0 ? L = (se) => {
|
|
28980
|
+
M(x, A, L, E), S(se);
|
|
28981
|
+
} : L = S, s3(x, A, L, E))
|
|
28963
28982
|
return;
|
|
28964
28983
|
const O = E === !0 || typeof E == "object" && E.capture === !0 ? "capture" : "bubble", N = v(O, x), Q = y(N, A);
|
|
28965
|
-
if (Q.has(
|
|
28984
|
+
if (Q.has(L) || Q.add(L), A === window) {
|
|
28966
28985
|
const se = m(x);
|
|
28967
|
-
se.has(
|
|
28986
|
+
se.has(L) || se.add(L);
|
|
28968
28987
|
}
|
|
28969
28988
|
}
|
|
28970
28989
|
function M(x, A, S, E) {
|
|
28971
28990
|
if (r3(x, A, S, E))
|
|
28972
28991
|
return;
|
|
28973
|
-
const
|
|
28974
|
-
if (A === window && !w(A,
|
|
28992
|
+
const z = E === !0 || typeof E == "object" && E.capture === !0, O = z ? "capture" : "bubble", N = v(O, x), Q = y(N, A);
|
|
28993
|
+
if (A === window && !w(A, z ? "bubble" : "capture", x, S) && _(x, S)) {
|
|
28975
28994
|
const oe = d[x];
|
|
28976
28995
|
oe.delete(S), oe.size === 0 && (window.removeEventListener(x, p), d[x] = void 0);
|
|
28977
28996
|
}
|
|
@@ -29117,7 +29136,7 @@ function f3(t) {
|
|
|
29117
29136
|
Yr || wr == null || wr.then(() => {
|
|
29118
29137
|
e || t();
|
|
29119
29138
|
});
|
|
29120
|
-
}),
|
|
29139
|
+
}), zn(() => {
|
|
29121
29140
|
e = !0;
|
|
29122
29141
|
});
|
|
29123
29142
|
}
|
|
@@ -29239,7 +29258,7 @@ const Kg = re({
|
|
|
29239
29258
|
},
|
|
29240
29259
|
setup(t) {
|
|
29241
29260
|
var e;
|
|
29242
|
-
On("VBinder", (e =
|
|
29261
|
+
On("VBinder", (e = Xh()) === null || e === void 0 ? void 0 : e.proxy);
|
|
29243
29262
|
const n = et("VBinder", null), i = V(null), s = (m) => {
|
|
29244
29263
|
i.value = m, n && t.syncTargetWithParent && n.setTargetRef(m);
|
|
29245
29264
|
};
|
|
@@ -29259,7 +29278,7 @@ const Kg = re({
|
|
|
29259
29278
|
}, u = (m) => {
|
|
29260
29279
|
l.has(m) && l.delete(m), l.size === 0 && a();
|
|
29261
29280
|
}, d = () => {
|
|
29262
|
-
|
|
29281
|
+
Lg(h);
|
|
29263
29282
|
}, h = () => {
|
|
29264
29283
|
l.forEach((m) => m());
|
|
29265
29284
|
}, g = /* @__PURE__ */ new Set(), f = (m) => {
|
|
@@ -29269,7 +29288,7 @@ const Kg = re({
|
|
|
29269
29288
|
}, v = () => {
|
|
29270
29289
|
g.forEach((m) => m());
|
|
29271
29290
|
};
|
|
29272
|
-
return
|
|
29291
|
+
return zn(() => {
|
|
29273
29292
|
Vt("resize", window, v), a();
|
|
29274
29293
|
}), {
|
|
29275
29294
|
targetRef: i,
|
|
@@ -29564,12 +29583,12 @@ const Ao = function(t, e, n, i) {
|
|
|
29564
29583
|
mount: E3,
|
|
29565
29584
|
unmount: O3
|
|
29566
29585
|
};
|
|
29567
|
-
},
|
|
29586
|
+
}, L3 = function(t, e, n, i) {
|
|
29568
29587
|
return Array.isArray(e) ? Ao(t, { $: null }, null, e) : Array.isArray(n) ? Ao(t, e, null, n) : Array.isArray(i) ? Ao(t, e, n, i) : Ao(t, e, n, null);
|
|
29569
29588
|
};
|
|
29570
29589
|
function ep(t = {}) {
|
|
29571
29590
|
const e = {
|
|
29572
|
-
c: ((...n) =>
|
|
29591
|
+
c: ((...n) => L3(e, ...n)),
|
|
29573
29592
|
use: (n, ...i) => n.install(e, ...i),
|
|
29574
29593
|
find: Na,
|
|
29575
29594
|
context: {},
|
|
@@ -29577,7 +29596,7 @@ function ep(t = {}) {
|
|
|
29577
29596
|
};
|
|
29578
29597
|
return e;
|
|
29579
29598
|
}
|
|
29580
|
-
function
|
|
29599
|
+
function z3(t, e) {
|
|
29581
29600
|
if (t === void 0)
|
|
29582
29601
|
return !1;
|
|
29583
29602
|
if (e) {
|
|
@@ -29686,7 +29705,7 @@ const D3 = re({
|
|
|
29686
29705
|
};
|
|
29687
29706
|
},
|
|
29688
29707
|
render() {
|
|
29689
|
-
return this.showTeleport ? this.disabled ? _c("lazy-teleport", this.$slots) : G(
|
|
29708
|
+
return this.showTeleport ? this.disabled ? _c("lazy-teleport", this.$slots) : G(Tm, {
|
|
29690
29709
|
disabled: this.disabled,
|
|
29691
29710
|
to: this.mergedTo
|
|
29692
29711
|
}, _c("lazy-teleport", this.$slots)) : null;
|
|
@@ -30031,7 +30050,7 @@ const U3 = hs([
|
|
|
30031
30050
|
head: !0,
|
|
30032
30051
|
anchorMetaName: su,
|
|
30033
30052
|
ssr: a
|
|
30034
|
-
}),
|
|
30053
|
+
}), zn(() => {
|
|
30035
30054
|
o();
|
|
30036
30055
|
}), f3(() => {
|
|
30037
30056
|
n.value && l();
|
|
@@ -30048,8 +30067,8 @@ const U3 = hs([
|
|
|
30048
30067
|
h.setAttribute("v-placement", _), v ? h.setAttribute("v-overlap", "") : h.removeAttribute("v-overlap");
|
|
30049
30068
|
const { style: x } = h;
|
|
30050
30069
|
y === "target" ? x.width = `${m.width}px` : y !== void 0 ? x.width = y : x.width = "", w === "target" ? x.minWidth = `${m.width}px` : w !== void 0 ? x.minWidth = w : x.minWidth = "";
|
|
30051
|
-
const A = Tl(h), S = Tl(s.value), { left: E, top:
|
|
30052
|
-
h.setAttribute("v-placement",
|
|
30070
|
+
const A = Tl(h), S = Tl(s.value), { left: E, top: L, placement: z } = V3(_, m, A, C, M, v), O = j3(z, v), { left: N, top: Q, transform: se } = q3(z, S, m, L, E, v);
|
|
30071
|
+
h.setAttribute("v-placement", z), h.style.setProperty("--v-offset-left", `${Math.round(E)}px`), h.style.setProperty("--v-offset-top", `${Math.round(L)}px`), h.style.transform = `translateX(${N}) translateY(${Q}) ${se}`, h.style.setProperty("--v-transform-origin", O), h.style.transformOrigin = O;
|
|
30053
30072
|
};
|
|
30054
30073
|
xe(n, (h) => {
|
|
30055
30074
|
h ? (r(), c()) : o();
|
|
@@ -30196,13 +30215,13 @@ var Ns = function(t) {
|
|
|
30196
30215
|
return Eo.get(t);
|
|
30197
30216
|
if (sp(t))
|
|
30198
30217
|
return Eo.set(t, mh), mh;
|
|
30199
|
-
var n = getComputedStyle(t), i = ru(t) && t.ownerSVGElement && t.getBBox(), s = !J3 && n.boxSizing === "border-box", r = Q3.test(n.writingMode || ""), o = !i && ph.test(n.overflowY || ""), a = !i && ph.test(n.overflowX || ""), l = i ? 0 : bi(n.paddingTop), c = i ? 0 : bi(n.paddingRight), u = i ? 0 : bi(n.paddingBottom), d = i ? 0 : bi(n.paddingLeft), h = i ? 0 : bi(n.borderTopWidth), g = i ? 0 : bi(n.borderRightWidth), f = i ? 0 : bi(n.borderBottomWidth), p = i ? 0 : bi(n.borderLeftWidth), v = d + c, m = l + u, y = p + g, w = h + f, _ = a ? t.offsetHeight - w - t.clientHeight : 0, C = o ? t.offsetWidth - y - t.clientWidth : 0, M = s ? v + y : 0, x = s ? m + w : 0, A = i ? i.width : bi(n.width) - M - C, S = i ? i.height : bi(n.height) - x - _, E = A + v + C + y,
|
|
30218
|
+
var n = getComputedStyle(t), i = ru(t) && t.ownerSVGElement && t.getBBox(), s = !J3 && n.boxSizing === "border-box", r = Q3.test(n.writingMode || ""), o = !i && ph.test(n.overflowY || ""), a = !i && ph.test(n.overflowX || ""), l = i ? 0 : bi(n.paddingTop), c = i ? 0 : bi(n.paddingRight), u = i ? 0 : bi(n.paddingBottom), d = i ? 0 : bi(n.paddingLeft), h = i ? 0 : bi(n.borderTopWidth), g = i ? 0 : bi(n.borderRightWidth), f = i ? 0 : bi(n.borderBottomWidth), p = i ? 0 : bi(n.borderLeftWidth), v = d + c, m = l + u, y = p + g, w = h + f, _ = a ? t.offsetHeight - w - t.clientHeight : 0, C = o ? t.offsetWidth - y - t.clientWidth : 0, M = s ? v + y : 0, x = s ? m + w : 0, A = i ? i.width : bi(n.width) - M - C, S = i ? i.height : bi(n.height) - x - _, E = A + v + C + y, L = S + m + _ + w, z = Ns({
|
|
30200
30219
|
devicePixelContentBoxSize: xr(Math.round(A * devicePixelRatio), Math.round(S * devicePixelRatio), r),
|
|
30201
|
-
borderBoxSize: xr(E,
|
|
30220
|
+
borderBoxSize: xr(E, L, r),
|
|
30202
30221
|
contentBoxSize: xr(A, S, r),
|
|
30203
30222
|
contentRect: new ip(d, l, A, S)
|
|
30204
30223
|
});
|
|
30205
|
-
return Eo.set(t,
|
|
30224
|
+
return Eo.set(t, z), z;
|
|
30206
30225
|
}, op = function(t, e, n) {
|
|
30207
30226
|
var i = rp(t, n), s = i.borderBoxSize, r = i.contentBoxSize, o = i.devicePixelContentBoxSize;
|
|
30208
30227
|
switch (e) {
|
|
@@ -30357,7 +30376,7 @@ var Ns = function(t) {
|
|
|
30357
30376
|
if (t[n].target === e)
|
|
30358
30377
|
return n;
|
|
30359
30378
|
return -1;
|
|
30360
|
-
},
|
|
30379
|
+
}, Lo = (function() {
|
|
30361
30380
|
function t() {
|
|
30362
30381
|
}
|
|
30363
30382
|
return t.connect = function(e, n) {
|
|
@@ -30381,22 +30400,22 @@ var Ns = function(t) {
|
|
|
30381
30400
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
30382
30401
|
if (typeof e != "function")
|
|
30383
30402
|
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
30384
|
-
|
|
30403
|
+
Lo.connect(this, e);
|
|
30385
30404
|
}
|
|
30386
30405
|
return t.prototype.observe = function(e, n) {
|
|
30387
30406
|
if (arguments.length === 0)
|
|
30388
30407
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
30389
30408
|
if (!gh(e))
|
|
30390
30409
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
30391
|
-
|
|
30410
|
+
Lo.observe(this, e, n);
|
|
30392
30411
|
}, t.prototype.unobserve = function(e) {
|
|
30393
30412
|
if (arguments.length === 0)
|
|
30394
30413
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
30395
30414
|
if (!gh(e))
|
|
30396
30415
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
30397
|
-
|
|
30416
|
+
Lo.unobserve(this, e);
|
|
30398
30417
|
}, t.prototype.disconnect = function() {
|
|
30399
|
-
|
|
30418
|
+
Lo.disconnect(this);
|
|
30400
30419
|
}, t.toString = function() {
|
|
30401
30420
|
return "function ResizeObserver () { [polyfill code] }";
|
|
30402
30421
|
}, t;
|
|
@@ -30425,7 +30444,7 @@ const Gr = new g4(), ba = re({
|
|
|
30425
30444
|
},
|
|
30426
30445
|
setup(t) {
|
|
30427
30446
|
let e = !1;
|
|
30428
|
-
const n =
|
|
30447
|
+
const n = Xh().proxy;
|
|
30429
30448
|
function i(s) {
|
|
30430
30449
|
const { onResize: r } = t;
|
|
30431
30450
|
r !== void 0 && r(s);
|
|
@@ -30441,7 +30460,7 @@ const Gr = new g4(), ba = re({
|
|
|
30441
30460
|
return;
|
|
30442
30461
|
}
|
|
30443
30462
|
s.nextElementSibling !== null && (Gr.registerHandler(s.nextElementSibling, i), e = !0);
|
|
30444
|
-
}),
|
|
30463
|
+
}), zn(() => {
|
|
30445
30464
|
e && Gr.unregisterHandler(n.$el.nextElementSibling);
|
|
30446
30465
|
});
|
|
30447
30466
|
},
|
|
@@ -30449,9 +30468,9 @@ const Gr = new g4(), ba = re({
|
|
|
30449
30468
|
return Pe(this.$slots, "default");
|
|
30450
30469
|
}
|
|
30451
30470
|
});
|
|
30452
|
-
let
|
|
30471
|
+
let zo;
|
|
30453
30472
|
function p4() {
|
|
30454
|
-
return typeof document > "u" ? !1 : (
|
|
30473
|
+
return typeof document > "u" ? !1 : (zo === void 0 && ("matchMedia" in window ? zo = window.matchMedia("(pointer:coarse)").matches : zo = !1), zo);
|
|
30455
30474
|
}
|
|
30456
30475
|
let Bl;
|
|
30457
30476
|
function xh() {
|
|
@@ -30613,13 +30632,13 @@ const kh = re({
|
|
|
30613
30632
|
O != null ? v({ index: O }) : N != null && v({ key: N });
|
|
30614
30633
|
});
|
|
30615
30634
|
let n = !1, i = !1;
|
|
30616
|
-
|
|
30635
|
+
Yh(() => {
|
|
30617
30636
|
if (n = !1, !i) {
|
|
30618
30637
|
i = !0;
|
|
30619
30638
|
return;
|
|
30620
30639
|
}
|
|
30621
30640
|
v({ top: g.value, left: o.value });
|
|
30622
|
-
}),
|
|
30641
|
+
}), Kh(() => {
|
|
30623
30642
|
n = !0, i || (i = !0);
|
|
30624
30643
|
});
|
|
30625
30644
|
const s = ii(() => {
|
|
@@ -30705,7 +30724,7 @@ const kh = re({
|
|
|
30705
30724
|
}
|
|
30706
30725
|
function C(O, N) {
|
|
30707
30726
|
var Q, se, oe;
|
|
30708
|
-
if (n || t.ignoreItemResize ||
|
|
30727
|
+
if (n || t.ignoreItemResize || z(N.target))
|
|
30709
30728
|
return;
|
|
30710
30729
|
const { value: q } = d, j = r.value.get(O), ee = q.get(j), K = (oe = (se = (Q = N.borderBoxSize) === null || Q === void 0 ? void 0 : Q[0]) === null || se === void 0 ? void 0 : se.blockSize) !== null && oe !== void 0 ? oe : N.contentRect.height;
|
|
30711
30730
|
if (K === ee)
|
|
@@ -30728,7 +30747,7 @@ const kh = re({
|
|
|
30728
30747
|
// correct
|
|
30729
30748
|
ie.scrollTop + ie.offsetHeight && ie.scrollBy(0, X);
|
|
30730
30749
|
}
|
|
30731
|
-
|
|
30750
|
+
L();
|
|
30732
30751
|
}
|
|
30733
30752
|
h.value++;
|
|
30734
30753
|
}
|
|
@@ -30736,7 +30755,7 @@ const kh = re({
|
|
|
30736
30755
|
let x = !1;
|
|
30737
30756
|
function A(O) {
|
|
30738
30757
|
var N;
|
|
30739
|
-
(N = t.onScroll) === null || N === void 0 || N.call(t, O), (!M || !x) &&
|
|
30758
|
+
(N = t.onScroll) === null || N === void 0 || N.call(t, O), (!M || !x) && L();
|
|
30740
30759
|
}
|
|
30741
30760
|
function S(O) {
|
|
30742
30761
|
var N;
|
|
@@ -30745,14 +30764,14 @@ const kh = re({
|
|
|
30745
30764
|
if (Q != null) {
|
|
30746
30765
|
if (O.deltaX === 0 && (Q.scrollTop === 0 && O.deltaY <= 0 || Q.scrollTop + Q.offsetHeight >= Q.scrollHeight && O.deltaY >= 0))
|
|
30747
30766
|
return;
|
|
30748
|
-
O.preventDefault(), Q.scrollTop += O.deltaY / xh(), Q.scrollLeft += O.deltaX / xh(),
|
|
30767
|
+
O.preventDefault(), Q.scrollTop += O.deltaY / xh(), Q.scrollLeft += O.deltaX / xh(), L(), x = !0, Lg(() => {
|
|
30749
30768
|
x = !1;
|
|
30750
30769
|
});
|
|
30751
30770
|
}
|
|
30752
30771
|
}
|
|
30753
30772
|
}
|
|
30754
30773
|
function E(O) {
|
|
30755
|
-
if (n ||
|
|
30774
|
+
if (n || z(O.target))
|
|
30756
30775
|
return;
|
|
30757
30776
|
if (t.renderCol == null && t.renderItemWithCols == null) {
|
|
30758
30777
|
if (O.contentRect.height === c.value)
|
|
@@ -30763,11 +30782,11 @@ const kh = re({
|
|
|
30763
30782
|
const { onResize: N } = t;
|
|
30764
30783
|
N !== void 0 && N(O);
|
|
30765
30784
|
}
|
|
30766
|
-
function
|
|
30785
|
+
function L() {
|
|
30767
30786
|
const { value: O } = l;
|
|
30768
30787
|
O != null && (g.value = O.scrollTop, o.value = O.scrollLeft);
|
|
30769
30788
|
}
|
|
30770
|
-
function
|
|
30789
|
+
function z(O) {
|
|
30771
30790
|
let N = O;
|
|
30772
30791
|
for (; N !== null; ) {
|
|
30773
30792
|
if (N.style.display === "none")
|
|
@@ -30816,7 +30835,7 @@ const kh = re({
|
|
|
30816
30835
|
}, {
|
|
30817
30836
|
default: () => {
|
|
30818
30837
|
var s, r;
|
|
30819
|
-
return G("div",
|
|
30838
|
+
return G("div", Rc(this.$attrs, {
|
|
30820
30839
|
class: ["v-vl", this.showScrollbar && "v-vl--show-scrollbar"],
|
|
30821
30840
|
onScroll: this.handleListScroll,
|
|
30822
30841
|
onWheel: this.handleListWheel,
|
|
@@ -31028,7 +31047,7 @@ const w4 = re({
|
|
|
31028
31047
|
}, {
|
|
31029
31048
|
immediate: !0
|
|
31030
31049
|
});
|
|
31031
|
-
}),
|
|
31050
|
+
}), zn(() => {
|
|
31032
31051
|
Vt("keydown", document, l), s && h();
|
|
31033
31052
|
});
|
|
31034
31053
|
function c(v) {
|
|
@@ -31133,7 +31152,7 @@ function is(t) {
|
|
|
31133
31152
|
};
|
|
31134
31153
|
lt(() => {
|
|
31135
31154
|
Sn("fullscreenchange", document, o);
|
|
31136
|
-
}),
|
|
31155
|
+
}), zn(() => {
|
|
31137
31156
|
Vt("fullscreenchange", document, o);
|
|
31138
31157
|
});
|
|
31139
31158
|
}
|
|
@@ -31155,13 +31174,13 @@ function x4(t) {
|
|
|
31155
31174
|
isDeactivated: !1
|
|
31156
31175
|
};
|
|
31157
31176
|
let n = !1;
|
|
31158
|
-
return
|
|
31177
|
+
return Yh(() => {
|
|
31159
31178
|
if (e.isDeactivated = !1, !n) {
|
|
31160
31179
|
n = !0;
|
|
31161
31180
|
return;
|
|
31162
31181
|
}
|
|
31163
31182
|
t();
|
|
31164
|
-
}),
|
|
31183
|
+
}), Kh(() => {
|
|
31165
31184
|
e.isDeactivated = !0, n || (n = !0);
|
|
31166
31185
|
}), e;
|
|
31167
31186
|
}
|
|
@@ -31175,7 +31194,7 @@ function bp(t, e) {
|
|
|
31175
31194
|
i && Gr.unregisterHandler(i);
|
|
31176
31195
|
}, {
|
|
31177
31196
|
deep: !1
|
|
31178
|
-
}),
|
|
31197
|
+
}), zn(() => {
|
|
31179
31198
|
const {
|
|
31180
31199
|
value: n
|
|
31181
31200
|
} = t;
|
|
@@ -31391,7 +31410,7 @@ function vr(t, ...e) {
|
|
|
31391
31410
|
return typeof t == "function" ? t(...e) : typeof t == "string" ? ne(t) : typeof t == "number" ? ne(String(t)) : null;
|
|
31392
31411
|
}
|
|
31393
31412
|
function Ha(t) {
|
|
31394
|
-
return t.some((e) =>
|
|
31413
|
+
return t.some((e) => Rm(e) ? !(e.type === Sa || e.type === ye && !Ha(e.children)) : !0) ? t : null;
|
|
31395
31414
|
}
|
|
31396
31415
|
function au(t, e) {
|
|
31397
31416
|
return t && Ha(t()) || e();
|
|
@@ -31426,7 +31445,7 @@ function er(t = {}, e = {
|
|
|
31426
31445
|
} = t;
|
|
31427
31446
|
return r !== void 0 ? r : (s = (i = n == null ? void 0 : n.mergedBorderedRef.value) !== null && i !== void 0 ? i : e.defaultBordered) !== null && s !== void 0 ? s : !0;
|
|
31428
31447
|
}),
|
|
31429
|
-
mergedClsPrefixRef: n ? n.mergedClsPrefixRef :
|
|
31448
|
+
mergedClsPrefixRef: n ? n.mergedClsPrefixRef : Fm(E4),
|
|
31430
31449
|
namespaceRef: F(() => n == null ? void 0 : n.mergedNamespaceRef.value)
|
|
31431
31450
|
};
|
|
31432
31451
|
}
|
|
@@ -31495,7 +31514,7 @@ function O4(t, {
|
|
|
31495
31514
|
} = t;
|
|
31496
31515
|
return l || (s == null ? void 0 : s.mergedValidationStatus.value);
|
|
31497
31516
|
});
|
|
31498
|
-
return
|
|
31517
|
+
return zn(() => {
|
|
31499
31518
|
s && s.restoreValidation();
|
|
31500
31519
|
}), {
|
|
31501
31520
|
mergedSizeRef: r,
|
|
@@ -31515,7 +31534,7 @@ function O4(t, {
|
|
|
31515
31534
|
}
|
|
31516
31535
|
};
|
|
31517
31536
|
}
|
|
31518
|
-
const
|
|
31537
|
+
const L4 = {
|
|
31519
31538
|
name: "en-US",
|
|
31520
31539
|
global: {
|
|
31521
31540
|
undo: "Undo",
|
|
@@ -31666,14 +31685,14 @@ function Or(t) {
|
|
|
31666
31685
|
return s[r];
|
|
31667
31686
|
};
|
|
31668
31687
|
}
|
|
31669
|
-
function
|
|
31688
|
+
function Lr(t) {
|
|
31670
31689
|
return (e, n = {}) => {
|
|
31671
31690
|
const i = n.width, s = i && t.matchPatterns[i] || t.matchPatterns[t.defaultMatchWidth], r = e.match(s);
|
|
31672
31691
|
if (!r)
|
|
31673
31692
|
return null;
|
|
31674
31693
|
const o = r[0], a = i && t.parsePatterns[i] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(a) ? D4(a, (d) => d.test(o)) : (
|
|
31675
31694
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
31676
|
-
|
|
31695
|
+
z4(a, (d) => d.test(o))
|
|
31677
31696
|
);
|
|
31678
31697
|
let c;
|
|
31679
31698
|
c = t.valueCallback ? t.valueCallback(l) : l, c = n.valueCallback ? (
|
|
@@ -31684,7 +31703,7 @@ function zr(t) {
|
|
|
31684
31703
|
return { value: c, rest: u };
|
|
31685
31704
|
};
|
|
31686
31705
|
}
|
|
31687
|
-
function
|
|
31706
|
+
function z4(t, e) {
|
|
31688
31707
|
for (const n in t)
|
|
31689
31708
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
31690
31709
|
return n;
|
|
@@ -32002,32 +32021,32 @@ const H4 = {
|
|
|
32002
32021
|
parsePattern: e$,
|
|
32003
32022
|
valueCallback: (t) => parseInt(t, 10)
|
|
32004
32023
|
}),
|
|
32005
|
-
era:
|
|
32024
|
+
era: Lr({
|
|
32006
32025
|
matchPatterns: t$,
|
|
32007
32026
|
defaultMatchWidth: "wide",
|
|
32008
32027
|
parsePatterns: n$,
|
|
32009
32028
|
defaultParseWidth: "any"
|
|
32010
32029
|
}),
|
|
32011
|
-
quarter:
|
|
32030
|
+
quarter: Lr({
|
|
32012
32031
|
matchPatterns: i$,
|
|
32013
32032
|
defaultMatchWidth: "wide",
|
|
32014
32033
|
parsePatterns: s$,
|
|
32015
32034
|
defaultParseWidth: "any",
|
|
32016
32035
|
valueCallback: (t) => t + 1
|
|
32017
32036
|
}),
|
|
32018
|
-
month:
|
|
32037
|
+
month: Lr({
|
|
32019
32038
|
matchPatterns: r$,
|
|
32020
32039
|
defaultMatchWidth: "wide",
|
|
32021
32040
|
parsePatterns: o$,
|
|
32022
32041
|
defaultParseWidth: "any"
|
|
32023
32042
|
}),
|
|
32024
|
-
day:
|
|
32043
|
+
day: Lr({
|
|
32025
32044
|
matchPatterns: a$,
|
|
32026
32045
|
defaultMatchWidth: "wide",
|
|
32027
32046
|
parsePatterns: l$,
|
|
32028
32047
|
defaultParseWidth: "any"
|
|
32029
32048
|
}),
|
|
32030
|
-
dayPeriod:
|
|
32049
|
+
dayPeriod: Lr({
|
|
32031
32050
|
matchPatterns: c$,
|
|
32032
32051
|
defaultMatchWidth: "any",
|
|
32033
32052
|
parsePatterns: u$,
|
|
@@ -32082,7 +32101,7 @@ function kp(t) {
|
|
|
32082
32101
|
mergedDateLocaleRef: n
|
|
32083
32102
|
} = et(Js, null) || {}, i = F(() => {
|
|
32084
32103
|
var r, o;
|
|
32085
|
-
return (o = (r = e == null ? void 0 : e.value) === null || r === void 0 ? void 0 : r[t]) !== null && o !== void 0 ? o :
|
|
32104
|
+
return (o = (r = e == null ? void 0 : e.value) === null || r === void 0 ? void 0 : r[t]) !== null && o !== void 0 ? o : L4[t];
|
|
32086
32105
|
});
|
|
32087
32106
|
return {
|
|
32088
32107
|
dateLocaleRef: F(() => {
|
|
@@ -32109,7 +32128,7 @@ function ho(t, e, n) {
|
|
|
32109
32128
|
const {
|
|
32110
32129
|
value: a
|
|
32111
32130
|
} = n, l = `${a}${t}Rtl`;
|
|
32112
|
-
if (
|
|
32131
|
+
if (z3(l, i)) return;
|
|
32113
32132
|
const {
|
|
32114
32133
|
value: c
|
|
32115
32134
|
} = s;
|
|
@@ -32648,7 +32667,7 @@ const R$ = Oe("base-clear", `
|
|
|
32648
32667
|
`, [De("icon", `
|
|
32649
32668
|
height: 1em;
|
|
32650
32669
|
width: 1em;
|
|
32651
|
-
`)])])]),
|
|
32670
|
+
`)])])]), Ll = "1.6s", E$ = {
|
|
32652
32671
|
strokeWidth: {
|
|
32653
32672
|
type: Number,
|
|
32654
32673
|
default: 28
|
|
@@ -32710,7 +32729,7 @@ const R$ = Oe("base-clear", `
|
|
|
32710
32729
|
type: "rotate",
|
|
32711
32730
|
values: `0 ${r} ${r};270 ${r} ${r}`,
|
|
32712
32731
|
begin: "0s",
|
|
32713
|
-
dur:
|
|
32732
|
+
dur: Ll,
|
|
32714
32733
|
fill: "freeze",
|
|
32715
32734
|
repeatCount: "indefinite"
|
|
32716
32735
|
}), G("circle", {
|
|
@@ -32729,14 +32748,14 @@ const R$ = Oe("base-clear", `
|
|
|
32729
32748
|
type: "rotate",
|
|
32730
32749
|
values: `0 ${r} ${r};135 ${r} ${r};450 ${r} ${r}`,
|
|
32731
32750
|
begin: "0s",
|
|
32732
|
-
dur:
|
|
32751
|
+
dur: Ll,
|
|
32733
32752
|
fill: "freeze",
|
|
32734
32753
|
repeatCount: "indefinite"
|
|
32735
32754
|
}), G("animate", {
|
|
32736
32755
|
attributeName: "stroke-dashoffset",
|
|
32737
32756
|
values: `${5.67 * e};${1.42 * e};${5.67 * e}`,
|
|
32738
32757
|
begin: "0s",
|
|
32739
|
-
dur:
|
|
32758
|
+
dur: Ll,
|
|
32740
32759
|
fill: "freeze",
|
|
32741
32760
|
repeatCount: "indefinite"
|
|
32742
32761
|
})))))) : G("div", {
|
|
@@ -32812,13 +32831,13 @@ const Ae = {
|
|
|
32812
32831
|
successDefault: "#18a058",
|
|
32813
32832
|
successActive: "#0c7a43",
|
|
32814
32833
|
successSuppl: "#36ad6a"
|
|
32815
|
-
},
|
|
32834
|
+
}, L$ = Ys(Ae.neutralBase), Tp = Ys(Ae.neutralInvertBase), z$ = `rgba(${Tp.slice(0, 3).join(", ")}, `;
|
|
32816
32835
|
function Eh(t) {
|
|
32817
|
-
return `${
|
|
32836
|
+
return `${z$ + String(t)})`;
|
|
32818
32837
|
}
|
|
32819
32838
|
function rn(t) {
|
|
32820
32839
|
const e = Array.from(Tp);
|
|
32821
|
-
return e[3] = Number(t), $5(
|
|
32840
|
+
return e[3] = Number(t), $5(L$, e);
|
|
32822
32841
|
}
|
|
32823
32842
|
const nr = Object.assign(Object.assign({
|
|
32824
32843
|
name: "common"
|
|
@@ -33066,8 +33085,8 @@ const lu = {
|
|
|
33066
33085
|
inlineThemeDisabled: n,
|
|
33067
33086
|
mergedRtlRef: i
|
|
33068
33087
|
} = er(t), s = ho("Scrollbar", i, e), r = V(null), o = V(null), a = V(null), l = V(null), c = V(null), u = V(null), d = V(null), h = V(null), g = V(null), f = V(null), p = V(null), v = V(0), m = V(0), y = V(!1), w = V(!1);
|
|
33069
|
-
let _ = !1, C = !1, M, x, A = 0, S = 0, E = 0,
|
|
33070
|
-
const
|
|
33088
|
+
let _ = !1, C = !1, M, x, A = 0, S = 0, E = 0, L = 0;
|
|
33089
|
+
const z = p3(), O = mn("Scrollbar", "-scrollbar", H$, lu, t, e), N = F(() => {
|
|
33071
33090
|
const {
|
|
33072
33091
|
value: U
|
|
33073
33092
|
} = h, {
|
|
@@ -33161,13 +33180,13 @@ const lu = {
|
|
|
33161
33180
|
left: pe,
|
|
33162
33181
|
top: Re,
|
|
33163
33182
|
index: Me,
|
|
33164
|
-
elSize:
|
|
33183
|
+
elSize: ze,
|
|
33165
33184
|
position: He,
|
|
33166
33185
|
behavior: We,
|
|
33167
33186
|
el: kt,
|
|
33168
33187
|
debounce: yi = !0
|
|
33169
33188
|
} = U;
|
|
33170
|
-
(pe !== void 0 || Re !== void 0) && Te(pe ?? 0, Re ?? 0, 0, !1, We), kt !== void 0 ? Te(0, kt.offsetTop, kt.offsetHeight, yi, We) : Me !== void 0 &&
|
|
33189
|
+
(pe !== void 0 || Re !== void 0) && Te(pe ?? 0, Re ?? 0, 0, !1, We), kt !== void 0 ? Te(0, kt.offsetTop, kt.offsetHeight, yi, We) : Me !== void 0 && ze !== void 0 ? Te(0, Me * ze, ze, yi, We) : He === "bottom" ? Te(0, Number.MAX_SAFE_INTEGER, 0, !1, We) : He === "top" && Te(0, 0, 0, !1, We);
|
|
33171
33190
|
}, ve = x4(() => {
|
|
33172
33191
|
t.container || Y({
|
|
33173
33192
|
top: v.value,
|
|
@@ -33190,16 +33209,16 @@ const lu = {
|
|
|
33190
33209
|
};
|
|
33191
33210
|
function Te(U, ae, pe, Re, Me) {
|
|
33192
33211
|
const {
|
|
33193
|
-
value:
|
|
33212
|
+
value: ze
|
|
33194
33213
|
} = te;
|
|
33195
|
-
if (
|
|
33214
|
+
if (ze) {
|
|
33196
33215
|
if (Re) {
|
|
33197
33216
|
const {
|
|
33198
33217
|
scrollTop: He,
|
|
33199
33218
|
offsetHeight: We
|
|
33200
|
-
} =
|
|
33219
|
+
} = ze;
|
|
33201
33220
|
if (ae > He) {
|
|
33202
|
-
ae + pe <= He + We ||
|
|
33221
|
+
ae + pe <= He + We || ze.scrollTo({
|
|
33203
33222
|
left: U,
|
|
33204
33223
|
top: ae + pe - We,
|
|
33205
33224
|
behavior: Me
|
|
@@ -33207,7 +33226,7 @@ const lu = {
|
|
|
33207
33226
|
return;
|
|
33208
33227
|
}
|
|
33209
33228
|
}
|
|
33210
|
-
|
|
33229
|
+
ze.scrollTo({
|
|
33211
33230
|
left: U,
|
|
33212
33231
|
top: ae,
|
|
33213
33232
|
behavior: Me
|
|
@@ -33287,9 +33306,9 @@ const lu = {
|
|
|
33287
33306
|
return !(!((ae = r.value) === null || ae === void 0) && ae.contains(ro(U)));
|
|
33288
33307
|
}
|
|
33289
33308
|
function _s(U) {
|
|
33290
|
-
U.preventDefault(), U.stopPropagation(), C = !0, Sn("mousemove", window,
|
|
33309
|
+
U.preventDefault(), U.stopPropagation(), C = !0, Sn("mousemove", window, Li, !0), Sn("mouseup", window, zi, !0), S = m.value, E = s != null && s.value ? window.innerWidth - U.clientX : U.clientX;
|
|
33291
33310
|
}
|
|
33292
|
-
function
|
|
33311
|
+
function Li(U) {
|
|
33293
33312
|
if (!C) return;
|
|
33294
33313
|
M !== void 0 && window.clearTimeout(M), x !== void 0 && window.clearTimeout(x);
|
|
33295
33314
|
const {
|
|
@@ -33300,8 +33319,8 @@ const lu = {
|
|
|
33300
33319
|
value: Re
|
|
33301
33320
|
} = se;
|
|
33302
33321
|
if (ae === null || pe === null) return;
|
|
33303
|
-
const
|
|
33304
|
-
let We = S +
|
|
33322
|
+
const ze = (s != null && s.value ? window.innerWidth - U.clientX - E : U.clientX - E) * (pe - ae) / (ae - Re), He = pe - ae;
|
|
33323
|
+
let We = S + ze;
|
|
33305
33324
|
We = Math.min(He, We), We = Math.max(We, 0);
|
|
33306
33325
|
const {
|
|
33307
33326
|
value: kt
|
|
@@ -33314,11 +33333,11 @@ const lu = {
|
|
|
33314
33333
|
yi && yi(We);
|
|
33315
33334
|
}
|
|
33316
33335
|
}
|
|
33317
|
-
function
|
|
33318
|
-
U.preventDefault(), U.stopPropagation(), Vt("mousemove", window,
|
|
33336
|
+
function zi(U) {
|
|
33337
|
+
U.preventDefault(), U.stopPropagation(), Vt("mousemove", window, Li, !0), Vt("mouseup", window, zi, !0), C = !1, _e(), mt(U) && je();
|
|
33319
33338
|
}
|
|
33320
33339
|
function Ft(U) {
|
|
33321
|
-
U.preventDefault(), U.stopPropagation(), _ = !0, Sn("mousemove", window, ct, !0), Sn("mouseup", window, Nn, !0), A = v.value,
|
|
33340
|
+
U.preventDefault(), U.stopPropagation(), _ = !0, Sn("mousemove", window, ct, !0), Sn("mouseup", window, Nn, !0), A = v.value, L = U.clientY;
|
|
33322
33341
|
}
|
|
33323
33342
|
function ct(U) {
|
|
33324
33343
|
if (!_) return;
|
|
@@ -33331,8 +33350,8 @@ const lu = {
|
|
|
33331
33350
|
value: Re
|
|
33332
33351
|
} = N;
|
|
33333
33352
|
if (ae === null || pe === null) return;
|
|
33334
|
-
const
|
|
33335
|
-
let We = A +
|
|
33353
|
+
const ze = (U.clientY - L) * (pe - ae) / (ae - Re), He = pe - ae;
|
|
33354
|
+
let We = A + ze;
|
|
33336
33355
|
We = Math.min(He, We), We = Math.max(We, 0);
|
|
33337
33356
|
const {
|
|
33338
33357
|
value: kt
|
|
@@ -33357,7 +33376,7 @@ const lu = {
|
|
|
33357
33376
|
Re && (U ? Re.classList.remove(`${pe}-scrollbar-rail--disabled`) : Re.classList.add(`${pe}-scrollbar-rail--disabled`)), Me && (ae ? Me.classList.remove(`${pe}-scrollbar-rail--disabled`) : Me.classList.add(`${pe}-scrollbar-rail--disabled`));
|
|
33358
33377
|
}), lt(() => {
|
|
33359
33378
|
t.container || _e();
|
|
33360
|
-
}),
|
|
33379
|
+
}), zn(() => {
|
|
33361
33380
|
M !== void 0 && window.clearTimeout(M), x !== void 0 && window.clearTimeout(x), Vt("mousemove", window, ct, !0), Vt("mouseup", window, Nn, !0);
|
|
33362
33381
|
});
|
|
33363
33382
|
const Hn = F(() => {
|
|
@@ -33370,7 +33389,7 @@ const lu = {
|
|
|
33370
33389
|
colorHover: pe,
|
|
33371
33390
|
height: Re,
|
|
33372
33391
|
width: Me,
|
|
33373
|
-
borderRadius:
|
|
33392
|
+
borderRadius: ze,
|
|
33374
33393
|
railInsetHorizontalTop: He,
|
|
33375
33394
|
railInsetHorizontalBottom: We,
|
|
33376
33395
|
railInsetVerticalRight: kt,
|
|
@@ -33402,7 +33421,7 @@ const lu = {
|
|
|
33402
33421
|
"--n-scrollbar-bezier": U,
|
|
33403
33422
|
"--n-scrollbar-color": ae,
|
|
33404
33423
|
"--n-scrollbar-color-hover": pe,
|
|
33405
|
-
"--n-scrollbar-border-radius":
|
|
33424
|
+
"--n-scrollbar-border-radius": ze,
|
|
33406
33425
|
"--n-scrollbar-width": Me,
|
|
33407
33426
|
"--n-scrollbar-height": Re,
|
|
33408
33427
|
"--n-scrollbar-rail-top-horizontal-top": ja,
|
|
@@ -33448,7 +33467,7 @@ const lu = {
|
|
|
33448
33467
|
xBarLeftPx: K,
|
|
33449
33468
|
isShowXBar: ie,
|
|
33450
33469
|
isShowYBar: le,
|
|
33451
|
-
isIos:
|
|
33470
|
+
isIos: z,
|
|
33452
33471
|
handleScroll: vi,
|
|
33453
33472
|
handleContentResize: we,
|
|
33454
33473
|
handleContainerResize: ge,
|
|
@@ -33491,7 +33510,7 @@ const lu = {
|
|
|
33491
33510
|
}) : null
|
|
33492
33511
|
})), d = () => {
|
|
33493
33512
|
var g, f;
|
|
33494
|
-
return (g = this.onRender) === null || g === void 0 || g.call(this), G("div",
|
|
33513
|
+
return (g = this.onRender) === null || g === void 0 || g.call(this), G("div", Rc(this.$attrs, {
|
|
33495
33514
|
role: "none",
|
|
33496
33515
|
ref: "wrapperRef",
|
|
33497
33516
|
class: [`${n}-scrollbar`, this.themeClass, s && `${n}-scrollbar--rtl`],
|
|
@@ -33823,7 +33842,7 @@ function Z$(t, e) {
|
|
|
33823
33842
|
}) : null
|
|
33824
33843
|
});
|
|
33825
33844
|
}
|
|
33826
|
-
const
|
|
33845
|
+
const Lh = re({
|
|
33827
33846
|
name: "NBaseSelectOption",
|
|
33828
33847
|
props: {
|
|
33829
33848
|
clsPrefix: {
|
|
@@ -33954,7 +33973,7 @@ const zh = re({
|
|
|
33954
33973
|
}) : p;
|
|
33955
33974
|
}
|
|
33956
33975
|
}), {
|
|
33957
|
-
cubicBezierEaseIn:
|
|
33976
|
+
cubicBezierEaseIn: zh,
|
|
33958
33977
|
cubicBezierEaseOut: Dh
|
|
33959
33978
|
} = fo;
|
|
33960
33979
|
function Bp({
|
|
@@ -33966,7 +33985,7 @@ function Bp({
|
|
|
33966
33985
|
} = {}) {
|
|
33967
33986
|
return [$e("&.fade-in-scale-up-transition-leave-active", {
|
|
33968
33987
|
transformOrigin: t,
|
|
33969
|
-
transition: `opacity ${e} ${
|
|
33988
|
+
transition: `opacity ${e} ${zh}, transform ${e} ${zh} ${s && `,${s}`}`
|
|
33970
33989
|
}), $e("&.fade-in-scale-up-transition-enter-active", {
|
|
33971
33990
|
transformOrigin: t,
|
|
33972
33991
|
transition: `opacity ${e} ${Dh}, transform ${e} ${Dh} ${s && `,${s}`}`
|
|
@@ -34186,7 +34205,7 @@ const Q$ = Oe("base-select-menu", `
|
|
|
34186
34205
|
}) : g == null || g();
|
|
34187
34206
|
}, {
|
|
34188
34207
|
immediate: !0
|
|
34189
|
-
}),
|
|
34208
|
+
}), zn(() => {
|
|
34190
34209
|
g == null || g();
|
|
34191
34210
|
});
|
|
34192
34211
|
const f = F(() => oo(s.value.self[Bt("optionHeight", t.size)])), p = F(() => li(s.value.self[Bt("padding", t.size)])), v = F(() => t.multiple && Array.isArray(t.value) ? new Set(t.value) : /* @__PURE__ */ new Set()), m = F(() => {
|
|
@@ -34233,11 +34252,11 @@ const Q$ = Oe("base-select-menu", `
|
|
|
34233
34252
|
var X;
|
|
34234
34253
|
Xr(B, "action") || (X = t.onKeydown) === null || X === void 0 || X.call(t, B);
|
|
34235
34254
|
}
|
|
34236
|
-
function
|
|
34255
|
+
function L(B) {
|
|
34237
34256
|
var X;
|
|
34238
34257
|
(X = t.onMousedown) === null || X === void 0 || X.call(t, B), !t.focusable && B.preventDefault();
|
|
34239
34258
|
}
|
|
34240
|
-
function
|
|
34259
|
+
function z() {
|
|
34241
34260
|
const {
|
|
34242
34261
|
value: B
|
|
34243
34262
|
} = u;
|
|
@@ -34354,7 +34373,7 @@ const Q$ = Oe("base-select-menu", `
|
|
|
34354
34373
|
inlineThemeDisabled: j
|
|
34355
34374
|
} = t, ee = j ? tr("internal-select-menu", F(() => t.size[0]), q, t) : void 0, K = {
|
|
34356
34375
|
selfRef: r,
|
|
34357
|
-
next:
|
|
34376
|
+
next: z,
|
|
34358
34377
|
prev: O,
|
|
34359
34378
|
getPendingTmNode: M
|
|
34360
34379
|
};
|
|
@@ -34385,7 +34404,7 @@ const Q$ = Oe("base-select-menu", `
|
|
|
34385
34404
|
handleFocusout: oe,
|
|
34386
34405
|
handleKeyUp: S,
|
|
34387
34406
|
handleKeyDown: E,
|
|
34388
|
-
handleMouseDown:
|
|
34407
|
+
handleMouseDown: L,
|
|
34389
34408
|
handleVirtualListResize: C,
|
|
34390
34409
|
handleVirtualListScroll: _,
|
|
34391
34410
|
cssVars: j ? void 0 : q,
|
|
@@ -34457,7 +34476,7 @@ const Q$ = Oe("base-select-menu", `
|
|
|
34457
34476
|
key: o.key,
|
|
34458
34477
|
clsPrefix: n,
|
|
34459
34478
|
tmNode: o
|
|
34460
|
-
}) : o.ignored ? null : G(
|
|
34479
|
+
}) : o.ignored ? null : G(Lh, {
|
|
34461
34480
|
clsPrefix: n,
|
|
34462
34481
|
key: o.key,
|
|
34463
34482
|
tmNode: o
|
|
@@ -34472,7 +34491,7 @@ const Q$ = Oe("base-select-menu", `
|
|
|
34472
34491
|
key: o.key,
|
|
34473
34492
|
clsPrefix: n,
|
|
34474
34493
|
tmNode: o
|
|
34475
|
-
}) : G(
|
|
34494
|
+
}) : G(Lh, {
|
|
34476
34495
|
clsPrefix: n,
|
|
34477
34496
|
key: o.key,
|
|
34478
34497
|
tmNode: o
|
|
@@ -34519,7 +34538,7 @@ const Ap = {
|
|
|
34519
34538
|
Scrollbar: lu
|
|
34520
34539
|
},
|
|
34521
34540
|
self: t6
|
|
34522
|
-
},
|
|
34541
|
+
}, zl = {
|
|
34523
34542
|
top: "bottom",
|
|
34524
34543
|
bottom: "top",
|
|
34525
34544
|
left: "right",
|
|
@@ -34651,9 +34670,9 @@ function Wi(t) {
|
|
|
34651
34670
|
function ei(t, e) {
|
|
34652
34671
|
const n = t.split("-")[0], i = ["top", "bottom"].includes(n) ? "height: var(--n-space-arrow);" : "width: var(--n-space-arrow);";
|
|
34653
34672
|
return $e(`[v-placement="${t}"] >`, [Oe("popover-shared", `
|
|
34654
|
-
margin-${
|
|
34673
|
+
margin-${zl[n]}: var(--n-space);
|
|
34655
34674
|
`, [Ge("show-arrow", `
|
|
34656
|
-
margin-${
|
|
34675
|
+
margin-${zl[n]}: var(--n-space-arrow);
|
|
34657
34676
|
`), Ge("overlap", `
|
|
34658
34677
|
margin: 0;
|
|
34659
34678
|
`), R4("popover-arrow-wrapper", `
|
|
@@ -34662,7 +34681,7 @@ function ei(t, e) {
|
|
|
34662
34681
|
top: 0;
|
|
34663
34682
|
bottom: 0;
|
|
34664
34683
|
${n}: 100%;
|
|
34665
|
-
${
|
|
34684
|
+
${zl[n]}: auto;
|
|
34666
34685
|
${i}
|
|
34667
34686
|
`, [Oe("popover-arrow", e)])])]);
|
|
34668
34687
|
}
|
|
@@ -34744,25 +34763,25 @@ const s6 = re({
|
|
|
34744
34763
|
const {
|
|
34745
34764
|
trigger: S,
|
|
34746
34765
|
onClickoutside: E
|
|
34747
|
-
} = t,
|
|
34766
|
+
} = t, L = [], {
|
|
34748
34767
|
positionManuallyRef: {
|
|
34749
|
-
value:
|
|
34768
|
+
value: z
|
|
34750
34769
|
}
|
|
34751
34770
|
} = u;
|
|
34752
|
-
return
|
|
34771
|
+
return z || (S === "click" && !E && L.push([ya, M, void 0, {
|
|
34753
34772
|
capture: !0
|
|
34754
|
-
}]), S === "hover" &&
|
|
34773
|
+
}]), S === "hover" && L.push([a3, C])), E && L.push([ya, M, void 0, {
|
|
34755
34774
|
capture: !0
|
|
34756
|
-
}]), (t.displayDirective === "show" || t.animated && g.value) &&
|
|
34775
|
+
}]), (t.displayDirective === "show" || t.animated && g.value) && L.push([Fc, t.show]), L;
|
|
34757
34776
|
}), p = F(() => {
|
|
34758
34777
|
const {
|
|
34759
34778
|
common: {
|
|
34760
34779
|
cubicBezierEaseInOut: S,
|
|
34761
34780
|
cubicBezierEaseIn: E,
|
|
34762
|
-
cubicBezierEaseOut:
|
|
34781
|
+
cubicBezierEaseOut: L
|
|
34763
34782
|
},
|
|
34764
34783
|
self: {
|
|
34765
|
-
space:
|
|
34784
|
+
space: z,
|
|
34766
34785
|
spaceArrow: O,
|
|
34767
34786
|
padding: N,
|
|
34768
34787
|
fontSize: Q,
|
|
@@ -34780,7 +34799,7 @@ const s6 = re({
|
|
|
34780
34799
|
"--n-box-shadow": j,
|
|
34781
34800
|
"--n-bezier": S,
|
|
34782
34801
|
"--n-bezier-ease-in": E,
|
|
34783
|
-
"--n-bezier-ease-out":
|
|
34802
|
+
"--n-bezier-ease-out": L,
|
|
34784
34803
|
"--n-font-size": Q,
|
|
34785
34804
|
"--n-text-color": se,
|
|
34786
34805
|
"--n-color": q,
|
|
@@ -34790,7 +34809,7 @@ const s6 = re({
|
|
|
34790
34809
|
"--n-arrow-offset": B,
|
|
34791
34810
|
"--n-arrow-offset-vertical": X,
|
|
34792
34811
|
"--n-padding": N,
|
|
34793
|
-
"--n-space":
|
|
34812
|
+
"--n-space": z,
|
|
34794
34813
|
"--n-space-arrow": O
|
|
34795
34814
|
};
|
|
34796
34815
|
}), v = F(() => {
|
|
@@ -34799,18 +34818,18 @@ const s6 = re({
|
|
|
34799
34818
|
width: S
|
|
34800
34819
|
});
|
|
34801
34820
|
const {
|
|
34802
|
-
maxWidth:
|
|
34803
|
-
minWidth:
|
|
34821
|
+
maxWidth: L,
|
|
34822
|
+
minWidth: z
|
|
34804
34823
|
} = t;
|
|
34805
|
-
return
|
|
34806
|
-
maxWidth: Al(z)
|
|
34807
|
-
}), L && E.push({
|
|
34824
|
+
return L && E.push({
|
|
34808
34825
|
maxWidth: Al(L)
|
|
34826
|
+
}), z && E.push({
|
|
34827
|
+
maxWidth: Al(z)
|
|
34809
34828
|
}), r || E.push(p.value), E;
|
|
34810
34829
|
}), m = r ? tr("popover", void 0, p, t) : void 0;
|
|
34811
34830
|
u.setBodyInstance({
|
|
34812
34831
|
syncPosition: y
|
|
34813
|
-
}),
|
|
34832
|
+
}), zn(() => {
|
|
34814
34833
|
u.setBodyInstance(null);
|
|
34815
34834
|
}), xe(ot(t, "show"), (S) => {
|
|
34816
34835
|
t.animated || (S ? h.value = !0 : h.value = !1);
|
|
@@ -34839,15 +34858,15 @@ const s6 = re({
|
|
|
34839
34858
|
if (m == null || m.onRender(), !(t.displayDirective === "show" || t.show || t.animated && g.value))
|
|
34840
34859
|
return null;
|
|
34841
34860
|
let E;
|
|
34842
|
-
const
|
|
34843
|
-
value:
|
|
34861
|
+
const L = u.internalRenderBodyRef.value, {
|
|
34862
|
+
value: z
|
|
34844
34863
|
} = s;
|
|
34845
|
-
if (
|
|
34846
|
-
E =
|
|
34864
|
+
if (L)
|
|
34865
|
+
E = L(
|
|
34847
34866
|
// The popover class and overlap class must exists, they will be used
|
|
34848
34867
|
// to place the body & transition animation.
|
|
34849
34868
|
// Shadow class exists for reuse box-shadow.
|
|
34850
|
-
[`${
|
|
34869
|
+
[`${z}-popover-shared`, (l == null ? void 0 : l.value) && `${z}-popover--rtl`, m == null ? void 0 : m.themeClass.value, t.overlap && `${z}-popover-shared--overlap`, t.showArrow && `${z}-popover-shared--show-arrow`, t.arrowPointToCenter && `${z}-popover-shared--center-arrow`],
|
|
34851
34870
|
d,
|
|
34852
34871
|
v.value,
|
|
34853
34872
|
w,
|
|
@@ -34861,21 +34880,21 @@ const s6 = re({
|
|
|
34861
34880
|
} = t, Q = !Bh(e.header) || !Bh(e.footer), se = () => {
|
|
34862
34881
|
var oe, q;
|
|
34863
34882
|
const j = Q ? G(ye, null, Hs(e.header, (B) => B ? G("div", {
|
|
34864
|
-
class: [`${
|
|
34883
|
+
class: [`${z}-popover__header`, t.headerClass],
|
|
34865
34884
|
style: t.headerStyle
|
|
34866
34885
|
}, B) : null), Hs(e.default, (B) => B ? G("div", {
|
|
34867
|
-
class: [`${
|
|
34886
|
+
class: [`${z}-popover__content`, t.contentClass],
|
|
34868
34887
|
style: t.contentStyle
|
|
34869
34888
|
}, e) : null), Hs(e.footer, (B) => B ? G("div", {
|
|
34870
|
-
class: [`${
|
|
34889
|
+
class: [`${z}-popover__footer`, t.footerClass],
|
|
34871
34890
|
style: t.footerStyle
|
|
34872
34891
|
}, B) : null)) : t.scrollable ? (oe = e.default) === null || oe === void 0 ? void 0 : oe.call(e) : G("div", {
|
|
34873
|
-
class: [`${
|
|
34892
|
+
class: [`${z}-popover__content`, t.contentClass],
|
|
34874
34893
|
style: t.contentStyle
|
|
34875
34894
|
}, e), ee = t.scrollable ? G(V$, {
|
|
34876
34895
|
themeOverrides: a.value.peerOverrides.Scrollbar,
|
|
34877
34896
|
theme: a.value.peers.Scrollbar,
|
|
34878
|
-
contentClass: Q ? void 0 : `${
|
|
34897
|
+
contentClass: Q ? void 0 : `${z}-popover__content ${(q = t.contentClass) !== null && q !== void 0 ? q : ""}`,
|
|
34879
34898
|
contentStyle: Q ? void 0 : t.contentStyle
|
|
34880
34899
|
}, {
|
|
34881
34900
|
default: () => j
|
|
@@ -34884,18 +34903,18 @@ const s6 = re({
|
|
|
34884
34903
|
arrowStyle: t.arrowStyle,
|
|
34885
34904
|
arrowWrapperClass: t.arrowWrapperClass,
|
|
34886
34905
|
arrowWrapperStyle: t.arrowWrapperStyle,
|
|
34887
|
-
clsPrefix:
|
|
34906
|
+
clsPrefix: z
|
|
34888
34907
|
}) : null;
|
|
34889
34908
|
return [ee, K];
|
|
34890
34909
|
};
|
|
34891
|
-
E = G("div",
|
|
34892
|
-
class: [`${
|
|
34893
|
-
[`${
|
|
34894
|
-
[`${
|
|
34895
|
-
[`${
|
|
34896
|
-
[`${
|
|
34897
|
-
[`${
|
|
34898
|
-
[`${
|
|
34910
|
+
E = G("div", Rc({
|
|
34911
|
+
class: [`${z}-popover`, `${z}-popover-shared`, (l == null ? void 0 : l.value) && `${z}-popover--rtl`, m == null ? void 0 : m.themeClass.value, O.map((oe) => `${z}-${oe}`), {
|
|
34912
|
+
[`${z}-popover--scrollable`]: t.scrollable,
|
|
34913
|
+
[`${z}-popover--show-header-or-footer`]: Q,
|
|
34914
|
+
[`${z}-popover--raw`]: t.raw,
|
|
34915
|
+
[`${z}-popover-shared--overlap`]: t.overlap,
|
|
34916
|
+
[`${z}-popover-shared--show-arrow`]: t.showArrow,
|
|
34917
|
+
[`${z}-popover-shared--center-arrow`]: t.arrowPointToCenter
|
|
34899
34918
|
}],
|
|
34900
34919
|
ref: d,
|
|
34901
34920
|
style: v.value,
|
|
@@ -35165,10 +35184,10 @@ const c6 = {
|
|
|
35165
35184
|
function E(Q) {
|
|
35166
35185
|
t.internalTrapFocus && Q.key === "Escape" && (m(), y(), p(!1));
|
|
35167
35186
|
}
|
|
35168
|
-
function
|
|
35187
|
+
function L(Q) {
|
|
35169
35188
|
s.value = Q;
|
|
35170
35189
|
}
|
|
35171
|
-
function
|
|
35190
|
+
function z() {
|
|
35172
35191
|
var Q;
|
|
35173
35192
|
return (Q = n.value) === null || Q === void 0 ? void 0 : Q.targetRef;
|
|
35174
35193
|
}
|
|
@@ -35176,7 +35195,7 @@ const c6 = {
|
|
|
35176
35195
|
d = Q;
|
|
35177
35196
|
}
|
|
35178
35197
|
return On("NPopover", {
|
|
35179
|
-
getTriggerElement:
|
|
35198
|
+
getTriggerElement: z,
|
|
35180
35199
|
handleKeydown: E,
|
|
35181
35200
|
handleMouseEnter: C,
|
|
35182
35201
|
handleMouseLeave: M,
|
|
@@ -35198,7 +35217,7 @@ const c6 = {
|
|
|
35198
35217
|
uncontrolledShow: s,
|
|
35199
35218
|
mergedShowArrow: u,
|
|
35200
35219
|
getMergedShow: l,
|
|
35201
|
-
setShow:
|
|
35220
|
+
setShow: L,
|
|
35202
35221
|
handleClick: S,
|
|
35203
35222
|
handleMouseEnter: C,
|
|
35204
35223
|
handleMouseLeave: M,
|
|
@@ -35215,7 +35234,7 @@ const c6 = {
|
|
|
35215
35234
|
} = this;
|
|
35216
35235
|
let i, s = !1;
|
|
35217
35236
|
if (!e && (i = A4(n, "trigger"), i)) {
|
|
35218
|
-
i =
|
|
35237
|
+
i = Mm(i), i = i.type === Uh ? G("span", [i]) : i;
|
|
35219
35238
|
const r = {
|
|
35220
35239
|
onClick: this.handleClick,
|
|
35221
35240
|
onMouseenter: this.handleMouseEnter,
|
|
@@ -35342,8 +35361,8 @@ function f6(t) {
|
|
|
35342
35361
|
heightMedium: A,
|
|
35343
35362
|
closeColorHover: S,
|
|
35344
35363
|
closeColorPressed: E,
|
|
35345
|
-
buttonColor2Hover:
|
|
35346
|
-
buttonColor2Pressed:
|
|
35364
|
+
buttonColor2Hover: L,
|
|
35365
|
+
buttonColor2Pressed: z,
|
|
35347
35366
|
fontWeightStrong: O
|
|
35348
35367
|
} = t;
|
|
35349
35368
|
return Object.assign(Object.assign({}, h6), {
|
|
@@ -35365,8 +35384,8 @@ function f6(t) {
|
|
|
35365
35384
|
textColorPressedCheckable: e,
|
|
35366
35385
|
textColorChecked: c,
|
|
35367
35386
|
colorCheckable: "#0000",
|
|
35368
|
-
colorHoverCheckable:
|
|
35369
|
-
colorPressedCheckable:
|
|
35387
|
+
colorHoverCheckable: L,
|
|
35388
|
+
colorPressedCheckable: z,
|
|
35370
35389
|
colorChecked: s,
|
|
35371
35390
|
colorCheckedHover: n,
|
|
35372
35391
|
colorCheckedPressed: i,
|
|
@@ -35658,8 +35677,8 @@ const y6 = Object.assign(Object.assign(Object.assign({}, mn.props), p6), {
|
|
|
35658
35677
|
textColorPressedCheckable: A,
|
|
35659
35678
|
textColorChecked: S,
|
|
35660
35679
|
colorCheckable: E,
|
|
35661
|
-
colorHoverCheckable:
|
|
35662
|
-
colorPressedCheckable:
|
|
35680
|
+
colorHoverCheckable: L,
|
|
35681
|
+
colorPressedCheckable: z,
|
|
35663
35682
|
colorChecked: O,
|
|
35664
35683
|
colorCheckedHover: N,
|
|
35665
35684
|
colorCheckedPressed: Q,
|
|
@@ -35704,8 +35723,8 @@ const y6 = Object.assign(Object.assign(Object.assign({}, mn.props), p6), {
|
|
|
35704
35723
|
"--n-color-checked": O,
|
|
35705
35724
|
"--n-color-checked-hover": N,
|
|
35706
35725
|
"--n-color-checked-pressed": Q,
|
|
35707
|
-
"--n-color-hover-checkable":
|
|
35708
|
-
"--n-color-pressed-checkable":
|
|
35726
|
+
"--n-color-hover-checkable": L,
|
|
35727
|
+
"--n-color-pressed-checkable": z,
|
|
35709
35728
|
"--n-font-size": K,
|
|
35710
35729
|
"--n-height": B,
|
|
35711
35730
|
"--n-opacity-disabled": C,
|
|
@@ -35878,8 +35897,8 @@ function x6(t) {
|
|
|
35878
35897
|
heightTiny: A,
|
|
35879
35898
|
heightSmall: S,
|
|
35880
35899
|
heightMedium: E,
|
|
35881
|
-
heightLarge:
|
|
35882
|
-
fontWeight:
|
|
35900
|
+
heightLarge: L,
|
|
35901
|
+
fontWeight: z
|
|
35883
35902
|
} = t;
|
|
35884
35903
|
return Object.assign(Object.assign({}, w6), {
|
|
35885
35904
|
fontSizeTiny: _,
|
|
@@ -35889,9 +35908,9 @@ function x6(t) {
|
|
|
35889
35908
|
heightTiny: A,
|
|
35890
35909
|
heightSmall: S,
|
|
35891
35910
|
heightMedium: E,
|
|
35892
|
-
heightLarge:
|
|
35911
|
+
heightLarge: L,
|
|
35893
35912
|
borderRadius: e,
|
|
35894
|
-
fontWeight:
|
|
35913
|
+
fontWeight: z,
|
|
35895
35914
|
// default
|
|
35896
35915
|
textColor: n,
|
|
35897
35916
|
textColorDisabled: i,
|
|
@@ -36281,13 +36300,13 @@ const Ep = {
|
|
|
36281
36300
|
} = t;
|
|
36282
36301
|
_e && _e(me);
|
|
36283
36302
|
}
|
|
36284
|
-
function
|
|
36303
|
+
function L(me) {
|
|
36285
36304
|
const {
|
|
36286
36305
|
onDeleteOption: _e
|
|
36287
36306
|
} = t;
|
|
36288
36307
|
_e && _e(me);
|
|
36289
36308
|
}
|
|
36290
|
-
function
|
|
36309
|
+
function z(me) {
|
|
36291
36310
|
const {
|
|
36292
36311
|
onClear: _e
|
|
36293
36312
|
} = t;
|
|
@@ -36308,7 +36327,7 @@ const Ep = {
|
|
|
36308
36327
|
!((_e = o.value) === null || _e === void 0) && _e.contains(me.relatedTarget) || E(me);
|
|
36309
36328
|
}
|
|
36310
36329
|
function se(me) {
|
|
36311
|
-
|
|
36330
|
+
z(me);
|
|
36312
36331
|
}
|
|
36313
36332
|
function oe() {
|
|
36314
36333
|
v.value = !0;
|
|
@@ -36320,7 +36339,7 @@ const Ep = {
|
|
|
36320
36339
|
!t.active || !t.filterable || me.target !== r.value && me.preventDefault();
|
|
36321
36340
|
}
|
|
36322
36341
|
function ee(me) {
|
|
36323
|
-
|
|
36342
|
+
L(me);
|
|
36324
36343
|
}
|
|
36325
36344
|
const K = V(!1);
|
|
36326
36345
|
function B(me) {
|
|
@@ -36438,8 +36457,8 @@ const Ep = {
|
|
|
36438
36457
|
self: {
|
|
36439
36458
|
fontWeight: mt,
|
|
36440
36459
|
borderRadius: _s,
|
|
36441
|
-
color:
|
|
36442
|
-
placeholderColor:
|
|
36460
|
+
color: Li,
|
|
36461
|
+
placeholderColor: zi,
|
|
36443
36462
|
textColor: Ft,
|
|
36444
36463
|
paddingSingle: ct,
|
|
36445
36464
|
paddingMultiple: Nn,
|
|
@@ -36451,7 +36470,7 @@ const Ep = {
|
|
|
36451
36470
|
boxShadowFocus: pe,
|
|
36452
36471
|
boxShadowActive: Re,
|
|
36453
36472
|
boxShadowHover: Me,
|
|
36454
|
-
border:
|
|
36473
|
+
border: ze,
|
|
36455
36474
|
borderFocus: He,
|
|
36456
36475
|
borderHover: We,
|
|
36457
36476
|
borderActive: kt,
|
|
@@ -36489,7 +36508,7 @@ const Ep = {
|
|
|
36489
36508
|
} = m.value, po = li(ct), mo = li(Nn);
|
|
36490
36509
|
return {
|
|
36491
36510
|
"--n-bezier": _e,
|
|
36492
|
-
"--n-border":
|
|
36511
|
+
"--n-border": ze,
|
|
36493
36512
|
"--n-border-active": kt,
|
|
36494
36513
|
"--n-border-focus": He,
|
|
36495
36514
|
"--n-border-hover": We,
|
|
@@ -36498,7 +36517,7 @@ const Ep = {
|
|
|
36498
36517
|
"--n-box-shadow-focus": pe,
|
|
36499
36518
|
"--n-box-shadow-hover": Me,
|
|
36500
36519
|
"--n-caret-color": Hn,
|
|
36501
|
-
"--n-color":
|
|
36520
|
+
"--n-color": Li,
|
|
36502
36521
|
"--n-color-active": ae,
|
|
36503
36522
|
"--n-color-disabled": Mt,
|
|
36504
36523
|
"--n-font-size": Xp,
|
|
@@ -36511,7 +36530,7 @@ const Ep = {
|
|
|
36511
36530
|
"--n-padding-multiple-left": mo.left,
|
|
36512
36531
|
"--n-padding-single-bottom": po.bottom,
|
|
36513
36532
|
"--n-padding-multiple-bottom": mo.bottom,
|
|
36514
|
-
"--n-placeholder-color":
|
|
36533
|
+
"--n-placeholder-color": zi,
|
|
36515
36534
|
"--n-placeholder-color-disabled": U,
|
|
36516
36535
|
"--n-text-color": Ft,
|
|
36517
36536
|
"--n-text-color-disabled": vn,
|
|
@@ -36733,11 +36752,11 @@ const Ep = {
|
|
|
36733
36752
|
onUpdateShow: this.onPopoverUpdateShow,
|
|
36734
36753
|
theme: this.mergedTheme.peers.Popover,
|
|
36735
36754
|
themeOverrides: this.mergedTheme.peerOverrides.Popover
|
|
36736
|
-
}, l) : null,
|
|
36755
|
+
}, l) : null, L = (this.selected ? !1 : this.active ? !this.pattern && !this.isComposing : !0) ? G("div", {
|
|
36737
36756
|
class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`
|
|
36738
36757
|
}, G("div", {
|
|
36739
36758
|
class: `${a}-base-selection-placeholder__inner`
|
|
36740
|
-
}, this.placeholder)) : null,
|
|
36759
|
+
}, this.placeholder)) : null, z = s ? G("div", {
|
|
36741
36760
|
ref: "patternInputWrapperRef",
|
|
36742
36761
|
class: `${a}-base-selection-tags`
|
|
36743
36762
|
}, x, h ? null : _, p) : G("div", {
|
|
@@ -36749,9 +36768,9 @@ const Ep = {
|
|
|
36749
36768
|
scrollable: !0,
|
|
36750
36769
|
style: "max-height: calc(var(--v-target-height) * 6.6);"
|
|
36751
36770
|
}), {
|
|
36752
|
-
trigger: () =>
|
|
36771
|
+
trigger: () => z,
|
|
36753
36772
|
default: A
|
|
36754
|
-
}) :
|
|
36773
|
+
}) : z, L);
|
|
36755
36774
|
} else if (s) {
|
|
36756
36775
|
const m = this.pattern || this.isComposing, y = this.active ? !m : !this.selected, w = this.active ? !1 : this.selected;
|
|
36757
36776
|
v = G("div", {
|
|
@@ -37060,9 +37079,9 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37060
37079
|
} = t;
|
|
37061
37080
|
return (Re, Me) => {
|
|
37062
37081
|
if (!Me) return !1;
|
|
37063
|
-
const
|
|
37064
|
-
if (typeof
|
|
37065
|
-
return Nl(Re,
|
|
37082
|
+
const ze = Me[ae];
|
|
37083
|
+
if (typeof ze == "string")
|
|
37084
|
+
return Nl(Re, ze);
|
|
37066
37085
|
const He = Me[pe];
|
|
37067
37086
|
return typeof He == "string" ? Nl(Re, He) : typeof He == "number" ? Nl(Re, String(He)) : !1;
|
|
37068
37087
|
};
|
|
@@ -37088,7 +37107,7 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37088
37107
|
} = kp("Select"), S = F(() => {
|
|
37089
37108
|
var U;
|
|
37090
37109
|
return (U = t.placeholder) !== null && U !== void 0 ? U : A.value.placeholder;
|
|
37091
|
-
}), E = [],
|
|
37110
|
+
}), E = [], L = V(/* @__PURE__ */ new Map()), z = F(() => {
|
|
37092
37111
|
const {
|
|
37093
37112
|
fallbackOption: U
|
|
37094
37113
|
} = t;
|
|
@@ -37109,21 +37128,21 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37109
37128
|
function O(U) {
|
|
37110
37129
|
const ae = t.remote, {
|
|
37111
37130
|
value: pe
|
|
37112
|
-
} =
|
|
37131
|
+
} = L, {
|
|
37113
37132
|
value: Re
|
|
37114
37133
|
} = y, {
|
|
37115
37134
|
value: Me
|
|
37116
|
-
} =
|
|
37135
|
+
} = z, ze = [];
|
|
37117
37136
|
return U.forEach((He) => {
|
|
37118
37137
|
if (Re.has(He))
|
|
37119
|
-
|
|
37138
|
+
ze.push(Re.get(He));
|
|
37120
37139
|
else if (ae && pe.has(He))
|
|
37121
|
-
|
|
37140
|
+
ze.push(pe.get(He));
|
|
37122
37141
|
else if (Me) {
|
|
37123
37142
|
const We = Me(He);
|
|
37124
|
-
We &&
|
|
37143
|
+
We && ze.push(We);
|
|
37125
37144
|
}
|
|
37126
|
-
}),
|
|
37145
|
+
}), ze;
|
|
37127
37146
|
}
|
|
37128
37147
|
const N = F(() => {
|
|
37129
37148
|
if (t.multiple) {
|
|
@@ -37149,10 +37168,10 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37149
37168
|
"onUpdate:value": Re,
|
|
37150
37169
|
onUpdateValue: Me
|
|
37151
37170
|
} = t, {
|
|
37152
|
-
nTriggerFormChange:
|
|
37171
|
+
nTriggerFormChange: ze,
|
|
37153
37172
|
nTriggerFormInput: He
|
|
37154
37173
|
} = se;
|
|
37155
|
-
pe && dn(pe, U, ae), Me && dn(Me, U, ae), Re && dn(Re, U, ae), o.value = U,
|
|
37174
|
+
pe && dn(pe, U, ae), Me && dn(Me, U, ae), Re && dn(Re, U, ae), o.value = U, ze(), He();
|
|
37156
37175
|
}
|
|
37157
37176
|
function K(U) {
|
|
37158
37177
|
const {
|
|
@@ -37198,13 +37217,13 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37198
37217
|
if (ae) {
|
|
37199
37218
|
const {
|
|
37200
37219
|
value: Re
|
|
37201
|
-
} =
|
|
37220
|
+
} = L;
|
|
37202
37221
|
if (pe) {
|
|
37203
37222
|
const {
|
|
37204
37223
|
valueField: Me
|
|
37205
37224
|
} = t;
|
|
37206
|
-
(U = N.value) === null || U === void 0 || U.forEach((
|
|
37207
|
-
Re.set(
|
|
37225
|
+
(U = N.value) === null || U === void 0 || U.forEach((ze) => {
|
|
37226
|
+
Re.set(ze[Me], ze);
|
|
37208
37227
|
});
|
|
37209
37228
|
} else {
|
|
37210
37229
|
const Me = Q.value;
|
|
@@ -37262,7 +37281,7 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37262
37281
|
}
|
|
37263
37282
|
function vi(U) {
|
|
37264
37283
|
if (!Array.isArray(U)) return [];
|
|
37265
|
-
if (
|
|
37284
|
+
if (z.value)
|
|
37266
37285
|
return Array.from(U);
|
|
37267
37286
|
{
|
|
37268
37287
|
const {
|
|
@@ -37273,7 +37292,7 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37273
37292
|
if (ae) {
|
|
37274
37293
|
const {
|
|
37275
37294
|
value: Re
|
|
37276
|
-
} =
|
|
37295
|
+
} = L;
|
|
37277
37296
|
return U.filter((Me) => pe.has(Me) || Re.has(Me));
|
|
37278
37297
|
} else
|
|
37279
37298
|
return U.filter((Re) => pe.has(Re));
|
|
@@ -37292,27 +37311,27 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37292
37311
|
} = t;
|
|
37293
37312
|
if (ae && !pe) {
|
|
37294
37313
|
const {
|
|
37295
|
-
value:
|
|
37296
|
-
} = g, He =
|
|
37314
|
+
value: ze
|
|
37315
|
+
} = g, He = ze[0] || null;
|
|
37297
37316
|
if (He) {
|
|
37298
37317
|
const We = h.value;
|
|
37299
37318
|
We.length ? We.push(He) : h.value = [He], g.value = E;
|
|
37300
37319
|
}
|
|
37301
37320
|
}
|
|
37302
|
-
if (pe &&
|
|
37303
|
-
const
|
|
37321
|
+
if (pe && L.value.set(U[Me], U), t.multiple) {
|
|
37322
|
+
const ze = vi(l.value), He = ze.findIndex((We) => We === U[Me]);
|
|
37304
37323
|
if (~He) {
|
|
37305
|
-
if (
|
|
37324
|
+
if (ze.splice(He, 1), ae && !pe) {
|
|
37306
37325
|
const We = me(U[Me]);
|
|
37307
37326
|
~We && (h.value.splice(We, 1), Re && (u.value = ""));
|
|
37308
37327
|
}
|
|
37309
37328
|
} else
|
|
37310
|
-
|
|
37311
|
-
ee(
|
|
37329
|
+
ze.push(U[Me]), Re && (u.value = "");
|
|
37330
|
+
ee(ze, O(ze));
|
|
37312
37331
|
} else {
|
|
37313
37332
|
if (ae && !pe) {
|
|
37314
|
-
const
|
|
37315
|
-
~
|
|
37333
|
+
const ze = me(U[Me]);
|
|
37334
|
+
~ze ? h.value = [h.value[ze]] : h.value = E;
|
|
37316
37335
|
}
|
|
37317
37336
|
Ft(), ve(), ee(U[Me], U);
|
|
37318
37337
|
}
|
|
@@ -37337,14 +37356,14 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37337
37356
|
}
|
|
37338
37357
|
const {
|
|
37339
37358
|
onCreate: Me
|
|
37340
|
-
} = t,
|
|
37359
|
+
} = t, ze = Me ? Me(ae) : {
|
|
37341
37360
|
[t.labelField]: ae,
|
|
37342
37361
|
[t.valueField]: ae
|
|
37343
37362
|
}, {
|
|
37344
37363
|
valueField: He,
|
|
37345
37364
|
labelField: We
|
|
37346
37365
|
} = t;
|
|
37347
|
-
d.value.some((kt) => kt[He] ===
|
|
37366
|
+
d.value.some((kt) => kt[He] === ze[He] || kt[We] === ze[We]) || h.value.some((kt) => kt[He] === ze[He] || kt[We] === ze[We]) ? g.value = E : g.value = [ze];
|
|
37348
37367
|
}
|
|
37349
37368
|
}
|
|
37350
37369
|
function mt(U) {
|
|
@@ -37357,11 +37376,11 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37357
37376
|
function _s(U) {
|
|
37358
37377
|
!Xr(U, "action") && !Xr(U, "empty") && !Xr(U, "header") && U.preventDefault();
|
|
37359
37378
|
}
|
|
37360
|
-
function
|
|
37379
|
+
function Li(U) {
|
|
37361
37380
|
le(U);
|
|
37362
37381
|
}
|
|
37363
|
-
function
|
|
37364
|
-
var ae, pe, Re, Me,
|
|
37382
|
+
function zi(U) {
|
|
37383
|
+
var ae, pe, Re, Me, ze;
|
|
37365
37384
|
if (!t.keyboard) {
|
|
37366
37385
|
U.preventDefault();
|
|
37367
37386
|
return;
|
|
@@ -37398,7 +37417,7 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37398
37417
|
_.value ? (Me = x.value) === null || Me === void 0 || Me.next() : Y();
|
|
37399
37418
|
break;
|
|
37400
37419
|
case "Escape":
|
|
37401
|
-
_.value && (B4(U), ve()), (
|
|
37420
|
+
_.value && (B4(U), ve()), (ze = C.value) === null || ze === void 0 || ze.focus();
|
|
37402
37421
|
break;
|
|
37403
37422
|
}
|
|
37404
37423
|
}
|
|
@@ -37479,11 +37498,11 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37479
37498
|
handleClear: mt,
|
|
37480
37499
|
handleTriggerBlur: vt,
|
|
37481
37500
|
handleTriggerFocus: je,
|
|
37482
|
-
handleKeydown:
|
|
37501
|
+
handleKeydown: zi,
|
|
37483
37502
|
handleMenuAfterLeave: we,
|
|
37484
37503
|
handleMenuClickOutside: $n,
|
|
37485
|
-
handleMenuScroll:
|
|
37486
|
-
handleMenuKeydown:
|
|
37504
|
+
handleMenuScroll: Li,
|
|
37505
|
+
handleMenuKeydown: zi,
|
|
37487
37506
|
handleMenuMousedown: _s,
|
|
37488
37507
|
mergedTheme: r,
|
|
37489
37508
|
cssVars: s ? void 0 : Mt,
|
|
@@ -37602,7 +37621,7 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37602
37621
|
var i, s;
|
|
37603
37622
|
return [(s = (i = this.$slots).action) === null || s === void 0 ? void 0 : s.call(i)];
|
|
37604
37623
|
}
|
|
37605
|
-
}), this.displayDirective === "show" ? [[
|
|
37624
|
+
}), this.displayDirective === "show" ? [[Fc, this.mergedShow], [ya, this.handleMenuClickOutside, void 0, {
|
|
37606
37625
|
capture: !0
|
|
37607
37626
|
}]] : [[ya, this.handleMenuClickOutside, void 0, {
|
|
37608
37627
|
capture: !0
|
|
@@ -37708,7 +37727,7 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37708
37727
|
"onUpdate:value": p
|
|
37709
37728
|
}, null, 8, ["clearable", "consistent-menu-width", "disabled", "loading", "multiple", "options", "placeholder", "value", "render-label", "render-tag"]));
|
|
37710
37729
|
}
|
|
37711
|
-
}), O6 = {},
|
|
37730
|
+
}), O6 = {}, L6 = /* @__PURE__ */ re({
|
|
37712
37731
|
...O6,
|
|
37713
37732
|
__name: "searchable-product-select",
|
|
37714
37733
|
props: {
|
|
@@ -37767,7 +37786,7 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37767
37786
|
"onUpdate:value": h[0] || (h[0] = (g) => s("update:value", g))
|
|
37768
37787
|
}, null, 8, ["value", "clearable", "disabled", "placeholder", "consistent-menu-width", "wrap-content", "min-term-length", "render-tag"]));
|
|
37769
37788
|
}
|
|
37770
|
-
}),
|
|
37789
|
+
}), z6 = { class: "col-span-2 flex flex-row gap-2.5" }, D6 = { class: "flex-1" }, N6 = { class: "text-sc-grey" }, H6 = { class: "ml-2.5" }, W6 = {
|
|
37771
37790
|
key: 0,
|
|
37772
37791
|
class: "flex-none"
|
|
37773
37792
|
}, V6 = {}, HR = /* @__PURE__ */ re({
|
|
@@ -37817,7 +37836,7 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37817
37836
|
Pe(d.$slots, "header")
|
|
37818
37837
|
]),
|
|
37819
37838
|
footer: I(() => [
|
|
37820
|
-
D(
|
|
37839
|
+
D(L6, {
|
|
37821
37840
|
value: s.value,
|
|
37822
37841
|
"onUpdate:value": [
|
|
37823
37842
|
h[0] || (h[0] = (m) => s.value = m),
|
|
@@ -37857,7 +37876,7 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37857
37876
|
}, 8, ["disabled", "onClick"])
|
|
37858
37877
|
]),
|
|
37859
37878
|
default: I(() => [
|
|
37860
|
-
k("div",
|
|
37879
|
+
k("div", z6, [
|
|
37861
37880
|
k("span", D6, [
|
|
37862
37881
|
k("span", N6, W(m.code), 1),
|
|
37863
37882
|
k("span", H6, W(m.name), 1)
|
|
@@ -37880,7 +37899,7 @@ const B6 = Object.assign(Object.assign({}, mn.props), {
|
|
|
37880
37899
|
}), j6 = { class: "flex flex-col" }, q6 = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, U6 = { class: "font-medium" }, X6 = { class: "flex flex-col text-sc-dark-grey" }, Y6 = { key: 0 }, K6 = { class: "font-medium" }, G6 = { class: "font-medium" }, Z6 = { class: "font-medium" }, Q6 = { class: "font-medium" }, J6 = { class: "font-medium" }, e8 = { class: "font-medium" }, t8 = { class: "font-medium" }, n8 = { class: "font-medium" }, i8 = { class: "font-medium" }, s8 = { class: "font-medium" }, r8 = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, o8 = { class: "font-medium" }, a8 = { class: "flex flex-col text-sc-dark-grey" }, l8 = { class: "font-medium" }, c8 = { class: "font-medium" }, u8 = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, d8 = { class: "font-medium" }, h8 = { class: "text-sc-dark-grey" }, f8 = { class: "font-medium" }, g8 = {
|
|
37881
37900
|
key: 1,
|
|
37882
37901
|
class: "text-base font-medium text-nowrap"
|
|
37883
|
-
}, p8 = {},
|
|
37902
|
+
}, p8 = {}, Lp = /* @__PURE__ */ re({
|
|
37884
37903
|
...p8,
|
|
37885
37904
|
__name: "order-item-params",
|
|
37886
37905
|
props: {
|
|
@@ -38068,7 +38087,7 @@ function v8(t, e) {
|
|
|
38068
38087
|
}, null, -1)
|
|
38069
38088
|
])]);
|
|
38070
38089
|
}
|
|
38071
|
-
const y8 =
|
|
38090
|
+
const y8 = Le({ name: "tabler-truck-filled", render: v8 }), b8 = {
|
|
38072
38091
|
viewBox: "0 0 24 24",
|
|
38073
38092
|
width: "1.2em",
|
|
38074
38093
|
height: "1.2em"
|
|
@@ -38087,7 +38106,7 @@ function _8(t, e) {
|
|
|
38087
38106
|
], -1)
|
|
38088
38107
|
])]);
|
|
38089
38108
|
}
|
|
38090
|
-
const w8 =
|
|
38109
|
+
const w8 = Le({ name: "tabler-truck-delivery", render: _8 }), x8 = {
|
|
38091
38110
|
viewBox: "0 0 24 24",
|
|
38092
38111
|
width: "1.2em",
|
|
38093
38112
|
height: "1.2em"
|
|
@@ -38106,7 +38125,7 @@ function k8(t, e) {
|
|
|
38106
38125
|
], -1)
|
|
38107
38126
|
])]);
|
|
38108
38127
|
}
|
|
38109
|
-
const C8 =
|
|
38128
|
+
const C8 = Le({ name: "tabler-truck-loading", render: k8 }), S8 = { class: "flex flex-col gap-1" }, $8 = {
|
|
38110
38129
|
key: 0,
|
|
38111
38130
|
class: "flex flex-row gap-1 text-sm text-sc-grey"
|
|
38112
38131
|
}, P8 = {
|
|
@@ -38154,7 +38173,7 @@ const C8 = ze({ name: "tabler-truck-loading", render: k8 }), S8 = { class: "flex
|
|
|
38154
38173
|
}), B8 = { class: "flex flex-col gap-2.5" }, A8 = { class: "text-base" }, I8 = ["href"], E8 = {
|
|
38155
38174
|
key: 1,
|
|
38156
38175
|
class: "text-sc-grey"
|
|
38157
|
-
}, O8 = {},
|
|
38176
|
+
}, O8 = {}, L8 = /* @__PURE__ */ re({
|
|
38158
38177
|
...O8,
|
|
38159
38178
|
__name: "order-common-info",
|
|
38160
38179
|
props: {
|
|
@@ -38184,7 +38203,7 @@ const C8 = ze({ name: "tabler-truck-loading", render: k8 }), S8 = { class: "flex
|
|
|
38184
38203
|
var h, g;
|
|
38185
38204
|
const d = (h = e.order.status) == null ? void 0 : h.slug;
|
|
38186
38205
|
return !!d && (((g = e.highlightSettings) == null ? void 0 : g.statuses.includes(d)) ?? !1);
|
|
38187
|
-
}), o = F(() => uf(e.order).filter((d) => [
|
|
38206
|
+
}), o = F(() => uf(e.order).filter((d) => [Lt.OnOrder, Lt.NotInStock].includes(d))), a = (d) => {
|
|
38188
38207
|
var h;
|
|
38189
38208
|
return ((h = e.highlightSettings) == null ? void 0 : h.markers.includes(d)) ?? !1;
|
|
38190
38209
|
}, l = F(() => e.fields.includes(tt.CreatedAt)), c = F(
|
|
@@ -38233,8 +38252,8 @@ const C8 = ze({ name: "tabler-truck-loading", render: k8 }), S8 = { class: "flex
|
|
|
38233
38252
|
}, null, 8, ["delivery"])) : H("", !0)
|
|
38234
38253
|
]));
|
|
38235
38254
|
}
|
|
38236
|
-
}),
|
|
38237
|
-
...
|
|
38255
|
+
}), z8 = {}, zp = /* @__PURE__ */ re({
|
|
38256
|
+
...z8,
|
|
38238
38257
|
__name: "order-payment",
|
|
38239
38258
|
props: {
|
|
38240
38259
|
payment: {}
|
|
@@ -38270,7 +38289,7 @@ const C8 = ze({ name: "tabler-truck-loading", render: k8 }), S8 = { class: "flex
|
|
|
38270
38289
|
src: t.src,
|
|
38271
38290
|
"previewed-img-props": { style: "max-width: 80vw; max-height: 80vh; object-fit: contain; border: 12px solid white;" }
|
|
38272
38291
|
}, null, 8, ["src"]), [
|
|
38273
|
-
[
|
|
38292
|
+
[Fc, !1]
|
|
38274
38293
|
])
|
|
38275
38294
|
], 64));
|
|
38276
38295
|
}
|
|
@@ -38316,7 +38335,7 @@ const C8 = ze({ name: "tabler-truck-loading", render: k8 }), S8 = { class: "flex
|
|
|
38316
38335
|
setup(t) {
|
|
38317
38336
|
const e = t, n = et(Wh, null), i = F(() => {
|
|
38318
38337
|
if (n != null)
|
|
38319
|
-
return
|
|
38338
|
+
return Bm(n) ?? void 0;
|
|
38320
38339
|
}), s = F(() => {
|
|
38321
38340
|
const { item: c, inactive: u } = e;
|
|
38322
38341
|
return u ?? (!!c.isRemoved || !!c.replacementId);
|
|
@@ -38396,7 +38415,7 @@ const C8 = ze({ name: "tabler-truck-loading", render: k8 }), S8 = { class: "flex
|
|
|
38396
38415
|
"show-code": ""
|
|
38397
38416
|
}, null, 8, ["item", "inactive"]),
|
|
38398
38417
|
k("div", X8, [
|
|
38399
|
-
D(
|
|
38418
|
+
D(Lp, {
|
|
38400
38419
|
item: t.product,
|
|
38401
38420
|
"event-emitter": t.eventEmitter,
|
|
38402
38421
|
"allow-edit": t.allowEdit,
|
|
@@ -38511,7 +38530,7 @@ function iP(t, e) {
|
|
|
38511
38530
|
}, null, -1)
|
|
38512
38531
|
])]);
|
|
38513
38532
|
}
|
|
38514
|
-
const sP =
|
|
38533
|
+
const sP = Le({ name: "ion-trash-outline", render: iP }), rP = {
|
|
38515
38534
|
key: 0,
|
|
38516
38535
|
class: "!mb-3 !mt-0 text-base font-semibold"
|
|
38517
38536
|
}, oP = { class: "mb-1 flex flex-wrap items-baseline justify-between gap-2" }, aP = { class: "flex items-baseline gap-2" }, lP = { class: "text-base font-bold text-sc-dark-grey" }, cP = {
|
|
@@ -38523,7 +38542,7 @@ const sP = ze({ name: "ion-trash-outline", render: iP }), rP = {
|
|
|
38523
38542
|
}, dP = {}, hP = /* @__PURE__ */ re({
|
|
38524
38543
|
...dP,
|
|
38525
38544
|
__name: "order-items-list",
|
|
38526
|
-
props: /* @__PURE__ */
|
|
38545
|
+
props: /* @__PURE__ */ jl({
|
|
38527
38546
|
products: {},
|
|
38528
38547
|
maxHeight: { default: void 0 },
|
|
38529
38548
|
eventEmitter: { default: void 0 },
|
|
@@ -38541,7 +38560,7 @@ const sP = ze({ name: "ion-trash-outline", render: iP }), rP = {
|
|
|
38541
38560
|
}),
|
|
38542
38561
|
emits: ["update:selectedRowKeys"],
|
|
38543
38562
|
setup(t) {
|
|
38544
|
-
const e = t, n =
|
|
38563
|
+
const e = t, n = Gh(t, "selectedRowKeys"), i = (v) => ka(v, "ord"), s = F(() => i(e.products)), r = (v) => e.isItemInactive ? e.isItemInactive(v) : !!v.isRemoved || !!v.replacementId, o = (v) => e.isItemSelectable ? e.isItemSelectable(v) : !r(v), a = (v, m) => {
|
|
38545
38564
|
m ? n.value.includes(v) || (n.value = [...n.value, v]) : n.value = n.value.filter((y) => y !== v);
|
|
38546
38565
|
}, l = (v) => e.selectable ? {
|
|
38547
38566
|
class: n.value.includes(v.id) ? void 0 : "opacity-60"
|
|
@@ -38599,7 +38618,7 @@ const sP = ze({ name: "ion-trash-outline", render: iP }), rP = {
|
|
|
38599
38618
|
resizable: !0,
|
|
38600
38619
|
width: 180,
|
|
38601
38620
|
rowSpan: c,
|
|
38602
|
-
render: (y) => G(
|
|
38621
|
+
render: (y) => G(Lp, {
|
|
38603
38622
|
class: r(y) ? "line-through opacity-50" : "",
|
|
38604
38623
|
item: y,
|
|
38605
38624
|
eventEmitter: e.eventEmitter,
|
|
@@ -38854,7 +38873,7 @@ const sP = ze({ name: "ion-trash-outline", render: iP }), rP = {
|
|
|
38854
38873
|
], 64)) : H("", !0),
|
|
38855
38874
|
t.order.payment ? (b(), R(ye, { key: 4 }, [
|
|
38856
38875
|
s[6] || (s[6] = k("span", null, "Оплата", -1)),
|
|
38857
|
-
D(
|
|
38876
|
+
D(zp, {
|
|
38858
38877
|
payment: t.order.payment,
|
|
38859
38878
|
class: "col-span-2"
|
|
38860
38879
|
}, null, 8, ["payment"])
|
|
@@ -38909,7 +38928,7 @@ function $P(t, e) {
|
|
|
38909
38928
|
}, null, -1)
|
|
38910
38929
|
])]);
|
|
38911
38930
|
}
|
|
38912
|
-
const PP =
|
|
38931
|
+
const PP = Le({ name: "ion-copy-outline", render: $P }), TP = { class: "flex flex-col items-stretch gap-1.5 text-base" }, RP = {}, FP = /* @__PURE__ */ re({
|
|
38913
38932
|
...RP,
|
|
38914
38933
|
__name: "order-external-links",
|
|
38915
38934
|
props: {
|
|
@@ -38974,7 +38993,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
38974
38993
|
}), MP = /* @__PURE__ */ mi(FP, [["__scopeId", "data-v-6a3ae627"]]), BP = { key: 0 }, AP = { class: "text-sc-dark-grey my-2 text-center" }, IP = {
|
|
38975
38994
|
key: 1,
|
|
38976
38995
|
class: "text-sc-dark-grey my-2 text-center"
|
|
38977
|
-
}, EP = { key: 2 }, OP = { class: "text-sc-dark-grey mt-4 text-right font-bold" },
|
|
38996
|
+
}, EP = { key: 2 }, OP = { class: "text-sc-dark-grey mt-4 text-right font-bold" }, LP = { class: "text-sc-primary" }, zP = { class: "mb-4 max-w-xs empty:hidden" }, DP = {}, NP = /* @__PURE__ */ re({
|
|
38978
38997
|
...DP,
|
|
38979
38998
|
__name: "order-info",
|
|
38980
38999
|
props: {
|
|
@@ -39030,13 +39049,13 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39030
39049
|
}, null, 8, ["products", "event-emitter", "allow-edit"]),
|
|
39031
39050
|
k("div", OP, [
|
|
39032
39051
|
u[2] || (u[2] = ne(" ИТОГО: ", -1)),
|
|
39033
|
-
k("span",
|
|
39052
|
+
k("span", LP, W(l.value) + " ₽", 1)
|
|
39034
39053
|
]),
|
|
39035
39054
|
D(CP, {
|
|
39036
39055
|
order: r.value,
|
|
39037
39056
|
"onClick:clientName": u[0] || (u[0] = (h) => i("click:client-name", r.value.client, h))
|
|
39038
39057
|
}, null, 8, ["order"]),
|
|
39039
|
-
k("div",
|
|
39058
|
+
k("div", zP, [
|
|
39040
39059
|
D(MP, {
|
|
39041
39060
|
order: r.value,
|
|
39042
39061
|
"show-erp-link": ""
|
|
@@ -39063,7 +39082,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39063
39082
|
};
|
|
39064
39083
|
return (r, o) => {
|
|
39065
39084
|
var u;
|
|
39066
|
-
const a =
|
|
39085
|
+
const a = zc, l = Ee, c = Pa;
|
|
39067
39086
|
return ((u = i.value) == null ? void 0 : u.length) > 0 ? (b(), J(c, {
|
|
39068
39087
|
key: 0,
|
|
39069
39088
|
options: i.value,
|
|
@@ -39090,7 +39109,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39090
39109
|
}), VP = {}, jP = /* @__PURE__ */ re({
|
|
39091
39110
|
...VP,
|
|
39092
39111
|
__name: "orders-list",
|
|
39093
|
-
props: /* @__PURE__ */
|
|
39112
|
+
props: /* @__PURE__ */ jl({
|
|
39094
39113
|
fields: {},
|
|
39095
39114
|
showAttachedUserColumn: { type: Boolean, default: !1 },
|
|
39096
39115
|
orderContextButtonsConfig: {},
|
|
@@ -39111,9 +39130,9 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39111
39130
|
checkedRowKeys: { default: () => [] },
|
|
39112
39131
|
checkedRowKeysModifiers: {}
|
|
39113
39132
|
}),
|
|
39114
|
-
emits: /* @__PURE__ */
|
|
39133
|
+
emits: /* @__PURE__ */ jl(["click:client-name", "dblclick:row", "update:pagination", "update:sort"], ["update:checkedRowKeys"]),
|
|
39115
39134
|
setup(t, { expose: e, emit: n }) {
|
|
39116
|
-
const i = t, s = n, r =
|
|
39135
|
+
const i = t, s = n, r = Gh(t, "checkedRowKeys"), o = (B, X) => {
|
|
39117
39136
|
X ? r.value.includes(B) || (r.value = [...r.value, B]) : r.value = r.value.filter((ie) => ie !== B);
|
|
39118
39137
|
}, a = () => gn(
|
|
39119
39138
|
i.sort ?? [
|
|
@@ -39131,13 +39150,13 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39131
39150
|
onDblclick: () => s("dblclick:row", B)
|
|
39132
39151
|
}, ie = [];
|
|
39133
39152
|
i.selectable && r.value.length > 0 && !r.value.includes(B.id) && ie.push("opacity-60");
|
|
39134
|
-
const le = f.value, te = new Set(uf(B).filter((we) => le.markers.includes(we))), Z = {}, ve = [
|
|
39153
|
+
const le = f.value, te = new Set(uf(B).filter((we) => le.markers.includes(we))), Z = {}, ve = [Lt.NotInStock, Lt.OnOrder, Lt.LargeOrder].find((we) => te.has(we));
|
|
39135
39154
|
if (ve) {
|
|
39136
39155
|
const we = Zo(ve);
|
|
39137
39156
|
ie.push("order-id-marked", ve), Z["--sc-order-id-bg"] = we.backgroundColor, Z["--sc-order-id-text"] = we.textOnBackgroundColor;
|
|
39138
39157
|
}
|
|
39139
|
-
if (te.has(
|
|
39140
|
-
const we = Zo(
|
|
39158
|
+
if (te.has(Lt.NextDayDelivery)) {
|
|
39159
|
+
const we = Zo(Lt.NextDayDelivery);
|
|
39141
39160
|
ie.push("delivery-date-marked"), Z["--sc-delivery-date-bg"] = we.backgroundColor, Z["--sc-delivery-date-text"] = we.textOnBackgroundColor;
|
|
39142
39161
|
}
|
|
39143
39162
|
return B.status.slug && le.statuses.includes(B.status.slug) && (ie.push("order-status-highlighted", B.status.slug), wm(Z, bv(B.status.slug))), $r(Z) || (X.style = Z), ie.length > 0 && (X.class = ie.join(" ")), X;
|
|
@@ -39261,7 +39280,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39261
39280
|
resizable: !0,
|
|
39262
39281
|
width: 115,
|
|
39263
39282
|
minWidth: 95,
|
|
39264
|
-
render: (Y) => Y.payment ? G(
|
|
39283
|
+
render: (Y) => Y.payment ? G(zp, { payment: Y.payment }) : G("span", { class: "text-base" }, "—")
|
|
39265
39284
|
},
|
|
39266
39285
|
{
|
|
39267
39286
|
title: "Напр. продаж",
|
|
@@ -39337,7 +39356,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39337
39356
|
title: "Заказ",
|
|
39338
39357
|
resizable: !0,
|
|
39339
39358
|
// eslint-disable-next-line vue/max-len
|
|
39340
|
-
render: (Y) => G(
|
|
39359
|
+
render: (Y) => G(L8, { order: Y, fields: X, orderUrl: i.orderUrl, highlightSettings: f.value })
|
|
39341
39360
|
}
|
|
39342
39361
|
];
|
|
39343
39362
|
case pt.laptop: {
|
|
@@ -39375,9 +39394,9 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39375
39394
|
S(), i.refreshInterval && (A.value = setInterval(() => {
|
|
39376
39395
|
O();
|
|
39377
39396
|
}, i.refreshInterval));
|
|
39378
|
-
},
|
|
39397
|
+
}, L = (B) => {
|
|
39379
39398
|
y.value.itemCount !== B.meta.total && (y.value.itemCount = B.meta.total), y.value.page !== B.meta.currentPage && (y.value.page = B.meta.currentPage), y.value.pageCount !== B.meta.lastPage && (y.value.pageCount = B.meta.lastPage), y.value.pageSize !== B.meta.perPage && (y.value.pageSize = B.meta.perPage), c.value = B.data;
|
|
39380
|
-
},
|
|
39399
|
+
}, z = () => {
|
|
39381
39400
|
var B, X, ie;
|
|
39382
39401
|
i.filters && ((B = C.value) == null || B.abort(), C.value = null, (X = M.value) == null || X.abort(), M.value = null, x.value = null, (ie = _.value) == null || ie.abort(), _.value = new AbortController(), u.value = !0, Yn.getInstance(qr).getOrders(
|
|
39383
39402
|
i.filters,
|
|
@@ -39386,7 +39405,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39386
39405
|
{ page: y.value.page, pageSize: y.value.pageSize },
|
|
39387
39406
|
_.value.signal
|
|
39388
39407
|
).then((le) => {
|
|
39389
|
-
|
|
39408
|
+
L(le), u.value = !1;
|
|
39390
39409
|
}).catch((le) => {
|
|
39391
39410
|
if ((le == null ? void 0 : le.name) !== "CanceledError")
|
|
39392
39411
|
throw u.value = !1, le;
|
|
@@ -39425,12 +39444,12 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39425
39444
|
throw le;
|
|
39426
39445
|
}
|
|
39427
39446
|
return N(B) ? (c.value = c.value.map((le) => B.data.find((te) => te.id === le.id) ?? le), x.value = null, !1) : (x.value = B, !0);
|
|
39428
|
-
}, se = () => x.value ? (
|
|
39447
|
+
}, se = () => x.value ? (L(x.value), x.value = null, !0) : !1, oe = () => {
|
|
39429
39448
|
x.value = null;
|
|
39430
39449
|
}, q = (B) => {
|
|
39431
|
-
y.value.page = B,
|
|
39450
|
+
y.value.page = B, z(), s("update:pagination", y.value);
|
|
39432
39451
|
}, j = (B) => {
|
|
39433
|
-
y.value.pageSize = B, y.value.page = 1,
|
|
39452
|
+
y.value.pageSize = B, y.value.page = 1, z(), s("update:pagination", y.value);
|
|
39434
39453
|
}, ee = (B) => {
|
|
39435
39454
|
if (qh(B))
|
|
39436
39455
|
l.value = a();
|
|
@@ -39443,23 +39462,23 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39443
39462
|
const ie = X;
|
|
39444
39463
|
ie.sortOrder = ie.key === (B == null ? void 0 : B.columnKey) && (B != null && B.sorter) && B.order !== !1 ? B.order : !1;
|
|
39445
39464
|
}
|
|
39446
|
-
}),
|
|
39465
|
+
}), z(), s("update:sort", l.value);
|
|
39447
39466
|
}, K = () => {
|
|
39448
39467
|
m.value = v(), d.value = window.innerHeight, g.value = h();
|
|
39449
39468
|
};
|
|
39450
39469
|
return xe(
|
|
39451
39470
|
() => i.filters,
|
|
39452
39471
|
() => {
|
|
39453
|
-
y.value.page = 1,
|
|
39472
|
+
y.value.page = 1, z(), E();
|
|
39454
39473
|
}
|
|
39455
39474
|
), xe(
|
|
39456
39475
|
() => i.sort,
|
|
39457
39476
|
() => {
|
|
39458
|
-
l.value = a(), y.value.page = 1,
|
|
39477
|
+
l.value = a(), y.value.page = 1, z(), E();
|
|
39459
39478
|
}
|
|
39460
39479
|
), lt(() => {
|
|
39461
39480
|
K(), window.addEventListener("resize", K), wt(() => {
|
|
39462
|
-
|
|
39481
|
+
z(), E();
|
|
39463
39482
|
});
|
|
39464
39483
|
}), Pr(() => {
|
|
39465
39484
|
var B, X, ie;
|
|
@@ -39469,7 +39488,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
39469
39488
|
* Перезагружает список заказов с индикатором загрузки, сохраняя текущие фильтры, сортировку и страницу
|
|
39470
39489
|
* (например, когда виджет счётчиков сообщил об изменении количества заказов).
|
|
39471
39490
|
*/
|
|
39472
|
-
reload:
|
|
39491
|
+
reload: z,
|
|
39473
39492
|
/**
|
|
39474
39493
|
* Проверяет в фоне, изменился ли список; при изменениях откладывает новую страницу до `applyPendingUpdate`.
|
|
39475
39494
|
*/
|
|
@@ -40271,7 +40290,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
40271
40290
|
}, ET = {}, pF = /* @__PURE__ */ re({
|
|
40272
40291
|
...ET,
|
|
40273
40292
|
__name: "address-suggestion",
|
|
40274
|
-
props: /* @__PURE__ */
|
|
40293
|
+
props: /* @__PURE__ */ Mc({
|
|
40275
40294
|
disabled: { type: Boolean },
|
|
40276
40295
|
value: {},
|
|
40277
40296
|
clearable: { type: Boolean },
|
|
@@ -40363,7 +40382,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
40363
40382
|
}, null, 8, ["value", "class", "clearable", "disabled", "loading", "options", "to", "onUpdate:value"]);
|
|
40364
40383
|
};
|
|
40365
40384
|
}
|
|
40366
|
-
}), OT = { class: "m-0.5 flex flex-col p-0.5" },
|
|
40385
|
+
}), OT = { class: "m-0.5 flex flex-col p-0.5" }, LT = { class: "font-medium" }, zT = { class: "flex flex-row gap-1 text-xs font-light text-blue-800" }, DT = { key: 0 }, NT = { key: 1 }, HT = {}, WT = /* @__PURE__ */ re({
|
|
40367
40386
|
...HT,
|
|
40368
40387
|
__name: "bank-suggestion-label",
|
|
40369
40388
|
props: {
|
|
@@ -40372,8 +40391,8 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
40372
40391
|
},
|
|
40373
40392
|
setup(t) {
|
|
40374
40393
|
return (e, n) => (b(), R("div", OT, [
|
|
40375
|
-
k("span",
|
|
40376
|
-
k("span",
|
|
40394
|
+
k("span", LT, W(t.bank.name), 1),
|
|
40395
|
+
k("span", zT, [
|
|
40377
40396
|
t.bank.bic ? (b(), R("span", DT, " БИК: " + W(t.bank.bic), 1)) : H("", !0),
|
|
40378
40397
|
t.bank.inn ? (b(), R("span", NT, " ИНН: " + W(t.bank.inn), 1)) : H("", !0)
|
|
40379
40398
|
])
|
|
@@ -40382,7 +40401,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
40382
40401
|
}), VT = {}, mF = /* @__PURE__ */ re({
|
|
40383
40402
|
...VT,
|
|
40384
40403
|
__name: "bank-suggestion",
|
|
40385
|
-
props: /* @__PURE__ */
|
|
40404
|
+
props: /* @__PURE__ */ Mc({
|
|
40386
40405
|
disabled: { type: Boolean },
|
|
40387
40406
|
value: {},
|
|
40388
40407
|
clearable: { type: Boolean },
|
|
@@ -40513,7 +40532,7 @@ const PP = ze({ name: "ion-copy-outline", render: $P }), TP = { class: "flex fle
|
|
|
40513
40532
|
}), GT = {}, vF = /* @__PURE__ */ re({
|
|
40514
40533
|
...GT,
|
|
40515
40534
|
__name: "org-suggestion",
|
|
40516
|
-
props: /* @__PURE__ */
|
|
40535
|
+
props: /* @__PURE__ */ Mc({
|
|
40517
40536
|
disabled: { type: Boolean },
|
|
40518
40537
|
value: {},
|
|
40519
40538
|
clearable: { type: Boolean },
|
|
@@ -40636,7 +40655,7 @@ export {
|
|
|
40636
40655
|
lf as ORDER_MARKER_COLORS,
|
|
40637
40656
|
_v as ORDER_MARKER_NAMES,
|
|
40638
40657
|
vv as ORDER_STATUS_COLORS,
|
|
40639
|
-
|
|
40658
|
+
Lt as OrderMarkerEnum,
|
|
40640
40659
|
tt as OrdersTableFields,
|
|
40641
40660
|
xu as PRODUCT_REQUIRED_HINT,
|
|
40642
40661
|
qd as Point,
|
|
@@ -40666,15 +40685,15 @@ export {
|
|
|
40666
40685
|
FR as ScDialogHeader,
|
|
40667
40686
|
e2 as ScDynamicConfigurator,
|
|
40668
40687
|
kR as ScEmail,
|
|
40669
|
-
|
|
40688
|
+
zR as ScExternalLink,
|
|
40670
40689
|
Ky as ScImageGallery,
|
|
40671
|
-
|
|
40690
|
+
LS as ScInlineEditableItem,
|
|
40672
40691
|
Jd as ScInlineView,
|
|
40673
40692
|
X_ as ScKozyrekConfigurator,
|
|
40674
40693
|
cb as ScKozyrekConfiguratorParamsForm,
|
|
40675
40694
|
W_ as ScKozyrekConfiguratorPreview,
|
|
40676
|
-
|
|
40677
|
-
|
|
40695
|
+
L_ as ScKozyrekConfiguratorTemplates,
|
|
40696
|
+
LR as ScKpiGrid,
|
|
40678
40697
|
qy as ScLightGallery,
|
|
40679
40698
|
fF as ScManagerOperatorSelect,
|
|
40680
40699
|
gF as ScManagerSelect,
|
|
@@ -40685,15 +40704,15 @@ export {
|
|
|
40685
40704
|
bw as ScMosquitoConfiguratorMeasurementInstructions,
|
|
40686
40705
|
Xd as ScMosquitoConfiguratorPreview,
|
|
40687
40706
|
Nh as ScOrderColorSwatch,
|
|
40688
|
-
|
|
40707
|
+
L8 as ScOrderCommonInfo,
|
|
40689
40708
|
cu as ScOrderDeliveryLabel,
|
|
40690
40709
|
CP as ScOrderDetails,
|
|
40691
40710
|
MP as ScOrderExternalLinks,
|
|
40692
40711
|
cF as ScOrderHighlightSettings,
|
|
40693
40712
|
NP as ScOrderInfo,
|
|
40694
|
-
|
|
40713
|
+
Lp as ScOrderItemParams,
|
|
40695
40714
|
fP as ScOrderItemsList,
|
|
40696
|
-
|
|
40715
|
+
zp as ScOrderPayment,
|
|
40697
40716
|
K8 as ScOrderProductInfo,
|
|
40698
40717
|
vP as ScOrderStatusHistory,
|
|
40699
40718
|
eP as ScOrderStatusTag,
|
|
@@ -40715,7 +40734,7 @@ export {
|
|
|
40715
40734
|
ux as ScSandwichConfiguratorForm,
|
|
40716
40735
|
Xx as ScSandwichM2Configurator,
|
|
40717
40736
|
Vx as ScSandwichM2ConfiguratorForm,
|
|
40718
|
-
|
|
40737
|
+
L6 as ScSearchableProductSelect,
|
|
40719
40738
|
E6 as ScSearchableReferenceSelect,
|
|
40720
40739
|
wR as ScSetClientPriceFormItem,
|
|
40721
40740
|
uF as ScShortTextOrderInfo,
|
|
@@ -40762,7 +40781,7 @@ export {
|
|
|
40762
40781
|
XR as priceCoefficientsReferenceList,
|
|
40763
40782
|
YR as productFilesTypesReferenceList,
|
|
40764
40783
|
yt as renderConfig,
|
|
40765
|
-
|
|
40784
|
+
zt as resetInputValidation,
|
|
40766
40785
|
KR as resourceReferencesList,
|
|
40767
40786
|
GR as salesDirectionsReferenceList,
|
|
40768
40787
|
iF as searchCityReferenceDataHandler,
|
|
@@ -40775,7 +40794,7 @@ export {
|
|
|
40775
40794
|
lR as showAppVersion,
|
|
40776
40795
|
nF as sourcePrimaryInterestOptionsList,
|
|
40777
40796
|
aR as useCompactLayout,
|
|
40778
|
-
|
|
40797
|
+
Lc as useHoverSupport,
|
|
40779
40798
|
gv as vCopy,
|
|
40780
40799
|
Gs as vFocusNext,
|
|
40781
40800
|
ZR as warehousesReferenceList
|