@snabcentr/common-lib 1.90.1 → 1.90.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import { merge as ce, isNil as T, isEmpty as Y, noop as w, mapValues as nr, isAr
6
6
  import { objectToCamel as He, objectToSnake as Je } from "ts-case-convert";
7
7
  import { defineStore as z } from "pinia";
8
8
  import { ref as y, markRaw as Hr, computed as A } from "vue";
9
- import { isAfter as Ee, parseISO as C, startOfToday as Oe, format as U, addSeconds as Fr, addBusinessDays as jr, endOfTomorrow as Gr, startOfTomorrow as Mr, endOfYesterday as Br, startOfYesterday as zr, endOfToday as Wr, endOfDay as Jr, startOfDay as Er } from "date-fns";
9
+ import { isAfter as Ee, parseISO as C, startOfToday as Oe, format as U, addSeconds as Fr, addBusinessDays as Mr, endOfTomorrow as jr, startOfTomorrow as Gr, endOfYesterday as Br, startOfYesterday as zr, endOfToday as Wr, endOfDay as Jr, startOfDay as Er } from "date-fns";
10
10
  import Vr, { CanceledError as Kr } from "axios";
11
11
  class F {
12
12
  /**
@@ -111,7 +111,7 @@ class F {
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class Gt extends F {
114
+ class jt extends F {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -359,7 +359,7 @@ const L = z("common.config", () => {
359
359
  }
360
360
  };
361
361
  });
362
- class ye {
362
+ class we {
363
363
  /**
364
364
  * Возвращает актуальные и не просроченные данные из хранилища.
365
365
  *
@@ -480,7 +480,7 @@ const E = z("common.auth_state_private", () => {
480
480
  const n = y(
481
481
  (() => {
482
482
  var u;
483
- const o = ye.getActualDataFromStorage(
483
+ const o = we.getActualDataFromStorage(
484
484
  "sc.token"
485
485
  /* JwtToken */
486
486
  );
@@ -524,7 +524,7 @@ const E = z("common.auth_state_private", () => {
524
524
  if (T(o.jwtToken) && !T(o.jwtTokenUpdater)) {
525
525
  const c = o.jwtTokenUpdater();
526
526
  o.jwtToken = c, c.then((u) => {
527
- o.jwtToken = Promise.resolve(u), ye.saveActualDataToStorage("sc.token", u, Ve(u)), o.recalculateUserPermissions();
527
+ o.jwtToken = Promise.resolve(u), we.saveActualDataToStorage("sc.token", u, Ve(u)), o.recalculateUserPermissions();
528
528
  }).catch(w);
529
529
  }
530
530
  return o.jwtToken;
@@ -534,11 +534,11 @@ const E = z("common.auth_state_private", () => {
534
534
  }
535
535
  function e(o) {
536
536
  const c = E();
537
- c.jwtToken = Promise.resolve(o), ye.saveActualDataToStorage("sc.token", o, Ve(o)), c.recalculateUserPermissions();
537
+ c.jwtToken = Promise.resolve(o), we.saveActualDataToStorage("sc.token", o, Ve(o)), c.recalculateUserPermissions();
538
538
  }
539
539
  function s() {
540
540
  const o = E();
541
- o.jwtToken = void 0, o.userPermissions = void 0, ye.saveActualDataToStorage("sc.token", void 0);
541
+ o.jwtToken = void 0, o.userPermissions = void 0, we.saveActualDataToStorage("sc.token", void 0);
542
542
  }
543
543
  function i(o) {
544
544
  const c = E();
@@ -860,7 +860,7 @@ class K extends lr {
860
860
  }
861
861
  }
862
862
  var pr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(pr || {});
863
- class Re extends R {
863
+ class Pe extends R {
864
864
  /**
865
865
  * Возвращает значение справочника коэффициента розничной цены.
866
866
  */
@@ -868,7 +868,7 @@ class Re extends R {
868
868
  return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: Or(!0) };
869
869
  }
870
870
  }
871
- class je {
871
+ class Me {
872
872
  /**
873
873
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
874
874
  *
@@ -895,7 +895,7 @@ class je {
895
895
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
896
896
  */
897
897
  t(this, "readOnly");
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;
898
+ this.coefficient = new Pe(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
901
  class hr {
@@ -1101,7 +1101,7 @@ class I extends st {
1101
1101
  t(this, "priceCoefficients");
1102
1102
  this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ke(e.unit) : new Ke(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new x(e.currency) : new x(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = v(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new nt(h))) ?? [], this.type = "product";
1103
1103
  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, L().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new je(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1104
+ s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new tt(h, L().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new Me(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1105
1105
  }
1106
1106
  /**
1107
1107
  * Возвращает признак, что это измеряемый товар.
@@ -1122,8 +1122,8 @@ class I extends st {
1122
1122
  return this.retailCostRub ?? this.costRub;
1123
1123
  }
1124
1124
  }
1125
- var Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {});
1126
- class j extends I {
1125
+ var je = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(je || {});
1126
+ class M extends I {
1127
1127
  /**
1128
1128
  * Инициализирует экземпляр класса {@link ClientProduct}.
1129
1129
  *
@@ -1159,7 +1159,7 @@ class j extends I {
1159
1159
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1160
1160
  */
1161
1161
  t(this, "isFavorite");
1162
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new it(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new K(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;
1162
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new it(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new K(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
1165
  class me extends _e {
@@ -1245,7 +1245,7 @@ class gr extends ee {
1245
1245
  * @inheritDoc
1246
1246
  */
1247
1247
  t(this, "creatorUser");
1248
- this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new me(), 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);
1248
+ this.product = new M(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new me(), 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
1249
  }
1250
1250
  }
1251
1251
  let ot = class extends gr {
@@ -1295,7 +1295,7 @@ let ot = class extends gr {
1295
1295
  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 x(e.currency);
1296
1296
  }
1297
1297
  };
1298
- class fe {
1298
+ class ye {
1299
1299
  /**
1300
1300
  * Инициализирует экземпляр класса {@link Cart}.
1301
1301
  *
@@ -1595,7 +1595,7 @@ class Bt extends p {
1595
1595
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
1596
1596
  */
1597
1597
  getCart(r) {
1598
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new fe(e.data));
1598
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ye(e.data));
1599
1599
  }
1600
1600
  /**
1601
1601
  * Удаляет всё содержимое корзины.
@@ -1633,7 +1633,7 @@ class Bt extends p {
1633
1633
  is_additional_sale: e.isAdditionalSale,
1634
1634
  ...e.configuratorParams
1635
1635
  },
1636
- (i) => new fe(i.data),
1636
+ (i) => new ye(i.data),
1637
1637
  s
1638
1638
  );
1639
1639
  }
@@ -1663,7 +1663,7 @@ class Bt extends p {
1663
1663
  is_additional_sale: e.isAdditionalSale,
1664
1664
  ...e.configuratorParams
1665
1665
  },
1666
- (i) => new fe(i.data),
1666
+ (i) => new ye(i.data),
1667
1667
  s
1668
1668
  );
1669
1669
  }
@@ -1687,7 +1687,7 @@ class Bt extends p {
1687
1687
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1688
1688
  */
1689
1689
  addCartItemFromCSV(r, e) {
1690
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new fe(s.data));
1690
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new ye(s.data));
1691
1691
  }
1692
1692
  /**
1693
1693
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -1741,7 +1741,7 @@ class mr {
1741
1741
  }
1742
1742
  class O extends R {
1743
1743
  }
1744
- class Me extends k {
1744
+ class Ge extends k {
1745
1745
  /**
1746
1746
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1747
1747
  *
@@ -1797,7 +1797,7 @@ class ut extends k {
1797
1797
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1798
1798
  }
1799
1799
  }
1800
- class Pe extends Me {
1800
+ class fe extends Ge {
1801
1801
  /**
1802
1802
  * Инициализирует экземпляр класса {@link Manager}.
1803
1803
  *
@@ -1865,10 +1865,10 @@ class pt extends me {
1865
1865
  * Данные о менеджере за которым закреплена категория.
1866
1866
  */
1867
1867
  t(this, "manager");
1868
- 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;
1868
+ 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 fe(e.manager) : void 0;
1869
1869
  }
1870
1870
  }
1871
- class we extends pt {
1871
+ class ve extends pt {
1872
1872
  /**
1873
1873
  * Инициализирует экземпляр класса {@link ClientCategory}.
1874
1874
  *
@@ -1885,7 +1885,7 @@ class we extends pt {
1885
1885
  * Список продуктов категории.
1886
1886
  */
1887
1887
  t(this, "products");
1888
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new we(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new j(o));
1888
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ve(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new M(o));
1889
1889
  }
1890
1890
  }
1891
1891
  class fr {
@@ -1903,7 +1903,7 @@ class fr {
1903
1903
  * Процент, который прибавляется к значению выбранного коэффициента.
1904
1904
  */
1905
1905
  t(this, "increasePercent");
1906
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1906
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1907
1907
  }
1908
1908
  }
1909
1909
  class Se extends fr {
@@ -2061,7 +2061,7 @@ class re extends yr {
2061
2061
  * @inheritDoc
2062
2062
  */
2063
2063
  t(this, "curators");
2064
- this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Me(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new ze(o))) ?? void 0;
2064
+ this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Ge(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new ze(o))) ?? void 0;
2065
2065
  }
2066
2066
  }
2067
2067
  class ie extends ee {
@@ -2286,7 +2286,7 @@ class Qe {
2286
2286
  * Минимальный коэффициент цены.
2287
2287
  */
2288
2288
  t(this, "minCoefficient");
2289
- this.role = new oe(r == null ? void 0 : r.role), this.category = new me(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
2289
+ this.role = new oe(r == null ? void 0 : r.role), this.category = new me(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
2290
2290
  }
2291
2291
  }
2292
2292
  class Wt extends p {
@@ -2444,7 +2444,7 @@ class Jt extends p {
2444
2444
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2445
2445
  increase_percent: s.value
2446
2446
  },
2447
- (o) => new j(o.data)
2447
+ (o) => new M(o.data)
2448
2448
  );
2449
2449
  }
2450
2450
  /**
@@ -2456,7 +2456,7 @@ class Jt extends p {
2456
2456
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2457
2457
  */
2458
2458
  removeProductPrice(r, e) {
2459
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new j(s.data));
2459
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new M(s.data));
2460
2460
  }
2461
2461
  /**
2462
2462
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2684,7 +2684,7 @@ class Vt extends p {
2684
2684
  getCategoryProductsCoefficients(r) {
2685
2685
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2686
2686
  const { data: s } = e;
2687
- return Ur(s, (i) => i.map((o) => new je(o))), s;
2687
+ return Ur(s, (i) => i.map((o) => new Me(o))), s;
2688
2688
  });
2689
2689
  }
2690
2690
  /**
@@ -2734,7 +2734,7 @@ class Kt extends p {
2734
2734
  return this.get(
2735
2735
  `/internal/catalog/products/${r}/coefficients`,
2736
2736
  {},
2737
- (e) => he(e.data, (s) => new je(s))
2737
+ (e) => he(e.data, (s) => new Me(s))
2738
2738
  );
2739
2739
  }
2740
2740
  /**
@@ -2769,7 +2769,7 @@ class Qt extends p {
2769
2769
  clientId: r,
2770
2770
  showHidden: e
2771
2771
  },
2772
- (s) => s.data.map((i) => new we(i))
2772
+ (s) => s.data.map((i) => new ve(i))
2773
2773
  );
2774
2774
  }
2775
2775
  /**
@@ -2790,7 +2790,7 @@ class Qt extends p {
2790
2790
  showHidden: s,
2791
2791
  withNestedCategories: i
2792
2792
  },
2793
- (o) => new we(o.data)
2793
+ (o) => new ve(o.data)
2794
2794
  );
2795
2795
  }
2796
2796
  /**
@@ -2811,7 +2811,7 @@ class Qt extends p {
2811
2811
  showHidden: i,
2812
2812
  withPriceCoefficients: s
2813
2813
  },
2814
- (o) => he(o.data, (c) => new j(c))
2814
+ (o) => he(o.data, (c) => new M(c))
2815
2815
  );
2816
2816
  }
2817
2817
  }
@@ -2832,7 +2832,7 @@ class Yt extends p {
2832
2832
  clientId: e,
2833
2833
  withPriceCoefficients: s
2834
2834
  },
2835
- (i) => new j(i.data)
2835
+ (i) => new M(i.data)
2836
2836
  );
2837
2837
  }
2838
2838
  }
@@ -2871,7 +2871,7 @@ class Ye {
2871
2871
  return r.value = xe(this.value) ? U(this.value, L().config.dateFormats.api) : this.value, r;
2872
2872
  }
2873
2873
  }
2874
- class G {
2874
+ class j {
2875
2875
  /**
2876
2876
  * Инициализирует экземпляр класса {@link FilterGroup}.
2877
2877
  *
@@ -2891,7 +2891,7 @@ class G {
2891
2891
  */
2892
2892
  t(this, "groups");
2893
2893
  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 G(i))) ?? [];
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 j(i))) ?? [];
2895
2895
  }
2896
2896
  /**
2897
2897
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2902,7 +2902,7 @@ class G {
2902
2902
  return {
2903
2903
  groupOp: this.groupOp,
2904
2904
  filters: this.filters.map((r) => r instanceof Ye && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2905
- groups: this.groups.map((r) => r instanceof G ? r.toPrimitive() : r)
2905
+ groups: this.groups.map((r) => r instanceof j ? r.toPrimitive() : r)
2906
2906
  };
2907
2907
  }
2908
2908
  }
@@ -2924,7 +2924,7 @@ class De extends p {
2924
2924
  page: (i == null ? void 0 : i.page) ?? 1,
2925
2925
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2926
2926
  };
2927
- return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())), Y(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
2927
+ return e && (m.filters = JSON.stringify((e instanceof j ? e : new j(e)).toPrimitive())), Y(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
2928
2928
  }
2929
2929
  }
2930
2930
  class Xt extends De {
@@ -3684,12 +3684,12 @@ class ts extends R {
3684
3684
  }
3685
3685
  class mt extends R {
3686
3686
  }
3687
- class M extends R {
3687
+ class G extends R {
3688
3688
  /**
3689
3689
  * Возвращает сгенерированную запись-описание физического лица.
3690
3690
  */
3691
3691
  static generatePersonItem() {
3692
- return new M({
3692
+ return new G({
3693
3693
  id: 1,
3694
3694
  guid: "",
3695
3695
  slug: q.Person,
@@ -3829,7 +3829,7 @@ class Dr extends k {
3829
3829
  /**
3830
3830
  * Данные об организационно-правовой форме.
3831
3831
  */
3832
- t(this, "opf", M.generatePersonItem());
3832
+ t(this, "opf", G.generatePersonItem());
3833
3833
  /**
3834
3834
  * Группа партнеров (направление деятельности).
3835
3835
  */
@@ -3867,7 +3867,7 @@ class Dr extends k {
3867
3867
  */
3868
3868
  t(this, "updater");
3869
3869
  if (e) {
3870
- if (this.opf = new M(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Z(e.partnerGroup)), e.contacts) {
3870
+ 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) {
3871
3871
  const s = [];
3872
3872
  e.contacts.forEach((i) => {
3873
3873
  s.push(new B(i));
@@ -3973,7 +3973,7 @@ class Ct extends $r {
3973
3973
  e && (this.registrationCountry = new X(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3974
3974
  }
3975
3975
  }
3976
- class ve {
3976
+ class Ce {
3977
3977
  /**
3978
3978
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3979
3979
  *
@@ -4035,7 +4035,7 @@ class Rt extends B {
4035
4035
  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))));
4036
4036
  }
4037
4037
  }
4038
- class Ce extends rt {
4038
+ class Re extends rt {
4039
4039
  /**
4040
4040
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4041
4041
  *
@@ -4125,7 +4125,7 @@ class er extends re {
4125
4125
  * @inheritDoc
4126
4126
  */
4127
4127
  t(this, "extraData");
4128
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Ce(u))) ?? [], this.channelPrimaryInterest = new 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 ge(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4128
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Re(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 ge(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4129
4129
  }
4130
4130
  }
4131
4131
  class br {
@@ -4207,6 +4207,10 @@ class is extends br {
4207
4207
  * @inheritDoc
4208
4208
  */
4209
4209
  t(this, "managers");
4210
+ /**
4211
+ * @inheritDoc
4212
+ */
4213
+ t(this, "includeSubordinateManagers");
4210
4214
  /**
4211
4215
  * @inheritDoc
4212
4216
  */
@@ -4243,7 +4247,7 @@ class is extends br {
4243
4247
  * @inheritDoc
4244
4248
  */
4245
4249
  t(this, "lastOrder");
4246
- this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new ue(e == null ? void 0 : e.region), this.country = new X(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new Pe(D))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new ze(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new O(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new M(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new N(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new Z(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
4250
+ this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new ue(e == null ? void 0 : e.region), this.country = new 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 fe(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, 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 Z(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
4247
4251
  createdAt: new S((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
4248
4252
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4249
4253
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
@@ -4282,7 +4286,7 @@ class is extends br {
4282
4286
  this.salesDirections = [];
4283
4287
  break;
4284
4288
  case "contragentType":
4285
- this.contragentType = new M();
4289
+ this.contragentType = new G();
4286
4290
  break;
4287
4291
  case "preferredDeliveryType":
4288
4292
  this.preferredDeliveryType = new N();
@@ -4368,7 +4372,7 @@ class Pt extends k {
4368
4372
  * @inheritDoc
4369
4373
  */
4370
4374
  t(this, "curators");
4371
- this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new N(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Me(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new ze(u))) ?? void 0;
4375
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new N(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Ge(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new ze(u))) ?? void 0;
4372
4376
  }
4373
4377
  }
4374
4378
  class At {
@@ -4802,7 +4806,7 @@ class a extends De {
4802
4806
  return this.post(
4803
4807
  `/internal/clients/${r}/contragents`,
4804
4808
  a.transformContragentClientDataToRequest(e),
4805
- (i) => ve.createInstance(i.data),
4809
+ (i) => Ce.createInstance(i.data),
4806
4810
  s
4807
4811
  );
4808
4812
  }
@@ -4818,7 +4822,7 @@ class a extends De {
4818
4822
  return this.patch(
4819
4823
  `/internal/clients/${r}/contragents/${e.id}`,
4820
4824
  a.transformContragentClientDataToRequest(e),
4821
- (i) => ve.createInstance(i.data),
4825
+ (i) => Ce.createInstance(i.data),
4822
4826
  s
4823
4827
  );
4824
4828
  }
@@ -4844,7 +4848,7 @@ class a extends De {
4844
4848
  return this.post(
4845
4849
  `/internal/clients/${r}/delivery-addresses`,
4846
4850
  a.transformClientDeliveryAddressToRequest(e),
4847
- (i) => new Ce(i.data),
4851
+ (i) => new Re(i.data),
4848
4852
  s
4849
4853
  );
4850
4854
  }
@@ -4860,7 +4864,7 @@ class a extends De {
4860
4864
  return this.patch(
4861
4865
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4862
4866
  a.transformClientDeliveryAddressToRequest(e),
4863
- (i) => new Ce(i.data),
4867
+ (i) => new Re(i.data),
4864
4868
  s
4865
4869
  );
4866
4870
  }
@@ -5318,13 +5322,13 @@ class ps {
5318
5322
  * Возвращает диапазон дат по умолчанию.
5319
5323
  */
5320
5324
  static defaultDateRanges() {
5321
- const r = jr(/* @__PURE__ */ new Date(), 1);
5325
+ const r = Mr(/* @__PURE__ */ new Date(), 1);
5322
5326
  return {
5323
5327
  // 'Следующий рабочий день' - это значение по-умолчанию
5324
5328
  nextWorkingDay: { label: "Следующий рабочий день", from: Er(r), to: Jr(r) },
5325
5329
  today: { label: "Сегодня", from: Oe(), to: Wr() },
5326
5330
  yesterday: { label: "Вчера", from: zr(), to: Br() },
5327
- tomorrow: { label: "Завтра", from: Mr(), to: Gr() }
5331
+ tomorrow: { label: "Завтра", from: Gr(), to: jr() }
5328
5332
  };
5329
5333
  }
5330
5334
  }
@@ -5365,7 +5369,7 @@ class gs {
5365
5369
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5366
5370
  */
5367
5371
  static generateUndefinedManagerInstance() {
5368
- return new Pe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5372
+ return new fe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5369
5373
  }
5370
5374
  /**
5371
5375
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5384,7 +5388,7 @@ class Tt extends pe {
5384
5388
  const r = "/internal/managers", e = pe.getCachedResponse(r);
5385
5389
  if (e)
5386
5390
  return e;
5387
- const i = (await this.get(r)).data.map((o) => Fe.instanceInitializer(Pe, o));
5391
+ const i = (await this.get(r)).data.map((o) => Fe.instanceInitializer(fe, o));
5388
5392
  return this.cacheResponse(r, i), i;
5389
5393
  }
5390
5394
  }
@@ -5452,7 +5456,7 @@ class Ir extends Sr {
5452
5456
  }, this.delivery = {
5453
5457
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5454
5458
  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(),
5455
- address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Ce(e.delivery.address) : void 0,
5459
+ address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Re(e.delivery.address) : void 0,
5456
5460
  warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new ge(e.delivery.warehouse) : void 0
5457
5461
  }, 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;
5458
5462
  }
@@ -5505,7 +5509,7 @@ class b extends pe {
5505
5509
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
5506
5510
  */
5507
5511
  getOpf() {
5508
- return this.getTypedDataArrayRequester(M, "/public/references/opf", !0);
5512
+ return this.getTypedDataArrayRequester(G, "/public/references/opf", !0);
5509
5513
  }
5510
5514
  /**
5511
5515
  * Возвращает {@link Promise} для получения справочника операторов.
@@ -5595,7 +5599,7 @@ class b extends pe {
5595
5599
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
5596
5600
  */
5597
5601
  getPriceCoefficients() {
5598
- return this.getTypedDataArrayRequester(Re, "/internal/references/price-coefficient", !0);
5602
+ return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
5599
5603
  }
5600
5604
  /**
5601
5605
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
@@ -5863,7 +5867,7 @@ class fs extends br {
5863
5867
  /**
5864
5868
  * @inheritDoc
5865
5869
  */
5866
- t(this, "attachedOperators");
5870
+ t(this, "attachedUsers");
5867
5871
  /**
5868
5872
  * @inheritDoc
5869
5873
  */
@@ -5956,7 +5960,7 @@ class fs extends br {
5956
5960
  * @inheritDoc
5957
5961
  */
5958
5962
  t(this, "onlyMyRegions");
5959
- this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((u) => new Cr(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new re(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 = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new Ae(u)), 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((u) => new O(u)), 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.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new ge(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
5963
+ this.attachedUsers = (s = e == null ? void 0 : e.attachedUsers) == null ? void 0 : s.map((u) => "isActive" in u ? new fe(u) : new Cr(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new re(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 = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new Ae(u)), 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((u) => new O(u)), 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.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new ge(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
5960
5964
  }
5961
5965
  /**
5962
5966
  * @inheritDoc
@@ -6056,7 +6060,7 @@ class bt extends gr {
6056
6060
  * @inheritDoc
6057
6061
  */
6058
6062
  t(this, "currency");
6059
- this.product = new j(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;
6063
+ this.product = new M(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;
6060
6064
  }
6061
6065
  }
6062
6066
  class Le extends Ir {
@@ -6099,7 +6103,7 @@ class Le extends Ir {
6099
6103
  * @inheritDoc
6100
6104
  */
6101
6105
  t(this, "isAllowProcessingWithoutPayment");
6102
- this.products = (e.products ?? []).map((s) => new bt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ve.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new R(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
6106
+ this.products = (e.products ?? []).map((s) => new bt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new R(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
6103
6107
  }
6104
6108
  }
6105
6109
  class ys extends De {
@@ -6139,7 +6143,7 @@ class ys extends De {
6139
6143
  getOrdersCount(r, e = void 0) {
6140
6144
  return this.get(
6141
6145
  "/internal/orders/count",
6142
- r ? { filters: JSON.stringify((r instanceof G ? r : new G(r)).toPrimitive()) } : {},
6146
+ r ? { filters: JSON.stringify((r instanceof j ? r : new j(r)).toPrimitive()) } : {},
6143
6147
  void 0,
6144
6148
  void 0,
6145
6149
  e
@@ -6250,7 +6254,7 @@ class ae {
6250
6254
  * Источник клиентской цены.
6251
6255
  */
6252
6256
  t(this, "source");
6253
- this.client = new re(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;
6257
+ this.client = new re(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) ?? je.Product;
6254
6258
  }
6255
6259
  }
6256
6260
  const de = (n) => {
@@ -6726,7 +6730,7 @@ export {
6726
6730
  qe as BankAccount,
6727
6731
  De as BasePaginationProvider,
6728
6732
  ct as CalculationTypeEnum,
6729
- fe as Cart,
6733
+ ye as Cart,
6730
6734
  Bt as CartProvider,
6731
6735
  Wt as CatalogProvider,
6732
6736
  ur as CatalogableItem,
@@ -6737,11 +6741,11 @@ export {
6737
6741
  Ae as CityWithRegionAndCountry,
6738
6742
  er as Client,
6739
6743
  Pt as ClientAdditionalData,
6740
- we as ClientCategory,
6744
+ ve as ClientCategory,
6741
6745
  a as ClientDataProvider,
6742
6746
  Jt as ClientPriceProvider,
6743
6747
  Et as ClientPriceTemplateProvider,
6744
- j as ClientProduct,
6748
+ M as ClientProduct,
6745
6749
  Qt as ClientProductCategoryDataProvider,
6746
6750
  Yt as ClientProductDataProvider,
6747
6751
  re as ClientShortInfo,
@@ -6757,12 +6761,12 @@ export {
6757
6761
  mt as ContactPosition,
6758
6762
  Ie as ContactRelation,
6759
6763
  Dr as ContragentBase,
6760
- ve as ContragentFactory,
6764
+ Ce as ContragentFactory,
6761
6765
  Tr as ContragentIc,
6762
6766
  vt as ContragentPerson,
6763
6767
  Ct as ContragentUlNr,
6764
6768
  $r as ContragentUlR,
6765
- Ge as CostSourceEnum,
6769
+ je as CostSourceEnum,
6766
6770
  X as Country,
6767
6771
  Be as CuratedDirection,
6768
6772
  ze as Curator,
@@ -6773,13 +6777,13 @@ export {
6773
6777
  os as DataTableSortRequestParams,
6774
6778
  ps as DateTimeProvider,
6775
6779
  rt as DeletableNamedIdentity,
6776
- Ce as DeliveryAddress,
6780
+ Re as DeliveryAddress,
6777
6781
  N as DeliveryType,
6778
- Gt as DetailedJwtPayload,
6782
+ jt as DetailedJwtPayload,
6779
6783
  Qr as DeviceTypeResolutionConfig,
6780
6784
  it as DiscountShortInfo,
6781
6785
  Ts as FieldValidationResultData,
6782
- G as FilterGroup,
6786
+ j as FilterGroup,
6783
6787
  Ye as FilterItem,
6784
6788
  We as FilterOpEnum,
6785
6789
  hr as GeoCoordinates,
@@ -6790,14 +6794,14 @@ export {
6790
6794
  ee as Identity,
6791
6795
  tt as Image,
6792
6796
  F as JwtPayload,
6793
- Pe as Manager,
6794
- Me as ManagerCommon,
6797
+ fe as Manager,
6798
+ Ge as ManagerCommon,
6795
6799
  gs as ManagerDataFactory,
6796
6800
  Tt as ManagerDataProvider,
6797
6801
  It as MetaTagItem,
6798
6802
  k as NamedIdentity,
6799
6803
  Cr as Operator,
6800
- M as Opf,
6804
+ G as Opf,
6801
6805
  q as OpfEnum,
6802
6806
  Le as Order,
6803
6807
  Ir as OrderInfo,
@@ -6812,10 +6816,10 @@ export {
6812
6816
  br as PaginationFiltersBase,
6813
6817
  Z as PartnerGroup,
6814
6818
  Rr as PaymentType,
6815
- ye as PreferencesStorageProvider,
6819
+ we as PreferencesStorageProvider,
6816
6820
  ae as PriceAnalyze,
6817
6821
  ws as PriceAnalyzeProvider,
6818
- Re as PriceCoefficient,
6822
+ Pe as PriceCoefficient,
6819
6823
  pr as PriceCoefficientEnum,
6820
6824
  vs as PriceHistoryDataProvider,
6821
6825
  St as PriceHistoryItem,
@@ -6832,7 +6836,7 @@ export {
6832
6836
  Vt as ProductCategoryDataProvider,
6833
6837
  Kt as ProductDataProvider,
6834
6838
  wt as ProductFileType,
6835
- je as ProductPriceCoefficient,
6839
+ Me as ProductPriceCoefficient,
6836
6840
  kt as ProductPriceHistory,
6837
6841
  Ke as ProductUnit,
6838
6842
  es as PropertiesProvider,