@snabcentr/vue-ui-lib 4.15.0 → 4.16.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.
@@ -4,7 +4,7 @@
4
4
  "name": "index",
5
5
  "src": "src/index.ts",
6
6
  "isEntry": true,
7
- "integrity": "sha384-Wg8aMeE96JsUx5d9HQKItZIYo/gi2G8+zfl+N5/kckEKSNKJQXsEM0LbjXst/rna"
7
+ "integrity": "sha384-hVt6cXZ4IOJ4oCN/gXD112y86YGxwMAlaMnuYKchuuCOE4q+aeIx5P/B7jPOE1Vs"
8
8
  },
9
9
  "style.css": {
10
10
  "file": "sc-vue-ui-lib.css",
@@ -1,4 +1,4 @@
1
- ## 4.15.0 (2026-07-06)
1
+ ## 4.16.0 (2026-07-20)
2
2
 
3
3
  No changes.
4
4
 
@@ -5,7 +5,7 @@ var pc = (t) => {
5
5
  var gg = (t, e, i) => e in t ? fg(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
6
6
  var $ = (t, e, i) => gg(t, typeof e != "symbol" ? e + "" : e, i), vc = (t, e, i) => e.has(t) || pc("Cannot " + i);
7
7
  var ri = (t, e, i) => (vc(t, e, "read from private field"), i ? i.call(t) : e.get(t)), wa = (t, e, i) => e.has(t) ? pc("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), yc = (t, e, i, n) => (vc(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i);
8
- import { FieldValidationResultData as mg, useBaseConfigStateStore as di, OrderItemBase as gt, ClientProduct as Yi, Identity as pg, ConfiguratorsEnum as Zt, ClientCategory as vg, Reference as yg, useReferencesStore as Nt, PriceCoefficientEnum as bg, CalculationTypeEnum as Hr, PriceCoefficient as _g, UnitsHelper as Wt, DateTimeProvider as wg, HttpRequester as Ki, ProductCategoryDataProvider as xg, ProductDataProvider as kg, UserTypeEnum as Wr, OrdersDataProvider as yo, Order as Cg, TableDataPagination as Sg, Curator as bc, CuratedDirection as $g, ManagerDataFactory as _c, Manager as xa, DataSuggestionProvider as Ml, ReferenceDataProvider as Tg, ClientDataProvider as Pg } from "@snabcentr/common-lib";
8
+ import { FieldValidationResultData as mg, useBaseConfigStateStore as di, OrderItemBase as gt, ClientProduct as Yi, Identity as pg, ConfiguratorsEnum as Zt, ClientCategory as vg, Reference as yg, useReferencesStore as Ot, PriceCoefficientEnum as bg, CalculationTypeEnum as Hr, PriceCoefficient as _g, UnitsHelper as Wt, DateTimeProvider as wg, HttpRequester as Ki, ProductCategoryDataProvider as xg, ProductDataProvider as kg, UserTypeEnum as Wr, OrdersDataProvider as yo, Order as Cg, TableDataPagination as Sg, Curator as bc, CuratedDirection as $g, ManagerDataFactory as _c, Manager as xa, DataSuggestionProvider as Ml, ReferenceDataProvider as Tg, ClientDataProvider as Pg } from "@snabcentr/common-lib";
9
9
  import { isEmpty as Al, isNil as ut, noop as St, isString as dn, groupBy as Rg, get as bo, some as Oi, isFunction as Ft, find as wc, forOwn as Ad, forEach as ps, sortBy as No, cloneDeep as ti, reduce as Ed, every as xc, isArray as dt, keys as Fg, debounce as Zi, sum as kc, isUndefined as tr, unset as Bg, isNull as Id, isObject as Mg, merge as Vr, upperFirst as Ag, map as Eg, constant as Ho, union as Ig } from "lodash-es";
10
10
  import { Comment as Wo, Text as Od, Fragment as be, markRaw as He, createElementBlock as M, openBlock as b, createElementVNode as C, defineComponent as oe, inject as et, computed as E, ref as Y, readonly as _o, normalizeClass as We, createVNode as D, createCommentVNode as L, renderSlot as Re, unref as B, createTextVNode as ie, toDisplayString as U, Transition as ks, withCtx as O, createBlock as te, useTemplateRef as qe, onMounted as lt, onBeforeUnmount as Fi, onUnmounted as Mr, normalizeStyle as rr, renderList as Pt, h as j, watch as xe, withDirectives as bi, nextTick as kt, onBeforeMount as Ar, toRaw as pi, withModifiers as lo, provide as Pi, createSlots as Mn, getCurrentInstance as zd, Teleport as Og, toRef as st, mergeProps as El, onActivated as Ld, onDeactivated as Dd, isVNode as zg, shallowRef as Lg, watchEffect as An, vShow as Il, cloneVNode as Dg, mergeModels as tl, useModel as Nd, mergeDefaults as Ol } from "vue";
11
11
  import { isFuture as Ng, format as Cs, endOfDay as Hg, startOfDay as Wg, isTomorrow as Vg } from "date-fns";
@@ -197,7 +197,7 @@ const At = (t, e = !1) => {
197
197
  }, il = (t, e = ".", i = !1) => {
198
198
  const { key: n } = t, s = t.target;
199
199
  ["Backspace", "Delete", "Tab", "Escape", "Enter", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(n) || (t.ctrlKey || t.metaKey) && ["a", "c", "v", "x", "z", "ф", "с", "м", "ч", "я"].includes(n.toLowerCase()) || i && n === "-" && !s.value.includes("-") && ((s.selectionStart ?? 0) === 0 || s.value.length === 0) || (n === e || n === (e === "." ? "," : ".")) && !s.value.includes(e) && !s.value.includes(e === "." ? "," : ".") || /^\d$/.test(n) || t.preventDefault();
200
- }, Dt = (t) => t ? Number.parseFloat(t.replace(",", ".")) : null, Tt = (t, e) => {
200
+ }, Nt = (t) => t ? Number.parseFloat(t.replace(",", ".")) : null, Tt = (t, e) => {
201
201
  t[e] = {};
202
202
  }, at = (t) => {
203
203
  const e = t.target;
@@ -1788,19 +1788,19 @@ const Cp = {
1788
1788
  Re(r.$slots, "default")
1789
1789
  ], 512));
1790
1790
  }
1791
- }), Ot = class Ot {
1791
+ }), zt = class zt {
1792
1792
  /**
1793
1793
  * Инициализирует единственный экземпляр класса {@link WindowResolutionProvider}.
1794
1794
  * При завершении работы программы необходимо обязательно вызвать метод {@link WindowResolutionProvider.destroy}.
1795
1795
  */
1796
1796
  static init() {
1797
- Ot.isInitialized || (Ot.isInitialized = !0, Ot.windowResizeHandler(), window.addEventListener("resize", Ot.windowResizeHandler));
1797
+ zt.isInitialized || (zt.isInitialized = !0, zt.windowResizeHandler(), window.addEventListener("resize", zt.windowResizeHandler));
1798
1798
  }
1799
1799
  /**
1800
1800
  * Деструктор класса.
1801
1801
  */
1802
1802
  static destroy() {
1803
- window.removeEventListener("resize", Ot.windowResizeHandler), Ot.isInitialized = !1;
1803
+ window.removeEventListener("resize", zt.windowResizeHandler), zt.isInitialized = !1;
1804
1804
  }
1805
1805
  /**
1806
1806
  * Возвращает предполагаемый тип устройства исходя из текущего разрешения экрана.
@@ -1818,7 +1818,7 @@ const Cp = {
1818
1818
  */
1819
1819
  static initRefDependingOnDeviceResolution(e, i, n) {
1820
1820
  const s = Y(n);
1821
- return Ot.setRefValueDependingOnDeviceResolution(s, e, i, n), Ot.refsDependingOnDeviceResolution.push({
1821
+ return zt.setRefValueDependingOnDeviceResolution(s, e, i, n), zt.refsDependingOnDeviceResolution.push({
1822
1822
  r: s,
1823
1823
  phoneValue: e,
1824
1824
  tabletValue: i,
@@ -1829,19 +1829,19 @@ const Cp = {
1829
1829
  * Возвращает признак, что текущее разрешение экрана соответствует мобильному телефону.
1830
1830
  */
1831
1831
  static isPhoneDevice() {
1832
- return Ot.getDeviceTypeByResolution() === vt.phone;
1832
+ return zt.getDeviceTypeByResolution() === vt.phone;
1833
1833
  }
1834
1834
  /**
1835
1835
  * Возвращает признак, что текущее разрешение экрана соответствует планшету.
1836
1836
  */
1837
1837
  static isTabletDevice() {
1838
- return Ot.getDeviceTypeByResolution() === vt.tablet;
1838
+ return zt.getDeviceTypeByResolution() === vt.tablet;
1839
1839
  }
1840
1840
  /**
1841
1841
  * Возвращает признак, что текущее разрешение экрана соответствует компьютеру.
1842
1842
  */
1843
1843
  static isLaptopDevice() {
1844
- return Ot.getDeviceTypeByResolution() === vt.laptop;
1844
+ return zt.getDeviceTypeByResolution() === vt.laptop;
1845
1845
  }
1846
1846
  /**
1847
1847
  * Устанавливает значение {@link Ref}-ссылки в зависимости от текущего разрешения экрана.
@@ -1852,7 +1852,7 @@ const Cp = {
1852
1852
  * @param defaultValue Значение, возвращаемое если текущее разрешение не соответствует ни одному значению.
1853
1853
  */
1854
1854
  static setRefValueDependingOnDeviceResolution(e, i, n, s) {
1855
- switch (Ot.getDeviceTypeByResolution()) {
1855
+ switch (zt.getDeviceTypeByResolution()) {
1856
1856
  case vt.phone:
1857
1857
  e.value = i;
1858
1858
  break;
@@ -1868,19 +1868,19 @@ const Cp = {
1868
1868
  * Обработчик события изменения размера окна.
1869
1869
  */
1870
1870
  static windowResizeHandler() {
1871
- ps(Ot.refsDependingOnDeviceResolution, (e) => {
1872
- Ot.setRefValueDependingOnDeviceResolution(e.r, e.phoneValue, e.tabletValue, e.defaultValue);
1871
+ ps(zt.refsDependingOnDeviceResolution, (e) => {
1872
+ zt.setRefValueDependingOnDeviceResolution(e.r, e.phoneValue, e.tabletValue, e.defaultValue);
1873
1873
  });
1874
1874
  }
1875
1875
  };
1876
1876
  /**
1877
1877
  * Признак, что сервис инициализирован.
1878
1878
  */
1879
- $(Ot, "isInitialized", !1), /**
1879
+ $(zt, "isInitialized", !1), /**
1880
1880
  * Список ссылок для отслеживания изменения разрешения экрана.
1881
1881
  */
1882
- $(Ot, "refsDependingOnDeviceResolution", []);
1883
- let ii = Ot;
1882
+ $(zt, "refsDependingOnDeviceResolution", []);
1883
+ let ii = zt;
1884
1884
  const Tp = ["href"], Pp = ["src", "alt"], Rp = {}, Fp = /* @__PURE__ */ oe({
1885
1885
  ...Rp,
1886
1886
  __name: "image-gallery",
@@ -2565,7 +2565,7 @@ const Jd = He({ name: "ion-plus", render: lv }), cv = {
2565
2565
  (_) => a.value.configuratorParams.linesWidths[F] = _,
2566
2566
  y[2] || (y[2] = (_) => d())
2567
2567
  ],
2568
- parse: B(Dt),
2568
+ parse: B(Nt),
2569
2569
  "show-button": !1,
2570
2570
  class: "w-full",
2571
2571
  onKeydown: y[1] || (y[1] = (_) => B(At)(_)),
@@ -2586,7 +2586,7 @@ const Jd = He({ name: "ion-plus", render: lv }), cv = {
2586
2586
  (_) => a.value.configuratorParams.linesAngles[F] = _,
2587
2587
  y[4] || (y[4] = (_) => d())
2588
2588
  ],
2589
- parse: B(Dt),
2589
+ parse: B(Nt),
2590
2590
  "show-button": !1,
2591
2591
  class: "w-full",
2592
2592
  onKeydown: y[3] || (y[3] = (_) => B(At)(_, !0)),
@@ -2702,7 +2702,7 @@ const Jd = He({ name: "ion-plus", render: lv }), cv = {
2702
2702
  y[8] || (y[8] = (x) => a.value.configuratorParams.length = x),
2703
2703
  y[11] || (y[11] = (x) => d())
2704
2704
  ],
2705
- parse: B(Dt),
2705
+ parse: B(Nt),
2706
2706
  "show-button": !1,
2707
2707
  placeholder: "Введите метраж",
2708
2708
  class: "w-full",
@@ -8472,7 +8472,7 @@ S(oc, "Properties", [
8472
8472
  "curved",
8473
8473
  "automatic"
8474
8474
  ]);
8475
- var Lt = oc, eu = {
8475
+ var Dt = oc, eu = {
8476
8476
  visible: {
8477
8477
  enumerable: !0,
8478
8478
  get: function() {
@@ -8646,7 +8646,7 @@ var Lt = oc, eu = {
8646
8646
  return this._children;
8647
8647
  },
8648
8648
  set: function(t) {
8649
- const e = Lt.InsertChildren.bind(this), i = Lt.RemoveChildren.bind(this), n = Lt.OrderChildren.bind(this);
8649
+ const e = Dt.InsertChildren.bind(this), i = Dt.RemoveChildren.bind(this), n = Dt.OrderChildren.bind(this);
8650
8650
  this._children && (this._children.unbind(), this._children.length > 0 && i(this._children)), this._children = new Rh(t), this._children.bind(le.Types.insert, e), this._children.bind(le.Types.remove, i), this._children.bind(le.Types.order, n), t.length > 0 && e(t);
8651
8651
  }
8652
8652
  },
@@ -8836,35 +8836,35 @@ function Mi(t, e, i) {
8836
8836
  f = Ss(a), e.translation.set(f.translateX, f.translateY), e.rotation = Math.PI * (f.rotation / 180), e.scale = new fe(f.scaleX, f.scaleY), g = parseFloat((n.x + "").replace("px")), d = parseFloat((n.y + "").replace("px")), g && (e.translation.x = g), d && (e.translation.y = d);
8837
8837
  break;
8838
8838
  case "visible":
8839
- if (e instanceof Lt) {
8839
+ if (e instanceof Dt) {
8840
8840
  e._visible = c;
8841
8841
  break;
8842
8842
  }
8843
8843
  e.visible = c;
8844
8844
  break;
8845
8845
  case "stroke-linecap":
8846
- if (e instanceof Lt) {
8846
+ if (e instanceof Dt) {
8847
8847
  e._cap = c;
8848
8848
  break;
8849
8849
  }
8850
8850
  e.cap = c;
8851
8851
  break;
8852
8852
  case "stroke-linejoin":
8853
- if (e instanceof Lt) {
8853
+ if (e instanceof Dt) {
8854
8854
  e._join = c;
8855
8855
  break;
8856
8856
  }
8857
8857
  e.join = c;
8858
8858
  break;
8859
8859
  case "stroke-miterlimit":
8860
- if (e instanceof Lt) {
8860
+ if (e instanceof Dt) {
8861
8861
  e._miter = c;
8862
8862
  break;
8863
8863
  }
8864
8864
  e.miter = c;
8865
8865
  break;
8866
8866
  case "stroke-width":
8867
- if (e instanceof Lt) {
8867
+ if (e instanceof Dt) {
8868
8868
  e._linewidth = parseFloat(c);
8869
8869
  break;
8870
8870
  }
@@ -8873,7 +8873,7 @@ function Mi(t, e, i) {
8873
8873
  case "opacity":
8874
8874
  case "stroke-opacity":
8875
8875
  case "fill-opacity":
8876
- if (e instanceof Lt) {
8876
+ if (e instanceof Dt) {
8877
8877
  e._opacity = parseFloat(c);
8878
8878
  break;
8879
8879
  }
@@ -8890,7 +8890,7 @@ function Mi(t, e, i) {
8890
8890
  break;
8891
8891
  case "fill":
8892
8892
  case "stroke":
8893
- u = (e instanceof Lt ? "_" : "") + l, cn.cssBackgroundImage.test(c) ? (m = c.replace(cn.cssBackgroundImage, "$1"), ft.defs.current && ft.defs.current.contains(m) ? (v = ft.defs.current.get(m), v.object || (y = Cr(v.nodeName), v.object = ft[y].call(this, v, {})), v = v.object) : (p = y0(this), v = p.getById(m)), e[u] = v) : e[u] = c;
8893
+ u = (e instanceof Dt ? "_" : "") + l, cn.cssBackgroundImage.test(c) ? (m = c.replace(cn.cssBackgroundImage, "$1"), ft.defs.current && ft.defs.current.contains(m) ? (v = ft.defs.current.get(m), v.object || (y = Cr(v.nodeName), v.object = ft[y].call(this, v, {})), v = v.object) : (p = y0(this), v = p.getById(m)), e[u] = v) : e[u] = c;
8894
8894
  break;
8895
8895
  case "id":
8896
8896
  e.id = c;
@@ -8973,7 +8973,7 @@ var ft = {
8973
8973
  return ft[a].call(this, o, e);
8974
8974
  },
8975
8975
  g: function(t, e) {
8976
- const i = new Lt();
8976
+ const i = new Dt();
8977
8977
  Mi.call(this, t, i, e), this.add(i);
8978
8978
  const n = g0.call(this, t);
8979
8979
  for (let s = 0, r = t.childNodes.length; s < r; s++) {
@@ -9693,7 +9693,7 @@ var Lh = ac, ru = {
9693
9693
  constructor(t) {
9694
9694
  super();
9695
9695
  const e = t.smoothing !== !1;
9696
- this.domElement = t.domElement || document.createElement("canvas"), this.ctx = this.domElement.getContext("2d"), this.overdraw = t.overdraw || !1, typeof this.ctx.imageSmoothingEnabled < "u" && (this.ctx.imageSmoothingEnabled = e), this.scene = new Lt(), this.scene.parent = this;
9696
+ this.domElement = t.domElement || document.createElement("canvas"), this.ctx = this.domElement.getContext("2d"), this.overdraw = t.overdraw || !1, typeof this.ctx.imageSmoothingEnabled < "u" && (this.ctx.imageSmoothingEnabled = e), this.scene = new Dt(), this.scene.parent = this;
9697
9697
  }
9698
9698
  /**
9699
9699
  * @name Two.CanvasRenderer#setSize
@@ -10047,7 +10047,7 @@ var _e = {
10047
10047
  }
10048
10048
  }, Dh = class extends le {
10049
10049
  constructor(t) {
10050
- super(), this.domElement = t.domElement || _e.createElement("svg"), this.scene = new Lt(), this.scene.parent = this, this.defs = _e.createElement("defs"), this.defs._flagUpdate = !1, this.domElement.appendChild(this.defs), this.domElement.defs = this.defs, this.domElement.style.overflow = "hidden";
10050
+ super(), this.domElement = t.domElement || _e.createElement("svg"), this.scene = new Dt(), this.scene.parent = this, this.defs = _e.createElement("defs"), this.defs._flagUpdate = !1, this.domElement.appendChild(this.defs), this.domElement.defs = this.defs, this.domElement.style.overflow = "hidden";
10051
10051
  }
10052
10052
  /**
10053
10053
  * @name Two.SVGRenderer#setSize
@@ -10629,7 +10629,7 @@ var Nh = class extends le {
10629
10629
  constructor(t) {
10630
10630
  super();
10631
10631
  let e, i, n, s;
10632
- if (this.domElement = t.domElement || document.createElement("canvas"), typeof t.offscreenElement < "u" && (Ae.canvas = t.offscreenElement, Ae.ctx = Ae.canvas.getContext("2d")), this.scene = new Lt(), this.scene.parent = this, this._renderer = {
10632
+ if (this.domElement = t.domElement || document.createElement("canvas"), typeof t.offscreenElement < "u" && (Ae.canvas = t.offscreenElement, Ae.ctx = Ae.canvas.getContext("2d")), this.scene = new Dt(), this.scene.parent = this, this._renderer = {
10633
10633
  type: "renderer",
10634
10634
  matrix: new un(x0),
10635
10635
  scale: 1,
@@ -11276,7 +11276,7 @@ var C0 = he.extend(
11276
11276
  */
11277
11277
  makeGroup(e) {
11278
11278
  e instanceof Array || (e = Array.prototype.slice.call(arguments));
11279
- const i = new Lt();
11279
+ const i = new Dt();
11280
11280
  return this.scene.add(i), i.add(e), i;
11281
11281
  }
11282
11282
  /**
@@ -11293,7 +11293,7 @@ var C0 = he.extend(
11293
11293
  if (n = typeof n < "u" ? n : !0, !(s in ft))
11294
11294
  return null;
11295
11295
  const r = ft[s].call(this, e);
11296
- return n ? this.add(i && r instanceof Lt ? r.children : r) : r.parent && r.remove(), r;
11296
+ return n ? this.add(i && r instanceof Dt ? r.children : r) : r.parent && r.remove(), r;
11297
11297
  }
11298
11298
  /**
11299
11299
  * @name Two#load
@@ -11304,7 +11304,7 @@ var C0 = he.extend(
11304
11304
  * @description Load an SVG file or SVG text and interpret it into Two.js legible objects.
11305
11305
  */
11306
11306
  load(e, i) {
11307
- const n = new Lt();
11307
+ const n = new Dt();
11308
11308
  let s, r, o;
11309
11309
  const a = (function(l) {
11310
11310
  for ($i.temp.innerHTML = l, r = 0; r < $i.temp.children.length; r++)
@@ -11329,7 +11329,7 @@ S(ze, "uniqueId", hi.uniqueId);
11329
11329
  S(ze, "Anchor", De);
11330
11330
  S(ze, "Collection", Gn);
11331
11331
  S(ze, "Events", le);
11332
- S(ze, "Group", Lt);
11332
+ S(ze, "Group", Dt);
11333
11333
  S(ze, "Matrix", nr);
11334
11334
  S(ze, "Path", Xe);
11335
11335
  S(ze, "Registry", Xo);
@@ -11391,7 +11391,7 @@ Sr.init = function() {
11391
11391
  let fn;
11392
11392
  typeof window < "u" ? fn = window : typeof global < "u" ? fn = global : typeof self < "u" && (fn = self);
11393
11393
  let Wh;
11394
- const vs = Math.PI * 2, zt = Math.PI * 0.5;
11394
+ const vs = Math.PI * 2, Lt = Math.PI * 0.5;
11395
11395
  function P0(t, e, i, n, s, r) {
11396
11396
  let o;
11397
11397
  return arguments.length <= 1 ? (o = t.a, e = t.b, i = t.c, n = t.d, s = t.e, r = t.f) : o = t, {
@@ -12482,7 +12482,7 @@ function O0(t, e) {
12482
12482
  function z0(t, e, i) {
12483
12483
  const n = Be.angleBetween(t, e), s = Be.angleBetween(i, e);
12484
12484
  let r = Be.distanceBetween(t, e), o = Be.distanceBetween(i, e), a = (n + s) / 2;
12485
- return r < 1e-3 || o < 1e-3 ? (typeof e.relative == "boolean" && !e.relative && (e.controls.left.copy(e), e.controls.right.copy(e)), e) : (r *= 0.33, o *= 0.33, s < n ? a += zt : a -= zt, e.controls.left.x = Math.cos(a) * r, e.controls.left.y = Math.sin(a) * r, a -= Math.PI, e.controls.right.x = Math.cos(a) * o, e.controls.right.y = Math.sin(a) * o, typeof e.relative == "boolean" && !e.relative && (e.controls.left.x += e.x, e.controls.left.y += e.y, e.controls.right.x += e.x, e.controls.right.y += e.y), e);
12485
+ return r < 1e-3 || o < 1e-3 ? (typeof e.relative == "boolean" && !e.relative && (e.controls.left.copy(e), e.controls.right.copy(e)), e) : (r *= 0.33, o *= 0.33, s < n ? a += Lt : a -= Lt, e.controls.left.x = Math.cos(a) * r, e.controls.left.y = Math.sin(a) * r, a -= Math.PI, e.controls.right.x = Math.cos(a) * o, e.controls.right.y = Math.sin(a) * o, typeof e.relative == "boolean" && !e.relative && (e.controls.left.x += e.x, e.controls.left.y += e.y, e.controls.right.x += e.x, e.controls.right.y += e.y), e);
12486
12486
  }
12487
12487
  var ms;
12488
12488
  let Ir = (ms = class extends de {
@@ -15569,11 +15569,11 @@ const xn = class xn extends Je {
15569
15569
  default:
15570
15570
  u = Te.curve;
15571
15571
  }
15572
- m.command = u, m.x = y, m.y = k, m.controls.left.clear(), m.controls.right.clear(), m.command === Te.curve && (w = r * v / Math.PI, m.controls.left.x = w * Math.cos(p - zt), m.controls.left.y = w * Math.sin(p - zt), m.controls.right.x = w * Math.cos(p + zt), m.controls.right.y = w * Math.sin(p + zt), f === 1 && m.controls.left.multiplyScalar(2), f === g && m.controls.right.multiplyScalar(2)), h++;
15572
+ m.command = u, m.x = y, m.y = k, m.controls.left.clear(), m.controls.right.clear(), m.command === Te.curve && (w = r * v / Math.PI, m.controls.left.x = w * Math.cos(p - Lt), m.controls.left.y = w * Math.sin(p - Lt), m.controls.right.x = w * Math.cos(p + Lt), m.controls.right.y = w * Math.sin(p + Lt), f === 1 && m.controls.left.multiplyScalar(2), f === g && m.controls.right.multiplyScalar(2)), h++;
15573
15573
  }
15574
15574
  if (a) {
15575
15575
  for (o ? (l[h].command = Te.close, h++) : (c--, g = c - 1), f = 0; f < c; f++)
15576
- d = f / g, m = l[h], p = (1 - d) * (n - i) + i, v = (n - i) / c, y = s * Math.cos(p), k = s * Math.sin(p), u = Te.curve, f <= 0 && (u = o ? Te.move : Te.line), m.command = u, m.x = y, m.y = k, m.controls.left.clear(), m.controls.right.clear(), m.command === Te.curve && (w = s * v / Math.PI, m.controls.left.x = w * Math.cos(p + zt), m.controls.left.y = w * Math.sin(p + zt), m.controls.right.x = w * Math.cos(p - zt), m.controls.right.y = w * Math.sin(p - zt), f === 1 && m.controls.left.multiplyScalar(2), f === g && m.controls.right.multiplyScalar(2)), h++;
15576
+ d = f / g, m = l[h], p = (1 - d) * (n - i) + i, v = (n - i) / c, y = s * Math.cos(p), k = s * Math.sin(p), u = Te.curve, f <= 0 && (u = o ? Te.move : Te.line), m.command = u, m.x = y, m.y = k, m.controls.left.clear(), m.controls.right.clear(), m.command === Te.curve && (w = s * v / Math.PI, m.controls.left.x = w * Math.cos(p + Lt), m.controls.left.y = w * Math.sin(p + Lt), m.controls.right.x = w * Math.cos(p - Lt), m.controls.right.y = w * Math.sin(p - Lt), f === 1 && m.controls.left.multiplyScalar(2), f === g && m.controls.right.multiplyScalar(2)), h++;
15577
15577
  l[h].copy(l[0]), l[h].command = Te.line;
15578
15578
  } else o || (l[h].command = Te.line, l[h].x = 0, l[h].y = 0, h++, l[h].copy(l[0]), l[h].command = Te.line);
15579
15579
  }
@@ -15726,7 +15726,7 @@ const $u = {
15726
15726
  !this._closed && i > 2 && (i -= 1);
15727
15727
  const n = 4 / 3 * Math.tan(Math.PI / (i * 2)), s = this._radius, r = s * n;
15728
15728
  for (let o = 0; o < this.vertices.length; o++) {
15729
- const l = o / i * vs, c = s * Aa(l), u = s * Ea(l), h = r * Aa(l - zt), f = r * Ea(l - zt), g = r * Aa(l + zt), d = r * Ea(l + zt), m = this.vertices[o];
15729
+ const l = o / i * vs, c = s * Aa(l), u = s * Ea(l), h = r * Aa(l - Lt), f = r * Ea(l - Lt), g = r * Aa(l + Lt), d = r * Ea(l + Lt), m = this.vertices[o];
15730
15730
  m.command = o === 0 ? Te.move : Te.curve, m.set(c, u), m.controls.left.set(h, f), m.controls.right.set(g, d);
15731
15731
  }
15732
15732
  }
@@ -15865,7 +15865,7 @@ const Tu = {
15865
15865
  !this._closed && i > 2 && (i -= 1);
15866
15866
  const n = 4 / 3 * Math.tan(Math.PI / (this.vertices.length * 2)), s = this._width / 2, r = this._height / 2;
15867
15867
  for (let o = 0; o < this.vertices.length; o++) {
15868
- const l = o / i * vs, c = s * Ia(l), u = r * Oa(l), h = s * n * Ia(l - zt), f = r * n * Oa(l - zt), g = s * n * Ia(l + zt), d = r * n * Oa(l + zt), m = this.vertices[o];
15868
+ const l = o / i * vs, c = s * Ia(l), u = r * Oa(l), h = s * n * Ia(l - Lt), f = r * n * Oa(l - Lt), g = s * n * Ia(l + Lt), d = r * n * Oa(l + Lt), m = this.vertices[o];
15869
15869
  m.command = o === 0 ? Te.move : Te.curve, m.set(c, u), m.controls.left.set(h, f), m.controls.right.set(g, d);
15870
15870
  }
15871
15871
  }
@@ -19723,7 +19723,7 @@ const Sy = { class: "flex flex-col gap-3" }, $y = { class: "grid gap-5 md:grid-c
19723
19723
  _[6] || (_[6] = (A) => u.value.configuratorParams.width = A),
19724
19724
  _[9] || (_[9] = (A) => R("width", A))
19725
19725
  ],
19726
- parse: B(Dt),
19726
+ parse: B(Nt),
19727
19727
  "show-button": !1,
19728
19728
  placeholder: "Введите высоту светового проёма",
19729
19729
  class: "w-full",
@@ -19767,7 +19767,7 @@ const Sy = { class: "flex flex-col gap-3" }, $y = { class: "grid gap-5 md:grid-c
19767
19767
  _[11] || (_[11] = (A) => u.value.configuratorParams.height = A),
19768
19768
  _[14] || (_[14] = (A) => R("height", A))
19769
19769
  ],
19770
- parse: B(Dt),
19770
+ parse: B(Nt),
19771
19771
  "show-button": !1,
19772
19772
  placeholder: "Введите высоту светового проёма",
19773
19773
  class: "w-full",
@@ -20186,7 +20186,7 @@ const Sy = { class: "flex flex-col gap-3" }, $y = { class: "grid gap-5 md:grid-c
20186
20186
  value: a.value ?? null,
20187
20187
  class: "w-full",
20188
20188
  "show-button": !1,
20189
- parse: B(Dt),
20189
+ parse: B(Nt),
20190
20190
  placeholder: "Введите ширину",
20191
20191
  onKeydown: h,
20192
20192
  onInput: d[0] || (d[0] = (v) => B(Tt)(t.validation, `linesWidths.${t.index}`)),
@@ -20387,7 +20387,7 @@ const Sy = { class: "flex flex-col gap-3" }, $y = { class: "grid gap-5 md:grid-c
20387
20387
  w[3] || (w[3] = (x) => a.value[0].length = x),
20388
20388
  w[6] || (w[6] = (x) => v("length", x))
20389
20389
  ],
20390
- parse: B(Dt),
20390
+ parse: B(Nt),
20391
20391
  "show-button": !1,
20392
20392
  placeholder: "Введите метраж",
20393
20393
  class: "w-full",
@@ -20706,7 +20706,7 @@ const Sy = { class: "flex flex-col gap-3" }, $y = { class: "grid gap-5 md:grid-c
20706
20706
  u
20707
20707
  ],
20708
20708
  class: "w-full",
20709
- parse: B(Dt),
20709
+ parse: B(Nt),
20710
20710
  "show-button": !1,
20711
20711
  placeholder: "Введите ширину",
20712
20712
  onKeydown: m[1] || (m[1] = (v) => B(At)(v)),
@@ -20728,7 +20728,7 @@ const Sy = { class: "flex flex-col gap-3" }, $y = { class: "grid gap-5 md:grid-c
20728
20728
  u
20729
20729
  ],
20730
20730
  placeholder: "Введите длину",
20731
- parse: B(Dt),
20731
+ parse: B(Nt),
20732
20732
  "show-button": !1,
20733
20733
  class: "w-full",
20734
20734
  onKeydown: m[4] || (m[4] = (v) => B(At)(v)),
@@ -21186,7 +21186,7 @@ const Zh = He({ name: "ion-add", render: Pb }), Rb = {
21186
21186
  D(B(_t), {
21187
21187
  value: o.value.configuratorParams.items[Q].width,
21188
21188
  "onUpdate:value": [(J) => o.value.configuratorParams.items[Q].width = J, (J) => I(Q)],
21189
- parse: B(Dt),
21189
+ parse: B(Nt),
21190
21190
  "show-button": !1,
21191
21191
  disabled: !u.value,
21192
21192
  placeholder: "Ширина",
@@ -21206,7 +21206,7 @@ const Zh = He({ name: "ion-add", render: Pb }), Rb = {
21206
21206
  D(B(_t), {
21207
21207
  value: o.value.configuratorParams.items[Q].length,
21208
21208
  "onUpdate:value": [(J) => o.value.configuratorParams.items[Q].length = J, (J) => I(Q)],
21209
- parse: B(Dt),
21209
+ parse: B(Nt),
21210
21210
  "show-button": !1,
21211
21211
  disabled: !u.value,
21212
21212
  placeholder: "Длина",
@@ -21226,7 +21226,7 @@ const Zh = He({ name: "ion-add", render: Pb }), Rb = {
21226
21226
  D(B(_t), {
21227
21227
  value: o.value.configuratorParams.items[Q].count,
21228
21228
  "onUpdate:value": [(J) => o.value.configuratorParams.items[Q].count = J, (J) => I(Q)],
21229
- parse: B(Dt),
21229
+ parse: B(Nt),
21230
21230
  "show-button": !1,
21231
21231
  disabled: !u.value,
21232
21232
  placeholder: "Количество",
@@ -21725,7 +21725,7 @@ const Qb = He({ name: "ion-checkmark", render: Zb }), Jb = {
21725
21725
  ref: "widthInputs",
21726
21726
  value: c.value.items[ye].configuratorParams.width,
21727
21727
  "onUpdate:value": [(Ve) => c.value.items[ye].configuratorParams.width = Ve, (Ve) => K(ye)],
21728
- parse: B(Dt),
21728
+ parse: B(Nt),
21729
21729
  "show-button": !1,
21730
21730
  disabled: !f.value || _(ye) || T(ye),
21731
21731
  placeholder: "Ширина",
@@ -21746,7 +21746,7 @@ const Qb = He({ name: "ion-checkmark", render: Zb }), Jb = {
21746
21746
  D(B(_t), {
21747
21747
  value: c.value.items[ye].configuratorParams.length,
21748
21748
  "onUpdate:value": [(Ve) => c.value.items[ye].configuratorParams.length = Ve, (Ve) => K(ye)],
21749
- parse: B(Dt),
21749
+ parse: B(Nt),
21750
21750
  "show-button": !1,
21751
21751
  disabled: !f.value || _(ye) || T(ye),
21752
21752
  placeholder: "Длина",
@@ -21769,7 +21769,7 @@ const Qb = He({ name: "ion-checkmark", render: Zb }), Jb = {
21769
21769
  D(B(_t), {
21770
21770
  value: c.value.items[ye].quantity,
21771
21771
  "onUpdate:value": [(Ve) => c.value.items[ye].quantity = Ve, (Ve) => K(ye)],
21772
- parse: B(Dt),
21772
+ parse: B(Nt),
21773
21773
  "show-button": !1,
21774
21774
  disabled: !f.value || _(ye) || T(ye),
21775
21775
  placeholder: "Кол-во",
@@ -23027,7 +23027,7 @@ const L_ = {
23027
23027
  }, c = E(() => {
23028
23028
  var x;
23029
23029
  const P = [
23030
- ...((x = Nt().priceCoefficientsReference) == null ? void 0 : x.map((F) => structuredClone(pi(F)))) ?? [],
23030
+ ...((x = Ot().priceCoefficientsReference) == null ? void 0 : x.map((F) => structuredClone(pi(F)))) ?? [],
23031
23031
  s()
23032
23032
  ];
23033
23033
  return o.value && P.forEach((F) => {
@@ -23473,7 +23473,7 @@ const L_ = {
23473
23473
  T[0] || (T[0] = (se) => h.value.length = se),
23474
23474
  k
23475
23475
  ],
23476
- parse: B(Dt),
23476
+ parse: B(Nt),
23477
23477
  step: B(Wt).getProductLengthMultiplicity(o.value),
23478
23478
  "show-button": !1,
23479
23479
  placeholder: "Введите метраж",
@@ -23506,7 +23506,7 @@ const L_ = {
23506
23506
  T[3] || (T[3] = (se) => h.value.quantity = se),
23507
23507
  w
23508
23508
  ],
23509
- parse: B(Dt),
23509
+ parse: B(Nt),
23510
23510
  step: B(Wt).getProductMultiplicity(o.value),
23511
23511
  "show-button": B(Wt).getProductMultiplicity(o.value) > 1,
23512
23512
  "button-placement": "both",
@@ -34905,7 +34905,7 @@ const xS = Object.assign(Object.assign({}, ni.props), {
34905
34905
  t.allowEdit ? (b(), te(d, {
34906
34906
  key: 0,
34907
34907
  value: l.value.quantity,
34908
- parse: B(Dt),
34908
+ parse: B(Nt),
34909
34909
  min: o.value,
34910
34910
  step: o.value,
34911
34911
  "show-button": a.value,
@@ -34999,7 +34999,7 @@ const p5 = He({ name: "tabler-truck-loading", render: m5 }), v5 = { class: "flex
34999
34999
  setup(t) {
35000
35000
  const e = E(() => {
35001
35001
  var r;
35002
- return (r = Nt().deliveryTypeReference) == null ? void 0 : r.find((o) => o.id === s.delivery.type);
35002
+ return (r = Ot().deliveryTypeReference) == null ? void 0 : r.find((o) => o.id === s.delivery.type);
35003
35003
  }), i = E(() => Cs(s.delivery.date, "dd.MM.yyyy")), n = E(
35004
35004
  () => {
35005
35005
  var r;
@@ -35044,7 +35044,7 @@ const p5 = He({ name: "tabler-truck-loading", render: m5 }), v5 = { class: "flex
35044
35044
  const e = t, i = E(() => e.fields.includes(Ze.Id) ? e.order.id : void 0), n = E(
35045
35045
  () => {
35046
35046
  var a, l;
35047
- return e.fields.includes(Ze.Status) ? (l = (a = Nt().orderStatusReference) == null ? void 0 : a.find((c) => {
35047
+ return e.fields.includes(Ze.Status) ? (l = (a = Ot().orderStatusReference) == null ? void 0 : a.find((c) => {
35048
35048
  var u;
35049
35049
  return c.id === (((u = e.order.status) == null ? void 0 : u.id) ?? -1);
35050
35050
  })) == null ? void 0 : l.name : void 0;
@@ -35101,7 +35101,7 @@ const p5 = He({ name: "tabler-truck-loading", render: m5 }), v5 = { class: "flex
35101
35101
  setup(t) {
35102
35102
  const e = t, i = E(() => {
35103
35103
  var n;
35104
- return (n = Nt().paymentTypeReference) == null ? void 0 : n.find((s) => s.id === e.payment.type);
35104
+ return (n = Ot().paymentTypeReference) == null ? void 0 : n.find((s) => s.id === e.payment.type);
35105
35105
  });
35106
35106
  return (n, s) => {
35107
35107
  var r;
@@ -37317,11 +37317,11 @@ const L4 = He({ name: "ion-warning", render: z4 }), D4 = {}, M6 = /* @__PURE__ *
37317
37317
  }, 8, ["disabled"]);
37318
37318
  };
37319
37319
  }
37320
- }), A6 = E(() => Nt().deliveryTypeReference ?? []), E6 = E(() => Nt().managersList ?? []), I6 = E(() => Nt().opfReference ?? []), O6 = E(() => Nt().partnerGroupsReference ?? []), z6 = E(() => Nt().priceCoefficientsReference ?? []), L6 = E(() => Nt().productFilesTypesReference ?? []), D6 = E(() => Nt().resourceTypesReference), N6 = E(() => Nt().salesDirectionsReference ?? []), H6 = E(() => Nt().warehousesReference ?? []), W6 = E(() => Nt().paymentTypeReference ?? []), V6 = E(() => Nt().orderStatusReference ?? []), j6 = E(() => Nt().operatorReference ?? []), q6 = E(
37321
- () => yi.convertReferencesToSelectOptionsList(Nt().channelPrimaryInterestsReference ?? [], !0, !1, !0)
37322
- ), U6 = E(
37323
- () => yi.convertReferencesToSelectOptionsList(Nt().sourcePrimaryInterestsReference ?? [], !0, !1, !0)
37324
- ), X6 = (t) => Ki.getInstance(Tg).searchCity(t), Y6 = (t) => yi.convertReferencesToSelectOptionsList(
37320
+ }), A6 = E(() => Ot().deliveryTypeReference ?? []), E6 = E(() => Ot().managersList ?? []), I6 = E(() => Ot().opfReference ?? []), O6 = E(() => Ot().partnerGroupsReference ?? []), z6 = E(() => Ot().priceCoefficientsReference ?? []), L6 = E(() => Ot().productFilesTypesReference ?? []), D6 = E(() => Ot().resourceTypesReference), N6 = E(() => Ot().salesDirectionsReference ?? []), H6 = E(() => Ot().warehousesReference ?? []), W6 = E(() => Ot().paymentTypeReference ?? []), V6 = E(() => Ot().orderStatusReference ?? []), j6 = E(() => Ot().orderStatusDetailReference ?? []), q6 = E(() => Ot().operatorReference ?? []), U6 = E(
37321
+ () => yi.convertReferencesToSelectOptionsList(Ot().channelPrimaryInterestsReference ?? [], !0, !1, !0)
37322
+ ), X6 = E(
37323
+ () => yi.convertReferencesToSelectOptionsList(Ot().sourcePrimaryInterestsReference ?? [], !0, !1, !0)
37324
+ ), Y6 = (t) => Ki.getInstance(Tg).searchCity(t), K6 = (t) => yi.convertReferencesToSelectOptionsList(
37325
37325
  t,
37326
37326
  !0,
37327
37327
  !1,
@@ -37333,7 +37333,7 @@ const L4 = He({ name: "ion-warning", render: z4 }), D4 = {}, M6 = /* @__PURE__ *
37333
37333
  },
37334
37334
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
37335
37335
  (e) => e == null ? void 0 : e.isNewRec()
37336
- ), K6 = (t) => Ki.getInstance(Pg).searchClient(t), G6 = (t) => yi.convertReferencesToSelectOptionsList(
37336
+ ), G6 = (t) => Ki.getInstance(Pg).searchClient(t), Z6 = (t) => yi.convertReferencesToSelectOptionsList(
37337
37337
  t,
37338
37338
  !0,
37339
37339
  !1,
@@ -37445,7 +37445,7 @@ export {
37445
37445
  ct as Validators,
37446
37446
  vt as WindowResolutionEnum,
37447
37447
  ii as WindowResolutionProvider,
37448
- q6 as channelPrimaryInterestOptionsList,
37448
+ U6 as channelPrimaryInterestOptionsList,
37449
37449
  jo as componentSizeInjectionKey,
37450
37450
  sm as copyToClipboard,
37451
37451
  A6 as deliveryTypeReferenceList,
@@ -37456,10 +37456,11 @@ export {
37456
37456
  O_ as isConfiguratorType,
37457
37457
  E6 as managersReferenceList,
37458
37458
  Z4 as naiveUiTheme,
37459
- j6 as operatorReferenceList,
37459
+ q6 as operatorReferenceList,
37460
37460
  I6 as opfReferenceList,
37461
+ j6 as orderStatusDetailReferenceList,
37461
37462
  V6 as orderStatusReferenceList,
37462
- Dt as parse,
37463
+ Nt as parse,
37463
37464
  O6 as partnerGroupReferenceList,
37464
37465
  W6 as paymentTypeReferenceList,
37465
37466
  z6 as priceCoefficientsReferenceList,
@@ -37468,12 +37469,12 @@ export {
37468
37469
  Tt as resetInputValidation,
37469
37470
  D6 as resourceReferencesList,
37470
37471
  N6 as salesDirectionsReferenceList,
37471
- X6 as searchCityReferenceDataHandler,
37472
- Y6 as searchCityReferenceLabelRenderer,
37473
- K6 as searchClientReferenceDataHandler,
37474
- G6 as searchClientReferenceLabelRenderer,
37472
+ Y6 as searchCityReferenceDataHandler,
37473
+ K6 as searchCityReferenceLabelRenderer,
37474
+ G6 as searchClientReferenceDataHandler,
37475
+ Z6 as searchClientReferenceLabelRenderer,
37475
37476
  at as selectAllTextOnFocus,
37476
- U6 as sourcePrimaryInterestOptionsList,
37477
+ X6 as sourcePrimaryInterestOptionsList,
37477
37478
  am as vCopy,
37478
37479
  Bs as vFocusNext,
37479
37480
  H6 as warehousesReferenceList