@snabcentr/common-lib 1.86.0 → 1.87.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;
1
+ var ar = Object.defineProperty;
2
+ var Lr = (n, r, e) => r in n ? ar(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var t = (n, r, e) => Lr(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 Q, 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 ne, isNil as T, isEmpty as Q, 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 B } 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
+ ne(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
+ ne(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -336,7 +336,7 @@ class et {
336
336
  };
337
337
  }
338
338
  }
339
- const I = B("common.config", () => {
339
+ const a = B("common.config", () => {
340
340
  const n = y(new et());
341
341
  return {
342
342
  /**
@@ -355,7 +355,7 @@ const I = B("common.config", () => {
355
355
  * @param appConfig Конфигурация приложения.
356
356
  */
357
357
  setConfig: (s) => {
358
- n.value = oe(n.value, s);
358
+ n.value = ne(n.value, s);
359
359
  }
360
360
  };
361
361
  });
@@ -486,7 +486,7 @@ const J = B("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 = a().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 J = B("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, z = (W = J().userPermissions) == null ? void 0 : W[re];
559
- return H(z) && z.includes(te);
558
+ const [ee, re] = D, z = (W = J().userPermissions) == null ? void 0 : W[ee];
559
+ return H(z) && z.includes(re);
560
560
  };
561
561
  return H(o) ? dr(o, (f) => m(f)) : m(o);
562
562
  });
@@ -591,7 +591,7 @@ const J = B("common.auth_state_private", () => {
591
591
  hasUserPermission: i
592
592
  };
593
593
  });
594
- class ee {
594
+ class Z {
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 Z {
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 oe 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 oe {
722
722
  /**
723
723
  * Инициализирует экземпляр класса {@link CatalogableItem}.
724
724
  *
@@ -898,58 +898,6 @@ 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 Y 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
- }
953
901
  class nt {
954
902
  /**
955
903
  * Инициализирует экземпляр класса {@link StockCount}.
@@ -958,14 +906,14 @@ class nt {
958
906
  */
959
907
  constructor(r) {
960
908
  /**
961
- * Данные склада.
909
+ * Идентификатор склада.
962
910
  */
963
- t(this, "warehouse");
911
+ t(this, "warehouseId");
964
912
  /**
965
913
  * Количество остатков товара на складе.
966
914
  */
967
915
  t(this, "count");
968
- this.warehouse = new Y(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
916
+ this.warehouseId = (r == null ? void 0 : r.warehouseId) ?? 0, this.count = r ? r.count : 0;
969
917
  }
970
918
  }
971
919
  class x extends k {
@@ -1022,7 +970,7 @@ class Ke extends k {
1022
970
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1023
971
  }
1024
972
  }
1025
- class a extends st {
973
+ class I extends st {
1026
974
  /**
1027
975
  * Инициализирует экземпляр класса {@link Product}.
1028
976
  *
@@ -1101,7 +1049,7 @@ class a extends st {
1101
1049
  t(this, "priceCoefficients");
1102
1050
  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";
1103
1051
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
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, 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);
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, a().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);
1105
1053
  }
1106
1054
  /**
1107
1055
  * Возвращает признак, что это измеряемый товар.
@@ -1123,7 +1071,7 @@ class a extends st {
1123
1071
  }
1124
1072
  }
1125
1073
  var Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {});
1126
- class F extends a {
1074
+ class F extends I {
1127
1075
  /**
1128
1076
  * Инициализирует экземпляр класса {@link ClientProduct}.
1129
1077
  *
@@ -1189,7 +1137,7 @@ class ge extends _e {
1189
1137
  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;
1190
1138
  }
1191
1139
  }
1192
- class gr extends ee {
1140
+ class hr extends Z {
1193
1141
  /**
1194
1142
  * Инициализирует экземпляр класса {@link OrderItemBase}.
1195
1143
  *
@@ -1248,7 +1196,7 @@ class gr extends ee {
1248
1196
  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);
1249
1197
  }
1250
1198
  }
1251
- let ot = class extends gr {
1199
+ let ot = class extends hr {
1252
1200
  /**
1253
1201
  * Инициализирует экземпляр класса {@link OrderItem}.
1254
1202
  *
@@ -1329,7 +1277,7 @@ const P = class P {
1329
1277
  /**
1330
1278
  * Базовый URL путь для выполнения запросов.
1331
1279
  */
1332
- t(this, "baseUrl", `${I().config.http.portalApiUrl}/api`);
1280
+ t(this, "baseUrl", `${a().config.http.portalApiUrl}/api`);
1333
1281
  /**
1334
1282
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
1335
1283
  *
@@ -1718,10 +1666,10 @@ class _ extends ge {
1718
1666
  * Список продуктов категории.
1719
1667
  */
1720
1668
  t(this, "products");
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 a(o));
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 I(o));
1722
1670
  }
1723
1671
  }
1724
- class mr {
1672
+ class gr {
1725
1673
  /**
1726
1674
  * Инициализирует экземпляр класса {@link ContactLinks}.
1727
1675
  *
@@ -1769,7 +1717,7 @@ class Me extends k {
1769
1717
  * @inheritDoc
1770
1718
  */
1771
1719
  t(this, "isRegionalDirector");
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;
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;
1773
1721
  }
1774
1722
  }
1775
1723
  class Be extends R {
@@ -1888,7 +1836,7 @@ class we extends pt {
1888
1836
  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));
1889
1837
  }
1890
1838
  }
1891
- class fr {
1839
+ class mr {
1892
1840
  /**
1893
1841
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1894
1842
  *
@@ -1906,7 +1854,7 @@ class fr {
1906
1854
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1907
1855
  }
1908
1856
  }
1909
- class Se extends fr {
1857
+ class Se extends mr {
1910
1858
  /**
1911
1859
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1912
1860
  *
@@ -1941,12 +1889,12 @@ class ze extends k {
1941
1889
  * @inheritDoc
1942
1890
  */
1943
1891
  t(this, "curatedDirection");
1944
- this.photo = e.photo, this.contacts = new mr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
1892
+ this.photo = e.photo, this.contacts = new gr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
1945
1893
  }
1946
1894
  }
1947
- class X extends R {
1895
+ class Y extends R {
1948
1896
  }
1949
- class le extends R {
1897
+ class ce extends R {
1950
1898
  /**
1951
1899
  * Инициализирует экземпляр класса {@link Region}.
1952
1900
  *
@@ -1957,8 +1905,8 @@ class le extends R {
1957
1905
  /**
1958
1906
  * Данные о стране, в которой расположен регион.
1959
1907
  */
1960
- t(this, "country", new X());
1961
- e && (this.country = new X(e.country));
1908
+ t(this, "country", new Y());
1909
+ e && (this.country = new Y(e.country));
1962
1910
  }
1963
1911
  }
1964
1912
  class Ae extends R {
@@ -1972,11 +1920,11 @@ class Ae extends R {
1972
1920
  /**
1973
1921
  * Данные о регионе, в котором расположен город.
1974
1922
  */
1975
- t(this, "region", new le());
1976
- e && (this.region = new le(e.region));
1923
+ t(this, "region", new ce());
1924
+ e && (this.region = new ce(e.region));
1977
1925
  }
1978
1926
  }
1979
- class yr extends k {
1927
+ class fr extends k {
1980
1928
  /**
1981
1929
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1982
1930
  *
@@ -2015,7 +1963,7 @@ class yr extends k {
2015
1963
  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;
2016
1964
  }
2017
1965
  }
2018
- class me extends yr {
1966
+ class me extends fr {
2019
1967
  /**
2020
1968
  * Инициализирует экземпляр класса {@link Client}.
2021
1969
  *
@@ -2064,7 +2012,7 @@ class me extends yr {
2064
2012
  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;
2065
2013
  }
2066
2014
  }
2067
- class se extends ee {
2015
+ class te extends Z {
2068
2016
  /**
2069
2017
  * Инициализирует новый экземпляр класса.
2070
2018
  *
@@ -2091,7 +2039,7 @@ class se extends ee {
2091
2039
  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 V(e == null ? void 0 : e.priceTemplate);
2092
2040
  }
2093
2041
  }
2094
- class ke extends fr {
2042
+ class ke extends mr {
2095
2043
  /**
2096
2044
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2097
2045
  *
@@ -2103,12 +2051,12 @@ class ke extends fr {
2103
2051
  * Базовые данные о продукте.
2104
2052
  */
2105
2053
  t(this, "product");
2106
- this.product = new a(e == null ? void 0 : e.product);
2054
+ this.product = new I(e == null ? void 0 : e.product);
2107
2055
  }
2108
2056
  }
2109
- class wr extends R {
2057
+ class yr extends R {
2110
2058
  }
2111
- class ie extends k {
2059
+ class se extends k {
2112
2060
  /**
2113
2061
  * Инициализирует экземпляр класса {@link Property}.
2114
2062
  *
@@ -2128,7 +2076,7 @@ class ie extends k {
2128
2076
  * Дополнительные метаданные свойства.
2129
2077
  */
2130
2078
  t(this, "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;
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;
2132
2080
  }
2133
2081
  }
2134
2082
  class E {
@@ -2147,7 +2095,7 @@ class E {
2147
2095
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2148
2096
  */
2149
2097
  t(this, "value");
2150
- this.property = new ie(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2098
+ this.property = new se(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2151
2099
  }
2152
2100
  }
2153
2101
  class S {
@@ -2232,7 +2180,7 @@ class zt {
2232
2180
  }), !((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;
2233
2181
  }
2234
2182
  }
2235
- class ne extends k {
2183
+ class ie extends k {
2236
2184
  /**
2237
2185
  * Инициализирует экземпляр класса {@link PricingRole}.
2238
2186
  *
@@ -2286,7 +2234,7 @@ class Qe {
2286
2234
  * Минимальный коэффициент цены.
2287
2235
  */
2288
2236
  t(this, "minCoefficient");
2289
- 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);
2237
+ this.role = new ie(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);
2290
2238
  }
2291
2239
  }
2292
2240
  class Wt extends p {
@@ -2316,7 +2264,7 @@ class Wt extends p {
2316
2264
  */
2317
2265
  // eslint-disable-next-line class-methods-use-this
2318
2266
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2319
- let c = `${I().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2267
+ let c = `${a().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2320
2268
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2321
2269
  }
2322
2270
  }
@@ -2531,7 +2479,7 @@ class Et extends p {
2531
2479
  return this.get(
2532
2480
  `/internal/clients/${r}/price/templates`,
2533
2481
  {},
2534
- (e) => e.data.map((s) => new se(s))
2482
+ (e) => e.data.map((s) => new te(s))
2535
2483
  );
2536
2484
  }
2537
2485
  /**
@@ -2542,7 +2490,7 @@ class Et extends p {
2542
2490
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2543
2491
  */
2544
2492
  getActiveTemplate(r) {
2545
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new se(e.data), !0);
2493
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new te(e.data), !0);
2546
2494
  }
2547
2495
  /**
2548
2496
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2554,14 +2502,14 @@ class Et extends p {
2554
2502
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2555
2503
  */
2556
2504
  attachTemplate(r, e, s) {
2557
- const i = I().config.dateFormats.api;
2505
+ const i = a().config.dateFormats.api;
2558
2506
  return this.post(
2559
2507
  `/internal/clients/${r}/price/templates/${e}`,
2560
2508
  s && {
2561
2509
  startAt: s.startAt && U(s.startAt, i),
2562
2510
  endAt: s.endAt && U(s.endAt, i)
2563
2511
  },
2564
- (o) => new se(o.data),
2512
+ (o) => new te(o.data),
2565
2513
  {},
2566
2514
  !0
2567
2515
  );
@@ -2588,14 +2536,14 @@ class Et extends p {
2588
2536
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2589
2537
  */
2590
2538
  changeTemplate(r, e, s, i) {
2591
- const o = I().config.dateFormats.api;
2539
+ const o = a().config.dateFormats.api;
2592
2540
  return this.patch(
2593
2541
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2594
2542
  i && {
2595
2543
  startAt: i.startAt && U(i.startAt, o),
2596
2544
  endAt: i.endAt && U(i.endAt, o)
2597
2545
  },
2598
- (c) => new se(c.data)
2546
+ (c) => new te(c.data)
2599
2547
  );
2600
2548
  }
2601
2549
  /**
@@ -2671,7 +2619,7 @@ class Vt extends p {
2671
2619
  showHidden: s,
2672
2620
  withPriceCoefficients: e
2673
2621
  },
2674
- (i) => he(i.data, (o) => new a(o))
2622
+ (i) => he(i.data, (o) => new I(o))
2675
2623
  );
2676
2624
  }
2677
2625
  /**
@@ -2713,7 +2661,7 @@ class Kt extends p {
2713
2661
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2714
2662
  */
2715
2663
  getProductData(r, e = !1) {
2716
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new a(s.data));
2664
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new I(s.data));
2717
2665
  }
2718
2666
  /**
2719
2667
  * Возвращает публичные данные об указанном продукте.
@@ -2721,7 +2669,7 @@ class Kt extends p {
2721
2669
  * @param productId Идентификатор продукта.
2722
2670
  */
2723
2671
  getPublicProductData(r) {
2724
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new a(e.data));
2672
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
2725
2673
  }
2726
2674
  /**
2727
2675
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2746,7 +2694,7 @@ class Kt extends p {
2746
2694
  publicSimpleSearch(r, e = 10) {
2747
2695
  return new Promise((s, i) => {
2748
2696
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2749
- s(o.products.map((c) => new a(c)));
2697
+ s(o.products.map((c) => new I(c)));
2750
2698
  }).catch((o) => {
2751
2699
  i(o);
2752
2700
  });
@@ -2868,10 +2816,10 @@ class Ye {
2868
2816
  field: this.field,
2869
2817
  op: this.op
2870
2818
  };
2871
- return r.value = xe(this.value) ? U(this.value, I().config.dateFormats.api) : this.value, r;
2819
+ return r.value = xe(this.value) ? U(this.value, a().config.dateFormats.api) : this.value, r;
2872
2820
  }
2873
2821
  }
2874
- class ue {
2822
+ class le {
2875
2823
  /**
2876
2824
  * Инициализирует экземпляр класса {@link FilterGroup}.
2877
2825
  *
@@ -2891,7 +2839,7 @@ class ue {
2891
2839
  */
2892
2840
  t(this, "groups");
2893
2841
  var e, s;
2894
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ye(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ue(i))) ?? [];
2842
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ye(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new le(i))) ?? [];
2895
2843
  }
2896
2844
  /**
2897
2845
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2902,7 +2850,7 @@ class ue {
2902
2850
  return {
2903
2851
  groupOp: this.groupOp,
2904
2852
  filters: this.filters.map((r) => r instanceof Ye && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2905
- groups: this.groups.map((r) => r instanceof ue ? r.toPrimitive() : r)
2853
+ groups: this.groups.map((r) => r instanceof le ? r.toPrimitive() : r)
2906
2854
  };
2907
2855
  }
2908
2856
  }
@@ -2924,7 +2872,7 @@ class De extends p {
2924
2872
  page: (i == null ? void 0 : i.page) ?? 1,
2925
2873
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2926
2874
  };
2927
- return e && (m.filters = JSON.stringify((e instanceof ue ? e : new ue(e)).toPrimitive())), Q(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
2875
+ return e && (m.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), Q(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
2928
2876
  }
2929
2877
  }
2930
2878
  class Xt extends De {
@@ -3127,7 +3075,7 @@ class Xt extends De {
3127
3075
  return this.get(
3128
3076
  `/internal/price/templates/${r}/clients`,
3129
3077
  {},
3130
- (e) => e.data.map((s) => new se(s))
3078
+ (e) => e.data.map((s) => new te(s))
3131
3079
  );
3132
3080
  }
3133
3081
  }
@@ -3138,7 +3086,7 @@ class Zt extends p {
3138
3086
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
3139
3087
  */
3140
3088
  getRoles() {
3141
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ne(e)));
3089
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ie(e)));
3142
3090
  }
3143
3091
  /**
3144
3092
  * Добавляет новую роль ценообразования.
@@ -3148,7 +3096,7 @@ class Zt extends p {
3148
3096
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
3149
3097
  */
3150
3098
  createRole(r) {
3151
- return this.post("/internal/price/roles", r, (e) => new ne(e.data));
3099
+ return this.post("/internal/price/roles", r, (e) => new ie(e.data));
3152
3100
  }
3153
3101
  /**
3154
3102
  * Возвращает данные роли ценообразования.
@@ -3158,7 +3106,7 @@ class Zt extends p {
3158
3106
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
3159
3107
  */
3160
3108
  getRole(r) {
3161
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new ne(e.data));
3109
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new ie(e.data));
3162
3110
  }
3163
3111
  /**
3164
3112
  * Обновляет данные роли ценообразования.
@@ -3169,7 +3117,7 @@ class Zt extends p {
3169
3117
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
3170
3118
  */
3171
3119
  updateRole(r, e) {
3172
- return this.patch(`/internal/price/roles/${r}`, e, (s) => new ne(s.data));
3120
+ return this.patch(`/internal/price/roles/${r}`, e, (s) => new ie(s.data));
3173
3121
  }
3174
3122
  /**
3175
3123
  * Удаляет роль ценообразования.
@@ -3224,7 +3172,7 @@ class es extends De {
3224
3172
  getProperties(r, e, s) {
3225
3173
  return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
3226
3174
  const o = { ...i.data };
3227
- return o.data = o.data.map((c) => new ie(c)), o;
3175
+ return o.data = o.data.map((c) => new se(c)), o;
3228
3176
  });
3229
3177
  }
3230
3178
  /**
@@ -3241,7 +3189,7 @@ class es extends De {
3241
3189
  ...s,
3242
3190
  type: e
3243
3191
  },
3244
- (i) => new ie(i.data)
3192
+ (i) => new se(i.data)
3245
3193
  );
3246
3194
  }
3247
3195
  /**
@@ -3251,7 +3199,7 @@ class es extends De {
3251
3199
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3252
3200
  */
3253
3201
  getProperty(r) {
3254
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ie(e.data));
3202
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new se(e.data));
3255
3203
  }
3256
3204
  /**
3257
3205
  * Обновляет существующее свойство.
@@ -3268,7 +3216,7 @@ class es extends De {
3268
3216
  ...i,
3269
3217
  type: s
3270
3218
  },
3271
- (o) => new ie(o.data)
3219
+ (o) => new se(o.data)
3272
3220
  );
3273
3221
  }
3274
3222
  /**
@@ -3641,7 +3589,7 @@ class rs extends p {
3641
3589
  showHidden: i,
3642
3590
  withPriceCoefficients: s
3643
3591
  },
3644
- (o) => he(o.data, (c) => new a(c))
3592
+ (o) => he(o.data, (c) => new I(c))
3645
3593
  );
3646
3594
  }
3647
3595
  }
@@ -3678,12 +3626,14 @@ function Ze(n) {
3678
3626
  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 || {});
3679
3627
  class gt extends R {
3680
3628
  }
3681
- class vr extends R {
3629
+ class wr extends R {
3682
3630
  }
3683
3631
  class ts extends R {
3684
3632
  }
3685
3633
  class mt extends R {
3686
3634
  }
3635
+ class N extends R {
3636
+ }
3687
3637
  class G extends R {
3688
3638
  /**
3689
3639
  * Возвращает сгенерированную запись-описание физического лица.
@@ -3697,23 +3647,73 @@ class G extends R {
3697
3647
  });
3698
3648
  }
3699
3649
  }
3700
- class Cr extends R {
3650
+ class vr extends R {
3701
3651
  }
3702
3652
  class ft extends R {
3703
3653
  }
3704
3654
  class yt extends R {
3705
3655
  }
3706
- class Z extends R {
3656
+ class X extends R {
3707
3657
  }
3708
- class Rr extends R {
3658
+ class Cr extends R {
3709
3659
  }
3710
3660
  class wt extends R {
3711
3661
  }
3662
+ class Rr extends R {
3663
+ }
3712
3664
  class Pr extends R {
3713
3665
  }
3714
- class Ar extends R {
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
+ }
3715
3683
  }
3716
- class qe extends ee {
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 Z {
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 X());
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 G(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 G(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 X(e.partnerGroup)), e.contacts) {
3852
3852
  const s = [];
3853
3853
  e.contacts.forEach((i) => {
3854
3854
  s.push(new M(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 Y());
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 Y(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 Z {
3977
3977
  /**
3978
3978
  * Инициализирует экземпляр класса {@link ContactRelation}.
3979
3979
  *
@@ -4013,7 +4013,7 @@ class Rt extends M {
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 hr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(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 Ar(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(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 M(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 Y(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 X(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 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) ?? {};
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 G(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = new N(e == null ? void 0 : e.preferredDeliveryType), 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 ce(e == null ? void 0 : e.region), this.country = new Y(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 G(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 X(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 ce();
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 Z {
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 M(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 M(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 X(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 {
@@ -5117,7 +5117,7 @@ const K = class K extends p {
5117
5117
  * Время кэширования данных ответов на запросы (секунд).
5118
5118
  */
5119
5119
  t(this, "responseDataCacheTimeout");
5120
- this.responseDataCacheTimeout = I().config.http.responseDataCacheTimeout;
5120
+ this.responseDataCacheTimeout = a().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,8 +5434,8 @@ 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 Y(e.delivery.warehouse) : void 0
5438
- }, this.attachedUser = new d(e == null ? void 0 : e.attachedUser), 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;
5437
+ warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new ue(e.delivery.warehouse) : void 0
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
  }
5441
5441
  var $t = /* @__PURE__ */ ((n) => (n.New = "new", n.WorkedOut = "worked_out", n.Pending = "pending", n.Completed = "completed", n.Declined = "declined", n.Deleted = "deleted", n))($t || {});
@@ -5455,7 +5455,7 @@ class b extends pe {
5455
5455
  * первичного интереса.
5456
5456
  */
5457
5457
  getChannelPrimaryInterest() {
5458
- return this.getTypedDataArrayRequester(vr, "/internal/references/channel-primary-interest", !0);
5458
+ return this.getTypedDataArrayRequester(wr, "/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(X, "/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(Cr, "/internal/references/operator", !0);
5495
+ return this.getTypedDataArrayRequester(vr, "/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(Rr, "/public/references/payment-type", !0);
5513
+ return this.getTypedDataArrayRequester(Cr, "/public/references/payment-type", !0);
5514
5514
  }
5515
5515
  /**
5516
5516
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
5517
5517
  */
5518
5518
  getResourceTypes() {
5519
- return this.getTypedDataArrayRequester(Pr, "/internal/references/resource-type", !0);
5519
+ return this.getTypedDataArrayRequester(Rr, "/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(Ar, "/internal/references/source-primary-interest", !0);
5531
+ return this.getTypedDataArrayRequester(Pr, "/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(ce, `/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(Y, `/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(Y, "/public/references/warehouse", !0);
5567
+ return this.getTypedDataArrayRequester(ue, "/public/references/warehouse", !0);
5568
5568
  }
5569
5569
  /**
5570
5570
  * Возвращает {@link Promise} для получения справочника типов свойств.
5571
5571
  */
5572
5572
  getPropertyTypes() {
5573
- return this.getTypedDataArrayRequester(wr, "/internal/references/property-type", !0);
5573
+ return this.getTypedDataArrayRequester(yr, "/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 $ = B("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), z = y(void 0), W = 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), ee = y(void 0), re = y(void 0), z = y(void 0), W = 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 $ = B("common.references_private", () => {
5639
5639
  /**
5640
5640
  * Справочник типов файлов продукктов/категорий.
5641
5641
  */
5642
- productFileTypeReference: re,
5642
+ productFileTypeReference: ee,
5643
5643
  /**
5644
5644
  * Справочник типов ресурсов.
5645
5645
  */
5646
- resourceTypesReference: te,
5646
+ resourceTypesReference: re,
5647
5647
  /**
5648
5648
  * Справочник направлений продаж.
5649
5649
  */
@@ -5726,12 +5726,12 @@ const $ = B("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
+ }), ee = 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
+ }), re = 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 $ = B("common.references_private", () => {
5809
5809
  /**
5810
5810
  * Справочник каналов первичного интереса.
5811
5811
  */
5812
- sourcePrimaryInterestsReference: re,
5812
+ sourcePrimaryInterestsReference: ee,
5813
5813
  /**
5814
5814
  * Справочник типов доставки.
5815
5815
  */
5816
- deliveryTypeReference: te,
5816
+ deliveryTypeReference: re,
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 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 Y(e.warehouse) : void 0;
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;
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 Y();
5963
+ this.warehouse = new ue();
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 gr {
5980
+ class bt extends hr {
5981
5981
  /**
5982
5982
  * Инициализирует экземпляр класса {@link OrderItem}.
5983
5983
  *
@@ -6028,7 +6028,7 @@ class bt extends gr {
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 ae extends Ir {
6032
6032
  /**
6033
6033
  * Инициализирует экземпляр класса {@link Order}.
6034
6034
  *
@@ -6086,12 +6086,12 @@ class fs extends De {
6086
6086
  return this.getPaginated(
6087
6087
  "/internal/orders",
6088
6088
  r,
6089
- e ? [e] : void 0,
6089
+ e,
6090
6090
  s,
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
@@ -6112,7 +6112,7 @@ class fs extends De {
6112
6112
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
6113
6113
  */
6114
6114
  getOrder(r) {
6115
- return this.get(`/internal/orders/${r}`, {}, (e) => new Ie(e.data));
6115
+ return this.get(`/internal/orders/${r}`, {}, (e) => new ae(e.data));
6116
6116
  }
6117
6117
  /**
6118
6118
  * Добавляет продукт в заказ и возвращает обновлённые данные заказа.
@@ -6140,7 +6140,7 @@ class fs extends De {
6140
6140
  is_additional_sale: e.isAdditionalSale,
6141
6141
  ...e.configuratorParams
6142
6142
  },
6143
- (i) => new Ie(i.data),
6143
+ (i) => new ae(i.data),
6144
6144
  s
6145
6145
  );
6146
6146
  }
@@ -6170,7 +6170,7 @@ class fs extends De {
6170
6170
  marker: s.marker,
6171
6171
  ...s.configuratorParams
6172
6172
  },
6173
- (o) => new Ie(o.data),
6173
+ (o) => new ae(o.data),
6174
6174
  i
6175
6175
  );
6176
6176
  }
@@ -6202,7 +6202,7 @@ class Le {
6202
6202
  * Источник клиентской цены.
6203
6203
  */
6204
6204
  t(this, "source");
6205
- 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;
6205
+ 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;
6206
6206
  }
6207
6207
  }
6208
6208
  const de = (n) => {
@@ -6330,10 +6330,10 @@ class St {
6330
6330
  * @inheritDoc
6331
6331
  */
6332
6332
  t(this, "currency");
6333
- 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;
6333
+ 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 oe(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;
6334
6334
  }
6335
6335
  }
6336
- class kt extends ce {
6336
+ class kt extends oe {
6337
6337
  /**
6338
6338
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
6339
6339
  *
@@ -6358,8 +6358,8 @@ class ws extends p {
6358
6358
  */
6359
6359
  getProductPriceHistory(r) {
6360
6360
  var o, c, u, h, m;
6361
- const e = I().config.dateFormats.api, s = or(
6362
- oe(r, {
6361
+ const e = a().config.dateFormats.api, s = or(
6362
+ ne(r, {
6363
6363
  costDate: {
6364
6364
  from: xe((o = r.costDate) == null ? void 0 : o.from) ? U(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6365
6365
  to: xe((u = r.costDate) == null ? void 0 : u.to) ? U(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
@@ -6368,7 +6368,7 @@ class ws extends p {
6368
6368
  (f) => T(f) || (H(f) || cr(f)) && Q(f)
6369
6369
  ), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
6370
6370
  return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((f) => [
6371
- new kt(oe(f[0], { history: f }))
6371
+ new kt(ne(f[0], { history: f }))
6372
6372
  ]);
6373
6373
  }
6374
6374
  }
@@ -6387,7 +6387,7 @@ class tr {
6387
6387
  * Список рекомендованных категорий продуктов.
6388
6388
  */
6389
6389
  t(this, "productCategories", []);
6390
- 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)));
6390
+ r != null && r.products && (this.products = r.products.map((e) => new oe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new oe(e)));
6391
6391
  }
6392
6392
  }
6393
6393
  class vs extends p {
@@ -6436,7 +6436,7 @@ class vs extends p {
6436
6436
  });
6437
6437
  }
6438
6438
  }
6439
- class at {
6439
+ class It {
6440
6440
  /**
6441
6441
  * Инициализирует экземпляр класса {@link MetaTagItem}.
6442
6442
  *
@@ -6494,7 +6494,7 @@ class sr {
6494
6494
  */
6495
6495
  t(this, "tags");
6496
6496
  var e;
6497
- 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 at(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6497
+ 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 It(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6498
6498
  }
6499
6499
  }
6500
6500
  class Cs extends p {
@@ -6575,8 +6575,8 @@ class Rs extends p {
6575
6575
  });
6576
6576
  }
6577
6577
  }
6578
- var It = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(It || {});
6579
- class Lt extends yr {
6578
+ var at = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(at || {});
6579
+ class Lt extends fr {
6580
6580
  /**
6581
6581
  * Инициализирует экземпляр класса {@link User}.
6582
6582
  *
@@ -6604,7 +6604,7 @@ class Ps extends p {
6604
6604
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6605
6605
  */
6606
6606
  constructor() {
6607
- super(), this.baseUrl = `${I().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6607
+ super(), this.baseUrl = `${a().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6608
6608
  }
6609
6609
  /**
6610
6610
  * Функция для получения обновленных токенов доступа.
@@ -6684,7 +6684,7 @@ export {
6684
6684
  ur as CatalogableItem,
6685
6685
  _ as Category,
6686
6686
  Qe as CategoryPricingRule,
6687
- vr as ChannelPrimaryInterest,
6687
+ wr as ChannelPrimaryInterest,
6688
6688
  ts as City,
6689
6689
  Ae as CityWithRegionAndCountry,
6690
6690
  er as Client,
@@ -6699,15 +6699,15 @@ export {
6699
6699
  me as ClientShortInfo,
6700
6700
  ht as ClientsAdditionalDataRequestTypeEnum,
6701
6701
  ss as ClientsListFilters,
6702
- ce as CodedIdentity,
6702
+ oe as CodedIdentity,
6703
6703
  ls as ConfiguratorProvider,
6704
6704
  Dt as ConfiguratorsEnum,
6705
6705
  Ne as Contact,
6706
- mr as ContactLinks,
6706
+ gr as ContactLinks,
6707
6707
  M as ContactPerson,
6708
6708
  Rt as ContactPersonRelated,
6709
6709
  mt as ContactPosition,
6710
- ae as ContactRelation,
6710
+ Ie as ContactRelation,
6711
6711
  Dr as ContragentBase,
6712
6712
  ve as ContragentFactory,
6713
6713
  Tr as ContragentIc,
@@ -6715,7 +6715,7 @@ export {
6715
6715
  Ct as ContragentUlNr,
6716
6716
  $r as ContragentUlR,
6717
6717
  Ge as CostSourceEnum,
6718
- X as Country,
6718
+ Y as Country,
6719
6719
  Be as CuratedDirection,
6720
6720
  ze as Curator,
6721
6721
  x as Currency,
@@ -6731,30 +6731,30 @@ export {
6731
6731
  Qr as DeviceTypeResolutionConfig,
6732
6732
  it as DiscountShortInfo,
6733
6733
  Ds as FieldValidationResultData,
6734
- ue as FilterGroup,
6734
+ le as FilterGroup,
6735
6735
  Ye as FilterItem,
6736
6736
  We as FilterOpEnum,
6737
- hr as GeoCoordinates,
6737
+ Ar as GeoCoordinates,
6738
6738
  st as HiddenCatalogableItem,
6739
6739
  pe as HttpCachedRequester,
6740
6740
  Yr as HttpParamsConfig,
6741
6741
  p as HttpRequester,
6742
- ee as Identity,
6742
+ Z as Identity,
6743
6743
  tt as Image,
6744
6744
  j as JwtPayload,
6745
6745
  Pe as Manager,
6746
6746
  Me as ManagerCommon,
6747
6747
  hs as ManagerDataFactory,
6748
6748
  Tt as ManagerDataProvider,
6749
- at as MetaTagItem,
6749
+ It as MetaTagItem,
6750
6750
  k as NamedIdentity,
6751
- Cr as Operator,
6751
+ vr as Operator,
6752
6752
  G as Opf,
6753
6753
  q as OpfEnum,
6754
- Ie as Order,
6755
- ar as OrderInfo,
6754
+ ae as Order,
6755
+ Ir as OrderInfo,
6756
6756
  bt as OrderItem,
6757
- gr as OrderItemBase,
6757
+ hr as OrderItemBase,
6758
6758
  ft as OrderPaymentStatus,
6759
6759
  Sr as OrderShortInfo,
6760
6760
  yt as OrderStatus,
@@ -6762,8 +6762,8 @@ export {
6762
6762
  fs as OrdersDataProvider,
6763
6763
  ms as OrdersListFilters,
6764
6764
  br as PaginationFiltersBase,
6765
- Z as PartnerGroup,
6766
- Rr as PaymentType,
6765
+ X as PartnerGroup,
6766
+ Cr as PaymentType,
6767
6767
  ye as PreferencesStorageProvider,
6768
6768
  Le as PriceAnalyze,
6769
6769
  ys as PriceAnalyzeProvider,
@@ -6773,14 +6773,14 @@ export {
6773
6773
  St as PriceHistoryItem,
6774
6774
  V as PriceTemplate,
6775
6775
  Se as PriceTemplateCategory,
6776
- se as PriceTemplateClient,
6777
- fr as PriceTemplateICatalogableItem,
6776
+ te as PriceTemplateClient,
6777
+ mr as PriceTemplateICatalogableItem,
6778
6778
  ke as PriceTemplateProduct,
6779
6779
  Xt as PriceTemplateProvider,
6780
- ne as PricingRole,
6780
+ ie as PricingRole,
6781
6781
  Zt as PricingRoleProvider,
6782
6782
  _e as PrimaryCatalogableItem,
6783
- a as Product,
6783
+ I as Product,
6784
6784
  Vt as ProductCategoryDataProvider,
6785
6785
  Kt as ProductDataProvider,
6786
6786
  wt as ProductFileType,
@@ -6788,21 +6788,21 @@ export {
6788
6788
  kt as ProductPriceHistory,
6789
6789
  Ke as ProductUnit,
6790
6790
  es as PropertiesProvider,
6791
- ie as Property,
6792
- wr as PropertyType,
6791
+ se as Property,
6792
+ yr as PropertyType,
6793
6793
  lt as PropertyTypeEnum,
6794
6794
  E as PropertyValue,
6795
6795
  vs as RecommendationsDataProvider,
6796
6796
  tr as RecommendationsList,
6797
6797
  R as Reference,
6798
6798
  b as ReferenceDataProvider,
6799
- le as Region,
6800
- Pr as ResourceType,
6799
+ ce as Region,
6800
+ Rr as ResourceType,
6801
6801
  O as SalesDirection,
6802
6802
  Xr as SentryConfig,
6803
6803
  sr as Seo,
6804
6804
  Cs as SeoDataProvider,
6805
- Ar as SourcePrimaryInterest,
6805
+ Pr as SourcePrimaryInterest,
6806
6806
  nt as StockCount,
6807
6807
  rs as TemplateProductCategoryDataProvider,
6808
6808
  zt as TemplatesListFilters,
@@ -6812,19 +6812,19 @@ export {
6812
6812
  lr as UpdatableNamedIdentity,
6813
6813
  Lt as User,
6814
6814
  Ps as UserAuthDataProvider,
6815
- yr as UserCommonInfo,
6815
+ fr as UserCommonInfo,
6816
6816
  dt as UserDataProvider,
6817
6817
  ut as UserPricingRole,
6818
6818
  d as UserShortInfo,
6819
- It as UserTypeEnum,
6819
+ at as UserTypeEnum,
6820
6820
  cs as VersionConfig,
6821
- Y as Warehouse,
6821
+ ue as Warehouse,
6822
6822
  Zr as WebSocketConfig,
6823
6823
  Xe as findCatalogItemByIdRecursive,
6824
6824
  Ze as flattenCatalogItems,
6825
6825
  ps as pluralize,
6826
6826
  be as useAuthStateStore,
6827
- I as useBaseConfigStateStore,
6827
+ a as useBaseConfigStateStore,
6828
6828
  gs as useReferencesStore,
6829
6829
  As as useUserStateStore
6830
6830
  };