@snabcentr/common-lib 1.53.4 → 1.54.1

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
  *
@@ -684,6 +684,10 @@ class gt {
684
684
  * Параметры тем для различных устройств.
685
685
  */
686
686
  t(this, "themes");
687
+ /**
688
+ * Минимальная длина поискового запроса.
689
+ */
690
+ t(this, "minSearchTermLength");
687
691
  var e, s, i;
688
692
  this.environment = (r == null ? void 0 : r.environment) ?? "production", this.currentDomain = (r == null ? void 0 : r.currentDomain) ?? "", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Lr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Sr(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
689
693
  units: {
@@ -698,7 +702,7 @@ class gt {
698
702
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
699
703
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
700
704
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
701
- }, this.themes = r == null ? void 0 : r.themes;
705
+ }, this.themes = r == null ? void 0 : r.themes, this.minSearchTermLength = (r == null ? void 0 : r.minSearchTermLength) ?? 3;
702
706
  }
703
707
  }
704
708
  class ae {
@@ -948,7 +952,7 @@ class u extends Ae {
948
952
  (s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
949
953
  }
950
954
  }
951
- class mt extends u {
955
+ class ft extends u {
952
956
  /**
953
957
  * Возвращает содержимое корзины указанного клиента.
954
958
  *
@@ -1072,6 +1076,7 @@ class q extends te {
1072
1076
  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
1077
  }
1074
1078
  }
1079
+ var Or = /* @__PURE__ */ ((n) => (n.phone = "phone", n.tablet = "tablet", n.laptop = "laptop", n))(Or || {});
1075
1080
  class We extends D {
1076
1081
  /**
1077
1082
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
@@ -1087,7 +1092,7 @@ class We extends D {
1087
1092
  this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1088
1093
  }
1089
1094
  }
1090
- class Or extends We {
1095
+ class qr extends We {
1091
1096
  /**
1092
1097
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1093
1098
  *
@@ -1102,7 +1107,7 @@ class Or extends We {
1102
1107
  this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1103
1108
  }
1104
1109
  }
1105
- class ft {
1110
+ class yt {
1106
1111
  /**
1107
1112
  * Возвращает актуальные и не просроченные данные из хранилища.
1108
1113
  *
@@ -1151,7 +1156,7 @@ class d extends D {
1151
1156
  this.type = e == null ? void 0 : e.type;
1152
1157
  }
1153
1158
  }
1154
- class qr extends D {
1159
+ class dr extends D {
1155
1160
  /**
1156
1161
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1157
1162
  *
@@ -1245,10 +1250,10 @@ class K extends _ {
1245
1250
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1246
1251
  */
1247
1252
  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;
1253
+ 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
1254
  }
1250
1255
  }
1251
- class dr {
1256
+ class Ur {
1252
1257
  /**
1253
1258
  * Инициализирует экземпляр класса {@link ContactLinks}.
1254
1259
  *
@@ -1292,7 +1297,7 @@ class oe extends D {
1292
1297
  * Признак того, что менеджер является основным для клиента.
1293
1298
  */
1294
1299
  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));
1300
+ 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
1301
  }
1297
1302
  }
1298
1303
  class ye extends oe {
@@ -1326,7 +1331,7 @@ class ye extends oe {
1326
1331
  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
1332
  }
1328
1333
  }
1329
- class Ur extends te {
1334
+ class Gr extends te {
1330
1335
  /**
1331
1336
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1332
1337
  *
@@ -1357,7 +1362,7 @@ class Ur extends te {
1357
1362
  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
1363
  }
1359
1364
  }
1360
- class ce extends Ur {
1365
+ class ce extends Gr {
1361
1366
  /**
1362
1367
  * Инициализирует экземпляр класса {@link ClientCategory}.
1363
1368
  *
@@ -1612,13 +1617,13 @@ class H {
1612
1617
  this.property = new X(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1613
1618
  }
1614
1619
  }
1615
- class Gr extends w {
1620
+ class Mr extends w {
1616
1621
  }
1617
1622
  class Ke extends w {
1618
1623
  }
1619
- class yt extends w {
1624
+ class wt extends w {
1620
1625
  }
1621
- class Mr extends w {
1626
+ class Fr extends w {
1622
1627
  }
1623
1628
  class pe extends D {
1624
1629
  /**
@@ -1653,16 +1658,16 @@ class U extends w {
1653
1658
  });
1654
1659
  }
1655
1660
  }
1656
- class Fr extends w {
1657
- }
1658
1661
  class Hr extends w {
1659
1662
  }
1660
- class G extends w {
1661
- }
1662
1663
  class zr extends w {
1663
1664
  }
1665
+ class G extends w {
1666
+ }
1664
1667
  class Br extends w {
1665
1668
  }
1669
+ class Wr extends w {
1670
+ }
1666
1671
  class Je extends w {
1667
1672
  }
1668
1673
  class Qe extends w {
@@ -1676,7 +1681,7 @@ class R extends u {
1676
1681
  * и использовать в случае аналогичных запросов.
1677
1682
  */
1678
1683
  getReference(r, e = !1) {
1679
- return this.getTypedDataArrayRequester(Gr, `/internal/references/${r}`, e);
1684
+ return this.getTypedDataArrayRequester(Mr, `/internal/references/${r}`, e);
1680
1685
  }
1681
1686
  /**
1682
1687
  * Возвращает {@link Promise} для получения справочника данных о канале
@@ -1689,7 +1694,7 @@ class R extends u {
1689
1694
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1690
1695
  */
1691
1696
  getContactPositions() {
1692
- return this.getTypedDataArrayRequester(Mr, "/internal/references/contact-position", !0);
1697
+ return this.getTypedDataArrayRequester(Fr, "/internal/references/contact-position", !0);
1693
1698
  }
1694
1699
  /**
1695
1700
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -1714,19 +1719,19 @@ class R extends u {
1714
1719
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1715
1720
  */
1716
1721
  getOrderPaymentStatuses() {
1717
- return this.getTypedDataArrayRequester(Fr, "/public/references/order-payment-status", !0);
1722
+ return this.getTypedDataArrayRequester(Hr, "/public/references/order-payment-status", !0);
1718
1723
  }
1719
1724
  /**
1720
1725
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1721
1726
  */
1722
1727
  getOrderStatuses() {
1723
- return this.getTypedDataArrayRequester(Hr, "/public/references/order-status", !0);
1728
+ return this.getTypedDataArrayRequester(zr, "/public/references/order-status", !0);
1724
1729
  }
1725
1730
  /**
1726
1731
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1727
1732
  */
1728
1733
  getPaymentTypes() {
1729
- return this.getTypedDataArrayRequester(zr, "/public/references/payment-type", !0);
1734
+ return this.getTypedDataArrayRequester(Br, "/public/references/payment-type", !0);
1730
1735
  }
1731
1736
  /**
1732
1737
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
@@ -1798,11 +1803,11 @@ class R extends u {
1798
1803
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
1799
1804
  */
1800
1805
  getProductFileType() {
1801
- return this.getTypedDataArrayRequester(Br, "/public/references/product-file-type", !0);
1806
+ return this.getTypedDataArrayRequester(Wr, "/public/references/product-file-type", !0);
1802
1807
  }
1803
1808
  }
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 {
1809
+ var jr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(jr || {});
1810
+ class Vr extends Ve {
1806
1811
  /**
1807
1812
  * Инициализирует экземпляр класса {@link User}.
1808
1813
  *
@@ -1825,16 +1830,16 @@ class jr extends Ve {
1825
1830
  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
1831
  }
1827
1832
  }
1828
- class Vr extends u {
1833
+ class Er extends u {
1829
1834
  /**
1830
1835
  * Возвращает данные о текущем пользователе.
1831
1836
  */
1832
1837
  // eslint-disable-next-line class-methods-use-this
1833
1838
  getCurrentUser() {
1834
- return this.get("/internal/users/info", {}, (r) => new jr(r.data));
1839
+ return this.get("/internal/users/info", {}, (r) => new Vr(r.data));
1835
1840
  }
1836
1841
  }
1837
- class Er {
1842
+ class Kr {
1838
1843
  /**
1839
1844
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1840
1845
  *
@@ -1985,7 +1990,7 @@ class Pe {
1985
1990
  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
1991
  }
1987
1992
  }
1988
- class wt extends u {
1993
+ class Ct extends u {
1989
1994
  /**
1990
1995
  * Возвращает данные о результатах поиска категорий и товаров.
1991
1996
  *
@@ -2016,7 +2021,7 @@ class wt extends u {
2016
2021
  return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
2017
2022
  }
2018
2023
  }
2019
- class Ct extends u {
2024
+ class vt extends u {
2020
2025
  /**
2021
2026
  * Импортирует цены клиента из CSV файла.
2022
2027
  *
@@ -2215,7 +2220,7 @@ class Ct extends u {
2215
2220
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2216
2221
  }
2217
2222
  }
2218
- class vt extends u {
2223
+ class Pt extends u {
2219
2224
  /**
2220
2225
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2221
2226
  *
@@ -2305,7 +2310,7 @@ class vt extends u {
2305
2310
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2306
2311
  }
2307
2312
  }
2308
- class Pt extends u {
2313
+ class Rt extends u {
2309
2314
  /**
2310
2315
  * Возвращает список данных о корневых категориях.
2311
2316
  *
@@ -2397,7 +2402,7 @@ class Pt extends u {
2397
2402
  });
2398
2403
  }
2399
2404
  }
2400
- class Rt extends u {
2405
+ class Dt extends u {
2401
2406
  /**
2402
2407
  * Возвращает данные об указанном продукте.
2403
2408
  *
@@ -2441,7 +2446,7 @@ class Rt extends u {
2441
2446
  */
2442
2447
  getProductPriceHistory(r, e) {
2443
2448
  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)));
2449
+ return Ge(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ne(i.data, (o) => new Kr(o)));
2445
2450
  }
2446
2451
  /**
2447
2452
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2459,7 +2464,7 @@ class Rt extends u {
2459
2464
  });
2460
2465
  }
2461
2466
  }
2462
- class Dt extends u {
2467
+ class $t extends u {
2463
2468
  /**
2464
2469
  * Возвращает список данных о корневых категориях указанного клиента.
2465
2470
  *
@@ -2521,7 +2526,7 @@ class Dt extends u {
2521
2526
  );
2522
2527
  }
2523
2528
  }
2524
- class $t extends u {
2529
+ class At extends u {
2525
2530
  /**
2526
2531
  * Возвращает данные об указанном продукте для указанного клиента.
2527
2532
  *
@@ -2632,7 +2637,7 @@ class we extends u {
2632
2637
  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
2638
  }
2634
2639
  }
2635
- class At extends we {
2640
+ class Tt extends we {
2636
2641
  /**
2637
2642
  * Возвращает список шаблонов прайс-листа.
2638
2643
  *
@@ -2820,7 +2825,7 @@ class At extends we {
2820
2825
  );
2821
2826
  }
2822
2827
  }
2823
- class Tt extends u {
2828
+ class bt extends u {
2824
2829
  /**
2825
2830
  * Возвращает список ролей ценообразования.
2826
2831
  *
@@ -2900,7 +2905,7 @@ class Tt extends u {
2900
2905
  );
2901
2906
  }
2902
2907
  }
2903
- class bt extends we {
2908
+ class _t extends we {
2904
2909
  /**
2905
2910
  * Возвращает пагинированный список свойств.
2906
2911
  *
@@ -3272,7 +3277,7 @@ class bt extends we {
3272
3277
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3273
3278
  }
3274
3279
  }
3275
- class _t extends u {
3280
+ class at extends u {
3276
3281
  /**
3277
3282
  * Возвращает данные о рекомендациях указанной категории продуктов.
3278
3283
  *
@@ -3318,7 +3323,7 @@ const Oe = (n) => {
3318
3323
  const r = {};
3319
3324
  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
3325
  };
3321
- class at extends u {
3326
+ class St extends u {
3322
3327
  /**
3323
3328
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
3324
3329
  *
@@ -3367,7 +3372,7 @@ class at extends u {
3367
3372
  );
3368
3373
  }
3369
3374
  }
3370
- var Kr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Kr || {});
3375
+ var Jr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Jr || {});
3371
3376
  class Te extends F {
3372
3377
  /**
3373
3378
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3526,7 +3531,7 @@ class Ye extends D {
3526
3531
  }
3527
3532
  }
3528
3533
  }
3529
- class Jr extends Ye {
3534
+ class Qr extends Ye {
3530
3535
  /**
3531
3536
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3532
3537
  *
@@ -3594,7 +3599,7 @@ class Ze extends Xe {
3594
3599
  e && (this.kpp = e.kpp ?? "");
3595
3600
  }
3596
3601
  }
3597
- class Qr extends Ze {
3602
+ class Yr extends Ze {
3598
3603
  /**
3599
3604
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3600
3605
  *
@@ -3630,9 +3635,9 @@ class ue {
3630
3635
  case b.UlR:
3631
3636
  return new Ze(r);
3632
3637
  case b.UlNr:
3633
- return new Qr(r);
3638
+ return new Yr(r);
3634
3639
  default:
3635
- return new Jr(r);
3640
+ return new Qr(r);
3636
3641
  }
3637
3642
  }
3638
3643
  }
@@ -3651,7 +3656,7 @@ class Re extends F {
3651
3656
  this.isPrimary = e.isPrimary;
3652
3657
  }
3653
3658
  }
3654
- class Yr extends M {
3659
+ class Xr extends M {
3655
3660
  /**
3656
3661
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3657
3662
  *
@@ -3679,7 +3684,7 @@ class Yr extends M {
3679
3684
  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
3685
  }
3681
3686
  }
3682
- class he extends Or {
3687
+ class he extends qr {
3683
3688
  /**
3684
3689
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3685
3690
  *
@@ -3794,7 +3799,7 @@ class Q {
3794
3799
  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
3800
  }
3796
3801
  }
3797
- class St {
3802
+ class Lt {
3798
3803
  /**
3799
3804
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3800
3805
  *
@@ -4048,7 +4053,7 @@ class rr extends er {
4048
4053
  }, 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
4054
  }
4050
4055
  }
4051
- class Xr extends F {
4056
+ class Zr extends F {
4052
4057
  /**
4053
4058
  * Инициализирует экземпляр класса {@link OrderProduct}.
4054
4059
  *
@@ -4131,7 +4136,7 @@ class Xr extends F {
4131
4136
  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
4137
  }
4133
4138
  }
4134
- class Zr extends rr {
4139
+ class et extends rr {
4135
4140
  /**
4136
4141
  * Инициализирует экземпляр класса {@link Order}.
4137
4142
  *
@@ -4171,10 +4176,10 @@ class Zr extends rr {
4171
4176
  * Признак, что разрешена передача заказа в работу без оплаты.
4172
4177
  */
4173
4178
  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;
4179
+ 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
4180
  }
4176
4181
  }
4177
- class Lt extends we {
4182
+ class It extends we {
4178
4183
  /**
4179
4184
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
4180
4185
  *
@@ -4205,10 +4210,10 @@ class Lt extends we {
4205
4210
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
4206
4211
  */
4207
4212
  getOrder(r) {
4208
- return this.get(`/internal/orders/${r}`, {}, (e) => new Zr(e.data));
4213
+ return this.get(`/internal/orders/${r}`, {}, (e) => new et(e.data));
4209
4214
  }
4210
4215
  }
4211
- class et extends D {
4216
+ class rt extends D {
4212
4217
  /**
4213
4218
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4214
4219
  *
@@ -4236,7 +4241,7 @@ class et extends D {
4236
4241
  (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
4242
  }
4238
4243
  }
4239
- class rt {
4244
+ class tt {
4240
4245
  /**
4241
4246
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4242
4247
  *
@@ -4254,7 +4259,7 @@ class rt {
4254
4259
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4255
4260
  }
4256
4261
  }
4257
- class It extends rt {
4262
+ class xt extends tt {
4258
4263
  /**
4259
4264
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4260
4265
  *
@@ -4285,7 +4290,7 @@ class It extends rt {
4285
4290
  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
4291
  }
4287
4292
  }
4288
- class xt {
4293
+ class kt {
4289
4294
  /**
4290
4295
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4291
4296
  *
@@ -4303,7 +4308,7 @@ class xt {
4303
4308
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4304
4309
  }
4305
4310
  }
4306
- class kt extends we {
4311
+ class Nt extends we {
4307
4312
  /**
4308
4313
  * Возвращает данные об указанном клиенте.
4309
4314
  *
@@ -4352,7 +4357,7 @@ class kt extends we {
4352
4357
  getAdditionalClientsData(r, e) {
4353
4358
  return this.post("/internal/clients/additional-data", { clients: r, requested_data_types: e }, (s) => {
4354
4359
  let i = [];
4355
- return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new et(o))), i;
4360
+ return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new rt(o))), i;
4356
4361
  });
4357
4362
  }
4358
4363
  /**
@@ -4364,7 +4369,7 @@ class kt extends we {
4364
4369
  getAllClientContacts(r) {
4365
4370
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4366
4371
  let s = [];
4367
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Yr(i))), s;
4372
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Xr(i))), s;
4368
4373
  });
4369
4374
  }
4370
4375
  /**
@@ -5029,7 +5034,7 @@ class kt extends we {
5029
5034
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5030
5035
  }
5031
5036
  }
5032
- class Nt extends u {
5037
+ class Ot extends u {
5033
5038
  /**
5034
5039
  * Выполняет проверку занят ли указанный номер телефона.
5035
5040
  *
@@ -5043,7 +5048,7 @@ class Nt extends u {
5043
5048
  });
5044
5049
  }
5045
5050
  }
5046
- class Ot extends u {
5051
+ class qt extends u {
5047
5052
  /**
5048
5053
  * Возвращает настройки указанного конфигуратора для указанной категории.
5049
5054
  *
@@ -5114,7 +5119,7 @@ class Ot extends u {
5114
5119
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
5115
5120
  }
5116
5121
  }
5117
- class qt {
5122
+ class dt {
5118
5123
  /**
5119
5124
  * Возвращает диапазон дат по умолчанию.
5120
5125
  */
@@ -5170,7 +5175,7 @@ const V = class V {
5170
5175
  */
5171
5176
  t(V, "linearValues", ["пог.м.", "м.", "м2"]);
5172
5177
  let de = V;
5173
- class dt {
5178
+ class Ut {
5174
5179
  /**
5175
5180
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5176
5181
  */
@@ -5186,7 +5191,7 @@ class dt {
5186
5191
  return r.id === 0 && r.guid === "-undefined-";
5187
5192
  }
5188
5193
  }
5189
- class tt extends u {
5194
+ class st extends u {
5190
5195
  /**
5191
5196
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5192
5197
  */
@@ -5198,7 +5203,7 @@ class tt extends u {
5198
5203
  });
5199
5204
  }
5200
5205
  }
5201
- class st {
5206
+ class it {
5202
5207
  /**
5203
5208
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5204
5209
  *
@@ -5252,10 +5257,10 @@ class Ue {
5252
5257
  */
5253
5258
  t(this, "meta");
5254
5259
  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))) ?? [];
5260
+ 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
5261
  }
5257
5262
  }
5258
- class Ut extends u {
5263
+ class Gt extends u {
5259
5264
  /**
5260
5265
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5261
5266
  *
@@ -5362,7 +5367,7 @@ const P = ge("__references_private", () => {
5362
5367
  */
5363
5368
  priceCoefficientsReference: c
5364
5369
  };
5365
- }), Gt = ge("references", () => {
5370
+ }), Mt = ge("references", () => {
5366
5371
  const n = v(() => {
5367
5372
  const c = P();
5368
5373
  return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
@@ -5430,7 +5435,7 @@ const P = ge("__references_private", () => {
5430
5435
  }).catch(y)), c.deliveryTypeReference;
5431
5436
  }), x = v(() => {
5432
5437
  const c = P();
5433
- return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(tt).getManagers().then((h) => {
5438
+ return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(st).getManagers().then((h) => {
5434
5439
  c.managersList = h;
5435
5440
  }).catch(y)), c.managersList;
5436
5441
  }), k = v(() => {
@@ -5519,7 +5524,7 @@ const P = ge("__references_private", () => {
5519
5524
  */
5520
5525
  priceCoefficientsReference: O
5521
5526
  };
5522
- }), it = ge("__user_state_private", () => {
5527
+ }), nt = ge("__user_state_private", () => {
5523
5528
  const n = C({}), r = C(void 0);
5524
5529
  return {
5525
5530
  /**
@@ -5531,18 +5536,18 @@ const P = ge("__references_private", () => {
5531
5536
  */
5532
5537
  currentUser: r
5533
5538
  };
5534
- }), Mt = ge("user_state", () => ({
5539
+ }), Ft = ge("user_state", () => ({
5535
5540
  /**
5536
5541
  * Данные о текущем пользователе.
5537
5542
  */
5538
5543
  currentUser: v(() => {
5539
- const r = it();
5540
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Vr).getCurrentUser().then((e) => {
5544
+ const r = nt();
5545
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Er).getCurrentUser().then((e) => {
5541
5546
  r.currentUser = e;
5542
5547
  }).catch(y).finally(y)), r.currentUser;
5543
5548
  })
5544
5549
  }));
5545
- class Ft extends u {
5550
+ class Ht extends u {
5546
5551
  /**
5547
5552
  * Возвращает подсказки по адресам.
5548
5553
  *
@@ -5589,7 +5594,7 @@ class Ft extends u {
5589
5594
  });
5590
5595
  }
5591
5596
  }
5592
- class Ht {
5597
+ class zt {
5593
5598
  /**
5594
5599
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5595
5600
  *
@@ -5613,8 +5618,8 @@ class Ht {
5613
5618
  }
5614
5619
  }
5615
5620
  export {
5616
- Gr as AnyReference,
5617
- gt as AppBaseConfig,
5621
+ Mr as AnyReference,
5622
+ mt as AppBaseConfig,
5618
5623
  T as AppConfigProvider,
5619
5624
  Te as BankAccount,
5620
5625
  we as BasePaginationProvider,
@@ -5622,53 +5627,53 @@ export {
5622
5627
  ie as Cart,
5623
5628
  ar as CartItem,
5624
5629
  _r as CartItemBase,
5625
- mt as CartProvider,
5626
- wt as CatalogProvider,
5630
+ ft as CartProvider,
5631
+ Ct as CatalogProvider,
5627
5632
  He as CatalogableItem,
5628
5633
  q as Category,
5629
5634
  ke as CategoryPricingRule,
5630
5635
  Ke as ChannelPrimaryInterest,
5631
- yt as City,
5636
+ wt as City,
5632
5637
  le as CityWithRegionAndCountry,
5633
5638
  qe as Client,
5634
- et as ClientAdditionalData,
5639
+ rt as ClientAdditionalData,
5635
5640
  ce as ClientCategory,
5636
- kt as ClientDataProvider,
5637
- Ct as ClientPriceProvider,
5638
- vt as ClientPriceTemplateProvider,
5641
+ Nt as ClientDataProvider,
5642
+ vt as ClientPriceProvider,
5643
+ Pt as ClientPriceTemplateProvider,
5639
5644
  K as ClientProduct,
5640
- Dt as ClientProductCategoryDataProvider,
5641
- $t as ClientProductDataProvider,
5645
+ $t as ClientProductCategoryDataProvider,
5646
+ At as ClientProductDataProvider,
5642
5647
  se as ClientShortInfo,
5643
- Kr as ClientsAdditionalDataRequestTypeEnum,
5644
- St as ClientsListFilters,
5645
- Ot as ConfiguratorProvider,
5648
+ Jr as ClientsAdditionalDataRequestTypeEnum,
5649
+ Lt as ClientsListFilters,
5650
+ qt as ConfiguratorProvider,
5646
5651
  be as Contact,
5647
- dr as ContactLinks,
5652
+ Ur as ContactLinks,
5648
5653
  M as ContactPerson,
5649
- Yr as ContactPersonRelated,
5650
- Mr as ContactPosition,
5654
+ Xr as ContactPersonRelated,
5655
+ Fr as ContactPosition,
5651
5656
  Re as ContactRelation,
5652
5657
  Ye as ContragentBase,
5653
5658
  ue as ContragentFactory,
5654
5659
  Xe as ContragentIc,
5655
- Jr as ContragentPerson,
5656
- Qr as ContragentUlNr,
5660
+ Qr as ContragentPerson,
5661
+ Yr as ContragentUlNr,
5657
5662
  Ze as ContragentUlR,
5658
5663
  Se as CostSourceEnum,
5659
5664
  J as Country,
5660
5665
  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,
5666
+ Ht as DataSuggestionProvider,
5667
+ xt as DataTablePagination,
5668
+ tt as DataTablePaginationRequestParams,
5669
+ kt as DataTableSortRequestParams,
5670
+ dt as DateTimeProvider,
5671
+ qr as DeletableNamedIdentity,
5667
5672
  he as DeliveryAddress,
5668
5673
  E as DeliveryType,
5669
5674
  Sr as DeviceTypeResolutionConfig,
5670
- qr as DiscountShortInfo,
5671
- Ht as FieldValidationResultData,
5675
+ dr as DiscountShortInfo,
5676
+ zt as FieldValidationResultData,
5672
5677
  re as FilterGroup,
5673
5678
  Ne as FilterItem,
5674
5679
  Le as FilterOpEnum,
@@ -5682,24 +5687,24 @@ export {
5682
5687
  br as Image,
5683
5688
  ye as Manager,
5684
5689
  oe as ManagerCommon,
5685
- dt as ManagerDataFactory,
5686
- tt as ManagerDataProvider,
5687
- st as MetaTagItem,
5690
+ Ut as ManagerDataFactory,
5691
+ st as ManagerDataProvider,
5692
+ it as MetaTagItem,
5688
5693
  D as NamedIdentity,
5689
5694
  U as Opf,
5690
5695
  b as OpfEnum,
5691
- Zr as Order,
5696
+ et as Order,
5692
5697
  rr as OrderInfo,
5693
- Fr as OrderPaymentStatus,
5694
- Xr as OrderProduct,
5698
+ Hr as OrderPaymentStatus,
5699
+ Zr as OrderProduct,
5695
5700
  er as OrderShortInfo,
5696
- Hr as OrderStatus,
5697
- Lt as OrdersDataProvider,
5701
+ zr as OrderStatus,
5702
+ It as OrdersDataProvider,
5698
5703
  G as PartnerGroup,
5699
- zr as PaymentType,
5700
- ft as PreferencesStorageProvider,
5704
+ Br as PaymentType,
5705
+ yt as PreferencesStorageProvider,
5701
5706
  Pe as PriceAnalyze,
5702
- at as PriceAnalyzeProvider,
5707
+ St as PriceAnalyzeProvider,
5703
5708
  me as PriceCoefficient,
5704
5709
  ze as PriceCoefficientEnum,
5705
5710
  B as PriceTemplate,
@@ -5707,22 +5712,22 @@ export {
5707
5712
  Y as PriceTemplateClient,
5708
5713
  je as PriceTemplateICatalogableItem,
5709
5714
  ve as PriceTemplateProduct,
5710
- At as PriceTemplateProvider,
5715
+ Tt as PriceTemplateProvider,
5711
5716
  Z as PricingRole,
5712
- Tt as PricingRoleProvider,
5717
+ bt as PricingRoleProvider,
5713
5718
  De as PrimaryCatalogableItem,
5714
5719
  _ as Product,
5715
- Pt as ProductCategoryDataProvider,
5716
- Rt as ProductDataProvider,
5717
- Br as ProductFileType,
5720
+ Rt as ProductCategoryDataProvider,
5721
+ Dt as ProductDataProvider,
5722
+ Wr as ProductFileType,
5718
5723
  _e as ProductPriceCoefficient,
5719
- Er as ProductPriceHistory,
5720
- bt as PropertiesProvider,
5724
+ Kr as ProductPriceHistory,
5725
+ _t as PropertiesProvider,
5721
5726
  X as Property,
5722
5727
  Ee as PropertyType,
5723
5728
  Nr as PropertyTypeEnum,
5724
5729
  H as PropertyValue,
5725
- _t as RecommendationsDataProvider,
5730
+ at as RecommendationsDataProvider,
5726
5731
  xe as RecommendationsList,
5727
5732
  w as Reference,
5728
5733
  R as ReferenceDataProvider,
@@ -5731,21 +5736,22 @@ export {
5731
5736
  S as SalesDirection,
5732
5737
  Ir as SentryConfig,
5733
5738
  Ue as Seo,
5734
- Ut as SeoDataProvider,
5739
+ Gt as SeoDataProvider,
5735
5740
  Qe as SourcePrimaryInterest,
5736
5741
  Ar as StockCount,
5737
5742
  ae as TypedInstanceFactory,
5738
5743
  de as UnitsHelper,
5739
- Nt as UnknownClientDataProvider,
5744
+ Ot as UnknownClientDataProvider,
5740
5745
  We as UpdatableNamedIdentity,
5741
- jr as User,
5746
+ Vr as User,
5742
5747
  Ve as UserCommonInfo,
5743
- Vr as UserDataProvider,
5748
+ Er as UserDataProvider,
5744
5749
  d as UserShortInfo,
5745
- Wr as UserTypeEnum,
5750
+ jr as UserTypeEnum,
5746
5751
  xr as VersionConfig,
5747
5752
  fe as Warehouse,
5748
- Gt as useReferencesStore,
5749
- Mt as useUserStateStore
5753
+ Or as WindowResolutionEnum,
5754
+ Mt as useReferencesStore,
5755
+ Ft as useUserStateStore
5750
5756
  };
5751
5757
  //# sourceMappingURL=sc-common-lib.js.map