@snabcentr/vue-ui-lib 2.26.5 → 2.26.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ var kl = (e) => {
5
5
  var Jh = (e, t, i) => t in e ? Zh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
6
6
  var k = (e, t, i) => Jh(e, typeof t != "symbol" ? t + "" : t, i), Cl = (e, t, i) => t.has(e) || kl("Cannot " + i);
7
7
  var Wt = (e, t, i) => (Cl(e, t, "read from private field"), i ? i.call(e) : t.get(e)), Xo = (e, t, i) => t.has(e) ? kl("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), Sl = (e, t, i, n) => (Cl(e, t, "write to private field"), n ? n.call(e, i) : t.set(e, i), i);
8
- import { isString as yn, noop as Sa, some as Us, isNil as mi, isFunction as Ci, find as Qh, get as Tl, forOwn as Fu, forEach as Nr, sortBy as Eu, isArray as Dt, isUndefined as Gn, debounce as Cn, unset as ef, cloneDeep as Qa, keys as tf, isObject as nf, merge as wr, upperFirst as sf, map as rf, isEmpty as Au, constant as uo, isNull as of, union as af } from "lodash-es";
8
+ import { isString as yn, noop as Sa, some as Us, isNil as mi, isFunction as Ci, find as Qh, get as Tl, forOwn as Fu, forEach as Nr, sortBy as Eu, isArray as Ft, isUndefined as Gn, debounce as Cn, unset as ef, cloneDeep as Qa, keys as tf, isObject as nf, merge as wr, upperFirst as sf, map as rf, isEmpty as Au, constant as uo, isNull as of, union as af } from "lodash-es";
9
9
  import { Comment as ho, Text as Ou, Fragment as Fe, markRaw as Ue, createElementBlock as F, openBlock as x, createElementVNode as $, defineComponent as te, inject as Ke, computed as z, ref as W, readonly as Ur, normalizeClass as qe, createVNode as D, createCommentVNode as j, renderSlot as Te, unref as Y, createTextVNode as re, toDisplayString as X, Transition as Kn, withCtx as M, createBlock as ne, useTemplateRef as _i, onMounted as gt, onBeforeUnmount as di, onUnmounted as lr, normalizeStyle as cr, renderList as Gt, h as A, withModifiers as lf, provide as ci, toRaw as Ut, createSlots as rn, watch as Oe, nextTick as Hi, onBeforeMount as ur, getCurrentInstance as Bu, withDirectives as dr, Teleport as cf, toRef as je, mergeProps as el, onActivated as Iu, onDeactivated as zu, isVNode as uf, shallowRef as df, watchEffect as on, vShow as Lu, cloneVNode as hf, mergeDefaults as tl } from "vue";
10
10
  import { NTooltip as fo, NButton as Ye, NDropdown as il, NTag as Du, NPopover as ln, NText as Zs, NScrollbar as Nu, NDataTable as nl, NAlert as Hu, NSpin as po, NCheckbox as ff, NForm as hr, NFormItem as Ge, NInputNumber as Si, NInput as Sn, NSelect as bn, NInputGroup as pf, NModal as sl, NDrawer as Wu, NDrawerContent as Vu, NDatePicker as gf, NUpload as mf, NUploadDragger as vf, NList as _f, NListItem as yf, NH1 as bf, NAutoComplete as rl } from "naive-ui";
11
11
  import { AppConfigProvider as yi, ClientCategory as wf, CartItemBase as Zn, UnitsHelper as Jt, Reference as xf, useReferencesStore as Ht, PriceCoefficientEnum as kf, CalculationTypeEnum as Os, PriceCoefficient as Cf, HttpRequester as ft, ConfiguratorProvider as Js, CartProvider as wn, Identity as Sf, Product as Tf, DateTimeProvider as $f, ProductCategoryDataProvider as Pf, ProductDataProvider as Rf, Order as Mf, OrdersDataProvider as ju, DataTablePagination as Ff, ManagerDataFactory as Ef, Manager as Af, DataSuggestionProvider as ol, FieldValidationResultData as Of, ReferenceDataProvider as Bf } from "@snabcentr/common-lib";
@@ -1892,14 +1892,15 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1892
1892
  return (E = t == null ? void 0 : t.filteredItems) == null ? void 0 : E[t.categoryItem.id];
1893
1893
  }), s = z(() => {
1894
1894
  var E, J;
1895
- return Dt((E = t.categoryItem) == null ? void 0 : E.categories) && ((J = t.categoryItem.categories) == null ? void 0 : J.length) > 0;
1895
+ return Ft((E = t.categoryItem) == null ? void 0 : E.categories) && ((J = t.categoryItem.categories) == null ? void 0 : J.length) > 0;
1896
1896
  }), r = z(() => {
1897
1897
  var E;
1898
- return Dt((E = t.categoryItem) == null ? void 0 : E.products) ? t.categoryItem.products : [];
1898
+ return Ft((E = t.categoryItem) == null ? void 0 : E.products) ? t.categoryItem.products : [];
1899
1899
  }), o = z(() => Object.entries(t.categoryItem.currencyRates ?? {}).map(([E, J]) => `${J} руб./${C(E)}`).join(", ")), a = z(
1900
1900
  () => Gn(t.filteredItems) || n.value === "*" ? r.value : r.value.filter((E) => {
1901
- var J, L;
1902
- return (L = (J = n.value) == null ? void 0 : J.products) == null ? void 0 : L.includes(E.id);
1901
+ var L;
1902
+ const J = (L = n.value) == null ? void 0 : L.products;
1903
+ return Ft(J) && J.includes(E.id);
1903
1904
  })
1904
1905
  ), l = z(() => a.value.length > 0), c = z(
1905
1906
  () => Ci(t.showHideForClientButton) ? t.showHideForClientButton(t.categoryItem) : t.showHideForClientButton
@@ -2286,7 +2287,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2286
2287
  }, 8, ["name", "data-id"]);
2287
2288
  };
2288
2289
  }
2289
- }), Tg = /* @__PURE__ */ is(Sg, [["__scopeId", "data-v-89e65ae0"]]), $g = { class: "sc-collapse flex w-full flex-col" }, Pg = {}, Rg = /* @__PURE__ */ te({
2290
+ }), Tg = /* @__PURE__ */ is(Sg, [["__scopeId", "data-v-b1d02b24"]]), $g = { class: "sc-collapse flex w-full flex-col" }, Pg = {}, Rg = /* @__PURE__ */ te({
2290
2291
  ...Pg,
2291
2292
  __name: "collapse",
2292
2293
  props: {
@@ -2539,12 +2540,12 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2539
2540
  },
2540
2541
  emits: ["update:value"],
2541
2542
  setup(e, { expose: t, emit: i }) {
2542
- const n = e, s = i, r = z(() => Dt(n.value)), o = new xf(), a = z(() => {
2543
+ const n = e, s = i, r = z(() => Ft(n.value)), o = new xf(), a = z(() => {
2543
2544
  const d = r.value ? [] : o, p = Gn(n.value) ? d : n.value;
2544
- return Dt(p) ? p.map((g) => g.id) : p == null ? void 0 : p.id;
2545
+ return Ft(p) ? p.map((g) => g.id) : p == null ? void 0 : p.id;
2545
2546
  }), l = z(() => Pi.convertReferencesToSelectOptionsList(n.referenceList, n.sortOptionsByLabel, n.showEmptyValue)), c = (d) => {
2546
2547
  var p;
2547
- if (Dt(d)) {
2548
+ if (Ft(d)) {
2548
2549
  const g = d.length > 0 ? d.map((m) => {
2549
2550
  var v;
2550
2551
  return (v = l.value.find((_) => _.value === m)) == null ? void 0 : v.item;
@@ -2639,7 +2640,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2639
2640
  coefficient: r(u.value) ? void 0 : structuredClone(Ut(u.value))
2640
2641
  });
2641
2642
  }, m = (b) => {
2642
- Dt(b) || (u.value = b, !u.value && h.value && (u.value = s()), g());
2643
+ Ft(b) || (u.value = b, !u.value && h.value && (u.value = s()), g());
2643
2644
  }, v = () => {
2644
2645
  u.value || (u.value = s()), g();
2645
2646
  }, _ = (b) => {
@@ -3775,7 +3776,7 @@ var ad = {};
3775
3776
  nd(ad, {
3776
3777
  HALF_PI: () => bt,
3777
3778
  NumArray: () => Li,
3778
- TWO_PI: () => Lt,
3779
+ TWO_PI: () => Dt,
3779
3780
  decomposeMatrix: () => Rs,
3780
3781
  getComputedMatrix: () => ud,
3781
3782
  getPoT: () => dd,
@@ -3786,7 +3787,7 @@ nd(ad, {
3786
3787
  });
3787
3788
  var ct;
3788
3789
  typeof window < "u" ? ct = window : typeof global < "u" ? ct = global : typeof self < "u" && (ct = self);
3789
- var ld, Lt = Math.PI * 2, bt = Math.PI * 0.5;
3790
+ var ld, Dt = Math.PI * 2, bt = Math.PI * 0.5;
3790
3791
  function Rs(e, t, i, n, s, r) {
3791
3792
  let o;
3792
3793
  return arguments.length <= 1 ? (o = e.a, t = e.b, i = e.c, n = e.d, s = e.e, r = e.f) : o = e, {
@@ -4599,51 +4600,51 @@ var vo = class {
4599
4600
  contains(t) {
4600
4601
  return t in this.map;
4601
4602
  }
4602
- }, Et, xn = class extends Array {
4603
+ }, At, xn = class extends Array {
4603
4604
  constructor() {
4604
- super(), rd(this, Et, new ee()), arguments[0] && Array.isArray(arguments[0]) ? arguments[0].length > 0 && this.push.apply(this, arguments[0]) : arguments.length > 0 && this.push.apply(this, arguments);
4605
+ super(), rd(this, At, new ee()), arguments[0] && Array.isArray(arguments[0]) ? arguments[0].length > 0 && this.push.apply(this, arguments[0]) : arguments.length > 0 && this.push.apply(this, arguments);
4605
4606
  }
4606
4607
  get _events() {
4607
- return ei(this, Et);
4608
+ return ei(this, At);
4608
4609
  }
4609
4610
  set _events(t) {
4610
- mv(this, Et, t);
4611
+ mv(this, At, t);
4611
4612
  }
4612
4613
  get _bound() {
4613
- return ei(this, Et)._bound;
4614
+ return ei(this, At)._bound;
4614
4615
  }
4615
4616
  set _bound(t) {
4616
- ei(this, Et)._bound = t;
4617
+ ei(this, At)._bound = t;
4617
4618
  }
4618
4619
  addEventListener() {
4619
- return ei(this, Et).addEventListener.apply(this, arguments);
4620
+ return ei(this, At).addEventListener.apply(this, arguments);
4620
4621
  }
4621
4622
  on() {
4622
- return ei(this, Et).on.apply(this, arguments);
4623
+ return ei(this, At).on.apply(this, arguments);
4623
4624
  }
4624
4625
  bind() {
4625
- return ei(this, Et).bind.apply(this, arguments);
4626
+ return ei(this, At).bind.apply(this, arguments);
4626
4627
  }
4627
4628
  removeEventListener() {
4628
- return ei(this, Et).removeEventListener.apply(this, arguments);
4629
+ return ei(this, At).removeEventListener.apply(this, arguments);
4629
4630
  }
4630
4631
  off() {
4631
- return ei(this, Et).off.apply(this, arguments);
4632
+ return ei(this, At).off.apply(this, arguments);
4632
4633
  }
4633
4634
  unbind() {
4634
- return ei(this, Et).unbind.apply(this, arguments);
4635
+ return ei(this, At).unbind.apply(this, arguments);
4635
4636
  }
4636
4637
  dispatchEvent() {
4637
- return ei(this, Et).dispatchEvent.apply(this, arguments);
4638
+ return ei(this, At).dispatchEvent.apply(this, arguments);
4638
4639
  }
4639
4640
  trigger() {
4640
- return ei(this, Et).trigger.apply(this, arguments);
4641
+ return ei(this, At).trigger.apply(this, arguments);
4641
4642
  }
4642
4643
  listen() {
4643
- return ei(this, Et).listen.apply(this, arguments);
4644
+ return ei(this, At).listen.apply(this, arguments);
4644
4645
  }
4645
4646
  ignore() {
4646
- return ei(this, Et).ignore.apply(this, arguments);
4647
+ return ei(this, At).ignore.apply(this, arguments);
4647
4648
  }
4648
4649
  pop() {
4649
4650
  const t = super.pop.apply(this, arguments);
@@ -4691,7 +4692,7 @@ var vo = class {
4691
4692
  return n;
4692
4693
  }
4693
4694
  };
4694
- Et = /* @__PURE__ */ new WeakMap();
4695
+ At = /* @__PURE__ */ new WeakMap();
4695
4696
  var vd = class extends ee {
4696
4697
  constructor() {
4697
4698
  super(), y(this, "_flagId", !1), y(this, "_flagClassName", !1), y(this, "_renderer", {}), y(this, "_id", Kt.Identifier + Kt.uniqueId()), y(this, "_className", ""), y(this, "classList", []);
@@ -6209,7 +6210,7 @@ var An = class extends Be {
6209
6210
  const a = o || Kt.Resolution * 3, l = [];
6210
6211
  for (let c = 0; c < a; c++)
6211
6212
  l.push(new Ee());
6212
- super(l, !0, !1, !0), y(this, "_flagStartAngle", !1), y(this, "_flagEndAngle", !1), y(this, "_flagInnerRadius", !1), y(this, "_flagOuterRadius", !1), y(this, "_startAngle", 0), y(this, "_endAngle", Lt), y(this, "_innerRadius", 0), y(this, "_outerRadius", 0), this._renderer.type = "arc-segment";
6213
+ super(l, !0, !1, !0), y(this, "_flagStartAngle", !1), y(this, "_flagEndAngle", !1), y(this, "_flagInnerRadius", !1), y(this, "_flagOuterRadius", !1), y(this, "_startAngle", 0), y(this, "_endAngle", Dt), y(this, "_innerRadius", 0), y(this, "_outerRadius", 0), this._renderer.type = "arc-segment";
6213
6214
  for (let c in Vl)
6214
6215
  Object.defineProperty(this, c, Vl[c]);
6215
6216
  typeof i == "number" && (this.innerRadius = i), typeof n == "number" && (this.outerRadius = n), typeof s == "number" && (this.startAngle = s), typeof r == "number" && (this.endAngle = r), this._update(), typeof e == "number" && (this.translation.x = e), typeof t == "number" && (this.translation.y = t);
@@ -6228,7 +6229,7 @@ var An = class extends Be {
6228
6229
  }
6229
6230
  _update() {
6230
6231
  if (this._flagVertices || this._flagStartAngle || this._flagEndAngle || this._flagInnerRadius || this._flagOuterRadius) {
6231
- const e = this._startAngle, t = this._endAngle, i = this._innerRadius, n = this._outerRadius, s = ui(e, Lt) === ui(t, Lt), r = i > 0, o = this.vertices;
6232
+ const e = this._startAngle, t = this._endAngle, i = this._innerRadius, n = this._outerRadius, s = ui(e, Dt) === ui(t, Dt), r = i > 0, o = this.vertices;
6232
6233
  let a = r ? o.length / 2 : o.length, l, c = 0, u, h, f, d, p, g, m, v, _;
6233
6234
  for (s ? a-- : r || (a -= 2), u = 0, h = a - 1; u < a; u++) {
6234
6235
  switch (f = u / h, d = o[c], p = f * (t - e) + e, g = (t - e) / a, m = n * Math.cos(p), v = n * Math.sin(p), u) {
@@ -6336,7 +6337,7 @@ var Vl = {
6336
6337
  !this._closed && e > 2 && (e -= 1);
6337
6338
  const t = 4 / 3 * Math.tan(Math.PI / (e * 2)), i = this._radius, n = i * t;
6338
6339
  for (let s = 0; s < this.vertices.length; s++) {
6339
- const o = s / e * Lt, a = i * Ko(o), l = i * Zo(o), c = n * Ko(o - bt), u = n * Zo(o - bt), h = n * Ko(o + bt), f = n * Zo(o + bt), d = this.vertices[s];
6340
+ const o = s / e * Dt, a = i * Ko(o), l = i * Zo(o), c = n * Ko(o - bt), u = n * Zo(o - bt), h = n * Ko(o + bt), f = n * Zo(o + bt), d = this.vertices[s];
6340
6341
  d.command = s === 0 ? ce.move : ce.curve, d.set(a, l), d.controls.left.set(c, u), d.controls.right.set(h, f);
6341
6342
  }
6342
6343
  }
@@ -6404,7 +6405,7 @@ var jl = {
6404
6405
  !this._closed && e > 2 && (e -= 1);
6405
6406
  const t = 4 / 3 * Math.tan(Math.PI / (this.vertices.length * 2)), i = this._width / 2, n = this._height / 2;
6406
6407
  for (let s = 0; s < this.vertices.length; s++) {
6407
- const o = s / e * Lt, a = i * Jo(o), l = n * Qo(o), c = i * t * Jo(o - bt), u = n * t * Qo(o - bt), h = i * t * Jo(o + bt), f = n * t * Qo(o + bt), d = this.vertices[s];
6408
+ const o = s / e * Dt, a = i * Jo(o), l = n * Qo(o), c = i * t * Jo(o - bt), u = n * t * Qo(o - bt), h = i * t * Jo(o + bt), f = n * t * Qo(o + bt), d = this.vertices[s];
6408
6409
  d.command = s === 0 ? ce.move : ce.curve, d.set(a, l), d.controls.left.set(c, u), d.controls.right.set(h, f);
6409
6410
  }
6410
6411
  }
@@ -6665,7 +6666,7 @@ var Xl = {
6665
6666
  let i = this.vertices.length;
6666
6667
  i > e && (this.vertices.splice(e - 1, i - e), i = e);
6667
6668
  for (let n = 0; n < t; n++) {
6668
- const s = (n + 0.5) / e, r = Lt * s + Math.PI / 2, o = this._width * Lv(r) / 2, a = this._height * Dv(r) / 2;
6669
+ const s = (n + 0.5) / e, r = Dt * s + Math.PI / 2, o = this._width * Lv(r) / 2, a = this._height * Dv(r) / 2;
6669
6670
  n >= i ? this.vertices.push(new Ee(o, a)) : this.vertices[n].set(o, a), this.vertices[n].command = n === 0 ? ce.move : ce.line;
6670
6671
  }
6671
6672
  }
@@ -6849,7 +6850,7 @@ var Hv = Math.cos, Wv = Math.sin, Ln = class extends Be {
6849
6850
  let i = this.vertices.length;
6850
6851
  i > e && (this.vertices.splice(e - 1, i - e), i = e);
6851
6852
  for (let n = 0; n < t; n++) {
6852
- const s = (n + 0.5) / e, r = Lt * s, o = (n % 2 ? this._outerRadius : this._innerRadius) / 2, a = o * Hv(r), l = o * Wv(r);
6853
+ const s = (n + 0.5) / e, r = Dt * s, o = (n % 2 ? this._outerRadius : this._innerRadius) / 2, a = o * Hv(r), l = o * Wv(r);
6853
6854
  n >= i ? this.vertices.push(new Ee(a, l)) : this.vertices[n].set(a, l), this.vertices[n].command = n === 0 ? ce.move : ce.line;
6854
6855
  }
6855
6856
  }
@@ -8450,7 +8451,7 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8450
8451
  let S = c * 0.5, C;
8451
8452
  this._sizeAttenuation || (C = this.worldMatrix.elements, C = Rs(C[0], C[3], C[1], C[4], C[2], C[5]), S /= Math.max(C.scaleX, C.scaleY));
8452
8453
  for (let b = 0; b < h; b++)
8453
- f = u[b], d = f.x, p = f.y, e.moveTo(d + S, p), e.arc(d, p, S, 0, Lt);
8454
+ f = u[b], d = f.x, p = f.y, e.moveTo(d + S, p), e.arc(d, p, S, 0, Dt);
8454
8455
  return i || (ze.isHidden.test(o) || (m = o._renderer && o._renderer.offset, m && (e.save(), e.translate(-o._renderer.offset.x, -o._renderer.offset.y), e.scale(o._renderer.scale.x, o._renderer.scale.y)), e.fill(), m && e.restore()), ze.isHidden.test(s) || (m = s._renderer && s._renderer.offset, m && (e.save(), e.translate(
8455
8456
  -s._renderer.offset.x,
8456
8457
  -s._renderer.offset.y
@@ -8610,7 +8611,7 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8610
8611
  (d - w) / s,
8611
8612
  (-f - T) / n,
8612
8613
  (-d - w) / s
8613
- ) % Lt, Q = B + Z;
8614
+ ) % Dt, Q = B + Z;
8614
8615
  o0(
8615
8616
  e,
8616
8617
  R,
@@ -8623,7 +8624,7 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8623
8624
  a
8624
8625
  );
8625
8626
  }
8626
- }, Bt = class extends ee {
8627
+ }, It = class extends ee {
8627
8628
  constructor(e) {
8628
8629
  super();
8629
8630
  const t = e.smoothing !== !1;
@@ -8640,11 +8641,11 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8640
8641
  return e || (this.ctx.save(), this.ctx.scale(this.ratio, this.ratio)), this.overdraw || this.ctx.clearRect(0, 0, this.width, this.height), ze.group.render.call(this.scene, this.ctx), e || this.ctx.restore(), this;
8641
8642
  }
8642
8643
  };
8643
- y(Bt, "Utils", ze);
8644
+ y(It, "Utils", ze);
8644
8645
  function o0(e, t, i, n, s, r, o, a, l) {
8645
8646
  const c = o - r, u = Ms.Tolerance.epsilon, h = Math.abs(c) < u;
8646
- let f = ui(c, Lt);
8647
- f < u && (h ? f = 0 : f = Lt), a === !0 && !h && (f === Lt ? f = -Lt : f = f - Lt);
8647
+ let f = ui(c, Dt);
8648
+ f < u && (h ? f = 0 : f = Dt), a === !0 && !h && (f === Dt ? f = -Dt : f = f - Dt);
8648
8649
  for (let d = 0; d < Kt.Resolution; d++) {
8649
8650
  const p = d / (Kt.Resolution - 1), g = r + p * f;
8650
8651
  let m = t + n * Math.cos(g), v = i + s * Math.sin(g);
@@ -9055,7 +9056,7 @@ var fi = {
9055
9056
  }
9056
9057
  `
9057
9058
  }
9058
- }, Pr = Qn.Multiply, a0 = [1, 0, 0, 0, 1, 0, 0, 0, 1], dn = new Li(9), l0 = Bt.Utils, lc = new oe(), Ea = new Li([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]), Pe = {
9059
+ }, Pr = Qn.Multiply, a0 = [1, 0, 0, 0, 1, 0, 0, 0, 1], dn = new Li(9), l0 = It.Utils, lc = new oe(), Ea = new Li([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]), Pe = {
9059
9060
  precision: 0.9,
9060
9061
  isHidden: /(undefined|none|transparent)/i,
9061
9062
  canvas: ct.document ? ct.document.createElement("canvas") : { getContext: function() {
@@ -9084,7 +9085,7 @@ var fi = {
9084
9085
  this._renderer.matrix
9085
9086
  ), this._renderer.scale instanceof oe || (this._renderer.scale = new oe()), this._scale instanceof oe ? (this._renderer.scale.x = this._scale.x, this._renderer.scale.y = this._scale.y) : (this._renderer.scale.x = this._scale, this._renderer.scale.y = this._scale), /renderer/i.test(i._renderer.type) || (this._renderer.scale.x *= i._renderer.scale.x, this._renderer.scale.y *= i._renderer.scale.y), n && (this._flagMatrix = !0)), this._mask) {
9086
9087
  e.clear(e.STENCIL_BUFFER_BIT), e.enable(e.STENCIL_TEST), e.stencilFunc(e.ALWAYS, 1, 0), e.stencilOp(e.KEEP, e.KEEP, e.REPLACE), e.colorMask(!1, !1, !1, !1);
9087
- const o = Bt.Utils.getRendererType(
9088
+ const o = It.Utils.getRendererType(
9088
9089
  this._mask._renderer.type
9089
9090
  );
9090
9091
  Pe[o].render.call(this._mask, e, t, this), e.stencilFunc(e.EQUAL, 1, 255), e.stencilOp(e.KEEP, e.KEEP, e.KEEP), e.colorMask(!0, !0, !0, !0);
@@ -9095,7 +9096,7 @@ var fi = {
9095
9096
  for (r = 0; r < this.subtractions.length; r++)
9096
9097
  Pe.group.removeChild(this.subtractions[r], e);
9097
9098
  for (r = 0; r < this.children.length; r++) {
9098
- const o = this.children[r], a = Bt.Utils.getRendererType(o._renderer.type);
9099
+ const o = this.children[r], a = It.Utils.getRendererType(o._renderer.type);
9099
9100
  Pe[a].render.call(o, e, t);
9100
9101
  }
9101
9102
  return this._mask && e.disable(e.STENCIL_TEST), this.flagReset();
@@ -9117,7 +9118,7 @@ var fi = {
9117
9118
  if (typeof w == "string")
9118
9119
  _.fillStyle = w;
9119
9120
  else {
9120
- const ke = Bt.Utils.getRendererType(
9121
+ const ke = It.Utils.getRendererType(
9121
9122
  w._renderer.type
9122
9123
  );
9123
9124
  Pe[ke].render.call(w, _, t), _.fillStyle = w._renderer.effect;
@@ -9126,7 +9127,7 @@ var fi = {
9126
9127
  if (typeof b == "string")
9127
9128
  _.strokeStyle = b;
9128
9129
  else {
9129
- const ke = Bt.Utils.getRendererType(
9130
+ const ke = It.Utils.getRendererType(
9130
9131
  b._renderer.type
9131
9132
  );
9132
9133
  Pe[ke].render.call(b, _, t), _.strokeStyle = b._renderer.effect;
@@ -9181,7 +9182,7 @@ var fi = {
9181
9182
  if (!this._visible || !this._opacity)
9182
9183
  return this;
9183
9184
  this._update();
9184
- const n = i || this.parent, s = Bt.Utils.getRendererType(this._renderer.type), r = t[s], o = n._matrix.manual || n._flagMatrix, a = this._matrix.manual || this._flagMatrix, l = this._renderer.parent !== n, c = this._flagVertices || this._flagFill || this._fill instanceof et && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagEndPoints) || this._fill instanceof tt && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagRadius || this._fill._flagCenter || this._fill._flagFocal) || this._fill instanceof De && (this._fill._flagLoaded && this._fill.loaded || this._fill._flagImage || this._fill._flagVideo || this._fill._flagRepeat || this._fill._flagOffset || this._fill._flagScale) || this._stroke instanceof et && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagEndPoints) || this._stroke instanceof tt && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagRadius || this._stroke._flagCenter || this._stroke._flagFocal) || this._stroke instanceof De && (this._stroke._flagLoaded && this._stroke.loaded || this._stroke._flagImage || this._stroke._flagVideo || this._stroke._flagRepeat || this._stroke._flagOffset || this._fill._flagScale) || this._flagStroke || this._flagLinewidth || this._flagOpacity || n._flagOpacity || this._flagVisible || this._flagCap || this._flagJoin || this._flagMiter || this._flagScale || this.dashes && this.dashes.length > 0 || !this._renderer.texture;
9185
+ const n = i || this.parent, s = It.Utils.getRendererType(this._renderer.type), r = t[s], o = n._matrix.manual || n._flagMatrix, a = this._matrix.manual || this._flagMatrix, l = this._renderer.parent !== n, c = this._flagVertices || this._flagFill || this._fill instanceof et && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagEndPoints) || this._fill instanceof tt && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagRadius || this._fill._flagCenter || this._fill._flagFocal) || this._fill instanceof De && (this._fill._flagLoaded && this._fill.loaded || this._fill._flagImage || this._fill._flagVideo || this._fill._flagRepeat || this._fill._flagOffset || this._fill._flagScale) || this._stroke instanceof et && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagEndPoints) || this._stroke instanceof tt && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagRadius || this._stroke._flagCenter || this._stroke._flagFocal) || this._stroke instanceof De && (this._stroke._flagLoaded && this._stroke.loaded || this._stroke._flagImage || this._stroke._flagVideo || this._stroke._flagRepeat || this._stroke._flagOffset || this._fill._flagScale) || this._flagStroke || this._flagLinewidth || this._flagOpacity || n._flagOpacity || this._flagVisible || this._flagCap || this._flagJoin || this._flagMiter || this._flagScale || this.dashes && this.dashes.length > 0 || !this._renderer.texture;
9185
9186
  if (o || a || l) {
9186
9187
  this._renderer.matrix || (this._renderer.matrix = new Li(9)), this._matrix.toTransformArray(!0, dn), Pr(
9187
9188
  dn,
@@ -9193,7 +9194,7 @@ var fi = {
9193
9194
  }
9194
9195
  if (this._mask) {
9195
9196
  e.clear(e.STENCIL_BUFFER_BIT), e.enable(e.STENCIL_TEST), e.stencilFunc(e.ALWAYS, 1, 0), e.stencilOp(e.KEEP, e.KEEP, e.REPLACE), e.colorMask(!1, !1, !1, !1);
9196
- const h = Bt.Utils.getRendererType(
9197
+ const h = It.Utils.getRendererType(
9197
9198
  this._mask._renderer.type
9198
9199
  );
9199
9200
  Pe[h].render.call(this._mask, e, t, this), e.stencilFunc(e.EQUAL, 1, 255), e.stencilOp(e.KEEP, e.KEEP, e.KEEP), e.colorMask(!0, !0, !0, !0);
@@ -9228,7 +9229,7 @@ var fi = {
9228
9229
  if (typeof l == "string")
9229
9230
  s.fillStyle = l;
9230
9231
  else {
9231
- const m = Bt.Utils.getRendererType(
9232
+ const m = It.Utils.getRendererType(
9232
9233
  l._renderer.type
9233
9234
  );
9234
9235
  Pe[m].render.call(l, s, t), s.fillStyle = l._renderer.effect;
@@ -9237,14 +9238,14 @@ var fi = {
9237
9238
  if (typeof o == "string")
9238
9239
  s.strokeStyle = o;
9239
9240
  else {
9240
- const m = Bt.Utils.getRendererType(
9241
+ const m = It.Utils.getRendererType(
9241
9242
  o._renderer.type
9242
9243
  );
9243
9244
  Pe[m].render.call(o, s, t), s.strokeStyle = o._renderer.effect;
9244
9245
  }
9245
9246
  a && (s.lineWidth = a / d);
9246
9247
  }
9247
- typeof c == "number" && (s.globalAlpha = c), u && u.length > 0 && (s.lineDashOffset = u.offset || 0, s.setLineDash(u)), s.save(), s.translate(p, g), s.scale(Pe.precision, Pe.precision), s.beginPath(), s.arc(0, 0, h / d * 0.5, 0, Lt), s.restore(), closed && s.closePath(), Pe.isHidden.test(l) || (i = l._renderer && l._renderer.offset, i && (s.save(), s.translate(-l._renderer.offset.x, -l._renderer.offset.y), s.scale(l._renderer.scale.x, l._renderer.scale.y)), s.fill(), i && s.restore()), Pe.isHidden.test(o) || (i = o._renderer && o._renderer.offset, i && (s.save(), s.translate(-o._renderer.offset.x, -o._renderer.offset.y), s.scale(o._renderer.scale.x, o._renderer.scale.y), s.lineWidth = a / o._renderer.scale.x), s.stroke(), i && s.restore());
9248
+ typeof c == "number" && (s.globalAlpha = c), u && u.length > 0 && (s.lineDashOffset = u.offset || 0, s.setLineDash(u)), s.save(), s.translate(p, g), s.scale(Pe.precision, Pe.precision), s.beginPath(), s.arc(0, 0, h / d * 0.5, 0, Dt), s.restore(), closed && s.closePath(), Pe.isHidden.test(l) || (i = l._renderer && l._renderer.offset, i && (s.save(), s.translate(-l._renderer.offset.x, -l._renderer.offset.y), s.scale(l._renderer.scale.x, l._renderer.scale.y)), s.fill(), i && s.restore()), Pe.isHidden.test(o) || (i = o._renderer && o._renderer.offset, i && (s.save(), s.translate(-o._renderer.offset.x, -o._renderer.offset.y), s.scale(o._renderer.scale.x, o._renderer.scale.y), s.lineWidth = a / o._renderer.scale.x), s.stroke(), i && s.restore());
9248
9249
  },
9249
9250
  render: function(e, t, i) {
9250
9251
  if (!this._visible || !this._opacity)
@@ -9298,7 +9299,7 @@ var fi = {
9298
9299
  if (typeof l == "string")
9299
9300
  n.fillStyle = l;
9300
9301
  else {
9301
- const Q = Bt.Utils.getRendererType(
9302
+ const Q = It.Utils.getRendererType(
9302
9303
  l._renderer.type
9303
9304
  );
9304
9305
  Pe[Q].render.call(l, n, t), n.fillStyle = l._renderer.effect;
@@ -9307,7 +9308,7 @@ var fi = {
9307
9308
  if (typeof o == "string")
9308
9309
  n.strokeStyle = o;
9309
9310
  else {
9310
- const Q = Bt.Utils.getRendererType(
9311
+ const Q = It.Utils.getRendererType(
9311
9312
  o._renderer.type
9312
9313
  );
9313
9314
  Pe[Q].render.call(o, n, t), n.strokeStyle = o._renderer.effect;
@@ -9347,7 +9348,7 @@ var fi = {
9347
9348
  e._weight,
9348
9349
  e._size + "px/" + e._leading + "px",
9349
9350
  e._family
9350
- ].join(" "), i.textAlign = "center", i.textBaseline = Bt.Utils.baselines[e._baseline] || e._baseline;
9351
+ ].join(" "), i.textAlign = "center", i.textBaseline = It.Utils.baselines[e._baseline] || e._baseline;
9351
9352
  const n = i.measureText(e._value);
9352
9353
  let s = n.width, r = 1.15 * (n.actualBoundingBoxAscent + n.actualBoundingBoxDescent);
9353
9354
  this._linewidth && !Pe.isHidden.test(this._stroke) && (s += this._linewidth * 2, r += this._linewidth * 2);
@@ -9393,7 +9394,7 @@ var fi = {
9393
9394
  }
9394
9395
  if (this._mask) {
9395
9396
  e.clear(e.STENCIL_BUFFER_BIT), e.enable(e.STENCIL_TEST), e.stencilFunc(e.ALWAYS, 1, 0), e.stencilOp(e.KEEP, e.KEEP, e.REPLACE), e.colorMask(!1, !1, !1, !1);
9396
- const u = Bt.Utils.getRendererType(
9397
+ const u = It.Utils.getRendererType(
9397
9398
  this._mask._renderer.type
9398
9399
  );
9399
9400
  Pe[u].render.call(this._mask, e, t, this), e.stencilFunc(e.EQUAL, 1, 255), e.stencilOp(e.KEEP, e.KEEP, e.KEEP), e.colorMask(!0, !0, !0, !0);
@@ -9469,7 +9470,7 @@ var fi = {
9469
9470
  }
9470
9471
  },
9471
9472
  updateTexture: function(e, t) {
9472
- const i = Bt.Utils.getRendererType(t._renderer.type);
9473
+ const i = It.Utils.getRendererType(t._renderer.type);
9473
9474
  if (this[i].updateCanvas.call(Pe, e, t), this.canvas.width <= 0 || this.canvas.height <= 0) {
9474
9475
  t._renderer.texture && e.deleteTexture(t._renderer.texture), delete t._renderer.texture;
9475
9476
  return;
@@ -9929,7 +9930,7 @@ y(xe, "Polygon", wo);
9929
9930
  y(xe, "Rectangle", Tn);
9930
9931
  y(xe, "RoundedRectangle", gr);
9931
9932
  y(xe, "Star", xo);
9932
- y(xe, "CanvasRenderer", Bt);
9933
+ y(xe, "CanvasRenderer", It);
9933
9934
  y(xe, "SVGRenderer", Pd);
9934
9935
  y(xe, "WebGLRenderer", Rd);
9935
9936
  y(xe, "Commands", ce);
@@ -15111,7 +15112,7 @@ const Ec = {
15111
15112
  let Ha;
15112
15113
  const Ac = Math.min, Oc = Math.max;
15113
15114
  Di.document && (Ha = document.createElement("canvas"));
15114
- const At = class At extends sn {
15115
+ const Ot = class Ot extends sn {
15115
15116
  constructor(i, n, s, r) {
15116
15117
  super();
15117
15118
  /**
@@ -15319,8 +15320,8 @@ const At = class At extends sn {
15319
15320
  Object.defineProperty(this, o, Bc[o]);
15320
15321
  if (this._renderer.type = "text", this._renderer.flagFill = U0.bind(this), this._renderer.flagStroke = X0.bind(this), this.value = i, typeof n == "number" && (this.translation.x = n), typeof s == "number" && (this.translation.y = s), this.dashes = [], this.dashes.offset = 0, !Qe.isObject(r))
15321
15322
  return this;
15322
- for (let o = 0; o < At.Properties.length; o++) {
15323
- const a = At.Properties[o];
15323
+ for (let o = 0; o < Ot.Properties.length; o++) {
15324
+ const a = Ot.Properties[o];
15324
15325
  a in r && (this[a] = r[a]);
15325
15326
  }
15326
15327
  }
@@ -15346,7 +15347,7 @@ const At = class At extends sn {
15346
15347
  height: r
15347
15348
  };
15348
15349
  } else {
15349
- const n = this.value.length * this.size * At.Ratio, s = this.leading;
15350
+ const n = this.value.length * this.size * Ot.Ratio, s = this.leading;
15350
15351
  return console.warn(
15351
15352
  "Two.Text: unable to accurately measure text, so using an approximation."
15352
15353
  ), {
@@ -15364,7 +15365,7 @@ const At = class At extends sn {
15364
15365
  * @nota-bene Works in conjunction with {@link Two.Text#toObject}
15365
15366
  */
15366
15367
  static fromObject(i) {
15367
- const n = typeof i.fill == "string" ? i.fill : es(i.fill), s = typeof i.stroke == "string" ? i.stroke : es(i.stroke), r = new At().copy({ ...i, fill: n, stroke: s });
15368
+ const n = typeof i.fill == "string" ? i.fill : es(i.fill), s = typeof i.stroke == "string" ? i.stroke : es(i.stroke), r = new Ot().copy({ ...i, fill: n, stroke: s });
15368
15369
  return "id" in i && (r.id = i.id), r;
15369
15370
  }
15370
15371
  /**
@@ -15375,8 +15376,8 @@ const At = class At extends sn {
15375
15376
  */
15376
15377
  copy(i) {
15377
15378
  super.copy.call(this, i);
15378
- for (let n = 0; n < At.Properties.length; n++) {
15379
- const s = At.Properties[n];
15379
+ for (let n = 0; n < Ot.Properties.length; n++) {
15380
+ const s = Ot.Properties[n];
15380
15381
  s in i && (this[s] = i[s]);
15381
15382
  }
15382
15383
  return this;
@@ -15389,10 +15390,10 @@ const At = class At extends sn {
15389
15390
  * @description Create a new instance of {@link Two.Text} with the same properties of the current text object.
15390
15391
  */
15391
15392
  clone(i) {
15392
- const n = new At(this.value);
15393
+ const n = new Ot(this.value);
15393
15394
  n.translation.copy(this.translation), n.rotation = this.rotation, n.scale = this.scale;
15394
- for (let s = 0; s < At.Properties.length; s++) {
15395
- const r = At.Properties[s];
15395
+ for (let s = 0; s < Ot.Properties.length; s++) {
15396
+ const r = Ot.Properties[s];
15396
15397
  n[r] = this[r];
15397
15398
  }
15398
15399
  return this.matrix.manual && n.matrix.copy(this.matrix), i && i.add(n), n._update();
@@ -15407,8 +15408,8 @@ const At = class At extends sn {
15407
15408
  toObject() {
15408
15409
  const i = super.toObject.call(this);
15409
15410
  i.renderer.type = "text";
15410
- for (let n = 0; n < At.Properties.length; n++) {
15411
- const s = At.Properties[n];
15411
+ for (let n = 0; n < Ot.Properties.length; n++) {
15412
+ const s = Ot.Properties[n];
15412
15413
  i[s] = this[s];
15413
15414
  }
15414
15415
  return i;
@@ -15442,7 +15443,7 @@ const At = class At extends sn {
15442
15443
  getBoundingClientRect(i) {
15443
15444
  let n, s, r, o, a;
15444
15445
  this._update(!0), n = i ? this.matrix : this.worldMatrix;
15445
- const { width: l, height: c } = At.Measure(this), u = (this._linewidth || 0) / 2;
15446
+ const { width: l, height: c } = Ot.Measure(this), u = (this._linewidth || 0) / 2;
15446
15447
  switch (this.alignment) {
15447
15448
  case "left":
15448
15449
  s = -u, r = l + u;
@@ -15484,11 +15485,11 @@ const At = class At extends sn {
15484
15485
  * @name Two.Text.Ratio
15485
15486
  * @property {Number} - Approximate aspect ratio of a typeface's character width to height.
15486
15487
  */
15487
- k(At, "Ratio", 0.6), /**
15488
+ k(Ot, "Ratio", 0.6), /**
15488
15489
  * @name Two.Text.Properties
15489
15490
  * @property {String[]} - A list of properties that are on every {@link Two.Text}.
15490
15491
  */
15491
- k(At, "Properties", [
15492
+ k(Ot, "Properties", [
15492
15493
  "value",
15493
15494
  "family",
15494
15495
  "size",
@@ -15506,7 +15507,7 @@ k(At, "Properties", [
15506
15507
  "stroke",
15507
15508
  "dashes"
15508
15509
  ]);
15509
- let Cs = At;
15510
+ let Cs = Ot;
15510
15511
  const Bc = {
15511
15512
  value: {
15512
15513
  enumerable: !0,
@@ -16779,7 +16780,7 @@ const st = {
16779
16780
  length: {}
16780
16781
  }), h = W(0), f = (b = 0) => {
16781
16782
  const T = l.value.allTemplates.at(b);
16782
- T !== void 0 && (h.value = b, a.value.configuratorParams.linesWidths = T.points.map((w) => Dt(w) ? w[0] : w.width), a.value.configuratorParams.linesAngles = T.points.map((w) => Dt(w) ? w[1] : w.angle), v()), g(a.value.configuratorParams);
16783
+ T !== void 0 && (h.value = b, a.value.configuratorParams.linesWidths = T.points.map((w) => Ft(w) ? w[0] : w.width), a.value.configuratorParams.linesAngles = T.points.map((w) => Ft(w) ? w[1] : w.angle), v()), g(a.value.configuratorParams);
16783
16784
  }, d = async () => {
16784
16785
  const b = prompt("Введите название шаблона:");
16785
16786
  if (!b)
@@ -16888,7 +16889,7 @@ class js extends Sf {
16888
16889
  */
16889
16890
  k(this, "guid", "");
16890
16891
  i ? (this.label = i.label, this.points = i.points.map(
16891
- (s, r) => Dt(s) ? new Ss(s[0], s[1], `A-${r + 1}`) : new Ss(s.width, s.angle, `A-${r + 1}`)
16892
+ (s, r) => Ft(s) ? new Ss(s[0], s[1], `A-${r + 1}`) : new Ss(s.width, s.angle, `A-${r + 1}`)
16892
16893
  )) : (this.label = "-- Новая конфигурация --", this.points = [new Ss(0, 0, "A-1")], this.isCustom = !0, this.id = n ?? this.id);
16893
16894
  }
16894
16895
  }
@@ -19179,12 +19180,12 @@ function ts(e) {
19179
19180
  if (t = Dy.exec(e))
19180
19181
  return [Qt(t[1]), Qt(t[2]), Qt(t[3]), 1];
19181
19182
  if (t = Iy.exec(e))
19182
- return [zt(t[1]), zt(t[5]), zt(t[9]), 1];
19183
+ return [Lt(t[1]), Lt(t[5]), Lt(t[9]), 1];
19183
19184
  if (t = zy.exec(e))
19184
19185
  return [
19185
- zt(t[1]),
19186
- zt(t[5]),
19187
- zt(t[9]),
19186
+ Lt(t[1]),
19187
+ Lt(t[5]),
19188
+ Lt(t[9]),
19188
19189
  Un(t[13])
19189
19190
  ];
19190
19191
  if (t = Ly.exec(e))
@@ -19226,10 +19227,10 @@ function jy(e) {
19226
19227
  return e > 1 ? 1 : e < 0 ? 0 : e;
19227
19228
  }
19228
19229
  function Wa(e, t, i, n) {
19229
- return `rgba(${zt(e)}, ${zt(t)}, ${zt(i)}, ${jy(n)})`;
19230
+ return `rgba(${Lt(e)}, ${Lt(t)}, ${Lt(i)}, ${jy(n)})`;
19230
19231
  }
19231
19232
  function aa(e, t, i, n, s) {
19232
- return zt((e * t * (1 - n) + i * n) / s);
19233
+ return Lt((e * t * (1 - n) + i * n) / s);
19233
19234
  }
19234
19235
  function Uy(e, t) {
19235
19236
  Array.isArray(e) || (e = ts(e)), Array.isArray(t) || (t = ts(t));
@@ -19252,7 +19253,7 @@ function so(e) {
19252
19253
  const t = Math.round(Number(e));
19253
19254
  return t >= 360 || t < 0 ? 0 : t;
19254
19255
  }
19255
- function zt(e) {
19256
+ function Lt(e) {
19256
19257
  const t = Math.round(Number(e));
19257
19258
  return t > 255 ? 255 : t < 0 ? 0 : t;
19258
19259
  }
@@ -19262,7 +19263,7 @@ function vn(e) {
19262
19263
  }
19263
19264
  function Xy(e) {
19264
19265
  const [t, i, n] = e;
19265
- return 3 in e ? `rgba(${zt(t)}, ${zt(i)}, ${zt(n)}, ${Un(e[3])})` : `rgba(${zt(t)}, ${zt(i)}, ${zt(n)}, 1)`;
19266
+ return 3 in e ? `rgba(${Lt(t)}, ${Lt(i)}, ${Lt(n)}, ${Un(e[3])})` : `rgba(${Lt(t)}, ${Lt(i)}, ${Lt(n)}, 1)`;
19266
19267
  }
19267
19268
  function Yy(e = 8) {
19268
19269
  return Math.random().toString(16).slice(2, 2 + e);
@@ -22260,9 +22261,9 @@ function bu(e, t) {
22260
22261
  function $h(e, t) {
22261
22262
  throw new Error(`[naive/${e}]: ${t}`);
22262
22263
  }
22263
- function It(e, ...t) {
22264
+ function zt(e, ...t) {
22264
22265
  if (Array.isArray(e))
22265
- e.forEach((i) => It(i, ...t));
22266
+ e.forEach((i) => zt(i, ...t));
22266
22267
  else
22267
22268
  return e(...t);
22268
22269
  }
@@ -23733,7 +23734,7 @@ const be = {
23733
23734
  function Cu(e) {
23734
23735
  return `${n2 + String(e)})`;
23735
23736
  }
23736
- function Ft(e) {
23737
+ function Et(e) {
23737
23738
  const t = Array.from(Ah);
23738
23739
  return t[3] = Number(e), Uy(i2, t);
23739
23740
  }
@@ -23773,17 +23774,17 @@ const ls = Object.assign(Object.assign({
23773
23774
  textColor3: "rgb(118, 124, 130)",
23774
23775
  // textColor4: neutral(base.alpha4), // disabled, placeholder, icon
23775
23776
  // textColor5: neutral(base.alpha5),
23776
- textColorDisabled: Ft(be.alpha4),
23777
- placeholderColor: Ft(be.alpha4),
23778
- placeholderColorDisabled: Ft(be.alpha5),
23779
- iconColor: Ft(be.alpha4),
23780
- iconColorHover: Er(Ft(be.alpha4), {
23777
+ textColorDisabled: Et(be.alpha4),
23778
+ placeholderColor: Et(be.alpha4),
23779
+ placeholderColorDisabled: Et(be.alpha5),
23780
+ iconColor: Et(be.alpha4),
23781
+ iconColorHover: Er(Et(be.alpha4), {
23781
23782
  lightness: 0.75
23782
23783
  }),
23783
- iconColorPressed: Er(Ft(be.alpha4), {
23784
+ iconColorPressed: Er(Et(be.alpha4), {
23784
23785
  lightness: 0.9
23785
23786
  }),
23786
- iconColorDisabled: Ft(be.alpha5),
23787
+ iconColorDisabled: Et(be.alpha5),
23787
23788
  opacity1: be.alpha1,
23788
23789
  opacity2: be.alpha2,
23789
23790
  opacity3: be.alpha3,
@@ -23792,17 +23793,17 @@ const ls = Object.assign(Object.assign({
23792
23793
  dividerColor: "rgb(239, 239, 245)",
23793
23794
  borderColor: "rgb(224, 224, 230)",
23794
23795
  // close
23795
- closeIconColor: Ft(Number(be.alphaClose)),
23796
- closeIconColorHover: Ft(Number(be.alphaClose)),
23797
- closeIconColorPressed: Ft(Number(be.alphaClose)),
23796
+ closeIconColor: Et(Number(be.alphaClose)),
23797
+ closeIconColorHover: Et(Number(be.alphaClose)),
23798
+ closeIconColorPressed: Et(Number(be.alphaClose)),
23798
23799
  closeColorHover: "rgba(0, 0, 0, .09)",
23799
23800
  closeColorPressed: "rgba(0, 0, 0, .13)",
23800
23801
  // clear
23801
- clearColor: Ft(be.alpha4),
23802
- clearColorHover: Er(Ft(be.alpha4), {
23802
+ clearColor: Et(be.alpha4),
23803
+ clearColorHover: Er(Et(be.alpha4), {
23803
23804
  lightness: 0.75
23804
23805
  }),
23805
- clearColorPressed: Er(Ft(be.alpha4), {
23806
+ clearColorPressed: Er(Et(be.alpha4), {
23806
23807
  lightness: 0.9
23807
23808
  }),
23808
23809
  scrollbarColor: Cu(be.alphaScrollbar),
@@ -23810,7 +23811,7 @@ const ls = Object.assign(Object.assign({
23810
23811
  scrollbarWidth: "5px",
23811
23812
  scrollbarHeight: "5px",
23812
23813
  scrollbarBorderRadius: "5px",
23813
- progressRailColor: Ft(be.alphaProgressRail),
23814
+ progressRailColor: Et(be.alphaProgressRail),
23814
23815
  railColor: "rgb(219, 219, 223)",
23815
23816
  popoverColor: be.neutralPopover,
23816
23817
  tableColor: be.neutralCard,
@@ -23818,9 +23819,9 @@ const ls = Object.assign(Object.assign({
23818
23819
  modalColor: be.neutralModal,
23819
23820
  bodyColor: be.neutralBody,
23820
23821
  tagColor: "#eee",
23821
- avatarColor: Ft(be.alphaAvatar),
23822
+ avatarColor: Et(be.alphaAvatar),
23822
23823
  invertedColor: "rgb(0, 20, 40)",
23823
- inputColor: Ft(be.alphaInput),
23824
+ inputColor: Et(be.alphaInput),
23824
23825
  codeColor: "rgb(244, 244, 248)",
23825
23826
  tabColor: "rgb(247, 247, 250)",
23826
23827
  actionColor: "rgb(250, 250, 252)",
@@ -26004,7 +26005,7 @@ const P2 = {
26004
26005
  onShow: O,
26005
26006
  onHide: K
26006
26007
  } = e;
26007
- s.value = E, J && It(J, E), L && It(L, E), E && O && It(O, !0), E && K && It(K, !1);
26008
+ s.value = E, J && zt(J, E), L && zt(L, E), E && O && zt(O, !0), E && K && zt(K, !1);
26008
26009
  }
26009
26010
  function m() {
26010
26011
  h && h.syncPosition();
@@ -26537,7 +26538,7 @@ const z2 = Object.assign(Object.assign(Object.assign({}, Nt.props), O2), {
26537
26538
  const {
26538
26539
  onClose: p
26539
26540
  } = e;
26540
- p && It(p, d);
26541
+ p && zt(p, d);
26541
26542
  }
26542
26543
  }
26543
26544
  const c = {
@@ -28063,7 +28064,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28063
28064
  nTriggerFormChange: Ce,
28064
28065
  nTriggerFormInput: Re
28065
28066
  } = J;
28066
- le && It(le, P, G), _e && It(_e, P, G), ve && It(ve, P, G), o.value = P, Ce(), Re();
28067
+ le && zt(le, P, G), _e && zt(_e, P, G), ve && zt(ve, P, G), o.value = P, Ce(), Re();
28067
28068
  }
28068
28069
  function ie(P) {
28069
28070
  const {
@@ -28071,13 +28072,13 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28071
28072
  } = e, {
28072
28073
  nTriggerFormBlur: le
28073
28074
  } = J;
28074
- G && It(G, P), le();
28075
+ G && zt(G, P), le();
28075
28076
  }
28076
28077
  function V() {
28077
28078
  const {
28078
28079
  onClear: P
28079
28080
  } = e;
28080
- P && It(P);
28081
+ P && zt(P);
28081
28082
  }
28082
28083
  function U(P) {
28083
28084
  const {
@@ -28086,19 +28087,19 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28086
28087
  } = e, {
28087
28088
  nTriggerFormFocus: ve
28088
28089
  } = J;
28089
- G && It(G, P), ve(), le && fe();
28090
+ G && zt(G, P), ve(), le && fe();
28090
28091
  }
28091
28092
  function ae(P) {
28092
28093
  const {
28093
28094
  onSearch: G
28094
28095
  } = e;
28095
- G && It(G, P);
28096
+ G && zt(G, P);
28096
28097
  }
28097
28098
  function ye(P) {
28098
28099
  const {
28099
28100
  onScroll: G
28100
28101
  } = e;
28101
- G && It(G, P);
28102
+ G && zt(G, P);
28102
28103
  }
28103
28104
  function he() {
28104
28105
  var P;
@@ -28128,7 +28129,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28128
28129
  onUpdateShow: G,
28129
28130
  "onUpdate:show": le
28130
28131
  } = e;
28131
- G && It(G, P), le && It(le, P), S.value = P;
28132
+ G && zt(G, P), le && zt(le, P), S.value = P;
28132
28133
  }
28133
28134
  function fe() {
28134
28135
  O.value || (ke(!0), S.value = !0, e.filterable && un());
@@ -28544,7 +28545,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28544
28545
  },
28545
28546
  emits: ["update:value"],
28546
28547
  setup(e, { expose: t, emit: i }) {
28547
- const n = e, s = i, r = z(() => Dt(n.value)), o = z(() => r.value ? n.value.map((_) => _.id) : n.value ? n.value.id : null), a = W(
28548
+ const n = e, s = i, r = z(() => Ft(n.value)), o = z(() => r.value ? n.value.map((_) => _.id) : n.value ? n.value.id : null), a = W(
28548
28549
  r.value ? n.optionsListConverter(n.value) : n.value ? n.optionsListConverter([n.value]) : []
28549
28550
  ), l = z(
28550
28551
  () => a.value.map((_) => ({
@@ -28570,7 +28571,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28570
28571
  f = _, d();
28571
28572
  }, g = (_) => {
28572
28573
  var S;
28573
- if (Dt(_)) {
28574
+ if (Ft(_)) {
28574
28575
  const C = _.length > 0 ? _.map((b) => {
28575
28576
  var T;
28576
28577
  return Ut((T = a.value.find((w) => w.value === b)) == null ? void 0 : T.item);
@@ -28695,7 +28696,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28695
28696
  h && (o.value = [
28696
28697
  ...o.value.map((f) => Ut(f)),
28697
28698
  // eslint-disable-next-line vue/max-len,lodash/prefer-lodash-method
28698
- ...(Dt(h) ? h : [h]).filter((f) => !o.value.some((d) => d.id === f.id))
28699
+ ...(Ft(h) ? h : [h]).filter((f) => !o.value.some((d) => d.id === f.id))
28699
28700
  ], Hi(() => {
28700
28701
  s.value = null;
28701
28702
  }), a());
@@ -29669,16 +29670,16 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29669
29670
  },
29670
29671
  emits: ["update:value"],
29671
29672
  setup(e, { expose: t, emit: i }) {
29672
- const n = e, s = i, r = z(() => Dt(n.value)), o = z(
29673
+ const n = e, s = i, r = z(() => Ft(n.value)), o = z(
29673
29674
  () => {
29674
29675
  var d;
29675
- return Dt(n.value) ? n.value.map((p) => p.id) : ((d = n.value) == null ? void 0 : d.id) ?? null;
29676
+ return Ft(n.value) ? n.value.map((p) => p.id) : ((d = n.value) == null ? void 0 : d.id) ?? null;
29676
29677
  }
29677
29678
  ), a = z(() => {
29678
29679
  var g;
29679
29680
  let d = n.showEmptyValue ? [Ef.generateUndefinedManagerInstance(), ...n.managerReferenceList] : n.managerReferenceList, p = n.disabledManagerReferenceList.map((m) => m.id);
29680
29681
  if (n.showActualOnly) {
29681
- const m = Dt(n.value) ? n.value.map((v) => v.id) : [(g = n.value) == null ? void 0 : g.id];
29682
+ const m = Ft(n.value) ? n.value.map((v) => v.id) : [(g = n.value) == null ? void 0 : g.id];
29682
29683
  p = af(
29683
29684
  p,
29684
29685
  n.managerReferenceList.filter((v) => !v.isActive).map((v) => v.id)
@@ -29698,7 +29699,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29698
29699
  }))
29699
29700
  ), c = _i("select-component"), u = (d) => {
29700
29701
  var p;
29701
- if (Dt(d)) {
29702
+ if (Ft(d)) {
29702
29703
  const g = d.length > 0 ? d.map((m) => {
29703
29704
  var v;
29704
29705
  return (v = a.value.find((_) => _.value === m)) == null ? void 0 : v.item;
@@ -30315,7 +30316,7 @@ const pC = Ue({ name: "ion-warning", render: fC }), gC = {}, a5 = /* @__PURE__ *
30315
30316
  }, 8, ["disabled"]);
30316
30317
  };
30317
30318
  }
30318
- }), Ot = class Ot {
30319
+ }), Bt = class Bt {
30319
30320
  /**
30320
30321
  * Инициализирует единственный экземпляр класса {@link UiNotificationProvider}.
30321
30322
  * При завершении работы программы необходимо обязательно вызвать метод {@link UiNotificationProvider.destroy}.
@@ -30324,23 +30325,23 @@ const pC = Ue({ name: "ion-warning", render: fC }), gC = {}, a5 = /* @__PURE__ *
30324
30325
  * @param notificationsService Сервис для взаимодействия с подсистемой UI-уведомлений.
30325
30326
  */
30326
30327
  static init(t, i) {
30327
- Ot.messagesService && Ot.notificationsService || (Ot.messagesService = t, Ot.notificationsService = i);
30328
+ Bt.messagesService && Bt.notificationsService || (Bt.messagesService = t, Bt.notificationsService = i);
30328
30329
  }
30329
30330
  /**
30330
30331
  * Возвращает сервис для взаимодействия с подсистемой UI-сообщений.
30331
30332
  */
30332
30333
  static getMessagesService() {
30333
- if (!Ot.messagesService)
30334
+ if (!Bt.messagesService)
30334
30335
  throw new Error("UI provider is not initialized.");
30335
- return Ot.messagesService;
30336
+ return Bt.messagesService;
30336
30337
  }
30337
30338
  /**
30338
30339
  * Возвращает сервис для взаимодействия с подсистемой UI-уведомлений.
30339
30340
  */
30340
30341
  static getNotificationsService() {
30341
- if (!Ot.notificationsService)
30342
+ if (!Bt.notificationsService)
30342
30343
  throw new Error("UI provider is not initialized.");
30343
- return Ot.notificationsService;
30344
+ return Bt.notificationsService;
30344
30345
  }
30345
30346
  /**
30346
30347
  * Обработчик ошибочных HTTP ответов на запросы для отображения уведомлений и ошибок валидации.
@@ -30353,7 +30354,7 @@ const pC = Ue({ name: "ion-warning", render: fC }), gC = {}, a5 = /* @__PURE__ *
30353
30354
  var n, s;
30354
30355
  if (Au(t.errors)) {
30355
30356
  const r = (s = (n = t.rawError) == null ? void 0 : n.config) == null ? void 0 : s.url, o = r ? ` [ ${r} ]` : "";
30356
- Ot.notificationsService ? Ot.notificationsService.error({
30357
+ Bt.notificationsService ? Bt.notificationsService.error({
30357
30358
  title: "Ошибка выполнения/обработки запроса",
30358
30359
  content: t.message,
30359
30360
  meta: `#${t.status}${o}: ${t.statusText}`,
@@ -30361,7 +30362,7 @@ const pC = Ue({ name: "ion-warning", render: fC }), gC = {}, a5 = /* @__PURE__ *
30361
30362
  }) : console.log("Show notification error response data: UI provider is not initialized.", t);
30362
30363
  } else
30363
30364
  for (const r in t.errors)
30364
- Object.prototype.hasOwnProperty.call(i, r) ? i[r] = new Of(t.errors[r].toString(), "error") : Ot.messagesService ? Ot.messagesService.error(
30365
+ Object.prototype.hasOwnProperty.call(i, r) ? i[r] = new Of(t.errors[r].toString(), "error") : Bt.messagesService ? Bt.messagesService.error(
30365
30366
  // eslint-disable-next-line security/detect-object-injection
30366
30367
  t.errors[r].toString()
30367
30368
  ) : console.log("Show notification error response data: UI provider is not initialized.", t.errors[r]);
@@ -30370,11 +30371,11 @@ const pC = Ue({ name: "ion-warning", render: fC }), gC = {}, a5 = /* @__PURE__ *
30370
30371
  /**
30371
30372
  * Сервис для взаимодействия с подсистемой UI-сообщений.
30372
30373
  */
30373
- k(Ot, "messagesService"), /**
30374
+ k(Bt, "messagesService"), /**
30374
30375
  * Сервис для взаимодействия с подсистемой UI-уведомлений.
30375
30376
  */
30376
- k(Ot, "notificationsService");
30377
- let Mu = Ot;
30377
+ k(Bt, "notificationsService");
30378
+ let Mu = Bt;
30378
30379
  const l5 = z(() => Ht().deliveryTypeReference ?? []), c5 = z(() => Ht().managersList ?? []), u5 = z(() => Ht().opfReference ?? []), d5 = z(() => Ht().partnerGroupsReference ?? []), h5 = z(() => Ht().priceCoefficientsReference ?? []), f5 = z(() => Ht().productFilesTypesReference ?? []), p5 = z(() => Ht().resourceTypesReference), g5 = z(() => Ht().salesDirectionsReference ?? []), m5 = z(() => Ht().warehousesReference ?? []), v5 = z(
30379
30380
  () => Pi.convertReferencesToSelectOptionsList(Ht().channelPrimaryInterestsReference ?? [], !0, !0)
30380
30381
  ), _5 = z(