@snabcentr/common-lib 1.53.3 → 1.53.5

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.
@@ -633,7 +633,7 @@ class xr {
633
633
  this.date = m(r == null ? void 0 : r.date) ? f(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
634
634
  }
635
635
  }
636
- class gt {
636
+ class mt {
637
637
  /**
638
638
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
639
639
  *
@@ -948,7 +948,7 @@ class u extends Ae {
948
948
  (s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
949
949
  }
950
950
  }
951
- class mt extends u {
951
+ class ft extends u {
952
952
  /**
953
953
  * Возвращает содержимое корзины указанного клиента.
954
954
  *
@@ -1072,6 +1072,7 @@ class q extends te {
1072
1072
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new _(o));
1073
1073
  }
1074
1074
  }
1075
+ var Or = /* @__PURE__ */ ((n) => (n.phone = "phone", n.tablet = "tablet", n.laptop = "laptop", n))(Or || {});
1075
1076
  class We extends D {
1076
1077
  /**
1077
1078
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
@@ -1087,7 +1088,7 @@ class We extends D {
1087
1088
  this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1088
1089
  }
1089
1090
  }
1090
- class Or extends We {
1091
+ class qr extends We {
1091
1092
  /**
1092
1093
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1093
1094
  *
@@ -1102,7 +1103,7 @@ class Or extends We {
1102
1103
  this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1103
1104
  }
1104
1105
  }
1105
- class ft {
1106
+ class yt {
1106
1107
  /**
1107
1108
  * Возвращает актуальные и не просроченные данные из хранилища.
1108
1109
  *
@@ -1151,7 +1152,7 @@ class d extends D {
1151
1152
  this.type = e == null ? void 0 : e.type;
1152
1153
  }
1153
1154
  }
1154
- class qr extends D {
1155
+ class dr extends D {
1155
1156
  /**
1156
1157
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1157
1158
  *
@@ -1245,10 +1246,10 @@ class K extends _ {
1245
1246
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1246
1247
  */
1247
1248
  t(this, "isFavorite");
1248
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Se.Product, this.discount = e != null && e.discount ? new qr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new B(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;
1249
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Se.Product, this.discount = e != null && e.discount ? new dr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new B(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;
1249
1250
  }
1250
1251
  }
1251
- class dr {
1252
+ class Ur {
1252
1253
  /**
1253
1254
  * Инициализирует экземпляр класса {@link ContactLinks}.
1254
1255
  *
@@ -1292,7 +1293,7 @@ class oe extends D {
1292
1293
  * Признак того, что менеджер является основным для клиента.
1293
1294
  */
1294
1295
  t(this, "isDefault");
1295
- e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new dr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1296
+ e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Ur(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1296
1297
  }
1297
1298
  }
1298
1299
  class ye extends oe {
@@ -1326,7 +1327,7 @@ class ye extends oe {
1326
1327
  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;
1327
1328
  }
1328
1329
  }
1329
- class Ur extends te {
1330
+ class Gr extends te {
1330
1331
  /**
1331
1332
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1332
1333
  *
@@ -1357,7 +1358,7 @@ class Ur extends te {
1357
1358
  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 ye(e.manager) : void 0;
1358
1359
  }
1359
1360
  }
1360
- class ce extends Ur {
1361
+ class ce extends Gr {
1361
1362
  /**
1362
1363
  * Инициализирует экземпляр класса {@link ClientCategory}.
1363
1364
  *
@@ -1612,13 +1613,13 @@ class H {
1612
1613
  this.property = new X(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1613
1614
  }
1614
1615
  }
1615
- class Gr extends w {
1616
+ class Mr extends w {
1616
1617
  }
1617
1618
  class Ke extends w {
1618
1619
  }
1619
- class yt extends w {
1620
+ class wt extends w {
1620
1621
  }
1621
- class Mr extends w {
1622
+ class Fr extends w {
1622
1623
  }
1623
1624
  class pe extends D {
1624
1625
  /**
@@ -1653,16 +1654,16 @@ class U extends w {
1653
1654
  });
1654
1655
  }
1655
1656
  }
1656
- class Fr extends w {
1657
- }
1658
1657
  class Hr extends w {
1659
1658
  }
1660
- class G extends w {
1661
- }
1662
1659
  class zr extends w {
1663
1660
  }
1661
+ class G extends w {
1662
+ }
1664
1663
  class Br extends w {
1665
1664
  }
1665
+ class Wr extends w {
1666
+ }
1666
1667
  class Je extends w {
1667
1668
  }
1668
1669
  class Qe extends w {
@@ -1676,7 +1677,7 @@ class R extends u {
1676
1677
  * и использовать в случае аналогичных запросов.
1677
1678
  */
1678
1679
  getReference(r, e = !1) {
1679
- return this.getTypedDataArrayRequester(Gr, `/internal/references/${r}`, e);
1680
+ return this.getTypedDataArrayRequester(Mr, `/internal/references/${r}`, e);
1680
1681
  }
1681
1682
  /**
1682
1683
  * Возвращает {@link Promise} для получения справочника данных о канале
@@ -1689,7 +1690,7 @@ class R extends u {
1689
1690
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1690
1691
  */
1691
1692
  getContactPositions() {
1692
- return this.getTypedDataArrayRequester(Mr, "/internal/references/contact-position", !0);
1693
+ return this.getTypedDataArrayRequester(Fr, "/internal/references/contact-position", !0);
1693
1694
  }
1694
1695
  /**
1695
1696
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -1714,19 +1715,19 @@ class R extends u {
1714
1715
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1715
1716
  */
1716
1717
  getOrderPaymentStatuses() {
1717
- return this.getTypedDataArrayRequester(Fr, "/public/references/order-payment-status", !0);
1718
+ return this.getTypedDataArrayRequester(Hr, "/public/references/order-payment-status", !0);
1718
1719
  }
1719
1720
  /**
1720
1721
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1721
1722
  */
1722
1723
  getOrderStatuses() {
1723
- return this.getTypedDataArrayRequester(Hr, "/public/references/order-status", !0);
1724
+ return this.getTypedDataArrayRequester(zr, "/public/references/order-status", !0);
1724
1725
  }
1725
1726
  /**
1726
1727
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1727
1728
  */
1728
1729
  getPaymentTypes() {
1729
- return this.getTypedDataArrayRequester(zr, "/public/references/payment-type", !0);
1730
+ return this.getTypedDataArrayRequester(Br, "/public/references/payment-type", !0);
1730
1731
  }
1731
1732
  /**
1732
1733
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
@@ -1798,11 +1799,11 @@ class R extends u {
1798
1799
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
1799
1800
  */
1800
1801
  getProductFileType() {
1801
- return this.getTypedDataArrayRequester(Br, "/public/references/product-file-type", !0);
1802
+ return this.getTypedDataArrayRequester(Wr, "/public/references/product-file-type", !0);
1802
1803
  }
1803
1804
  }
1804
- var Wr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Wr || {});
1805
- class jr extends Ve {
1805
+ var jr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(jr || {});
1806
+ class Vr extends Ve {
1806
1807
  /**
1807
1808
  * Инициализирует экземпляр класса {@link User}.
1808
1809
  *
@@ -1825,16 +1826,16 @@ class jr extends Ve {
1825
1826
  this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
1826
1827
  }
1827
1828
  }
1828
- class Vr extends u {
1829
+ class Er extends u {
1829
1830
  /**
1830
1831
  * Возвращает данные о текущем пользователе.
1831
1832
  */
1832
1833
  // eslint-disable-next-line class-methods-use-this
1833
1834
  getCurrentUser() {
1834
- return this.get("/internal/users/info", {}, (r) => new jr(r.data));
1835
+ return this.get("/internal/users/info", {}, (r) => new Vr(r.data));
1835
1836
  }
1836
1837
  }
1837
- class Er {
1838
+ class Kr {
1838
1839
  /**
1839
1840
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1840
1841
  *
@@ -1985,7 +1986,7 @@ class Pe {
1985
1986
  this.client = new se(r == null ? void 0 : r.client), this.product = new _(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) ?? Se.Product;
1986
1987
  }
1987
1988
  }
1988
- class wt extends u {
1989
+ class Ct extends u {
1989
1990
  /**
1990
1991
  * Возвращает данные о результатах поиска категорий и товаров.
1991
1992
  *
@@ -2016,7 +2017,7 @@ class wt extends u {
2016
2017
  return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
2017
2018
  }
2018
2019
  }
2019
- class Ct extends u {
2020
+ class vt extends u {
2020
2021
  /**
2021
2022
  * Импортирует цены клиента из CSV файла.
2022
2023
  *
@@ -2215,7 +2216,7 @@ class Ct extends u {
2215
2216
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2216
2217
  }
2217
2218
  }
2218
- class vt extends u {
2219
+ class Pt extends u {
2219
2220
  /**
2220
2221
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2221
2222
  *
@@ -2305,7 +2306,7 @@ class vt extends u {
2305
2306
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2306
2307
  }
2307
2308
  }
2308
- class Pt extends u {
2309
+ class Rt extends u {
2309
2310
  /**
2310
2311
  * Возвращает список данных о корневых категориях.
2311
2312
  *
@@ -2397,7 +2398,7 @@ class Pt extends u {
2397
2398
  });
2398
2399
  }
2399
2400
  }
2400
- class Rt extends u {
2401
+ class Dt extends u {
2401
2402
  /**
2402
2403
  * Возвращает данные об указанном продукте.
2403
2404
  *
@@ -2441,7 +2442,7 @@ class Rt extends u {
2441
2442
  */
2442
2443
  getProductPriceHistory(r, e) {
2443
2444
  const s = {};
2444
- return Ge(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ne(i.data, (o) => new Er(o)));
2445
+ return Ge(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ne(i.data, (o) => new Kr(o)));
2445
2446
  }
2446
2447
  /**
2447
2448
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2459,7 +2460,7 @@ class Rt extends u {
2459
2460
  });
2460
2461
  }
2461
2462
  }
2462
- class Dt extends u {
2463
+ class $t extends u {
2463
2464
  /**
2464
2465
  * Возвращает список данных о корневых категориях указанного клиента.
2465
2466
  *
@@ -2521,7 +2522,7 @@ class Dt extends u {
2521
2522
  );
2522
2523
  }
2523
2524
  }
2524
- class $t extends u {
2525
+ class At extends u {
2525
2526
  /**
2526
2527
  * Возвращает данные об указанном продукте для указанного клиента.
2527
2528
  *
@@ -2632,7 +2633,7 @@ class we extends u {
2632
2633
  return e && (g.filters = JSON.stringify((e instanceof re ? e : new re(e)).toPrimitive())), ur(s) || (g.sort = s), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2633
2634
  }
2634
2635
  }
2635
- class At extends we {
2636
+ class Tt extends we {
2636
2637
  /**
2637
2638
  * Возвращает список шаблонов прайс-листа.
2638
2639
  *
@@ -2820,7 +2821,7 @@ class At extends we {
2820
2821
  );
2821
2822
  }
2822
2823
  }
2823
- class Tt extends u {
2824
+ class bt extends u {
2824
2825
  /**
2825
2826
  * Возвращает список ролей ценообразования.
2826
2827
  *
@@ -2900,7 +2901,7 @@ class Tt extends u {
2900
2901
  );
2901
2902
  }
2902
2903
  }
2903
- class bt extends we {
2904
+ class _t extends we {
2904
2905
  /**
2905
2906
  * Возвращает пагинированный список свойств.
2906
2907
  *
@@ -3272,7 +3273,7 @@ class bt extends we {
3272
3273
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3273
3274
  }
3274
3275
  }
3275
- class _t extends u {
3276
+ class at extends u {
3276
3277
  /**
3277
3278
  * Возвращает данные о рекомендациях указанной категории продуктов.
3278
3279
  *
@@ -3318,7 +3319,7 @@ const Oe = (n) => {
3318
3319
  const r = {};
3319
3320
  return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
3320
3321
  };
3321
- class at extends u {
3322
+ class St extends u {
3322
3323
  /**
3323
3324
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
3324
3325
  *
@@ -3367,7 +3368,7 @@ class at extends u {
3367
3368
  );
3368
3369
  }
3369
3370
  }
3370
- var Kr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Kr || {});
3371
+ var Jr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Jr || {});
3371
3372
  class Te extends F {
3372
3373
  /**
3373
3374
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3526,7 +3527,7 @@ class Ye extends D {
3526
3527
  }
3527
3528
  }
3528
3529
  }
3529
- class Jr extends Ye {
3530
+ class Qr extends Ye {
3530
3531
  /**
3531
3532
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3532
3533
  *
@@ -3594,7 +3595,7 @@ class Ze extends Xe {
3594
3595
  e && (this.kpp = e.kpp ?? "");
3595
3596
  }
3596
3597
  }
3597
- class Qr extends Ze {
3598
+ class Yr extends Ze {
3598
3599
  /**
3599
3600
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3600
3601
  *
@@ -3630,9 +3631,9 @@ class ue {
3630
3631
  case b.UlR:
3631
3632
  return new Ze(r);
3632
3633
  case b.UlNr:
3633
- return new Qr(r);
3634
+ return new Yr(r);
3634
3635
  default:
3635
- return new Jr(r);
3636
+ return new Qr(r);
3636
3637
  }
3637
3638
  }
3638
3639
  }
@@ -3651,7 +3652,7 @@ class Re extends F {
3651
3652
  this.isPrimary = e.isPrimary;
3652
3653
  }
3653
3654
  }
3654
- class Yr extends M {
3655
+ class Xr extends M {
3655
3656
  /**
3656
3657
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3657
3658
  *
@@ -3679,7 +3680,7 @@ class Yr extends M {
3679
3680
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Re(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Re(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Re(s))));
3680
3681
  }
3681
3682
  }
3682
- class he extends Or {
3683
+ class he extends qr {
3683
3684
  /**
3684
3685
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3685
3686
  *
@@ -3794,7 +3795,7 @@ class Q {
3794
3795
  this.from = m(r == null ? void 0 : r.from) ? f(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = m(r == null ? void 0 : r.to) ? f(r.to) : (r == null ? void 0 : r.to) ?? null;
3795
3796
  }
3796
3797
  }
3797
- class St {
3798
+ class Lt {
3798
3799
  /**
3799
3800
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3800
3801
  *
@@ -3886,7 +3887,7 @@ class St {
3886
3887
  */
3887
3888
  t(this, "lastOrder");
3888
3889
  var e, s, i;
3889
- this.id = (r == null ? void 0 : r.id) ?? "", this.name = (r == null ? void 0 : r.name) ?? "", this.alternativeName = (r == null ? void 0 : r.alternativeName) ?? "", this.searchTerm = (r == null ? void 0 : r.searchTerm) ?? "", this.city = new le(r == null ? void 0 : r.city), this.region = new ee(r == null ? void 0 : r.region), this.country = new J(r == null ? void 0 : r.country), this.phone = (r == null ? void 0 : r.phone) ?? "", this.email = (r == null ? void 0 : r.email) ?? "", this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new Q(r == null ? void 0 : r.createdAt), this.lastLoginDate = new Q(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((o) => new ye(o)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new U(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new E(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new G(r == null ? void 0 : r.partnerGroup), this.contact = new be(r == null ? void 0 : r.contact), this.lastOrder = {
3890
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.city = new le(r == null ? void 0 : r.city), this.region = new ee(r == null ? void 0 : r.region), this.country = new J(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new Q(r == null ? void 0 : r.createdAt), this.lastLoginDate = new Q(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((o) => new ye(o)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new U(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new E(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new G(r == null ? void 0 : r.partnerGroup), this.contact = new be(r == null ? void 0 : r.contact), this.lastOrder = {
3890
3891
  createdAt: new Q((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3891
3892
  creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
3892
3893
  isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
@@ -3906,7 +3907,7 @@ class St {
3906
3907
  case "alternativeName":
3907
3908
  case "searchTerm":
3908
3909
  case "contragentInn":
3909
- this[r] = "";
3910
+ this[r] = void 0;
3910
3911
  break;
3911
3912
  case "city":
3912
3913
  this.city = new le();
@@ -4048,7 +4049,7 @@ class rr extends er {
4048
4049
  }, this.attachedUser = new d(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(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;
4049
4050
  }
4050
4051
  }
4051
- class Xr extends F {
4052
+ class Zr extends F {
4052
4053
  /**
4053
4054
  * Инициализирует экземпляр класса {@link OrderProduct}.
4054
4055
  *
@@ -4131,7 +4132,7 @@ class Xr extends F {
4131
4132
  this.product = new K(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
4132
4133
  }
4133
4134
  }
4134
- class Zr extends rr {
4135
+ class et extends rr {
4135
4136
  /**
4136
4137
  * Инициализирует экземпляр класса {@link Order}.
4137
4138
  *
@@ -4171,10 +4172,10 @@ class Zr extends rr {
4171
4172
  * Признак, что разрешена передача заказа в работу без оплаты.
4172
4173
  */
4173
4174
  t(this, "isAllowProcessingWithoutPayment");
4174
- this.products = (e.products ?? []).map((s) => new Xr(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ue.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
4175
+ this.products = (e.products ?? []).map((s) => new Zr(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ue.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
4175
4176
  }
4176
4177
  }
4177
- class Lt extends we {
4178
+ class It extends we {
4178
4179
  /**
4179
4180
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
4180
4181
  *
@@ -4205,10 +4206,10 @@ class Lt extends we {
4205
4206
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
4206
4207
  */
4207
4208
  getOrder(r) {
4208
- return this.get(`/internal/orders/${r}`, {}, (e) => new Zr(e.data));
4209
+ return this.get(`/internal/orders/${r}`, {}, (e) => new et(e.data));
4209
4210
  }
4210
4211
  }
4211
- class et extends D {
4212
+ class rt extends D {
4212
4213
  /**
4213
4214
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4214
4215
  *
@@ -4236,7 +4237,7 @@ class et extends D {
4236
4237
  (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new E(e.preferredDeliveryType));
4237
4238
  }
4238
4239
  }
4239
- class rt {
4240
+ class tt {
4240
4241
  /**
4241
4242
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4242
4243
  *
@@ -4254,7 +4255,7 @@ class rt {
4254
4255
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4255
4256
  }
4256
4257
  }
4257
- class It extends rt {
4258
+ class xt extends tt {
4258
4259
  /**
4259
4260
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4260
4261
  *
@@ -4285,7 +4286,7 @@ class It extends rt {
4285
4286
  this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
4286
4287
  }
4287
4288
  }
4288
- class xt {
4289
+ class kt {
4289
4290
  /**
4290
4291
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4291
4292
  *
@@ -4303,7 +4304,7 @@ class xt {
4303
4304
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4304
4305
  }
4305
4306
  }
4306
- class kt extends we {
4307
+ class Nt extends we {
4307
4308
  /**
4308
4309
  * Возвращает данные об указанном клиенте.
4309
4310
  *
@@ -4352,7 +4353,7 @@ class kt extends we {
4352
4353
  getAdditionalClientsData(r, e) {
4353
4354
  return this.post("/internal/clients/additional-data", { clients: r, requested_data_types: e }, (s) => {
4354
4355
  let i = [];
4355
- return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new et(o))), i;
4356
+ return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new rt(o))), i;
4356
4357
  });
4357
4358
  }
4358
4359
  /**
@@ -4364,7 +4365,7 @@ class kt extends we {
4364
4365
  getAllClientContacts(r) {
4365
4366
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4366
4367
  let s = [];
4367
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Yr(i))), s;
4368
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Xr(i))), s;
4368
4369
  });
4369
4370
  }
4370
4371
  /**
@@ -5029,7 +5030,7 @@ class kt extends we {
5029
5030
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5030
5031
  }
5031
5032
  }
5032
- class Nt extends u {
5033
+ class Ot extends u {
5033
5034
  /**
5034
5035
  * Выполняет проверку занят ли указанный номер телефона.
5035
5036
  *
@@ -5043,7 +5044,7 @@ class Nt extends u {
5043
5044
  });
5044
5045
  }
5045
5046
  }
5046
- class Ot extends u {
5047
+ class qt extends u {
5047
5048
  /**
5048
5049
  * Возвращает настройки указанного конфигуратора для указанной категории.
5049
5050
  *
@@ -5114,7 +5115,7 @@ class Ot extends u {
5114
5115
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
5115
5116
  }
5116
5117
  }
5117
- class qt {
5118
+ class dt {
5118
5119
  /**
5119
5120
  * Возвращает диапазон дат по умолчанию.
5120
5121
  */
@@ -5170,7 +5171,7 @@ const V = class V {
5170
5171
  */
5171
5172
  t(V, "linearValues", ["пог.м.", "м.", "м2"]);
5172
5173
  let de = V;
5173
- class dt {
5174
+ class Ut {
5174
5175
  /**
5175
5176
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5176
5177
  */
@@ -5186,7 +5187,7 @@ class dt {
5186
5187
  return r.id === 0 && r.guid === "-undefined-";
5187
5188
  }
5188
5189
  }
5189
- class tt extends u {
5190
+ class st extends u {
5190
5191
  /**
5191
5192
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5192
5193
  */
@@ -5198,7 +5199,7 @@ class tt extends u {
5198
5199
  });
5199
5200
  }
5200
5201
  }
5201
- class st {
5202
+ class it {
5202
5203
  /**
5203
5204
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5204
5205
  *
@@ -5252,10 +5253,10 @@ class Ue {
5252
5253
  */
5253
5254
  t(this, "meta");
5254
5255
  var e;
5255
- this.resourceType = new Je(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 st(s))) ?? [];
5256
+ this.resourceType = new Je(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new it(s))) ?? [];
5256
5257
  }
5257
5258
  }
5258
- class Ut extends u {
5259
+ class Gt extends u {
5259
5260
  /**
5260
5261
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5261
5262
  *
@@ -5362,7 +5363,7 @@ const P = ge("__references_private", () => {
5362
5363
  */
5363
5364
  priceCoefficientsReference: c
5364
5365
  };
5365
- }), Gt = ge("references", () => {
5366
+ }), Mt = ge("references", () => {
5366
5367
  const n = v(() => {
5367
5368
  const c = P();
5368
5369
  return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
@@ -5430,7 +5431,7 @@ const P = ge("__references_private", () => {
5430
5431
  }).catch(y)), c.deliveryTypeReference;
5431
5432
  }), x = v(() => {
5432
5433
  const c = P();
5433
- return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(tt).getManagers().then((h) => {
5434
+ return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(st).getManagers().then((h) => {
5434
5435
  c.managersList = h;
5435
5436
  }).catch(y)), c.managersList;
5436
5437
  }), k = v(() => {
@@ -5519,7 +5520,7 @@ const P = ge("__references_private", () => {
5519
5520
  */
5520
5521
  priceCoefficientsReference: O
5521
5522
  };
5522
- }), it = ge("__user_state_private", () => {
5523
+ }), nt = ge("__user_state_private", () => {
5523
5524
  const n = C({}), r = C(void 0);
5524
5525
  return {
5525
5526
  /**
@@ -5531,18 +5532,18 @@ const P = ge("__references_private", () => {
5531
5532
  */
5532
5533
  currentUser: r
5533
5534
  };
5534
- }), Mt = ge("user_state", () => ({
5535
+ }), Ft = ge("user_state", () => ({
5535
5536
  /**
5536
5537
  * Данные о текущем пользователе.
5537
5538
  */
5538
5539
  currentUser: v(() => {
5539
- const r = it();
5540
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Vr).getCurrentUser().then((e) => {
5540
+ const r = nt();
5541
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Er).getCurrentUser().then((e) => {
5541
5542
  r.currentUser = e;
5542
5543
  }).catch(y).finally(y)), r.currentUser;
5543
5544
  })
5544
5545
  }));
5545
- class Ft extends u {
5546
+ class Ht extends u {
5546
5547
  /**
5547
5548
  * Возвращает подсказки по адресам.
5548
5549
  *
@@ -5589,7 +5590,7 @@ class Ft extends u {
5589
5590
  });
5590
5591
  }
5591
5592
  }
5592
- class Ht {
5593
+ class zt {
5593
5594
  /**
5594
5595
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5595
5596
  *
@@ -5613,8 +5614,8 @@ class Ht {
5613
5614
  }
5614
5615
  }
5615
5616
  export {
5616
- Gr as AnyReference,
5617
- gt as AppBaseConfig,
5617
+ Mr as AnyReference,
5618
+ mt as AppBaseConfig,
5618
5619
  T as AppConfigProvider,
5619
5620
  Te as BankAccount,
5620
5621
  we as BasePaginationProvider,
@@ -5622,53 +5623,53 @@ export {
5622
5623
  ie as Cart,
5623
5624
  ar as CartItem,
5624
5625
  _r as CartItemBase,
5625
- mt as CartProvider,
5626
- wt as CatalogProvider,
5626
+ ft as CartProvider,
5627
+ Ct as CatalogProvider,
5627
5628
  He as CatalogableItem,
5628
5629
  q as Category,
5629
5630
  ke as CategoryPricingRule,
5630
5631
  Ke as ChannelPrimaryInterest,
5631
- yt as City,
5632
+ wt as City,
5632
5633
  le as CityWithRegionAndCountry,
5633
5634
  qe as Client,
5634
- et as ClientAdditionalData,
5635
+ rt as ClientAdditionalData,
5635
5636
  ce as ClientCategory,
5636
- kt as ClientDataProvider,
5637
- Ct as ClientPriceProvider,
5638
- vt as ClientPriceTemplateProvider,
5637
+ Nt as ClientDataProvider,
5638
+ vt as ClientPriceProvider,
5639
+ Pt as ClientPriceTemplateProvider,
5639
5640
  K as ClientProduct,
5640
- Dt as ClientProductCategoryDataProvider,
5641
- $t as ClientProductDataProvider,
5641
+ $t as ClientProductCategoryDataProvider,
5642
+ At as ClientProductDataProvider,
5642
5643
  se as ClientShortInfo,
5643
- Kr as ClientsAdditionalDataRequestTypeEnum,
5644
- St as ClientsListFilters,
5645
- Ot as ConfiguratorProvider,
5644
+ Jr as ClientsAdditionalDataRequestTypeEnum,
5645
+ Lt as ClientsListFilters,
5646
+ qt as ConfiguratorProvider,
5646
5647
  be as Contact,
5647
- dr as ContactLinks,
5648
+ Ur as ContactLinks,
5648
5649
  M as ContactPerson,
5649
- Yr as ContactPersonRelated,
5650
- Mr as ContactPosition,
5650
+ Xr as ContactPersonRelated,
5651
+ Fr as ContactPosition,
5651
5652
  Re as ContactRelation,
5652
5653
  Ye as ContragentBase,
5653
5654
  ue as ContragentFactory,
5654
5655
  Xe as ContragentIc,
5655
- Jr as ContragentPerson,
5656
- Qr as ContragentUlNr,
5656
+ Qr as ContragentPerson,
5657
+ Yr as ContragentUlNr,
5657
5658
  Ze as ContragentUlR,
5658
5659
  Se as CostSourceEnum,
5659
5660
  J as Country,
5660
5661
  pe as Currency,
5661
- Ft as DataSuggestionProvider,
5662
- It as DataTablePagination,
5663
- rt as DataTablePaginationRequestParams,
5664
- xt as DataTableSortRequestParams,
5665
- qt as DateTimeProvider,
5666
- Or as DeletableNamedIdentity,
5662
+ Ht as DataSuggestionProvider,
5663
+ xt as DataTablePagination,
5664
+ tt as DataTablePaginationRequestParams,
5665
+ kt as DataTableSortRequestParams,
5666
+ dt as DateTimeProvider,
5667
+ qr as DeletableNamedIdentity,
5667
5668
  he as DeliveryAddress,
5668
5669
  E as DeliveryType,
5669
5670
  Sr as DeviceTypeResolutionConfig,
5670
- qr as DiscountShortInfo,
5671
- Ht as FieldValidationResultData,
5671
+ dr as DiscountShortInfo,
5672
+ zt as FieldValidationResultData,
5672
5673
  re as FilterGroup,
5673
5674
  Ne as FilterItem,
5674
5675
  Le as FilterOpEnum,
@@ -5682,24 +5683,24 @@ export {
5682
5683
  br as Image,
5683
5684
  ye as Manager,
5684
5685
  oe as ManagerCommon,
5685
- dt as ManagerDataFactory,
5686
- tt as ManagerDataProvider,
5687
- st as MetaTagItem,
5686
+ Ut as ManagerDataFactory,
5687
+ st as ManagerDataProvider,
5688
+ it as MetaTagItem,
5688
5689
  D as NamedIdentity,
5689
5690
  U as Opf,
5690
5691
  b as OpfEnum,
5691
- Zr as Order,
5692
+ et as Order,
5692
5693
  rr as OrderInfo,
5693
- Fr as OrderPaymentStatus,
5694
- Xr as OrderProduct,
5694
+ Hr as OrderPaymentStatus,
5695
+ Zr as OrderProduct,
5695
5696
  er as OrderShortInfo,
5696
- Hr as OrderStatus,
5697
- Lt as OrdersDataProvider,
5697
+ zr as OrderStatus,
5698
+ It as OrdersDataProvider,
5698
5699
  G as PartnerGroup,
5699
- zr as PaymentType,
5700
- ft as PreferencesStorageProvider,
5700
+ Br as PaymentType,
5701
+ yt as PreferencesStorageProvider,
5701
5702
  Pe as PriceAnalyze,
5702
- at as PriceAnalyzeProvider,
5703
+ St as PriceAnalyzeProvider,
5703
5704
  me as PriceCoefficient,
5704
5705
  ze as PriceCoefficientEnum,
5705
5706
  B as PriceTemplate,
@@ -5707,22 +5708,22 @@ export {
5707
5708
  Y as PriceTemplateClient,
5708
5709
  je as PriceTemplateICatalogableItem,
5709
5710
  ve as PriceTemplateProduct,
5710
- At as PriceTemplateProvider,
5711
+ Tt as PriceTemplateProvider,
5711
5712
  Z as PricingRole,
5712
- Tt as PricingRoleProvider,
5713
+ bt as PricingRoleProvider,
5713
5714
  De as PrimaryCatalogableItem,
5714
5715
  _ as Product,
5715
- Pt as ProductCategoryDataProvider,
5716
- Rt as ProductDataProvider,
5717
- Br as ProductFileType,
5716
+ Rt as ProductCategoryDataProvider,
5717
+ Dt as ProductDataProvider,
5718
+ Wr as ProductFileType,
5718
5719
  _e as ProductPriceCoefficient,
5719
- Er as ProductPriceHistory,
5720
- bt as PropertiesProvider,
5720
+ Kr as ProductPriceHistory,
5721
+ _t as PropertiesProvider,
5721
5722
  X as Property,
5722
5723
  Ee as PropertyType,
5723
5724
  Nr as PropertyTypeEnum,
5724
5725
  H as PropertyValue,
5725
- _t as RecommendationsDataProvider,
5726
+ at as RecommendationsDataProvider,
5726
5727
  xe as RecommendationsList,
5727
5728
  w as Reference,
5728
5729
  R as ReferenceDataProvider,
@@ -5731,21 +5732,22 @@ export {
5731
5732
  S as SalesDirection,
5732
5733
  Ir as SentryConfig,
5733
5734
  Ue as Seo,
5734
- Ut as SeoDataProvider,
5735
+ Gt as SeoDataProvider,
5735
5736
  Qe as SourcePrimaryInterest,
5736
5737
  Ar as StockCount,
5737
5738
  ae as TypedInstanceFactory,
5738
5739
  de as UnitsHelper,
5739
- Nt as UnknownClientDataProvider,
5740
+ Ot as UnknownClientDataProvider,
5740
5741
  We as UpdatableNamedIdentity,
5741
- jr as User,
5742
+ Vr as User,
5742
5743
  Ve as UserCommonInfo,
5743
- Vr as UserDataProvider,
5744
+ Er as UserDataProvider,
5744
5745
  d as UserShortInfo,
5745
- Wr as UserTypeEnum,
5746
+ jr as UserTypeEnum,
5746
5747
  xr as VersionConfig,
5747
5748
  fe as Warehouse,
5748
- Gt as useReferencesStore,
5749
- Mt as useUserStateStore
5749
+ Or as WindowResolutionEnum,
5750
+ Mt as useReferencesStore,
5751
+ Ft as useUserStateStore
5750
5752
  };
5751
5753
  //# sourceMappingURL=sc-common-lib.js.map