@snabcentr/common-lib 2.5.1 → 2.5.2

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 Lr = Object.defineProperty;
2
- var dr = (i, r, e) => r in i ? Lr(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
- var t = (i, r, e) => dr(i, typeof r != "symbol" ? r + "" : r, e);
1
+ var dr = Object.defineProperty;
2
+ var Lr = (i, r, e) => r in i ? dr(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
+ var t = (i, r, e) => Lr(i, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as nr } from "jwt-decode";
5
- import { merge as le, isNil as A, isEmpty as X, noop as v, mapValues as or, isArray as H, every as xr, split as _r, isString as C, constant as Or, toUpper as qr, cloneDeep as Nr, toLower as Ur, isFunction as Fe, map as ge, forEach as Fr, isDate as _e, omitBy as cr, isObject as lr } from "lodash-es";
5
+ import { merge as ue, isNil as A, isEmpty as X, noop as v, mapValues as or, isArray as H, every as xr, split as _r, isString as C, constant as Or, toUpper as qr, cloneDeep as Nr, toLower as Ur, isFunction as Fe, map as me, forEach as Fr, isDate as _e, omitBy as cr, isObject as lr } from "lodash-es";
6
6
  import { objectToCamel as He, objectToSnake as Ee } from "ts-case-convert";
7
7
  import { defineStore as W } from "pinia";
8
8
  import { ref as y, markRaw as Hr, computed as P } from "vue";
@@ -99,7 +99,7 @@ class j {
99
99
  * @inheritDoc
100
100
  */
101
101
  t(this, "email", "");
102
- le(this, r);
102
+ ue(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -143,7 +143,7 @@ class Bt extends j {
143
143
  * @inheritDoc
144
144
  */
145
145
  t(this, "address");
146
- le(this, e);
146
+ ue(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -355,11 +355,11 @@ const k = W("common.config", () => {
355
355
  * @param appConfig Конфигурация приложения.
356
356
  */
357
357
  setConfig: (s) => {
358
- i.value = le(i.value, s);
358
+ i.value = ue(i.value, s);
359
359
  }
360
360
  };
361
361
  });
362
- class we {
362
+ class ve {
363
363
  /**
364
364
  * Возвращает актуальные и не просроченные данные из хранилища.
365
365
  *
@@ -480,7 +480,7 @@ const V = W("common.auth_state_private", () => {
480
480
  const i = y(
481
481
  (() => {
482
482
  var u;
483
- const o = we.getActualDataFromStorage(
483
+ const o = ve.getActualDataFromStorage(
484
484
  "sc.token"
485
485
  /* JwtToken */
486
486
  );
@@ -524,7 +524,7 @@ const V = W("common.auth_state_private", () => {
524
524
  if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
525
525
  const c = o.jwtTokenUpdater();
526
526
  o.jwtToken = c, c.then((u) => {
527
- o.jwtToken = Promise.resolve(u), we.saveActualDataToStorage("sc.token", u, Ke(u)), o.recalculateUserPermissions();
527
+ o.jwtToken = Promise.resolve(u), ve.saveActualDataToStorage("sc.token", u, Ke(u)), o.recalculateUserPermissions();
528
528
  }).catch(v);
529
529
  }
530
530
  return o.jwtToken;
@@ -534,11 +534,11 @@ const V = W("common.auth_state_private", () => {
534
534
  }
535
535
  function e(o) {
536
536
  const c = V();
537
- c.jwtToken = Promise.resolve(o), we.saveActualDataToStorage("sc.token", o, Ke(o)), c.recalculateUserPermissions();
537
+ c.jwtToken = Promise.resolve(o), ve.saveActualDataToStorage("sc.token", o, Ke(o)), c.recalculateUserPermissions();
538
538
  }
539
539
  function s() {
540
540
  const o = V();
541
- o.jwtToken = void 0, o.userPermissions = void 0, we.saveActualDataToStorage("sc.token", void 0);
541
+ o.jwtToken = void 0, o.userPermissions = void 0, ve.saveActualDataToStorage("sc.token", void 0);
542
542
  }
543
543
  function n(o) {
544
544
  const c = V();
@@ -631,7 +631,7 @@ class b extends re {
631
631
  this.name = (e == null ? void 0 : e.name) ?? "";
632
632
  }
633
633
  }
634
- class ue extends b {
634
+ class pe extends b {
635
635
  /**
636
636
  * Инициализирует экземпляр класса {@link NamedIdentity}.
637
637
  *
@@ -718,7 +718,7 @@ class st {
718
718
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
719
719
  }
720
720
  }
721
- class pr extends ue {
721
+ class pr extends pe {
722
722
  /**
723
723
  * Инициализирует экземпляр класса {@link CatalogableItem}.
724
724
  *
@@ -786,7 +786,7 @@ class je {
786
786
  return new r(e);
787
787
  }
788
788
  }
789
- class d extends b {
789
+ class L extends b {
790
790
  /**
791
791
  * Инициализирует экземпляр класса {@link UserShortInfo}.
792
792
  *
@@ -837,7 +837,7 @@ class nt extends b {
837
837
  * Дата и время удаления.
838
838
  */
839
839
  t(this, "deletedAt");
840
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? a(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new d(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? a(e.deletedAt) : e == null ? void 0 : e.deletedAt;
840
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? a(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new L(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? a(e.deletedAt) : e == null ? void 0 : e.deletedAt;
841
841
  }
842
842
  }
843
843
  class Q extends ur {
@@ -918,7 +918,7 @@ class gr {
918
918
  }
919
919
  class F extends w {
920
920
  }
921
- class me extends w {
921
+ class fe extends w {
922
922
  /**
923
923
  * Инициализирует экземпляр класса {@link Warehouse}.
924
924
  *
@@ -965,7 +965,7 @@ class ot {
965
965
  * Количество остатков товара на складе.
966
966
  */
967
967
  t(this, "count");
968
- this.warehouse = new me(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
968
+ this.warehouse = new fe(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
969
969
  }
970
970
  }
971
971
  class O extends b {
@@ -1022,7 +1022,7 @@ class Qe extends b {
1022
1022
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1023
1023
  }
1024
1024
  }
1025
- class L extends it {
1025
+ class d extends it {
1026
1026
  /**
1027
1027
  * Инициализирует экземпляр класса {@link Product}.
1028
1028
  *
@@ -1123,7 +1123,7 @@ class L extends it {
1123
1123
  }
1124
1124
  }
1125
1125
  var Me = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Me || {});
1126
- class G extends L {
1126
+ class G extends d {
1127
1127
  /**
1128
1128
  * Инициализирует экземпляр класса {@link ClientProduct}.
1129
1129
  *
@@ -1162,7 +1162,7 @@ class G extends L {
1162
1162
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Me.Product, this.discount = e != null && e.discount ? new nt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Q(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1163
1163
  }
1164
1164
  }
1165
- class fe extends qe {
1165
+ class ye extends qe {
1166
1166
  /**
1167
1167
  * Инициализирует экземпляр класса {@link BaseCategory}.
1168
1168
  *
@@ -1261,7 +1261,7 @@ class mr extends re {
1261
1261
  * @inheritDoc
1262
1262
  */
1263
1263
  t(this, "originalId");
1264
- this.product = new G(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new fe(), this.currency = e.currency ? new O(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Nr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new d(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId;
1264
+ this.product = new G(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ye(), this.currency = e.currency ? new O(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Nr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new L(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId;
1265
1265
  }
1266
1266
  }
1267
1267
  let ct = class extends mr {
@@ -1311,7 +1311,7 @@ let ct = class extends mr {
1311
1311
  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 = H(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new O(e.currency);
1312
1312
  }
1313
1313
  };
1314
- class ye {
1314
+ class we {
1315
1315
  /**
1316
1316
  * Инициализирует экземпляр класса {@link Cart}.
1317
1317
  *
@@ -1611,7 +1611,7 @@ class Wt extends p {
1611
1611
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
1612
1612
  */
1613
1613
  getCart(r) {
1614
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ye(e.data));
1614
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new we(e.data));
1615
1615
  }
1616
1616
  /**
1617
1617
  * Удаляет всё содержимое корзины.
@@ -1649,7 +1649,7 @@ class Wt extends p {
1649
1649
  is_additional_sale: e.isAdditionalSale,
1650
1650
  ...e.configuratorParams
1651
1651
  },
1652
- (n) => new ye(n.data),
1652
+ (n) => new we(n.data),
1653
1653
  s
1654
1654
  );
1655
1655
  }
@@ -1679,7 +1679,7 @@ class Wt extends p {
1679
1679
  is_additional_sale: e.isAdditionalSale,
1680
1680
  ...e.configuratorParams
1681
1681
  },
1682
- (n) => new ye(n.data),
1682
+ (n) => new we(n.data),
1683
1683
  s
1684
1684
  );
1685
1685
  }
@@ -1703,7 +1703,7 @@ class Wt extends p {
1703
1703
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1704
1704
  */
1705
1705
  addCartItemFromCSV(r, e) {
1706
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new ye(s.data));
1706
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new we(s.data));
1707
1707
  }
1708
1708
  /**
1709
1709
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -1717,7 +1717,7 @@ class Wt extends p {
1717
1717
  }
1718
1718
  }
1719
1719
  var lt = /* @__PURE__ */ ((i) => (i.m2Cost = "m2Cost", i.percent = "percent", i.value = "value", i))(lt || {}), ut = /* @__PURE__ */ ((i) => (i.Unknown = "unknown", i.Bool = "bool", i.Integer = "integer", i.Float = "float", i.String = "string", i.Range = "range", i.Json = "json", i.Object = "object", i))(ut || {});
1720
- class N extends fe {
1720
+ class N extends ye {
1721
1721
  /**
1722
1722
  * Инициализирует экземпляр класса {@link Category}.
1723
1723
  *
@@ -1734,7 +1734,7 @@ class N extends fe {
1734
1734
  * Список продуктов категории.
1735
1735
  */
1736
1736
  t(this, "products");
1737
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new N(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new L(o));
1737
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new N(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new d(o));
1738
1738
  }
1739
1739
  }
1740
1740
  class fr {
@@ -1853,7 +1853,7 @@ class Pe extends Be {
1853
1853
  this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new pt(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((n) => new ze(n))) ?? [];
1854
1854
  }
1855
1855
  }
1856
- class ht extends fe {
1856
+ class ht extends ye {
1857
1857
  /**
1858
1858
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1859
1859
  *
@@ -1884,7 +1884,7 @@ class ht extends fe {
1884
1884
  this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new Pe(e.manager) : void 0;
1885
1885
  }
1886
1886
  }
1887
- class ve extends ht {
1887
+ class Ce extends ht {
1888
1888
  /**
1889
1889
  * Инициализирует экземпляр класса {@link ClientCategory}.
1890
1890
  *
@@ -1901,7 +1901,7 @@ class ve extends ht {
1901
1901
  * Список продуктов категории.
1902
1902
  */
1903
1903
  t(this, "products");
1904
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ve(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new G(o));
1904
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new Ce(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new G(o));
1905
1905
  }
1906
1906
  }
1907
1907
  class yr {
@@ -1934,7 +1934,7 @@ class ke extends yr {
1934
1934
  * Базовые данные о продукте.
1935
1935
  */
1936
1936
  t(this, "productCategory");
1937
- this.productCategory = new fe(e == null ? void 0 : e.productCategory);
1937
+ this.productCategory = new ye(e == null ? void 0 : e.productCategory);
1938
1938
  }
1939
1939
  }
1940
1940
  class We extends b {
@@ -1962,7 +1962,7 @@ class We extends b {
1962
1962
  }
1963
1963
  class Z extends w {
1964
1964
  }
1965
- class pe extends w {
1965
+ class he extends w {
1966
1966
  /**
1967
1967
  * Инициализирует экземпляр класса {@link Region}.
1968
1968
  *
@@ -1988,8 +1988,8 @@ class De extends w {
1988
1988
  /**
1989
1989
  * Данные о регионе, в котором расположен город.
1990
1990
  */
1991
- t(this, "region", new pe());
1992
- e && (this.region = new pe(e.region));
1991
+ t(this, "region", new he());
1992
+ e && (this.region = new he(e.region));
1993
1993
  }
1994
1994
  }
1995
1995
  class wr extends b {
@@ -2119,7 +2119,7 @@ class Ie extends yr {
2119
2119
  * Базовые данные о продукте.
2120
2120
  */
2121
2121
  t(this, "product");
2122
- this.product = new L(e == null ? void 0 : e.product);
2122
+ this.product = new d(e == null ? void 0 : e.product);
2123
2123
  }
2124
2124
  }
2125
2125
  class vr extends w {
@@ -2302,7 +2302,7 @@ class Ye {
2302
2302
  * Минимальный коэффициент цены.
2303
2303
  */
2304
2304
  t(this, "minCoefficient");
2305
- this.role = new ce(r == null ? void 0 : r.role), this.category = new fe(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
2305
+ this.role = new ce(r == null ? void 0 : r.role), this.category = new ye(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
2306
2306
  }
2307
2307
  }
2308
2308
  class Et extends p {
@@ -2687,7 +2687,7 @@ class Qt extends p {
2687
2687
  showHidden: s,
2688
2688
  withPriceCoefficients: e
2689
2689
  },
2690
- (n) => ge(n.data, (o) => new L(o))
2690
+ (n) => me(n.data, (o) => new d(o))
2691
2691
  );
2692
2692
  }
2693
2693
  /**
@@ -2729,7 +2729,7 @@ class Yt extends p {
2729
2729
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2730
2730
  */
2731
2731
  getProductData(r, e = !1) {
2732
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new L(s.data));
2732
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new d(s.data));
2733
2733
  }
2734
2734
  /**
2735
2735
  * Возвращает публичные данные об указанном продукте.
@@ -2737,7 +2737,7 @@ class Yt extends p {
2737
2737
  * @param productId Идентификатор продукта.
2738
2738
  */
2739
2739
  getPublicProductData(r) {
2740
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new L(e.data));
2740
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new d(e.data));
2741
2741
  }
2742
2742
  /**
2743
2743
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2750,7 +2750,7 @@ class Yt extends p {
2750
2750
  return this.get(
2751
2751
  `/internal/catalog/products/${r}/coefficients`,
2752
2752
  {},
2753
- (e) => ge(e.data, (s) => new Ge(s))
2753
+ (e) => me(e.data, (s) => new Ge(s))
2754
2754
  );
2755
2755
  }
2756
2756
  /**
@@ -2762,7 +2762,7 @@ class Yt extends p {
2762
2762
  publicSimpleSearch(r, e = 10) {
2763
2763
  return new Promise((s, n) => {
2764
2764
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2765
- s(o.products.map((c) => new L(c)));
2765
+ s(o.products.map((c) => new d(c)));
2766
2766
  }).catch((o) => {
2767
2767
  n(o);
2768
2768
  });
@@ -2785,7 +2785,7 @@ class Xt extends p {
2785
2785
  clientId: r,
2786
2786
  showHidden: e
2787
2787
  },
2788
- (s) => s.data.map((n) => new ve(n))
2788
+ (s) => s.data.map((n) => new Ce(n))
2789
2789
  );
2790
2790
  }
2791
2791
  /**
@@ -2806,7 +2806,7 @@ class Xt extends p {
2806
2806
  showHidden: s,
2807
2807
  withNestedCategories: n
2808
2808
  },
2809
- (o) => new ve(o.data)
2809
+ (o) => new Ce(o.data)
2810
2810
  );
2811
2811
  }
2812
2812
  /**
@@ -2827,7 +2827,7 @@ class Xt extends p {
2827
2827
  showHidden: n,
2828
2828
  withPriceCoefficients: s
2829
2829
  },
2830
- (o) => ge(o.data, (c) => new G(c))
2830
+ (o) => me(o.data, (c) => new G(c))
2831
2831
  );
2832
2832
  }
2833
2833
  }
@@ -3657,7 +3657,7 @@ class ss extends p {
3657
3657
  showHidden: n,
3658
3658
  withPriceCoefficients: s
3659
3659
  },
3660
- (o) => ge(o.data, (c) => new L(c))
3660
+ (o) => me(o.data, (c) => new d(c))
3661
3661
  );
3662
3662
  }
3663
3663
  }
@@ -3883,7 +3883,7 @@ class Ar extends b {
3883
3883
  */
3884
3884
  t(this, "updater");
3885
3885
  if (e) {
3886
- if (this.opf = new B(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? a(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ee(e.partnerGroup)), e.contacts) {
3886
+ if (this.opf = new B(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : e.createdAt, this.creator = e.creator ? new L(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? a(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new L(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ee(e.partnerGroup)), e.contacts) {
3887
3887
  const s = [];
3888
3888
  e.contacts.forEach((n) => {
3889
3889
  s.push(new z(n));
@@ -3989,7 +3989,7 @@ class Ct extends Tr {
3989
3989
  e && (this.registrationCountry = new Z(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3990
3990
  }
3991
3991
  }
3992
- class Ce {
3992
+ class ae {
3993
3993
  /**
3994
3994
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3995
3995
  *
@@ -4008,7 +4008,7 @@ class Ce {
4008
4008
  }
4009
4009
  }
4010
4010
  }
4011
- class Le extends re {
4011
+ class de extends re {
4012
4012
  /**
4013
4013
  * Инициализирует экземпляр класса {@link ContactRelation}.
4014
4014
  *
@@ -4048,10 +4048,10 @@ class at extends z {
4048
4048
  */
4049
4049
  addresses: []
4050
4050
  });
4051
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Le(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Le(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Le(s))));
4051
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new de(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new de(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new de(s))));
4052
4052
  }
4053
4053
  }
4054
- class ae extends tt {
4054
+ class le extends tt {
4055
4055
  /**
4056
4056
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4057
4057
  *
@@ -4141,7 +4141,7 @@ class rr extends te {
4141
4141
  * @inheritDoc
4142
4142
  */
4143
4143
  t(this, "extraData");
4144
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ee(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new z(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ae(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Dr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new F(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4144
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ae.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ee(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new z(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new le(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Dr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new F(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new fe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4145
4145
  }
4146
4146
  }
4147
4147
  class br {
@@ -4259,7 +4259,7 @@ class os extends br {
4259
4259
  * @inheritDoc
4260
4260
  */
4261
4261
  t(this, "lastOrder");
4262
- 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 De(D)), this.region = new pe(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 = ((n = e == null ? void 0 : e.managers) == null ? void 0 : n.map((D) => new Pe(D))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new We(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new B(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new F(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 Ue(e == null ? void 0 : e.contact), this.lastOrder = {
4262
+ 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 De(D)), this.region = new he(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 = ((n = e == null ? void 0 : e.managers) == null ? void 0 : n.map((D) => new Pe(D))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new We(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new B(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new F(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 Ue(e == null ? void 0 : e.contact), this.lastOrder = {
4263
4263
  createdAt: new S((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
4264
4264
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4265
4265
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
@@ -4274,7 +4274,7 @@ class os extends br {
4274
4274
  this.cities = [];
4275
4275
  break;
4276
4276
  case "region":
4277
- this.region = new pe();
4277
+ this.region = new he();
4278
4278
  break;
4279
4279
  case "isActive":
4280
4280
  this.isActive = !0;
@@ -4340,7 +4340,7 @@ class Sr extends re {
4340
4340
  * @inheritDoc
4341
4341
  */
4342
4342
  t(this, "creator");
4343
- this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator);
4343
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? a(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new L(e == null ? void 0 : e.creator);
4344
4344
  }
4345
4345
  }
4346
4346
  class Rt extends b {
@@ -4814,7 +4814,7 @@ class _ extends Ae {
4814
4814
  return this.post(
4815
4815
  `/internal/clients/${r}/contragents`,
4816
4816
  _.transformContragentClientDataToRequest(e),
4817
- (n) => Ce.createInstance(n.data),
4817
+ (n) => ae.createInstance(n.data),
4818
4818
  s
4819
4819
  );
4820
4820
  }
@@ -4830,7 +4830,7 @@ class _ extends Ae {
4830
4830
  return this.patch(
4831
4831
  `/internal/clients/${r}/contragents/${e.id}`,
4832
4832
  _.transformContragentClientDataToRequest(e),
4833
- (n) => Ce.createInstance(n.data),
4833
+ (n) => ae.createInstance(n.data),
4834
4834
  s
4835
4835
  );
4836
4836
  }
@@ -4844,6 +4844,19 @@ class _ extends Ae {
4844
4844
  deleteClientContragent(r, e) {
4845
4845
  return this.delete(`/internal/clients/${r}/contragents/${e.id}`);
4846
4846
  }
4847
+ /**
4848
+ * Возвращает список адресов доставки клиента.
4849
+ *
4850
+ * @param clientId Идентификатор клиента, для которого необходимо получить адреса доставки.
4851
+ * @see /doc/api/internal#/operations/api_internal_client_delivery_address_get_list
4852
+ */
4853
+ getClientDeliveryAddresses(r) {
4854
+ return this.get(
4855
+ `/internal/clients/${r}/delivery-addresses`,
4856
+ {},
4857
+ (e) => e.data.map((s) => new le(s))
4858
+ );
4859
+ }
4847
4860
  /**
4848
4861
  * Создаёт новую запись об адресе доставки клиента.
4849
4862
  *
@@ -4856,7 +4869,7 @@ class _ extends Ae {
4856
4869
  return this.post(
4857
4870
  `/internal/clients/${r}/delivery-addresses`,
4858
4871
  _.transformClientDeliveryAddressToRequest(e),
4859
- (n) => new ae(n.data),
4872
+ (n) => new le(n.data),
4860
4873
  s
4861
4874
  );
4862
4875
  }
@@ -4872,7 +4885,7 @@ class _ extends Ae {
4872
4885
  return this.patch(
4873
4886
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4874
4887
  _.transformClientDeliveryAddressToRequest(e),
4875
- (n) => new ae(n.data),
4888
+ (n) => new le(n.data),
4876
4889
  s
4877
4890
  );
4878
4891
  }
@@ -5196,7 +5209,7 @@ const Y = class Y extends p {
5196
5209
  * Кэш результатов запросов.
5197
5210
  */
5198
5211
  t(Y, "responseDataCache", /* @__PURE__ */ new Map());
5199
- let he = Y;
5212
+ let ge = Y;
5200
5213
  class us extends p {
5201
5214
  /**
5202
5215
  * Выполняет проверку занят ли указанный номер телефона.
@@ -5264,7 +5277,7 @@ class hs extends p {
5264
5277
  const o = this.get(
5265
5278
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5266
5279
  { params: s, client_id: e },
5267
- (u) => new L(u.data)
5280
+ (u) => new d(u.data)
5268
5281
  );
5269
5282
  return o.catch((u) => {
5270
5283
  this.errorResponseHandler(u, n);
@@ -5388,12 +5401,12 @@ class fs {
5388
5401
  return r.id === 0 && r.guid === "-undefined-";
5389
5402
  }
5390
5403
  }
5391
- class At extends he {
5404
+ class At extends ge {
5392
5405
  /**
5393
5406
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5394
5407
  */
5395
5408
  async getManagers() {
5396
- const r = "/internal/managers", e = he.getCachedResponse(r);
5409
+ const r = "/internal/managers", e = ge.getCachedResponse(r);
5397
5410
  if (e)
5398
5411
  return e;
5399
5412
  const n = (await this.get(r)).data.map((o) => je.instanceInitializer(Pe, o));
@@ -5465,7 +5478,7 @@ class ys {
5465
5478
  */
5466
5479
  t(this, "isAdditionalSale");
5467
5480
  var e, s, n;
5468
- this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : /* @__PURE__ */ new Date(), this.addressId = (s = r == null ? void 0 : r.delivery.address) == null ? void 0 : s.id, this.warehouseId = (n = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : n.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
5481
+ this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (s = r == null ? void 0 : r.delivery.address) == null ? void 0 : s.id, this.warehouseId = (n = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : n.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
5469
5482
  }
5470
5483
  }
5471
5484
  class Ir extends Sr {
@@ -5532,13 +5545,13 @@ class Ir extends Sr {
5532
5545
  }, this.delivery = {
5533
5546
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5534
5547
  date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? a(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
5535
- address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new ae(e.delivery.address) : void 0,
5536
- warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new me(e.delivery.warehouse) : void 0
5537
- }, this.attachedUser = e != null && e.attachedUser ? new d(e == null ? void 0 : e.attachedUser) : void 0, this.status = new $e(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.attachedAt = C(e == null ? void 0 : e.attachedAt) ? a(e.attachedAt) : e == null ? void 0 : e.attachedAt, 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;
5548
+ address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new le(e.delivery.address) : void 0,
5549
+ warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new fe(e.delivery.warehouse) : void 0
5550
+ }, this.attachedUser = e != null && e.attachedUser ? new L(e == null ? void 0 : e.attachedUser) : void 0, this.status = new $e(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.attachedAt = C(e == null ? void 0 : e.attachedAt) ? a(e.attachedAt) : e == null ? void 0 : e.attachedAt, 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;
5538
5551
  }
5539
5552
  }
5540
5553
  var Tt = /* @__PURE__ */ ((i) => (i.New = "new", i.Processing = "processing", i.AwaitingSupplyProducts = "awaiting_supply_products", i.InvoiceIssued = "invoice_issued", i.ProcessingOnStock = "processing_on_stock", i.Finished = "finished", i.OrderUpdated = "order_updated", i.Canceled = "canceled", i.Error = "error", i))(Tt || {});
5541
- class T extends he {
5554
+ class T extends ge {
5542
5555
  /**
5543
5556
  * Возвращает {@link Promise} для получения данных указанного справочника.
5544
5557
  *
@@ -5643,7 +5656,7 @@ class T extends he {
5643
5656
  * @param term Терм поиска.
5644
5657
  */
5645
5658
  searchRegion(r) {
5646
- return this.getTypedDataArrayRequester(pe, `/internal/references/region-with-country/search?term=${r}`);
5659
+ return this.getTypedDataArrayRequester(he, `/internal/references/region-with-country/search?term=${r}`);
5647
5660
  }
5648
5661
  /**
5649
5662
  * Выполняет поиск данных о странах по терму в названии.
@@ -5663,7 +5676,7 @@ class T extends he {
5663
5676
  * Возвращает {@link Promise} для получения справочника складов.
5664
5677
  */
5665
5678
  getWarehouses() {
5666
- return this.getTypedDataArrayRequester(me, "/public/references/warehouse", !0);
5679
+ return this.getTypedDataArrayRequester(fe, "/public/references/warehouse", !0);
5667
5680
  }
5668
5681
  /**
5669
5682
  * Возвращает {@link Promise} для получения справочника типов свойств.
@@ -6032,7 +6045,7 @@ class vs extends br {
6032
6045
  * @inheritDoc
6033
6046
  */
6034
6047
  t(this, "onlyMyRegions");
6035
- this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((u) => new ar(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new te(e.client) : void 0, 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 = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new De(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, 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.attachedAt = new S(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new F(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Rr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new me(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6048
+ this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((u) => new ar(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new te(e.client) : void 0, 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 L(e.creator) : void 0, this.deliveryDate = new S(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new De(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, 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.attachedAt = new S(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new F(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Rr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new fe(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6036
6049
  }
6037
6050
  /**
6038
6051
  * @inheritDoc
@@ -6189,7 +6202,7 @@ class x extends Ir {
6189
6202
  * @inheritDoc
6190
6203
  */
6191
6204
  t(this, "operatorsForWarehouseComment");
6192
- this.products = (e.products ?? []).map((n) => new bt(n)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (s = e.nextStatuses) == null ? void 0 : s.map((n) => new $e(n)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment;
6205
+ this.products = (e.products ?? []).map((n) => new bt(n)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ae.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (s = e.nextStatuses) == null ? void 0 : s.map((n) => new $e(n)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment;
6193
6206
  }
6194
6207
  }
6195
6208
  class St {
@@ -6215,7 +6228,7 @@ class St {
6215
6228
  * @inheritDoc
6216
6229
  */
6217
6230
  t(this, "createdAt");
6218
- this.user = new d(r == null ? void 0 : r.user), this.status = new $e(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = C(r == null ? void 0 : r.createdAt) ? a(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6231
+ this.user = new L(r == null ? void 0 : r.user), this.status = new $e(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = C(r == null ? void 0 : r.createdAt) ? a(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6219
6232
  }
6220
6233
  }
6221
6234
  class Cs extends Ae {
@@ -6299,7 +6312,7 @@ class Cs extends Ae {
6299
6312
  ...s,
6300
6313
  deliveryDate: I(s.deliveryDate, o)
6301
6314
  },
6302
- (c) => new x(c.data),
6315
+ (c) => c.data.map((u) => new x(u)),
6303
6316
  n
6304
6317
  );
6305
6318
  }
@@ -6497,7 +6510,7 @@ class Cs extends Ae {
6497
6510
  );
6498
6511
  }
6499
6512
  }
6500
- class de {
6513
+ class Le {
6501
6514
  /**
6502
6515
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
6503
6516
  *
@@ -6524,7 +6537,7 @@ class de {
6524
6537
  * Источник клиентской цены.
6525
6538
  */
6526
6539
  t(this, "source");
6527
- this.client = new te(r == null ? void 0 : r.client), this.product = new L(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) ?? Me.Product;
6540
+ this.client = new te(r == null ? void 0 : r.client), this.product = new d(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) ?? Me.Product;
6528
6541
  }
6529
6542
  }
6530
6543
  const xe = (i) => {
@@ -6561,7 +6574,7 @@ class as extends p {
6561
6574
  ...tr(e),
6562
6575
  filters: xe(s)
6563
6576
  },
6564
- (n) => n.data.map((o) => new de(o))
6577
+ (n) => n.data.map((o) => new Le(o))
6565
6578
  );
6566
6579
  }
6567
6580
  /**
@@ -6580,7 +6593,7 @@ class as extends p {
6580
6593
  ...tr(e),
6581
6594
  filters: xe(s)
6582
6595
  },
6583
- (n) => n.data.map((o) => new de(o))
6596
+ (n) => n.data.map((o) => new Le(o))
6584
6597
  );
6585
6598
  }
6586
6599
  /**
@@ -6601,7 +6614,7 @@ class as extends p {
6601
6614
  ...e,
6602
6615
  filters: xe(s)
6603
6616
  },
6604
- (n) => n.data.map((o) => new de(o))
6617
+ (n) => n.data.map((o) => new Le(o))
6605
6618
  );
6606
6619
  }
6607
6620
  }
@@ -6652,10 +6665,10 @@ class kt {
6652
6665
  * @inheritDoc
6653
6666
  */
6654
6667
  t(this, "currency");
6655
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? a(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ue(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 O(r.currency) : void 0;
6668
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? a(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new pe(r.product) : void 0, this.client = r.client ? new L(r.client) : void 0, this.executor = r.executor ? new L(r.executor) : void 0, this.currency = r.currency ? new O(r.currency) : void 0;
6656
6669
  }
6657
6670
  }
6658
- class It extends ue {
6671
+ class It extends pe {
6659
6672
  /**
6660
6673
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
6661
6674
  *
@@ -6667,7 +6680,7 @@ class It extends ue {
6667
6680
  * @inheritDoc
6668
6681
  */
6669
6682
  t(this, "history");
6670
- this.history = ge(e.history, (s) => new kt(s));
6683
+ this.history = me(e.history, (s) => new kt(s));
6671
6684
  }
6672
6685
  }
6673
6686
  class Rs extends p {
@@ -6681,7 +6694,7 @@ class Rs extends p {
6681
6694
  getProductPriceHistory(r) {
6682
6695
  var o, c, u, h, m;
6683
6696
  const e = k().config.dateFormats.api, s = cr(
6684
- le(r, {
6697
+ ue(r, {
6685
6698
  costDate: {
6686
6699
  from: _e((o = r.costDate) == null ? void 0 : o.from) ? I(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6687
6700
  to: _e((u = r.costDate) == null ? void 0 : u.to) ? I(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
@@ -6690,7 +6703,7 @@ class Rs extends p {
6690
6703
  (f) => A(f) || (H(f) || lr(f)) && X(f)
6691
6704
  ), n = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
6692
6705
  return delete s.product, this.get(`/internal/price/products/${n}/history`, s).then((f) => [
6693
- new It(le(f[0], { history: f }))
6706
+ new It(ue(f[0], { history: f }))
6694
6707
  ]);
6695
6708
  }
6696
6709
  }
@@ -6709,7 +6722,7 @@ class sr {
6709
6722
  * Список рекомендованных категорий продуктов.
6710
6723
  */
6711
6724
  t(this, "productCategories", []);
6712
- r != null && r.products && (this.products = r.products.map((e) => new ue(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ue(e)));
6725
+ r != null && r.products && (this.products = r.products.map((e) => new pe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new pe(e)));
6713
6726
  }
6714
6727
  }
6715
6728
  class Ps extends p {
@@ -6758,7 +6771,7 @@ class Ps extends p {
6758
6771
  });
6759
6772
  }
6760
6773
  }
6761
- class Lt {
6774
+ class dt {
6762
6775
  /**
6763
6776
  * Инициализирует экземпляр класса {@link MetaTagItem}.
6764
6777
  *
@@ -6816,7 +6829,7 @@ class ir {
6816
6829
  */
6817
6830
  t(this, "tags");
6818
6831
  var e;
6819
- 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 Lt(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6832
+ 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 dt(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6820
6833
  }
6821
6834
  }
6822
6835
  class Ds extends p {
@@ -6897,7 +6910,7 @@ class As extends p {
6897
6910
  });
6898
6911
  }
6899
6912
  }
6900
- var dt = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(dt || {});
6913
+ var Lt = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(Lt || {});
6901
6914
  class xt extends wr {
6902
6915
  /**
6903
6916
  * Инициализирует экземпляр класса {@link User}.
@@ -7000,7 +7013,7 @@ export {
7000
7013
  Ne as BankAccount,
7001
7014
  Ae as BasePaginationProvider,
7002
7015
  lt as CalculationTypeEnum,
7003
- ye as Cart,
7016
+ we as Cart,
7004
7017
  Wt as CartProvider,
7005
7018
  Et as CatalogProvider,
7006
7019
  pr as CatalogableItem,
@@ -7011,7 +7024,7 @@ export {
7011
7024
  De as CityWithRegionAndCountry,
7012
7025
  rr as Client,
7013
7026
  Rt as ClientAdditionalData,
7014
- ve as ClientCategory,
7027
+ Ce as ClientCategory,
7015
7028
  _ as ClientDataProvider,
7016
7029
  Vt as ClientPriceProvider,
7017
7030
  Kt as ClientPriceTemplateProvider,
@@ -7021,7 +7034,7 @@ export {
7021
7034
  te as ClientShortInfo,
7022
7035
  gt as ClientsAdditionalDataRequestTypeEnum,
7023
7036
  os as ClientsListFilters,
7024
- ue as CodedIdentity,
7037
+ pe as CodedIdentity,
7025
7038
  hs as ConfiguratorProvider,
7026
7039
  Dt as ConfiguratorsEnum,
7027
7040
  Ue as Contact,
@@ -7029,9 +7042,9 @@ export {
7029
7042
  z as ContactPerson,
7030
7043
  at as ContactPersonRelated,
7031
7044
  ft as ContactPosition,
7032
- Le as ContactRelation,
7045
+ de as ContactRelation,
7033
7046
  Ar as ContragentBase,
7034
- Ce as ContragentFactory,
7047
+ ae as ContragentFactory,
7035
7048
  $r as ContragentIc,
7036
7049
  vt as ContragentPerson,
7037
7050
  Ct as ContragentUlNr,
@@ -7047,7 +7060,7 @@ export {
7047
7060
  ls as DataTableSortRequestParams,
7048
7061
  gs as DateTimeProvider,
7049
7062
  tt as DeletableNamedIdentity,
7050
- ae as DeliveryAddress,
7063
+ le as DeliveryAddress,
7051
7064
  F as DeliveryType,
7052
7065
  Bt as DetailedJwtPayload,
7053
7066
  Yr as DeviceTypeResolutionConfig,
@@ -7058,7 +7071,7 @@ export {
7058
7071
  Je as FilterOpEnum,
7059
7072
  gr as GeoCoordinates,
7060
7073
  it as HiddenCatalogableItem,
7061
- he as HttpCachedRequester,
7074
+ ge as HttpCachedRequester,
7062
7075
  Xr as HttpParamsConfig,
7063
7076
  p as HttpRequester,
7064
7077
  re as Identity,
@@ -7068,7 +7081,7 @@ export {
7068
7081
  Be as ManagerCommon,
7069
7082
  fs as ManagerDataFactory,
7070
7083
  At as ManagerDataProvider,
7071
- Lt as MetaTagItem,
7084
+ dt as MetaTagItem,
7072
7085
  b as NamedIdentity,
7073
7086
  ar as Operator,
7074
7087
  B as Opf,
@@ -7089,8 +7102,8 @@ export {
7089
7102
  br as PaginationFiltersBase,
7090
7103
  ee as PartnerGroup,
7091
7104
  Rr as PaymentType,
7092
- we as PreferencesStorageProvider,
7093
- de as PriceAnalyze,
7105
+ ve as PreferencesStorageProvider,
7106
+ Le as PriceAnalyze,
7094
7107
  as as PriceAnalyzeProvider,
7095
7108
  Re as PriceCoefficient,
7096
7109
  hr as PriceCoefficientEnum,
@@ -7105,7 +7118,7 @@ export {
7105
7118
  ce as PricingRole,
7106
7119
  rs as PricingRoleProvider,
7107
7120
  qe as PrimaryCatalogableItem,
7108
- L as Product,
7121
+ d as Product,
7109
7122
  Qt as ProductCategoryDataProvider,
7110
7123
  Yt as ProductDataProvider,
7111
7124
  wt as ProductFileType,
@@ -7122,7 +7135,7 @@ export {
7122
7135
  w as Reference,
7123
7136
  ns as ReferenceDataFactory,
7124
7137
  T as ReferenceDataProvider,
7125
- pe as Region,
7138
+ he as Region,
7126
7139
  Pr as ResourceType,
7127
7140
  q as SalesDirection,
7128
7141
  Zr as SentryConfig,
@@ -7141,10 +7154,10 @@ export {
7141
7154
  wr as UserCommonInfo,
7142
7155
  _t as UserDataProvider,
7143
7156
  pt as UserPricingRole,
7144
- d as UserShortInfo,
7145
- dt as UserTypeEnum,
7157
+ L as UserShortInfo,
7158
+ Lt as UserTypeEnum,
7146
7159
  ps as VersionConfig,
7147
- me as Warehouse,
7160
+ fe as Warehouse,
7148
7161
  et as WebSocketConfig,
7149
7162
  Ze as findCatalogItemByIdRecursive,
7150
7163
  er as flattenCatalogItems,