@snabcentr/common-lib 1.88.0 → 1.89.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.
@@ -1,8 +1,8 @@
1
- var Ir = Object.defineProperty;
2
- var Lr = (n, r, e) => r in n ? Ir(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => Lr(n, typeof r != "symbol" ? r + "" : r, e);
1
+ var Lr = Object.defineProperty;
2
+ var ar = (n, r, e) => r in n ? Lr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => ar(n, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as ir } from "jwt-decode";
5
- import { merge as oe, isNil as T, isEmpty as Y, noop as w, mapValues as nr, isArray as H, every as dr, split as xr, isString as v, constant as Or, toUpper as _r, cloneDeep as qr, toLower as Nr, isFunction as Ue, map as he, forEach as Ur, isDate as xe, omitBy as or, isObject as cr } from "lodash-es";
5
+ import { merge as ce, isNil as T, isEmpty as Y, noop as w, mapValues as nr, isArray as H, every as dr, split as xr, isString as v, constant as Or, toUpper as _r, cloneDeep as qr, toLower as Nr, isFunction as Ue, map as he, forEach as Ur, isDate as xe, omitBy as or, isObject as cr } from "lodash-es";
6
6
  import { objectToCamel as He, objectToSnake as Je } from "ts-case-convert";
7
7
  import { defineStore as z } from "pinia";
8
8
  import { ref as y, markRaw as Hr, computed as A } from "vue";
@@ -99,7 +99,7 @@ class j {
99
99
  * @inheritDoc
100
100
  */
101
101
  t(this, "email", "");
102
- oe(this, r);
102
+ ce(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -143,7 +143,7 @@ class Gt extends j {
143
143
  * @inheritDoc
144
144
  */
145
145
  t(this, "address");
146
- oe(this, e);
146
+ ce(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -336,7 +336,7 @@ class et {
336
336
  };
337
337
  }
338
338
  }
339
- const I = z("common.config", () => {
339
+ const L = z("common.config", () => {
340
340
  const n = y(new et());
341
341
  return {
342
342
  /**
@@ -355,7 +355,7 @@ const I = z("common.config", () => {
355
355
  * @param appConfig Конфигурация приложения.
356
356
  */
357
357
  setConfig: (s) => {
358
- n.value = oe(n.value, s);
358
+ n.value = ce(n.value, s);
359
359
  }
360
360
  };
361
361
  });
@@ -486,7 +486,7 @@ const E = z("common.auth_state_private", () => {
486
486
  );
487
487
  if (o)
488
488
  return Promise.resolve(o);
489
- const c = (u = I().config.devMode) == null ? void 0 : u.initAuthBearerToken;
489
+ const c = (u = L().config.devMode) == null ? void 0 : u.initAuthBearerToken;
490
490
  return c ? Promise.resolve(c) : void 0;
491
491
  })()
492
492
  ), r = y(void 0), e = y(void 0), s = Hr(/* @__PURE__ */ new Map());
@@ -555,8 +555,8 @@ const E = z("common.auth_state_private", () => {
555
555
  const D = xr(f, ".");
556
556
  if (D.length < 2)
557
557
  return !1;
558
- const [re, te] = D, W = (J = E().userPermissions) == null ? void 0 : J[re];
559
- return H(W) && W.includes(te);
558
+ const [te, se] = D, W = (J = E().userPermissions) == null ? void 0 : J[te];
559
+ return H(W) && W.includes(se);
560
560
  };
561
561
  return H(o) ? dr(o, (f) => m(f)) : m(o);
562
562
  });
@@ -591,7 +591,7 @@ const E = z("common.auth_state_private", () => {
591
591
  hasUserPermission: i
592
592
  };
593
593
  });
594
- class ee {
594
+ class re {
595
595
  /**
596
596
  * Инициализирует экземпляр класса {@link Identity}.
597
597
  *
@@ -616,7 +616,7 @@ class ee {
616
616
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : T(this.id);
617
617
  }
618
618
  }
619
- class k extends ee {
619
+ class k extends re {
620
620
  /**
621
621
  * Инициализирует экземпляр класса {@link NamedIdentity}.
622
622
  *
@@ -631,7 +631,7 @@ class k extends ee {
631
631
  this.name = (e == null ? void 0 : e.name) ?? "";
632
632
  }
633
633
  }
634
- class ce extends k {
634
+ class le extends k {
635
635
  /**
636
636
  * Инициализирует экземпляр класса {@link NamedIdentity}.
637
637
  *
@@ -718,7 +718,7 @@ class tt {
718
718
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
719
719
  }
720
720
  }
721
- class ur extends ce {
721
+ class ur extends le {
722
722
  /**
723
723
  * Инициализирует экземпляр класса {@link CatalogableItem}.
724
724
  *
@@ -898,6 +898,58 @@ class Fe {
898
898
  this.coefficient = new Re(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
899
899
  }
900
900
  }
901
+ class hr {
902
+ /**
903
+ * Инициализирует экземпляр класса {@link GeoCoordinates}.
904
+ *
905
+ * @param data Данные для первоначальной инициализации.
906
+ */
907
+ constructor(r) {
908
+ /**
909
+ * Широта.
910
+ */
911
+ t(this, "lat");
912
+ /**
913
+ * Долгота.
914
+ */
915
+ t(this, "long");
916
+ this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
917
+ }
918
+ }
919
+ class N extends R {
920
+ }
921
+ class X extends R {
922
+ /**
923
+ * Инициализирует экземпляр класса {@link Warehouse}.
924
+ *
925
+ * @param data Данные для первоначальной инициализации.
926
+ */
927
+ constructor(e) {
928
+ var s;
929
+ super(e);
930
+ /**
931
+ * Адрес склада.
932
+ */
933
+ t(this, "address");
934
+ /**
935
+ * Признак того, что склад является основным.
936
+ */
937
+ t(this, "isMain");
938
+ /**
939
+ * Список типов доставки.
940
+ */
941
+ t(this, "deliveryTypes");
942
+ /**
943
+ * Список идентификаторов регионов, в которые осуществляется доставка со склада.
944
+ */
945
+ t(this, "regions");
946
+ /**
947
+ * Координаты склада.
948
+ */
949
+ t(this, "coordinates");
950
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new N(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
951
+ }
952
+ }
901
953
  class nt {
902
954
  /**
903
955
  * Инициализирует экземпляр класса {@link StockCount}.
@@ -906,14 +958,14 @@ class nt {
906
958
  */
907
959
  constructor(r) {
908
960
  /**
909
- * Идентификатор склада.
961
+ * Данные склада.
910
962
  */
911
- t(this, "warehouseId");
963
+ t(this, "warehouse");
912
964
  /**
913
965
  * Количество остатков товара на складе.
914
966
  */
915
967
  t(this, "count");
916
- this.warehouseId = (r == null ? void 0 : r.warehouseId) ?? 0, this.count = r ? r.count : 0;
968
+ this.warehouse = new X(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
917
969
  }
918
970
  }
919
971
  class x extends k {
@@ -970,7 +1022,7 @@ class Ke extends k {
970
1022
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
971
1023
  }
972
1024
  }
973
- class a extends st {
1025
+ class I extends st {
974
1026
  /**
975
1027
  * Инициализирует экземпляр класса {@link Product}.
976
1028
  *
@@ -1049,7 +1101,7 @@ class a extends st {
1049
1101
  t(this, "priceCoefficients");
1050
1102
  this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ke(e.unit) : new Ke(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new x(e.currency) : new x(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = v(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((h) => new nt(h))) ?? [], this.type = "product";
1051
1103
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
1052
- s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new tt(h, I().config.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((h) => new Fe(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1104
+ s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new tt(h, L().config.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((h) => new Fe(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1053
1105
  }
1054
1106
  /**
1055
1107
  * Возвращает признак, что это измеряемый товар.
@@ -1071,7 +1123,7 @@ class a extends st {
1071
1123
  }
1072
1124
  }
1073
1125
  var Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {});
1074
- class F extends a {
1126
+ class F extends I {
1075
1127
  /**
1076
1128
  * Инициализирует экземпляр класса {@link ClientProduct}.
1077
1129
  *
@@ -1137,7 +1189,7 @@ class ge extends _e {
1137
1189
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [_r(s), i])) : void 0;
1138
1190
  }
1139
1191
  }
1140
- class hr extends ee {
1192
+ class gr extends re {
1141
1193
  /**
1142
1194
  * Инициализирует экземпляр класса {@link OrderItemBase}.
1143
1195
  *
@@ -1196,7 +1248,7 @@ class hr extends ee {
1196
1248
  this.product = new F(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ge(), this.currency = e.currency ? new x(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && qr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creatorUser = e.creatorUser && new d(e.creatorUser);
1197
1249
  }
1198
1250
  }
1199
- let ot = class extends hr {
1251
+ let ot = class extends gr {
1200
1252
  /**
1201
1253
  * Инициализирует экземпляр класса {@link OrderItem}.
1202
1254
  *
@@ -1277,7 +1329,7 @@ const P = class P {
1277
1329
  /**
1278
1330
  * Базовый URL путь для выполнения запросов.
1279
1331
  */
1280
- t(this, "baseUrl", `${I().config.http.portalApiUrl}/api`);
1332
+ t(this, "baseUrl", `${L().config.http.portalApiUrl}/api`);
1281
1333
  /**
1282
1334
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
1283
1335
  *
@@ -1666,10 +1718,10 @@ class _ extends ge {
1666
1718
  * Список продуктов категории.
1667
1719
  */
1668
1720
  t(this, "products");
1669
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new _(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new a(o));
1721
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new _(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1670
1722
  }
1671
1723
  }
1672
- class gr {
1724
+ class mr {
1673
1725
  /**
1674
1726
  * Инициализирует экземпляр класса {@link ContactLinks}.
1675
1727
  *
@@ -1717,7 +1769,7 @@ class Me extends k {
1717
1769
  * @inheritDoc
1718
1770
  */
1719
1771
  t(this, "isRegionalDirector");
1720
- this.salesDirection = e != null && e.salesDirection ? new O(e.salesDirection) : new O(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new gr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1772
+ this.salesDirection = e != null && e.salesDirection ? new O(e.salesDirection) : new O(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new mr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1721
1773
  }
1722
1774
  }
1723
1775
  class Be extends R {
@@ -1836,7 +1888,7 @@ class we extends pt {
1836
1888
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new we(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new F(o));
1837
1889
  }
1838
1890
  }
1839
- class mr {
1891
+ class fr {
1840
1892
  /**
1841
1893
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1842
1894
  *
@@ -1854,7 +1906,7 @@ class mr {
1854
1906
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1855
1907
  }
1856
1908
  }
1857
- class Se extends mr {
1909
+ class Se extends fr {
1858
1910
  /**
1859
1911
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1860
1912
  *
@@ -1889,12 +1941,12 @@ class ze extends k {
1889
1941
  * @inheritDoc
1890
1942
  */
1891
1943
  t(this, "curatedDirection");
1892
- this.photo = e.photo, this.contacts = new gr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
1944
+ this.photo = e.photo, this.contacts = new mr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
1893
1945
  }
1894
1946
  }
1895
- class X extends R {
1947
+ class Z extends R {
1896
1948
  }
1897
- class le extends R {
1949
+ class ue extends R {
1898
1950
  /**
1899
1951
  * Инициализирует экземпляр класса {@link Region}.
1900
1952
  *
@@ -1905,8 +1957,8 @@ class le extends R {
1905
1957
  /**
1906
1958
  * Данные о стране, в которой расположен регион.
1907
1959
  */
1908
- t(this, "country", new X());
1909
- e && (this.country = new X(e.country));
1960
+ t(this, "country", new Z());
1961
+ e && (this.country = new Z(e.country));
1910
1962
  }
1911
1963
  }
1912
1964
  class Ae extends R {
@@ -1920,11 +1972,11 @@ class Ae extends R {
1920
1972
  /**
1921
1973
  * Данные о регионе, в котором расположен город.
1922
1974
  */
1923
- t(this, "region", new le());
1924
- e && (this.region = new le(e.region));
1975
+ t(this, "region", new ue());
1976
+ e && (this.region = new ue(e.region));
1925
1977
  }
1926
1978
  }
1927
- class fr extends k {
1979
+ class yr extends k {
1928
1980
  /**
1929
1981
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1930
1982
  *
@@ -1963,7 +2015,7 @@ class fr extends k {
1963
2015
  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 O(e.salesDirection) : void 0, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = v(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1964
2016
  }
1965
2017
  }
1966
- class me extends fr {
2018
+ class me extends yr {
1967
2019
  /**
1968
2020
  * Инициализирует экземпляр класса {@link Client}.
1969
2021
  *
@@ -2012,7 +2064,7 @@ class me extends fr {
2012
2064
  this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Me(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new ze(o))) ?? void 0;
2013
2065
  }
2014
2066
  }
2015
- class se extends ee {
2067
+ class ie extends re {
2016
2068
  /**
2017
2069
  * Инициализирует новый экземпляр класса.
2018
2070
  *
@@ -2039,7 +2091,7 @@ class se extends ee {
2039
2091
  this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new me(e == null ? void 0 : e.client), this.priceTemplate = new K(e == null ? void 0 : e.priceTemplate);
2040
2092
  }
2041
2093
  }
2042
- class ke extends mr {
2094
+ class ke extends fr {
2043
2095
  /**
2044
2096
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2045
2097
  *
@@ -2051,12 +2103,12 @@ class ke extends mr {
2051
2103
  * Базовые данные о продукте.
2052
2104
  */
2053
2105
  t(this, "product");
2054
- this.product = new a(e == null ? void 0 : e.product);
2106
+ this.product = new I(e == null ? void 0 : e.product);
2055
2107
  }
2056
2108
  }
2057
- class yr extends R {
2109
+ class wr extends R {
2058
2110
  }
2059
- class ie extends k {
2111
+ class ne extends k {
2060
2112
  /**
2061
2113
  * Инициализирует экземпляр класса {@link Property}.
2062
2114
  *
@@ -2076,7 +2128,7 @@ class ie extends k {
2076
2128
  * Дополнительные метаданные свойства.
2077
2129
  */
2078
2130
  t(this, "metadata");
2079
- this.type = new yr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2131
+ this.type = new wr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2080
2132
  }
2081
2133
  }
2082
2134
  class V {
@@ -2095,7 +2147,7 @@ class V {
2095
2147
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2096
2148
  */
2097
2149
  t(this, "value");
2098
- this.property = new ie(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2150
+ this.property = new ne(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2099
2151
  }
2100
2152
  }
2101
2153
  class S {
@@ -2180,7 +2232,7 @@ class zt {
2180
2232
  }), !((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;
2181
2233
  }
2182
2234
  }
2183
- class ne extends k {
2235
+ class oe extends k {
2184
2236
  /**
2185
2237
  * Инициализирует экземпляр класса {@link PricingRole}.
2186
2238
  *
@@ -2234,7 +2286,7 @@ class Qe {
2234
2286
  * Минимальный коэффициент цены.
2235
2287
  */
2236
2288
  t(this, "minCoefficient");
2237
- this.role = new ne(r == null ? void 0 : r.role), this.category = new ge(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
2289
+ this.role = new oe(r == null ? void 0 : r.role), this.category = new ge(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
2238
2290
  }
2239
2291
  }
2240
2292
  class Wt extends p {
@@ -2264,7 +2316,7 @@ class Wt extends p {
2264
2316
  */
2265
2317
  // eslint-disable-next-line class-methods-use-this
2266
2318
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2267
- let c = `${I().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2319
+ let c = `${L().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2268
2320
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2269
2321
  }
2270
2322
  }
@@ -2479,7 +2531,7 @@ class Et extends p {
2479
2531
  return this.get(
2480
2532
  `/internal/clients/${r}/price/templates`,
2481
2533
  {},
2482
- (e) => e.data.map((s) => new se(s))
2534
+ (e) => e.data.map((s) => new ie(s))
2483
2535
  );
2484
2536
  }
2485
2537
  /**
@@ -2490,7 +2542,7 @@ class Et extends p {
2490
2542
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2491
2543
  */
2492
2544
  getActiveTemplate(r) {
2493
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new se(e.data), !0);
2545
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new ie(e.data), !0);
2494
2546
  }
2495
2547
  /**
2496
2548
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2502,14 +2554,14 @@ class Et extends p {
2502
2554
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2503
2555
  */
2504
2556
  attachTemplate(r, e, s) {
2505
- const i = I().config.dateFormats.api;
2557
+ const i = L().config.dateFormats.api;
2506
2558
  return this.post(
2507
2559
  `/internal/clients/${r}/price/templates/${e}`,
2508
2560
  s && {
2509
2561
  startAt: s.startAt && U(s.startAt, i),
2510
2562
  endAt: s.endAt && U(s.endAt, i)
2511
2563
  },
2512
- (o) => new se(o.data),
2564
+ (o) => new ie(o.data),
2513
2565
  {},
2514
2566
  !0
2515
2567
  );
@@ -2536,14 +2588,14 @@ class Et extends p {
2536
2588
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2537
2589
  */
2538
2590
  changeTemplate(r, e, s, i) {
2539
- const o = I().config.dateFormats.api;
2591
+ const o = L().config.dateFormats.api;
2540
2592
  return this.patch(
2541
2593
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2542
2594
  i && {
2543
2595
  startAt: i.startAt && U(i.startAt, o),
2544
2596
  endAt: i.endAt && U(i.endAt, o)
2545
2597
  },
2546
- (c) => new se(c.data)
2598
+ (c) => new ie(c.data)
2547
2599
  );
2548
2600
  }
2549
2601
  /**
@@ -2619,7 +2671,7 @@ class Vt extends p {
2619
2671
  showHidden: s,
2620
2672
  withPriceCoefficients: e
2621
2673
  },
2622
- (i) => he(i.data, (o) => new a(o))
2674
+ (i) => he(i.data, (o) => new I(o))
2623
2675
  );
2624
2676
  }
2625
2677
  /**
@@ -2661,7 +2713,7 @@ class Kt extends p {
2661
2713
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2662
2714
  */
2663
2715
  getProductData(r, e = !1) {
2664
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new a(s.data));
2716
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new I(s.data));
2665
2717
  }
2666
2718
  /**
2667
2719
  * Возвращает публичные данные об указанном продукте.
@@ -2669,7 +2721,7 @@ class Kt extends p {
2669
2721
  * @param productId Идентификатор продукта.
2670
2722
  */
2671
2723
  getPublicProductData(r) {
2672
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new a(e.data));
2724
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
2673
2725
  }
2674
2726
  /**
2675
2727
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2694,7 +2746,7 @@ class Kt extends p {
2694
2746
  publicSimpleSearch(r, e = 10) {
2695
2747
  return new Promise((s, i) => {
2696
2748
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2697
- s(o.products.map((c) => new a(c)));
2749
+ s(o.products.map((c) => new I(c)));
2698
2750
  }).catch((o) => {
2699
2751
  i(o);
2700
2752
  });
@@ -2816,7 +2868,7 @@ class Ye {
2816
2868
  field: this.field,
2817
2869
  op: this.op
2818
2870
  };
2819
- return r.value = xe(this.value) ? U(this.value, I().config.dateFormats.api) : this.value, r;
2871
+ return r.value = xe(this.value) ? U(this.value, L().config.dateFormats.api) : this.value, r;
2820
2872
  }
2821
2873
  }
2822
2874
  class G {
@@ -3075,7 +3127,7 @@ class Xt extends De {
3075
3127
  return this.get(
3076
3128
  `/internal/price/templates/${r}/clients`,
3077
3129
  {},
3078
- (e) => e.data.map((s) => new se(s))
3130
+ (e) => e.data.map((s) => new ie(s))
3079
3131
  );
3080
3132
  }
3081
3133
  }
@@ -3086,7 +3138,7 @@ class Zt extends p {
3086
3138
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
3087
3139
  */
3088
3140
  getRoles() {
3089
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ne(e)));
3141
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new oe(e)));
3090
3142
  }
3091
3143
  /**
3092
3144
  * Добавляет новую роль ценообразования.
@@ -3096,7 +3148,7 @@ class Zt extends p {
3096
3148
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
3097
3149
  */
3098
3150
  createRole(r) {
3099
- return this.post("/internal/price/roles", r, (e) => new ne(e.data));
3151
+ return this.post("/internal/price/roles", r, (e) => new oe(e.data));
3100
3152
  }
3101
3153
  /**
3102
3154
  * Возвращает данные роли ценообразования.
@@ -3106,7 +3158,7 @@ class Zt extends p {
3106
3158
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
3107
3159
  */
3108
3160
  getRole(r) {
3109
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new ne(e.data));
3161
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new oe(e.data));
3110
3162
  }
3111
3163
  /**
3112
3164
  * Обновляет данные роли ценообразования.
@@ -3117,7 +3169,7 @@ class Zt extends p {
3117
3169
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
3118
3170
  */
3119
3171
  updateRole(r, e) {
3120
- return this.patch(`/internal/price/roles/${r}`, e, (s) => new ne(s.data));
3172
+ return this.patch(`/internal/price/roles/${r}`, e, (s) => new oe(s.data));
3121
3173
  }
3122
3174
  /**
3123
3175
  * Удаляет роль ценообразования.
@@ -3172,7 +3224,7 @@ class es extends De {
3172
3224
  getProperties(r, e, s) {
3173
3225
  return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
3174
3226
  const o = { ...i.data };
3175
- return o.data = o.data.map((c) => new ie(c)), o;
3227
+ return o.data = o.data.map((c) => new ne(c)), o;
3176
3228
  });
3177
3229
  }
3178
3230
  /**
@@ -3189,7 +3241,7 @@ class es extends De {
3189
3241
  ...s,
3190
3242
  type: e
3191
3243
  },
3192
- (i) => new ie(i.data)
3244
+ (i) => new ne(i.data)
3193
3245
  );
3194
3246
  }
3195
3247
  /**
@@ -3199,7 +3251,7 @@ class es extends De {
3199
3251
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3200
3252
  */
3201
3253
  getProperty(r) {
3202
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ie(e.data));
3254
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ne(e.data));
3203
3255
  }
3204
3256
  /**
3205
3257
  * Обновляет существующее свойство.
@@ -3216,7 +3268,7 @@ class es extends De {
3216
3268
  ...i,
3217
3269
  type: s
3218
3270
  },
3219
- (o) => new ie(o.data)
3271
+ (o) => new ne(o.data)
3220
3272
  );
3221
3273
  }
3222
3274
  /**
@@ -3589,7 +3641,7 @@ class rs extends p {
3589
3641
  showHidden: i,
3590
3642
  withPriceCoefficients: s
3591
3643
  },
3592
- (o) => he(o.data, (c) => new a(c))
3644
+ (o) => he(o.data, (c) => new I(c))
3593
3645
  );
3594
3646
  }
3595
3647
  }
@@ -3626,14 +3678,12 @@ function Ze(n) {
3626
3678
  var ht = /* @__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.Curators = "curators", n))(ht || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
3627
3679
  class gt extends R {
3628
3680
  }
3629
- class wr extends R {
3681
+ class vr extends R {
3630
3682
  }
3631
3683
  class ts extends R {
3632
3684
  }
3633
3685
  class mt extends R {
3634
3686
  }
3635
- class N extends R {
3636
- }
3637
3687
  class M extends R {
3638
3688
  /**
3639
3689
  * Возвращает сгенерированную запись-описание физического лица.
@@ -3647,73 +3697,23 @@ class M extends R {
3647
3697
  });
3648
3698
  }
3649
3699
  }
3650
- class vr extends R {
3700
+ class Cr extends R {
3651
3701
  }
3652
3702
  class ft extends R {
3653
3703
  }
3654
3704
  class yt extends R {
3655
3705
  }
3656
- class Z extends R {
3706
+ class ee extends R {
3657
3707
  }
3658
- class Cr extends R {
3708
+ class Rr extends R {
3659
3709
  }
3660
3710
  class wt extends R {
3661
3711
  }
3662
- class Rr extends R {
3663
- }
3664
3712
  class Pr extends R {
3665
3713
  }
3666
- class Ar {
3667
- /**
3668
- * Инициализирует экземпляр класса {@link GeoCoordinates}.
3669
- *
3670
- * @param data Данные для первоначальной инициализации.
3671
- */
3672
- constructor(r) {
3673
- /**
3674
- * Широта.
3675
- */
3676
- t(this, "lat");
3677
- /**
3678
- * Долгота.
3679
- */
3680
- t(this, "long");
3681
- this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
3682
- }
3714
+ class Ar extends R {
3683
3715
  }
3684
- class ue extends R {
3685
- /**
3686
- * Инициализирует экземпляр класса {@link Warehouse}.
3687
- *
3688
- * @param data Данные для первоначальной инициализации.
3689
- */
3690
- constructor(e) {
3691
- var s;
3692
- super(e);
3693
- /**
3694
- * Адрес склада.
3695
- */
3696
- t(this, "address");
3697
- /**
3698
- * Признак того, что склад является основным.
3699
- */
3700
- t(this, "isMain");
3701
- /**
3702
- * Список типов доставки.
3703
- */
3704
- t(this, "deliveryTypes");
3705
- /**
3706
- * Список идентификаторов регионов, в которые осуществляется доставка со склада.
3707
- */
3708
- t(this, "regions");
3709
- /**
3710
- * Координаты склада.
3711
- */
3712
- t(this, "coordinates");
3713
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new N(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Ar(e == null ? void 0 : e.coordinates);
3714
- }
3715
- }
3716
- class qe extends ee {
3716
+ class qe extends re {
3717
3717
  /**
3718
3718
  * Инициализирует экземпляр класса {@link BankAccount}.
3719
3719
  *
@@ -3814,7 +3814,7 @@ class Dr extends k {
3814
3814
  /**
3815
3815
  * Группа партнеров (направление деятельности).
3816
3816
  */
3817
- t(this, "partnerGroup", new Z());
3817
+ t(this, "partnerGroup", new ee());
3818
3818
  /**
3819
3819
  * Список контактных лиц контрагента.
3820
3820
  */
@@ -3848,7 +3848,7 @@ class Dr extends k {
3848
3848
  */
3849
3849
  t(this, "updater");
3850
3850
  if (e) {
3851
- if (this.opf = new M(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Z(e.partnerGroup)), e.contacts) {
3851
+ if (this.opf = new M(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ee(e.partnerGroup)), e.contacts) {
3852
3852
  const s = [];
3853
3853
  e.contacts.forEach((i) => {
3854
3854
  s.push(new B(i));
@@ -3942,7 +3942,7 @@ class Ct extends $r {
3942
3942
  /**
3943
3943
  * Страна регистрации юридического лица нерезидента.
3944
3944
  */
3945
- t(this, "registrationCountry", new X());
3945
+ t(this, "registrationCountry", new Z());
3946
3946
  /**
3947
3947
  * Регистрационный номер юридического лица нерезидента.
3948
3948
  */
@@ -3951,7 +3951,7 @@ class Ct extends $r {
3951
3951
  * Налоговый номер юридического лица нерезидента.
3952
3952
  */
3953
3953
  t(this, "taxNumber", "");
3954
- e && (this.registrationCountry = new X(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3954
+ e && (this.registrationCountry = new Z(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3955
3955
  }
3956
3956
  }
3957
3957
  class ve {
@@ -3973,7 +3973,7 @@ class ve {
3973
3973
  }
3974
3974
  }
3975
3975
  }
3976
- class ae extends ee {
3976
+ class Ie extends re {
3977
3977
  /**
3978
3978
  * Инициализирует экземпляр класса {@link ContactRelation}.
3979
3979
  *
@@ -4013,7 +4013,7 @@ class Rt extends B {
4013
4013
  */
4014
4014
  addresses: []
4015
4015
  });
4016
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new ae(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new ae(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new ae(s))));
4016
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Ie(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Ie(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Ie(s))));
4017
4017
  }
4018
4018
  }
4019
4019
  class Ce extends rt {
@@ -4053,7 +4053,7 @@ class Ce extends rt {
4053
4053
  * Признак того, что указанный адрес является адресом транспортной компании.
4054
4054
  */
4055
4055
  t(this, "isTransportCompanyAddress");
4056
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ar(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new B(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4056
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new hr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new B(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4057
4057
  }
4058
4058
  }
4059
4059
  class er extends me {
@@ -4106,7 +4106,7 @@ class er extends me {
4106
4106
  * @inheritDoc
4107
4107
  */
4108
4108
  t(this, "extraData");
4109
- 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 Z(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Ce(u))) ?? [], this.channelPrimaryInterest = new wr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Pr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new N(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ue(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4109
+ 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 ee(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Ce(u))) ?? [], this.channelPrimaryInterest = new vr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ar(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new N(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new X(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4110
4110
  }
4111
4111
  }
4112
4112
  class br {
@@ -4224,7 +4224,7 @@ class ss extends br {
4224
4224
  * @inheritDoc
4225
4225
  */
4226
4226
  t(this, "lastOrder");
4227
- this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new le(e == null ? void 0 : e.region), this.country = new X(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new Pe(D))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new ze(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new O(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new M(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new N(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new Z(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
4227
+ this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new ue(e == null ? void 0 : e.region), this.country = new Z(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new Pe(D))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new ze(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new O(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new M(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new N(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new ee(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
4228
4228
  createdAt: new S((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
4229
4229
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4230
4230
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
@@ -4239,7 +4239,7 @@ class ss extends br {
4239
4239
  this.cities = [];
4240
4240
  break;
4241
4241
  case "region":
4242
- this.region = new le();
4242
+ this.region = new ue();
4243
4243
  break;
4244
4244
  case "isActive":
4245
4245
  this.isActive = !0;
@@ -4289,7 +4289,7 @@ class ss extends br {
4289
4289
  return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, e;
4290
4290
  }
4291
4291
  }
4292
- class Sr extends ee {
4292
+ class Sr extends re {
4293
4293
  /**
4294
4294
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4295
4295
  *
@@ -4349,7 +4349,7 @@ class Pt extends k {
4349
4349
  * @inheritDoc
4350
4350
  */
4351
4351
  t(this, "curators");
4352
- this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new N(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Me(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new ze(u))) ?? void 0;
4352
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new ee(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new N(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Me(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new ze(u))) ?? void 0;
4353
4353
  }
4354
4354
  }
4355
4355
  class At {
@@ -4419,7 +4419,7 @@ class ns {
4419
4419
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4420
4420
  }
4421
4421
  }
4422
- class L extends De {
4422
+ class a extends De {
4423
4423
  /**
4424
4424
  * Преобразует данные о клиенте в данные требуемые для запроса.
4425
4425
  *
@@ -4643,7 +4643,7 @@ class L extends De {
4643
4643
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4644
4644
  */
4645
4645
  createClientCommonData(r, e = {}) {
4646
- return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new er(s.data), e);
4646
+ return this.post("/internal/clients", a.transformClientDataToRequest(r), (s) => new er(s.data), e);
4647
4647
  }
4648
4648
  /**
4649
4649
  * Обновляет данные указанного клиента.
@@ -4653,7 +4653,7 @@ class L extends De {
4653
4653
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4654
4654
  */
4655
4655
  updateClientCommonData(r, e = {}) {
4656
- return this.patch(`/internal/clients/${r.id}`, L.transformClientDataToRequest(r), void 0, e);
4656
+ return this.patch(`/internal/clients/${r.id}`, a.transformClientDataToRequest(r), void 0, e);
4657
4657
  }
4658
4658
  /**
4659
4659
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -4782,7 +4782,7 @@ class L extends De {
4782
4782
  createContragentClientData(r, e, s = {}) {
4783
4783
  return this.post(
4784
4784
  `/internal/clients/${r}/contragents`,
4785
- L.transformContragentClientDataToRequest(e),
4785
+ a.transformContragentClientDataToRequest(e),
4786
4786
  (i) => ve.createInstance(i.data),
4787
4787
  s
4788
4788
  );
@@ -4798,7 +4798,7 @@ class L extends De {
4798
4798
  updateContragentClientData(r, e, s = {}) {
4799
4799
  return this.patch(
4800
4800
  `/internal/clients/${r}/contragents/${e.id}`,
4801
- L.transformContragentClientDataToRequest(e),
4801
+ a.transformContragentClientDataToRequest(e),
4802
4802
  (i) => ve.createInstance(i.data),
4803
4803
  s
4804
4804
  );
@@ -4824,7 +4824,7 @@ class L extends De {
4824
4824
  createClientDeliveryAddress(r, e, s = {}) {
4825
4825
  return this.post(
4826
4826
  `/internal/clients/${r}/delivery-addresses`,
4827
- L.transformClientDeliveryAddressToRequest(e),
4827
+ a.transformClientDeliveryAddressToRequest(e),
4828
4828
  (i) => new Ce(i.data),
4829
4829
  s
4830
4830
  );
@@ -4840,7 +4840,7 @@ class L extends De {
4840
4840
  updateClientDeliveryAddress(r, e, s = {}) {
4841
4841
  return this.patch(
4842
4842
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4843
- L.transformClientDeliveryAddressToRequest(e),
4843
+ a.transformClientDeliveryAddressToRequest(e),
4844
4844
  (i) => new Ce(i.data),
4845
4845
  s
4846
4846
  );
@@ -4867,7 +4867,7 @@ class L extends De {
4867
4867
  createContragentBankAccount(r, e, s, i = {}) {
4868
4868
  return this.post(
4869
4869
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4870
- L.transformClientContragentBankAccountToRequest(s),
4870
+ a.transformClientContragentBankAccountToRequest(s),
4871
4871
  (o) => new qe(o.data),
4872
4872
  i
4873
4873
  );
@@ -4884,7 +4884,7 @@ class L extends De {
4884
4884
  updateContragentBankAccount(r, e, s, i = {}) {
4885
4885
  return this.patch(
4886
4886
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4887
- L.transformClientContragentBankAccountToRequest(s),
4887
+ a.transformClientContragentBankAccountToRequest(s),
4888
4888
  (o) => new qe(o.data),
4889
4889
  i
4890
4890
  );
@@ -5117,7 +5117,7 @@ const Q = class Q extends p {
5117
5117
  * Время кэширования данных ответов на запросы (секунд).
5118
5118
  */
5119
5119
  t(this, "responseDataCacheTimeout");
5120
- this.responseDataCacheTimeout = I().config.http.responseDataCacheTimeout;
5120
+ this.responseDataCacheTimeout = L().config.http.responseDataCacheTimeout;
5121
5121
  }
5122
5122
  /**
5123
5123
  * Возвращает кэшированные данные.
@@ -5233,7 +5233,7 @@ class ls extends p {
5233
5233
  const o = this.get(
5234
5234
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5235
5235
  { params: s, client_id: e },
5236
- (u) => new a(u.data)
5236
+ (u) => new I(u.data)
5237
5237
  );
5238
5238
  return o.catch((u) => {
5239
5239
  this.errorResponseHandler(u, i);
@@ -5369,7 +5369,7 @@ class Tt extends pe {
5369
5369
  return this.cacheResponse(r, i), i;
5370
5370
  }
5371
5371
  }
5372
- class ar extends Sr {
5372
+ class Ir extends Sr {
5373
5373
  /**
5374
5374
  * Инициализирует экземпляр класса {@link OrderInfo}.
5375
5375
  *
@@ -5434,7 +5434,7 @@ class ar extends Sr {
5434
5434
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5435
5435
  date: v((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
5436
5436
  address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Ce(e.delivery.address) : void 0,
5437
- warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new ue(e.delivery.warehouse) : void 0
5437
+ warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new X(e.delivery.warehouse) : void 0
5438
5438
  }, this.attachedUser = e != null && e.attachedUser ? new d(e == null ? void 0 : e.attachedUser) : void 0, this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.pendingAt = v(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = v(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, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
5439
5439
  }
5440
5440
  }
@@ -5455,7 +5455,7 @@ class b extends pe {
5455
5455
  * первичного интереса.
5456
5456
  */
5457
5457
  getChannelPrimaryInterest() {
5458
- return this.getTypedDataArrayRequester(wr, "/internal/references/channel-primary-interest", !0);
5458
+ return this.getTypedDataArrayRequester(vr, "/internal/references/channel-primary-interest", !0);
5459
5459
  }
5460
5460
  /**
5461
5461
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
@@ -5480,7 +5480,7 @@ class b extends pe {
5480
5480
  * групп партнеров (направлений деятельности).
5481
5481
  */
5482
5482
  getPartnerGroup() {
5483
- return this.getTypedDataArrayRequester(Z, "/internal/references/partner-group", !0);
5483
+ return this.getTypedDataArrayRequester(ee, "/internal/references/partner-group", !0);
5484
5484
  }
5485
5485
  /**
5486
5486
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
@@ -5492,7 +5492,7 @@ class b extends pe {
5492
5492
  * Возвращает {@link Promise} для получения справочника операторов.
5493
5493
  */
5494
5494
  getOperators() {
5495
- return this.getTypedDataArrayRequester(vr, "/internal/references/operator", !0);
5495
+ return this.getTypedDataArrayRequester(Cr, "/internal/references/operator", !0);
5496
5496
  }
5497
5497
  /**
5498
5498
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
@@ -5510,13 +5510,13 @@ class b extends pe {
5510
5510
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5511
5511
  */
5512
5512
  getPaymentTypes() {
5513
- return this.getTypedDataArrayRequester(Cr, "/public/references/payment-type", !0);
5513
+ return this.getTypedDataArrayRequester(Rr, "/public/references/payment-type", !0);
5514
5514
  }
5515
5515
  /**
5516
5516
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
5517
5517
  */
5518
5518
  getResourceTypes() {
5519
- return this.getTypedDataArrayRequester(Rr, "/internal/references/resource-type", !0);
5519
+ return this.getTypedDataArrayRequester(Pr, "/internal/references/resource-type", !0);
5520
5520
  }
5521
5521
  /**
5522
5522
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -5528,7 +5528,7 @@ class b extends pe {
5528
5528
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
5529
5529
  */
5530
5530
  getSourcePrimaryInterest() {
5531
- return this.getTypedDataArrayRequester(Pr, "/internal/references/source-primary-interest", !0);
5531
+ return this.getTypedDataArrayRequester(Ar, "/internal/references/source-primary-interest", !0);
5532
5532
  }
5533
5533
  /**
5534
5534
  * Выполняет поиск данных о городах по терму в названии.
@@ -5544,7 +5544,7 @@ class b extends pe {
5544
5544
  * @param term Терм поиска.
5545
5545
  */
5546
5546
  searchRegion(r) {
5547
- return this.getTypedDataArrayRequester(le, `/internal/references/region-with-country/search?term=${r}`);
5547
+ return this.getTypedDataArrayRequester(ue, `/internal/references/region-with-country/search?term=${r}`);
5548
5548
  }
5549
5549
  /**
5550
5550
  * Выполняет поиск данных о странах по терму в названии.
@@ -5552,7 +5552,7 @@ class b extends pe {
5552
5552
  * @param term Терм поиска.
5553
5553
  */
5554
5554
  searchCountry(r) {
5555
- return this.getTypedDataArrayRequester(X, `/internal/references/country/search?term=${r}`);
5555
+ return this.getTypedDataArrayRequester(Z, `/internal/references/country/search?term=${r}`);
5556
5556
  }
5557
5557
  /**
5558
5558
  * Возвращает {@link Promise} для получения справочника типов доставки.
@@ -5564,13 +5564,13 @@ class b extends pe {
5564
5564
  * Возвращает {@link Promise} для получения справочника складов.
5565
5565
  */
5566
5566
  getWarehouses() {
5567
- return this.getTypedDataArrayRequester(ue, "/public/references/warehouse", !0);
5567
+ return this.getTypedDataArrayRequester(X, "/public/references/warehouse", !0);
5568
5568
  }
5569
5569
  /**
5570
5570
  * Возвращает {@link Promise} для получения справочника типов свойств.
5571
5571
  */
5572
5572
  getPropertyTypes() {
5573
- return this.getTypedDataArrayRequester(yr, "/internal/references/property-type", !0);
5573
+ return this.getTypedDataArrayRequester(wr, "/internal/references/property-type", !0);
5574
5574
  }
5575
5575
  /**
5576
5576
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -5586,7 +5586,7 @@ class b extends pe {
5586
5586
  }
5587
5587
  }
5588
5588
  const $ = z("common.references_private", () => {
5589
- 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), h = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), re = y(void 0), te = y(void 0), W = y(void 0), J = y(void 0), Te = y(void 0), $e = y(void 0), l = y(void 0);
5589
+ 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), h = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), te = y(void 0), se = y(void 0), W = y(void 0), J = y(void 0), Te = y(void 0), $e = y(void 0), l = y(void 0);
5590
5590
  return {
5591
5591
  /**
5592
5592
  * Список загружаемых/загруженных на данный момент значений.
@@ -5639,11 +5639,11 @@ const $ = z("common.references_private", () => {
5639
5639
  /**
5640
5640
  * Справочник типов файлов продукктов/категорий.
5641
5641
  */
5642
- productFileTypeReference: re,
5642
+ productFileTypeReference: te,
5643
5643
  /**
5644
5644
  * Справочник типов ресурсов.
5645
5645
  */
5646
- resourceTypesReference: te,
5646
+ resourceTypesReference: se,
5647
5647
  /**
5648
5648
  * Справочник направлений продаж.
5649
5649
  */
@@ -5726,12 +5726,12 @@ const $ = z("common.references_private", () => {
5726
5726
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(b).getSalesDirections().then((g) => {
5727
5727
  l.salesDirectionsReference = g;
5728
5728
  }).catch(w)), l.salesDirectionsReference;
5729
- }), re = A(() => {
5729
+ }), te = A(() => {
5730
5730
  const l = $();
5731
5731
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(b).getSourcePrimaryInterest().then((g) => {
5732
5732
  l.sourcePrimaryInterestReference = g;
5733
5733
  }).catch(w)), l.sourcePrimaryInterestReference;
5734
- }), te = A(() => {
5734
+ }), se = A(() => {
5735
5735
  const l = $();
5736
5736
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(b).getDeliveryTypes().then((g) => {
5737
5737
  l.deliveryTypeReference = g;
@@ -5809,11 +5809,11 @@ const $ = z("common.references_private", () => {
5809
5809
  /**
5810
5810
  * Справочник каналов первичного интереса.
5811
5811
  */
5812
- sourcePrimaryInterestsReference: re,
5812
+ sourcePrimaryInterestsReference: te,
5813
5813
  /**
5814
5814
  * Справочник типов доставки.
5815
5815
  */
5816
- deliveryTypeReference: te,
5816
+ deliveryTypeReference: se,
5817
5817
  /**
5818
5818
  * Список менеджеров.
5819
5819
  */
@@ -5925,7 +5925,7 @@ class ms extends br {
5925
5925
  * @inheritDoc
5926
5926
  */
5927
5927
  t(this, "isLargeOrder");
5928
- this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((c) => new vr(c)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new d(e.creator) : void 0, this.deliveryDate = new S(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((c) => new Ae(c)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isApproved1c = e == null ? void 0 : e.isApproved1c, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.pendingAt = new S(e == null ? void 0 : e.pendingAt), this.processedAt = new S(e == null ? void 0 : e.processedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((c) => new O(c)), this.status = e == null ? void 0 : e.status, this.deliveryType = e != null && e.deliveryType ? new N(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Cr(e.paymentType) : void 0, this.warehouse = e != null && e.warehouse ? new ue(e.warehouse) : void 0;
5928
+ this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((c) => new Cr(c)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new d(e.creator) : void 0, this.deliveryDate = new S(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((c) => new Ae(c)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isApproved1c = e == null ? void 0 : e.isApproved1c, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.pendingAt = new S(e == null ? void 0 : e.pendingAt), this.processedAt = new S(e == null ? void 0 : e.processedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((c) => new O(c)), this.status = e == null ? void 0 : e.status, this.deliveryType = e != null && e.deliveryType ? new N(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Rr(e.paymentType) : void 0, this.warehouse = e != null && e.warehouse ? new X(e.warehouse) : void 0;
5929
5929
  }
5930
5930
  /**
5931
5931
  * @inheritDoc
@@ -5960,7 +5960,7 @@ class ms extends br {
5960
5960
  this.status = [];
5961
5961
  break;
5962
5962
  case "warehouse":
5963
- this.warehouse = new ue();
5963
+ this.warehouse = new X();
5964
5964
  break;
5965
5965
  default:
5966
5966
  this[e] = void 0;
@@ -5977,7 +5977,7 @@ class ms extends br {
5977
5977
  return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.pendingAt) != null && u.from) && !((h = e == null ? void 0 : e.pendingAt) != null && h.to) && delete e.pendingAt, !((m = e == null ? void 0 : e.processedAt) != null && m.from) && !((f = e == null ? void 0 : e.processedAt) != null && f.to) && delete e.processedAt, e;
5978
5978
  }
5979
5979
  }
5980
- class bt extends hr {
5980
+ class bt extends gr {
5981
5981
  /**
5982
5982
  * Инициализирует экземпляр класса {@link OrderItem}.
5983
5983
  *
@@ -6028,7 +6028,7 @@ class bt extends hr {
6028
6028
  this.product = new F(e.product), this.currency = new x(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
6029
6029
  }
6030
6030
  }
6031
- class Ie extends ar {
6031
+ class Le extends Ir {
6032
6032
  /**
6033
6033
  * Инициализирует экземпляр класса {@link Order}.
6034
6034
  *
@@ -6091,7 +6091,7 @@ class fs extends De {
6091
6091
  {},
6092
6092
  (o) => {
6093
6093
  const c = { ...o.data };
6094
- return c.data = c.data.map((u) => new ar(u)), c;
6094
+ return c.data = c.data.map((u) => new Ir(u)), c;
6095
6095
  },
6096
6096
  void 0,
6097
6097
  i
@@ -6129,7 +6129,7 @@ class fs extends De {
6129
6129
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
6130
6130
  */
6131
6131
  getOrder(r) {
6132
- return this.get(`/internal/orders/${r}`, {}, (e) => new Ie(e.data));
6132
+ return this.get(`/internal/orders/${r}`, {}, (e) => new Le(e.data));
6133
6133
  }
6134
6134
  /**
6135
6135
  * Добавляет продукт в заказ и возвращает обновлённые данные заказа.
@@ -6157,7 +6157,7 @@ class fs extends De {
6157
6157
  is_additional_sale: e.isAdditionalSale,
6158
6158
  ...e.configuratorParams
6159
6159
  },
6160
- (i) => new Ie(i.data),
6160
+ (i) => new Le(i.data),
6161
6161
  s
6162
6162
  );
6163
6163
  }
@@ -6187,12 +6187,12 @@ class fs extends De {
6187
6187
  marker: s.marker,
6188
6188
  ...s.configuratorParams
6189
6189
  },
6190
- (o) => new Ie(o.data),
6190
+ (o) => new Le(o.data),
6191
6191
  i
6192
6192
  );
6193
6193
  }
6194
6194
  }
6195
- class Le {
6195
+ class ae {
6196
6196
  /**
6197
6197
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
6198
6198
  *
@@ -6219,7 +6219,7 @@ class Le {
6219
6219
  * Источник клиентской цены.
6220
6220
  */
6221
6221
  t(this, "source");
6222
- this.client = new me(r == null ? void 0 : r.client), this.product = new a(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) ?? Ge.Product;
6222
+ this.client = new me(r == null ? void 0 : r.client), this.product = new I(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) ?? Ge.Product;
6223
6223
  }
6224
6224
  }
6225
6225
  const de = (n) => {
@@ -6256,7 +6256,7 @@ class ys extends p {
6256
6256
  ...rr(e),
6257
6257
  filters: de(s)
6258
6258
  },
6259
- (i) => i.data.map((o) => new Le(o))
6259
+ (i) => i.data.map((o) => new ae(o))
6260
6260
  );
6261
6261
  }
6262
6262
  /**
@@ -6275,7 +6275,7 @@ class ys extends p {
6275
6275
  ...rr(e),
6276
6276
  filters: de(s)
6277
6277
  },
6278
- (i) => i.data.map((o) => new Le(o))
6278
+ (i) => i.data.map((o) => new ae(o))
6279
6279
  );
6280
6280
  }
6281
6281
  /**
@@ -6296,7 +6296,7 @@ class ys extends p {
6296
6296
  ...e,
6297
6297
  filters: de(s)
6298
6298
  },
6299
- (i) => i.data.map((o) => new Le(o))
6299
+ (i) => i.data.map((o) => new ae(o))
6300
6300
  );
6301
6301
  }
6302
6302
  }
@@ -6347,10 +6347,10 @@ class St {
6347
6347
  * @inheritDoc
6348
6348
  */
6349
6349
  t(this, "currency");
6350
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = v(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ce(r.product) : void 0, this.client = r.client ? new d(r.client) : void 0, this.executor = r.executor ? new d(r.executor) : void 0, this.currency = r.currency ? new x(r.currency) : void 0;
6350
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = v(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new le(r.product) : void 0, this.client = r.client ? new d(r.client) : void 0, this.executor = r.executor ? new d(r.executor) : void 0, this.currency = r.currency ? new x(r.currency) : void 0;
6351
6351
  }
6352
6352
  }
6353
- class kt extends ce {
6353
+ class kt extends le {
6354
6354
  /**
6355
6355
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
6356
6356
  *
@@ -6375,8 +6375,8 @@ class ws extends p {
6375
6375
  */
6376
6376
  getProductPriceHistory(r) {
6377
6377
  var o, c, u, h, m;
6378
- const e = I().config.dateFormats.api, s = or(
6379
- oe(r, {
6378
+ const e = L().config.dateFormats.api, s = or(
6379
+ ce(r, {
6380
6380
  costDate: {
6381
6381
  from: xe((o = r.costDate) == null ? void 0 : o.from) ? U(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6382
6382
  to: xe((u = r.costDate) == null ? void 0 : u.to) ? U(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
@@ -6385,7 +6385,7 @@ class ws extends p {
6385
6385
  (f) => T(f) || (H(f) || cr(f)) && Y(f)
6386
6386
  ), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
6387
6387
  return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((f) => [
6388
- new kt(oe(f[0], { history: f }))
6388
+ new kt(ce(f[0], { history: f }))
6389
6389
  ]);
6390
6390
  }
6391
6391
  }
@@ -6404,7 +6404,7 @@ class tr {
6404
6404
  * Список рекомендованных категорий продуктов.
6405
6405
  */
6406
6406
  t(this, "productCategories", []);
6407
- r != null && r.products && (this.products = r.products.map((e) => new ce(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ce(e)));
6407
+ r != null && r.products && (this.products = r.products.map((e) => new le(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new le(e)));
6408
6408
  }
6409
6409
  }
6410
6410
  class vs extends p {
@@ -6453,7 +6453,7 @@ class vs extends p {
6453
6453
  });
6454
6454
  }
6455
6455
  }
6456
- class at {
6456
+ class It {
6457
6457
  /**
6458
6458
  * Инициализирует экземпляр класса {@link MetaTagItem}.
6459
6459
  *
@@ -6511,7 +6511,7 @@ class sr {
6511
6511
  */
6512
6512
  t(this, "tags");
6513
6513
  var e;
6514
- this.resourceType = new Rr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new at(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6514
+ this.resourceType = new Pr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new It(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6515
6515
  }
6516
6516
  }
6517
6517
  class Cs extends p {
@@ -6592,8 +6592,8 @@ class Rs extends p {
6592
6592
  });
6593
6593
  }
6594
6594
  }
6595
- var It = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(It || {});
6596
- class Lt extends fr {
6595
+ var Lt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Lt || {});
6596
+ class at extends yr {
6597
6597
  /**
6598
6598
  * Инициализирует экземпляр класса {@link User}.
6599
6599
  *
@@ -6621,7 +6621,7 @@ class Ps extends p {
6621
6621
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6622
6622
  */
6623
6623
  constructor() {
6624
- super(), this.baseUrl = `${I().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6624
+ super(), this.baseUrl = `${L().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6625
6625
  }
6626
6626
  /**
6627
6627
  * Функция для получения обновленных токенов доступа.
@@ -6638,7 +6638,7 @@ class dt extends p {
6638
6638
  */
6639
6639
  // eslint-disable-next-line class-methods-use-this
6640
6640
  getCurrentUser() {
6641
- return this.get("/internal/users/info", {}, (r) => new Lt(r.data), !0);
6641
+ return this.get("/internal/users/info", {}, (r) => new at(r.data), !0);
6642
6642
  }
6643
6643
  }
6644
6644
  const xt = z("common.user_state_private", () => {
@@ -6701,13 +6701,13 @@ export {
6701
6701
  ur as CatalogableItem,
6702
6702
  _ as Category,
6703
6703
  Qe as CategoryPricingRule,
6704
- wr as ChannelPrimaryInterest,
6704
+ vr as ChannelPrimaryInterest,
6705
6705
  ts as City,
6706
6706
  Ae as CityWithRegionAndCountry,
6707
6707
  er as Client,
6708
6708
  Pt as ClientAdditionalData,
6709
6709
  we as ClientCategory,
6710
- L as ClientDataProvider,
6710
+ a as ClientDataProvider,
6711
6711
  Jt as ClientPriceProvider,
6712
6712
  Et as ClientPriceTemplateProvider,
6713
6713
  F as ClientProduct,
@@ -6716,15 +6716,15 @@ export {
6716
6716
  me as ClientShortInfo,
6717
6717
  ht as ClientsAdditionalDataRequestTypeEnum,
6718
6718
  ss as ClientsListFilters,
6719
- ce as CodedIdentity,
6719
+ le as CodedIdentity,
6720
6720
  ls as ConfiguratorProvider,
6721
6721
  Dt as ConfiguratorsEnum,
6722
6722
  Ne as Contact,
6723
- gr as ContactLinks,
6723
+ mr as ContactLinks,
6724
6724
  B as ContactPerson,
6725
6725
  Rt as ContactPersonRelated,
6726
6726
  mt as ContactPosition,
6727
- ae as ContactRelation,
6727
+ Ie as ContactRelation,
6728
6728
  Dr as ContragentBase,
6729
6729
  ve as ContragentFactory,
6730
6730
  Tr as ContragentIc,
@@ -6732,7 +6732,7 @@ export {
6732
6732
  Ct as ContragentUlNr,
6733
6733
  $r as ContragentUlR,
6734
6734
  Ge as CostSourceEnum,
6735
- X as Country,
6735
+ Z as Country,
6736
6736
  Be as CuratedDirection,
6737
6737
  ze as Curator,
6738
6738
  x as Currency,
@@ -6751,27 +6751,27 @@ export {
6751
6751
  G as FilterGroup,
6752
6752
  Ye as FilterItem,
6753
6753
  We as FilterOpEnum,
6754
- Ar as GeoCoordinates,
6754
+ hr as GeoCoordinates,
6755
6755
  st as HiddenCatalogableItem,
6756
6756
  pe as HttpCachedRequester,
6757
6757
  Yr as HttpParamsConfig,
6758
6758
  p as HttpRequester,
6759
- ee as Identity,
6759
+ re as Identity,
6760
6760
  tt as Image,
6761
6761
  j as JwtPayload,
6762
6762
  Pe as Manager,
6763
6763
  Me as ManagerCommon,
6764
6764
  hs as ManagerDataFactory,
6765
6765
  Tt as ManagerDataProvider,
6766
- at as MetaTagItem,
6766
+ It as MetaTagItem,
6767
6767
  k as NamedIdentity,
6768
- vr as Operator,
6768
+ Cr as Operator,
6769
6769
  M as Opf,
6770
6770
  q as OpfEnum,
6771
- Ie as Order,
6772
- ar as OrderInfo,
6771
+ Le as Order,
6772
+ Ir as OrderInfo,
6773
6773
  bt as OrderItem,
6774
- hr as OrderItemBase,
6774
+ gr as OrderItemBase,
6775
6775
  ft as OrderPaymentStatus,
6776
6776
  Sr as OrderShortInfo,
6777
6777
  yt as OrderStatus,
@@ -6779,10 +6779,10 @@ export {
6779
6779
  fs as OrdersDataProvider,
6780
6780
  ms as OrdersListFilters,
6781
6781
  br as PaginationFiltersBase,
6782
- Z as PartnerGroup,
6783
- Cr as PaymentType,
6782
+ ee as PartnerGroup,
6783
+ Rr as PaymentType,
6784
6784
  ye as PreferencesStorageProvider,
6785
- Le as PriceAnalyze,
6785
+ ae as PriceAnalyze,
6786
6786
  ys as PriceAnalyzeProvider,
6787
6787
  Re as PriceCoefficient,
6788
6788
  pr as PriceCoefficientEnum,
@@ -6790,14 +6790,14 @@ export {
6790
6790
  St as PriceHistoryItem,
6791
6791
  K as PriceTemplate,
6792
6792
  Se as PriceTemplateCategory,
6793
- se as PriceTemplateClient,
6794
- mr as PriceTemplateICatalogableItem,
6793
+ ie as PriceTemplateClient,
6794
+ fr as PriceTemplateICatalogableItem,
6795
6795
  ke as PriceTemplateProduct,
6796
6796
  Xt as PriceTemplateProvider,
6797
- ne as PricingRole,
6797
+ oe as PricingRole,
6798
6798
  Zt as PricingRoleProvider,
6799
6799
  _e as PrimaryCatalogableItem,
6800
- a as Product,
6800
+ I as Product,
6801
6801
  Vt as ProductCategoryDataProvider,
6802
6802
  Kt as ProductDataProvider,
6803
6803
  wt as ProductFileType,
@@ -6805,21 +6805,21 @@ export {
6805
6805
  kt as ProductPriceHistory,
6806
6806
  Ke as ProductUnit,
6807
6807
  es as PropertiesProvider,
6808
- ie as Property,
6809
- yr as PropertyType,
6808
+ ne as Property,
6809
+ wr as PropertyType,
6810
6810
  lt as PropertyTypeEnum,
6811
6811
  V as PropertyValue,
6812
6812
  vs as RecommendationsDataProvider,
6813
6813
  tr as RecommendationsList,
6814
6814
  R as Reference,
6815
6815
  b as ReferenceDataProvider,
6816
- le as Region,
6817
- Rr as ResourceType,
6816
+ ue as Region,
6817
+ Pr as ResourceType,
6818
6818
  O as SalesDirection,
6819
6819
  Xr as SentryConfig,
6820
6820
  sr as Seo,
6821
6821
  Cs as SeoDataProvider,
6822
- Pr as SourcePrimaryInterest,
6822
+ Ar as SourcePrimaryInterest,
6823
6823
  nt as StockCount,
6824
6824
  rs as TemplateProductCategoryDataProvider,
6825
6825
  zt as TemplatesListFilters,
@@ -6827,21 +6827,21 @@ export {
6827
6827
  kr as UnitsHelper,
6828
6828
  os as UnknownClientDataProvider,
6829
6829
  lr as UpdatableNamedIdentity,
6830
- Lt as User,
6830
+ at as User,
6831
6831
  Ps as UserAuthDataProvider,
6832
- fr as UserCommonInfo,
6832
+ yr as UserCommonInfo,
6833
6833
  dt as UserDataProvider,
6834
6834
  ut as UserPricingRole,
6835
6835
  d as UserShortInfo,
6836
- It as UserTypeEnum,
6836
+ Lt as UserTypeEnum,
6837
6837
  cs as VersionConfig,
6838
- ue as Warehouse,
6838
+ X as Warehouse,
6839
6839
  Zr as WebSocketConfig,
6840
6840
  Xe as findCatalogItemByIdRecursive,
6841
6841
  Ze as flattenCatalogItems,
6842
6842
  ps as pluralize,
6843
6843
  be as useAuthStateStore,
6844
- I as useBaseConfigStateStore,
6844
+ L as useBaseConfigStateStore,
6845
6845
  gs as useReferencesStore,
6846
6846
  As as useUserStateStore
6847
6847
  };