@snabcentr/vue-ui-lib 3.63.0 → 3.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +2 -2
- package/dist/release_notes.tmp +2 -4
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +579 -587
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +10 -10
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/package.json +3 -2
package/dist/sc-vue-ui-lib.js
CHANGED
|
@@ -6,9 +6,9 @@ var lg = (t, e, i) => e in t ? ag(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var $ = (t, e, i) => lg(t, typeof e != "symbol" ? e + "" : e, i), uc = (t, e, i) => e.has(t) || cc("Cannot " + i);
|
|
7
7
|
var ni = (t, e, i) => (uc(t, e, "read from private field"), i ? i.call(t) : e.get(t)), ga = (t, e, i) => e.has(t) ? cc("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), dc = (t, e, i, n) => (uc(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i);
|
|
8
8
|
import { isString as ln, groupBy as cg, get as go, isEmpty as Sl, noop as Pt, some as Ei, isFunction as Rt, isNil as ut, find as hc, forOwn as $d, forEach as ms, sortBy as $l, cloneDeep as ei, reduce as Pd, every as fc, isArray as dt, keys as ug, debounce as Ki, sum as gc, isUndefined as Qs, unset as dg, isNull as Td, isObject as hg, merge as Nr, upperFirst as fg, map as gg, constant as Io, union as mg } from "lodash-es";
|
|
9
|
-
import { Comment as Eo, Text as Rd, Fragment as we, markRaw as He, createElementBlock as M, openBlock as _, createElementVNode as P, defineComponent as ae, inject as et, computed as I, ref as X, readonly as mo, normalizeClass as Ye, createVNode as N, createCommentVNode as H, renderSlot as Re, unref as A, createTextVNode as ie, toDisplayString as U, Transition as xs, withCtx as E, createBlock as ne, useTemplateRef as Ue, onMounted as ct, onBeforeUnmount as Ri, onUnmounted as Br, normalizeStyle as nr, renderList as Et, h as
|
|
9
|
+
import { Comment as Eo, Text as Rd, Fragment as we, markRaw as He, createElementBlock as M, openBlock as _, createElementVNode as P, defineComponent as ae, inject as et, computed as I, ref as X, readonly as mo, normalizeClass as Ye, createVNode as N, createCommentVNode as H, renderSlot as Re, unref as A, createTextVNode as ie, toDisplayString as U, Transition as xs, withCtx as E, createBlock as ne, useTemplateRef as Ue, onMounted as ct, onBeforeUnmount as Ri, onUnmounted as Br, normalizeStyle as nr, renderList as Et, h as V, watch as ke, withKeys as sr, withModifiers as cn, nextTick as xt, onBeforeMount as Ar, toRaw as fi, withDirectives as rr, provide as Pi, createSlots as Yn, getCurrentInstance as Fd, Teleport as pg, toRef as st, mergeProps as Pl, onActivated as Bd, onDeactivated as Ad, isVNode as vg, shallowRef as yg, watchEffect as Bn, vShow as Md, cloneVNode as bg, mergeDefaults as Tl } from "vue";
|
|
10
10
|
import { NTooltip as Mr, NButton as Ne, NDropdown as Oo, NTag as Id, NPopover as Mn, NText as Un, NScrollbar as Ed, NCheckbox as In, NSpin as Ts, NForm as Rs, NFormItem as Ve, NSelect as Oi, NInputNumber as bt, NInput as fn, NModal as Rl, NDrawer as Od, NDrawerContent as zd, NDataTable as Fl, NAlert as Ld, NInputGroup as Dd, NInputGroupLabel as _g, NDatePicker as wg, NUpload as xg, NUploadDragger as kg, NList as Cg, NListItem as Sg, NH1 as $g, NAutoComplete as Bl } from "naive-ui";
|
|
11
|
-
import { useBaseConfigStateStore as mi, OrderItemBase as pt, ClientProduct as Xi, Identity as Pg, ConfiguratorsEnum as Gt, ClientCategory as Tg, Reference as Rg, useReferencesStore as Ot, PriceCoefficientEnum as Fg, CalculationTypeEnum as Hr, PriceCoefficient as Bg, UnitsHelper as ki, DateTimeProvider as Ag, HttpRequester as hn, ProductCategoryDataProvider as Mg, ProductDataProvider as Ig, UserTypeEnum as Wr, Order as Eg, OrdersDataProvider as Ya,
|
|
11
|
+
import { useBaseConfigStateStore as mi, OrderItemBase as pt, ClientProduct as Xi, Identity as Pg, ConfiguratorsEnum as Gt, ClientCategory as Tg, Reference as Rg, useReferencesStore as Ot, PriceCoefficientEnum as Fg, CalculationTypeEnum as Hr, PriceCoefficient as Bg, UnitsHelper as ki, DateTimeProvider as Ag, HttpRequester as hn, ProductCategoryDataProvider as Mg, ProductDataProvider as Ig, UserTypeEnum as Wr, Order as Eg, OrdersDataProvider as Ya, TableDataPagination as Og, Curator as mc, CuratedDirection as zg, ManagerDataFactory as pc, Manager as ma, DataSuggestionProvider as Al, FieldValidationResultData as Lg, ReferenceDataProvider as Dg, ClientDataProvider as Ng } from "@snabcentr/common-lib";
|
|
12
12
|
import { format as Js, endOfDay as Hg, startOfDay as Wg, isTomorrow as Vg } from "date-fns";
|
|
13
13
|
import { parsePhoneNumberWithError as Ml, PhoneNumber as jg, ParseError as qg } from "libphonenumber-js";
|
|
14
14
|
import { objectToSnake as pa } from "ts-case-convert";
|
|
@@ -2008,7 +2008,7 @@ const lp = ["href"], cp = ["src", "alt"], up = {}, dp = /* @__PURE__ */ ae({
|
|
|
2008
2008
|
title: e,
|
|
2009
2009
|
className: "align-top",
|
|
2010
2010
|
resizable: !0,
|
|
2011
|
-
render: (n) =>
|
|
2011
|
+
render: (n) => V(Kn, {
|
|
2012
2012
|
product: n,
|
|
2013
2013
|
costFieldName: t,
|
|
2014
2014
|
eventEmitter: i.eventEmitter,
|
|
@@ -2026,7 +2026,7 @@ const lp = ["href"], cp = ["src", "alt"], up = {}, dp = /* @__PURE__ */ ae({
|
|
|
2026
2026
|
width: "32",
|
|
2027
2027
|
render: (s) => {
|
|
2028
2028
|
var r, o;
|
|
2029
|
-
return
|
|
2029
|
+
return V(In, {
|
|
2030
2030
|
checked: !!((r = e.isProductItemSelected) != null && r.call(e, s)),
|
|
2031
2031
|
disabled: ((o = e.isProductItemSelected) == null ? void 0 : o.call(e, s)) === "disabled",
|
|
2032
2032
|
// Отключение чекбокса не зависит от выбора, если нужно — измените логику здесь.
|
|
@@ -2042,7 +2042,7 @@ const lp = ["href"], cp = ["src", "alt"], up = {}, dp = /* @__PURE__ */ ae({
|
|
|
2042
2042
|
key: "name",
|
|
2043
2043
|
title: "Наименование",
|
|
2044
2044
|
className: "align-top",
|
|
2045
|
-
render: (s) =>
|
|
2045
|
+
render: (s) => V(yo, {
|
|
2046
2046
|
product: s,
|
|
2047
2047
|
eventEmitter: e.eventEmitter,
|
|
2048
2048
|
showSlugs: e.showSlugs,
|
|
@@ -2066,7 +2066,7 @@ const lp = ["href"], cp = ["src", "alt"], up = {}, dp = /* @__PURE__ */ ae({
|
|
|
2066
2066
|
title: "Наименование",
|
|
2067
2067
|
className: "align-top",
|
|
2068
2068
|
resizable: !0,
|
|
2069
|
-
render: (s) =>
|
|
2069
|
+
render: (s) => V(yo, {
|
|
2070
2070
|
product: s,
|
|
2071
2071
|
eventEmitter: e.eventEmitter,
|
|
2072
2072
|
showSlugs: e.showSlugs,
|
|
@@ -2088,7 +2088,7 @@ const lp = ["href"], cp = ["src", "alt"], up = {}, dp = /* @__PURE__ */ ae({
|
|
|
2088
2088
|
title: "Цена",
|
|
2089
2089
|
className: "align-top",
|
|
2090
2090
|
resizable: !0,
|
|
2091
|
-
render: (s) =>
|
|
2091
|
+
render: (s) => V(Kn, {
|
|
2092
2092
|
product: s,
|
|
2093
2093
|
costFieldName: "cost",
|
|
2094
2094
|
additionalThroughFieldName: "retailCost",
|
|
@@ -2104,7 +2104,7 @@ const lp = ["href"], cp = ["src", "alt"], up = {}, dp = /* @__PURE__ */ ae({
|
|
|
2104
2104
|
title: "",
|
|
2105
2105
|
className: "align-top",
|
|
2106
2106
|
width: "50",
|
|
2107
|
-
render: (s) =>
|
|
2107
|
+
render: (s) => V(jd, {
|
|
2108
2108
|
product: s,
|
|
2109
2109
|
eventEmitter: e.eventEmitter,
|
|
2110
2110
|
showProductAddToCartButton: e.showProductAddToCartButton,
|
|
@@ -5557,12 +5557,12 @@ var zs = Math.min, Ls = Math.max, Rv = Math.ceil, Fv = Math.floor, Bv = new fe()
|
|
|
5557
5557
|
let n, s, r, o, a, l, c, u, d, f, g, h, m, p, v, y = this.length * Math.min(Math.max(e, 0), 1);
|
|
5558
5558
|
const C = this.vertices.length, w = C - 1;
|
|
5559
5559
|
let F = null, B = null;
|
|
5560
|
-
for (let ue = 0, Y = this._lengths.length,
|
|
5561
|
-
if (
|
|
5562
|
-
this._closed ? (n = Ti(ue, C), s = Ti(ue - 1, C), ue === 0 && (n = s, s = ue)) : (n = ue, s = Math.min(Math.max(ue - 1, 0), w)), F = this.vertices[n], B = this.vertices[s], y -=
|
|
5560
|
+
for (let ue = 0, Y = this._lengths.length, K = 0; ue < Y; ue++) {
|
|
5561
|
+
if (K + this._lengths[ue] >= y) {
|
|
5562
|
+
this._closed ? (n = Ti(ue, C), s = Ti(ue - 1, C), ue === 0 && (n = s, s = ue)) : (n = ue, s = Math.min(Math.max(ue - 1, 0), w)), F = this.vertices[n], B = this.vertices[s], y -= K, this._lengths[ue] !== 0 ? e = y / this._lengths[ue] : e = 0;
|
|
5563
5563
|
break;
|
|
5564
5564
|
}
|
|
5565
|
-
|
|
5565
|
+
K += this._lengths[ue];
|
|
5566
5566
|
}
|
|
5567
5567
|
if (F === null || B === null)
|
|
5568
5568
|
return null;
|
|
@@ -8879,7 +8879,7 @@ var ft = {
|
|
|
8879
8879
|
let h, m, p;
|
|
8880
8880
|
const v = f[0], y = v.toLowerCase();
|
|
8881
8881
|
c = f.slice(1).trim().match(on.path), r = v === y;
|
|
8882
|
-
let C, w, F, B, b, S, x, T, R, O, z, Z, W, re, ue, Y,
|
|
8882
|
+
let C, w, F, B, b, S, x, T, R, O, z, Z, W, re, ue, Y, K;
|
|
8883
8883
|
switch (y) {
|
|
8884
8884
|
case "z":
|
|
8885
8885
|
if (g >= d)
|
|
@@ -8894,10 +8894,10 @@ var ft = {
|
|
|
8894
8894
|
void 0,
|
|
8895
8895
|
ge.close
|
|
8896
8896
|
);
|
|
8897
|
-
for (let
|
|
8898
|
-
const
|
|
8899
|
-
if (/m/i.test(
|
|
8900
|
-
a =
|
|
8897
|
+
for (let G = n.length - 1; G >= 0; G--) {
|
|
8898
|
+
const q = n[G];
|
|
8899
|
+
if (/m/i.test(q.command)) {
|
|
8900
|
+
a = q;
|
|
8901
8901
|
break;
|
|
8902
8902
|
}
|
|
8903
8903
|
}
|
|
@@ -8955,7 +8955,7 @@ var ft = {
|
|
|
8955
8955
|
), a = h, l = h.controls.left;
|
|
8956
8956
|
break;
|
|
8957
8957
|
case "a":
|
|
8958
|
-
C = a.x, w = a.y, W = parseFloat(c[0]), re = parseFloat(c[1]), ue = parseFloat(c[2]), Y = parseFloat(c[3]),
|
|
8958
|
+
C = a.x, w = a.y, W = parseFloat(c[0]), re = parseFloat(c[1]), ue = parseFloat(c[2]), Y = parseFloat(c[3]), K = parseFloat(c[4]), x = parseFloat(c[5]), T = parseFloat(c[6]), r && (x += C, T += w), Z = new De(x, T), Z.command = ge.arc, Z.rx = W, Z.ry = re, Z.xAxisRotation = ue, Z.largeArcFlag = Y, Z.sweepFlag = K, h = Z, a = Z, l = void 0;
|
|
8959
8959
|
break;
|
|
8960
8960
|
}
|
|
8961
8961
|
h && (Array.isArray(h) ? n = n.concat(h) : n.push(h));
|
|
@@ -9247,10 +9247,10 @@ var Bh = ec, Zc = {
|
|
|
9247
9247
|
},
|
|
9248
9248
|
path: {
|
|
9249
9249
|
render: function(t, e, i) {
|
|
9250
|
-
let n, s, r, o, a, l, c, u, d, f, g, h, m, p, v, y, C, w, F, B, b, S, x, T, R, O, z, Z, W, re, ue, Y,
|
|
9251
|
-
if (
|
|
9250
|
+
let n, s, r, o, a, l, c, u, d, f, g, h, m, p, v, y, C, w, F, B, b, S, x, T, R, O, z, Z, W, re, ue, Y, K, G;
|
|
9251
|
+
if (G = this.parent && this.parent._renderer ? this.parent._renderer.opacity : 1, W = this._mask, re = this._clip, a = this._opacity * (G || 1), l = this._visible, !e && (!l || re || a === 0))
|
|
9252
9252
|
return this;
|
|
9253
|
-
if (he.isFunction(this._renderer.onBeforeRender) && this._renderer.onBeforeRender(), this._update(), n = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, c = this._cap, u = this._join, d = this._miter, f = this._closed, g = this._renderer.vertices, h = g.length, m = h - 1, ue = Yr(n),
|
|
9253
|
+
if (he.isFunction(this._renderer.onBeforeRender) && this._renderer.onBeforeRender(), this._update(), n = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, c = this._cap, u = this._join, d = this._miter, f = this._closed, g = this._renderer.vertices, h = g.length, m = h - 1, ue = Yr(n), K = this.dashes, ue || (t.save(), t.transform(
|
|
9254
9254
|
n[0],
|
|
9255
9255
|
n[3],
|
|
9256
9256
|
n[1],
|
|
@@ -9277,20 +9277,20 @@ var Bh = ec, Zc = {
|
|
|
9277
9277
|
}
|
|
9278
9278
|
r && (t.lineWidth = un(this)), d && (t.miterLimit = d), u && (t.lineJoin = u), !f && c && (t.lineCap = c);
|
|
9279
9279
|
}
|
|
9280
|
-
typeof a == "number" && (t.globalAlpha = a),
|
|
9281
|
-
let
|
|
9280
|
+
typeof a == "number" && (t.globalAlpha = a), K && K.length > 0 && (t.lineDashOffset = K.offset || 0, t.setLineDash(K)), t.beginPath();
|
|
9281
|
+
let q, j, ee, te, D, Q, J;
|
|
9282
9282
|
for (let ce = 0; ce < h; ce++)
|
|
9283
9283
|
switch (y = g[ce], z = y.x, Z = y.y, y.command) {
|
|
9284
9284
|
case ge.close:
|
|
9285
9285
|
t.closePath();
|
|
9286
9286
|
break;
|
|
9287
9287
|
case ge.arc:
|
|
9288
|
-
|
|
9288
|
+
q = y.rx, j = y.ry, ee = y.xAxisRotation, te = y.largeArcFlag, D = y.sweepFlag, p = f ? Ti(ce - 1, h) : tl(ce - 1, 0), v = g[p], Q = v.x, J = v.y, Xe.renderSvgArcCommand(
|
|
9289
9289
|
t,
|
|
9290
9290
|
Q,
|
|
9291
9291
|
J,
|
|
9292
|
-
V,
|
|
9293
9292
|
q,
|
|
9293
|
+
j,
|
|
9294
9294
|
te,
|
|
9295
9295
|
D,
|
|
9296
9296
|
ee,
|
|
@@ -9311,7 +9311,7 @@ var Bh = ec, Zc = {
|
|
|
9311
9311
|
return f && t.closePath(), !re && !i && (Xe.isHidden.test(o) || (Y = o._renderer && o._renderer.offset, Y && (t.save(), t.translate(-o._renderer.offset.x, -o._renderer.offset.y), t.scale(o._renderer.scale.x, o._renderer.scale.y)), t.fill(), Y && t.restore()), Xe.isHidden.test(s) || (Y = s._renderer && s._renderer.offset, Y && (t.save(), t.translate(
|
|
9312
9312
|
-s._renderer.offset.x,
|
|
9313
9313
|
-s._renderer.offset.y
|
|
9314
|
-
), t.scale(s._renderer.scale.x, s._renderer.scale.y), t.lineWidth = r / s._renderer.scale.x), t.stroke(), Y && t.restore())), ue || t.restore(), re && !i && t.clip(),
|
|
9314
|
+
), t.scale(s._renderer.scale.x, s._renderer.scale.y), t.lineWidth = r / s._renderer.scale.x), t.stroke(), Y && t.restore())), ue || t.restore(), re && !i && t.clip(), K && K.length > 0 && t.setLineDash(Ca), he.isFunction(this._renderer.onAfterRender) && this._renderer.onAfterRender(), this.flagReset();
|
|
9315
9315
|
}
|
|
9316
9316
|
},
|
|
9317
9317
|
points: {
|
|
@@ -10065,7 +10065,7 @@ var Ai = {
|
|
|
10065
10065
|
B && (y.lineWidth = un(e)), R && (y.miterLimit = R), T && (y.lineJoin = T), !O && x && (y.lineCap = x);
|
|
10066
10066
|
}
|
|
10067
10067
|
typeof S == "number" && (y.globalAlpha = S), z && z.length > 0 && (y.lineDashOffset = z.offset || 0, y.setLineDash(z));
|
|
10068
|
-
let
|
|
10068
|
+
let K, G, q, j, ee, te, D, Q;
|
|
10069
10069
|
y.save(), y.scale(w.x, w.y), y.translate(ue, Y), y.beginPath();
|
|
10070
10070
|
for (let J = 0; J < p.length; J++) {
|
|
10071
10071
|
const ce = p[J];
|
|
@@ -10074,27 +10074,27 @@ var Ai = {
|
|
|
10074
10074
|
y.closePath();
|
|
10075
10075
|
break;
|
|
10076
10076
|
case ge.arc:
|
|
10077
|
-
|
|
10077
|
+
G = ce.rx, q = ce.ry, j = ce.xAxisRotation, ee = ce.largeArcFlag, te = ce.sweepFlag, i = O ? Ti(J - 1, Z) : Math.max(J - 1, 0), n = p[i], D = n.x, Q = n.y, s0.renderSvgArcCommand(
|
|
10078
10078
|
y,
|
|
10079
10079
|
D,
|
|
10080
10080
|
Q,
|
|
10081
|
-
|
|
10082
|
-
|
|
10081
|
+
G,
|
|
10082
|
+
q,
|
|
10083
10083
|
ee,
|
|
10084
10084
|
te,
|
|
10085
|
-
|
|
10085
|
+
j,
|
|
10086
10086
|
g,
|
|
10087
10087
|
h
|
|
10088
10088
|
);
|
|
10089
10089
|
break;
|
|
10090
10090
|
case ge.curve:
|
|
10091
|
-
i = O ? Ti(J - 1, Z) : Math.max(J - 1, 0), n = p[i], c = n.controls && n.controls.right || fe.zero, u = ce.controls && ce.controls.left || fe.zero, n._relative ? (a = c.x + n.x, l = c.y + n.y) : (a = c.x, l = c.y), ce._relative ? (r = u.x + ce.x, o = u.y + ce.y) : (r = u.x, o = u.y), y.bezierCurveTo(a, l, r, o, g, h), J >= W && O && (s =
|
|
10091
|
+
i = O ? Ti(J - 1, Z) : Math.max(J - 1, 0), n = p[i], c = n.controls && n.controls.right || fe.zero, u = ce.controls && ce.controls.left || fe.zero, n._relative ? (a = c.x + n.x, l = c.y + n.y) : (a = c.x, l = c.y), ce._relative ? (r = u.x + ce.x, o = u.y + ce.y) : (r = u.x, o = u.y), y.bezierCurveTo(a, l, r, o, g, h), J >= W && O && (s = K, d = ce.controls && ce.controls.right || fe.zero, f = s.controls && s.controls.left || fe.zero, ce._relative ? (a = d.x + ce.x, l = d.y + ce.y) : (a = d.x, l = d.y), s._relative ? (r = f.x + s.x, o = f.y + s.y) : (r = f.x, o = f.y), g = s.x, h = s.y, y.bezierCurveTo(a, l, r, o, g, h));
|
|
10092
10092
|
break;
|
|
10093
10093
|
case ge.line:
|
|
10094
10094
|
y.lineTo(g, h);
|
|
10095
10095
|
break;
|
|
10096
10096
|
case ge.move:
|
|
10097
|
-
|
|
10097
|
+
K = ce, y.moveTo(g, h);
|
|
10098
10098
|
break;
|
|
10099
10099
|
}
|
|
10100
10100
|
}
|
|
@@ -14539,12 +14539,12 @@ const Ds = Math.min, Ns = Math.max, B0 = Math.ceil, A0 = Math.floor, M0 = new Be
|
|
|
14539
14539
|
let s, r, o, a, l, c, u, d, f, g, h, m, p, v, y, C = this.length * Math.min(Math.max(i, 0), 1);
|
|
14540
14540
|
const w = this.vertices.length, F = w - 1;
|
|
14541
14541
|
let B = null, b = null;
|
|
14542
|
-
for (let Y = 0,
|
|
14543
|
-
if (
|
|
14544
|
-
this._closed ? (s = ir(Y, w), r = ir(Y - 1, w), Y === 0 && (s = r, r = Y)) : (s = Y, r = Math.min(Math.max(Y - 1, 0), F)), B = this.vertices[s], b = this.vertices[r], C -=
|
|
14542
|
+
for (let Y = 0, K = this._lengths.length, G = 0; Y < K; Y++) {
|
|
14543
|
+
if (G + this._lengths[Y] >= C) {
|
|
14544
|
+
this._closed ? (s = ir(Y, w), r = ir(Y - 1, w), Y === 0 && (s = r, r = Y)) : (s = Y, r = Math.min(Math.max(Y - 1, 0), F)), B = this.vertices[s], b = this.vertices[r], C -= G, this._lengths[Y] !== 0 ? i = C / this._lengths[Y] : i = 0;
|
|
14545
14545
|
break;
|
|
14546
14546
|
}
|
|
14547
|
-
|
|
14547
|
+
G += this._lengths[Y];
|
|
14548
14548
|
}
|
|
14549
14549
|
if (B === null || b === null)
|
|
14550
14550
|
return null;
|
|
@@ -18727,206 +18727,206 @@ const Uo = He({ name: "ion-close", render: X0 }), Y0 = { class: "mr-3 flex flex-
|
|
|
18727
18727
|
const i = t, n = e, s = Ue("drawing-container");
|
|
18728
18728
|
let r = [], o = [], a = [], l = null;
|
|
18729
18729
|
const c = 0.75, u = I(
|
|
18730
|
-
() => i.value.configuratorParams.linesAngles.map((Y,
|
|
18730
|
+
() => i.value.configuratorParams.linesAngles.map((Y, K) => new Tn(i.value.configuratorParams.linesWidths[K], Y, `A-${K + 1}`))
|
|
18731
18731
|
), d = I(() => i.value.configuratorParams.colorSide === "bottom"), f = I(
|
|
18732
18732
|
() => {
|
|
18733
|
-
var Y,
|
|
18734
|
-
return i.value.configuratorParams.startTailType && ((Y = i.settings.startTailConfigs) != null && Y[i.value.configuratorParams.startTailType]) ? (
|
|
18733
|
+
var Y, K;
|
|
18734
|
+
return i.value.configuratorParams.startTailType && ((Y = i.settings.startTailConfigs) != null && Y[i.value.configuratorParams.startTailType]) ? (K = i.settings.startTailConfigs) == null ? void 0 : K[i.value.configuratorParams.startTailType].points : [];
|
|
18735
18735
|
}
|
|
18736
18736
|
), g = I(() => {
|
|
18737
|
-
var
|
|
18738
|
-
const Y = i.value.configuratorParams.endTailType !== void 0 && ((
|
|
18737
|
+
var K;
|
|
18738
|
+
const Y = i.value.configuratorParams.endTailType !== void 0 && ((K = i.settings.endTailConfigs) == null ? void 0 : K[i.value.configuratorParams.endTailType]);
|
|
18739
18739
|
return !Y || !Y.points ? [] : Y.points.map(
|
|
18740
|
-
(
|
|
18740
|
+
(G, q) => Array.isArray(G) ? new Tn(G[0], G[1], `A-${q + 1}`) : new Tn(G.width, G.angle, `A-${q + 1}`)
|
|
18741
18741
|
);
|
|
18742
|
-
}), h = (Y,
|
|
18742
|
+
}), h = (Y, K = !1) => {
|
|
18743
18743
|
Y[0].start.x = 0, Y[0].start.y = 0;
|
|
18744
|
-
let
|
|
18745
|
-
for (let
|
|
18746
|
-
const
|
|
18747
|
-
|
|
18748
|
-
const te = (!
|
|
18749
|
-
if (Y[
|
|
18750
|
-
const D =
|
|
18751
|
-
Y[D].start.x = Y[
|
|
18744
|
+
let G = 0;
|
|
18745
|
+
for (let q = 0; q < Y.length; q++) {
|
|
18746
|
+
const j = Y[q], ee = Y[q - 1] ?? new Tn(0, G);
|
|
18747
|
+
G += !K || q > 1 ? ee.angle : 0;
|
|
18748
|
+
const te = (!K || q > 0 ? j.angle : 0) + G;
|
|
18749
|
+
if (Y[q].end.x = j.width * Math.cos(te * Math.PI / 180) + Y[q].start.x, Y[q].end.y = j.width * Math.sin(te * Math.PI / 180) + Y[q].start.y, q < Y.length - 1) {
|
|
18750
|
+
const D = q + 1;
|
|
18751
|
+
Y[D].start.x = Y[q].end.x, Y[D].start.y = Y[q].end.y;
|
|
18752
18752
|
}
|
|
18753
18753
|
}
|
|
18754
18754
|
return Y;
|
|
18755
|
-
}, m = (Y,
|
|
18756
|
-
let ee = h([...
|
|
18757
|
-
|
|
18755
|
+
}, m = (Y, K, G, q, j = !1) => {
|
|
18756
|
+
let ee = h([...G, ...q]);
|
|
18757
|
+
K.length > 0 && (ee = [...h(K), ...ee]);
|
|
18758
18758
|
let te = 0, D = 0, Q = 0, J = 0;
|
|
18759
18759
|
ee.forEach((Le) => {
|
|
18760
18760
|
te = Math.min(te, Le.start.x, Le.end.x), D = Math.min(D, Le.start.y, Le.end.y), Q = Math.max(Q, Le.start.x, Le.end.x), J = Math.max(J, Le.start.y, Le.end.y);
|
|
18761
18761
|
});
|
|
18762
18762
|
let ce, _e;
|
|
18763
|
-
te === 0 && D === 0 && Q === 0 && J === 0 ? (ce = 1, _e = 1) : (ce = Y.width / Math.abs(Q - te), _e = (
|
|
18763
|
+
te === 0 && D === 0 && Q === 0 && J === 0 ? (ce = 1, _e = 1) : (ce = Y.width / Math.abs(Q - te), _e = (j ? Y.height : Y.height - ht.colorSideLabel.size) / Math.abs(J - D));
|
|
18764
18764
|
const Ee = Math.min(ce, _e);
|
|
18765
18765
|
return te = te < 0 ? -te * Ee : 0, D = D < 0 ? -D * Ee : 0, [Ee, te, D];
|
|
18766
18766
|
}, p = (Y) => {
|
|
18767
|
-
const
|
|
18768
|
-
return
|
|
18769
|
-
}, v = (Y,
|
|
18767
|
+
const K = new So([Y]);
|
|
18768
|
+
return K._size = ht.anchorPoint.size, K.fill = ht.anchorPoint.color, K.stroke = "transparent", K._linewidth = ht.anchorPoint.strokeSize, a.push(K), K;
|
|
18769
|
+
}, v = (Y, K) => {
|
|
18770
18770
|
if (a = [], i.settings.allowChangeFirstPoint) {
|
|
18771
|
-
const
|
|
18772
|
-
|
|
18773
|
-
|
|
18771
|
+
const G = Y[0], q = new Be(G.vertices[0].x, G.vertices[0].y);
|
|
18772
|
+
q.bind(de.Types.change, () => {
|
|
18773
|
+
G.vertices[0].copy(q);
|
|
18774
18774
|
});
|
|
18775
|
-
const
|
|
18776
|
-
|
|
18775
|
+
const j = p(q);
|
|
18776
|
+
K.add(j);
|
|
18777
18777
|
}
|
|
18778
|
-
Y.forEach((
|
|
18779
|
-
const
|
|
18778
|
+
Y.forEach((G, q) => {
|
|
18779
|
+
const j = Y[q + 1], ee = new Be(G.vertices[1].x, G.vertices[1].y);
|
|
18780
18780
|
ee.bind(de.Types.change, () => {
|
|
18781
|
-
|
|
18781
|
+
G.vertices[1].copy(ee), j !== void 0 && j.vertices[0].copy(ee);
|
|
18782
18782
|
});
|
|
18783
18783
|
const te = p(ee);
|
|
18784
|
-
|
|
18784
|
+
K.add(te);
|
|
18785
18785
|
});
|
|
18786
|
-
}, y = (Y) => Y * (Math.PI / 180), C = (Y,
|
|
18787
|
-
const
|
|
18788
|
-
Y.position.x =
|
|
18789
|
-
const
|
|
18790
|
-
Y.rotation = y(
|
|
18791
|
-
}, w = (Y,
|
|
18792
|
-
if (
|
|
18786
|
+
}, y = (Y) => Y * (Math.PI / 180), C = (Y, K, G) => {
|
|
18787
|
+
const q = K.vertices.length - 1;
|
|
18788
|
+
Y.position.x = K.vertices[q].x, Y.position.y = K.vertices[q].y;
|
|
18789
|
+
const j = Math.atan2(K.vertices[q].y - K.vertices[0].y, K.vertices[q].x - K.vertices[0].x);
|
|
18790
|
+
Y.rotation = y(G) + j;
|
|
18791
|
+
}, w = (Y, K, G) => {
|
|
18792
|
+
if (K.vertices[0] === void 0)
|
|
18793
18793
|
return;
|
|
18794
|
-
Y.position.x =
|
|
18795
|
-
const
|
|
18796
|
-
Y.rotation = y(
|
|
18797
|
-
}, F = (Y,
|
|
18798
|
-
const
|
|
18794
|
+
Y.position.x = K.vertices[0].x, Y.position.y = K.vertices[0].y;
|
|
18795
|
+
const q = K.vertices.length - 1, j = Math.atan2(K.vertices[q].y - K.vertices[0].y, K.vertices[q].x - K.vertices[0].x);
|
|
18796
|
+
Y.rotation = y(G) + j;
|
|
18797
|
+
}, F = (Y, K, G) => {
|
|
18798
|
+
const q = new Rn();
|
|
18799
18799
|
if (Y.length === 0)
|
|
18800
|
-
return
|
|
18801
|
-
const
|
|
18800
|
+
return q;
|
|
18801
|
+
const j = [];
|
|
18802
18802
|
return [...Y].reverse().forEach((ee, te) => {
|
|
18803
|
-
te !== 0 && ee.angle > 0 && (ee.angle *= -1),
|
|
18804
|
-
}), Y = h(
|
|
18803
|
+
te !== 0 && ee.angle > 0 && (ee.angle *= -1), j.push(ee);
|
|
18804
|
+
}), Y = h(j, !0), w(q, K, Y[0].angle), [K.vertices[0], K.vertices[1]].forEach((ee) => {
|
|
18805
18805
|
ee.bind(de.Types.change, () => {
|
|
18806
|
-
w(
|
|
18806
|
+
w(q, K, Y[0].angle);
|
|
18807
18807
|
});
|
|
18808
18808
|
}), Y.forEach((ee) => {
|
|
18809
|
-
const te = ee.start.x *
|
|
18810
|
-
ce.linewidth = ht.line.size, ce.stroke = ht.line.color,
|
|
18811
|
-
}),
|
|
18812
|
-
}, B = (Y,
|
|
18813
|
-
const
|
|
18814
|
-
return Y.length === 0 || (Y = h(Y, !0), C(
|
|
18815
|
-
|
|
18816
|
-
C(
|
|
18809
|
+
const te = ee.start.x * G, D = ee.end.x * G, Q = ee.start.y * G, J = ee.end.y * G, ce = new uo(te, Q, D, J);
|
|
18810
|
+
ce.linewidth = ht.line.size, ce.stroke = ht.line.color, q.add(ce);
|
|
18811
|
+
}), q;
|
|
18812
|
+
}, B = (Y, K, G) => {
|
|
18813
|
+
const q = new Rn();
|
|
18814
|
+
return Y.length === 0 || (Y = h(Y, !0), C(q, K, Y[0].angle), [K.vertices[0], K.vertices[1]].forEach((j) => {
|
|
18815
|
+
j.bind(de.Types.change, () => {
|
|
18816
|
+
C(q, K, Y[0].angle);
|
|
18817
18817
|
});
|
|
18818
|
-
}), Y.forEach((
|
|
18819
|
-
const ee =
|
|
18820
|
-
J.linewidth = ht.line.size, J.stroke = ht.line.color,
|
|
18821
|
-
})),
|
|
18822
|
-
}, b = (Y,
|
|
18823
|
-
const
|
|
18818
|
+
}), Y.forEach((j) => {
|
|
18819
|
+
const ee = j.start.x * G, te = j.end.x * G, D = j.start.y * G, Q = j.end.y * G, J = new uo(ee, D, te, Q);
|
|
18820
|
+
J.linewidth = ht.line.size, J.stroke = ht.line.color, q.add(J);
|
|
18821
|
+
})), q;
|
|
18822
|
+
}, b = (Y, K, G, q) => {
|
|
18823
|
+
const j = K.vertices[0].x + (K.vertices[1].x - K.vertices[0].x) / 2 - 8 * Math.sin(Y.angle * Math.PI / 180), ee = K.vertices[0].y + (K.vertices[1].y - K.vertices[0].y) / 2 - 8 * Math.cos(Y.angle * Math.PI / 180), te = new Ks(Y.label, j + 10, ee - 10);
|
|
18824
18824
|
let D;
|
|
18825
|
-
te.size = ht.lineLabel.size, te.weight = 600, te.fill = ht.lineLabel.color, te.id += 1, te.rotation = ht.lineLabel.rotation,
|
|
18825
|
+
te.size = ht.lineLabel.size, te.weight = 600, te.fill = ht.lineLabel.color, te.id += 1, te.rotation = ht.lineLabel.rotation, q > 0 && (D = new Ks(`${Y.angle}°`, K.vertices[0].x + 25, K.vertices[0].y - 25), D.size = ht.angleLabel.size, D.weight = 600, D.fill = ht.angleLabel.color, D.rotation = ht.angleLabel.rotation, D.id += q, r.push(D), G.add(D)), G.add(te), x(te, K, 0, D), x(te, K, 1);
|
|
18826
18826
|
}, S = () => {
|
|
18827
|
-
const { size: Y } = ht.colorSideLabel,
|
|
18827
|
+
const { size: Y } = ht.colorSideLabel, K = 0, G = 0, q = d.value ? Y / 2 : Y / 2 - Y, j = d.value ? Y / 2 - Y : Y / 2, ee = new Rn();
|
|
18828
18828
|
if (!l)
|
|
18829
18829
|
return ee;
|
|
18830
|
-
const te = 5, D = Math.atan2(
|
|
18831
|
-
new Ge(G, V, 0, 0, 0, 0, nn.Commands.move),
|
|
18832
|
-
new Ge(K, q, 0, 0, 0, 0, nn.Commands.line),
|
|
18833
|
-
new Ge(K - te * Math.cos(D - Math.PI / 4), q - te * Math.sin(D - Math.PI / 4), 0, 0, 0, 0, nn.Commands.line),
|
|
18830
|
+
const te = 5, D = Math.atan2(j - q, G - K), Q = [
|
|
18834
18831
|
new Ge(K, q, 0, 0, 0, 0, nn.Commands.move),
|
|
18835
|
-
new Ge(
|
|
18832
|
+
new Ge(G, j, 0, 0, 0, 0, nn.Commands.line),
|
|
18833
|
+
new Ge(G - te * Math.cos(D - Math.PI / 4), j - te * Math.sin(D - Math.PI / 4), 0, 0, 0, 0, nn.Commands.line),
|
|
18834
|
+
new Ge(G, j, 0, 0, 0, 0, nn.Commands.move),
|
|
18835
|
+
new Ge(G - te * Math.cos(D + Math.PI / 4), j - te * Math.sin(D + Math.PI / 4), 0, 0, 0, 0, nn.Commands.line)
|
|
18836
18836
|
], J = new Je(Q, !1, !1, !0);
|
|
18837
18837
|
J.noFill(), J.cap = "round", J.join = "round", J.linewidth = Y / 7, J.stroke = ht.colorSideLabel.color, ee.add(J);
|
|
18838
18838
|
const ce = new Ks(d.value ? "Цвет снизу" : "Цвет сверху", 10, 0);
|
|
18839
18839
|
ce.size = Y, ce.weight = 600, ce.fill = ht.colorSideLabel.color, ce.alignment = "left", ee.add(ce);
|
|
18840
18840
|
const _e = ee.getBoundingClientRect();
|
|
18841
18841
|
return ee.position.x = (l.width - _e.width) * c + 10, ee.position.y = d.value ? l.height + _e.height * 2 : _e.height / 2, ee;
|
|
18842
|
-
}, x = (Y,
|
|
18843
|
-
|
|
18844
|
-
const
|
|
18845
|
-
Y.position.x = te + 10, Y.position.y = D - 10, Y.rotation = -0.5,
|
|
18842
|
+
}, x = (Y, K, G, q) => {
|
|
18843
|
+
K.vertices[G].bind(de.Types.change, () => {
|
|
18844
|
+
const j = K.vertices.length - 1, ee = Math.atan2(K.vertices[0].y - K.vertices[j].y, K.vertices[0].x - K.vertices[j].x) * 180 / Math.PI, te = K.vertices[0].x + (K.vertices[j].x - K.vertices[0].x) / 2 - 8 * Math.sin(ee * Math.PI / 180), D = K.vertices[0].y + (K.vertices[j].y - K.vertices[0].y) / 2 - 8 * Math.cos(ee * Math.PI / 180);
|
|
18845
|
+
Y.position.x = te + 10, Y.position.y = D - 10, Y.rotation = -0.5, q && (q.position.x = K.vertices[0].x + 25, q.position.y = K.vertices[0].y - 25);
|
|
18846
18846
|
});
|
|
18847
|
-
}, T = (Y,
|
|
18847
|
+
}, T = (Y, K, G, q, j = !1) => {
|
|
18848
18848
|
var ot;
|
|
18849
|
-
if (Y.clear(),
|
|
18849
|
+
if (Y.clear(), G.length === 0) {
|
|
18850
18850
|
Y.update();
|
|
18851
18851
|
return;
|
|
18852
18852
|
}
|
|
18853
|
-
const ee = h(
|
|
18854
|
-
|
|
18853
|
+
const ee = h(G), [te, D, Q] = m(Y, K, ee, q, j), J = new Rn(), ce = new Array(), _e = new Array();
|
|
18854
|
+
j || (r = [], o = []), ee.forEach((ye, Ht) => {
|
|
18855
18855
|
const We = ye.start.x * te + D, ii = ye.end.x * te + D, yi = ye.start.y * te + Q, Li = ye.end.y * te + Q, jt = new uo(We, yi, ii, Li);
|
|
18856
|
-
jt.linewidth =
|
|
18856
|
+
jt.linewidth = j ? ht.previewLine.size : ht.line.size, jt.stroke = j ? ht.previewLine.color : ht.line.color, o.push(jt), ce.push(jt), J.add(jt), !j && ye.label !== "" && b(ye, jt, J, Ht);
|
|
18857
18857
|
});
|
|
18858
18858
|
const Ee = ce.at(-1);
|
|
18859
18859
|
let Le = J.getBoundingClientRect();
|
|
18860
|
-
if (!
|
|
18860
|
+
if (!j) {
|
|
18861
18861
|
const ye = S();
|
|
18862
18862
|
_e.push(ye);
|
|
18863
18863
|
}
|
|
18864
|
-
if (
|
|
18865
|
-
const ye = F(
|
|
18864
|
+
if (K.length > 0) {
|
|
18865
|
+
const ye = F(K, ce[0], te);
|
|
18866
18866
|
J.add(ye);
|
|
18867
18867
|
}
|
|
18868
|
-
if (
|
|
18869
|
-
const ye = B(
|
|
18868
|
+
if (q.length > 0 && Ee) {
|
|
18869
|
+
const ye = B(q, Ee, te);
|
|
18870
18870
|
J.add(ye);
|
|
18871
18871
|
}
|
|
18872
|
-
if (_e.push(J), Y.makeGroup(_e), Le = J.getBoundingClientRect(), J.position.x = 0 - Le.left + (Y.width - Le.width) / (2 * (
|
|
18872
|
+
if (_e.push(J), Y.makeGroup(_e), Le = J.getBoundingClientRect(), J.position.x = 0 - Le.left + (Y.width - Le.width) / (2 * (j ? 1 : c)), J.position.y = 0 - Le.top + (Y.height - Le.height) / (2 * (j ? 1 : c)), Y.update(), !j) {
|
|
18873
18873
|
const ye = ((ot = i.value.configuratorParams) == null ? void 0 : ot.colorSide) === "top";
|
|
18874
18874
|
J.position.y = J.position.y + ht.colorSideLabel.size * Number(ye), v(ce, J), Y.update();
|
|
18875
18875
|
}
|
|
18876
|
-
}, R = (Y,
|
|
18877
|
-
if (Y && !
|
|
18878
|
-
const
|
|
18876
|
+
}, R = (Y, K) => {
|
|
18877
|
+
if (Y && !K.isNewRec()) {
|
|
18878
|
+
const G = new nn({
|
|
18879
18879
|
width: Y.scrollWidth,
|
|
18880
18880
|
height: Y.scrollHeight
|
|
18881
18881
|
});
|
|
18882
|
-
|
|
18882
|
+
G.appendTo(Y), T(G, [], K.points, [], !0);
|
|
18883
18883
|
}
|
|
18884
18884
|
}, O = () => {
|
|
18885
18885
|
l && T(l, f.value, u.value, g.value, !1);
|
|
18886
|
-
}, z = (Y) => Y * (180 / Math.PI), Z = (Y,
|
|
18887
|
-
const
|
|
18888
|
-
let te = Math.atan2(
|
|
18886
|
+
}, z = (Y) => Y * (180 / Math.PI), Z = (Y, K) => {
|
|
18887
|
+
const G = Y[1].x - Y[0].x, q = Y[1].y - Y[0].y, j = K[1].x - K[0].x, ee = K[1].y - K[0].y;
|
|
18888
|
+
let te = Math.atan2(G * ee - q * j, G * j + q * ee);
|
|
18889
18889
|
return te = z(te), Math.round(te) * -1;
|
|
18890
18890
|
}, W = (Y) => {
|
|
18891
|
-
const
|
|
18892
|
-
const ee = q
|
|
18891
|
+
const K = o.map((G, q, j) => {
|
|
18892
|
+
const ee = j[q - 1] ?? {
|
|
18893
18893
|
vertices: [
|
|
18894
18894
|
{ x: -10, y: 0 },
|
|
18895
18895
|
{ x: 0, y: 0 }
|
|
18896
18896
|
]
|
|
18897
18897
|
};
|
|
18898
|
-
let te = Math.ceil(
|
|
18899
|
-
const D = r[
|
|
18900
|
-
te < (
|
|
18901
|
-
const Q = Z(
|
|
18902
|
-
return D && (D.value = `${Q}°`), new Tn(te, Q, `A-${
|
|
18898
|
+
let te = Math.ceil(G._length / Y / i.settings.lineWidthStep) * i.settings.lineWidthStep;
|
|
18899
|
+
const D = r[q - 1];
|
|
18900
|
+
te < (j.length > 1 ? i.settings.minLineWidth : i.settings.stripMinWidth) && (te = j.length > 1 ? i.settings.minLineWidth : i.settings.stripMinWidth), te > i.settings.maxLineWidth && (te = i.settings.maxLineWidth);
|
|
18901
|
+
const Q = Z(G.vertices, ee.vertices);
|
|
18902
|
+
return D && (D.value = `${Q}°`), new Tn(te, Q, `A-${q + 1}`);
|
|
18903
18903
|
});
|
|
18904
|
-
n("pointer:move",
|
|
18904
|
+
n("pointer:move", K);
|
|
18905
18905
|
}, re = (Y) => {
|
|
18906
|
-
let
|
|
18907
|
-
const
|
|
18908
|
-
|
|
18906
|
+
let K = null, G;
|
|
18907
|
+
const q = (D) => {
|
|
18908
|
+
K = a.find((Q) => {
|
|
18909
18909
|
const J = Q.renderer;
|
|
18910
18910
|
return (J == null ? void 0 : J.elem) === D.target;
|
|
18911
|
-
}), [
|
|
18911
|
+
}), [G] = m(
|
|
18912
18912
|
Y,
|
|
18913
18913
|
f.value,
|
|
18914
18914
|
u.value.map((Q) => Q),
|
|
18915
18915
|
g.value
|
|
18916
18916
|
);
|
|
18917
|
-
},
|
|
18918
|
-
if (
|
|
18919
|
-
const Q =
|
|
18917
|
+
}, j = (D) => {
|
|
18918
|
+
if (K) {
|
|
18919
|
+
const Q = K.renderer, J = Q == null ? void 0 : Q.elem;
|
|
18920
18920
|
if (!J) return;
|
|
18921
18921
|
const ce = J.getBoundingClientRect();
|
|
18922
|
-
|
|
18922
|
+
K.vertices[0].x -= ce.x - (D instanceof MouseEvent ? D.clientX : D.targetTouches[0].clientX) + ht.anchorPoint.size / 2, K.vertices[0].y -= ce.y - (D instanceof MouseEvent ? D.clientY : D.targetTouches[0].clientY) + ht.anchorPoint.size / 2, W(G), Y.update();
|
|
18923
18923
|
}
|
|
18924
18924
|
}, ee = () => {
|
|
18925
|
-
|
|
18925
|
+
K && n("pointer:up", u.value), K = null;
|
|
18926
18926
|
}, te = s.value;
|
|
18927
|
-
te && (te.addEventListener("touchstart",
|
|
18928
|
-
}, ue = (Y,
|
|
18929
|
-
n("remove-custom-template", Y,
|
|
18927
|
+
te && (te.addEventListener("touchstart", q, { passive: !0 }), te.addEventListener("touchend", ee, { passive: !0 }), te.addEventListener("mousedown", q), te.addEventListener("mouseup", ee), te.addEventListener("mousemove", j), te.addEventListener("touchmove", j, { passive: !0 }));
|
|
18928
|
+
}, ue = (Y, K) => {
|
|
18929
|
+
n("remove-custom-template", Y, K);
|
|
18930
18930
|
};
|
|
18931
18931
|
return ct(() => {
|
|
18932
18932
|
s.value && (l = new nn({
|
|
@@ -18942,11 +18942,11 @@ const Uo = He({ name: "ion-close", render: X0 }), Y0 = { class: "mr-3 flex flex-
|
|
|
18942
18942
|
), re(l));
|
|
18943
18943
|
}), Ri(() => {
|
|
18944
18944
|
l && (l.clear(), l = null);
|
|
18945
|
-
}), (Y,
|
|
18945
|
+
}), (Y, K) => (_(), M("div", ey, [
|
|
18946
18946
|
N(J0, {
|
|
18947
18947
|
"select-template-index": t.selectTemplateIndex,
|
|
18948
18948
|
settings: t.settings,
|
|
18949
|
-
"onTemplate:select":
|
|
18949
|
+
"onTemplate:select": K[0] || (K[0] = (G) => n("template:select", G)),
|
|
18950
18950
|
onInitDrawTemplate: R,
|
|
18951
18951
|
onRemoveCustomTemplate: ue
|
|
18952
18952
|
}, null, 8, ["select-template-index", "settings"]),
|
|
@@ -20772,96 +20772,88 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
20772
20772
|
},
|
|
20773
20773
|
emits: ["update:value", "update:params", "submit", "add-item", "remove-item"],
|
|
20774
20774
|
setup(t, { expose: e, emit: i }) {
|
|
20775
|
-
var
|
|
20776
|
-
const n = t, s = i, r = Ue("form-reference"), o = X(ei(n.value)), a = X({ ...n.validation }), l = (
|
|
20777
|
-
var
|
|
20778
|
-
delete a.value[
|
|
20775
|
+
var K;
|
|
20776
|
+
const n = t, s = i, r = Ue("form-reference"), o = X(ei(n.value)), a = X({ ...n.validation }), l = (G) => {
|
|
20777
|
+
var q;
|
|
20778
|
+
delete a.value[G], (q = r.value) == null || q.restoreValidation();
|
|
20779
20779
|
};
|
|
20780
20780
|
ke(
|
|
20781
20781
|
() => n.validation,
|
|
20782
|
-
(
|
|
20783
|
-
a.value = { ...
|
|
20784
|
-
var
|
|
20785
|
-
return (
|
|
20782
|
+
(G) => {
|
|
20783
|
+
a.value = { ...G }, Object.values(G).some((j) => j == null ? void 0 : j.feedback) && xt(() => {
|
|
20784
|
+
var j;
|
|
20785
|
+
return (j = r.value) == null ? void 0 : j.validate(Pt).catch(Pt);
|
|
20786
20786
|
});
|
|
20787
20787
|
},
|
|
20788
20788
|
{ deep: !0 }
|
|
20789
20789
|
);
|
|
20790
20790
|
const c = I(() => n.value.category), u = X(null), d = X(null), f = I(() => c.value.products ?? []), g = I(
|
|
20791
|
-
() => f.value.map((
|
|
20792
|
-
label:
|
|
20793
|
-
value:
|
|
20791
|
+
() => f.value.map((G) => ({
|
|
20792
|
+
label: G.name,
|
|
20793
|
+
value: G.id
|
|
20794
20794
|
}))
|
|
20795
|
-
), h = (
|
|
20796
|
-
const ee =
|
|
20797
|
-
return !ee && !te ? null : ee && te ? `от ${
|
|
20795
|
+
), h = (G, q, j) => {
|
|
20796
|
+
const ee = G != null && G > 0, te = q != null && q > 0;
|
|
20797
|
+
return !ee && !te ? null : ee && te ? `от ${G} ${j} до ${q} ${j}` : ee ? `от ${G} ${j}` : `до ${q} ${j}`;
|
|
20798
20798
|
}, m = I(() => {
|
|
20799
|
-
var
|
|
20800
|
-
return h(n.settings.minWidth, (
|
|
20799
|
+
var G, q;
|
|
20800
|
+
return h(n.settings.minWidth, (q = (G = u.value) == null ? void 0 : G.properties) == null ? void 0 : q.width, "мм");
|
|
20801
20801
|
}), p = I(() => {
|
|
20802
|
-
var
|
|
20803
|
-
return h(n.settings.minLength, (
|
|
20804
|
-
}), v = X(null), y = X(!1)
|
|
20805
|
-
|
|
20806
|
-
|
|
20807
|
-
|
|
20808
|
-
}), I(() => {
|
|
20809
|
-
var K, V;
|
|
20810
|
-
return (V = (K = u.value) == null ? void 0 : K.properties) != null && V.length ? pe.max(u.value.properties.length) : null;
|
|
20811
|
-
});
|
|
20812
|
-
const C = I(() => {
|
|
20813
|
-
var V;
|
|
20814
|
-
const K = {
|
|
20815
|
-
marker: [lt.serverValidation((V = a.value.marker) == null ? void 0 : V.feedback)]
|
|
20802
|
+
var G, q;
|
|
20803
|
+
return h(n.settings.minLength, (q = (G = u.value) == null ? void 0 : G.properties) == null ? void 0 : q.length, "мм");
|
|
20804
|
+
}), v = X(null), y = X(!1), C = I(() => {
|
|
20805
|
+
var q;
|
|
20806
|
+
const G = {
|
|
20807
|
+
marker: [lt.serverValidation((q = a.value.marker) == null ? void 0 : q.feedback)]
|
|
20816
20808
|
};
|
|
20817
|
-
return o.value.configuratorParams.items.forEach((
|
|
20809
|
+
return o.value.configuratorParams.items.forEach((j, ee) => {
|
|
20818
20810
|
var te, D, Q, J, ce, _e, Ee;
|
|
20819
|
-
|
|
20811
|
+
G[`configuratorParams.items.${ee}.width`] = [
|
|
20820
20812
|
pe.required,
|
|
20821
20813
|
pe.min(n.settings.minWidth),
|
|
20822
20814
|
...(D = (te = u.value) == null ? void 0 : te.properties) != null && D.width ? [pe.max(u.value.properties.width)] : [],
|
|
20823
20815
|
pe.step(1),
|
|
20824
20816
|
lt.serverValidation((Q = a.value[`items.${ee}.width`]) == null ? void 0 : Q.feedback)
|
|
20825
|
-
],
|
|
20817
|
+
], G[`configuratorParams.items.${ee}.length`] = [
|
|
20826
20818
|
pe.required,
|
|
20827
20819
|
pe.min(n.settings.minLength),
|
|
20828
20820
|
...(ce = (J = u.value) == null ? void 0 : J.properties) != null && ce.length ? [pe.max(u.value.properties.length)] : [],
|
|
20829
20821
|
pe.step(1),
|
|
20830
20822
|
lt.serverValidation((_e = a.value[`items.${ee}.length`]) == null ? void 0 : _e.feedback)
|
|
20831
|
-
],
|
|
20823
|
+
], G[`configuratorParams.items.${ee}.count`] = [
|
|
20832
20824
|
pe.required,
|
|
20833
20825
|
pe.min(1),
|
|
20834
20826
|
pe.step(1),
|
|
20835
20827
|
lt.serverValidation((Ee = a.value[`items.${ee}.count`]) == null ? void 0 : Ee.feedback)
|
|
20836
20828
|
];
|
|
20837
|
-
}),
|
|
20829
|
+
}), G;
|
|
20838
20830
|
}), w = X(n.settings.canSetDopProdaga ?? !1), F = I(() => o.value.configuratorParams.items.some(
|
|
20839
|
-
(
|
|
20840
|
-
var
|
|
20841
|
-
return !u.value || !
|
|
20831
|
+
(G) => {
|
|
20832
|
+
var q, j;
|
|
20833
|
+
return !u.value || !G.width || G.width < n.settings.minWidth || G.width > (((q = u.value.properties) == null ? void 0 : q.width) ?? 0) || G.length === 0 || G.length < n.settings.minLength || G.length > (((j = u.value.properties) == null ? void 0 : j.length) ?? 0) || !G.count || G.count < 1;
|
|
20842
20834
|
}
|
|
20843
|
-
)), B = I(() => !u.value || F.value || o.value.configuratorParams.items.length === 0), b = X(null), S = (
|
|
20844
|
-
if (!
|
|
20835
|
+
)), B = I(() => !u.value || F.value || o.value.configuratorParams.items.length === 0), b = X(null), S = (G) => {
|
|
20836
|
+
if (!G) {
|
|
20845
20837
|
u.value = null, d.value = null, o.value.product = new Xi(), v.value = null;
|
|
20846
20838
|
return;
|
|
20847
20839
|
}
|
|
20848
|
-
const
|
|
20849
|
-
|
|
20840
|
+
const q = f.value.find((j) => j.id === G);
|
|
20841
|
+
q && (u.value = q, d.value = G, o.value.product = q, ue("product", o.value.product), o.value.configuratorParams.items.forEach((j) => {
|
|
20850
20842
|
var ee, te;
|
|
20851
|
-
(ee =
|
|
20843
|
+
(ee = q.properties) != null && ee.width && j.width > q.properties.width && (j.width = q.properties.width), (te = q.properties) != null && te.length && j.length > q.properties.length && (j.length = q.properties.length);
|
|
20852
20844
|
}), T());
|
|
20853
20845
|
};
|
|
20854
20846
|
let x = !1;
|
|
20855
20847
|
const T = () => {
|
|
20856
20848
|
x = !0, v.value = null, b.value = null, o.value.configuratorParams.calculationId = "", o.value.quantity = 0;
|
|
20857
20849
|
}, R = async () => {
|
|
20858
|
-
var
|
|
20850
|
+
var G;
|
|
20859
20851
|
if (!u.value || o.value.configuratorParams.items.length === 0 || F.value) {
|
|
20860
20852
|
T();
|
|
20861
20853
|
return;
|
|
20862
20854
|
}
|
|
20863
|
-
(
|
|
20864
|
-
if (
|
|
20855
|
+
(G = r.value) == null || G.validate((q) => {
|
|
20856
|
+
if (q) {
|
|
20865
20857
|
T();
|
|
20866
20858
|
return;
|
|
20867
20859
|
}
|
|
@@ -20875,9 +20867,9 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
20875
20867
|
productId: u.value.id,
|
|
20876
20868
|
items: o.value.configuratorParams.items
|
|
20877
20869
|
},
|
|
20878
|
-
callback: (
|
|
20879
|
-
|
|
20880
|
-
ue("quantity",
|
|
20870
|
+
callback: (j) => {
|
|
20871
|
+
j ? (v.value = j, o.value.configuratorParams.calculationId = j.id, o.value.quantity = j.quantity, xt(() => {
|
|
20872
|
+
ue("quantity", j.quantity);
|
|
20881
20873
|
})) : (o.value.configuratorParams.calculationId = "", o.value.quantity = 0, T()), ue("configuratorParams", o.value.configuratorParams), O(), y.value = !1;
|
|
20882
20874
|
}
|
|
20883
20875
|
});
|
|
@@ -20885,25 +20877,25 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
20885
20877
|
T(), y.value = !1;
|
|
20886
20878
|
});
|
|
20887
20879
|
}, O = () => {
|
|
20888
|
-
var
|
|
20889
|
-
if (!((
|
|
20880
|
+
var q;
|
|
20881
|
+
if (!((q = u.value) != null && q.costRub) || !v.value) {
|
|
20890
20882
|
b.value = null;
|
|
20891
20883
|
return;
|
|
20892
20884
|
}
|
|
20893
|
-
const
|
|
20894
|
-
b.value = Math.round(
|
|
20895
|
-
}, z = (
|
|
20896
|
-
var
|
|
20897
|
-
const
|
|
20898
|
-
u.value && ((
|
|
20885
|
+
const G = v.value.quantity * u.value.costRub;
|
|
20886
|
+
b.value = Math.round(G * 100) / 100;
|
|
20887
|
+
}, z = (G) => {
|
|
20888
|
+
var j, ee;
|
|
20889
|
+
const q = o.value.configuratorParams.items[G];
|
|
20890
|
+
u.value && ((j = u.value.properties) != null && j.width && q.width > u.value.properties.width && (q.width = u.value.properties.width), (ee = u.value.properties) != null && ee.length && q.length > u.value.properties.length && (q.length = u.value.properties.length)), ue("configuratorParams", o.value.configuratorParams), T();
|
|
20899
20891
|
}, Z = () => {
|
|
20900
20892
|
o.value.configuratorParams.calculationId = "", o.value.configuratorParams.items.push({
|
|
20901
20893
|
width: 0,
|
|
20902
20894
|
length: 0,
|
|
20903
20895
|
count: 1
|
|
20904
20896
|
}), ue("configuratorParams", o.value.configuratorParams), T(), s("add-item", o.value.configuratorParams.items.length);
|
|
20905
|
-
}, W = (
|
|
20906
|
-
o.value.configuratorParams.items.splice(
|
|
20897
|
+
}, W = (G) => {
|
|
20898
|
+
o.value.configuratorParams.items.splice(G, 1), ue("configuratorParams", o.value.configuratorParams), T(), s("remove-item", G);
|
|
20907
20899
|
}, re = () => {
|
|
20908
20900
|
if (!(B.value || y.value || n.isSubmitProcessing)) {
|
|
20909
20901
|
if (!v.value) {
|
|
@@ -20912,29 +20904,29 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
20912
20904
|
}
|
|
20913
20905
|
s("submit", o.value);
|
|
20914
20906
|
}
|
|
20915
|
-
}, ue = (
|
|
20916
|
-
const
|
|
20917
|
-
|
|
20907
|
+
}, ue = (G, q) => {
|
|
20908
|
+
const j = new pt(n.value);
|
|
20909
|
+
j[G] = q, s("update:value", j);
|
|
20918
20910
|
};
|
|
20919
20911
|
ke(
|
|
20920
20912
|
() => n.value,
|
|
20921
|
-
(
|
|
20922
|
-
const
|
|
20923
|
-
(!
|
|
20913
|
+
(G) => {
|
|
20914
|
+
const q = ei(fi(G));
|
|
20915
|
+
(!q.configuratorParams.items || q.configuratorParams.items.length === 0) && (q.configuratorParams.items = [
|
|
20924
20916
|
{
|
|
20925
20917
|
width: 0,
|
|
20926
20918
|
length: 0,
|
|
20927
20919
|
count: 1
|
|
20928
20920
|
}
|
|
20929
|
-
]), o.value =
|
|
20921
|
+
]), o.value = q, n.value.product && !n.value.product.isNewRec() && (u.value = n.value.product, d.value = n.value.product.id), n.value.product.isNewRec() && (u.value = null, d.value = null), x ? x = !1 : Y();
|
|
20930
20922
|
},
|
|
20931
20923
|
{ deep: !0 }
|
|
20932
20924
|
);
|
|
20933
20925
|
const Y = () => {
|
|
20934
|
-
const { calculationId:
|
|
20935
|
-
|
|
20936
|
-
id:
|
|
20937
|
-
quantity:
|
|
20926
|
+
const { calculationId: G } = o.value.configuratorParams, q = o.value.quantity ?? 0;
|
|
20927
|
+
G && q > 0 && o.value.product && !o.value.product.isNewRec() && (v.value = {
|
|
20928
|
+
id: G,
|
|
20929
|
+
quantity: q,
|
|
20938
20930
|
sheets: []
|
|
20939
20931
|
}, O());
|
|
20940
20932
|
};
|
|
@@ -20944,13 +20936,13 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
20944
20936
|
/**
|
|
20945
20937
|
* Валидирует форму.
|
|
20946
20938
|
*/
|
|
20947
|
-
validate: (
|
|
20939
|
+
validate: (K = r.value) == null ? void 0 : K.validate,
|
|
20948
20940
|
/**
|
|
20949
20941
|
* Ссылка на форму.
|
|
20950
20942
|
*/
|
|
20951
20943
|
formReference: r
|
|
20952
|
-
}), (
|
|
20953
|
-
const
|
|
20944
|
+
}), (G, q) => {
|
|
20945
|
+
const j = Lo, ee = jh;
|
|
20954
20946
|
return _(), ne(A(Rs), {
|
|
20955
20947
|
ref: "form-reference",
|
|
20956
20948
|
model: o.value,
|
|
@@ -20970,7 +20962,7 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
20970
20962
|
N(A(Oi), {
|
|
20971
20963
|
value: d.value,
|
|
20972
20964
|
"onUpdate:value": [
|
|
20973
|
-
|
|
20965
|
+
q[0] || (q[0] = (D) => d.value = D),
|
|
20974
20966
|
S
|
|
20975
20967
|
],
|
|
20976
20968
|
options: g.value,
|
|
@@ -20986,7 +20978,7 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
20986
20978
|
])) : H("", !0),
|
|
20987
20979
|
P("div", hb, [
|
|
20988
20980
|
u.value ? (_(), M("div", fb, [
|
|
20989
|
-
|
|
20981
|
+
q[7] || (q[7] = P("div", { class: "w-full font-bold" }, "Размеры изделий", -1)),
|
|
20990
20982
|
P("div", gb, [
|
|
20991
20983
|
m.value ? (_(), M("div", mb, "Ширина " + U(m.value) + ".", 1)) : H("", !0),
|
|
20992
20984
|
p.value ? (_(), M("div", pb, "Длина " + U(p.value) + ".", 1)) : H("", !0)
|
|
@@ -21011,7 +21003,7 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
21011
21003
|
disabled: !u.value,
|
|
21012
21004
|
placeholder: "Ширина",
|
|
21013
21005
|
class: "w-full",
|
|
21014
|
-
onKeydown:
|
|
21006
|
+
onKeydown: q[1] || (q[1] = (J) => A(At)(J)),
|
|
21015
21007
|
onInput: (J) => l(`items.${Q}.width`),
|
|
21016
21008
|
onFocus: A(at)
|
|
21017
21009
|
}, null, 8, ["value", "onUpdate:value", "parse", "disabled", "onInput", "onFocus"])
|
|
@@ -21031,7 +21023,7 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
21031
21023
|
disabled: !u.value,
|
|
21032
21024
|
placeholder: "Длина",
|
|
21033
21025
|
class: "w-full",
|
|
21034
|
-
onKeydown:
|
|
21026
|
+
onKeydown: q[2] || (q[2] = (J) => A(At)(J)),
|
|
21035
21027
|
onInput: (J) => l(`items.${Q}.length`),
|
|
21036
21028
|
onFocus: A(at)
|
|
21037
21029
|
}, null, 8, ["value", "onUpdate:value", "parse", "disabled", "onInput", "onFocus"])
|
|
@@ -21051,7 +21043,7 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
21051
21043
|
disabled: !u.value,
|
|
21052
21044
|
placeholder: "Количество",
|
|
21053
21045
|
class: "w-full",
|
|
21054
|
-
onKeydown:
|
|
21046
|
+
onKeydown: q[3] || (q[3] = (J) => A(At)(J, !1)),
|
|
21055
21047
|
onInput: (J) => l(`items.${Q}.count`),
|
|
21056
21048
|
onFocus: A(at)
|
|
21057
21049
|
}, null, 8, ["value", "onUpdate:value", "parse", "disabled", "onInput", "onFocus"])
|
|
@@ -21067,7 +21059,7 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
21067
21059
|
onClick: (J) => W(Q)
|
|
21068
21060
|
}, {
|
|
21069
21061
|
default: E(() => [
|
|
21070
|
-
N(
|
|
21062
|
+
N(j)
|
|
21071
21063
|
]),
|
|
21072
21064
|
_: 1
|
|
21073
21065
|
}, 8, ["disabled", "onClick"])
|
|
@@ -21082,7 +21074,7 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
21082
21074
|
}, {
|
|
21083
21075
|
default: E(() => [
|
|
21084
21076
|
N(ee),
|
|
21085
|
-
|
|
21077
|
+
q[8] || (q[8] = ie(" Добавить изделие ", -1))
|
|
21086
21078
|
]),
|
|
21087
21079
|
_: 1
|
|
21088
21080
|
}, 8, ["disabled"])) : H("", !0)
|
|
@@ -21096,8 +21088,8 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
21096
21088
|
value: o.value.marker ?? null,
|
|
21097
21089
|
disabled: !u.value,
|
|
21098
21090
|
placeholder: "Введите маркировку распила",
|
|
21099
|
-
onInput:
|
|
21100
|
-
"onUpdate:value":
|
|
21091
|
+
onInput: q[4] || (q[4] = (D) => l("marker")),
|
|
21092
|
+
"onUpdate:value": q[5] || (q[5] = (D) => ue("marker", D ?? null)),
|
|
21101
21093
|
onFocus: A(at)
|
|
21102
21094
|
}, null, 8, ["value", "disabled", "onFocus"])
|
|
21103
21095
|
]),
|
|
@@ -21108,11 +21100,11 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
21108
21100
|
checked: o.value.isAdditionalSale ?? !1,
|
|
21109
21101
|
"true-value": !0,
|
|
21110
21102
|
"false-value": !1,
|
|
21111
|
-
"onUpdate:checked":
|
|
21103
|
+
"onUpdate:checked": q[6] || (q[6] = (D) => {
|
|
21112
21104
|
o.value.isAdditionalSale = D ?? !1, ue("isAdditionalSale", D ?? !1);
|
|
21113
21105
|
})
|
|
21114
21106
|
}, {
|
|
21115
|
-
default: E(() => [...
|
|
21107
|
+
default: E(() => [...q[9] || (q[9] = [
|
|
21116
21108
|
ie(" ДопПродажа ", -1)
|
|
21117
21109
|
])]),
|
|
21118
21110
|
_: 1
|
|
@@ -21127,12 +21119,12 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
21127
21119
|
return [
|
|
21128
21120
|
v.value && u.value && b.value ? (_(), M("div", bb, [
|
|
21129
21121
|
P("div", null, [
|
|
21130
|
-
|
|
21122
|
+
q[10] || (q[10] = ie(" Итого: ", -1)),
|
|
21131
21123
|
P("span", _b, U(b.value.toLocaleString()) + " " + U(u.value.currency.symbol), 1)
|
|
21132
21124
|
]),
|
|
21133
21125
|
v.value.quantity && u.value ? (_(), M("div", wb, [
|
|
21134
21126
|
P("span", xb, "(" + U(v.value.quantity) + " шт.", 1),
|
|
21135
|
-
|
|
21127
|
+
q[11] || (q[11] = ie(" x ", -1)),
|
|
21136
21128
|
P("span", kb, U((D = u.value.costRub) == null ? void 0 : D.toLocaleString()) + " " + U(u.value.currency.symbol) + "/шт.)", 1)
|
|
21137
21129
|
])) : H("", !0)
|
|
21138
21130
|
])) : H("", !0)
|
|
@@ -21161,7 +21153,7 @@ const jh = He({ name: "ion-add", render: cb }), ub = {
|
|
|
21161
21153
|
class: "self-start",
|
|
21162
21154
|
onClick: R
|
|
21163
21155
|
}, {
|
|
21164
|
-
default: E(() => [...
|
|
21156
|
+
default: E(() => [...q[12] || (q[12] = [
|
|
21165
21157
|
ie(" Рассчитать ", -1)
|
|
21166
21158
|
])]),
|
|
21167
21159
|
_: 1
|
|
@@ -21437,19 +21429,19 @@ const Mb = He({ name: "ion-checkmark", render: Ab }), Ib = {
|
|
|
21437
21429
|
var ce, _e;
|
|
21438
21430
|
const Q = l.value[D], J = f.value;
|
|
21439
21431
|
J && ((ce = J.properties) != null && ce.width && Q.configuratorParams.width > J.properties.width && (Q.configuratorParams.width = J.properties.width), (_e = J.properties) != null && _e.length && Q.configuratorParams.length > J.properties.length && (Q.configuratorParams.length = J.properties.length)), s("item-reset", D), s("update:value", l.value);
|
|
21440
|
-
},
|
|
21432
|
+
}, K = (D, Q) => {
|
|
21441
21433
|
l.value[D].marker = Q === null || Q === "" ? void 0 : Q, s("item-reset", D), s("update:value", l.value);
|
|
21442
|
-
},
|
|
21434
|
+
}, G = (D) => {
|
|
21443
21435
|
l.value.forEach((Q) => {
|
|
21444
21436
|
Q.isAdditionalSale = D;
|
|
21445
21437
|
}), s("update:value", l.value);
|
|
21446
|
-
},
|
|
21438
|
+
}, q = () => {
|
|
21447
21439
|
l.value.push(re()), s("update:value", l.value), s("add-item", l.value.length), xt(() => {
|
|
21448
21440
|
var Q, J, ce, _e;
|
|
21449
21441
|
const D = l.value.length - 1;
|
|
21450
21442
|
(J = (Q = o.value) == null ? void 0 : Q[D]) == null || J.focus(), (_e = (ce = o.value) == null ? void 0 : ce[D]) == null || _e.select();
|
|
21451
21443
|
});
|
|
21452
|
-
},
|
|
21444
|
+
}, j = (D) => {
|
|
21453
21445
|
l.value.splice(D, 1), s("update:value", l.value), s("remove-item", D);
|
|
21454
21446
|
};
|
|
21455
21447
|
ke(
|
|
@@ -21611,7 +21603,7 @@ const Mb = He({ name: "ion-checkmark", render: Ab }), Ib = {
|
|
|
21611
21603
|
placeholder: "Маркировка",
|
|
21612
21604
|
class: "w-full",
|
|
21613
21605
|
onInput: (We) => d(`items.${ye}.marker`),
|
|
21614
|
-
"onUpdate:value": (We) =>
|
|
21606
|
+
"onUpdate:value": (We) => K(ye, We ?? null),
|
|
21615
21607
|
onFocus: A(at)
|
|
21616
21608
|
}, null, 8, ["value", "disabled", "onInput", "onUpdate:value", "onFocus"])
|
|
21617
21609
|
]),
|
|
@@ -21645,7 +21637,7 @@ const Mb = He({ name: "ion-checkmark", render: Ab }), Ib = {
|
|
|
21645
21637
|
type: "error",
|
|
21646
21638
|
size: "medium",
|
|
21647
21639
|
class: "mt-5 shrink-0 lg:!ml-4",
|
|
21648
|
-
onClick: (We) =>
|
|
21640
|
+
onClick: (We) => j(ye)
|
|
21649
21641
|
}, {
|
|
21650
21642
|
default: E(() => [
|
|
21651
21643
|
N(ce)
|
|
@@ -21671,7 +21663,7 @@ const Mb = He({ name: "ion-checkmark", render: Ab }), Ib = {
|
|
|
21671
21663
|
checked: ((Le = l.value[0]) == null ? void 0 : Le.isAdditionalSale) ?? !1,
|
|
21672
21664
|
"true-value": !0,
|
|
21673
21665
|
"false-value": !1,
|
|
21674
|
-
"onUpdate:checked": Q[4] || (Q[4] = (ot) =>
|
|
21666
|
+
"onUpdate:checked": Q[4] || (Q[4] = (ot) => G(ot ?? !1))
|
|
21675
21667
|
}, {
|
|
21676
21668
|
default: E(() => [...Q[11] || (Q[11] = [
|
|
21677
21669
|
ie(" ДопПродажа ", -1)
|
|
@@ -21683,7 +21675,7 @@ const Mb = He({ name: "ion-checkmark", render: Ab }), Ib = {
|
|
|
21683
21675
|
key: 0,
|
|
21684
21676
|
disabled: F.value,
|
|
21685
21677
|
type: "default",
|
|
21686
|
-
onClick:
|
|
21678
|
+
onClick: q
|
|
21687
21679
|
}, {
|
|
21688
21680
|
default: E(() => [
|
|
21689
21681
|
N(_e),
|
|
@@ -22157,7 +22149,7 @@ const b_ = {
|
|
|
22157
22149
|
() => Rt(e.isCategoryItemSelected) ? e.isCategoryItemSelected(e.categoryItem) === "disabled" : e.isCategoryItemSelected === "disabled"
|
|
22158
22150
|
), B = I(
|
|
22159
22151
|
() => Rt(e.isCategoryItemSelected) ? e.isCategoryItemSelected(e.categoryItem) === "indeterminate" : e.isCategoryItemSelected === "indeterminate"
|
|
22160
|
-
), b = I(() =>
|
|
22152
|
+
), b = I(() => q.value && vi.getDeviceTypeByResolution() === Ct.laptop ? "auto" : "fixed"), S = Ue("collapse-item-reference"), x = I(() => {
|
|
22161
22153
|
var te, D;
|
|
22162
22154
|
return (D = (te = e.categoryItem.properties) == null ? void 0 : te.templateCost) == null ? void 0 : D.priceCoefficient;
|
|
22163
22155
|
}), T = I(() => {
|
|
@@ -22187,11 +22179,11 @@ const b_ = {
|
|
|
22187
22179
|
e.eventEmitter.emit("category:detach", { category: e.categoryItem, target: S.value });
|
|
22188
22180
|
}, Y = () => {
|
|
22189
22181
|
e.eventEmitter.emit("category:edit", { category: e.categoryItem, target: S.value });
|
|
22190
|
-
},
|
|
22182
|
+
}, K = (te) => {
|
|
22191
22183
|
e.eventEmitter.emit("category:context-select", { category: e.categoryItem, key: te, target: S.value });
|
|
22192
|
-
},
|
|
22184
|
+
}, G = () => {
|
|
22193
22185
|
e.eventEmitter.emit("configurator:click-view-switch", { category: e.categoryItem });
|
|
22194
|
-
},
|
|
22186
|
+
}, q = X(0), j = I(() => q.value && r.value.length > 0 ? Dp(r.value, {
|
|
22195
22187
|
eventEmitter: e.eventEmitter,
|
|
22196
22188
|
showSlugs: e.showSlugs,
|
|
22197
22189
|
showProperties: e.showProperties,
|
|
@@ -22207,7 +22199,7 @@ const b_ = {
|
|
|
22207
22199
|
currencyRates: e.categoryItem.currencyRates,
|
|
22208
22200
|
productContextButtonsConfig: e.productContextButtonsConfig
|
|
22209
22201
|
}) : []), ee = Ki(() => {
|
|
22210
|
-
|
|
22202
|
+
q.value = window.innerWidth;
|
|
22211
22203
|
}, 20);
|
|
22212
22204
|
return Br(() => {
|
|
22213
22205
|
window.removeEventListener("resize", ee);
|
|
@@ -22516,7 +22508,7 @@ const b_ = {
|
|
|
22516
22508
|
options: m.value,
|
|
22517
22509
|
size: A(i),
|
|
22518
22510
|
trigger: "click",
|
|
22519
|
-
onSelect:
|
|
22511
|
+
onSelect: K
|
|
22520
22512
|
}, {
|
|
22521
22513
|
default: E(() => [
|
|
22522
22514
|
N(ye, {
|
|
@@ -22580,7 +22572,7 @@ const b_ = {
|
|
|
22580
22572
|
color: "#bdbdbd",
|
|
22581
22573
|
strong: "",
|
|
22582
22574
|
class: "self-end p-2",
|
|
22583
|
-
onClick:
|
|
22575
|
+
onClick: G
|
|
22584
22576
|
}, {
|
|
22585
22577
|
default: E(() => [...D[6] || (D[6] = [
|
|
22586
22578
|
ie(" Назад в Конфигуратор ", -1)
|
|
@@ -22588,7 +22580,7 @@ const b_ = {
|
|
|
22588
22580
|
_: 1
|
|
22589
22581
|
})) : H("", !0),
|
|
22590
22582
|
N(pn, {
|
|
22591
|
-
columns:
|
|
22583
|
+
columns: j.value,
|
|
22592
22584
|
data: a.value,
|
|
22593
22585
|
bordered: !0,
|
|
22594
22586
|
loading: v.value,
|
|
@@ -25560,22 +25552,22 @@ function Fx() {
|
|
|
25560
25552
|
if (re === void 0)
|
|
25561
25553
|
return;
|
|
25562
25554
|
for (let Y = W.length - 1; Y >= 0 && !t.has(S); --Y) {
|
|
25563
|
-
const
|
|
25564
|
-
if (
|
|
25565
|
-
o.set(S,
|
|
25566
|
-
for (const
|
|
25555
|
+
const K = W[Y], G = re.get(K);
|
|
25556
|
+
if (G !== void 0) {
|
|
25557
|
+
o.set(S, K);
|
|
25558
|
+
for (const q of G) {
|
|
25567
25559
|
if (e.has(S))
|
|
25568
25560
|
break;
|
|
25569
|
-
|
|
25561
|
+
q(S);
|
|
25570
25562
|
}
|
|
25571
25563
|
}
|
|
25572
25564
|
if (Y === 0 && !R && ue !== void 0) {
|
|
25573
|
-
const
|
|
25574
|
-
if (
|
|
25575
|
-
for (const
|
|
25565
|
+
const q = ue.get(K);
|
|
25566
|
+
if (q !== void 0)
|
|
25567
|
+
for (const j of q) {
|
|
25576
25568
|
if (e.has(S))
|
|
25577
25569
|
break;
|
|
25578
|
-
|
|
25570
|
+
j(S);
|
|
25579
25571
|
}
|
|
25580
25572
|
}
|
|
25581
25573
|
}
|
|
@@ -25583,13 +25575,13 @@ function Fx() {
|
|
|
25583
25575
|
if (ue === void 0)
|
|
25584
25576
|
return;
|
|
25585
25577
|
for (let Y = 0; Y < W.length && !t.has(S); ++Y) {
|
|
25586
|
-
const
|
|
25587
|
-
if (
|
|
25588
|
-
o.set(S,
|
|
25589
|
-
for (const
|
|
25578
|
+
const K = W[Y], G = ue.get(K);
|
|
25579
|
+
if (G !== void 0) {
|
|
25580
|
+
o.set(S, K);
|
|
25581
|
+
for (const q of G) {
|
|
25590
25582
|
if (e.has(S))
|
|
25591
25583
|
break;
|
|
25592
|
-
|
|
25584
|
+
q(S);
|
|
25593
25585
|
}
|
|
25594
25586
|
}
|
|
25595
25587
|
}
|
|
@@ -26364,7 +26356,7 @@ const c2 = ae({
|
|
|
26364
26356
|
};
|
|
26365
26357
|
},
|
|
26366
26358
|
render() {
|
|
26367
|
-
return this.showTeleport ? this.disabled ? vl("lazy-teleport", this.$slots) :
|
|
26359
|
+
return this.showTeleport ? this.disabled ? vl("lazy-teleport", this.$slots) : V(pg, {
|
|
26368
26360
|
disabled: this.disabled,
|
|
26369
26361
|
to: this.mergedTo
|
|
26370
26362
|
}, vl("lazy-teleport", this.$slots)) : null;
|
|
@@ -26767,18 +26759,18 @@ const p2 = qn([
|
|
|
26767
26759
|
};
|
|
26768
26760
|
},
|
|
26769
26761
|
render() {
|
|
26770
|
-
return
|
|
26762
|
+
return V(c2, {
|
|
26771
26763
|
show: this.show,
|
|
26772
26764
|
to: this.mergedTo,
|
|
26773
26765
|
disabled: this.teleportDisabled
|
|
26774
26766
|
}, {
|
|
26775
26767
|
default: () => {
|
|
26776
26768
|
var t, e;
|
|
26777
|
-
const i =
|
|
26769
|
+
const i = V("div", {
|
|
26778
26770
|
class: ["v-binder-follower-container", this.containerClass],
|
|
26779
26771
|
ref: "offsetContainerRef"
|
|
26780
26772
|
}, [
|
|
26781
|
-
|
|
26773
|
+
V("div", {
|
|
26782
26774
|
class: "v-binder-follower-content",
|
|
26783
26775
|
ref: "followerRef"
|
|
26784
26776
|
}, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t))
|
|
@@ -27319,31 +27311,31 @@ const ad = ae({
|
|
|
27319
27311
|
}), l = X(null), c = X(void 0), u = /* @__PURE__ */ new Map(), d = I(() => {
|
|
27320
27312
|
const { items: z, itemSize: Z, keyField: W } = t, re = new mf(z.length, Z);
|
|
27321
27313
|
return z.forEach((ue, Y) => {
|
|
27322
|
-
const
|
|
27323
|
-
|
|
27314
|
+
const K = ue[W], G = u.get(K);
|
|
27315
|
+
G !== void 0 && re.add(Y, G);
|
|
27324
27316
|
}), re;
|
|
27325
27317
|
}), f = X(0), g = X(0), h = zi(() => Math.max(d.value.getBound(g.value - Tr(t.paddingTop)) - 1, 0)), m = I(() => {
|
|
27326
27318
|
const { value: z } = c;
|
|
27327
27319
|
if (z === void 0)
|
|
27328
27320
|
return [];
|
|
27329
27321
|
const { items: Z, itemSize: W } = t, re = h.value, ue = Math.min(re + Math.ceil(z / W + 1), Z.length - 1), Y = [];
|
|
27330
|
-
for (let
|
|
27331
|
-
Y.push(Z[
|
|
27322
|
+
for (let K = re; K <= ue; ++K)
|
|
27323
|
+
Y.push(Z[K]);
|
|
27332
27324
|
return Y;
|
|
27333
27325
|
}), p = (z, Z) => {
|
|
27334
27326
|
if (typeof z == "number") {
|
|
27335
27327
|
w(z, Z, "auto");
|
|
27336
27328
|
return;
|
|
27337
27329
|
}
|
|
27338
|
-
const { left: W, top: re, index: ue, key: Y, position:
|
|
27330
|
+
const { left: W, top: re, index: ue, key: Y, position: K, behavior: G, debounce: q = !0 } = z;
|
|
27339
27331
|
if (W !== void 0 || re !== void 0)
|
|
27340
|
-
w(W, re,
|
|
27332
|
+
w(W, re, G);
|
|
27341
27333
|
else if (ue !== void 0)
|
|
27342
|
-
C(ue,
|
|
27334
|
+
C(ue, G, q);
|
|
27343
27335
|
else if (Y !== void 0) {
|
|
27344
|
-
const
|
|
27345
|
-
|
|
27346
|
-
} else
|
|
27336
|
+
const j = r.value.get(Y);
|
|
27337
|
+
j !== void 0 && C(j, G, q);
|
|
27338
|
+
} else K === "bottom" ? w(0, Number.MAX_SAFE_INTEGER, G) : K === "top" && w(0, 0, G);
|
|
27347
27339
|
};
|
|
27348
27340
|
let v, y = null;
|
|
27349
27341
|
function C(z, Z, W) {
|
|
@@ -27358,12 +27350,12 @@ const ad = ae({
|
|
|
27358
27350
|
v = z, y !== null && window.clearTimeout(y), y = window.setTimeout(() => {
|
|
27359
27351
|
v = void 0, y = null;
|
|
27360
27352
|
}, 16);
|
|
27361
|
-
const { scrollTop: Y, offsetHeight:
|
|
27353
|
+
const { scrollTop: Y, offsetHeight: K } = l.value;
|
|
27362
27354
|
if (ue > Y) {
|
|
27363
|
-
const
|
|
27364
|
-
ue +
|
|
27355
|
+
const G = re.get(z);
|
|
27356
|
+
ue + G <= Y + K || l.value.scrollTo({
|
|
27365
27357
|
left: 0,
|
|
27366
|
-
top: ue +
|
|
27358
|
+
top: ue + G - K,
|
|
27367
27359
|
behavior: Z
|
|
27368
27360
|
});
|
|
27369
27361
|
} else
|
|
@@ -27385,24 +27377,24 @@ const ad = ae({
|
|
|
27385
27377
|
var W, re, ue;
|
|
27386
27378
|
if (i || t.ignoreItemResize || O(Z.target))
|
|
27387
27379
|
return;
|
|
27388
|
-
const { value: Y } = d,
|
|
27389
|
-
if (
|
|
27380
|
+
const { value: Y } = d, K = r.value.get(z), G = Y.get(K), q = (ue = (re = (W = Z.borderBoxSize) === null || W === void 0 ? void 0 : W[0]) === null || re === void 0 ? void 0 : re.blockSize) !== null && ue !== void 0 ? ue : Z.contentRect.height;
|
|
27381
|
+
if (q === G)
|
|
27390
27382
|
return;
|
|
27391
|
-
|
|
27392
|
-
const ee =
|
|
27383
|
+
q - t.itemSize === 0 ? u.delete(z) : u.set(z, q - t.itemSize);
|
|
27384
|
+
const ee = q - G;
|
|
27393
27385
|
if (ee === 0)
|
|
27394
27386
|
return;
|
|
27395
|
-
Y.add(
|
|
27387
|
+
Y.add(K, ee);
|
|
27396
27388
|
const te = l.value;
|
|
27397
27389
|
if (te != null) {
|
|
27398
27390
|
if (v === void 0) {
|
|
27399
|
-
const D = Y.sum(
|
|
27391
|
+
const D = Y.sum(K);
|
|
27400
27392
|
te.scrollTop > D && te.scrollBy(0, ee);
|
|
27401
|
-
} else if (
|
|
27393
|
+
} else if (K < v)
|
|
27402
27394
|
te.scrollBy(0, ee);
|
|
27403
|
-
else if (
|
|
27404
|
-
const D = Y.sum(
|
|
27405
|
-
|
|
27395
|
+
else if (K === v) {
|
|
27396
|
+
const D = Y.sum(K);
|
|
27397
|
+
q + D > // Note, listEl shouldn't have border, nor offsetHeight won't be
|
|
27406
27398
|
// correct
|
|
27407
27399
|
te.scrollTop + te.offsetHeight && te.scrollBy(0, ee);
|
|
27408
27400
|
}
|
|
@@ -27489,33 +27481,33 @@ const ad = ae({
|
|
|
27489
27481
|
},
|
|
27490
27482
|
render() {
|
|
27491
27483
|
const { itemResizable: t, keyField: e, keyToIndex: i, visibleItemsTag: n } = this;
|
|
27492
|
-
return
|
|
27484
|
+
return V(Bo, {
|
|
27493
27485
|
onResize: this.handleListResize
|
|
27494
27486
|
}, {
|
|
27495
27487
|
default: () => {
|
|
27496
27488
|
var s, r;
|
|
27497
|
-
return
|
|
27489
|
+
return V("div", Pl(this.$attrs, {
|
|
27498
27490
|
class: ["v-vl", this.showScrollbar && "v-vl--show-scrollbar"],
|
|
27499
27491
|
onScroll: this.handleListScroll,
|
|
27500
27492
|
onWheel: this.handleListWheel,
|
|
27501
27493
|
ref: "listElRef"
|
|
27502
27494
|
}), [
|
|
27503
|
-
this.items.length !== 0 ?
|
|
27495
|
+
this.items.length !== 0 ? V("div", {
|
|
27504
27496
|
ref: "itemsElRef",
|
|
27505
27497
|
class: "v-vl-items",
|
|
27506
27498
|
style: this.itemsStyle
|
|
27507
27499
|
}, [
|
|
27508
|
-
|
|
27500
|
+
V(n, Object.assign({
|
|
27509
27501
|
class: "v-vl-visible-items",
|
|
27510
27502
|
style: this.visibleItemsStyle
|
|
27511
27503
|
}, this.visibleItemsProps), {
|
|
27512
27504
|
default: () => {
|
|
27513
27505
|
const { renderCol: o, renderItemWithCols: a } = this;
|
|
27514
27506
|
return this.viewportItems.map((l) => {
|
|
27515
|
-
const c = l[e], u = i.get(c), d = o != null ?
|
|
27507
|
+
const c = l[e], u = i.get(c), d = o != null ? V(ad, {
|
|
27516
27508
|
index: u,
|
|
27517
27509
|
item: l
|
|
27518
|
-
}) : void 0, f = a != null ?
|
|
27510
|
+
}) : void 0, f = a != null ? V(ad, {
|
|
27519
27511
|
index: u,
|
|
27520
27512
|
item: l
|
|
27521
27513
|
}) : void 0, g = this.$slots.default({
|
|
@@ -27524,7 +27516,7 @@ const ad = ae({
|
|
|
27524
27516
|
renderedItemWithCols: f,
|
|
27525
27517
|
index: u
|
|
27526
27518
|
})[0];
|
|
27527
|
-
return t ?
|
|
27519
|
+
return t ? V(Bo, {
|
|
27528
27520
|
key: c,
|
|
27529
27521
|
onResize: (h) => this.handleItemResize(c, h)
|
|
27530
27522
|
}, {
|
|
@@ -27609,13 +27601,13 @@ const ad = ae({
|
|
|
27609
27601
|
const { $slots: t } = this;
|
|
27610
27602
|
return xt(() => this.sync({
|
|
27611
27603
|
showAllItemsBeforeCalculate: !1
|
|
27612
|
-
})),
|
|
27604
|
+
})), V("div", {
|
|
27613
27605
|
class: "v-overflow",
|
|
27614
27606
|
ref: "selfRef"
|
|
27615
27607
|
}, [
|
|
27616
27608
|
Re(t, "default"),
|
|
27617
27609
|
// $slots.counter should only has 1 element
|
|
27618
|
-
t.counter ? t.counter() :
|
|
27610
|
+
t.counter ? t.counter() : V("span", {
|
|
27619
27611
|
style: {
|
|
27620
27612
|
display: "inline-block"
|
|
27621
27613
|
},
|
|
@@ -27782,8 +27774,8 @@ const q2 = ae({
|
|
|
27782
27774
|
if (this.disabled)
|
|
27783
27775
|
return t();
|
|
27784
27776
|
const { active: e, focusableStyle: i } = this;
|
|
27785
|
-
return
|
|
27786
|
-
|
|
27777
|
+
return V(we, null, [
|
|
27778
|
+
V("div", {
|
|
27787
27779
|
"aria-hidden": "true",
|
|
27788
27780
|
tabindex: e ? "0" : "-1",
|
|
27789
27781
|
ref: "focusableStartRef",
|
|
@@ -27791,7 +27783,7 @@ const q2 = ae({
|
|
|
27791
27783
|
onFocus: this.handleStartFocus
|
|
27792
27784
|
}),
|
|
27793
27785
|
t(),
|
|
27794
|
-
|
|
27786
|
+
V("div", {
|
|
27795
27787
|
"aria-hidden": "true",
|
|
27796
27788
|
style: i,
|
|
27797
27789
|
ref: "focusableEndRef",
|
|
@@ -28978,7 +28970,7 @@ const Uk = Te("base-icon", `
|
|
|
28978
28970
|
Go("-base-icon", Uk, st(t, "clsPrefix"));
|
|
28979
28971
|
},
|
|
28980
28972
|
render() {
|
|
28981
|
-
return
|
|
28973
|
+
return V("i", {
|
|
28982
28974
|
class: `${this.clsPrefix}-base-icon`,
|
|
28983
28975
|
onClick: this.onClick,
|
|
28984
28976
|
onMousedown: this.onMousedown,
|
|
@@ -28995,7 +28987,7 @@ const Uk = Te("base-icon", `
|
|
|
28995
28987
|
slots: e
|
|
28996
28988
|
}) {
|
|
28997
28989
|
const i = Xo();
|
|
28998
|
-
return () =>
|
|
28990
|
+
return () => V(xs, {
|
|
28999
28991
|
name: "icon-switch-transition",
|
|
29000
28992
|
appear: i.value
|
|
29001
28993
|
}, e);
|
|
@@ -29015,7 +29007,7 @@ function Nf(t, e) {
|
|
|
29015
29007
|
return () => {
|
|
29016
29008
|
var r;
|
|
29017
29009
|
const o = (r = s == null ? void 0 : s.value) === null || r === void 0 ? void 0 : r[t];
|
|
29018
|
-
return o ? o() :
|
|
29010
|
+
return o ? o() : V(i, null);
|
|
29019
29011
|
};
|
|
29020
29012
|
}
|
|
29021
29013
|
});
|
|
@@ -29023,12 +29015,12 @@ function Nf(t, e) {
|
|
|
29023
29015
|
const Xk = ae({
|
|
29024
29016
|
name: "Checkmark",
|
|
29025
29017
|
render() {
|
|
29026
|
-
return
|
|
29018
|
+
return V("svg", {
|
|
29027
29019
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29028
29020
|
viewBox: "0 0 16 16"
|
|
29029
|
-
},
|
|
29021
|
+
}, V("g", {
|
|
29030
29022
|
fill: "none"
|
|
29031
|
-
},
|
|
29023
|
+
}, V("path", {
|
|
29032
29024
|
d: "M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",
|
|
29033
29025
|
fill: "currentColor"
|
|
29034
29026
|
})));
|
|
@@ -29036,55 +29028,55 @@ const Xk = ae({
|
|
|
29036
29028
|
}), Yk = ae({
|
|
29037
29029
|
name: "ChevronDown",
|
|
29038
29030
|
render() {
|
|
29039
|
-
return
|
|
29031
|
+
return V("svg", {
|
|
29040
29032
|
viewBox: "0 0 16 16",
|
|
29041
29033
|
fill: "none",
|
|
29042
29034
|
xmlns: "http://www.w3.org/2000/svg"
|
|
29043
|
-
},
|
|
29035
|
+
}, V("path", {
|
|
29044
29036
|
d: "M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",
|
|
29045
29037
|
fill: "currentColor"
|
|
29046
29038
|
}));
|
|
29047
29039
|
}
|
|
29048
|
-
}), Kk = Nf("clear", () =>
|
|
29040
|
+
}), Kk = Nf("clear", () => V("svg", {
|
|
29049
29041
|
viewBox: "0 0 16 16",
|
|
29050
29042
|
version: "1.1",
|
|
29051
29043
|
xmlns: "http://www.w3.org/2000/svg"
|
|
29052
|
-
},
|
|
29044
|
+
}, V("g", {
|
|
29053
29045
|
stroke: "none",
|
|
29054
29046
|
"stroke-width": "1",
|
|
29055
29047
|
fill: "none",
|
|
29056
29048
|
"fill-rule": "evenodd"
|
|
29057
|
-
},
|
|
29049
|
+
}, V("g", {
|
|
29058
29050
|
fill: "currentColor",
|
|
29059
29051
|
"fill-rule": "nonzero"
|
|
29060
|
-
},
|
|
29052
|
+
}, V("path", {
|
|
29061
29053
|
d: "M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"
|
|
29062
|
-
}))))), Gk = Nf("close", () =>
|
|
29054
|
+
}))))), Gk = Nf("close", () => V("svg", {
|
|
29063
29055
|
viewBox: "0 0 12 12",
|
|
29064
29056
|
version: "1.1",
|
|
29065
29057
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29066
29058
|
"aria-hidden": !0
|
|
29067
|
-
},
|
|
29059
|
+
}, V("g", {
|
|
29068
29060
|
stroke: "none",
|
|
29069
29061
|
"stroke-width": "1",
|
|
29070
29062
|
fill: "none",
|
|
29071
29063
|
"fill-rule": "evenodd"
|
|
29072
|
-
},
|
|
29064
|
+
}, V("g", {
|
|
29073
29065
|
fill: "currentColor",
|
|
29074
29066
|
"fill-rule": "nonzero"
|
|
29075
|
-
},
|
|
29067
|
+
}, V("path", {
|
|
29076
29068
|
d: "M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"
|
|
29077
29069
|
}))))), Zk = ae({
|
|
29078
29070
|
name: "Empty",
|
|
29079
29071
|
render() {
|
|
29080
|
-
return
|
|
29072
|
+
return V("svg", {
|
|
29081
29073
|
viewBox: "0 0 28 28",
|
|
29082
29074
|
fill: "none",
|
|
29083
29075
|
xmlns: "http://www.w3.org/2000/svg"
|
|
29084
|
-
},
|
|
29076
|
+
}, V("path", {
|
|
29085
29077
|
d: "M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",
|
|
29086
29078
|
fill: "currentColor"
|
|
29087
|
-
}),
|
|
29079
|
+
}), V("path", {
|
|
29088
29080
|
d: "M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",
|
|
29089
29081
|
fill: "currentColor"
|
|
29090
29082
|
}));
|
|
@@ -29165,22 +29157,22 @@ const Jk = Te("base-clear", `
|
|
|
29165
29157
|
const {
|
|
29166
29158
|
clsPrefix: t
|
|
29167
29159
|
} = this;
|
|
29168
|
-
return
|
|
29160
|
+
return V("div", {
|
|
29169
29161
|
class: `${t}-base-clear`
|
|
29170
|
-
},
|
|
29162
|
+
}, V(Df, null, {
|
|
29171
29163
|
default: () => {
|
|
29172
29164
|
var e, i;
|
|
29173
|
-
return this.show ?
|
|
29165
|
+
return this.show ? V("div", {
|
|
29174
29166
|
key: "dismiss",
|
|
29175
29167
|
class: `${t}-base-clear__clear`,
|
|
29176
29168
|
onClick: this.onClear,
|
|
29177
29169
|
onMousedown: this.handleMouseDown,
|
|
29178
29170
|
"data-clear": !0
|
|
29179
|
-
}, rc(this.$slots.icon, () => [
|
|
29171
|
+
}, rc(this.$slots.icon, () => [V(zr, {
|
|
29180
29172
|
clsPrefix: t
|
|
29181
29173
|
}, {
|
|
29182
|
-
default: () =>
|
|
29183
|
-
})])) :
|
|
29174
|
+
default: () => V(Kk, null)
|
|
29175
|
+
})])) : V("div", {
|
|
29184
29176
|
key: "icon",
|
|
29185
29177
|
class: `${t}-base-clear__placeholder`
|
|
29186
29178
|
}, (i = (e = this.$slots).placeholder) === null || i === void 0 ? void 0 : i.call(e));
|
|
@@ -29263,7 +29255,7 @@ const Jk = Te("base-clear", `
|
|
|
29263
29255
|
round: s,
|
|
29264
29256
|
isButtonTag: r
|
|
29265
29257
|
} = t;
|
|
29266
|
-
return
|
|
29258
|
+
return V(r ? "button" : "div", {
|
|
29267
29259
|
type: r ? "button" : void 0,
|
|
29268
29260
|
tabindex: i || !t.focusable ? -1 : 0,
|
|
29269
29261
|
"aria-disabled": i,
|
|
@@ -29275,10 +29267,10 @@ const Jk = Te("base-clear", `
|
|
|
29275
29267
|
t.focusable || a.preventDefault();
|
|
29276
29268
|
},
|
|
29277
29269
|
onClick: t.onClick
|
|
29278
|
-
},
|
|
29270
|
+
}, V(zr, {
|
|
29279
29271
|
clsPrefix: e
|
|
29280
29272
|
}, {
|
|
29281
|
-
default: () =>
|
|
29273
|
+
default: () => V(Gk, null)
|
|
29282
29274
|
}));
|
|
29283
29275
|
};
|
|
29284
29276
|
}
|
|
@@ -29288,7 +29280,7 @@ const Jk = Te("base-clear", `
|
|
|
29288
29280
|
onBlur: Function
|
|
29289
29281
|
},
|
|
29290
29282
|
setup(t) {
|
|
29291
|
-
return () =>
|
|
29283
|
+
return () => V("div", {
|
|
29292
29284
|
style: "width: 0; height: 0",
|
|
29293
29285
|
tabindex: 0,
|
|
29294
29286
|
onFocus: t.onFocus,
|
|
@@ -29366,24 +29358,24 @@ const Jk = Te("base-clear", `
|
|
|
29366
29358
|
stroke: n,
|
|
29367
29359
|
scale: s
|
|
29368
29360
|
} = this, r = e / s;
|
|
29369
|
-
return
|
|
29361
|
+
return V("div", {
|
|
29370
29362
|
class: `${t}-base-loading`,
|
|
29371
29363
|
role: "img",
|
|
29372
29364
|
"aria-label": "loading"
|
|
29373
|
-
},
|
|
29374
|
-
default: () => this.show ?
|
|
29365
|
+
}, V(Df, null, {
|
|
29366
|
+
default: () => this.show ? V("div", {
|
|
29375
29367
|
key: "icon",
|
|
29376
29368
|
class: `${t}-base-loading__transition-wrapper`
|
|
29377
|
-
},
|
|
29369
|
+
}, V("div", {
|
|
29378
29370
|
class: `${t}-base-loading__container`
|
|
29379
|
-
},
|
|
29371
|
+
}, V("svg", {
|
|
29380
29372
|
class: `${t}-base-loading__icon`,
|
|
29381
29373
|
viewBox: `0 0 ${2 * r} ${2 * r}`,
|
|
29382
29374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29383
29375
|
style: {
|
|
29384
29376
|
color: n
|
|
29385
29377
|
}
|
|
29386
|
-
},
|
|
29378
|
+
}, V("g", null, V("animateTransform", {
|
|
29387
29379
|
attributeName: "transform",
|
|
29388
29380
|
type: "rotate",
|
|
29389
29381
|
values: `0 ${r} ${r};270 ${r} ${r}`,
|
|
@@ -29391,7 +29383,7 @@ const Jk = Te("base-clear", `
|
|
|
29391
29383
|
dur: ja,
|
|
29392
29384
|
fill: "freeze",
|
|
29393
29385
|
repeatCount: "indefinite"
|
|
29394
|
-
}),
|
|
29386
|
+
}), V("circle", {
|
|
29395
29387
|
class: `${t}-base-loading__icon`,
|
|
29396
29388
|
fill: "none",
|
|
29397
29389
|
stroke: "currentColor",
|
|
@@ -29402,7 +29394,7 @@ const Jk = Te("base-clear", `
|
|
|
29402
29394
|
r: e - i / 2,
|
|
29403
29395
|
"stroke-dasharray": 5.67 * e,
|
|
29404
29396
|
"stroke-dashoffset": 18.48 * e
|
|
29405
|
-
},
|
|
29397
|
+
}, V("animateTransform", {
|
|
29406
29398
|
attributeName: "transform",
|
|
29407
29399
|
type: "rotate",
|
|
29408
29400
|
values: `0 ${r} ${r};135 ${r} ${r};450 ${r} ${r}`,
|
|
@@ -29410,14 +29402,14 @@ const Jk = Te("base-clear", `
|
|
|
29410
29402
|
dur: ja,
|
|
29411
29403
|
fill: "freeze",
|
|
29412
29404
|
repeatCount: "indefinite"
|
|
29413
|
-
}),
|
|
29405
|
+
}), V("animate", {
|
|
29414
29406
|
attributeName: "stroke-dashoffset",
|
|
29415
29407
|
values: `${5.67 * e};${1.42 * e};${5.67 * e}`,
|
|
29416
29408
|
begin: "0s",
|
|
29417
29409
|
dur: ja,
|
|
29418
29410
|
fill: "freeze",
|
|
29419
29411
|
repeatCount: "indefinite"
|
|
29420
|
-
})))))) :
|
|
29412
|
+
})))))) : V("div", {
|
|
29421
29413
|
key: "placeholder",
|
|
29422
29414
|
class: `${t}-base-loading__placeholder`
|
|
29423
29415
|
}, this.$slots)
|
|
@@ -29779,7 +29771,7 @@ const oc = {
|
|
|
29779
29771
|
const Se = me - L;
|
|
29780
29772
|
return Se ? se / Se * (Ce - Z.value) : 0;
|
|
29781
29773
|
}
|
|
29782
|
-
}),
|
|
29774
|
+
}), K = I(() => `${Y.value}px`), G = I(() => {
|
|
29783
29775
|
const {
|
|
29784
29776
|
value: L
|
|
29785
29777
|
} = g, {
|
|
@@ -29795,7 +29787,7 @@ const oc = {
|
|
|
29795
29787
|
const Se = me - L;
|
|
29796
29788
|
return Se ? se / Se * (Ce - re.value) : 0;
|
|
29797
29789
|
}
|
|
29798
|
-
}),
|
|
29790
|
+
}), q = I(() => `${G.value}px`), j = I(() => {
|
|
29799
29791
|
const {
|
|
29800
29792
|
value: L
|
|
29801
29793
|
} = f, {
|
|
@@ -30025,7 +30017,7 @@ const oc = {
|
|
|
30025
30017
|
value: L
|
|
30026
30018
|
} = ee, {
|
|
30027
30019
|
value: se
|
|
30028
|
-
} =
|
|
30020
|
+
} = j, {
|
|
30029
30021
|
value: me
|
|
30030
30022
|
} = e, {
|
|
30031
30023
|
value: Ce
|
|
@@ -30118,12 +30110,12 @@ const oc = {
|
|
|
30118
30110
|
contentRef: a,
|
|
30119
30111
|
yRailRef: l,
|
|
30120
30112
|
xRailRef: c,
|
|
30121
|
-
needYBar:
|
|
30113
|
+
needYBar: j,
|
|
30122
30114
|
needXBar: ee,
|
|
30123
30115
|
yBarSizePx: W,
|
|
30124
30116
|
xBarSizePx: ue,
|
|
30125
|
-
yBarTopPx:
|
|
30126
|
-
xBarLeftPx:
|
|
30117
|
+
yBarTopPx: K,
|
|
30118
|
+
xBarLeftPx: q,
|
|
30127
30119
|
isShowXBar: te,
|
|
30128
30120
|
isShowYBar: D,
|
|
30129
30121
|
isIos: O,
|
|
@@ -30150,16 +30142,16 @@ const oc = {
|
|
|
30150
30142
|
xScrollable: l
|
|
30151
30143
|
} = this;
|
|
30152
30144
|
if (!this.scrollable) return (t = e.default) === null || t === void 0 ? void 0 : t.call(e);
|
|
30153
|
-
const c = this.trigger === "none", u = (g, h) =>
|
|
30145
|
+
const c = this.trigger === "none", u = (g, h) => V("div", {
|
|
30154
30146
|
ref: "yRailRef",
|
|
30155
30147
|
class: [`${i}-scrollbar-rail`, `${i}-scrollbar-rail--vertical`, `${i}-scrollbar-rail--vertical--${o}`, g],
|
|
30156
30148
|
"data-scrollbar-rail": !0,
|
|
30157
30149
|
style: [h || "", this.verticalRailStyle],
|
|
30158
30150
|
"aria-hidden": !0
|
|
30159
|
-
},
|
|
30151
|
+
}, V(c ? kl : xs, c ? null : {
|
|
30160
30152
|
name: "fade-in-transition"
|
|
30161
30153
|
}, {
|
|
30162
|
-
default: () => this.needYBar && this.isShowYBar && !this.isIos ?
|
|
30154
|
+
default: () => this.needYBar && this.isShowYBar && !this.isIos ? V("div", {
|
|
30163
30155
|
class: `${i}-scrollbar-rail__scrollbar`,
|
|
30164
30156
|
style: {
|
|
30165
30157
|
height: this.yBarSizePx,
|
|
@@ -30169,24 +30161,24 @@ const oc = {
|
|
|
30169
30161
|
}) : null
|
|
30170
30162
|
})), d = () => {
|
|
30171
30163
|
var g, h;
|
|
30172
|
-
return (g = this.onRender) === null || g === void 0 || g.call(this),
|
|
30164
|
+
return (g = this.onRender) === null || g === void 0 || g.call(this), V("div", Pl(this.$attrs, {
|
|
30173
30165
|
role: "none",
|
|
30174
30166
|
ref: "wrapperRef",
|
|
30175
30167
|
class: [`${i}-scrollbar`, this.themeClass, s && `${i}-scrollbar--rtl`],
|
|
30176
30168
|
style: this.cssVars,
|
|
30177
30169
|
onMouseenter: n ? void 0 : this.handleMouseEnterWrapper,
|
|
30178
30170
|
onMouseleave: n ? void 0 : this.handleMouseLeaveWrapper
|
|
30179
|
-
}), [this.container ? (h = e.default) === null || h === void 0 ? void 0 : h.call(e) :
|
|
30171
|
+
}), [this.container ? (h = e.default) === null || h === void 0 ? void 0 : h.call(e) : V("div", {
|
|
30180
30172
|
role: "none",
|
|
30181
30173
|
ref: "containerRef",
|
|
30182
30174
|
class: [`${i}-scrollbar-container`, this.containerClass],
|
|
30183
30175
|
style: this.containerStyle,
|
|
30184
30176
|
onScroll: this.handleScroll,
|
|
30185
30177
|
onWheel: this.onWheel
|
|
30186
|
-
},
|
|
30178
|
+
}, V(Bo, {
|
|
30187
30179
|
onResize: this.handleContentResize
|
|
30188
30180
|
}, {
|
|
30189
|
-
default: () =>
|
|
30181
|
+
default: () => V("div", {
|
|
30190
30182
|
ref: "contentRef",
|
|
30191
30183
|
role: "none",
|
|
30192
30184
|
style: [{
|
|
@@ -30194,16 +30186,16 @@ const oc = {
|
|
|
30194
30186
|
}, this.contentStyle],
|
|
30195
30187
|
class: [`${i}-scrollbar-content`, this.contentClass]
|
|
30196
30188
|
}, e)
|
|
30197
|
-
})), r ? null : u(void 0, void 0), l &&
|
|
30189
|
+
})), r ? null : u(void 0, void 0), l && V("div", {
|
|
30198
30190
|
ref: "xRailRef",
|
|
30199
30191
|
class: [`${i}-scrollbar-rail`, `${i}-scrollbar-rail--horizontal`, `${i}-scrollbar-rail--horizontal--${a}`],
|
|
30200
30192
|
style: this.horizontalRailStyle,
|
|
30201
30193
|
"data-scrollbar-rail": !0,
|
|
30202
30194
|
"aria-hidden": !0
|
|
30203
|
-
},
|
|
30195
|
+
}, V(c ? kl : xs, c ? null : {
|
|
30204
30196
|
name: "fade-in-transition"
|
|
30205
30197
|
}, {
|
|
30206
|
-
default: () => this.needXBar && this.isShowXBar && !this.isIos ?
|
|
30198
|
+
default: () => this.needXBar && this.isShowXBar && !this.isIos ? V("div", {
|
|
30207
30199
|
class: `${i}-scrollbar-rail__scrollbar`,
|
|
30208
30200
|
style: {
|
|
30209
30201
|
width: this.xBarSizePx,
|
|
@@ -30213,12 +30205,12 @@ const oc = {
|
|
|
30213
30205
|
onMousedown: this.handleXScrollMouseDown
|
|
30214
30206
|
}) : null
|
|
30215
30207
|
}))]);
|
|
30216
|
-
}, f = this.container ? d() :
|
|
30208
|
+
}, f = this.container ? d() : V(Bo, {
|
|
30217
30209
|
onResize: this.handleContainerResize
|
|
30218
30210
|
}, {
|
|
30219
30211
|
default: d
|
|
30220
30212
|
});
|
|
30221
|
-
return r ?
|
|
30213
|
+
return r ? V(we, null, f, u(this.themeClass, this.cssVars)) : f;
|
|
30222
30214
|
}
|
|
30223
30215
|
}), fC = Vf, gC = {
|
|
30224
30216
|
iconSizeTiny: "28px",
|
|
@@ -30307,7 +30299,7 @@ const jf = {
|
|
|
30307
30299
|
return (u = t.description) !== null && u !== void 0 ? u : (f = (d = n == null ? void 0 : n.value) === null || d === void 0 ? void 0 : d.Empty) === null || f === void 0 ? void 0 : f.description;
|
|
30308
30300
|
}), a = I(() => {
|
|
30309
30301
|
var u, d;
|
|
30310
|
-
return ((d = (u = n == null ? void 0 : n.value) === null || u === void 0 ? void 0 : u.Empty) === null || d === void 0 ? void 0 : d.renderIcon) || (() =>
|
|
30302
|
+
return ((d = (u = n == null ? void 0 : n.value) === null || u === void 0 ? void 0 : u.Empty) === null || d === void 0 ? void 0 : d.renderIcon) || (() => V(Zk, null));
|
|
30311
30303
|
}), l = I(() => {
|
|
30312
30304
|
const {
|
|
30313
30305
|
size: u
|
|
@@ -30353,18 +30345,18 @@ const jf = {
|
|
|
30353
30345
|
mergedClsPrefix: e,
|
|
30354
30346
|
onRender: i
|
|
30355
30347
|
} = this;
|
|
30356
|
-
return i == null || i(),
|
|
30348
|
+
return i == null || i(), V("div", {
|
|
30357
30349
|
class: [`${e}-empty`, this.themeClass],
|
|
30358
30350
|
style: this.cssVars
|
|
30359
|
-
}, this.showIcon ?
|
|
30351
|
+
}, this.showIcon ? V("div", {
|
|
30360
30352
|
class: `${e}-empty__icon`
|
|
30361
|
-
}, t.icon ? t.icon() :
|
|
30353
|
+
}, t.icon ? t.icon() : V(zr, {
|
|
30362
30354
|
clsPrefix: e
|
|
30363
30355
|
}, {
|
|
30364
30356
|
default: this.mergedRenderIcon
|
|
30365
|
-
})) : null, this.showDescription ?
|
|
30357
|
+
})) : null, this.showDescription ? V("div", {
|
|
30366
30358
|
class: `${e}-empty__description`
|
|
30367
|
-
}, t.default ? t.default() : this.localizedDescription) : null, t.extra ?
|
|
30359
|
+
}, t.default ? t.default() : this.localizedDescription) : null, t.extra ? V("div", {
|
|
30368
30360
|
class: `${e}-empty__extra`
|
|
30369
30361
|
}, t.extra()) : null);
|
|
30370
30362
|
}
|
|
@@ -30476,7 +30468,7 @@ const qf = {
|
|
|
30476
30468
|
tmNode: {
|
|
30477
30469
|
rawNode: s
|
|
30478
30470
|
}
|
|
30479
|
-
} = this, r = n == null ? void 0 : n(s), o = e ? e(s, !1) : Xs(s[this.labelField], s, !1), a =
|
|
30471
|
+
} = this, r = n == null ? void 0 : n(s), o = e ? e(s, !1) : Xs(s[this.labelField], s, !1), a = V("div", Object.assign({}, r, {
|
|
30480
30472
|
class: [`${t}-base-select-group-header`, r == null ? void 0 : r.class]
|
|
30481
30473
|
}), o);
|
|
30482
30474
|
return s.render ? s.render({
|
|
@@ -30490,14 +30482,14 @@ const qf = {
|
|
|
30490
30482
|
}
|
|
30491
30483
|
});
|
|
30492
30484
|
function wC(t, e) {
|
|
30493
|
-
return
|
|
30485
|
+
return V(xs, {
|
|
30494
30486
|
name: "fade-in-scale-up-transition"
|
|
30495
30487
|
}, {
|
|
30496
|
-
default: () => t ?
|
|
30488
|
+
default: () => t ? V(zr, {
|
|
30497
30489
|
clsPrefix: e,
|
|
30498
30490
|
class: `${e}-base-select-option__check`
|
|
30499
30491
|
}, {
|
|
30500
|
-
default: () =>
|
|
30492
|
+
default: () => V(Xk)
|
|
30501
30493
|
}) : null
|
|
30502
30494
|
});
|
|
30503
30495
|
}
|
|
@@ -30606,7 +30598,7 @@ const wd = ae({
|
|
|
30606
30598
|
handleClick: c,
|
|
30607
30599
|
handleMouseEnter: u,
|
|
30608
30600
|
handleMouseMove: d
|
|
30609
|
-
} = this, f = wC(i, t), g = l ? [l(e, i), r && f] : [Xs(e[this.labelField], e, i), r && f], h = o == null ? void 0 : o(e), m =
|
|
30601
|
+
} = this, f = wC(i, t), g = l ? [l(e, i), r && f] : [Xs(e[this.labelField], e, i), r && f], h = o == null ? void 0 : o(e), m = V("div", Object.assign({}, h, {
|
|
30610
30602
|
class: [`${t}-base-select-option`, e.class, h == null ? void 0 : h.class, {
|
|
30611
30603
|
[`${t}-base-select-option--disabled`]: e.disabled,
|
|
30612
30604
|
[`${t}-base-select-option--selected`]: i,
|
|
@@ -30618,7 +30610,7 @@ const wd = ae({
|
|
|
30618
30610
|
onClick: Wa([c, h == null ? void 0 : h.onClick]),
|
|
30619
30611
|
onMouseenter: Wa([u, h == null ? void 0 : h.onMouseenter]),
|
|
30620
30612
|
onMousemove: Wa([d, h == null ? void 0 : h.onMousemove])
|
|
30621
|
-
}),
|
|
30613
|
+
}), V("div", {
|
|
30622
30614
|
class: `${t}-base-select-option__content`
|
|
30623
30615
|
}, g));
|
|
30624
30616
|
return e.render ? e.render({
|
|
@@ -30841,23 +30833,23 @@ const xC = Te("base-select-menu", `
|
|
|
30841
30833
|
} = As(t), n = Er("InternalSelectMenu", i, e), s = ti("InternalSelectMenu", "-internal-select-menu", xC, qf, t, st(t, "clsPrefix")), r = X(null), o = X(null), a = X(null), l = I(() => t.treeMate.getFlattenedNodes()), c = I(() => dx(l.value)), u = X(null);
|
|
30842
30834
|
function d() {
|
|
30843
30835
|
const {
|
|
30844
|
-
treeMate:
|
|
30836
|
+
treeMate: j
|
|
30845
30837
|
} = t;
|
|
30846
30838
|
let ee = null;
|
|
30847
30839
|
const {
|
|
30848
30840
|
value: te
|
|
30849
30841
|
} = t;
|
|
30850
|
-
te === null ? ee =
|
|
30842
|
+
te === null ? ee = j.getFirstAvailableNode() : (t.multiple ? ee = j.getNode((te || [])[(te || []).length - 1]) : ee = j.getNode(te), (!ee || ee.disabled) && (ee = j.getFirstAvailableNode())), Z(ee || null);
|
|
30851
30843
|
}
|
|
30852
30844
|
function f() {
|
|
30853
30845
|
const {
|
|
30854
|
-
value:
|
|
30846
|
+
value: j
|
|
30855
30847
|
} = u;
|
|
30856
|
-
|
|
30848
|
+
j && !t.treeMate.getNode(j.key) && (u.value = null);
|
|
30857
30849
|
}
|
|
30858
30850
|
let g;
|
|
30859
|
-
ke(() => t.show, (
|
|
30860
|
-
|
|
30851
|
+
ke(() => t.show, (j) => {
|
|
30852
|
+
j ? g = ke(() => t.treeMate, () => {
|
|
30861
30853
|
t.resetMenuOnOptionsChange ? (t.autoPending ? d() : f(), xt(W)) : f();
|
|
30862
30854
|
}, {
|
|
30863
30855
|
immediate: !0
|
|
@@ -30868,91 +30860,91 @@ const xC = Te("base-select-menu", `
|
|
|
30868
30860
|
g == null || g();
|
|
30869
30861
|
});
|
|
30870
30862
|
const h = I(() => Tr(s.value.self[kt("optionHeight", t.size)])), m = I(() => qi(s.value.self[kt("padding", t.size)])), p = I(() => t.multiple && Array.isArray(t.value) ? new Set(t.value) : /* @__PURE__ */ new Set()), v = I(() => {
|
|
30871
|
-
const
|
|
30872
|
-
return
|
|
30863
|
+
const j = l.value;
|
|
30864
|
+
return j && j.length === 0;
|
|
30873
30865
|
});
|
|
30874
|
-
function y(
|
|
30866
|
+
function y(j) {
|
|
30875
30867
|
const {
|
|
30876
30868
|
onToggle: ee
|
|
30877
30869
|
} = t;
|
|
30878
|
-
ee && ee(
|
|
30870
|
+
ee && ee(j);
|
|
30879
30871
|
}
|
|
30880
|
-
function C(
|
|
30872
|
+
function C(j) {
|
|
30881
30873
|
const {
|
|
30882
30874
|
onScroll: ee
|
|
30883
30875
|
} = t;
|
|
30884
|
-
ee && ee(
|
|
30876
|
+
ee && ee(j);
|
|
30885
30877
|
}
|
|
30886
|
-
function w(
|
|
30878
|
+
function w(j) {
|
|
30887
30879
|
var ee;
|
|
30888
|
-
(ee = a.value) === null || ee === void 0 || ee.sync(), C(
|
|
30880
|
+
(ee = a.value) === null || ee === void 0 || ee.sync(), C(j);
|
|
30889
30881
|
}
|
|
30890
30882
|
function F() {
|
|
30891
|
-
var
|
|
30892
|
-
(
|
|
30883
|
+
var j;
|
|
30884
|
+
(j = a.value) === null || j === void 0 || j.sync();
|
|
30893
30885
|
}
|
|
30894
30886
|
function B() {
|
|
30895
30887
|
const {
|
|
30896
|
-
value:
|
|
30888
|
+
value: j
|
|
30897
30889
|
} = u;
|
|
30898
|
-
return
|
|
30890
|
+
return j || null;
|
|
30899
30891
|
}
|
|
30900
|
-
function b(
|
|
30892
|
+
function b(j, ee) {
|
|
30901
30893
|
ee.disabled || Z(ee, !1);
|
|
30902
30894
|
}
|
|
30903
|
-
function S(
|
|
30895
|
+
function S(j, ee) {
|
|
30904
30896
|
ee.disabled || y(ee);
|
|
30905
30897
|
}
|
|
30906
|
-
function x(
|
|
30898
|
+
function x(j) {
|
|
30907
30899
|
var ee;
|
|
30908
|
-
vr(
|
|
30900
|
+
vr(j, "action") || (ee = t.onKeyup) === null || ee === void 0 || ee.call(t, j);
|
|
30909
30901
|
}
|
|
30910
|
-
function T(
|
|
30902
|
+
function T(j) {
|
|
30911
30903
|
var ee;
|
|
30912
|
-
vr(
|
|
30904
|
+
vr(j, "action") || (ee = t.onKeydown) === null || ee === void 0 || ee.call(t, j);
|
|
30913
30905
|
}
|
|
30914
|
-
function R(
|
|
30906
|
+
function R(j) {
|
|
30915
30907
|
var ee;
|
|
30916
|
-
(ee = t.onMousedown) === null || ee === void 0 || ee.call(t,
|
|
30908
|
+
(ee = t.onMousedown) === null || ee === void 0 || ee.call(t, j), !t.focusable && j.preventDefault();
|
|
30917
30909
|
}
|
|
30918
30910
|
function O() {
|
|
30919
30911
|
const {
|
|
30920
|
-
value:
|
|
30912
|
+
value: j
|
|
30921
30913
|
} = u;
|
|
30922
|
-
|
|
30914
|
+
j && Z(j.getNext({
|
|
30923
30915
|
loop: !0
|
|
30924
30916
|
}), !0);
|
|
30925
30917
|
}
|
|
30926
30918
|
function z() {
|
|
30927
30919
|
const {
|
|
30928
|
-
value:
|
|
30920
|
+
value: j
|
|
30929
30921
|
} = u;
|
|
30930
|
-
|
|
30922
|
+
j && Z(j.getPrev({
|
|
30931
30923
|
loop: !0
|
|
30932
30924
|
}), !0);
|
|
30933
30925
|
}
|
|
30934
|
-
function Z(
|
|
30935
|
-
u.value =
|
|
30926
|
+
function Z(j, ee = !1) {
|
|
30927
|
+
u.value = j, ee && W();
|
|
30936
30928
|
}
|
|
30937
30929
|
function W() {
|
|
30938
|
-
var
|
|
30930
|
+
var j, ee;
|
|
30939
30931
|
const te = u.value;
|
|
30940
30932
|
if (!te) return;
|
|
30941
30933
|
const D = c.value(te.key);
|
|
30942
|
-
D !== null && (t.virtualScroll ? (
|
|
30934
|
+
D !== null && (t.virtualScroll ? (j = o.value) === null || j === void 0 || j.scrollTo({
|
|
30943
30935
|
index: D
|
|
30944
30936
|
}) : (ee = a.value) === null || ee === void 0 || ee.scrollTo({
|
|
30945
30937
|
index: D,
|
|
30946
30938
|
elSize: h.value
|
|
30947
30939
|
}));
|
|
30948
30940
|
}
|
|
30949
|
-
function re(
|
|
30941
|
+
function re(j) {
|
|
30950
30942
|
var ee, te;
|
|
30951
|
-
!((ee = r.value) === null || ee === void 0) && ee.contains(
|
|
30943
|
+
!((ee = r.value) === null || ee === void 0) && ee.contains(j.target) && ((te = t.onFocus) === null || te === void 0 || te.call(t, j));
|
|
30952
30944
|
}
|
|
30953
|
-
function ue(
|
|
30945
|
+
function ue(j) {
|
|
30954
30946
|
var ee, te;
|
|
30955
|
-
!((ee = r.value) === null || ee === void 0) && ee.contains(
|
|
30947
|
+
!((ee = r.value) === null || ee === void 0) && ee.contains(j.relatedTarget) || (te = t.onBlur) === null || te === void 0 || te.call(t, j);
|
|
30956
30948
|
}
|
|
30957
30949
|
Pi(sc, {
|
|
30958
30950
|
handleOptionMouseEnter: b,
|
|
@@ -30969,13 +30961,13 @@ const xC = Te("base-select-menu", `
|
|
|
30969
30961
|
valueFieldRef: st(t, "valueField")
|
|
30970
30962
|
}), Pi(Tf, r), ct(() => {
|
|
30971
30963
|
const {
|
|
30972
|
-
value:
|
|
30964
|
+
value: j
|
|
30973
30965
|
} = a;
|
|
30974
|
-
|
|
30966
|
+
j && j.sync();
|
|
30975
30967
|
});
|
|
30976
30968
|
const Y = I(() => {
|
|
30977
30969
|
const {
|
|
30978
|
-
size:
|
|
30970
|
+
size: j
|
|
30979
30971
|
} = t, {
|
|
30980
30972
|
common: {
|
|
30981
30973
|
cubicBezierEaseInOut: ee
|
|
@@ -30998,9 +30990,9 @@ const xC = Te("base-select-menu", `
|
|
|
30998
30990
|
loadingColor: Li,
|
|
30999
30991
|
loadingSize: jt,
|
|
31000
30992
|
optionColorActivePending: pn,
|
|
31001
|
-
[kt("optionFontSize",
|
|
31002
|
-
[kt("optionHeight",
|
|
31003
|
-
[kt("optionPadding",
|
|
30993
|
+
[kt("optionFontSize", j)]: Di,
|
|
30994
|
+
[kt("optionHeight", j)]: Fi,
|
|
30995
|
+
[kt("optionPadding", j)]: Ke
|
|
31004
30996
|
}
|
|
31005
30997
|
} = s.value;
|
|
31006
30998
|
return {
|
|
@@ -31029,8 +31021,8 @@ const xC = Te("base-select-menu", `
|
|
|
31029
31021
|
"--n-loading-size": jt
|
|
31030
31022
|
};
|
|
31031
31023
|
}), {
|
|
31032
|
-
inlineThemeDisabled:
|
|
31033
|
-
} = t,
|
|
31024
|
+
inlineThemeDisabled: K
|
|
31025
|
+
} = t, G = K ? Ms("internal-select-menu", I(() => t.size[0]), Y, t) : void 0, q = {
|
|
31034
31026
|
selfRef: r,
|
|
31035
31027
|
next: O,
|
|
31036
31028
|
prev: z,
|
|
@@ -31048,15 +31040,15 @@ const xC = Te("base-select-menu", `
|
|
|
31048
31040
|
empty: v,
|
|
31049
31041
|
virtualListContainer() {
|
|
31050
31042
|
const {
|
|
31051
|
-
value:
|
|
31043
|
+
value: j
|
|
31052
31044
|
} = o;
|
|
31053
|
-
return
|
|
31045
|
+
return j == null ? void 0 : j.listElRef;
|
|
31054
31046
|
},
|
|
31055
31047
|
virtualListContent() {
|
|
31056
31048
|
const {
|
|
31057
|
-
value:
|
|
31049
|
+
value: j
|
|
31058
31050
|
} = o;
|
|
31059
|
-
return
|
|
31051
|
+
return j == null ? void 0 : j.itemsElRef;
|
|
31060
31052
|
},
|
|
31061
31053
|
doScroll: C,
|
|
31062
31054
|
handleFocusin: re,
|
|
@@ -31066,10 +31058,10 @@ const xC = Te("base-select-menu", `
|
|
|
31066
31058
|
handleMouseDown: R,
|
|
31067
31059
|
handleVirtualListResize: F,
|
|
31068
31060
|
handleVirtualListScroll: w,
|
|
31069
|
-
cssVars:
|
|
31070
|
-
themeClass:
|
|
31071
|
-
onRender:
|
|
31072
|
-
},
|
|
31061
|
+
cssVars: K ? void 0 : Y,
|
|
31062
|
+
themeClass: G == null ? void 0 : G.themeClass,
|
|
31063
|
+
onRender: G == null ? void 0 : G.onRender
|
|
31064
|
+
}, q);
|
|
31073
31065
|
},
|
|
31074
31066
|
render() {
|
|
31075
31067
|
const {
|
|
@@ -31080,7 +31072,7 @@ const xC = Te("base-select-menu", `
|
|
|
31080
31072
|
themeClass: s,
|
|
31081
31073
|
onRender: r
|
|
31082
31074
|
} = this;
|
|
31083
|
-
return r == null || r(),
|
|
31075
|
+
return r == null || r(), V("div", {
|
|
31084
31076
|
ref: "selfRef",
|
|
31085
31077
|
tabindex: this.focusable ? 0 : -1,
|
|
31086
31078
|
class: [`${i}-base-select-menu`, this.rtlEnabled && `${i}-base-select-menu--rtl`, s, this.multiple && `${i}-base-select-menu--multiple`],
|
|
@@ -31092,23 +31084,23 @@ const xC = Te("base-select-menu", `
|
|
|
31092
31084
|
onMousedown: this.handleMouseDown,
|
|
31093
31085
|
onMouseenter: this.onMouseenter,
|
|
31094
31086
|
onMouseleave: this.onMouseleave
|
|
31095
|
-
}, ws(t.header, (o) => o &&
|
|
31087
|
+
}, ws(t.header, (o) => o && V("div", {
|
|
31096
31088
|
class: `${i}-base-select-menu__header`,
|
|
31097
31089
|
"data-header": !0,
|
|
31098
31090
|
key: "header"
|
|
31099
|
-
}, o)), this.loading ?
|
|
31091
|
+
}, o)), this.loading ? V("div", {
|
|
31100
31092
|
class: `${i}-base-select-menu__loading`
|
|
31101
|
-
},
|
|
31093
|
+
}, V(Hf, {
|
|
31102
31094
|
clsPrefix: i,
|
|
31103
31095
|
strokeWidth: 20
|
|
31104
|
-
})) : this.empty ?
|
|
31096
|
+
})) : this.empty ? V("div", {
|
|
31105
31097
|
class: `${i}-base-select-menu__empty`,
|
|
31106
31098
|
"data-empty": !0
|
|
31107
|
-
}, rc(t.empty, () => [
|
|
31099
|
+
}, rc(t.empty, () => [V(yC, {
|
|
31108
31100
|
theme: n.peers.Empty,
|
|
31109
31101
|
themeOverrides: n.peerOverrides.Empty,
|
|
31110
31102
|
size: this.size
|
|
31111
|
-
})])) :
|
|
31103
|
+
})])) : V(Vf, {
|
|
31112
31104
|
ref: "scrollbarRef",
|
|
31113
31105
|
theme: n.peers.Scrollbar,
|
|
31114
31106
|
themeOverrides: n.peerOverrides.Scrollbar,
|
|
@@ -31117,7 +31109,7 @@ const xC = Te("base-select-menu", `
|
|
|
31117
31109
|
content: e ? this.virtualListContent : void 0,
|
|
31118
31110
|
onScroll: e ? void 0 : this.doScroll
|
|
31119
31111
|
}, {
|
|
31120
|
-
default: () => e ?
|
|
31112
|
+
default: () => e ? V(W2, {
|
|
31121
31113
|
ref: "virtualListRef",
|
|
31122
31114
|
class: `${i}-virtual-list`,
|
|
31123
31115
|
items: this.flattenedNodes,
|
|
@@ -31131,35 +31123,35 @@ const xC = Te("base-select-menu", `
|
|
|
31131
31123
|
}, {
|
|
31132
31124
|
default: ({
|
|
31133
31125
|
item: o
|
|
31134
|
-
}) => o.isGroup ?
|
|
31126
|
+
}) => o.isGroup ? V(_d, {
|
|
31135
31127
|
key: o.key,
|
|
31136
31128
|
clsPrefix: i,
|
|
31137
31129
|
tmNode: o
|
|
31138
|
-
}) : o.ignored ? null :
|
|
31130
|
+
}) : o.ignored ? null : V(wd, {
|
|
31139
31131
|
clsPrefix: i,
|
|
31140
31132
|
key: o.key,
|
|
31141
31133
|
tmNode: o
|
|
31142
31134
|
})
|
|
31143
|
-
}) :
|
|
31135
|
+
}) : V("div", {
|
|
31144
31136
|
class: `${i}-base-select-menu-option-wrapper`,
|
|
31145
31137
|
style: {
|
|
31146
31138
|
paddingTop: this.padding.top,
|
|
31147
31139
|
paddingBottom: this.padding.bottom
|
|
31148
31140
|
}
|
|
31149
|
-
}, this.flattenedNodes.map((o) => o.isGroup ?
|
|
31141
|
+
}, this.flattenedNodes.map((o) => o.isGroup ? V(_d, {
|
|
31150
31142
|
key: o.key,
|
|
31151
31143
|
clsPrefix: i,
|
|
31152
31144
|
tmNode: o
|
|
31153
|
-
}) :
|
|
31145
|
+
}) : V(wd, {
|
|
31154
31146
|
clsPrefix: i,
|
|
31155
31147
|
key: o.key,
|
|
31156
31148
|
tmNode: o
|
|
31157
31149
|
})))
|
|
31158
|
-
}), ws(t.action, (o) => o && [
|
|
31150
|
+
}), ws(t.action, (o) => o && [V("div", {
|
|
31159
31151
|
class: `${i}-base-select-menu__action`,
|
|
31160
31152
|
"data-action": !0,
|
|
31161
31153
|
key: "action"
|
|
31162
|
-
}, o),
|
|
31154
|
+
}, o), V(nC, {
|
|
31163
31155
|
onFocus: this.onTabOut,
|
|
31164
31156
|
key: "focus-detector"
|
|
31165
31157
|
})]));
|
|
@@ -31389,11 +31381,11 @@ function PC({
|
|
|
31389
31381
|
arrowWrapperStyle: n,
|
|
31390
31382
|
clsPrefix: s
|
|
31391
31383
|
}) {
|
|
31392
|
-
return
|
|
31384
|
+
return V("div", {
|
|
31393
31385
|
key: "__popover-arrow__",
|
|
31394
31386
|
style: n,
|
|
31395
31387
|
class: [`${s}-popover-arrow-wrapper`, i]
|
|
31396
|
-
},
|
|
31388
|
+
}, V("div", {
|
|
31397
31389
|
class: [`${s}-popover-arrow`, t],
|
|
31398
31390
|
style: e
|
|
31399
31391
|
}));
|
|
@@ -31447,15 +31439,15 @@ const TC = ae({
|
|
|
31447
31439
|
textColor: re,
|
|
31448
31440
|
dividerColor: ue,
|
|
31449
31441
|
color: Y,
|
|
31450
|
-
boxShadow:
|
|
31451
|
-
borderRadius:
|
|
31452
|
-
arrowHeight:
|
|
31453
|
-
arrowOffset:
|
|
31442
|
+
boxShadow: K,
|
|
31443
|
+
borderRadius: G,
|
|
31444
|
+
arrowHeight: q,
|
|
31445
|
+
arrowOffset: j,
|
|
31454
31446
|
arrowOffsetVertical: ee
|
|
31455
31447
|
}
|
|
31456
31448
|
} = a.value;
|
|
31457
31449
|
return {
|
|
31458
|
-
"--n-box-shadow":
|
|
31450
|
+
"--n-box-shadow": K,
|
|
31459
31451
|
"--n-bezier": x,
|
|
31460
31452
|
"--n-bezier-ease-in": T,
|
|
31461
31453
|
"--n-bezier-ease-out": R,
|
|
@@ -31463,9 +31455,9 @@ const TC = ae({
|
|
|
31463
31455
|
"--n-text-color": re,
|
|
31464
31456
|
"--n-color": Y,
|
|
31465
31457
|
"--n-divider-color": ue,
|
|
31466
|
-
"--n-border-radius":
|
|
31467
|
-
"--n-arrow-height":
|
|
31468
|
-
"--n-arrow-offset":
|
|
31458
|
+
"--n-border-radius": G,
|
|
31459
|
+
"--n-arrow-height": q,
|
|
31460
|
+
"--n-arrow-offset": j,
|
|
31469
31461
|
"--n-arrow-offset-vertical": ee,
|
|
31470
31462
|
"--n-padding": Z,
|
|
31471
31463
|
"--n-space": O,
|
|
@@ -31538,35 +31530,35 @@ const TC = ae({
|
|
|
31538
31530
|
internalTrapFocus: Z
|
|
31539
31531
|
} = t, W = !pd(e.header) || !pd(e.footer), re = () => {
|
|
31540
31532
|
var ue, Y;
|
|
31541
|
-
const
|
|
31533
|
+
const K = W ? V(we, null, ws(e.header, (j) => j ? V("div", {
|
|
31542
31534
|
class: [`${O}-popover__header`, t.headerClass],
|
|
31543
31535
|
style: t.headerStyle
|
|
31544
|
-
},
|
|
31536
|
+
}, j) : null), ws(e.default, (j) => j ? V("div", {
|
|
31545
31537
|
class: [`${O}-popover__content`, t.contentClass],
|
|
31546
31538
|
style: t.contentStyle
|
|
31547
|
-
}, e) : null), ws(e.footer, (
|
|
31539
|
+
}, e) : null), ws(e.footer, (j) => j ? V("div", {
|
|
31548
31540
|
class: [`${O}-popover__footer`, t.footerClass],
|
|
31549
31541
|
style: t.footerStyle
|
|
31550
|
-
},
|
|
31542
|
+
}, j) : null)) : t.scrollable ? (ue = e.default) === null || ue === void 0 ? void 0 : ue.call(e) : V("div", {
|
|
31551
31543
|
class: [`${O}-popover__content`, t.contentClass],
|
|
31552
31544
|
style: t.contentStyle
|
|
31553
|
-
}, e),
|
|
31545
|
+
}, e), G = t.scrollable ? V(fC, {
|
|
31554
31546
|
themeOverrides: a.value.peerOverrides.Scrollbar,
|
|
31555
31547
|
theme: a.value.peers.Scrollbar,
|
|
31556
31548
|
contentClass: W ? void 0 : `${O}-popover__content ${(Y = t.contentClass) !== null && Y !== void 0 ? Y : ""}`,
|
|
31557
31549
|
contentStyle: W ? void 0 : t.contentStyle
|
|
31558
31550
|
}, {
|
|
31559
|
-
default: () =>
|
|
31560
|
-
}) :
|
|
31551
|
+
default: () => K
|
|
31552
|
+
}) : K, q = t.showArrow ? PC({
|
|
31561
31553
|
arrowClass: t.arrowClass,
|
|
31562
31554
|
arrowStyle: t.arrowStyle,
|
|
31563
31555
|
arrowWrapperClass: t.arrowWrapperClass,
|
|
31564
31556
|
arrowWrapperStyle: t.arrowWrapperStyle,
|
|
31565
31557
|
clsPrefix: O
|
|
31566
31558
|
}) : null;
|
|
31567
|
-
return [
|
|
31559
|
+
return [G, q];
|
|
31568
31560
|
};
|
|
31569
|
-
T =
|
|
31561
|
+
T = V("div", Pl({
|
|
31570
31562
|
class: [`${O}-popover`, `${O}-popover-shared`, (l == null ? void 0 : l.value) && `${O}-popover--rtl`, v == null ? void 0 : v.themeClass.value, z.map((ue) => `${O}-${ue}`), {
|
|
31571
31563
|
[`${O}-popover--scrollable`]: t.scrollable,
|
|
31572
31564
|
[`${O}-popover--show-header-or-footer`]: W,
|
|
@@ -31580,7 +31572,7 @@ const TC = ae({
|
|
|
31580
31572
|
onKeydown: u.handleKeydown,
|
|
31581
31573
|
onMouseenter: C,
|
|
31582
31574
|
onMouseleave: w
|
|
31583
|
-
}, i), Z ?
|
|
31575
|
+
}, i), Z ? V(q2, {
|
|
31584
31576
|
active: t.show,
|
|
31585
31577
|
autoFocus: !0
|
|
31586
31578
|
}, {
|
|
@@ -31601,7 +31593,7 @@ const TC = ae({
|
|
|
31601
31593
|
};
|
|
31602
31594
|
},
|
|
31603
31595
|
render() {
|
|
31604
|
-
return
|
|
31596
|
+
return V(pf, {
|
|
31605
31597
|
ref: "followerRef",
|
|
31606
31598
|
zIndex: this.zIndex,
|
|
31607
31599
|
show: this.show,
|
|
@@ -31616,7 +31608,7 @@ const TC = ae({
|
|
|
31616
31608
|
width: this.width === "trigger" ? "target" : void 0,
|
|
31617
31609
|
teleportDisabled: this.adjustedTo === An.tdkey
|
|
31618
31610
|
}, {
|
|
31619
|
-
default: () => this.animated ?
|
|
31611
|
+
default: () => this.animated ? V(xs, {
|
|
31620
31612
|
name: "popover-transition",
|
|
31621
31613
|
appear: this.isMounted,
|
|
31622
31614
|
// Don't use watch to enable follower, since the transition may
|
|
@@ -31769,9 +31761,9 @@ const MC = {
|
|
|
31769
31761
|
"onUpdate:show": re,
|
|
31770
31762
|
onUpdateShow: ue,
|
|
31771
31763
|
onShow: Y,
|
|
31772
|
-
onHide:
|
|
31764
|
+
onHide: K
|
|
31773
31765
|
} = t;
|
|
31774
|
-
s.value = W, re && Zt(re, W), ue && Zt(ue, W), W && Y && Zt(Y, !0), W &&
|
|
31766
|
+
s.value = W, re && Zt(re, W), ue && Zt(ue, W), W && Y && Zt(Y, !0), W && K && Zt(K, !1);
|
|
31775
31767
|
}
|
|
31776
31768
|
function p() {
|
|
31777
31769
|
d && d.syncPosition();
|
|
@@ -31893,7 +31885,7 @@ const MC = {
|
|
|
31893
31885
|
} = this;
|
|
31894
31886
|
let n, s = !1;
|
|
31895
31887
|
if (!e && (n = nk(i, "trigger"), n)) {
|
|
31896
|
-
n = bg(n), n = n.type === Rd ?
|
|
31888
|
+
n = bg(n), n = n.type === Rd ? V("span", [n]) : n;
|
|
31897
31889
|
const r = {
|
|
31898
31890
|
onClick: this.handleClick,
|
|
31899
31891
|
onMouseenter: this.handleMouseEnter,
|
|
@@ -31939,7 +31931,7 @@ const MC = {
|
|
|
31939
31931
|
AC(n, o ? "nested" : e ? "manual" : this.trigger, l);
|
|
31940
31932
|
}
|
|
31941
31933
|
}
|
|
31942
|
-
return
|
|
31934
|
+
return V(cf, {
|
|
31943
31935
|
ref: "binderInstRef",
|
|
31944
31936
|
syncTarget: !s,
|
|
31945
31937
|
syncTargetWithParent: this.internalSyncTargetWithParent
|
|
@@ -31947,7 +31939,7 @@ const MC = {
|
|
|
31947
31939
|
default: () => {
|
|
31948
31940
|
this.mergedShowConsideringDisabledProp;
|
|
31949
31941
|
const r = this.getMergedShow();
|
|
31950
|
-
return [this.internalTrapFocus && r ? rr(
|
|
31942
|
+
return [this.internalTrapFocus && r ? rr(V("div", {
|
|
31951
31943
|
style: {
|
|
31952
31944
|
position: "fixed",
|
|
31953
31945
|
top: 0,
|
|
@@ -31958,9 +31950,9 @@ const MC = {
|
|
|
31958
31950
|
}), [[rf, {
|
|
31959
31951
|
enabled: r,
|
|
31960
31952
|
zIndex: this.zIndex
|
|
31961
|
-
}]]) : null, e ? null :
|
|
31953
|
+
}]]) : null, e ? null : V(uf, null, {
|
|
31962
31954
|
default: () => n
|
|
31963
|
-
}),
|
|
31955
|
+
}), V(TC, sk(this.$props, FC, Object.assign(Object.assign({}, this.$attrs), {
|
|
31964
31956
|
showArrow: this.mergedShowArrow,
|
|
31965
31957
|
show: r
|
|
31966
31958
|
})), {
|
|
@@ -32344,10 +32336,10 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
|
|
|
32344
32336
|
closeBorderRadius: re,
|
|
32345
32337
|
fontWeightStrong: ue,
|
|
32346
32338
|
[kt("colorBordered", g)]: Y,
|
|
32347
|
-
[kt("closeSize", h)]:
|
|
32348
|
-
[kt("closeIconSize", h)]:
|
|
32349
|
-
[kt("fontSize", h)]:
|
|
32350
|
-
[kt("height", h)]:
|
|
32339
|
+
[kt("closeSize", h)]: K,
|
|
32340
|
+
[kt("closeIconSize", h)]: G,
|
|
32341
|
+
[kt("fontSize", h)]: q,
|
|
32342
|
+
[kt("height", h)]: j,
|
|
32351
32343
|
[kt("color", g)]: ee,
|
|
32352
32344
|
[kt("textColor", g)]: te,
|
|
32353
32345
|
[kt("border", g)]: D,
|
|
@@ -32360,11 +32352,11 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
|
|
|
32360
32352
|
} = o.value, Le = qi(C);
|
|
32361
32353
|
return {
|
|
32362
32354
|
"--n-font-weight-strong": ue,
|
|
32363
|
-
"--n-avatar-size-override": `calc(${
|
|
32355
|
+
"--n-avatar-size-override": `calc(${j} - 8px)`,
|
|
32364
32356
|
"--n-bezier": v,
|
|
32365
32357
|
"--n-border-radius": w,
|
|
32366
32358
|
"--n-border": D,
|
|
32367
|
-
"--n-close-icon-size":
|
|
32359
|
+
"--n-close-icon-size": G,
|
|
32368
32360
|
"--n-close-color-pressed": Ee,
|
|
32369
32361
|
"--n-close-color-hover": _e,
|
|
32370
32362
|
"--n-close-border-radius": re,
|
|
@@ -32376,7 +32368,7 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
|
|
|
32376
32368
|
"--n-close-margin-right": Le.right,
|
|
32377
32369
|
"--n-close-margin-bottom": Le.bottom,
|
|
32378
32370
|
"--n-close-margin-left": Le.left,
|
|
32379
|
-
"--n-close-size":
|
|
32371
|
+
"--n-close-size": K,
|
|
32380
32372
|
"--n-color": m || (i.value ? Y : ee),
|
|
32381
32373
|
"--n-color-checkable": T,
|
|
32382
32374
|
"--n-color-checked": z,
|
|
@@ -32384,8 +32376,8 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
|
|
|
32384
32376
|
"--n-color-checked-pressed": W,
|
|
32385
32377
|
"--n-color-hover-checkable": R,
|
|
32386
32378
|
"--n-color-pressed-checkable": O,
|
|
32387
|
-
"--n-font-size":
|
|
32388
|
-
"--n-height":
|
|
32379
|
+
"--n-font-size": q,
|
|
32380
|
+
"--n-height": j,
|
|
32389
32381
|
"--n-opacity-disabled": F,
|
|
32390
32382
|
"--n-padding": y,
|
|
32391
32383
|
"--n-text-color": p || te,
|
|
@@ -32432,12 +32424,12 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
|
|
|
32432
32424
|
$slots: l
|
|
32433
32425
|
} = this;
|
|
32434
32426
|
a == null || a();
|
|
32435
|
-
const c = ws(l.avatar, (d) => d &&
|
|
32427
|
+
const c = ws(l.avatar, (d) => d && V("div", {
|
|
32436
32428
|
class: `${i}-tag__avatar`
|
|
32437
|
-
}, d)), u = ws(l.icon, (d) => d &&
|
|
32429
|
+
}, d)), u = ws(l.icon, (d) => d && V("div", {
|
|
32438
32430
|
class: `${i}-tag__icon`
|
|
32439
32431
|
}, d));
|
|
32440
|
-
return
|
|
32432
|
+
return V("div", {
|
|
32441
32433
|
class: [`${i}-tag`, this.themeClass, {
|
|
32442
32434
|
[`${i}-tag--rtl`]: n,
|
|
32443
32435
|
[`${i}-tag--strong`]: this.strong,
|
|
@@ -32453,10 +32445,10 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
|
|
|
32453
32445
|
onClick: this.handleClick,
|
|
32454
32446
|
onMouseenter: this.onMouseenter,
|
|
32455
32447
|
onMouseleave: this.onMouseleave
|
|
32456
|
-
}, u || c,
|
|
32448
|
+
}, u || c, V("span", {
|
|
32457
32449
|
class: `${i}-tag__content`,
|
|
32458
32450
|
ref: "contentRef"
|
|
32459
|
-
}, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t)), !this.checkable && s ?
|
|
32451
|
+
}, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t)), !this.checkable && s ? V(iC, {
|
|
32460
32452
|
clsPrefix: i,
|
|
32461
32453
|
class: `${i}-tag__close`,
|
|
32462
32454
|
disabled: this.disabled,
|
|
@@ -32465,7 +32457,7 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
|
|
|
32465
32457
|
round: o,
|
|
32466
32458
|
isButtonTag: this.internalCloseIsButtonTag,
|
|
32467
32459
|
absolute: !0
|
|
32468
|
-
}) : null, !this.checkable && this.mergedBordered ?
|
|
32460
|
+
}) : null, !this.checkable && this.mergedBordered ? V("div", {
|
|
32469
32461
|
class: `${i}-tag__border`,
|
|
32470
32462
|
style: {
|
|
32471
32463
|
borderColor: r
|
|
@@ -32500,23 +32492,23 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
|
|
|
32500
32492
|
const {
|
|
32501
32493
|
clsPrefix: i
|
|
32502
32494
|
} = t;
|
|
32503
|
-
return
|
|
32495
|
+
return V(Hf, {
|
|
32504
32496
|
clsPrefix: i,
|
|
32505
32497
|
class: `${i}-base-suffix`,
|
|
32506
32498
|
strokeWidth: 24,
|
|
32507
32499
|
scale: 0.85,
|
|
32508
32500
|
show: t.loading
|
|
32509
32501
|
}, {
|
|
32510
|
-
default: () => t.showArrow ?
|
|
32502
|
+
default: () => t.showArrow ? V(eC, {
|
|
32511
32503
|
clsPrefix: i,
|
|
32512
32504
|
show: t.showClear,
|
|
32513
32505
|
onClear: t.onClear
|
|
32514
32506
|
}, {
|
|
32515
|
-
placeholder: () =>
|
|
32507
|
+
placeholder: () => V(zr, {
|
|
32516
32508
|
clsPrefix: i,
|
|
32517
32509
|
class: `${i}-base-suffix__arrow`
|
|
32518
32510
|
}, {
|
|
32519
|
-
default: () => rc(e.default, () => [
|
|
32511
|
+
default: () => rc(e.default, () => [V(Yk, null)])
|
|
32520
32512
|
})
|
|
32521
32513
|
}) : null
|
|
32522
32514
|
});
|
|
@@ -32994,19 +32986,19 @@ const Kf = {
|
|
|
32994
32986
|
function Y() {
|
|
32995
32987
|
p.value = !1;
|
|
32996
32988
|
}
|
|
32997
|
-
function
|
|
32989
|
+
function K(le) {
|
|
32998
32990
|
!t.active || !t.filterable || le.target !== r.value && le.preventDefault();
|
|
32999
32991
|
}
|
|
33000
|
-
function
|
|
32992
|
+
function G(le) {
|
|
33001
32993
|
R(le);
|
|
33002
32994
|
}
|
|
33003
|
-
const
|
|
33004
|
-
function
|
|
33005
|
-
if (le.key === "Backspace" && !
|
|
32995
|
+
const q = X(!1);
|
|
32996
|
+
function j(le) {
|
|
32997
|
+
if (le.key === "Backspace" && !q.value && !t.pattern.length) {
|
|
33006
32998
|
const {
|
|
33007
32999
|
selectedOptions: ve
|
|
33008
33000
|
} = t;
|
|
33009
|
-
ve != null && ve.length &&
|
|
33001
|
+
ve != null && ve.length && G(ve[ve.length - 1]);
|
|
33010
33002
|
}
|
|
33011
33003
|
}
|
|
33012
33004
|
let ee = null;
|
|
@@ -33018,13 +33010,13 @@ const Kf = {
|
|
|
33018
33010
|
const tt = le.target.value;
|
|
33019
33011
|
ve.textContent = tt, B();
|
|
33020
33012
|
}
|
|
33021
|
-
t.ignoreComposition &&
|
|
33013
|
+
t.ignoreComposition && q.value ? ee = le : z(le);
|
|
33022
33014
|
}
|
|
33023
33015
|
function D() {
|
|
33024
|
-
|
|
33016
|
+
q.value = !0;
|
|
33025
33017
|
}
|
|
33026
33018
|
function Q() {
|
|
33027
|
-
|
|
33019
|
+
q.value = !1, t.ignoreComposition && z(ee), ee = null;
|
|
33028
33020
|
}
|
|
33029
33021
|
function J(le) {
|
|
33030
33022
|
var ve;
|
|
@@ -33235,7 +33227,7 @@ const Kf = {
|
|
|
33235
33227
|
label: w,
|
|
33236
33228
|
selected: F,
|
|
33237
33229
|
showTagsPanel: h,
|
|
33238
|
-
isComposing:
|
|
33230
|
+
isComposing: q,
|
|
33239
33231
|
// dom ref
|
|
33240
33232
|
counterRef: u,
|
|
33241
33233
|
counterWrapperRef: d,
|
|
@@ -33247,13 +33239,13 @@ const Kf = {
|
|
|
33247
33239
|
patternInputWrapperRef: c,
|
|
33248
33240
|
overflowRef: f,
|
|
33249
33241
|
inputTagElRef: g,
|
|
33250
|
-
handleMouseDown:
|
|
33242
|
+
handleMouseDown: K,
|
|
33251
33243
|
handleFocusin: Z,
|
|
33252
33244
|
handleClear: re,
|
|
33253
33245
|
handleMouseEnter: ue,
|
|
33254
33246
|
handleMouseLeave: Y,
|
|
33255
|
-
handleDeleteOption:
|
|
33256
|
-
handlePatternKeyDown:
|
|
33247
|
+
handleDeleteOption: G,
|
|
33248
|
+
handlePatternKeyDown: j,
|
|
33257
33249
|
handlePatternInputInput: te,
|
|
33258
33250
|
handlePatternInputBlur: ce,
|
|
33259
33251
|
handlePatternInputFocus: J,
|
|
@@ -33292,8 +33284,8 @@ const Kf = {
|
|
|
33292
33284
|
renderLabel: d
|
|
33293
33285
|
} = this;
|
|
33294
33286
|
c == null || c();
|
|
33295
|
-
const f = r === "responsive", g = typeof r == "number", h = f || g, m =
|
|
33296
|
-
default: () =>
|
|
33287
|
+
const f = r === "responsive", g = typeof r == "number", h = f || g, m = V(kl, null, {
|
|
33288
|
+
default: () => V(jC, {
|
|
33297
33289
|
clsPrefix: a,
|
|
33298
33290
|
loading: this.loading,
|
|
33299
33291
|
showArrow: this.showArrow,
|
|
@@ -33310,7 +33302,7 @@ const Kf = {
|
|
|
33310
33302
|
if (e) {
|
|
33311
33303
|
const {
|
|
33312
33304
|
labelField: v
|
|
33313
|
-
} = this, y = (z) =>
|
|
33305
|
+
} = this, y = (z) => V("div", {
|
|
33314
33306
|
class: `${a}-base-selection-tag-wrapper`,
|
|
33315
33307
|
key: z.value
|
|
33316
33308
|
}, u ? u({
|
|
@@ -33318,7 +33310,7 @@ const Kf = {
|
|
|
33318
33310
|
handleClose: () => {
|
|
33319
33311
|
this.handleDeleteOption(z);
|
|
33320
33312
|
}
|
|
33321
|
-
}) :
|
|
33313
|
+
}) : V(Ua, {
|
|
33322
33314
|
size: i,
|
|
33323
33315
|
closable: !z.disabled,
|
|
33324
33316
|
disabled: n,
|
|
@@ -33329,11 +33321,11 @@ const Kf = {
|
|
|
33329
33321
|
internalCloseFocusable: !1
|
|
33330
33322
|
}, {
|
|
33331
33323
|
default: () => d ? d(z, !0) : Xs(z[v], z, !0)
|
|
33332
|
-
})), C = () => (g ? this.selectedOptions.slice(0, r) : this.selectedOptions).map(y), w = s ?
|
|
33324
|
+
})), C = () => (g ? this.selectedOptions.slice(0, r) : this.selectedOptions).map(y), w = s ? V("div", {
|
|
33333
33325
|
class: `${a}-base-selection-input-tag`,
|
|
33334
33326
|
ref: "inputTagElRef",
|
|
33335
33327
|
key: "__input-tag__"
|
|
33336
|
-
},
|
|
33328
|
+
}, V("input", Object.assign({}, this.inputProps, {
|
|
33337
33329
|
ref: "patternInputRef",
|
|
33338
33330
|
tabindex: -1,
|
|
33339
33331
|
disabled: n,
|
|
@@ -33346,13 +33338,13 @@ const Kf = {
|
|
|
33346
33338
|
onInput: this.handlePatternInputInput,
|
|
33347
33339
|
onCompositionstart: this.handleCompositionStart,
|
|
33348
33340
|
onCompositionend: this.handleCompositionEnd
|
|
33349
|
-
})),
|
|
33341
|
+
})), V("span", {
|
|
33350
33342
|
ref: "patternInputMirrorRef",
|
|
33351
33343
|
class: `${a}-base-selection-input-tag__mirror`
|
|
33352
|
-
}, this.pattern)) : null, F = f ? () =>
|
|
33344
|
+
}, this.pattern)) : null, F = f ? () => V("div", {
|
|
33353
33345
|
class: `${a}-base-selection-tag-wrapper`,
|
|
33354
33346
|
ref: "counterWrapperRef"
|
|
33355
|
-
},
|
|
33347
|
+
}, V(Ua, {
|
|
33356
33348
|
size: i,
|
|
33357
33349
|
ref: "counterRef",
|
|
33358
33350
|
onMouseenter: this.handleMouseEnterCounter,
|
|
@@ -33362,10 +33354,10 @@ const Kf = {
|
|
|
33362
33354
|
let B;
|
|
33363
33355
|
if (g) {
|
|
33364
33356
|
const z = this.selectedOptions.length - r;
|
|
33365
|
-
z > 0 && (B =
|
|
33357
|
+
z > 0 && (B = V("div", {
|
|
33366
33358
|
class: `${a}-base-selection-tag-wrapper`,
|
|
33367
33359
|
key: "__counter__"
|
|
33368
|
-
},
|
|
33360
|
+
}, V(Ua, {
|
|
33369
33361
|
size: i,
|
|
33370
33362
|
ref: "counterRef",
|
|
33371
33363
|
onMouseenter: this.handleMouseEnterCounter,
|
|
@@ -33374,7 +33366,7 @@ const Kf = {
|
|
|
33374
33366
|
default: () => `+${z}`
|
|
33375
33367
|
})));
|
|
33376
33368
|
}
|
|
33377
|
-
const b = f ? s ?
|
|
33369
|
+
const b = f ? s ? V(ld, {
|
|
33378
33370
|
ref: "overflowRef",
|
|
33379
33371
|
updateCounter: this.updateCounter,
|
|
33380
33372
|
getCounter: this.getCounter,
|
|
@@ -33388,7 +33380,7 @@ const Kf = {
|
|
|
33388
33380
|
default: C,
|
|
33389
33381
|
counter: F,
|
|
33390
33382
|
tail: () => w
|
|
33391
|
-
}) :
|
|
33383
|
+
}) : V(ld, {
|
|
33392
33384
|
ref: "overflowRef",
|
|
33393
33385
|
updateCounter: this.updateCounter,
|
|
33394
33386
|
getCounter: this.getCounter,
|
|
@@ -33400,7 +33392,7 @@ const Kf = {
|
|
|
33400
33392
|
}, {
|
|
33401
33393
|
default: C,
|
|
33402
33394
|
counter: F
|
|
33403
|
-
}) : g && B ? C().concat(B) : C(), S = h ? () =>
|
|
33395
|
+
}) : g && B ? C().concat(B) : C(), S = h ? () => V("div", {
|
|
33404
33396
|
class: `${a}-base-selection-popover`
|
|
33405
33397
|
}, f ? C() : this.selectedOptions.map(y)) : void 0, x = h ? Object.assign({
|
|
33406
33398
|
show: this.showTagsPanel,
|
|
@@ -33411,19 +33403,19 @@ const Kf = {
|
|
|
33411
33403
|
onUpdateShow: this.onPopoverUpdateShow,
|
|
33412
33404
|
theme: this.mergedTheme.peers.Popover,
|
|
33413
33405
|
themeOverrides: this.mergedTheme.peerOverrides.Popover
|
|
33414
|
-
}, l) : null, R = (this.selected ? !1 : this.active ? !this.pattern && !this.isComposing : !0) ?
|
|
33406
|
+
}, l) : null, R = (this.selected ? !1 : this.active ? !this.pattern && !this.isComposing : !0) ? V("div", {
|
|
33415
33407
|
class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`
|
|
33416
|
-
},
|
|
33408
|
+
}, V("div", {
|
|
33417
33409
|
class: `${a}-base-selection-placeholder__inner`
|
|
33418
|
-
}, this.placeholder)) : null, O = s ?
|
|
33410
|
+
}, this.placeholder)) : null, O = s ? V("div", {
|
|
33419
33411
|
ref: "patternInputWrapperRef",
|
|
33420
33412
|
class: `${a}-base-selection-tags`
|
|
33421
|
-
}, b, f ? null : w, m) :
|
|
33413
|
+
}, b, f ? null : w, m) : V("div", {
|
|
33422
33414
|
ref: "multipleElRef",
|
|
33423
33415
|
class: `${a}-base-selection-tags`,
|
|
33424
33416
|
tabindex: n ? void 0 : 0
|
|
33425
33417
|
}, b, m);
|
|
33426
|
-
p =
|
|
33418
|
+
p = V(we, null, h ? V(EC, Object.assign({}, x, {
|
|
33427
33419
|
scrollable: !0,
|
|
33428
33420
|
style: "max-height: calc(var(--v-target-height) * 6.6);"
|
|
33429
33421
|
}), {
|
|
@@ -33432,11 +33424,11 @@ const Kf = {
|
|
|
33432
33424
|
}) : O, R);
|
|
33433
33425
|
} else if (s) {
|
|
33434
33426
|
const v = this.pattern || this.isComposing, y = this.active ? !v : !this.selected, C = this.active ? !1 : this.selected;
|
|
33435
|
-
p =
|
|
33427
|
+
p = V("div", {
|
|
33436
33428
|
ref: "patternInputWrapperRef",
|
|
33437
33429
|
class: `${a}-base-selection-label`,
|
|
33438
33430
|
title: this.patternInputFocused ? void 0 : fd(this.label)
|
|
33439
|
-
},
|
|
33431
|
+
}, V("input", Object.assign({}, this.inputProps, {
|
|
33440
33432
|
ref: "patternInputRef",
|
|
33441
33433
|
class: `${a}-base-selection-input`,
|
|
33442
33434
|
value: this.active ? this.pattern : "",
|
|
@@ -33450,43 +33442,43 @@ const Kf = {
|
|
|
33450
33442
|
onInput: this.handlePatternInputInput,
|
|
33451
33443
|
onCompositionstart: this.handleCompositionStart,
|
|
33452
33444
|
onCompositionend: this.handleCompositionEnd
|
|
33453
|
-
})), C ?
|
|
33445
|
+
})), C ? V("div", {
|
|
33454
33446
|
class: `${a}-base-selection-label__render-label ${a}-base-selection-overlay`,
|
|
33455
33447
|
key: "input"
|
|
33456
|
-
},
|
|
33448
|
+
}, V("div", {
|
|
33457
33449
|
class: `${a}-base-selection-overlay__wrapper`
|
|
33458
33450
|
}, u ? u({
|
|
33459
33451
|
option: this.selectedOption,
|
|
33460
33452
|
handleClose: () => {
|
|
33461
33453
|
}
|
|
33462
|
-
}) : d ? d(this.selectedOption, !0) : Xs(this.label, this.selectedOption, !0))) : null, y ?
|
|
33454
|
+
}) : d ? d(this.selectedOption, !0) : Xs(this.label, this.selectedOption, !0))) : null, y ? V("div", {
|
|
33463
33455
|
class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`,
|
|
33464
33456
|
key: "placeholder"
|
|
33465
|
-
},
|
|
33457
|
+
}, V("div", {
|
|
33466
33458
|
class: `${a}-base-selection-overlay__wrapper`
|
|
33467
33459
|
}, this.filterablePlaceholder)) : null, m);
|
|
33468
33460
|
} else
|
|
33469
|
-
p =
|
|
33461
|
+
p = V("div", {
|
|
33470
33462
|
ref: "singleElRef",
|
|
33471
33463
|
class: `${a}-base-selection-label`,
|
|
33472
33464
|
tabindex: this.disabled ? void 0 : 0
|
|
33473
|
-
}, this.label !== void 0 ?
|
|
33465
|
+
}, this.label !== void 0 ? V("div", {
|
|
33474
33466
|
class: `${a}-base-selection-input`,
|
|
33475
33467
|
title: fd(this.label),
|
|
33476
33468
|
key: "input"
|
|
33477
|
-
},
|
|
33469
|
+
}, V("div", {
|
|
33478
33470
|
class: `${a}-base-selection-input__content`
|
|
33479
33471
|
}, u ? u({
|
|
33480
33472
|
option: this.selectedOption,
|
|
33481
33473
|
handleClose: () => {
|
|
33482
33474
|
}
|
|
33483
|
-
}) : d ? d(this.selectedOption, !0) : Xs(this.label, this.selectedOption, !0))) :
|
|
33475
|
+
}) : d ? d(this.selectedOption, !0) : Xs(this.label, this.selectedOption, !0))) : V("div", {
|
|
33484
33476
|
class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`,
|
|
33485
33477
|
key: "placeholder"
|
|
33486
|
-
},
|
|
33478
|
+
}, V("div", {
|
|
33487
33479
|
class: `${a}-base-selection-placeholder__inner`
|
|
33488
33480
|
}, this.placeholder)), m);
|
|
33489
|
-
return
|
|
33481
|
+
return V("div", {
|
|
33490
33482
|
ref: "selfRef",
|
|
33491
33483
|
class: [`${a}-base-selection`, this.rtlEnabled && `${a}-base-selection--rtl`, this.themeClass, t && `${a}-base-selection--${t}-status`, {
|
|
33492
33484
|
[`${a}-base-selection--active`]: this.active,
|
|
@@ -33506,9 +33498,9 @@ const Kf = {
|
|
|
33506
33498
|
onFocusin: this.handleFocusin,
|
|
33507
33499
|
onFocusout: this.handleFocusout,
|
|
33508
33500
|
onMousedown: this.handleMouseDown
|
|
33509
|
-
}, p, o ?
|
|
33501
|
+
}, p, o ? V("div", {
|
|
33510
33502
|
class: `${a}-base-selection__border`
|
|
33511
|
-
}) : null, o ?
|
|
33503
|
+
}) : null, o ? V("div", {
|
|
33512
33504
|
class: `${a}-base-selection__state-border`
|
|
33513
33505
|
}) : null);
|
|
33514
33506
|
}
|
|
@@ -33819,9 +33811,9 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
33819
33811
|
}), re = ok(t), {
|
|
33820
33812
|
mergedSizeRef: ue,
|
|
33821
33813
|
mergedDisabledRef: Y,
|
|
33822
|
-
mergedStatusRef:
|
|
33814
|
+
mergedStatusRef: K
|
|
33823
33815
|
} = re;
|
|
33824
|
-
function
|
|
33816
|
+
function G(L, se) {
|
|
33825
33817
|
const {
|
|
33826
33818
|
onChange: me,
|
|
33827
33819
|
"onUpdate:value": Ce,
|
|
@@ -33832,7 +33824,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
33832
33824
|
} = re;
|
|
33833
33825
|
me && Zt(me, L, se), Se && Zt(Se, L, se), Ce && Zt(Ce, L, se), o.value = L, Fe(), Ie();
|
|
33834
33826
|
}
|
|
33835
|
-
function
|
|
33827
|
+
function q(L) {
|
|
33836
33828
|
const {
|
|
33837
33829
|
onBlur: se
|
|
33838
33830
|
} = t, {
|
|
@@ -33840,7 +33832,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
33840
33832
|
} = re;
|
|
33841
33833
|
se && Zt(se, L), me();
|
|
33842
33834
|
}
|
|
33843
|
-
function
|
|
33835
|
+
function j() {
|
|
33844
33836
|
const {
|
|
33845
33837
|
onClear: L
|
|
33846
33838
|
} = t;
|
|
@@ -33918,7 +33910,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
33918
33910
|
}
|
|
33919
33911
|
function We(L) {
|
|
33920
33912
|
var se, me;
|
|
33921
|
-
!((me = (se = b.value) === null || se === void 0 ? void 0 : se.selfRef) === null || me === void 0) && me.contains(L.relatedTarget) || (c.value = !1,
|
|
33913
|
+
!((me = (se = b.value) === null || se === void 0 ? void 0 : se.selfRef) === null || me === void 0) && me.contains(L.relatedTarget) || (c.value = !1, q(L), _e());
|
|
33922
33914
|
}
|
|
33923
33915
|
function ii(L) {
|
|
33924
33916
|
ee(L), c.value = !0;
|
|
@@ -33928,7 +33920,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
33928
33920
|
}
|
|
33929
33921
|
function Li(L) {
|
|
33930
33922
|
var se;
|
|
33931
|
-
!((se = F.value) === null || se === void 0) && se.$el.contains(L.relatedTarget) || (c.value = !1,
|
|
33923
|
+
!((se = F.value) === null || se === void 0) && se.$el.contains(L.relatedTarget) || (c.value = !1, q(L), _e());
|
|
33932
33924
|
}
|
|
33933
33925
|
function jt() {
|
|
33934
33926
|
var L;
|
|
@@ -33986,13 +33978,13 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
33986
33978
|
}
|
|
33987
33979
|
} else
|
|
33988
33980
|
Fe.push(L[Se]), Ce && (u.value = "");
|
|
33989
|
-
|
|
33981
|
+
G(Fe, z(Fe));
|
|
33990
33982
|
} else {
|
|
33991
33983
|
if (se && !me) {
|
|
33992
33984
|
const Fe = le(L[Se]);
|
|
33993
33985
|
~Fe ? f.value = [f.value[Fe]] : f.value = T;
|
|
33994
33986
|
}
|
|
33995
|
-
Es(), _e(),
|
|
33987
|
+
Es(), _e(), G(L[Se], L);
|
|
33996
33988
|
}
|
|
33997
33989
|
}
|
|
33998
33990
|
function le(L) {
|
|
@@ -34030,7 +34022,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
34030
34022
|
const {
|
|
34031
34023
|
multiple: se
|
|
34032
34024
|
} = t;
|
|
34033
|
-
!se && t.filterable && _e(),
|
|
34025
|
+
!se && t.filterable && _e(), j(), se ? G([], []) : G(null, null);
|
|
34034
34026
|
}
|
|
34035
34027
|
function En(L) {
|
|
34036
34028
|
!vr(L, "action") && !vr(L, "empty") && !vr(L, "header") && L.preventDefault();
|
|
@@ -34121,7 +34113,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
34121
34113
|
};
|
|
34122
34114
|
}), vn = s ? Ms("select", void 0, Ni, t) : void 0;
|
|
34123
34115
|
return Object.assign(Object.assign({}, Os), {
|
|
34124
|
-
mergedStatus:
|
|
34116
|
+
mergedStatus: K,
|
|
34125
34117
|
mergedClsPrefix: e,
|
|
34126
34118
|
mergedBordered: i,
|
|
34127
34119
|
namespace: n,
|
|
@@ -34170,11 +34162,11 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
34170
34162
|
});
|
|
34171
34163
|
},
|
|
34172
34164
|
render() {
|
|
34173
|
-
return
|
|
34165
|
+
return V("div", {
|
|
34174
34166
|
class: `${this.mergedClsPrefix}-select`
|
|
34175
|
-
},
|
|
34176
|
-
default: () => [
|
|
34177
|
-
default: () =>
|
|
34167
|
+
}, V(cf, null, {
|
|
34168
|
+
default: () => [V(uf, null, {
|
|
34169
|
+
default: () => V(YC, {
|
|
34178
34170
|
ref: "triggerRef",
|
|
34179
34171
|
inlineThemeDisabled: this.inlineThemeDisabled,
|
|
34180
34172
|
status: this.mergedStatus,
|
|
@@ -34219,7 +34211,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
34219
34211
|
return [(e = (t = this.$slots).arrow) === null || e === void 0 ? void 0 : e.call(t)];
|
|
34220
34212
|
}
|
|
34221
34213
|
})
|
|
34222
|
-
}),
|
|
34214
|
+
}), V(pf, {
|
|
34223
34215
|
ref: "followerRef",
|
|
34224
34216
|
show: this.mergedShow,
|
|
34225
34217
|
to: this.adjustedTo,
|
|
@@ -34229,14 +34221,14 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
34229
34221
|
minWidth: "target",
|
|
34230
34222
|
placement: this.placement
|
|
34231
34223
|
}, {
|
|
34232
|
-
default: () =>
|
|
34224
|
+
default: () => V(xs, {
|
|
34233
34225
|
name: "fade-in-scale-up-transition",
|
|
34234
34226
|
appear: this.isMounted,
|
|
34235
34227
|
onAfterLeave: this.handleMenuAfterLeave
|
|
34236
34228
|
}, {
|
|
34237
34229
|
default: () => {
|
|
34238
34230
|
var t, e, i;
|
|
34239
|
-
return this.mergedShow || this.displayDirective === "show" ? ((t = this.onRender) === null || t === void 0 || t.call(this), rr(
|
|
34231
|
+
return this.mergedShow || this.displayDirective === "show" ? ((t = this.onRender) === null || t === void 0 || t.call(this), rr(V(kC, Object.assign({}, this.menuProps, {
|
|
34240
34232
|
ref: "menuRef",
|
|
34241
34233
|
onResize: this.handleTriggerOrMenuResize,
|
|
34242
34234
|
inlineThemeDisabled: this.inlineThemeDisabled,
|
|
@@ -34404,11 +34396,11 @@ const iS = Object.assign(Object.assign({}, ti.props), {
|
|
|
34404
34396
|
return n.renderLabel(d, f);
|
|
34405
34397
|
if (n.searchType === "products") {
|
|
34406
34398
|
const g = d.item;
|
|
34407
|
-
return
|
|
34399
|
+
return V("div", {}, [V("span", { class: "text-sc-grey mr-2.5" }, g.code), V("span", {}, [g.name])]);
|
|
34408
34400
|
}
|
|
34409
34401
|
if (n.searchType === "categories") {
|
|
34410
34402
|
const g = d.item;
|
|
34411
|
-
return
|
|
34403
|
+
return V("div", {}, [g.name]);
|
|
34412
34404
|
}
|
|
34413
34405
|
};
|
|
34414
34406
|
return e({
|
|
@@ -34960,23 +34952,23 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
34960
34952
|
key: "id",
|
|
34961
34953
|
resizable: !0,
|
|
34962
34954
|
width: 50,
|
|
34963
|
-
render: (r, o) =>
|
|
34955
|
+
render: (r, o) => V("span", { class: "text-base" }, [o + 1, "."])
|
|
34964
34956
|
},
|
|
34965
34957
|
{
|
|
34966
34958
|
title: "Артикул",
|
|
34967
34959
|
key: "codeNumber",
|
|
34968
34960
|
resizable: !0,
|
|
34969
34961
|
minWidth: 120,
|
|
34970
|
-
render: (r) =>
|
|
34962
|
+
render: (r) => V("span", { class: "text-base" }, [r.product.code])
|
|
34971
34963
|
},
|
|
34972
34964
|
{
|
|
34973
34965
|
title: "Наименование",
|
|
34974
34966
|
key: "name",
|
|
34975
34967
|
resizable: !0,
|
|
34976
34968
|
width: "45%",
|
|
34977
|
-
render: (r) =>
|
|
34978
|
-
|
|
34979
|
-
..."creatorUser" in r && r.creatorUser && r.creatorUser.type ? [
|
|
34969
|
+
render: (r) => V("div", {}, [
|
|
34970
|
+
V(yo, { product: r.product, showCode: !1, showPlanningDates: !1 }),
|
|
34971
|
+
..."creatorUser" in r && r.creatorUser && r.creatorUser.type ? [V(Qf, { class: "mt-1", userType: r.creatorUser.type, prefixText: "Добавлено" })] : []
|
|
34980
34972
|
])
|
|
34981
34973
|
},
|
|
34982
34974
|
{
|
|
@@ -34984,21 +34976,21 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
34984
34976
|
key: "quantity",
|
|
34985
34977
|
resizable: !1,
|
|
34986
34978
|
width: 215,
|
|
34987
|
-
render: (r) =>
|
|
34979
|
+
render: (r) => V(HS, { item: r })
|
|
34988
34980
|
},
|
|
34989
34981
|
{
|
|
34990
34982
|
title: "Цена за ед.",
|
|
34991
34983
|
key: "costOneRub",
|
|
34992
34984
|
resizable: !0,
|
|
34993
34985
|
minWidth: 100,
|
|
34994
|
-
render: (r) =>
|
|
34986
|
+
render: (r) => V(Kn, { product: r, costFieldName: "costOne", showQuantityUnit: !0 })
|
|
34995
34987
|
},
|
|
34996
34988
|
{
|
|
34997
34989
|
title: "Сумма",
|
|
34998
34990
|
key: "cost",
|
|
34999
34991
|
resizable: !0,
|
|
35000
34992
|
minWidth: 100,
|
|
35001
|
-
render: (r) =>
|
|
34993
|
+
render: (r) => V(Kn, { product: r, costFieldName: "cost", showQuantityUnit: !0 })
|
|
35002
34994
|
}
|
|
35003
34995
|
];
|
|
35004
34996
|
switch (vi.getDeviceTypeByResolution()) {
|
|
@@ -35009,7 +35001,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35009
35001
|
title: "",
|
|
35010
35002
|
key: "items",
|
|
35011
35003
|
resizable: !0,
|
|
35012
|
-
render: (r, o) =>
|
|
35004
|
+
render: (r, o) => V(_5, { product: r, index: o })
|
|
35013
35005
|
}
|
|
35014
35006
|
];
|
|
35015
35007
|
case Ct.laptop:
|
|
@@ -35286,11 +35278,11 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35286
35278
|
], R = i.fields.length > 0 ? i.fields : T, O = {
|
|
35287
35279
|
title: "???",
|
|
35288
35280
|
key: "undefined",
|
|
35289
|
-
render: () =>
|
|
35281
|
+
render: () => V("span", {}, ["--- unknown ---"])
|
|
35290
35282
|
}, z = {
|
|
35291
35283
|
type: "expand",
|
|
35292
35284
|
expandable: Io(!0),
|
|
35293
|
-
renderExpand: (W) =>
|
|
35285
|
+
renderExpand: (W) => V(D5, {
|
|
35294
35286
|
order: W,
|
|
35295
35287
|
class: "pl-10 pt-3 pb-10",
|
|
35296
35288
|
"onClick:client-name": () => {
|
|
@@ -35306,7 +35298,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35306
35298
|
resizable: !0,
|
|
35307
35299
|
width: 100,
|
|
35308
35300
|
// eslint-disable-next-line vue/max-len
|
|
35309
|
-
render: (W) =>
|
|
35301
|
+
render: (W) => V(fl, { date: W.createdAt, isTimeSecondary: !0, isTimeOnSecondLine: !0, class: "text-base" })
|
|
35310
35302
|
},
|
|
35311
35303
|
{
|
|
35312
35304
|
title: "№ заказа",
|
|
@@ -35314,7 +35306,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35314
35306
|
resizable: !0,
|
|
35315
35307
|
width: 75,
|
|
35316
35308
|
className: "order-id",
|
|
35317
|
-
render: (W) =>
|
|
35309
|
+
render: (W) => V(
|
|
35318
35310
|
"a",
|
|
35319
35311
|
{
|
|
35320
35312
|
// eslint-disable-next-line lodash/prefer-lodash-method
|
|
@@ -35330,14 +35322,14 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35330
35322
|
resizable: !0,
|
|
35331
35323
|
width: 100,
|
|
35332
35324
|
className: "delivery-date",
|
|
35333
|
-
render: (W) =>
|
|
35325
|
+
render: (W) => V(fl, { date: W.delivery.date, isShowTime: !1, class: "text-base" })
|
|
35334
35326
|
},
|
|
35335
35327
|
{
|
|
35336
35328
|
title: "Клиент",
|
|
35337
35329
|
key: Ze.ClientInfo,
|
|
35338
35330
|
resizable: !0,
|
|
35339
35331
|
minWidth: 320,
|
|
35340
|
-
render: (W) =>
|
|
35332
|
+
render: (W) => V($o, {
|
|
35341
35333
|
client: W.client,
|
|
35342
35334
|
"onClick:client-name": () => {
|
|
35343
35335
|
n("click:client-name", W.client, null);
|
|
@@ -35349,14 +35341,14 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35349
35341
|
key: Ze.DeliveryInfo,
|
|
35350
35342
|
resizable: !0,
|
|
35351
35343
|
minWidth: 320,
|
|
35352
|
-
render: (W) =>
|
|
35344
|
+
render: (W) => V(ac, { delivery: W.delivery })
|
|
35353
35345
|
},
|
|
35354
35346
|
{
|
|
35355
35347
|
title: "Клиент",
|
|
35356
35348
|
key: Ze.ClientInfoShort,
|
|
35357
35349
|
resizable: !0,
|
|
35358
35350
|
minWidth: 320,
|
|
35359
|
-
render: (W) =>
|
|
35351
|
+
render: (W) => V($o, {
|
|
35360
35352
|
client: W.client,
|
|
35361
35353
|
showCityAndRegion: !1,
|
|
35362
35354
|
"onClick:client-name": () => {
|
|
@@ -35372,7 +35364,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35372
35364
|
width: 120,
|
|
35373
35365
|
render: (W) => {
|
|
35374
35366
|
var re;
|
|
35375
|
-
return
|
|
35367
|
+
return V("span", { class: "text-base" }, ((re = W.client) == null ? void 0 : re.city.name) ?? "—");
|
|
35376
35368
|
}
|
|
35377
35369
|
},
|
|
35378
35370
|
{
|
|
@@ -35384,7 +35376,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35384
35376
|
className: "order-status",
|
|
35385
35377
|
render: (W) => {
|
|
35386
35378
|
var re, ue;
|
|
35387
|
-
return
|
|
35379
|
+
return V("span", { class: "text-base" }, [((ue = (re = l.value) == null ? void 0 : re.find((Y) => Y.id === (W.status ?? -1))) == null ? void 0 : ue.name) ?? ""]);
|
|
35388
35380
|
}
|
|
35389
35381
|
},
|
|
35390
35382
|
{
|
|
@@ -35393,7 +35385,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35393
35385
|
resizable: !0,
|
|
35394
35386
|
width: 115,
|
|
35395
35387
|
minWidth: 95,
|
|
35396
|
-
render: (W) => W.payment ?
|
|
35388
|
+
render: (W) => W.payment ? V(Zf, { payment: W.payment }) : V("span", { class: "text-base" }, "—")
|
|
35397
35389
|
},
|
|
35398
35390
|
{
|
|
35399
35391
|
title: "Напр. продаж",
|
|
@@ -35402,7 +35394,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35402
35394
|
width: 70,
|
|
35403
35395
|
render: (W) => {
|
|
35404
35396
|
var re;
|
|
35405
|
-
return
|
|
35397
|
+
return V("span", { class: "text-base" }, [((re = W.salesDirection) == null ? void 0 : re.name) ?? ""]);
|
|
35406
35398
|
}
|
|
35407
35399
|
},
|
|
35408
35400
|
...i.showAttachedUserColumn ? [
|
|
@@ -35413,7 +35405,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35413
35405
|
minWidth: 120,
|
|
35414
35406
|
render: (W) => {
|
|
35415
35407
|
var re;
|
|
35416
|
-
return
|
|
35408
|
+
return V("span", { class: "text-base" }, [((re = W == null ? void 0 : W.attachedUser) == null ? void 0 : re.name) ?? ""]);
|
|
35417
35409
|
}
|
|
35418
35410
|
}
|
|
35419
35411
|
] : []
|
|
@@ -35423,7 +35415,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35423
35415
|
title: "",
|
|
35424
35416
|
className: "align-top",
|
|
35425
35417
|
width: 50,
|
|
35426
|
-
render: (W) =>
|
|
35418
|
+
render: (W) => V(H5, {
|
|
35427
35419
|
order: W,
|
|
35428
35420
|
orderContextButtonsConfig: i.orderContextButtonsConfig,
|
|
35429
35421
|
onOrderContextSelect: i.onOrderContextSelect
|
|
@@ -35443,7 +35435,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35443
35435
|
title: "Заказ",
|
|
35444
35436
|
resizable: !0,
|
|
35445
35437
|
// eslint-disable-next-line vue/max-len
|
|
35446
|
-
render: (W) =>
|
|
35438
|
+
render: (W) => V(c5, { order: W, fields: R, orderUrl: i.orderUrl })
|
|
35447
35439
|
}
|
|
35448
35440
|
];
|
|
35449
35441
|
case Ct.laptop: {
|
|
@@ -35563,7 +35555,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
35563
35555
|
}, null, 8, ["columns", "data", "row-key", "scroll-x", "pagination", "loading", "max-height"]);
|
|
35564
35556
|
};
|
|
35565
35557
|
}
|
|
35566
|
-
}), R4 = /* @__PURE__ */ Jn(V5, [["__scopeId", "data-v-
|
|
35558
|
+
}), R4 = /* @__PURE__ */ Jn(V5, [["__scopeId", "data-v-25174a4c"]]), j5 = ["href"], q5 = { class: "text-sc-dark-grey" }, U5 = {}, F4 = /* @__PURE__ */ ae({
|
|
35567
35559
|
...U5,
|
|
35568
35560
|
__name: "short-text-order-info",
|
|
35569
35561
|
props: {
|
|
@@ -36001,7 +35993,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
36001
35993
|
return h.length > 0 && p.length > 0 && h.push({
|
|
36002
35994
|
key: "manager-operator-divider",
|
|
36003
35995
|
disabled: !0,
|
|
36004
|
-
render: () =>
|
|
35996
|
+
render: () => V("div", { class: "sc-manager-operator-select__divider" })
|
|
36005
35997
|
}), h.push(...p), h;
|
|
36006
35998
|
}), c = I(
|
|
36007
35999
|
() => l.value.map((h) => ({
|
|
@@ -36231,7 +36223,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
36231
36223
|
}));
|
|
36232
36224
|
}, d = (m, p) => {
|
|
36233
36225
|
const v = a.value.find((y) => y.id === m.value) || {};
|
|
36234
|
-
return
|
|
36226
|
+
return V(
|
|
36235
36227
|
S3,
|
|
36236
36228
|
{
|
|
36237
36229
|
addr: v,
|
|
@@ -36339,7 +36331,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
36339
36331
|
}
|
|
36340
36332
|
}, d = (m, p) => {
|
|
36341
36333
|
const v = a.value.find((y) => y.id === m.value) || {};
|
|
36342
|
-
return
|
|
36334
|
+
return V(
|
|
36343
36335
|
M3,
|
|
36344
36336
|
{
|
|
36345
36337
|
bank: v,
|
|
@@ -36471,7 +36463,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
|
|
|
36471
36463
|
}
|
|
36472
36464
|
}, f = (p, v) => {
|
|
36473
36465
|
const y = a.value.find((C) => C.id === p.value) || {};
|
|
36474
|
-
return
|
|
36466
|
+
return V(
|
|
36475
36467
|
N3,
|
|
36476
36468
|
{
|
|
36477
36469
|
org: y,
|