@snabcentr/common-lib 1.72.2 → 1.72.3

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.
@@ -2,9 +2,9 @@ var Pr = Object.defineProperty;
2
2
  var Rr = (n, r, e) => r in n ? Pr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var t = (n, r, e) => Rr(n, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as rr } from "jwt-decode";
5
- import { merge as ye, isUndefined as Dr, isNil as D, isEmpty as Y, noop as w, mapValues as tr, isArray as Q, every as Ar, split as $r, toUpper as Tr, constant as br, isString as a, cloneDeep as Sr, toLower as _r, isFunction as qe, map as Pe, forEach as dr, isDate as ke, omitBy as sr, isObject as ir } from "lodash-es";
5
+ import { merge as ye, isUndefined as Dr, isNil as D, isEmpty as Y, noop as w, mapValues as tr, isArray as Q, every as Ar, split as $r, toUpper as Tr, constant as br, isString as C, cloneDeep as Sr, toLower as _r, isFunction as qe, map as Pe, forEach as Ir, isDate as ke, omitBy as sr, isObject as ir } from "lodash-es";
6
6
  import { objectToCamel as Ue, objectToSnake as Be } from "ts-case-convert";
7
- import { isAfter as ze, parseISO as C, startOfToday as Le, format as q, addSeconds as Ir, addBusinessDays as kr, endOfTomorrow as Lr, startOfTomorrow as xr, endOfYesterday as Nr, startOfYesterday as Or, endOfToday as qr, endOfDay as Ur, startOfDay as Gr } from "date-fns";
7
+ import { isAfter as ze, parseISO as v, startOfToday as Le, format as q, addSeconds as dr, addBusinessDays as kr, endOfTomorrow as Lr, startOfTomorrow as xr, endOfYesterday as Nr, startOfYesterday as Or, endOfToday as qr, endOfDay as Ur, startOfDay as Gr } from "date-fns";
8
8
  import { defineStore as te } from "pinia";
9
9
  import { ref as y, markRaw as Fr, computed as P } from "vue";
10
10
  import jr from "axios";
@@ -210,7 +210,7 @@ class fe {
210
210
  if (e)
211
211
  try {
212
212
  const s = JSON.parse(e);
213
- if (!s.availableFor || ze(C(s.availableFor) || Le(), /* @__PURE__ */ new Date())) {
213
+ if (!s.availableFor || ze(v(s.availableFor) || Le(), /* @__PURE__ */ new Date())) {
214
214
  if (D(s.data) || Y(s.data))
215
215
  throw new Error("Data is empty");
216
216
  return s.data;
@@ -284,7 +284,7 @@ class fe {
284
284
  const i = localStorage.getItem(s);
285
285
  if (i) {
286
286
  const o = JSON.parse(i);
287
- o.availableFor && !ze(C(o.availableFor) || Le(), /* @__PURE__ */ new Date()) && r.push(s);
287
+ o.availableFor && !ze(v(o.availableFor) || Le(), /* @__PURE__ */ new Date()) && r.push(s);
288
288
  }
289
289
  } catch {
290
290
  r.push(s);
@@ -387,8 +387,8 @@ const B = te("__auth_state_private", () => {
387
387
  const A = $r(m, ".");
388
388
  if (A.length < 2)
389
389
  return !1;
390
- const [d, I] = A, S = (_ = B().userPermissions) == null ? void 0 : _[d];
391
- return Q(S) && S.includes(I);
390
+ const [I, d] = A, S = (_ = B().userPermissions) == null ? void 0 : _[I];
391
+ return Q(S) && S.includes(d);
392
392
  };
393
393
  return Q(o) ? Ar(o, (m) => f(m)) : f(o);
394
394
  });
@@ -540,7 +540,7 @@ class he extends xe {
540
540
  }
541
541
  }
542
542
  var or = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(or || {});
543
- class v extends b {
543
+ class a extends b {
544
544
  /**
545
545
  * Инициализирует экземпляр класса {@link Reference}.
546
546
  *
@@ -559,7 +559,7 @@ class v extends b {
559
559
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
560
560
  }
561
561
  }
562
- class Re extends v {
562
+ class Re extends a {
563
563
  /**
564
564
  * Возвращает значение справочника коэффициента розничной цены.
565
565
  */
@@ -615,9 +615,9 @@ class cr {
615
615
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
616
616
  }
617
617
  }
618
- class X extends v {
618
+ class X extends a {
619
619
  }
620
- class De extends v {
620
+ class De extends a {
621
621
  /**
622
622
  * Инициализирует экземпляр класса {@link Warehouse}.
623
623
  *
@@ -790,7 +790,7 @@ class x extends Hr {
790
790
  * Список коэффициентов цен на продукт.
791
791
  */
792
792
  t(this, "priceCoefficients");
793
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = a(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new Mr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
793
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? v(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new Mr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
794
794
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
795
795
  s && (this.category = new xe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new xe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Br(p, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Ge(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
796
796
  }
@@ -1312,7 +1312,7 @@ class lr extends b {
1312
1312
  * Дата и время последнего изменения.
1313
1313
  */
1314
1314
  t(this, "updatedAt");
1315
- this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1315
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1316
1316
  }
1317
1317
  }
1318
1318
  class Vr extends lr {
@@ -1327,7 +1327,7 @@ class Vr extends lr {
1327
1327
  * Дата и время последнего удаления.
1328
1328
  */
1329
1329
  t(this, "deletedAt");
1330
- this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1330
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1331
1331
  }
1332
1332
  }
1333
1333
  class F extends b {
@@ -1381,7 +1381,7 @@ class Kr extends b {
1381
1381
  * Дата и время удаления.
1382
1382
  */
1383
1383
  t(this, "deletedAt");
1384
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = a(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new F(e == null ? void 0 : e.owner), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1384
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? v(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new F(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1385
1385
  }
1386
1386
  }
1387
1387
  class W extends lr {
@@ -1400,7 +1400,7 @@ class W extends lr {
1400
1400
  * Дата и время создания шаблона.
1401
1401
  */
1402
1402
  t(this, "createdAt");
1403
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1403
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1404
1404
  }
1405
1405
  }
1406
1406
  class Z extends x {
@@ -1460,7 +1460,7 @@ class Qr {
1460
1460
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1461
1461
  }
1462
1462
  }
1463
- class N extends v {
1463
+ class N extends a {
1464
1464
  }
1465
1465
  class ce extends b {
1466
1466
  /**
@@ -1471,22 +1471,26 @@ class ce extends b {
1471
1471
  constructor(e) {
1472
1472
  super(e);
1473
1473
  /**
1474
- * Направление продаж.
1474
+ * @inheritDoc
1475
1475
  */
1476
- t(this, "salesDirection", new N());
1476
+ t(this, "salesDirection");
1477
1477
  /**
1478
- * URI путь к фотографии пользователя.
1478
+ * @inheritDoc
1479
1479
  */
1480
1480
  t(this, "photo");
1481
1481
  /**
1482
- * Контакты менеджера
1482
+ * @inheritDoc
1483
1483
  */
1484
1484
  t(this, "contacts");
1485
1485
  /**
1486
- * Признак того, что менеджер является основным для клиента.
1486
+ * @inheritDoc
1487
1487
  */
1488
1488
  t(this, "isDefault");
1489
- e && (this.salesDirection = new N(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Qr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1489
+ /**
1490
+ * @inheritDoc
1491
+ */
1492
+ t(this, "isRegionalDirector");
1493
+ this.salesDirection = e != null && e.salesDirection ? new N(e.salesDirection) : new N(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new Qr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1490
1494
  }
1491
1495
  }
1492
1496
  class Yr extends b {
@@ -1631,9 +1635,9 @@ class be extends ur {
1631
1635
  this.productCategory = new he(e == null ? void 0 : e.productCategory);
1632
1636
  }
1633
1637
  }
1634
- class ee extends v {
1638
+ class ee extends a {
1635
1639
  }
1636
- class le extends v {
1640
+ class le extends a {
1637
1641
  /**
1638
1642
  * Инициализирует экземпляр класса {@link Region}.
1639
1643
  *
@@ -1648,7 +1652,7 @@ class le extends v {
1648
1652
  e && (this.country = new ee(e.country));
1649
1653
  }
1650
1654
  }
1651
- class Me extends v {
1655
+ class Me extends a {
1652
1656
  /**
1653
1657
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1654
1658
  *
@@ -1699,7 +1703,7 @@ class pr extends b {
1699
1703
  * Признак активности учетной записи пользователя.
1700
1704
  */
1701
1705
  t(this, "isActive");
1702
- this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new N(e.salesDirection) : void 0, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = a(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1706
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new N(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1703
1707
  }
1704
1708
  }
1705
1709
  class ge extends pr {
@@ -1771,7 +1775,7 @@ class se extends H {
1771
1775
  * Данные шаблона прайс-листа.
1772
1776
  */
1773
1777
  t(this, "priceTemplate");
1774
- this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1778
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1775
1779
  }
1776
1780
  }
1777
1781
  class Se extends ur {
@@ -1789,7 +1793,7 @@ class Se extends ur {
1789
1793
  this.product = new x(e == null ? void 0 : e.product);
1790
1794
  }
1791
1795
  }
1792
- class hr extends v {
1796
+ class hr extends a {
1793
1797
  }
1794
1798
  class ie extends b {
1795
1799
  /**
@@ -1848,7 +1852,7 @@ class O {
1848
1852
  * Окончание периода.
1849
1853
  */
1850
1854
  t(this, "to");
1851
- this.from = a(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = a(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
1855
+ this.from = C(r == null ? void 0 : r.from) ? v(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? v(r.to) : (r == null ? void 0 : r.to) ?? null;
1852
1856
  }
1853
1857
  }
1854
1858
  class qt {
@@ -1911,7 +1915,7 @@ class qt {
1911
1915
  return Object.keys(this).forEach((c) => {
1912
1916
  const u = this[c];
1913
1917
  // eslint-disable-next-line prettier/prettier
1914
- D(u) || a(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
1918
+ D(u) || C(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
1915
1919
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
1916
1920
  }
1917
1921
  }
@@ -2080,7 +2084,7 @@ class tt {
2080
2084
  * Текущая версия приложения.
2081
2085
  */
2082
2086
  t(this, "version");
2083
- this.date = a(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
2087
+ this.date = C(r == null ? void 0 : r.date) ? v(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
2084
2088
  }
2085
2089
  }
2086
2090
  class st {
@@ -2571,7 +2575,7 @@ class Mt extends h {
2571
2575
  getCategoryProductsCoefficients(r) {
2572
2576
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2573
2577
  const { data: s } = e;
2574
- return dr(s, (i) => i.map((o) => new Ge(o))), s;
2578
+ return Ir(s, (i) => i.map((o) => new Ge(o))), s;
2575
2579
  });
2576
2580
  }
2577
2581
  /**
@@ -3500,15 +3504,15 @@ function Ke(n) {
3500
3504
  }), r;
3501
3505
  }
3502
3506
  var it = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(it || {}), k = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(k || {});
3503
- class nt extends v {
3507
+ class nt extends a {
3504
3508
  }
3505
- class gr extends v {
3509
+ class gr extends a {
3506
3510
  }
3507
- class Vt extends v {
3511
+ class Vt extends a {
3508
3512
  }
3509
- class ot extends v {
3513
+ class ot extends a {
3510
3514
  }
3511
- class ae extends b {
3515
+ class Ce extends b {
3512
3516
  /**
3513
3517
  * Инициализирует экземпляр класса {@link Currency}.
3514
3518
  *
@@ -3527,7 +3531,7 @@ class ae extends b {
3527
3531
  e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
3528
3532
  }
3529
3533
  }
3530
- class j extends v {
3534
+ class j extends a {
3531
3535
  /**
3532
3536
  * Возвращает сгенерированную запись-описание физического лица.
3533
3537
  */
@@ -3540,19 +3544,19 @@ class j extends v {
3540
3544
  });
3541
3545
  }
3542
3546
  }
3543
- class ct extends v {
3547
+ class ct extends a {
3544
3548
  }
3545
- class lt extends v {
3549
+ class lt extends a {
3546
3550
  }
3547
- class re extends v {
3551
+ class re extends a {
3548
3552
  }
3549
- class ut extends v {
3553
+ class ut extends a {
3550
3554
  }
3551
- class pt extends v {
3555
+ class pt extends a {
3552
3556
  }
3553
- class mr extends v {
3557
+ class mr extends a {
3554
3558
  }
3555
- class fr extends v {
3559
+ class fr extends a {
3556
3560
  }
3557
3561
  class Ne extends H {
3558
3562
  /**
@@ -3581,8 +3585,8 @@ class Ne extends H {
3581
3585
  /**
3582
3586
  * Данные о валюте.
3583
3587
  */
3584
- t(this, "currency", new ae());
3585
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ae(e.currency));
3588
+ t(this, "currency", new Ce());
3589
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new Ce(e.currency));
3586
3590
  }
3587
3591
  }
3588
3592
  class Oe extends b {
@@ -3636,7 +3640,7 @@ class M extends Oe {
3636
3640
  * Дата и время последнего удаления.
3637
3641
  */
3638
3642
  t(this, "deletedAt");
3639
- this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3643
+ this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3640
3644
  }
3641
3645
  }
3642
3646
  class yr extends b {
@@ -3697,7 +3701,7 @@ class yr extends b {
3697
3701
  */
3698
3702
  t(this, "updater");
3699
3703
  if (e) {
3700
- if (this.opf = new j(e.opf), this.salesDirection = new N(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new F(e.creator) : void 0, this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new F(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.manager && (this.manager = new ce(e.manager)), e.contacts) {
3704
+ if (this.opf = new j(e.opf), this.salesDirection = new N(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e.createdAt, this.creator = e.creator ? new F(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new F(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.manager && (this.manager = new ce(e.manager)), e.contacts) {
3701
3705
  const s = [];
3702
3706
  e.contacts.forEach((i) => {
3703
3707
  s.push(new M(i));
@@ -3765,7 +3769,7 @@ class wr extends yr {
3765
3769
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
3766
3770
  }
3767
3771
  }
3768
- class ar extends wr {
3772
+ class Cr extends wr {
3769
3773
  /**
3770
3774
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3771
3775
  *
@@ -3780,7 +3784,7 @@ class ar extends wr {
3780
3784
  e && (this.kpp = e.kpp ?? "");
3781
3785
  }
3782
3786
  }
3783
- class gt extends ar {
3787
+ class gt extends Cr {
3784
3788
  /**
3785
3789
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3786
3790
  *
@@ -3803,7 +3807,7 @@ class gt extends ar {
3803
3807
  e && (this.registrationCountry = new ee(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3804
3808
  }
3805
3809
  }
3806
- class Ce {
3810
+ class ve {
3807
3811
  /**
3808
3812
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3809
3813
  *
@@ -3814,7 +3818,7 @@ class Ce {
3814
3818
  case k.Ic:
3815
3819
  return new wr(r);
3816
3820
  case k.UlR:
3817
- return new ar(r);
3821
+ return new Cr(r);
3818
3822
  case k.UlNr:
3819
3823
  return new gt(r);
3820
3824
  default:
@@ -3865,7 +3869,7 @@ class mt extends M {
3865
3869
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new _e(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new _e(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new _e(s))));
3866
3870
  }
3867
3871
  }
3868
- class ve extends Vr {
3872
+ class ae extends Vr {
3869
3873
  /**
3870
3874
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3871
3875
  *
@@ -3959,7 +3963,7 @@ class Qe extends ge {
3959
3963
  * Дополнительные данные о клиенте.
3960
3964
  */
3961
3965
  t(this, "extraData");
3962
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ve(u))) ?? [], this.channelPrimaryInterest = new gr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new fr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new De(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3966
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ae(u))) ?? [], this.channelPrimaryInterest = new gr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new fr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new De(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3963
3967
  }
3964
3968
  }
3965
3969
  class Kt {
@@ -4132,11 +4136,11 @@ class Kt {
4132
4136
  return Object.keys(this).forEach((c) => {
4133
4137
  const u = this[c];
4134
4138
  // eslint-disable-next-line prettier/prettier
4135
- D(u) || a(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
4139
+ D(u) || C(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
4136
4140
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
4137
4141
  }
4138
4142
  }
4139
- class Cr extends H {
4143
+ class vr extends H {
4140
4144
  /**
4141
4145
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4142
4146
  *
@@ -4156,7 +4160,7 @@ class Cr extends H {
4156
4160
  * Признак того, что заказ подтвержден в 1С.
4157
4161
  */
4158
4162
  t(this, "isApproved1c");
4159
- this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new F(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4163
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new F(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4160
4164
  }
4161
4165
  }
4162
4166
  class ft extends b {
@@ -4192,7 +4196,7 @@ class ft extends b {
4192
4196
  * Список менеджеров.
4193
4197
  */
4194
4198
  t(this, "managers");
4195
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new Cr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new re(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new X(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new N(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ce(o)));
4199
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new vr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new re(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new X(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new N(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ce(o)));
4196
4200
  }
4197
4201
  }
4198
4202
  class yt {
@@ -4464,7 +4468,7 @@ class Xt extends $e {
4464
4468
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4465
4469
  */
4466
4470
  createContragentClientData(r, e, s = {}) {
4467
- var p, f, m, A, d, I, S, _;
4471
+ var p, f, m, A, I, d, S, _;
4468
4472
  let i;
4469
4473
  const o = e, c = e, u = e;
4470
4474
  switch (e.opf.slug) {
@@ -4510,8 +4514,8 @@ class Xt extends $e {
4510
4514
  opf: u.opf.slug,
4511
4515
  name: u.name,
4512
4516
  alternative_name: u.alternativeName,
4513
- partner_group_id: (d = u.partnerGroup) == null ? void 0 : d.id,
4514
- manager_id: (I = u.manager) == null ? void 0 : I.id,
4517
+ partner_group_id: (I = u.partnerGroup) == null ? void 0 : I.id,
4518
+ manager_id: (d = u.manager) == null ? void 0 : d.id,
4515
4519
  comment: u.comment,
4516
4520
  director_name: u.directorName,
4517
4521
  director_position: u.directorPosition,
@@ -4538,7 +4542,7 @@ class Xt extends $e {
4538
4542
  return this.post(
4539
4543
  `/internal/clients/${r}/contragents`,
4540
4544
  i,
4541
- (U) => Ce.createInstance(U.data),
4545
+ (U) => ve.createInstance(U.data),
4542
4546
  s
4543
4547
  );
4544
4548
  }
@@ -4553,7 +4557,7 @@ class Xt extends $e {
4553
4557
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4554
4558
  */
4555
4559
  updateContragentClientData(r, e, s = {}) {
4556
- var p, f, m, A, d, I, S, _;
4560
+ var p, f, m, A, I, d, S, _;
4557
4561
  let i;
4558
4562
  const o = e, c = e, u = e;
4559
4563
  switch (e.opf.slug) {
@@ -4599,8 +4603,8 @@ class Xt extends $e {
4599
4603
  opf: u.opf.slug,
4600
4604
  name: u.name,
4601
4605
  alternative_name: u.alternativeName,
4602
- partner_group_id: (d = u.partnerGroup) == null ? void 0 : d.id,
4603
- manager_id: (I = u.manager) == null ? void 0 : I.id,
4606
+ partner_group_id: (I = u.partnerGroup) == null ? void 0 : I.id,
4607
+ manager_id: (d = u.manager) == null ? void 0 : d.id,
4604
4608
  comment: u.comment,
4605
4609
  director_name: u.directorName,
4606
4610
  director_position: u.directorPosition,
@@ -4627,7 +4631,7 @@ class Xt extends $e {
4627
4631
  return this.patch(
4628
4632
  `/internal/clients/${r}/contragents/${e.id}`,
4629
4633
  i,
4630
- (U) => Ce.createInstance(U.data),
4634
+ (U) => ve.createInstance(U.data),
4631
4635
  s
4632
4636
  );
4633
4637
  }
@@ -4665,7 +4669,7 @@ class Xt extends $e {
4665
4669
  }), e.operatingHours && (i.operating_hours = {
4666
4670
  from: e.operatingHours.from,
4667
4671
  to: e.operatingHours.to
4668
- }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new ve(u.data), s);
4672
+ }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new ae(u.data), s);
4669
4673
  }
4670
4674
  /**
4671
4675
  * Обновляет данные об адресе доставки клиента.
@@ -4694,7 +4698,7 @@ class Xt extends $e {
4694
4698
  }), this.patch(
4695
4699
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4696
4700
  i,
4697
- (u) => new ve(u.data),
4701
+ (u) => new ae(u.data),
4698
4702
  s
4699
4703
  );
4700
4704
  }
@@ -5021,7 +5025,7 @@ const V = class V extends h {
5021
5025
  */
5022
5026
  cacheResponse(e, s) {
5023
5027
  V.responseDataCache.set(e, {
5024
- validTo: Ir(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5028
+ validTo: dr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5025
5029
  val: s
5026
5030
  });
5027
5031
  }
@@ -5217,7 +5221,7 @@ class wt extends pe {
5217
5221
  return this.cacheResponse(r, i), i;
5218
5222
  }
5219
5223
  }
5220
- class vr extends Cr {
5224
+ class ar extends vr {
5221
5225
  /**
5222
5226
  * Инициализирует экземпляр класса {@link OrderInfo}.
5223
5227
  *
@@ -5272,13 +5276,13 @@ class vr extends Cr {
5272
5276
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5273
5277
  }, this.delivery = {
5274
5278
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5275
- date: a((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5276
- address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new ve(e.delivery.address) : void 0,
5279
+ date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? v(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5280
+ address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new ae(e.delivery.address) : void 0,
5277
5281
  warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new De(e.delivery.warehouse) : void 0
5278
- }, this.attachedUser = new F(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new N(e == null ? void 0 : e.salesDirection), this.pendingAt = a(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = a(e == null ? void 0 : e.processedAt) ? C(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
5282
+ }, this.attachedUser = new F(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new N(e == null ? void 0 : e.salesDirection), this.pendingAt = C(e == null ? void 0 : e.pendingAt) ? v(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = C(e == null ? void 0 : e.processedAt) ? v(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
5279
5283
  }
5280
5284
  }
5281
- class at extends H {
5285
+ class Ct extends H {
5282
5286
  /**
5283
5287
  * Инициализирует экземпляр класса {@link OrderProduct}.
5284
5288
  *
@@ -5361,7 +5365,7 @@ class at extends H {
5361
5365
  this.product = new Z(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
5362
5366
  }
5363
5367
  }
5364
- class Ct extends vr {
5368
+ class vt extends ar {
5365
5369
  /**
5366
5370
  * Инициализирует экземпляр класса {@link Order}.
5367
5371
  *
@@ -5401,7 +5405,7 @@ class Ct extends vr {
5401
5405
  * Признак, что разрешена передача заказа в работу без оплаты.
5402
5406
  */
5403
5407
  t(this, "isAllowProcessingWithoutPayment");
5404
- this.products = (e.products ?? []).map((s) => new at(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new v(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5408
+ this.products = (e.products ?? []).map((s) => new Ct(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ve.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new a(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5405
5409
  }
5406
5410
  }
5407
5411
  class ss extends $e {
@@ -5417,7 +5421,7 @@ class ss extends $e {
5417
5421
  getOrders(r, e, s) {
5418
5422
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5419
5423
  const o = { ...i.data };
5420
- return o.data = o.data.map((c) => new vr(c)), o;
5424
+ return o.data = o.data.map((c) => new ar(c)), o;
5421
5425
  });
5422
5426
  }
5423
5427
  /**
@@ -5435,10 +5439,10 @@ class ss extends $e {
5435
5439
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5436
5440
  */
5437
5441
  getOrder(r) {
5438
- return this.get(`/internal/orders/${r}`, {}, (e) => new Ct(e.data));
5442
+ return this.get(`/internal/orders/${r}`, {}, (e) => new vt(e.data));
5439
5443
  }
5440
5444
  }
5441
- class de {
5445
+ class Ie {
5442
5446
  /**
5443
5447
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5444
5448
  *
@@ -5468,7 +5472,7 @@ class de {
5468
5472
  this.client = new ge(r == null ? void 0 : r.client), this.product = new x(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? je.Product;
5469
5473
  }
5470
5474
  }
5471
- const Ie = (n) => {
5475
+ const de = (n) => {
5472
5476
  var r, e, s, i, o;
5473
5477
  return n ? sr(
5474
5478
  {
@@ -5500,9 +5504,9 @@ class is extends h {
5500
5504
  `/internal/price/products/${r}/analyze`,
5501
5505
  {
5502
5506
  ...Xe(e),
5503
- filters: Ie(s)
5507
+ filters: de(s)
5504
5508
  },
5505
- (i) => i.data.map((o) => new de(o))
5509
+ (i) => i.data.map((o) => new Ie(o))
5506
5510
  );
5507
5511
  }
5508
5512
  /**
@@ -5519,9 +5523,9 @@ class is extends h {
5519
5523
  `/internal/price/categories/${r}/analyze`,
5520
5524
  {
5521
5525
  ...Xe(e),
5522
- filters: Ie(s)
5526
+ filters: de(s)
5523
5527
  },
5524
- (i) => i.data.map((o) => new de(o))
5528
+ (i) => i.data.map((o) => new Ie(o))
5525
5529
  );
5526
5530
  }
5527
5531
  /**
@@ -5540,13 +5544,13 @@ class is extends h {
5540
5544
  `/internal/price/categories/${r}/analyze/square`,
5541
5545
  {
5542
5546
  ...e,
5543
- filters: Ie(s)
5547
+ filters: de(s)
5544
5548
  },
5545
- (i) => i.data.map((o) => new de(o))
5549
+ (i) => i.data.map((o) => new Ie(o))
5546
5550
  );
5547
5551
  }
5548
5552
  }
5549
- class vt {
5553
+ class at {
5550
5554
  /**
5551
5555
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
5552
5556
  *
@@ -5593,7 +5597,7 @@ class vt {
5593
5597
  * @inheritDoc
5594
5598
  */
5595
5599
  t(this, "currency");
5596
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = a(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new oe(r.product) : void 0, this.client = r.client ? new F(r.client) : void 0, this.executor = r.executor ? new F(r.executor) : void 0, this.currency = r.currency ? new ae(r.currency) : void 0;
5600
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? v(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new oe(r.product) : void 0, this.client = r.client ? new F(r.client) : void 0, this.executor = r.executor ? new F(r.executor) : void 0, this.currency = r.currency ? new Ce(r.currency) : void 0;
5597
5601
  }
5598
5602
  }
5599
5603
  class Pt extends oe {
@@ -5608,7 +5612,7 @@ class Pt extends oe {
5608
5612
  * @inheritDoc
5609
5613
  */
5610
5614
  t(this, "history");
5611
- this.history = Pe(e.history, (s) => new vt(s));
5615
+ this.history = Pe(e.history, (s) => new at(s));
5612
5616
  }
5613
5617
  }
5614
5618
  class ns extends h {
@@ -5727,7 +5731,7 @@ class $ extends pe {
5727
5731
  * Возвращает {@link Promise} для получения справочника списка валют.
5728
5732
  */
5729
5733
  getCurrency() {
5730
- return this.getTypedDataArrayRequester(ae, "/public/references/currency", !0);
5734
+ return this.getTypedDataArrayRequester(Ce, "/public/references/currency", !0);
5731
5735
  }
5732
5736
  /**
5733
5737
  * Возвращает {@link Promise} для получения справочника данных
@@ -5834,7 +5838,7 @@ class $ extends pe {
5834
5838
  }
5835
5839
  }
5836
5840
  const R = te("__references_private", () => {
5837
- const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), f = y(void 0), m = y(void 0), A = y(void 0), d = y(void 0), I = y(void 0), S = y(void 0), _ = y(void 0), U = y(void 0), l = y(void 0);
5841
+ const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), f = y(void 0), m = y(void 0), A = y(void 0), I = y(void 0), d = y(void 0), S = y(void 0), _ = y(void 0), U = y(void 0), l = y(void 0);
5838
5842
  return {
5839
5843
  /**
5840
5844
  * Список загружаемых/загруженных на данный момент значений.
@@ -5887,11 +5891,11 @@ const R = te("__references_private", () => {
5887
5891
  /**
5888
5892
  * Справочник типов ресурсов.
5889
5893
  */
5890
- resourceTypesReference: d,
5894
+ resourceTypesReference: I,
5891
5895
  /**
5892
5896
  * Справочник направлений продаж.
5893
5897
  */
5894
- salesDirectionsReference: I,
5898
+ salesDirectionsReference: d,
5895
5899
  /**
5896
5900
  * Справочник источников первичного интереса.
5897
5901
  */
@@ -5970,12 +5974,12 @@ const R = te("__references_private", () => {
5970
5974
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance($).getSourcePrimaryInterest().then((g) => {
5971
5975
  l.sourcePrimaryInterestReference = g;
5972
5976
  }).catch(w)), l.sourcePrimaryInterestReference;
5973
- }), d = P(() => {
5977
+ }), I = P(() => {
5974
5978
  const l = R();
5975
5979
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance($).getDeliveryTypes().then((g) => {
5976
5980
  l.deliveryTypeReference = g;
5977
5981
  }).catch(w)), l.deliveryTypeReference;
5978
- }), I = P(() => {
5982
+ }), d = P(() => {
5979
5983
  const l = R();
5980
5984
  return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(wt).getManagers().then((g) => {
5981
5985
  l.managersList = g;
@@ -6048,11 +6052,11 @@ const R = te("__references_private", () => {
6048
6052
  /**
6049
6053
  * Справочник типов доставки.
6050
6054
  */
6051
- deliveryTypeReference: d,
6055
+ deliveryTypeReference: I,
6052
6056
  /**
6053
6057
  * Список менеджеров.
6054
6058
  */
6055
- managersList: I,
6059
+ managersList: d,
6056
6060
  /**
6057
6061
  * Справочник складов.
6058
6062
  */
@@ -6338,21 +6342,21 @@ export {
6338
6342
  ot as ContactPosition,
6339
6343
  _e as ContactRelation,
6340
6344
  yr as ContragentBase,
6341
- Ce as ContragentFactory,
6345
+ ve as ContragentFactory,
6342
6346
  wr as ContragentIc,
6343
6347
  ht as ContragentPerson,
6344
6348
  gt as ContragentUlNr,
6345
- ar as ContragentUlR,
6349
+ Cr as ContragentUlR,
6346
6350
  je as CostSourceEnum,
6347
6351
  ee as Country,
6348
- ae as Currency,
6352
+ Ce as Currency,
6349
6353
  us as DataSuggestionProvider,
6350
6354
  Qt as DataTablePagination,
6351
6355
  yt as DataTablePaginationRequestParams,
6352
6356
  Yt as DataTableSortRequestParams,
6353
6357
  rs as DateTimeProvider,
6354
6358
  Vr as DeletableNamedIdentity,
6355
- ve as DeliveryAddress,
6359
+ ae as DeliveryAddress,
6356
6360
  X as DeliveryType,
6357
6361
  Nt as DetailedJwtPayload,
6358
6362
  Zr as DeviceTypeResolutionConfig,
@@ -6377,22 +6381,22 @@ export {
6377
6381
  b as NamedIdentity,
6378
6382
  j as Opf,
6379
6383
  k as OpfEnum,
6380
- Ct as Order,
6381
- vr as OrderInfo,
6384
+ vt as Order,
6385
+ ar as OrderInfo,
6382
6386
  ct as OrderPaymentStatus,
6383
- at as OrderProduct,
6384
- Cr as OrderShortInfo,
6387
+ Ct as OrderProduct,
6388
+ vr as OrderShortInfo,
6385
6389
  lt as OrderStatus,
6386
6390
  ss as OrdersDataProvider,
6387
6391
  re as PartnerGroup,
6388
6392
  ut as PaymentType,
6389
6393
  fe as PreferencesStorageProvider,
6390
- de as PriceAnalyze,
6394
+ Ie as PriceAnalyze,
6391
6395
  is as PriceAnalyzeProvider,
6392
6396
  Re as PriceCoefficient,
6393
6397
  or as PriceCoefficientEnum,
6394
6398
  ns as PriceHistoryDataProvider,
6395
- vt as PriceHistoryItem,
6399
+ at as PriceHistoryItem,
6396
6400
  W as PriceTemplate,
6397
6401
  be as PriceTemplateCategory,
6398
6402
  se as PriceTemplateClient,
@@ -6415,7 +6419,7 @@ export {
6415
6419
  z as PropertyValue,
6416
6420
  os as RecommendationsDataProvider,
6417
6421
  Ze as RecommendationsList,
6418
- v as Reference,
6422
+ a as Reference,
6419
6423
  $ as ReferenceDataProvider,
6420
6424
  le as Region,
6421
6425
  mr as ResourceType,