@snabcentr/vue-ui-lib 3.62.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.
@@ -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 j, 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";
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, DataTablePagination 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";
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) => j(Kn, {
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 j(In, {
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) => j(yo, {
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) => j(yo, {
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) => j(Kn, {
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) => j(jd, {
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, G = 0; ue < Y; ue++) {
5561
- if (G + 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 -= G, this._lengths[ue] !== 0 ? e = y / this._lengths[ue] : e = 0;
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
- G += this._lengths[ue];
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, G;
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 K = n.length - 1; K >= 0; K--) {
8898
- const V = n[K];
8899
- if (/m/i.test(V.command)) {
8900
- a = V;
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]), G = 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 = G, h = Z, a = Z, l = void 0;
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, G, K;
9251
- if (K = this.parent && this.parent._renderer ? this.parent._renderer.opacity : 1, W = this._mask, re = this._clip, a = this._opacity * (K || 1), l = this._visible, !e && (!l || re || a === 0))
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), G = this.dashes, ue || (t.save(), t.transform(
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), G && G.length > 0 && (t.lineDashOffset = G.offset || 0, t.setLineDash(G)), t.beginPath();
9281
- let V, q, ee, te, D, Q, J;
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
- V = y.rx, q = 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(
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(), G && G.length > 0 && t.setLineDash(Ca), he.isFunction(this._renderer.onAfterRender) && this._renderer.onAfterRender(), this.flagReset();
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 G, K, V, q, ee, te, D, Q;
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
- K = ce.rx, V = ce.ry, q = 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(
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
- K,
10082
- V,
10081
+ G,
10082
+ q,
10083
10083
  ee,
10084
10084
  te,
10085
- q,
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 = G, 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));
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
- G = ce, y.moveTo(g, h);
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, G = this._lengths.length, K = 0; Y < G; Y++) {
14543
- if (K + 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 -= K, this._lengths[Y] !== 0 ? i = C / this._lengths[Y] : i = 0;
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
- K += this._lengths[Y];
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, G) => new Tn(i.value.configuratorParams.linesWidths[G], Y, `A-${G + 1}`))
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, G;
18734
- return i.value.configuratorParams.startTailType && ((Y = i.settings.startTailConfigs) != null && Y[i.value.configuratorParams.startTailType]) ? (G = i.settings.startTailConfigs) == null ? void 0 : G[i.value.configuratorParams.startTailType].points : [];
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 G;
18738
- const Y = i.value.configuratorParams.endTailType !== void 0 && ((G = i.settings.endTailConfigs) == null ? void 0 : G[i.value.configuratorParams.endTailType]);
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
- (K, V) => Array.isArray(K) ? new Tn(K[0], K[1], `A-${V + 1}`) : new Tn(K.width, K.angle, `A-${V + 1}`)
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, G = !1) => {
18742
+ }), h = (Y, K = !1) => {
18743
18743
  Y[0].start.x = 0, Y[0].start.y = 0;
18744
- let K = 0;
18745
- for (let V = 0; V < Y.length; V++) {
18746
- const q = Y[V], ee = Y[V - 1] ?? new Tn(0, K);
18747
- K += !G || V > 1 ? ee.angle : 0;
18748
- const te = (!G || V > 0 ? q.angle : 0) + K;
18749
- if (Y[V].end.x = q.width * Math.cos(te * Math.PI / 180) + Y[V].start.x, Y[V].end.y = q.width * Math.sin(te * Math.PI / 180) + Y[V].start.y, V < Y.length - 1) {
18750
- const D = V + 1;
18751
- Y[D].start.x = Y[V].end.x, Y[D].start.y = Y[V].end.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, G, K, V, q = !1) => {
18756
- let ee = h([...K, ...V]);
18757
- G.length > 0 && (ee = [...h(G), ...ee]);
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 = (q ? Y.height : Y.height - ht.colorSideLabel.size) / Math.abs(J - D));
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 G = new So([Y]);
18768
- return G._size = ht.anchorPoint.size, G.fill = ht.anchorPoint.color, G.stroke = "transparent", G._linewidth = ht.anchorPoint.strokeSize, a.push(G), G;
18769
- }, v = (Y, G) => {
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 K = Y[0], V = new Be(K.vertices[0].x, K.vertices[0].y);
18772
- V.bind(de.Types.change, () => {
18773
- K.vertices[0].copy(V);
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 q = p(V);
18776
- G.add(q);
18775
+ const j = p(q);
18776
+ K.add(j);
18777
18777
  }
18778
- Y.forEach((K, V) => {
18779
- const q = Y[V + 1], ee = new Be(K.vertices[1].x, K.vertices[1].y);
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
- K.vertices[1].copy(ee), q !== void 0 && q.vertices[0].copy(ee);
18781
+ G.vertices[1].copy(ee), j !== void 0 && j.vertices[0].copy(ee);
18782
18782
  });
18783
18783
  const te = p(ee);
18784
- G.add(te);
18784
+ K.add(te);
18785
18785
  });
18786
- }, y = (Y) => Y * (Math.PI / 180), C = (Y, G, K) => {
18787
- const V = G.vertices.length - 1;
18788
- Y.position.x = G.vertices[V].x, Y.position.y = G.vertices[V].y;
18789
- const q = Math.atan2(G.vertices[V].y - G.vertices[0].y, G.vertices[V].x - G.vertices[0].x);
18790
- Y.rotation = y(K) + q;
18791
- }, w = (Y, G, K) => {
18792
- if (G.vertices[0] === void 0)
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 = G.vertices[0].x, Y.position.y = G.vertices[0].y;
18795
- const V = G.vertices.length - 1, q = Math.atan2(G.vertices[V].y - G.vertices[0].y, G.vertices[V].x - G.vertices[0].x);
18796
- Y.rotation = y(K) + q;
18797
- }, F = (Y, G, K) => {
18798
- const V = new Rn();
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 V;
18801
- const q = [];
18800
+ return q;
18801
+ const j = [];
18802
18802
  return [...Y].reverse().forEach((ee, te) => {
18803
- te !== 0 && ee.angle > 0 && (ee.angle *= -1), q.push(ee);
18804
- }), Y = h(q, !0), w(V, G, Y[0].angle), [G.vertices[0], G.vertices[1]].forEach((ee) => {
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(V, G, Y[0].angle);
18806
+ w(q, K, Y[0].angle);
18807
18807
  });
18808
18808
  }), Y.forEach((ee) => {
18809
- const te = ee.start.x * K, D = ee.end.x * K, Q = ee.start.y * K, J = ee.end.y * K, ce = new uo(te, Q, D, J);
18810
- ce.linewidth = ht.line.size, ce.stroke = ht.line.color, V.add(ce);
18811
- }), V;
18812
- }, B = (Y, G, K) => {
18813
- const V = new Rn();
18814
- return Y.length === 0 || (Y = h(Y, !0), C(V, G, Y[0].angle), [G.vertices[0], G.vertices[1]].forEach((q) => {
18815
- q.bind(de.Types.change, () => {
18816
- C(V, G, Y[0].angle);
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((q) => {
18819
- const ee = q.start.x * K, te = q.end.x * K, D = q.start.y * K, Q = q.end.y * K, J = new uo(ee, D, te, Q);
18820
- J.linewidth = ht.line.size, J.stroke = ht.line.color, V.add(J);
18821
- })), V;
18822
- }, b = (Y, G, K, V) => {
18823
- const q = G.vertices[0].x + (G.vertices[1].x - G.vertices[0].x) / 2 - 8 * Math.sin(Y.angle * Math.PI / 180), ee = G.vertices[0].y + (G.vertices[1].y - G.vertices[0].y) / 2 - 8 * Math.cos(Y.angle * Math.PI / 180), te = new Ks(Y.label, q + 10, ee - 10);
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, V > 0 && (D = new Ks(`${Y.angle}°`, G.vertices[0].x + 25, G.vertices[0].y - 25), D.size = ht.angleLabel.size, D.weight = 600, D.fill = ht.angleLabel.color, D.rotation = ht.angleLabel.rotation, D.id += V, r.push(D), K.add(D)), K.add(te), x(te, G, 0, D), x(te, G, 1);
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, G = 0, K = 0, V = d.value ? Y / 2 : Y / 2 - Y, q = d.value ? Y / 2 - Y : Y / 2, ee = new Rn();
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(q - V, K - G), Q = [
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(K - te * Math.cos(D + Math.PI / 4), q - te * Math.sin(D + Math.PI / 4), 0, 0, 0, 0, nn.Commands.line)
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, G, K, V) => {
18843
- G.vertices[K].bind(de.Types.change, () => {
18844
- const q = G.vertices.length - 1, ee = Math.atan2(G.vertices[0].y - G.vertices[q].y, G.vertices[0].x - G.vertices[q].x) * 180 / Math.PI, te = G.vertices[0].x + (G.vertices[q].x - G.vertices[0].x) / 2 - 8 * Math.sin(ee * Math.PI / 180), D = G.vertices[0].y + (G.vertices[q].y - G.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, V && (V.position.x = G.vertices[0].x + 25, V.position.y = G.vertices[0].y - 25);
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, G, K, V, q = !1) => {
18847
+ }, T = (Y, K, G, q, j = !1) => {
18848
18848
  var ot;
18849
- if (Y.clear(), K.length === 0) {
18849
+ if (Y.clear(), G.length === 0) {
18850
18850
  Y.update();
18851
18851
  return;
18852
18852
  }
18853
- const ee = h(K), [te, D, Q] = m(Y, G, ee, V, q), J = new Rn(), ce = new Array(), _e = new Array();
18854
- q || (r = [], o = []), ee.forEach((ye, Ht) => {
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 = q ? ht.previewLine.size : ht.line.size, jt.stroke = q ? ht.previewLine.color : ht.line.color, o.push(jt), ce.push(jt), J.add(jt), !q && ye.label !== "" && b(ye, jt, J, Ht);
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 (!q) {
18860
+ if (!j) {
18861
18861
  const ye = S();
18862
18862
  _e.push(ye);
18863
18863
  }
18864
- if (G.length > 0) {
18865
- const ye = F(G, ce[0], te);
18864
+ if (K.length > 0) {
18865
+ const ye = F(K, ce[0], te);
18866
18866
  J.add(ye);
18867
18867
  }
18868
- if (V.length > 0 && Ee) {
18869
- const ye = B(V, Ee, te);
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 * (q ? 1 : c)), J.position.y = 0 - Le.top + (Y.height - Le.height) / (2 * (q ? 1 : c)), Y.update(), !q) {
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, G) => {
18877
- if (Y && !G.isNewRec()) {
18878
- const K = new nn({
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
- K.appendTo(Y), T(K, [], G.points, [], !0);
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, G) => {
18887
- const K = Y[1].x - Y[0].x, V = Y[1].y - Y[0].y, q = G[1].x - G[0].x, ee = G[1].y - G[0].y;
18888
- let te = Math.atan2(K * ee - V * q, K * q + V * ee);
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 G = o.map((K, V, q) => {
18892
- const ee = q[V - 1] ?? {
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(K._length / Y / i.settings.lineWidthStep) * i.settings.lineWidthStep;
18899
- const D = r[V - 1];
18900
- te < (q.length > 1 ? i.settings.minLineWidth : i.settings.stripMinWidth) && (te = q.length > 1 ? i.settings.minLineWidth : i.settings.stripMinWidth), te > i.settings.maxLineWidth && (te = i.settings.maxLineWidth);
18901
- const Q = Z(K.vertices, ee.vertices);
18902
- return D && (D.value = `${Q}°`), new Tn(te, Q, `A-${V + 1}`);
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", G);
18904
+ n("pointer:move", K);
18905
18905
  }, re = (Y) => {
18906
- let G = null, K;
18907
- const V = (D) => {
18908
- G = a.find((Q) => {
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
- }), [K] = m(
18911
+ }), [G] = m(
18912
18912
  Y,
18913
18913
  f.value,
18914
18914
  u.value.map((Q) => Q),
18915
18915
  g.value
18916
18916
  );
18917
- }, q = (D) => {
18918
- if (G) {
18919
- const Q = G.renderer, J = Q == null ? void 0 : Q.elem;
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
- G.vertices[0].x -= ce.x - (D instanceof MouseEvent ? D.clientX : D.targetTouches[0].clientX) + ht.anchorPoint.size / 2, G.vertices[0].y -= ce.y - (D instanceof MouseEvent ? D.clientY : D.targetTouches[0].clientY) + ht.anchorPoint.size / 2, W(K), Y.update();
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
- G && n("pointer:up", u.value), G = null;
18925
+ K && n("pointer:up", u.value), K = null;
18926
18926
  }, te = s.value;
18927
- te && (te.addEventListener("touchstart", V, { passive: !0 }), te.addEventListener("touchend", ee, { passive: !0 }), te.addEventListener("mousedown", V), te.addEventListener("mouseup", ee), te.addEventListener("mousemove", q), te.addEventListener("touchmove", q, { passive: !0 }));
18928
- }, ue = (Y, G) => {
18929
- n("remove-custom-template", Y, G);
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, G) => (_(), M("div", ey, [
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": G[0] || (G[0] = (K) => n("template:select", K)),
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 G;
20776
- const n = t, s = i, r = Ue("form-reference"), o = X(ei(n.value)), a = X({ ...n.validation }), l = (K) => {
20777
- var V;
20778
- delete a.value[K], (V = r.value) == null || V.restoreValidation();
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
- (K) => {
20783
- a.value = { ...K }, Object.values(K).some((q) => q == null ? void 0 : q.feedback) && xt(() => {
20784
- var q;
20785
- return (q = r.value) == null ? void 0 : q.validate(Pt).catch(Pt);
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((K) => ({
20792
- label: K.name,
20793
- value: K.id
20791
+ () => f.value.map((G) => ({
20792
+ label: G.name,
20793
+ value: G.id
20794
20794
  }))
20795
- ), h = (K, V, q) => {
20796
- const ee = K != null && K > 0, te = V != null && V > 0;
20797
- return !ee && !te ? null : ee && te ? `от ${K} ${q} до ${V} ${q}` : ee ? `от ${K} ${q}` : `до ${V} ${q}`;
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 K, V;
20800
- return h(n.settings.minWidth, (V = (K = u.value) == null ? void 0 : K.properties) == null ? void 0 : V.width, "мм");
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 K, V;
20803
- return h(n.settings.minLength, (V = (K = u.value) == null ? void 0 : K.properties) == null ? void 0 : V.length, "мм");
20804
- }), v = X(null), y = X(!1);
20805
- I(() => {
20806
- var K, V;
20807
- return (V = (K = u.value) == null ? void 0 : K.properties) != null && V.width ? pe.max(u.value.properties.width) : null;
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((q, ee) => {
20809
+ return o.value.configuratorParams.items.forEach((j, ee) => {
20818
20810
  var te, D, Q, J, ce, _e, Ee;
20819
- K[`configuratorParams.items.${ee}.width`] = [
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
- ], K[`configuratorParams.items.${ee}.length`] = [
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
- ], K[`configuratorParams.items.${ee}.count`] = [
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
- }), K;
20829
+ }), G;
20838
20830
  }), w = X(n.settings.canSetDopProdaga ?? !1), F = I(() => o.value.configuratorParams.items.some(
20839
- (K) => {
20840
- var V, q;
20841
- return !u.value || !K.width || K.width < n.settings.minWidth || K.width > (((V = u.value.properties) == null ? void 0 : V.width) ?? 0) || K.length === 0 || K.length < n.settings.minLength || K.length > (((q = u.value.properties) == null ? void 0 : q.length) ?? 0) || !K.count || K.count < 1;
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 = (K) => {
20844
- if (!K) {
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 V = f.value.find((q) => q.id === K);
20849
- V && (u.value = V, d.value = K, o.value.product = V, ue("product", o.value.product), o.value.configuratorParams.items.forEach((q) => {
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 = V.properties) != null && ee.width && q.width > V.properties.width && (q.width = V.properties.width), (te = V.properties) != null && te.length && q.length > V.properties.length && (q.length = V.properties.length);
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 K;
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
- (K = r.value) == null || K.validate((V) => {
20864
- if (V) {
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: (q) => {
20879
- q ? (v.value = q, o.value.configuratorParams.calculationId = q.id, o.value.quantity = q.quantity, xt(() => {
20880
- ue("quantity", q.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 V;
20889
- if (!((V = u.value) != null && V.costRub) || !v.value) {
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 K = v.value.quantity * u.value.costRub;
20894
- b.value = Math.round(K * 100) / 100;
20895
- }, z = (K) => {
20896
- var q, ee;
20897
- const V = o.value.configuratorParams.items[K];
20898
- u.value && ((q = u.value.properties) != null && q.width && V.width > u.value.properties.width && (V.width = u.value.properties.width), (ee = u.value.properties) != null && ee.length && V.length > u.value.properties.length && (V.length = u.value.properties.length)), ue("configuratorParams", o.value.configuratorParams), T();
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 = (K) => {
20906
- o.value.configuratorParams.items.splice(K, 1), ue("configuratorParams", o.value.configuratorParams), T(), s("remove-item", K);
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 = (K, V) => {
20916
- const q = new pt(n.value);
20917
- q[K] = V, s("update:value", q);
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
- (K) => {
20922
- const V = ei(fi(K));
20923
- (!V.configuratorParams.items || V.configuratorParams.items.length === 0) && (V.configuratorParams.items = [
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 = V, 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();
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: K } = o.value.configuratorParams, V = o.value.quantity ?? 0;
20935
- K && V > 0 && o.value.product && !o.value.product.isNewRec() && (v.value = {
20936
- id: K,
20937
- quantity: V,
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: (G = r.value) == null ? void 0 : G.validate,
20939
+ validate: (K = r.value) == null ? void 0 : K.validate,
20948
20940
  /**
20949
20941
  * Ссылка на форму.
20950
20942
  */
20951
20943
  formReference: r
20952
- }), (K, V) => {
20953
- const q = Lo, ee = jh;
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
- V[0] || (V[0] = (D) => d.value = D),
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
- V[7] || (V[7] = P("div", { class: "w-full font-bold" }, "Размеры изделий", -1)),
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: V[1] || (V[1] = (J) => A(At)(J)),
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: V[2] || (V[2] = (J) => A(At)(J)),
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: V[3] || (V[3] = (J) => A(At)(J, !1)),
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(q)
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
- V[8] || (V[8] = ie(" Добавить изделие ", -1))
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: V[4] || (V[4] = (D) => l("marker")),
21100
- "onUpdate:value": V[5] || (V[5] = (D) => ue("marker", D ?? null)),
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": V[6] || (V[6] = (D) => {
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(() => [...V[9] || (V[9] = [
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
- V[10] || (V[10] = ie(" Итого: ", -1)),
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
- V[11] || (V[11] = ie(" x ", -1)),
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(() => [...V[12] || (V[12] = [
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
- }, G = (D, Q) => {
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
- }, K = (D) => {
21434
+ }, G = (D) => {
21443
21435
  l.value.forEach((Q) => {
21444
21436
  Q.isAdditionalSale = D;
21445
21437
  }), s("update:value", l.value);
21446
- }, V = () => {
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
- }, q = (D) => {
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) => G(ye, We ?? null),
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) => q(ye)
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) => K(ot ?? !1))
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: V
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(() => V.value && vi.getDeviceTypeByResolution() === Ct.laptop ? "auto" : "fixed"), S = Ue("collapse-item-reference"), x = 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
- }, G = (te) => {
22182
+ }, K = (te) => {
22191
22183
  e.eventEmitter.emit("category:context-select", { category: e.categoryItem, key: te, target: S.value });
22192
- }, K = () => {
22184
+ }, G = () => {
22193
22185
  e.eventEmitter.emit("configurator:click-view-switch", { category: e.categoryItem });
22194
- }, V = X(0), q = I(() => V.value && r.value.length > 0 ? Dp(r.value, {
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
- V.value = window.innerWidth;
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: G
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: K
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: q.value,
22583
+ columns: j.value,
22592
22584
  data: a.value,
22593
22585
  bordered: !0,
22594
22586
  loading: v.value,
@@ -22761,12 +22753,20 @@ const b_ = {
22761
22753
  showEmptyValue: { type: Boolean, default: !1 },
22762
22754
  sortOptionsByLabel: { type: Boolean, default: !1 },
22763
22755
  filterable: { type: Boolean, default: !1 },
22764
- maxTagCount: { default: void 0 }
22756
+ maxTagCount: { default: void 0 },
22757
+ disabledItem: { type: Function, default: void 0 }
22765
22758
  },
22766
22759
  emits: ["update:value"],
22767
22760
  setup(t, { expose: e, emit: i }) {
22768
22761
  const n = t, s = i, r = I(() => dt(n.value)), o = new Rg(), a = I(() => ut(n.value) ? r.value ? [] : null : dt(n.value) ? n.value.map((g) => g.id) : n.value.id), l = I(
22769
- () => pi.convertReferencesToSelectOptionsList(n.referenceList, n.sortOptionsByLabel, !1, n.showEmptyValue)
22762
+ () => pi.convertReferencesToSelectOptionsList(
22763
+ n.referenceList,
22764
+ n.sortOptionsByLabel,
22765
+ !1,
22766
+ n.showEmptyValue,
22767
+ void 0,
22768
+ n.disabledItem
22769
+ )
22770
22770
  ), c = (g) => {
22771
22771
  var h;
22772
22772
  if (dt(g)) {
@@ -22815,7 +22815,8 @@ const b_ = {
22815
22815
  disabled: { type: Boolean },
22816
22816
  catalogItem: {},
22817
22817
  calculationType: {},
22818
- label: {}
22818
+ label: {},
22819
+ disabledCoefficient: { type: Function }
22819
22820
  },
22820
22821
  emits: ["update:value"],
22821
22822
  setup(t, { emit: e }) {
@@ -22940,8 +22941,9 @@ const b_ = {
22940
22941
  disabled: t.disabled,
22941
22942
  "consistent-menu-width": !1,
22942
22943
  "show-empty-value": !0,
22944
+ "disabled-item": t.disabledCoefficient,
22943
22945
  "onUpdate:value": v
22944
- }, null, 8, ["value", "reference-list", "clearable", "disabled"]),
22946
+ }, null, 8, ["value", "reference-list", "clearable", "disabled", "disabled-item"]),
22945
22947
  N(S, {
22946
22948
  value: d.value,
22947
22949
  "onUpdate:value": [
@@ -25550,22 +25552,22 @@ function Fx() {
25550
25552
  if (re === void 0)
25551
25553
  return;
25552
25554
  for (let Y = W.length - 1; Y >= 0 && !t.has(S); --Y) {
25553
- const G = W[Y], K = re.get(G);
25554
- if (K !== void 0) {
25555
- o.set(S, G);
25556
- for (const V of K) {
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) {
25557
25559
  if (e.has(S))
25558
25560
  break;
25559
- V(S);
25561
+ q(S);
25560
25562
  }
25561
25563
  }
25562
25564
  if (Y === 0 && !R && ue !== void 0) {
25563
- const V = ue.get(G);
25564
- if (V !== void 0)
25565
- for (const q of V) {
25565
+ const q = ue.get(K);
25566
+ if (q !== void 0)
25567
+ for (const j of q) {
25566
25568
  if (e.has(S))
25567
25569
  break;
25568
- q(S);
25570
+ j(S);
25569
25571
  }
25570
25572
  }
25571
25573
  }
@@ -25573,13 +25575,13 @@ function Fx() {
25573
25575
  if (ue === void 0)
25574
25576
  return;
25575
25577
  for (let Y = 0; Y < W.length && !t.has(S); ++Y) {
25576
- const G = W[Y], K = ue.get(G);
25577
- if (K !== void 0) {
25578
- o.set(S, G);
25579
- for (const V of K) {
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) {
25580
25582
  if (e.has(S))
25581
25583
  break;
25582
- V(S);
25584
+ q(S);
25583
25585
  }
25584
25586
  }
25585
25587
  }
@@ -26354,7 +26356,7 @@ const c2 = ae({
26354
26356
  };
26355
26357
  },
26356
26358
  render() {
26357
- return this.showTeleport ? this.disabled ? vl("lazy-teleport", this.$slots) : j(pg, {
26359
+ return this.showTeleport ? this.disabled ? vl("lazy-teleport", this.$slots) : V(pg, {
26358
26360
  disabled: this.disabled,
26359
26361
  to: this.mergedTo
26360
26362
  }, vl("lazy-teleport", this.$slots)) : null;
@@ -26757,18 +26759,18 @@ const p2 = qn([
26757
26759
  };
26758
26760
  },
26759
26761
  render() {
26760
- return j(c2, {
26762
+ return V(c2, {
26761
26763
  show: this.show,
26762
26764
  to: this.mergedTo,
26763
26765
  disabled: this.teleportDisabled
26764
26766
  }, {
26765
26767
  default: () => {
26766
26768
  var t, e;
26767
- const i = j("div", {
26769
+ const i = V("div", {
26768
26770
  class: ["v-binder-follower-container", this.containerClass],
26769
26771
  ref: "offsetContainerRef"
26770
26772
  }, [
26771
- j("div", {
26773
+ V("div", {
26772
26774
  class: "v-binder-follower-content",
26773
26775
  ref: "followerRef"
26774
26776
  }, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t))
@@ -27309,31 +27311,31 @@ const ad = ae({
27309
27311
  }), l = X(null), c = X(void 0), u = /* @__PURE__ */ new Map(), d = I(() => {
27310
27312
  const { items: z, itemSize: Z, keyField: W } = t, re = new mf(z.length, Z);
27311
27313
  return z.forEach((ue, Y) => {
27312
- const G = ue[W], K = u.get(G);
27313
- K !== void 0 && re.add(Y, K);
27314
+ const K = ue[W], G = u.get(K);
27315
+ G !== void 0 && re.add(Y, G);
27314
27316
  }), re;
27315
27317
  }), f = X(0), g = X(0), h = zi(() => Math.max(d.value.getBound(g.value - Tr(t.paddingTop)) - 1, 0)), m = I(() => {
27316
27318
  const { value: z } = c;
27317
27319
  if (z === void 0)
27318
27320
  return [];
27319
27321
  const { items: Z, itemSize: W } = t, re = h.value, ue = Math.min(re + Math.ceil(z / W + 1), Z.length - 1), Y = [];
27320
- for (let G = re; G <= ue; ++G)
27321
- Y.push(Z[G]);
27322
+ for (let K = re; K <= ue; ++K)
27323
+ Y.push(Z[K]);
27322
27324
  return Y;
27323
27325
  }), p = (z, Z) => {
27324
27326
  if (typeof z == "number") {
27325
27327
  w(z, Z, "auto");
27326
27328
  return;
27327
27329
  }
27328
- const { left: W, top: re, index: ue, key: Y, position: G, behavior: K, debounce: V = !0 } = z;
27330
+ const { left: W, top: re, index: ue, key: Y, position: K, behavior: G, debounce: q = !0 } = z;
27329
27331
  if (W !== void 0 || re !== void 0)
27330
- w(W, re, K);
27332
+ w(W, re, G);
27331
27333
  else if (ue !== void 0)
27332
- C(ue, K, V);
27334
+ C(ue, G, q);
27333
27335
  else if (Y !== void 0) {
27334
- const q = r.value.get(Y);
27335
- q !== void 0 && C(q, K, V);
27336
- } else G === "bottom" ? w(0, Number.MAX_SAFE_INTEGER, K) : G === "top" && w(0, 0, K);
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);
27337
27339
  };
27338
27340
  let v, y = null;
27339
27341
  function C(z, Z, W) {
@@ -27348,12 +27350,12 @@ const ad = ae({
27348
27350
  v = z, y !== null && window.clearTimeout(y), y = window.setTimeout(() => {
27349
27351
  v = void 0, y = null;
27350
27352
  }, 16);
27351
- const { scrollTop: Y, offsetHeight: G } = l.value;
27353
+ const { scrollTop: Y, offsetHeight: K } = l.value;
27352
27354
  if (ue > Y) {
27353
- const K = re.get(z);
27354
- ue + K <= Y + G || l.value.scrollTo({
27355
+ const G = re.get(z);
27356
+ ue + G <= Y + K || l.value.scrollTo({
27355
27357
  left: 0,
27356
- top: ue + K - G,
27358
+ top: ue + G - K,
27357
27359
  behavior: Z
27358
27360
  });
27359
27361
  } else
@@ -27375,24 +27377,24 @@ const ad = ae({
27375
27377
  var W, re, ue;
27376
27378
  if (i || t.ignoreItemResize || O(Z.target))
27377
27379
  return;
27378
- const { value: Y } = d, G = r.value.get(z), K = Y.get(G), V = (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;
27379
- if (V === K)
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)
27380
27382
  return;
27381
- V - t.itemSize === 0 ? u.delete(z) : u.set(z, V - t.itemSize);
27382
- const ee = V - K;
27383
+ q - t.itemSize === 0 ? u.delete(z) : u.set(z, q - t.itemSize);
27384
+ const ee = q - G;
27383
27385
  if (ee === 0)
27384
27386
  return;
27385
- Y.add(G, ee);
27387
+ Y.add(K, ee);
27386
27388
  const te = l.value;
27387
27389
  if (te != null) {
27388
27390
  if (v === void 0) {
27389
- const D = Y.sum(G);
27391
+ const D = Y.sum(K);
27390
27392
  te.scrollTop > D && te.scrollBy(0, ee);
27391
- } else if (G < v)
27393
+ } else if (K < v)
27392
27394
  te.scrollBy(0, ee);
27393
- else if (G === v) {
27394
- const D = Y.sum(G);
27395
- V + D > // Note, listEl shouldn't have border, nor offsetHeight won't be
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
27396
27398
  // correct
27397
27399
  te.scrollTop + te.offsetHeight && te.scrollBy(0, ee);
27398
27400
  }
@@ -27479,33 +27481,33 @@ const ad = ae({
27479
27481
  },
27480
27482
  render() {
27481
27483
  const { itemResizable: t, keyField: e, keyToIndex: i, visibleItemsTag: n } = this;
27482
- return j(Bo, {
27484
+ return V(Bo, {
27483
27485
  onResize: this.handleListResize
27484
27486
  }, {
27485
27487
  default: () => {
27486
27488
  var s, r;
27487
- return j("div", Pl(this.$attrs, {
27489
+ return V("div", Pl(this.$attrs, {
27488
27490
  class: ["v-vl", this.showScrollbar && "v-vl--show-scrollbar"],
27489
27491
  onScroll: this.handleListScroll,
27490
27492
  onWheel: this.handleListWheel,
27491
27493
  ref: "listElRef"
27492
27494
  }), [
27493
- this.items.length !== 0 ? j("div", {
27495
+ this.items.length !== 0 ? V("div", {
27494
27496
  ref: "itemsElRef",
27495
27497
  class: "v-vl-items",
27496
27498
  style: this.itemsStyle
27497
27499
  }, [
27498
- j(n, Object.assign({
27500
+ V(n, Object.assign({
27499
27501
  class: "v-vl-visible-items",
27500
27502
  style: this.visibleItemsStyle
27501
27503
  }, this.visibleItemsProps), {
27502
27504
  default: () => {
27503
27505
  const { renderCol: o, renderItemWithCols: a } = this;
27504
27506
  return this.viewportItems.map((l) => {
27505
- const c = l[e], u = i.get(c), d = o != null ? j(ad, {
27507
+ const c = l[e], u = i.get(c), d = o != null ? V(ad, {
27506
27508
  index: u,
27507
27509
  item: l
27508
- }) : void 0, f = a != null ? j(ad, {
27510
+ }) : void 0, f = a != null ? V(ad, {
27509
27511
  index: u,
27510
27512
  item: l
27511
27513
  }) : void 0, g = this.$slots.default({
@@ -27514,7 +27516,7 @@ const ad = ae({
27514
27516
  renderedItemWithCols: f,
27515
27517
  index: u
27516
27518
  })[0];
27517
- return t ? j(Bo, {
27519
+ return t ? V(Bo, {
27518
27520
  key: c,
27519
27521
  onResize: (h) => this.handleItemResize(c, h)
27520
27522
  }, {
@@ -27599,13 +27601,13 @@ const ad = ae({
27599
27601
  const { $slots: t } = this;
27600
27602
  return xt(() => this.sync({
27601
27603
  showAllItemsBeforeCalculate: !1
27602
- })), j("div", {
27604
+ })), V("div", {
27603
27605
  class: "v-overflow",
27604
27606
  ref: "selfRef"
27605
27607
  }, [
27606
27608
  Re(t, "default"),
27607
27609
  // $slots.counter should only has 1 element
27608
- t.counter ? t.counter() : j("span", {
27610
+ t.counter ? t.counter() : V("span", {
27609
27611
  style: {
27610
27612
  display: "inline-block"
27611
27613
  },
@@ -27772,8 +27774,8 @@ const q2 = ae({
27772
27774
  if (this.disabled)
27773
27775
  return t();
27774
27776
  const { active: e, focusableStyle: i } = this;
27775
- return j(we, null, [
27776
- j("div", {
27777
+ return V(we, null, [
27778
+ V("div", {
27777
27779
  "aria-hidden": "true",
27778
27780
  tabindex: e ? "0" : "-1",
27779
27781
  ref: "focusableStartRef",
@@ -27781,7 +27783,7 @@ const q2 = ae({
27781
27783
  onFocus: this.handleStartFocus
27782
27784
  }),
27783
27785
  t(),
27784
- j("div", {
27786
+ V("div", {
27785
27787
  "aria-hidden": "true",
27786
27788
  style: i,
27787
27789
  ref: "focusableEndRef",
@@ -28968,7 +28970,7 @@ const Uk = Te("base-icon", `
28968
28970
  Go("-base-icon", Uk, st(t, "clsPrefix"));
28969
28971
  },
28970
28972
  render() {
28971
- return j("i", {
28973
+ return V("i", {
28972
28974
  class: `${this.clsPrefix}-base-icon`,
28973
28975
  onClick: this.onClick,
28974
28976
  onMousedown: this.onMousedown,
@@ -28985,7 +28987,7 @@ const Uk = Te("base-icon", `
28985
28987
  slots: e
28986
28988
  }) {
28987
28989
  const i = Xo();
28988
- return () => j(xs, {
28990
+ return () => V(xs, {
28989
28991
  name: "icon-switch-transition",
28990
28992
  appear: i.value
28991
28993
  }, e);
@@ -29005,7 +29007,7 @@ function Nf(t, e) {
29005
29007
  return () => {
29006
29008
  var r;
29007
29009
  const o = (r = s == null ? void 0 : s.value) === null || r === void 0 ? void 0 : r[t];
29008
- return o ? o() : j(i, null);
29010
+ return o ? o() : V(i, null);
29009
29011
  };
29010
29012
  }
29011
29013
  });
@@ -29013,12 +29015,12 @@ function Nf(t, e) {
29013
29015
  const Xk = ae({
29014
29016
  name: "Checkmark",
29015
29017
  render() {
29016
- return j("svg", {
29018
+ return V("svg", {
29017
29019
  xmlns: "http://www.w3.org/2000/svg",
29018
29020
  viewBox: "0 0 16 16"
29019
- }, j("g", {
29021
+ }, V("g", {
29020
29022
  fill: "none"
29021
- }, j("path", {
29023
+ }, V("path", {
29022
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",
29023
29025
  fill: "currentColor"
29024
29026
  })));
@@ -29026,55 +29028,55 @@ const Xk = ae({
29026
29028
  }), Yk = ae({
29027
29029
  name: "ChevronDown",
29028
29030
  render() {
29029
- return j("svg", {
29031
+ return V("svg", {
29030
29032
  viewBox: "0 0 16 16",
29031
29033
  fill: "none",
29032
29034
  xmlns: "http://www.w3.org/2000/svg"
29033
- }, j("path", {
29035
+ }, V("path", {
29034
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",
29035
29037
  fill: "currentColor"
29036
29038
  }));
29037
29039
  }
29038
- }), Kk = Nf("clear", () => j("svg", {
29040
+ }), Kk = Nf("clear", () => V("svg", {
29039
29041
  viewBox: "0 0 16 16",
29040
29042
  version: "1.1",
29041
29043
  xmlns: "http://www.w3.org/2000/svg"
29042
- }, j("g", {
29044
+ }, V("g", {
29043
29045
  stroke: "none",
29044
29046
  "stroke-width": "1",
29045
29047
  fill: "none",
29046
29048
  "fill-rule": "evenodd"
29047
- }, j("g", {
29049
+ }, V("g", {
29048
29050
  fill: "currentColor",
29049
29051
  "fill-rule": "nonzero"
29050
- }, j("path", {
29052
+ }, V("path", {
29051
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"
29052
- }))))), Gk = Nf("close", () => j("svg", {
29054
+ }))))), Gk = Nf("close", () => V("svg", {
29053
29055
  viewBox: "0 0 12 12",
29054
29056
  version: "1.1",
29055
29057
  xmlns: "http://www.w3.org/2000/svg",
29056
29058
  "aria-hidden": !0
29057
- }, j("g", {
29059
+ }, V("g", {
29058
29060
  stroke: "none",
29059
29061
  "stroke-width": "1",
29060
29062
  fill: "none",
29061
29063
  "fill-rule": "evenodd"
29062
- }, j("g", {
29064
+ }, V("g", {
29063
29065
  fill: "currentColor",
29064
29066
  "fill-rule": "nonzero"
29065
- }, j("path", {
29067
+ }, V("path", {
29066
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"
29067
29069
  }))))), Zk = ae({
29068
29070
  name: "Empty",
29069
29071
  render() {
29070
- return j("svg", {
29072
+ return V("svg", {
29071
29073
  viewBox: "0 0 28 28",
29072
29074
  fill: "none",
29073
29075
  xmlns: "http://www.w3.org/2000/svg"
29074
- }, j("path", {
29076
+ }, V("path", {
29075
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",
29076
29078
  fill: "currentColor"
29077
- }), j("path", {
29079
+ }), V("path", {
29078
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",
29079
29081
  fill: "currentColor"
29080
29082
  }));
@@ -29155,22 +29157,22 @@ const Jk = Te("base-clear", `
29155
29157
  const {
29156
29158
  clsPrefix: t
29157
29159
  } = this;
29158
- return j("div", {
29160
+ return V("div", {
29159
29161
  class: `${t}-base-clear`
29160
- }, j(Df, null, {
29162
+ }, V(Df, null, {
29161
29163
  default: () => {
29162
29164
  var e, i;
29163
- return this.show ? j("div", {
29165
+ return this.show ? V("div", {
29164
29166
  key: "dismiss",
29165
29167
  class: `${t}-base-clear__clear`,
29166
29168
  onClick: this.onClear,
29167
29169
  onMousedown: this.handleMouseDown,
29168
29170
  "data-clear": !0
29169
- }, rc(this.$slots.icon, () => [j(zr, {
29171
+ }, rc(this.$slots.icon, () => [V(zr, {
29170
29172
  clsPrefix: t
29171
29173
  }, {
29172
- default: () => j(Kk, null)
29173
- })])) : j("div", {
29174
+ default: () => V(Kk, null)
29175
+ })])) : V("div", {
29174
29176
  key: "icon",
29175
29177
  class: `${t}-base-clear__placeholder`
29176
29178
  }, (i = (e = this.$slots).placeholder) === null || i === void 0 ? void 0 : i.call(e));
@@ -29253,7 +29255,7 @@ const Jk = Te("base-clear", `
29253
29255
  round: s,
29254
29256
  isButtonTag: r
29255
29257
  } = t;
29256
- return j(r ? "button" : "div", {
29258
+ return V(r ? "button" : "div", {
29257
29259
  type: r ? "button" : void 0,
29258
29260
  tabindex: i || !t.focusable ? -1 : 0,
29259
29261
  "aria-disabled": i,
@@ -29265,10 +29267,10 @@ const Jk = Te("base-clear", `
29265
29267
  t.focusable || a.preventDefault();
29266
29268
  },
29267
29269
  onClick: t.onClick
29268
- }, j(zr, {
29270
+ }, V(zr, {
29269
29271
  clsPrefix: e
29270
29272
  }, {
29271
- default: () => j(Gk, null)
29273
+ default: () => V(Gk, null)
29272
29274
  }));
29273
29275
  };
29274
29276
  }
@@ -29278,7 +29280,7 @@ const Jk = Te("base-clear", `
29278
29280
  onBlur: Function
29279
29281
  },
29280
29282
  setup(t) {
29281
- return () => j("div", {
29283
+ return () => V("div", {
29282
29284
  style: "width: 0; height: 0",
29283
29285
  tabindex: 0,
29284
29286
  onFocus: t.onFocus,
@@ -29356,24 +29358,24 @@ const Jk = Te("base-clear", `
29356
29358
  stroke: n,
29357
29359
  scale: s
29358
29360
  } = this, r = e / s;
29359
- return j("div", {
29361
+ return V("div", {
29360
29362
  class: `${t}-base-loading`,
29361
29363
  role: "img",
29362
29364
  "aria-label": "loading"
29363
- }, j(Df, null, {
29364
- default: () => this.show ? j("div", {
29365
+ }, V(Df, null, {
29366
+ default: () => this.show ? V("div", {
29365
29367
  key: "icon",
29366
29368
  class: `${t}-base-loading__transition-wrapper`
29367
- }, j("div", {
29369
+ }, V("div", {
29368
29370
  class: `${t}-base-loading__container`
29369
- }, j("svg", {
29371
+ }, V("svg", {
29370
29372
  class: `${t}-base-loading__icon`,
29371
29373
  viewBox: `0 0 ${2 * r} ${2 * r}`,
29372
29374
  xmlns: "http://www.w3.org/2000/svg",
29373
29375
  style: {
29374
29376
  color: n
29375
29377
  }
29376
- }, j("g", null, j("animateTransform", {
29378
+ }, V("g", null, V("animateTransform", {
29377
29379
  attributeName: "transform",
29378
29380
  type: "rotate",
29379
29381
  values: `0 ${r} ${r};270 ${r} ${r}`,
@@ -29381,7 +29383,7 @@ const Jk = Te("base-clear", `
29381
29383
  dur: ja,
29382
29384
  fill: "freeze",
29383
29385
  repeatCount: "indefinite"
29384
- }), j("circle", {
29386
+ }), V("circle", {
29385
29387
  class: `${t}-base-loading__icon`,
29386
29388
  fill: "none",
29387
29389
  stroke: "currentColor",
@@ -29392,7 +29394,7 @@ const Jk = Te("base-clear", `
29392
29394
  r: e - i / 2,
29393
29395
  "stroke-dasharray": 5.67 * e,
29394
29396
  "stroke-dashoffset": 18.48 * e
29395
- }, j("animateTransform", {
29397
+ }, V("animateTransform", {
29396
29398
  attributeName: "transform",
29397
29399
  type: "rotate",
29398
29400
  values: `0 ${r} ${r};135 ${r} ${r};450 ${r} ${r}`,
@@ -29400,14 +29402,14 @@ const Jk = Te("base-clear", `
29400
29402
  dur: ja,
29401
29403
  fill: "freeze",
29402
29404
  repeatCount: "indefinite"
29403
- }), j("animate", {
29405
+ }), V("animate", {
29404
29406
  attributeName: "stroke-dashoffset",
29405
29407
  values: `${5.67 * e};${1.42 * e};${5.67 * e}`,
29406
29408
  begin: "0s",
29407
29409
  dur: ja,
29408
29410
  fill: "freeze",
29409
29411
  repeatCount: "indefinite"
29410
- })))))) : j("div", {
29412
+ })))))) : V("div", {
29411
29413
  key: "placeholder",
29412
29414
  class: `${t}-base-loading__placeholder`
29413
29415
  }, this.$slots)
@@ -29769,7 +29771,7 @@ const oc = {
29769
29771
  const Se = me - L;
29770
29772
  return Se ? se / Se * (Ce - Z.value) : 0;
29771
29773
  }
29772
- }), G = I(() => `${Y.value}px`), K = I(() => {
29774
+ }), K = I(() => `${Y.value}px`), G = I(() => {
29773
29775
  const {
29774
29776
  value: L
29775
29777
  } = g, {
@@ -29785,7 +29787,7 @@ const oc = {
29785
29787
  const Se = me - L;
29786
29788
  return Se ? se / Se * (Ce - re.value) : 0;
29787
29789
  }
29788
- }), V = I(() => `${K.value}px`), q = I(() => {
29790
+ }), q = I(() => `${G.value}px`), j = I(() => {
29789
29791
  const {
29790
29792
  value: L
29791
29793
  } = f, {
@@ -30015,7 +30017,7 @@ const oc = {
30015
30017
  value: L
30016
30018
  } = ee, {
30017
30019
  value: se
30018
- } = q, {
30020
+ } = j, {
30019
30021
  value: me
30020
30022
  } = e, {
30021
30023
  value: Ce
@@ -30108,12 +30110,12 @@ const oc = {
30108
30110
  contentRef: a,
30109
30111
  yRailRef: l,
30110
30112
  xRailRef: c,
30111
- needYBar: q,
30113
+ needYBar: j,
30112
30114
  needXBar: ee,
30113
30115
  yBarSizePx: W,
30114
30116
  xBarSizePx: ue,
30115
- yBarTopPx: G,
30116
- xBarLeftPx: V,
30117
+ yBarTopPx: K,
30118
+ xBarLeftPx: q,
30117
30119
  isShowXBar: te,
30118
30120
  isShowYBar: D,
30119
30121
  isIos: O,
@@ -30140,16 +30142,16 @@ const oc = {
30140
30142
  xScrollable: l
30141
30143
  } = this;
30142
30144
  if (!this.scrollable) return (t = e.default) === null || t === void 0 ? void 0 : t.call(e);
30143
- const c = this.trigger === "none", u = (g, h) => j("div", {
30145
+ const c = this.trigger === "none", u = (g, h) => V("div", {
30144
30146
  ref: "yRailRef",
30145
30147
  class: [`${i}-scrollbar-rail`, `${i}-scrollbar-rail--vertical`, `${i}-scrollbar-rail--vertical--${o}`, g],
30146
30148
  "data-scrollbar-rail": !0,
30147
30149
  style: [h || "", this.verticalRailStyle],
30148
30150
  "aria-hidden": !0
30149
- }, j(c ? kl : xs, c ? null : {
30151
+ }, V(c ? kl : xs, c ? null : {
30150
30152
  name: "fade-in-transition"
30151
30153
  }, {
30152
- default: () => this.needYBar && this.isShowYBar && !this.isIos ? j("div", {
30154
+ default: () => this.needYBar && this.isShowYBar && !this.isIos ? V("div", {
30153
30155
  class: `${i}-scrollbar-rail__scrollbar`,
30154
30156
  style: {
30155
30157
  height: this.yBarSizePx,
@@ -30159,24 +30161,24 @@ const oc = {
30159
30161
  }) : null
30160
30162
  })), d = () => {
30161
30163
  var g, h;
30162
- return (g = this.onRender) === null || g === void 0 || g.call(this), j("div", Pl(this.$attrs, {
30164
+ return (g = this.onRender) === null || g === void 0 || g.call(this), V("div", Pl(this.$attrs, {
30163
30165
  role: "none",
30164
30166
  ref: "wrapperRef",
30165
30167
  class: [`${i}-scrollbar`, this.themeClass, s && `${i}-scrollbar--rtl`],
30166
30168
  style: this.cssVars,
30167
30169
  onMouseenter: n ? void 0 : this.handleMouseEnterWrapper,
30168
30170
  onMouseleave: n ? void 0 : this.handleMouseLeaveWrapper
30169
- }), [this.container ? (h = e.default) === null || h === void 0 ? void 0 : h.call(e) : j("div", {
30171
+ }), [this.container ? (h = e.default) === null || h === void 0 ? void 0 : h.call(e) : V("div", {
30170
30172
  role: "none",
30171
30173
  ref: "containerRef",
30172
30174
  class: [`${i}-scrollbar-container`, this.containerClass],
30173
30175
  style: this.containerStyle,
30174
30176
  onScroll: this.handleScroll,
30175
30177
  onWheel: this.onWheel
30176
- }, j(Bo, {
30178
+ }, V(Bo, {
30177
30179
  onResize: this.handleContentResize
30178
30180
  }, {
30179
- default: () => j("div", {
30181
+ default: () => V("div", {
30180
30182
  ref: "contentRef",
30181
30183
  role: "none",
30182
30184
  style: [{
@@ -30184,16 +30186,16 @@ const oc = {
30184
30186
  }, this.contentStyle],
30185
30187
  class: [`${i}-scrollbar-content`, this.contentClass]
30186
30188
  }, e)
30187
- })), r ? null : u(void 0, void 0), l && j("div", {
30189
+ })), r ? null : u(void 0, void 0), l && V("div", {
30188
30190
  ref: "xRailRef",
30189
30191
  class: [`${i}-scrollbar-rail`, `${i}-scrollbar-rail--horizontal`, `${i}-scrollbar-rail--horizontal--${a}`],
30190
30192
  style: this.horizontalRailStyle,
30191
30193
  "data-scrollbar-rail": !0,
30192
30194
  "aria-hidden": !0
30193
- }, j(c ? kl : xs, c ? null : {
30195
+ }, V(c ? kl : xs, c ? null : {
30194
30196
  name: "fade-in-transition"
30195
30197
  }, {
30196
- default: () => this.needXBar && this.isShowXBar && !this.isIos ? j("div", {
30198
+ default: () => this.needXBar && this.isShowXBar && !this.isIos ? V("div", {
30197
30199
  class: `${i}-scrollbar-rail__scrollbar`,
30198
30200
  style: {
30199
30201
  width: this.xBarSizePx,
@@ -30203,12 +30205,12 @@ const oc = {
30203
30205
  onMousedown: this.handleXScrollMouseDown
30204
30206
  }) : null
30205
30207
  }))]);
30206
- }, f = this.container ? d() : j(Bo, {
30208
+ }, f = this.container ? d() : V(Bo, {
30207
30209
  onResize: this.handleContainerResize
30208
30210
  }, {
30209
30211
  default: d
30210
30212
  });
30211
- return r ? j(we, null, f, u(this.themeClass, this.cssVars)) : f;
30213
+ return r ? V(we, null, f, u(this.themeClass, this.cssVars)) : f;
30212
30214
  }
30213
30215
  }), fC = Vf, gC = {
30214
30216
  iconSizeTiny: "28px",
@@ -30297,7 +30299,7 @@ const jf = {
30297
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;
30298
30300
  }), a = I(() => {
30299
30301
  var u, d;
30300
- 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) || (() => j(Zk, null));
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));
30301
30303
  }), l = I(() => {
30302
30304
  const {
30303
30305
  size: u
@@ -30343,18 +30345,18 @@ const jf = {
30343
30345
  mergedClsPrefix: e,
30344
30346
  onRender: i
30345
30347
  } = this;
30346
- return i == null || i(), j("div", {
30348
+ return i == null || i(), V("div", {
30347
30349
  class: [`${e}-empty`, this.themeClass],
30348
30350
  style: this.cssVars
30349
- }, this.showIcon ? j("div", {
30351
+ }, this.showIcon ? V("div", {
30350
30352
  class: `${e}-empty__icon`
30351
- }, t.icon ? t.icon() : j(zr, {
30353
+ }, t.icon ? t.icon() : V(zr, {
30352
30354
  clsPrefix: e
30353
30355
  }, {
30354
30356
  default: this.mergedRenderIcon
30355
- })) : null, this.showDescription ? j("div", {
30357
+ })) : null, this.showDescription ? V("div", {
30356
30358
  class: `${e}-empty__description`
30357
- }, t.default ? t.default() : this.localizedDescription) : null, t.extra ? j("div", {
30359
+ }, t.default ? t.default() : this.localizedDescription) : null, t.extra ? V("div", {
30358
30360
  class: `${e}-empty__extra`
30359
30361
  }, t.extra()) : null);
30360
30362
  }
@@ -30466,7 +30468,7 @@ const qf = {
30466
30468
  tmNode: {
30467
30469
  rawNode: s
30468
30470
  }
30469
- } = this, r = n == null ? void 0 : n(s), o = e ? e(s, !1) : Xs(s[this.labelField], s, !1), a = j("div", Object.assign({}, r, {
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, {
30470
30472
  class: [`${t}-base-select-group-header`, r == null ? void 0 : r.class]
30471
30473
  }), o);
30472
30474
  return s.render ? s.render({
@@ -30480,14 +30482,14 @@ const qf = {
30480
30482
  }
30481
30483
  });
30482
30484
  function wC(t, e) {
30483
- return j(xs, {
30485
+ return V(xs, {
30484
30486
  name: "fade-in-scale-up-transition"
30485
30487
  }, {
30486
- default: () => t ? j(zr, {
30488
+ default: () => t ? V(zr, {
30487
30489
  clsPrefix: e,
30488
30490
  class: `${e}-base-select-option__check`
30489
30491
  }, {
30490
- default: () => j(Xk)
30492
+ default: () => V(Xk)
30491
30493
  }) : null
30492
30494
  });
30493
30495
  }
@@ -30596,7 +30598,7 @@ const wd = ae({
30596
30598
  handleClick: c,
30597
30599
  handleMouseEnter: u,
30598
30600
  handleMouseMove: d
30599
- } = 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 = j("div", Object.assign({}, h, {
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, {
30600
30602
  class: [`${t}-base-select-option`, e.class, h == null ? void 0 : h.class, {
30601
30603
  [`${t}-base-select-option--disabled`]: e.disabled,
30602
30604
  [`${t}-base-select-option--selected`]: i,
@@ -30608,7 +30610,7 @@ const wd = ae({
30608
30610
  onClick: Wa([c, h == null ? void 0 : h.onClick]),
30609
30611
  onMouseenter: Wa([u, h == null ? void 0 : h.onMouseenter]),
30610
30612
  onMousemove: Wa([d, h == null ? void 0 : h.onMousemove])
30611
- }), j("div", {
30613
+ }), V("div", {
30612
30614
  class: `${t}-base-select-option__content`
30613
30615
  }, g));
30614
30616
  return e.render ? e.render({
@@ -30831,23 +30833,23 @@ const xC = Te("base-select-menu", `
30831
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);
30832
30834
  function d() {
30833
30835
  const {
30834
- treeMate: q
30836
+ treeMate: j
30835
30837
  } = t;
30836
30838
  let ee = null;
30837
30839
  const {
30838
30840
  value: te
30839
30841
  } = t;
30840
- te === null ? ee = q.getFirstAvailableNode() : (t.multiple ? ee = q.getNode((te || [])[(te || []).length - 1]) : ee = q.getNode(te), (!ee || ee.disabled) && (ee = q.getFirstAvailableNode())), Z(ee || null);
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);
30841
30843
  }
30842
30844
  function f() {
30843
30845
  const {
30844
- value: q
30846
+ value: j
30845
30847
  } = u;
30846
- q && !t.treeMate.getNode(q.key) && (u.value = null);
30848
+ j && !t.treeMate.getNode(j.key) && (u.value = null);
30847
30849
  }
30848
30850
  let g;
30849
- ke(() => t.show, (q) => {
30850
- q ? g = ke(() => t.treeMate, () => {
30851
+ ke(() => t.show, (j) => {
30852
+ j ? g = ke(() => t.treeMate, () => {
30851
30853
  t.resetMenuOnOptionsChange ? (t.autoPending ? d() : f(), xt(W)) : f();
30852
30854
  }, {
30853
30855
  immediate: !0
@@ -30858,91 +30860,91 @@ const xC = Te("base-select-menu", `
30858
30860
  g == null || g();
30859
30861
  });
30860
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(() => {
30861
- const q = l.value;
30862
- return q && q.length === 0;
30863
+ const j = l.value;
30864
+ return j && j.length === 0;
30863
30865
  });
30864
- function y(q) {
30866
+ function y(j) {
30865
30867
  const {
30866
30868
  onToggle: ee
30867
30869
  } = t;
30868
- ee && ee(q);
30870
+ ee && ee(j);
30869
30871
  }
30870
- function C(q) {
30872
+ function C(j) {
30871
30873
  const {
30872
30874
  onScroll: ee
30873
30875
  } = t;
30874
- ee && ee(q);
30876
+ ee && ee(j);
30875
30877
  }
30876
- function w(q) {
30878
+ function w(j) {
30877
30879
  var ee;
30878
- (ee = a.value) === null || ee === void 0 || ee.sync(), C(q);
30880
+ (ee = a.value) === null || ee === void 0 || ee.sync(), C(j);
30879
30881
  }
30880
30882
  function F() {
30881
- var q;
30882
- (q = a.value) === null || q === void 0 || q.sync();
30883
+ var j;
30884
+ (j = a.value) === null || j === void 0 || j.sync();
30883
30885
  }
30884
30886
  function B() {
30885
30887
  const {
30886
- value: q
30888
+ value: j
30887
30889
  } = u;
30888
- return q || null;
30890
+ return j || null;
30889
30891
  }
30890
- function b(q, ee) {
30892
+ function b(j, ee) {
30891
30893
  ee.disabled || Z(ee, !1);
30892
30894
  }
30893
- function S(q, ee) {
30895
+ function S(j, ee) {
30894
30896
  ee.disabled || y(ee);
30895
30897
  }
30896
- function x(q) {
30898
+ function x(j) {
30897
30899
  var ee;
30898
- vr(q, "action") || (ee = t.onKeyup) === null || ee === void 0 || ee.call(t, q);
30900
+ vr(j, "action") || (ee = t.onKeyup) === null || ee === void 0 || ee.call(t, j);
30899
30901
  }
30900
- function T(q) {
30902
+ function T(j) {
30901
30903
  var ee;
30902
- vr(q, "action") || (ee = t.onKeydown) === null || ee === void 0 || ee.call(t, q);
30904
+ vr(j, "action") || (ee = t.onKeydown) === null || ee === void 0 || ee.call(t, j);
30903
30905
  }
30904
- function R(q) {
30906
+ function R(j) {
30905
30907
  var ee;
30906
- (ee = t.onMousedown) === null || ee === void 0 || ee.call(t, q), !t.focusable && q.preventDefault();
30908
+ (ee = t.onMousedown) === null || ee === void 0 || ee.call(t, j), !t.focusable && j.preventDefault();
30907
30909
  }
30908
30910
  function O() {
30909
30911
  const {
30910
- value: q
30912
+ value: j
30911
30913
  } = u;
30912
- q && Z(q.getNext({
30914
+ j && Z(j.getNext({
30913
30915
  loop: !0
30914
30916
  }), !0);
30915
30917
  }
30916
30918
  function z() {
30917
30919
  const {
30918
- value: q
30920
+ value: j
30919
30921
  } = u;
30920
- q && Z(q.getPrev({
30922
+ j && Z(j.getPrev({
30921
30923
  loop: !0
30922
30924
  }), !0);
30923
30925
  }
30924
- function Z(q, ee = !1) {
30925
- u.value = q, ee && W();
30926
+ function Z(j, ee = !1) {
30927
+ u.value = j, ee && W();
30926
30928
  }
30927
30929
  function W() {
30928
- var q, ee;
30930
+ var j, ee;
30929
30931
  const te = u.value;
30930
30932
  if (!te) return;
30931
30933
  const D = c.value(te.key);
30932
- D !== null && (t.virtualScroll ? (q = o.value) === null || q === void 0 || q.scrollTo({
30934
+ D !== null && (t.virtualScroll ? (j = o.value) === null || j === void 0 || j.scrollTo({
30933
30935
  index: D
30934
30936
  }) : (ee = a.value) === null || ee === void 0 || ee.scrollTo({
30935
30937
  index: D,
30936
30938
  elSize: h.value
30937
30939
  }));
30938
30940
  }
30939
- function re(q) {
30941
+ function re(j) {
30940
30942
  var ee, te;
30941
- !((ee = r.value) === null || ee === void 0) && ee.contains(q.target) && ((te = t.onFocus) === null || te === void 0 || te.call(t, q));
30943
+ !((ee = r.value) === null || ee === void 0) && ee.contains(j.target) && ((te = t.onFocus) === null || te === void 0 || te.call(t, j));
30942
30944
  }
30943
- function ue(q) {
30945
+ function ue(j) {
30944
30946
  var ee, te;
30945
- !((ee = r.value) === null || ee === void 0) && ee.contains(q.relatedTarget) || (te = t.onBlur) === null || te === void 0 || te.call(t, q);
30947
+ !((ee = r.value) === null || ee === void 0) && ee.contains(j.relatedTarget) || (te = t.onBlur) === null || te === void 0 || te.call(t, j);
30946
30948
  }
30947
30949
  Pi(sc, {
30948
30950
  handleOptionMouseEnter: b,
@@ -30959,13 +30961,13 @@ const xC = Te("base-select-menu", `
30959
30961
  valueFieldRef: st(t, "valueField")
30960
30962
  }), Pi(Tf, r), ct(() => {
30961
30963
  const {
30962
- value: q
30964
+ value: j
30963
30965
  } = a;
30964
- q && q.sync();
30966
+ j && j.sync();
30965
30967
  });
30966
30968
  const Y = I(() => {
30967
30969
  const {
30968
- size: q
30970
+ size: j
30969
30971
  } = t, {
30970
30972
  common: {
30971
30973
  cubicBezierEaseInOut: ee
@@ -30988,9 +30990,9 @@ const xC = Te("base-select-menu", `
30988
30990
  loadingColor: Li,
30989
30991
  loadingSize: jt,
30990
30992
  optionColorActivePending: pn,
30991
- [kt("optionFontSize", q)]: Di,
30992
- [kt("optionHeight", q)]: Fi,
30993
- [kt("optionPadding", q)]: Ke
30993
+ [kt("optionFontSize", j)]: Di,
30994
+ [kt("optionHeight", j)]: Fi,
30995
+ [kt("optionPadding", j)]: Ke
30994
30996
  }
30995
30997
  } = s.value;
30996
30998
  return {
@@ -31019,8 +31021,8 @@ const xC = Te("base-select-menu", `
31019
31021
  "--n-loading-size": jt
31020
31022
  };
31021
31023
  }), {
31022
- inlineThemeDisabled: G
31023
- } = t, K = G ? Ms("internal-select-menu", I(() => t.size[0]), Y, t) : void 0, V = {
31024
+ inlineThemeDisabled: K
31025
+ } = t, G = K ? Ms("internal-select-menu", I(() => t.size[0]), Y, t) : void 0, q = {
31024
31026
  selfRef: r,
31025
31027
  next: O,
31026
31028
  prev: z,
@@ -31038,15 +31040,15 @@ const xC = Te("base-select-menu", `
31038
31040
  empty: v,
31039
31041
  virtualListContainer() {
31040
31042
  const {
31041
- value: q
31043
+ value: j
31042
31044
  } = o;
31043
- return q == null ? void 0 : q.listElRef;
31045
+ return j == null ? void 0 : j.listElRef;
31044
31046
  },
31045
31047
  virtualListContent() {
31046
31048
  const {
31047
- value: q
31049
+ value: j
31048
31050
  } = o;
31049
- return q == null ? void 0 : q.itemsElRef;
31051
+ return j == null ? void 0 : j.itemsElRef;
31050
31052
  },
31051
31053
  doScroll: C,
31052
31054
  handleFocusin: re,
@@ -31056,10 +31058,10 @@ const xC = Te("base-select-menu", `
31056
31058
  handleMouseDown: R,
31057
31059
  handleVirtualListResize: F,
31058
31060
  handleVirtualListScroll: w,
31059
- cssVars: G ? void 0 : Y,
31060
- themeClass: K == null ? void 0 : K.themeClass,
31061
- onRender: K == null ? void 0 : K.onRender
31062
- }, V);
31061
+ cssVars: K ? void 0 : Y,
31062
+ themeClass: G == null ? void 0 : G.themeClass,
31063
+ onRender: G == null ? void 0 : G.onRender
31064
+ }, q);
31063
31065
  },
31064
31066
  render() {
31065
31067
  const {
@@ -31070,7 +31072,7 @@ const xC = Te("base-select-menu", `
31070
31072
  themeClass: s,
31071
31073
  onRender: r
31072
31074
  } = this;
31073
- return r == null || r(), j("div", {
31075
+ return r == null || r(), V("div", {
31074
31076
  ref: "selfRef",
31075
31077
  tabindex: this.focusable ? 0 : -1,
31076
31078
  class: [`${i}-base-select-menu`, this.rtlEnabled && `${i}-base-select-menu--rtl`, s, this.multiple && `${i}-base-select-menu--multiple`],
@@ -31082,23 +31084,23 @@ const xC = Te("base-select-menu", `
31082
31084
  onMousedown: this.handleMouseDown,
31083
31085
  onMouseenter: this.onMouseenter,
31084
31086
  onMouseleave: this.onMouseleave
31085
- }, ws(t.header, (o) => o && j("div", {
31087
+ }, ws(t.header, (o) => o && V("div", {
31086
31088
  class: `${i}-base-select-menu__header`,
31087
31089
  "data-header": !0,
31088
31090
  key: "header"
31089
- }, o)), this.loading ? j("div", {
31091
+ }, o)), this.loading ? V("div", {
31090
31092
  class: `${i}-base-select-menu__loading`
31091
- }, j(Hf, {
31093
+ }, V(Hf, {
31092
31094
  clsPrefix: i,
31093
31095
  strokeWidth: 20
31094
- })) : this.empty ? j("div", {
31096
+ })) : this.empty ? V("div", {
31095
31097
  class: `${i}-base-select-menu__empty`,
31096
31098
  "data-empty": !0
31097
- }, rc(t.empty, () => [j(yC, {
31099
+ }, rc(t.empty, () => [V(yC, {
31098
31100
  theme: n.peers.Empty,
31099
31101
  themeOverrides: n.peerOverrides.Empty,
31100
31102
  size: this.size
31101
- })])) : j(Vf, {
31103
+ })])) : V(Vf, {
31102
31104
  ref: "scrollbarRef",
31103
31105
  theme: n.peers.Scrollbar,
31104
31106
  themeOverrides: n.peerOverrides.Scrollbar,
@@ -31107,7 +31109,7 @@ const xC = Te("base-select-menu", `
31107
31109
  content: e ? this.virtualListContent : void 0,
31108
31110
  onScroll: e ? void 0 : this.doScroll
31109
31111
  }, {
31110
- default: () => e ? j(W2, {
31112
+ default: () => e ? V(W2, {
31111
31113
  ref: "virtualListRef",
31112
31114
  class: `${i}-virtual-list`,
31113
31115
  items: this.flattenedNodes,
@@ -31121,35 +31123,35 @@ const xC = Te("base-select-menu", `
31121
31123
  }, {
31122
31124
  default: ({
31123
31125
  item: o
31124
- }) => o.isGroup ? j(_d, {
31126
+ }) => o.isGroup ? V(_d, {
31125
31127
  key: o.key,
31126
31128
  clsPrefix: i,
31127
31129
  tmNode: o
31128
- }) : o.ignored ? null : j(wd, {
31130
+ }) : o.ignored ? null : V(wd, {
31129
31131
  clsPrefix: i,
31130
31132
  key: o.key,
31131
31133
  tmNode: o
31132
31134
  })
31133
- }) : j("div", {
31135
+ }) : V("div", {
31134
31136
  class: `${i}-base-select-menu-option-wrapper`,
31135
31137
  style: {
31136
31138
  paddingTop: this.padding.top,
31137
31139
  paddingBottom: this.padding.bottom
31138
31140
  }
31139
- }, this.flattenedNodes.map((o) => o.isGroup ? j(_d, {
31141
+ }, this.flattenedNodes.map((o) => o.isGroup ? V(_d, {
31140
31142
  key: o.key,
31141
31143
  clsPrefix: i,
31142
31144
  tmNode: o
31143
- }) : j(wd, {
31145
+ }) : V(wd, {
31144
31146
  clsPrefix: i,
31145
31147
  key: o.key,
31146
31148
  tmNode: o
31147
31149
  })))
31148
- }), ws(t.action, (o) => o && [j("div", {
31150
+ }), ws(t.action, (o) => o && [V("div", {
31149
31151
  class: `${i}-base-select-menu__action`,
31150
31152
  "data-action": !0,
31151
31153
  key: "action"
31152
- }, o), j(nC, {
31154
+ }, o), V(nC, {
31153
31155
  onFocus: this.onTabOut,
31154
31156
  key: "focus-detector"
31155
31157
  })]));
@@ -31379,11 +31381,11 @@ function PC({
31379
31381
  arrowWrapperStyle: n,
31380
31382
  clsPrefix: s
31381
31383
  }) {
31382
- return j("div", {
31384
+ return V("div", {
31383
31385
  key: "__popover-arrow__",
31384
31386
  style: n,
31385
31387
  class: [`${s}-popover-arrow-wrapper`, i]
31386
- }, j("div", {
31388
+ }, V("div", {
31387
31389
  class: [`${s}-popover-arrow`, t],
31388
31390
  style: e
31389
31391
  }));
@@ -31437,15 +31439,15 @@ const TC = ae({
31437
31439
  textColor: re,
31438
31440
  dividerColor: ue,
31439
31441
  color: Y,
31440
- boxShadow: G,
31441
- borderRadius: K,
31442
- arrowHeight: V,
31443
- arrowOffset: q,
31442
+ boxShadow: K,
31443
+ borderRadius: G,
31444
+ arrowHeight: q,
31445
+ arrowOffset: j,
31444
31446
  arrowOffsetVertical: ee
31445
31447
  }
31446
31448
  } = a.value;
31447
31449
  return {
31448
- "--n-box-shadow": G,
31450
+ "--n-box-shadow": K,
31449
31451
  "--n-bezier": x,
31450
31452
  "--n-bezier-ease-in": T,
31451
31453
  "--n-bezier-ease-out": R,
@@ -31453,9 +31455,9 @@ const TC = ae({
31453
31455
  "--n-text-color": re,
31454
31456
  "--n-color": Y,
31455
31457
  "--n-divider-color": ue,
31456
- "--n-border-radius": K,
31457
- "--n-arrow-height": V,
31458
- "--n-arrow-offset": q,
31458
+ "--n-border-radius": G,
31459
+ "--n-arrow-height": q,
31460
+ "--n-arrow-offset": j,
31459
31461
  "--n-arrow-offset-vertical": ee,
31460
31462
  "--n-padding": Z,
31461
31463
  "--n-space": O,
@@ -31528,35 +31530,35 @@ const TC = ae({
31528
31530
  internalTrapFocus: Z
31529
31531
  } = t, W = !pd(e.header) || !pd(e.footer), re = () => {
31530
31532
  var ue, Y;
31531
- const G = W ? j(we, null, ws(e.header, (q) => q ? j("div", {
31533
+ const K = W ? V(we, null, ws(e.header, (j) => j ? V("div", {
31532
31534
  class: [`${O}-popover__header`, t.headerClass],
31533
31535
  style: t.headerStyle
31534
- }, q) : null), ws(e.default, (q) => q ? j("div", {
31536
+ }, j) : null), ws(e.default, (j) => j ? V("div", {
31535
31537
  class: [`${O}-popover__content`, t.contentClass],
31536
31538
  style: t.contentStyle
31537
- }, e) : null), ws(e.footer, (q) => q ? j("div", {
31539
+ }, e) : null), ws(e.footer, (j) => j ? V("div", {
31538
31540
  class: [`${O}-popover__footer`, t.footerClass],
31539
31541
  style: t.footerStyle
31540
- }, q) : null)) : t.scrollable ? (ue = e.default) === null || ue === void 0 ? void 0 : ue.call(e) : j("div", {
31542
+ }, j) : null)) : t.scrollable ? (ue = e.default) === null || ue === void 0 ? void 0 : ue.call(e) : V("div", {
31541
31543
  class: [`${O}-popover__content`, t.contentClass],
31542
31544
  style: t.contentStyle
31543
- }, e), K = t.scrollable ? j(fC, {
31545
+ }, e), G = t.scrollable ? V(fC, {
31544
31546
  themeOverrides: a.value.peerOverrides.Scrollbar,
31545
31547
  theme: a.value.peers.Scrollbar,
31546
31548
  contentClass: W ? void 0 : `${O}-popover__content ${(Y = t.contentClass) !== null && Y !== void 0 ? Y : ""}`,
31547
31549
  contentStyle: W ? void 0 : t.contentStyle
31548
31550
  }, {
31549
- default: () => G
31550
- }) : G, V = t.showArrow ? PC({
31551
+ default: () => K
31552
+ }) : K, q = t.showArrow ? PC({
31551
31553
  arrowClass: t.arrowClass,
31552
31554
  arrowStyle: t.arrowStyle,
31553
31555
  arrowWrapperClass: t.arrowWrapperClass,
31554
31556
  arrowWrapperStyle: t.arrowWrapperStyle,
31555
31557
  clsPrefix: O
31556
31558
  }) : null;
31557
- return [K, V];
31559
+ return [G, q];
31558
31560
  };
31559
- T = j("div", Pl({
31561
+ T = V("div", Pl({
31560
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}`), {
31561
31563
  [`${O}-popover--scrollable`]: t.scrollable,
31562
31564
  [`${O}-popover--show-header-or-footer`]: W,
@@ -31570,7 +31572,7 @@ const TC = ae({
31570
31572
  onKeydown: u.handleKeydown,
31571
31573
  onMouseenter: C,
31572
31574
  onMouseleave: w
31573
- }, i), Z ? j(q2, {
31575
+ }, i), Z ? V(q2, {
31574
31576
  active: t.show,
31575
31577
  autoFocus: !0
31576
31578
  }, {
@@ -31591,7 +31593,7 @@ const TC = ae({
31591
31593
  };
31592
31594
  },
31593
31595
  render() {
31594
- return j(pf, {
31596
+ return V(pf, {
31595
31597
  ref: "followerRef",
31596
31598
  zIndex: this.zIndex,
31597
31599
  show: this.show,
@@ -31606,7 +31608,7 @@ const TC = ae({
31606
31608
  width: this.width === "trigger" ? "target" : void 0,
31607
31609
  teleportDisabled: this.adjustedTo === An.tdkey
31608
31610
  }, {
31609
- default: () => this.animated ? j(xs, {
31611
+ default: () => this.animated ? V(xs, {
31610
31612
  name: "popover-transition",
31611
31613
  appear: this.isMounted,
31612
31614
  // Don't use watch to enable follower, since the transition may
@@ -31759,9 +31761,9 @@ const MC = {
31759
31761
  "onUpdate:show": re,
31760
31762
  onUpdateShow: ue,
31761
31763
  onShow: Y,
31762
- onHide: G
31764
+ onHide: K
31763
31765
  } = t;
31764
- s.value = W, re && Zt(re, W), ue && Zt(ue, W), W && Y && Zt(Y, !0), W && G && Zt(G, !1);
31766
+ s.value = W, re && Zt(re, W), ue && Zt(ue, W), W && Y && Zt(Y, !0), W && K && Zt(K, !1);
31765
31767
  }
31766
31768
  function p() {
31767
31769
  d && d.syncPosition();
@@ -31883,7 +31885,7 @@ const MC = {
31883
31885
  } = this;
31884
31886
  let n, s = !1;
31885
31887
  if (!e && (n = nk(i, "trigger"), n)) {
31886
- n = bg(n), n = n.type === Rd ? j("span", [n]) : n;
31888
+ n = bg(n), n = n.type === Rd ? V("span", [n]) : n;
31887
31889
  const r = {
31888
31890
  onClick: this.handleClick,
31889
31891
  onMouseenter: this.handleMouseEnter,
@@ -31929,7 +31931,7 @@ const MC = {
31929
31931
  AC(n, o ? "nested" : e ? "manual" : this.trigger, l);
31930
31932
  }
31931
31933
  }
31932
- return j(cf, {
31934
+ return V(cf, {
31933
31935
  ref: "binderInstRef",
31934
31936
  syncTarget: !s,
31935
31937
  syncTargetWithParent: this.internalSyncTargetWithParent
@@ -31937,7 +31939,7 @@ const MC = {
31937
31939
  default: () => {
31938
31940
  this.mergedShowConsideringDisabledProp;
31939
31941
  const r = this.getMergedShow();
31940
- return [this.internalTrapFocus && r ? rr(j("div", {
31942
+ return [this.internalTrapFocus && r ? rr(V("div", {
31941
31943
  style: {
31942
31944
  position: "fixed",
31943
31945
  top: 0,
@@ -31948,9 +31950,9 @@ const MC = {
31948
31950
  }), [[rf, {
31949
31951
  enabled: r,
31950
31952
  zIndex: this.zIndex
31951
- }]]) : null, e ? null : j(uf, null, {
31953
+ }]]) : null, e ? null : V(uf, null, {
31952
31954
  default: () => n
31953
- }), j(TC, sk(this.$props, FC, Object.assign(Object.assign({}, this.$attrs), {
31955
+ }), V(TC, sk(this.$props, FC, Object.assign(Object.assign({}, this.$attrs), {
31954
31956
  showArrow: this.mergedShowArrow,
31955
31957
  show: r
31956
31958
  })), {
@@ -32334,10 +32336,10 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
32334
32336
  closeBorderRadius: re,
32335
32337
  fontWeightStrong: ue,
32336
32338
  [kt("colorBordered", g)]: Y,
32337
- [kt("closeSize", h)]: G,
32338
- [kt("closeIconSize", h)]: K,
32339
- [kt("fontSize", h)]: V,
32340
- [kt("height", h)]: q,
32339
+ [kt("closeSize", h)]: K,
32340
+ [kt("closeIconSize", h)]: G,
32341
+ [kt("fontSize", h)]: q,
32342
+ [kt("height", h)]: j,
32341
32343
  [kt("color", g)]: ee,
32342
32344
  [kt("textColor", g)]: te,
32343
32345
  [kt("border", g)]: D,
@@ -32350,11 +32352,11 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
32350
32352
  } = o.value, Le = qi(C);
32351
32353
  return {
32352
32354
  "--n-font-weight-strong": ue,
32353
- "--n-avatar-size-override": `calc(${q} - 8px)`,
32355
+ "--n-avatar-size-override": `calc(${j} - 8px)`,
32354
32356
  "--n-bezier": v,
32355
32357
  "--n-border-radius": w,
32356
32358
  "--n-border": D,
32357
- "--n-close-icon-size": K,
32359
+ "--n-close-icon-size": G,
32358
32360
  "--n-close-color-pressed": Ee,
32359
32361
  "--n-close-color-hover": _e,
32360
32362
  "--n-close-border-radius": re,
@@ -32366,7 +32368,7 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
32366
32368
  "--n-close-margin-right": Le.right,
32367
32369
  "--n-close-margin-bottom": Le.bottom,
32368
32370
  "--n-close-margin-left": Le.left,
32369
- "--n-close-size": G,
32371
+ "--n-close-size": K,
32370
32372
  "--n-color": m || (i.value ? Y : ee),
32371
32373
  "--n-color-checkable": T,
32372
32374
  "--n-color-checked": z,
@@ -32374,8 +32376,8 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
32374
32376
  "--n-color-checked-pressed": W,
32375
32377
  "--n-color-hover-checkable": R,
32376
32378
  "--n-color-pressed-checkable": O,
32377
- "--n-font-size": V,
32378
- "--n-height": q,
32379
+ "--n-font-size": q,
32380
+ "--n-height": j,
32379
32381
  "--n-opacity-disabled": F,
32380
32382
  "--n-padding": y,
32381
32383
  "--n-text-color": p || te,
@@ -32422,12 +32424,12 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
32422
32424
  $slots: l
32423
32425
  } = this;
32424
32426
  a == null || a();
32425
- const c = ws(l.avatar, (d) => d && j("div", {
32427
+ const c = ws(l.avatar, (d) => d && V("div", {
32426
32428
  class: `${i}-tag__avatar`
32427
- }, d)), u = ws(l.icon, (d) => d && j("div", {
32429
+ }, d)), u = ws(l.icon, (d) => d && V("div", {
32428
32430
  class: `${i}-tag__icon`
32429
32431
  }, d));
32430
- return j("div", {
32432
+ return V("div", {
32431
32433
  class: [`${i}-tag`, this.themeClass, {
32432
32434
  [`${i}-tag--rtl`]: n,
32433
32435
  [`${i}-tag--strong`]: this.strong,
@@ -32443,10 +32445,10 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
32443
32445
  onClick: this.handleClick,
32444
32446
  onMouseenter: this.onMouseenter,
32445
32447
  onMouseleave: this.onMouseleave
32446
- }, u || c, j("span", {
32448
+ }, u || c, V("span", {
32447
32449
  class: `${i}-tag__content`,
32448
32450
  ref: "contentRef"
32449
- }, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t)), !this.checkable && s ? j(iC, {
32451
+ }, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t)), !this.checkable && s ? V(iC, {
32450
32452
  clsPrefix: i,
32451
32453
  class: `${i}-tag__close`,
32452
32454
  disabled: this.disabled,
@@ -32455,7 +32457,7 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
32455
32457
  round: o,
32456
32458
  isButtonTag: this.internalCloseIsButtonTag,
32457
32459
  absolute: !0
32458
- }) : null, !this.checkable && this.mergedBordered ? j("div", {
32460
+ }) : null, !this.checkable && this.mergedBordered ? V("div", {
32459
32461
  class: `${i}-tag__border`,
32460
32462
  style: {
32461
32463
  borderColor: r
@@ -32490,23 +32492,23 @@ const WC = Object.assign(Object.assign(Object.assign({}, ti.props), DC), {
32490
32492
  const {
32491
32493
  clsPrefix: i
32492
32494
  } = t;
32493
- return j(Hf, {
32495
+ return V(Hf, {
32494
32496
  clsPrefix: i,
32495
32497
  class: `${i}-base-suffix`,
32496
32498
  strokeWidth: 24,
32497
32499
  scale: 0.85,
32498
32500
  show: t.loading
32499
32501
  }, {
32500
- default: () => t.showArrow ? j(eC, {
32502
+ default: () => t.showArrow ? V(eC, {
32501
32503
  clsPrefix: i,
32502
32504
  show: t.showClear,
32503
32505
  onClear: t.onClear
32504
32506
  }, {
32505
- placeholder: () => j(zr, {
32507
+ placeholder: () => V(zr, {
32506
32508
  clsPrefix: i,
32507
32509
  class: `${i}-base-suffix__arrow`
32508
32510
  }, {
32509
- default: () => rc(e.default, () => [j(Yk, null)])
32511
+ default: () => rc(e.default, () => [V(Yk, null)])
32510
32512
  })
32511
32513
  }) : null
32512
32514
  });
@@ -32984,19 +32986,19 @@ const Kf = {
32984
32986
  function Y() {
32985
32987
  p.value = !1;
32986
32988
  }
32987
- function G(le) {
32989
+ function K(le) {
32988
32990
  !t.active || !t.filterable || le.target !== r.value && le.preventDefault();
32989
32991
  }
32990
- function K(le) {
32992
+ function G(le) {
32991
32993
  R(le);
32992
32994
  }
32993
- const V = X(!1);
32994
- function q(le) {
32995
- if (le.key === "Backspace" && !V.value && !t.pattern.length) {
32995
+ const q = X(!1);
32996
+ function j(le) {
32997
+ if (le.key === "Backspace" && !q.value && !t.pattern.length) {
32996
32998
  const {
32997
32999
  selectedOptions: ve
32998
33000
  } = t;
32999
- ve != null && ve.length && K(ve[ve.length - 1]);
33001
+ ve != null && ve.length && G(ve[ve.length - 1]);
33000
33002
  }
33001
33003
  }
33002
33004
  let ee = null;
@@ -33008,13 +33010,13 @@ const Kf = {
33008
33010
  const tt = le.target.value;
33009
33011
  ve.textContent = tt, B();
33010
33012
  }
33011
- t.ignoreComposition && V.value ? ee = le : z(le);
33013
+ t.ignoreComposition && q.value ? ee = le : z(le);
33012
33014
  }
33013
33015
  function D() {
33014
- V.value = !0;
33016
+ q.value = !0;
33015
33017
  }
33016
33018
  function Q() {
33017
- V.value = !1, t.ignoreComposition && z(ee), ee = null;
33019
+ q.value = !1, t.ignoreComposition && z(ee), ee = null;
33018
33020
  }
33019
33021
  function J(le) {
33020
33022
  var ve;
@@ -33225,7 +33227,7 @@ const Kf = {
33225
33227
  label: w,
33226
33228
  selected: F,
33227
33229
  showTagsPanel: h,
33228
- isComposing: V,
33230
+ isComposing: q,
33229
33231
  // dom ref
33230
33232
  counterRef: u,
33231
33233
  counterWrapperRef: d,
@@ -33237,13 +33239,13 @@ const Kf = {
33237
33239
  patternInputWrapperRef: c,
33238
33240
  overflowRef: f,
33239
33241
  inputTagElRef: g,
33240
- handleMouseDown: G,
33242
+ handleMouseDown: K,
33241
33243
  handleFocusin: Z,
33242
33244
  handleClear: re,
33243
33245
  handleMouseEnter: ue,
33244
33246
  handleMouseLeave: Y,
33245
- handleDeleteOption: K,
33246
- handlePatternKeyDown: q,
33247
+ handleDeleteOption: G,
33248
+ handlePatternKeyDown: j,
33247
33249
  handlePatternInputInput: te,
33248
33250
  handlePatternInputBlur: ce,
33249
33251
  handlePatternInputFocus: J,
@@ -33282,8 +33284,8 @@ const Kf = {
33282
33284
  renderLabel: d
33283
33285
  } = this;
33284
33286
  c == null || c();
33285
- const f = r === "responsive", g = typeof r == "number", h = f || g, m = j(kl, null, {
33286
- default: () => j(jC, {
33287
+ const f = r === "responsive", g = typeof r == "number", h = f || g, m = V(kl, null, {
33288
+ default: () => V(jC, {
33287
33289
  clsPrefix: a,
33288
33290
  loading: this.loading,
33289
33291
  showArrow: this.showArrow,
@@ -33300,7 +33302,7 @@ const Kf = {
33300
33302
  if (e) {
33301
33303
  const {
33302
33304
  labelField: v
33303
- } = this, y = (z) => j("div", {
33305
+ } = this, y = (z) => V("div", {
33304
33306
  class: `${a}-base-selection-tag-wrapper`,
33305
33307
  key: z.value
33306
33308
  }, u ? u({
@@ -33308,7 +33310,7 @@ const Kf = {
33308
33310
  handleClose: () => {
33309
33311
  this.handleDeleteOption(z);
33310
33312
  }
33311
- }) : j(Ua, {
33313
+ }) : V(Ua, {
33312
33314
  size: i,
33313
33315
  closable: !z.disabled,
33314
33316
  disabled: n,
@@ -33319,11 +33321,11 @@ const Kf = {
33319
33321
  internalCloseFocusable: !1
33320
33322
  }, {
33321
33323
  default: () => d ? d(z, !0) : Xs(z[v], z, !0)
33322
- })), C = () => (g ? this.selectedOptions.slice(0, r) : this.selectedOptions).map(y), w = s ? j("div", {
33324
+ })), C = () => (g ? this.selectedOptions.slice(0, r) : this.selectedOptions).map(y), w = s ? V("div", {
33323
33325
  class: `${a}-base-selection-input-tag`,
33324
33326
  ref: "inputTagElRef",
33325
33327
  key: "__input-tag__"
33326
- }, j("input", Object.assign({}, this.inputProps, {
33328
+ }, V("input", Object.assign({}, this.inputProps, {
33327
33329
  ref: "patternInputRef",
33328
33330
  tabindex: -1,
33329
33331
  disabled: n,
@@ -33336,13 +33338,13 @@ const Kf = {
33336
33338
  onInput: this.handlePatternInputInput,
33337
33339
  onCompositionstart: this.handleCompositionStart,
33338
33340
  onCompositionend: this.handleCompositionEnd
33339
- })), j("span", {
33341
+ })), V("span", {
33340
33342
  ref: "patternInputMirrorRef",
33341
33343
  class: `${a}-base-selection-input-tag__mirror`
33342
- }, this.pattern)) : null, F = f ? () => j("div", {
33344
+ }, this.pattern)) : null, F = f ? () => V("div", {
33343
33345
  class: `${a}-base-selection-tag-wrapper`,
33344
33346
  ref: "counterWrapperRef"
33345
- }, j(Ua, {
33347
+ }, V(Ua, {
33346
33348
  size: i,
33347
33349
  ref: "counterRef",
33348
33350
  onMouseenter: this.handleMouseEnterCounter,
@@ -33352,10 +33354,10 @@ const Kf = {
33352
33354
  let B;
33353
33355
  if (g) {
33354
33356
  const z = this.selectedOptions.length - r;
33355
- z > 0 && (B = j("div", {
33357
+ z > 0 && (B = V("div", {
33356
33358
  class: `${a}-base-selection-tag-wrapper`,
33357
33359
  key: "__counter__"
33358
- }, j(Ua, {
33360
+ }, V(Ua, {
33359
33361
  size: i,
33360
33362
  ref: "counterRef",
33361
33363
  onMouseenter: this.handleMouseEnterCounter,
@@ -33364,7 +33366,7 @@ const Kf = {
33364
33366
  default: () => `+${z}`
33365
33367
  })));
33366
33368
  }
33367
- const b = f ? s ? j(ld, {
33369
+ const b = f ? s ? V(ld, {
33368
33370
  ref: "overflowRef",
33369
33371
  updateCounter: this.updateCounter,
33370
33372
  getCounter: this.getCounter,
@@ -33378,7 +33380,7 @@ const Kf = {
33378
33380
  default: C,
33379
33381
  counter: F,
33380
33382
  tail: () => w
33381
- }) : j(ld, {
33383
+ }) : V(ld, {
33382
33384
  ref: "overflowRef",
33383
33385
  updateCounter: this.updateCounter,
33384
33386
  getCounter: this.getCounter,
@@ -33390,7 +33392,7 @@ const Kf = {
33390
33392
  }, {
33391
33393
  default: C,
33392
33394
  counter: F
33393
- }) : g && B ? C().concat(B) : C(), S = h ? () => j("div", {
33395
+ }) : g && B ? C().concat(B) : C(), S = h ? () => V("div", {
33394
33396
  class: `${a}-base-selection-popover`
33395
33397
  }, f ? C() : this.selectedOptions.map(y)) : void 0, x = h ? Object.assign({
33396
33398
  show: this.showTagsPanel,
@@ -33401,19 +33403,19 @@ const Kf = {
33401
33403
  onUpdateShow: this.onPopoverUpdateShow,
33402
33404
  theme: this.mergedTheme.peers.Popover,
33403
33405
  themeOverrides: this.mergedTheme.peerOverrides.Popover
33404
- }, l) : null, R = (this.selected ? !1 : this.active ? !this.pattern && !this.isComposing : !0) ? j("div", {
33406
+ }, l) : null, R = (this.selected ? !1 : this.active ? !this.pattern && !this.isComposing : !0) ? V("div", {
33405
33407
  class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`
33406
- }, j("div", {
33408
+ }, V("div", {
33407
33409
  class: `${a}-base-selection-placeholder__inner`
33408
- }, this.placeholder)) : null, O = s ? j("div", {
33410
+ }, this.placeholder)) : null, O = s ? V("div", {
33409
33411
  ref: "patternInputWrapperRef",
33410
33412
  class: `${a}-base-selection-tags`
33411
- }, b, f ? null : w, m) : j("div", {
33413
+ }, b, f ? null : w, m) : V("div", {
33412
33414
  ref: "multipleElRef",
33413
33415
  class: `${a}-base-selection-tags`,
33414
33416
  tabindex: n ? void 0 : 0
33415
33417
  }, b, m);
33416
- p = j(we, null, h ? j(EC, Object.assign({}, x, {
33418
+ p = V(we, null, h ? V(EC, Object.assign({}, x, {
33417
33419
  scrollable: !0,
33418
33420
  style: "max-height: calc(var(--v-target-height) * 6.6);"
33419
33421
  }), {
@@ -33422,11 +33424,11 @@ const Kf = {
33422
33424
  }) : O, R);
33423
33425
  } else if (s) {
33424
33426
  const v = this.pattern || this.isComposing, y = this.active ? !v : !this.selected, C = this.active ? !1 : this.selected;
33425
- p = j("div", {
33427
+ p = V("div", {
33426
33428
  ref: "patternInputWrapperRef",
33427
33429
  class: `${a}-base-selection-label`,
33428
33430
  title: this.patternInputFocused ? void 0 : fd(this.label)
33429
- }, j("input", Object.assign({}, this.inputProps, {
33431
+ }, V("input", Object.assign({}, this.inputProps, {
33430
33432
  ref: "patternInputRef",
33431
33433
  class: `${a}-base-selection-input`,
33432
33434
  value: this.active ? this.pattern : "",
@@ -33440,43 +33442,43 @@ const Kf = {
33440
33442
  onInput: this.handlePatternInputInput,
33441
33443
  onCompositionstart: this.handleCompositionStart,
33442
33444
  onCompositionend: this.handleCompositionEnd
33443
- })), C ? j("div", {
33445
+ })), C ? V("div", {
33444
33446
  class: `${a}-base-selection-label__render-label ${a}-base-selection-overlay`,
33445
33447
  key: "input"
33446
- }, j("div", {
33448
+ }, V("div", {
33447
33449
  class: `${a}-base-selection-overlay__wrapper`
33448
33450
  }, u ? u({
33449
33451
  option: this.selectedOption,
33450
33452
  handleClose: () => {
33451
33453
  }
33452
- }) : d ? d(this.selectedOption, !0) : Xs(this.label, this.selectedOption, !0))) : null, y ? j("div", {
33454
+ }) : d ? d(this.selectedOption, !0) : Xs(this.label, this.selectedOption, !0))) : null, y ? V("div", {
33453
33455
  class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`,
33454
33456
  key: "placeholder"
33455
- }, j("div", {
33457
+ }, V("div", {
33456
33458
  class: `${a}-base-selection-overlay__wrapper`
33457
33459
  }, this.filterablePlaceholder)) : null, m);
33458
33460
  } else
33459
- p = j("div", {
33461
+ p = V("div", {
33460
33462
  ref: "singleElRef",
33461
33463
  class: `${a}-base-selection-label`,
33462
33464
  tabindex: this.disabled ? void 0 : 0
33463
- }, this.label !== void 0 ? j("div", {
33465
+ }, this.label !== void 0 ? V("div", {
33464
33466
  class: `${a}-base-selection-input`,
33465
33467
  title: fd(this.label),
33466
33468
  key: "input"
33467
- }, j("div", {
33469
+ }, V("div", {
33468
33470
  class: `${a}-base-selection-input__content`
33469
33471
  }, u ? u({
33470
33472
  option: this.selectedOption,
33471
33473
  handleClose: () => {
33472
33474
  }
33473
- }) : d ? d(this.selectedOption, !0) : Xs(this.label, this.selectedOption, !0))) : j("div", {
33475
+ }) : d ? d(this.selectedOption, !0) : Xs(this.label, this.selectedOption, !0))) : V("div", {
33474
33476
  class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`,
33475
33477
  key: "placeholder"
33476
- }, j("div", {
33478
+ }, V("div", {
33477
33479
  class: `${a}-base-selection-placeholder__inner`
33478
33480
  }, this.placeholder)), m);
33479
- return j("div", {
33481
+ return V("div", {
33480
33482
  ref: "selfRef",
33481
33483
  class: [`${a}-base-selection`, this.rtlEnabled && `${a}-base-selection--rtl`, this.themeClass, t && `${a}-base-selection--${t}-status`, {
33482
33484
  [`${a}-base-selection--active`]: this.active,
@@ -33496,9 +33498,9 @@ const Kf = {
33496
33498
  onFocusin: this.handleFocusin,
33497
33499
  onFocusout: this.handleFocusout,
33498
33500
  onMousedown: this.handleMouseDown
33499
- }, p, o ? j("div", {
33501
+ }, p, o ? V("div", {
33500
33502
  class: `${a}-base-selection__border`
33501
- }) : null, o ? j("div", {
33503
+ }) : null, o ? V("div", {
33502
33504
  class: `${a}-base-selection__state-border`
33503
33505
  }) : null);
33504
33506
  }
@@ -33809,9 +33811,9 @@ const iS = Object.assign(Object.assign({}, ti.props), {
33809
33811
  }), re = ok(t), {
33810
33812
  mergedSizeRef: ue,
33811
33813
  mergedDisabledRef: Y,
33812
- mergedStatusRef: G
33814
+ mergedStatusRef: K
33813
33815
  } = re;
33814
- function K(L, se) {
33816
+ function G(L, se) {
33815
33817
  const {
33816
33818
  onChange: me,
33817
33819
  "onUpdate:value": Ce,
@@ -33822,7 +33824,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
33822
33824
  } = re;
33823
33825
  me && Zt(me, L, se), Se && Zt(Se, L, se), Ce && Zt(Ce, L, se), o.value = L, Fe(), Ie();
33824
33826
  }
33825
- function V(L) {
33827
+ function q(L) {
33826
33828
  const {
33827
33829
  onBlur: se
33828
33830
  } = t, {
@@ -33830,7 +33832,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
33830
33832
  } = re;
33831
33833
  se && Zt(se, L), me();
33832
33834
  }
33833
- function q() {
33835
+ function j() {
33834
33836
  const {
33835
33837
  onClear: L
33836
33838
  } = t;
@@ -33908,7 +33910,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
33908
33910
  }
33909
33911
  function We(L) {
33910
33912
  var se, me;
33911
- !((me = (se = b.value) === null || se === void 0 ? void 0 : se.selfRef) === null || me === void 0) && me.contains(L.relatedTarget) || (c.value = !1, V(L), _e());
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());
33912
33914
  }
33913
33915
  function ii(L) {
33914
33916
  ee(L), c.value = !0;
@@ -33918,7 +33920,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
33918
33920
  }
33919
33921
  function Li(L) {
33920
33922
  var se;
33921
- !((se = F.value) === null || se === void 0) && se.$el.contains(L.relatedTarget) || (c.value = !1, V(L), _e());
33923
+ !((se = F.value) === null || se === void 0) && se.$el.contains(L.relatedTarget) || (c.value = !1, q(L), _e());
33922
33924
  }
33923
33925
  function jt() {
33924
33926
  var L;
@@ -33976,13 +33978,13 @@ const iS = Object.assign(Object.assign({}, ti.props), {
33976
33978
  }
33977
33979
  } else
33978
33980
  Fe.push(L[Se]), Ce && (u.value = "");
33979
- K(Fe, z(Fe));
33981
+ G(Fe, z(Fe));
33980
33982
  } else {
33981
33983
  if (se && !me) {
33982
33984
  const Fe = le(L[Se]);
33983
33985
  ~Fe ? f.value = [f.value[Fe]] : f.value = T;
33984
33986
  }
33985
- Es(), _e(), K(L[Se], L);
33987
+ Es(), _e(), G(L[Se], L);
33986
33988
  }
33987
33989
  }
33988
33990
  function le(L) {
@@ -34020,7 +34022,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
34020
34022
  const {
34021
34023
  multiple: se
34022
34024
  } = t;
34023
- !se && t.filterable && _e(), q(), se ? K([], []) : K(null, null);
34025
+ !se && t.filterable && _e(), j(), se ? G([], []) : G(null, null);
34024
34026
  }
34025
34027
  function En(L) {
34026
34028
  !vr(L, "action") && !vr(L, "empty") && !vr(L, "header") && L.preventDefault();
@@ -34111,7 +34113,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
34111
34113
  };
34112
34114
  }), vn = s ? Ms("select", void 0, Ni, t) : void 0;
34113
34115
  return Object.assign(Object.assign({}, Os), {
34114
- mergedStatus: G,
34116
+ mergedStatus: K,
34115
34117
  mergedClsPrefix: e,
34116
34118
  mergedBordered: i,
34117
34119
  namespace: n,
@@ -34160,11 +34162,11 @@ const iS = Object.assign(Object.assign({}, ti.props), {
34160
34162
  });
34161
34163
  },
34162
34164
  render() {
34163
- return j("div", {
34165
+ return V("div", {
34164
34166
  class: `${this.mergedClsPrefix}-select`
34165
- }, j(cf, null, {
34166
- default: () => [j(uf, null, {
34167
- default: () => j(YC, {
34167
+ }, V(cf, null, {
34168
+ default: () => [V(uf, null, {
34169
+ default: () => V(YC, {
34168
34170
  ref: "triggerRef",
34169
34171
  inlineThemeDisabled: this.inlineThemeDisabled,
34170
34172
  status: this.mergedStatus,
@@ -34209,7 +34211,7 @@ const iS = Object.assign(Object.assign({}, ti.props), {
34209
34211
  return [(e = (t = this.$slots).arrow) === null || e === void 0 ? void 0 : e.call(t)];
34210
34212
  }
34211
34213
  })
34212
- }), j(pf, {
34214
+ }), V(pf, {
34213
34215
  ref: "followerRef",
34214
34216
  show: this.mergedShow,
34215
34217
  to: this.adjustedTo,
@@ -34219,14 +34221,14 @@ const iS = Object.assign(Object.assign({}, ti.props), {
34219
34221
  minWidth: "target",
34220
34222
  placement: this.placement
34221
34223
  }, {
34222
- default: () => j(xs, {
34224
+ default: () => V(xs, {
34223
34225
  name: "fade-in-scale-up-transition",
34224
34226
  appear: this.isMounted,
34225
34227
  onAfterLeave: this.handleMenuAfterLeave
34226
34228
  }, {
34227
34229
  default: () => {
34228
34230
  var t, e, i;
34229
- return this.mergedShow || this.displayDirective === "show" ? ((t = this.onRender) === null || t === void 0 || t.call(this), rr(j(kC, Object.assign({}, this.menuProps, {
34231
+ return this.mergedShow || this.displayDirective === "show" ? ((t = this.onRender) === null || t === void 0 || t.call(this), rr(V(kC, Object.assign({}, this.menuProps, {
34230
34232
  ref: "menuRef",
34231
34233
  onResize: this.handleTriggerOrMenuResize,
34232
34234
  inlineThemeDisabled: this.inlineThemeDisabled,
@@ -34394,11 +34396,11 @@ const iS = Object.assign(Object.assign({}, ti.props), {
34394
34396
  return n.renderLabel(d, f);
34395
34397
  if (n.searchType === "products") {
34396
34398
  const g = d.item;
34397
- return j("div", {}, [j("span", { class: "text-sc-grey mr-2.5" }, g.code), j("span", {}, [g.name])]);
34399
+ return V("div", {}, [V("span", { class: "text-sc-grey mr-2.5" }, g.code), V("span", {}, [g.name])]);
34398
34400
  }
34399
34401
  if (n.searchType === "categories") {
34400
34402
  const g = d.item;
34401
- return j("div", {}, [g.name]);
34403
+ return V("div", {}, [g.name]);
34402
34404
  }
34403
34405
  };
34404
34406
  return e({
@@ -34950,23 +34952,23 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
34950
34952
  key: "id",
34951
34953
  resizable: !0,
34952
34954
  width: 50,
34953
- render: (r, o) => j("span", { class: "text-base" }, [o + 1, "."])
34955
+ render: (r, o) => V("span", { class: "text-base" }, [o + 1, "."])
34954
34956
  },
34955
34957
  {
34956
34958
  title: "Артикул",
34957
34959
  key: "codeNumber",
34958
34960
  resizable: !0,
34959
34961
  minWidth: 120,
34960
- render: (r) => j("span", { class: "text-base" }, [r.product.code])
34962
+ render: (r) => V("span", { class: "text-base" }, [r.product.code])
34961
34963
  },
34962
34964
  {
34963
34965
  title: "Наименование",
34964
34966
  key: "name",
34965
34967
  resizable: !0,
34966
34968
  width: "45%",
34967
- render: (r) => j("div", {}, [
34968
- j(yo, { product: r.product, showCode: !1, showPlanningDates: !1 }),
34969
- ..."creatorUser" in r && r.creatorUser && r.creatorUser.type ? [j(Qf, { class: "mt-1", userType: r.creatorUser.type, prefixText: "Добавлено" })] : []
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: "Добавлено" })] : []
34970
34972
  ])
34971
34973
  },
34972
34974
  {
@@ -34974,21 +34976,21 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
34974
34976
  key: "quantity",
34975
34977
  resizable: !1,
34976
34978
  width: 215,
34977
- render: (r) => j(HS, { item: r })
34979
+ render: (r) => V(HS, { item: r })
34978
34980
  },
34979
34981
  {
34980
34982
  title: "Цена за ед.",
34981
34983
  key: "costOneRub",
34982
34984
  resizable: !0,
34983
34985
  minWidth: 100,
34984
- render: (r) => j(Kn, { product: r, costFieldName: "costOne", showQuantityUnit: !0 })
34986
+ render: (r) => V(Kn, { product: r, costFieldName: "costOne", showQuantityUnit: !0 })
34985
34987
  },
34986
34988
  {
34987
34989
  title: "Сумма",
34988
34990
  key: "cost",
34989
34991
  resizable: !0,
34990
34992
  minWidth: 100,
34991
- render: (r) => j(Kn, { product: r, costFieldName: "cost", showQuantityUnit: !0 })
34993
+ render: (r) => V(Kn, { product: r, costFieldName: "cost", showQuantityUnit: !0 })
34992
34994
  }
34993
34995
  ];
34994
34996
  switch (vi.getDeviceTypeByResolution()) {
@@ -34999,7 +35001,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
34999
35001
  title: "",
35000
35002
  key: "items",
35001
35003
  resizable: !0,
35002
- render: (r, o) => j(_5, { product: r, index: o })
35004
+ render: (r, o) => V(_5, { product: r, index: o })
35003
35005
  }
35004
35006
  ];
35005
35007
  case Ct.laptop:
@@ -35276,11 +35278,11 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35276
35278
  ], R = i.fields.length > 0 ? i.fields : T, O = {
35277
35279
  title: "???",
35278
35280
  key: "undefined",
35279
- render: () => j("span", {}, ["--- unknown ---"])
35281
+ render: () => V("span", {}, ["--- unknown ---"])
35280
35282
  }, z = {
35281
35283
  type: "expand",
35282
35284
  expandable: Io(!0),
35283
- renderExpand: (W) => j(D5, {
35285
+ renderExpand: (W) => V(D5, {
35284
35286
  order: W,
35285
35287
  class: "pl-10 pt-3 pb-10",
35286
35288
  "onClick:client-name": () => {
@@ -35296,7 +35298,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35296
35298
  resizable: !0,
35297
35299
  width: 100,
35298
35300
  // eslint-disable-next-line vue/max-len
35299
- render: (W) => j(fl, { date: W.createdAt, isTimeSecondary: !0, isTimeOnSecondLine: !0, class: "text-base" })
35301
+ render: (W) => V(fl, { date: W.createdAt, isTimeSecondary: !0, isTimeOnSecondLine: !0, class: "text-base" })
35300
35302
  },
35301
35303
  {
35302
35304
  title: "№ заказа",
@@ -35304,7 +35306,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35304
35306
  resizable: !0,
35305
35307
  width: 75,
35306
35308
  className: "order-id",
35307
- render: (W) => j(
35309
+ render: (W) => V(
35308
35310
  "a",
35309
35311
  {
35310
35312
  // eslint-disable-next-line lodash/prefer-lodash-method
@@ -35320,14 +35322,14 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35320
35322
  resizable: !0,
35321
35323
  width: 100,
35322
35324
  className: "delivery-date",
35323
- render: (W) => j(fl, { date: W.delivery.date, isShowTime: !1, class: "text-base" })
35325
+ render: (W) => V(fl, { date: W.delivery.date, isShowTime: !1, class: "text-base" })
35324
35326
  },
35325
35327
  {
35326
35328
  title: "Клиент",
35327
35329
  key: Ze.ClientInfo,
35328
35330
  resizable: !0,
35329
35331
  minWidth: 320,
35330
- render: (W) => j($o, {
35332
+ render: (W) => V($o, {
35331
35333
  client: W.client,
35332
35334
  "onClick:client-name": () => {
35333
35335
  n("click:client-name", W.client, null);
@@ -35339,14 +35341,14 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35339
35341
  key: Ze.DeliveryInfo,
35340
35342
  resizable: !0,
35341
35343
  minWidth: 320,
35342
- render: (W) => j(ac, { delivery: W.delivery })
35344
+ render: (W) => V(ac, { delivery: W.delivery })
35343
35345
  },
35344
35346
  {
35345
35347
  title: "Клиент",
35346
35348
  key: Ze.ClientInfoShort,
35347
35349
  resizable: !0,
35348
35350
  minWidth: 320,
35349
- render: (W) => j($o, {
35351
+ render: (W) => V($o, {
35350
35352
  client: W.client,
35351
35353
  showCityAndRegion: !1,
35352
35354
  "onClick:client-name": () => {
@@ -35362,7 +35364,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35362
35364
  width: 120,
35363
35365
  render: (W) => {
35364
35366
  var re;
35365
- return j("span", { class: "text-base" }, ((re = W.client) == null ? void 0 : re.city.name) ?? "—");
35367
+ return V("span", { class: "text-base" }, ((re = W.client) == null ? void 0 : re.city.name) ?? "—");
35366
35368
  }
35367
35369
  },
35368
35370
  {
@@ -35374,7 +35376,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35374
35376
  className: "order-status",
35375
35377
  render: (W) => {
35376
35378
  var re, ue;
35377
- return j("span", { class: "text-base" }, [((ue = (re = l.value) == null ? void 0 : re.find((Y) => Y.id === (W.status ?? -1))) == null ? void 0 : ue.name) ?? ""]);
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) ?? ""]);
35378
35380
  }
35379
35381
  },
35380
35382
  {
@@ -35383,7 +35385,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35383
35385
  resizable: !0,
35384
35386
  width: 115,
35385
35387
  minWidth: 95,
35386
- render: (W) => W.payment ? j(Zf, { payment: W.payment }) : j("span", { class: "text-base" }, "—")
35388
+ render: (W) => W.payment ? V(Zf, { payment: W.payment }) : V("span", { class: "text-base" }, "—")
35387
35389
  },
35388
35390
  {
35389
35391
  title: "Напр. продаж",
@@ -35392,7 +35394,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35392
35394
  width: 70,
35393
35395
  render: (W) => {
35394
35396
  var re;
35395
- return j("span", { class: "text-base" }, [((re = W.salesDirection) == null ? void 0 : re.name) ?? ""]);
35397
+ return V("span", { class: "text-base" }, [((re = W.salesDirection) == null ? void 0 : re.name) ?? ""]);
35396
35398
  }
35397
35399
  },
35398
35400
  ...i.showAttachedUserColumn ? [
@@ -35403,7 +35405,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35403
35405
  minWidth: 120,
35404
35406
  render: (W) => {
35405
35407
  var re;
35406
- return j("span", { class: "text-base" }, [((re = W == null ? void 0 : W.attachedUser) == null ? void 0 : re.name) ?? ""]);
35408
+ return V("span", { class: "text-base" }, [((re = W == null ? void 0 : W.attachedUser) == null ? void 0 : re.name) ?? ""]);
35407
35409
  }
35408
35410
  }
35409
35411
  ] : []
@@ -35413,7 +35415,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35413
35415
  title: "",
35414
35416
  className: "align-top",
35415
35417
  width: 50,
35416
- render: (W) => j(H5, {
35418
+ render: (W) => V(H5, {
35417
35419
  order: W,
35418
35420
  orderContextButtonsConfig: i.orderContextButtonsConfig,
35419
35421
  onOrderContextSelect: i.onOrderContextSelect
@@ -35433,7 +35435,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35433
35435
  title: "Заказ",
35434
35436
  resizable: !0,
35435
35437
  // eslint-disable-next-line vue/max-len
35436
- render: (W) => j(c5, { order: W, fields: R, orderUrl: i.orderUrl })
35438
+ render: (W) => V(c5, { order: W, fields: R, orderUrl: i.orderUrl })
35437
35439
  }
35438
35440
  ];
35439
35441
  case Ct.laptop: {
@@ -35553,7 +35555,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35553
35555
  }, null, 8, ["columns", "data", "row-key", "scroll-x", "pagination", "loading", "max-height"]);
35554
35556
  };
35555
35557
  }
35556
- }), R4 = /* @__PURE__ */ Jn(V5, [["__scopeId", "data-v-aee16951"]]), j5 = ["href"], q5 = { class: "text-sc-dark-grey" }, U5 = {}, F4 = /* @__PURE__ */ ae({
35558
+ }), R4 = /* @__PURE__ */ Jn(V5, [["__scopeId", "data-v-25174a4c"]]), j5 = ["href"], q5 = { class: "text-sc-dark-grey" }, U5 = {}, F4 = /* @__PURE__ */ ae({
35557
35559
  ...U5,
35558
35560
  __name: "short-text-order-info",
35559
35561
  props: {
@@ -35991,7 +35993,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
35991
35993
  return h.length > 0 && p.length > 0 && h.push({
35992
35994
  key: "manager-operator-divider",
35993
35995
  disabled: !0,
35994
- render: () => j("div", { class: "sc-manager-operator-select__divider" })
35996
+ render: () => V("div", { class: "sc-manager-operator-select__divider" })
35995
35997
  }), h.push(...p), h;
35996
35998
  }), c = I(
35997
35999
  () => l.value.map((h) => ({
@@ -36221,7 +36223,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
36221
36223
  }));
36222
36224
  }, d = (m, p) => {
36223
36225
  const v = a.value.find((y) => y.id === m.value) || {};
36224
- return j(
36226
+ return V(
36225
36227
  S3,
36226
36228
  {
36227
36229
  addr: v,
@@ -36329,7 +36331,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
36329
36331
  }
36330
36332
  }, d = (m, p) => {
36331
36333
  const v = a.value.find((y) => y.id === m.value) || {};
36332
- return j(
36334
+ return V(
36333
36335
  M3,
36334
36336
  {
36335
36337
  bank: v,
@@ -36461,7 +36463,7 @@ const GS = He({ name: "tabler-truck-loading", render: KS }), ZS = { class: "flex
36461
36463
  }
36462
36464
  }, f = (p, v) => {
36463
36465
  const y = a.value.find((C) => C.id === p.value) || {};
36464
- return j(
36466
+ return V(
36465
36467
  N3,
36466
36468
  {
36467
36469
  org: y,