@snabcentr/common-lib 1.60.3 → 1.60.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.
Files changed (55) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +3 -3
  3. package/dist/sc-common-lib.js +121 -120
  4. package/dist/sc-common-lib.js.map +1 -1
  5. package/dist/sc-common-lib.umd.cjs +1 -1
  6. package/dist/sc-common-lib.umd.cjs.map +1 -1
  7. package/dist/src/catalog/classes/property-type.d.ts +1 -1
  8. package/dist/src/catalog/classes/property-type.d.ts.map +1 -1
  9. package/dist/src/http/classes/http-base-cached-requester.d.ts +4 -3
  10. package/dist/src/http/classes/http-base-cached-requester.d.ts.map +1 -1
  11. package/dist/src/references/classes/any-reference.d.ts +1 -1
  12. package/dist/src/references/classes/any-reference.d.ts.map +1 -1
  13. package/dist/src/references/classes/channel-primary-interest.d.ts +1 -1
  14. package/dist/src/references/classes/channel-primary-interest.d.ts.map +1 -1
  15. package/dist/src/references/classes/city-with-region-and-country.d.ts +1 -1
  16. package/dist/src/references/classes/city-with-region-and-country.d.ts.map +1 -1
  17. package/dist/src/references/classes/city.d.ts +1 -1
  18. package/dist/src/references/classes/city.d.ts.map +1 -1
  19. package/dist/src/references/classes/contact-position.d.ts +1 -1
  20. package/dist/src/references/classes/contact-position.d.ts.map +1 -1
  21. package/dist/src/references/classes/country.d.ts +1 -1
  22. package/dist/src/references/classes/country.d.ts.map +1 -1
  23. package/dist/src/references/classes/delivery-type.d.ts +1 -1
  24. package/dist/src/references/classes/delivery-type.d.ts.map +1 -1
  25. package/dist/src/references/classes/opf.d.ts +1 -1
  26. package/dist/src/references/classes/opf.d.ts.map +1 -1
  27. package/dist/src/references/classes/order-payment-status.d.ts +1 -1
  28. package/dist/src/references/classes/order-payment-status.d.ts.map +1 -1
  29. package/dist/src/references/classes/order-status.d.ts +1 -1
  30. package/dist/src/references/classes/order-status.d.ts.map +1 -1
  31. package/dist/src/references/classes/partner-group.d.ts +1 -1
  32. package/dist/src/references/classes/partner-group.d.ts.map +1 -1
  33. package/dist/src/references/classes/payment-type.d.ts +1 -1
  34. package/dist/src/references/classes/payment-type.d.ts.map +1 -1
  35. package/dist/src/references/classes/price-coefficient.d.ts +1 -1
  36. package/dist/src/references/classes/price-coefficient.d.ts.map +1 -1
  37. package/dist/src/references/classes/product-file-type.d.ts +1 -1
  38. package/dist/src/references/classes/product-file-type.d.ts.map +1 -1
  39. package/dist/src/references/classes/region.d.ts +1 -1
  40. package/dist/src/references/classes/region.d.ts.map +1 -1
  41. package/dist/src/references/classes/resource-type.d.ts +1 -1
  42. package/dist/src/references/classes/resource-type.d.ts.map +1 -1
  43. package/dist/src/references/classes/sales-direction.d.ts +1 -1
  44. package/dist/src/references/classes/sales-direction.d.ts.map +1 -1
  45. package/dist/src/references/classes/source-primary-interest.d.ts +1 -1
  46. package/dist/src/references/classes/source-primary-interest.d.ts.map +1 -1
  47. package/dist/src/references/classes/warehouse.d.ts +1 -1
  48. package/dist/src/references/classes/warehouse.d.ts.map +1 -1
  49. package/dist/src/references/interfaces/i-opf.d.ts +2 -1
  50. package/dist/src/references/interfaces/i-opf.d.ts.map +1 -1
  51. package/dist/src/system/classes/reference.d.ts +2 -2
  52. package/dist/src/system/classes/reference.d.ts.map +1 -1
  53. package/dist/src/system/interfaces/i-reference.d.ts +1 -1
  54. package/dist/src/system/interfaces/i-reference.d.ts.map +1 -1
  55. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- var tr = Object.defineProperty;
2
- var sr = (n, r, e) => r in n ? tr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => sr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { isNil as ee, toUpper as ir, constant as nr, isUndefined as or, isString as m, cloneDeep as cr, noop as y, toLower as lr, isFunction as Se, map as ce, forEach as pr, isDate as ur, isEmpty as hr, isArray as gr } from "lodash-es";
5
- import { parseISO as f, format as B, addSeconds as mr, isAfter as fr, startOfToday as Fe, addBusinessDays as yr, endOfTomorrow as wr, startOfTomorrow as Cr, endOfYesterday as vr, startOfYesterday as Pr, endOfToday as Rr, endOfDay as Dr, startOfDay as Ar } from "date-fns";
1
+ var sr = Object.defineProperty;
2
+ var ir = (n, r, e) => r in n ? sr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => ir(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { isNil as ee, toUpper as nr, constant as or, isUndefined as cr, isString as m, cloneDeep as lr, noop as y, toLower as pr, isEmpty as Fe, isFunction as Se, map as ce, forEach as ur, isDate as hr, isArray as gr } from "lodash-es";
5
+ import { parseISO as f, format as B, addSeconds as mr, isAfter as fr, startOfToday as He, addBusinessDays as yr, endOfTomorrow as wr, startOfTomorrow as Cr, endOfYesterday as vr, startOfYesterday as Pr, endOfToday as Rr, endOfDay as Dr, startOfDay as Ar } from "date-fns";
6
6
  import $r from "axios";
7
7
  import { objectToSnake as ke, objectToCamel as Tr } from "ts-case-convert";
8
8
  import { defineStore as me } from "pinia";
@@ -31,7 +31,7 @@ class H {
31
31
  return typeof this.id == "number" ? this.id === -1 : (typeof this.id == "string" && (this.id = ""), ee(this.id));
32
32
  }
33
33
  }
34
- class D extends H {
34
+ class $ extends H {
35
35
  /**
36
36
  * Инициализирует экземпляр класса {@link NamedIdentity}.
37
37
  *
@@ -46,7 +46,7 @@ class D extends H {
46
46
  this.name = (e == null ? void 0 : e.name) ?? "";
47
47
  }
48
48
  }
49
- class He extends D {
49
+ class ze extends $ {
50
50
  /**
51
51
  * Инициализирует экземпляр класса {@link CatalogableItem}.
52
52
  *
@@ -69,7 +69,7 @@ class He extends D {
69
69
  this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
70
70
  }
71
71
  }
72
- class Ae extends He {
72
+ class Ae extends ze {
73
73
  /**
74
74
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
75
75
  *
@@ -108,11 +108,11 @@ class ie extends Ae {
108
108
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
109
109
  */
110
110
  t(this, "currencyRates");
111
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [ir(s), i])) : void 0;
111
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [nr(s), i])) : void 0;
112
112
  }
113
113
  }
114
- var ze = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ze || {});
115
- class w extends D {
114
+ var Be = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Be || {});
115
+ class w extends $ {
116
116
  /**
117
117
  * Инициализирует экземпляр класса {@link Reference}.
118
118
  *
@@ -136,7 +136,7 @@ class fe extends w {
136
136
  * Возвращает значение справочника коэффициента розничной цены.
137
137
  */
138
138
  static getRetailPriceCoefficient() {
139
- return { id: -2, slug: ze.Retail, name: "Розн. цена", guid: "", isNewRec: nr(!0) };
139
+ return { id: -2, slug: Be.Retail, name: "Розн. цена", guid: "", isNewRec: or(!0) };
140
140
  }
141
141
  }
142
142
  class ae {
@@ -169,7 +169,7 @@ class ae {
169
169
  this.coefficient = new fe(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;
170
170
  }
171
171
  }
172
- class Be {
172
+ class We {
173
173
  /**
174
174
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
175
175
  *
@@ -218,7 +218,7 @@ class ye extends w {
218
218
  * Координаты склада.
219
219
  */
220
220
  t(this, "coordinates");
221
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Be(e == null ? void 0 : e.coordinates);
221
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new We(e == null ? void 0 : e.coordinates);
222
222
  }
223
223
  }
224
224
  class br {
@@ -253,7 +253,7 @@ const j = class j {
253
253
  */
254
254
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
255
255
  static getConfig() {
256
- if (or(j.config))
256
+ if (cr(j.config))
257
257
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
258
258
  return j.config;
259
259
  }
@@ -276,7 +276,7 @@ const j = class j {
276
276
  */
277
277
  t(j, "config");
278
278
  let T = j;
279
- class _r extends He {
279
+ class _r extends ze {
280
280
  /**
281
281
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
282
282
  *
@@ -456,7 +456,7 @@ class ar extends H {
456
456
  * Признак того, что позиция является дополнительной продажей.
457
457
  */
458
458
  t(this, "isAdditionalSale");
459
- this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ie(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && cr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
459
+ this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ie(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && lr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
460
460
  }
461
461
  }
462
462
  class Lr extends ar {
@@ -742,7 +742,7 @@ const a = class a {
742
742
  ...e
743
743
  }
744
744
  }), this.httpClient.interceptors.request.use(
745
- (i) => (i.method && (i.method === "get" && i.params && (i.params = ke(i.params)), ["put", "patch", "post"].includes(lr(i.method)) && i.data && (i.data = ke(i.data))), i),
745
+ (i) => (i.method && (i.method === "get" && i.params && (i.params = ke(i.params)), ["put", "patch", "post"].includes(pr(i.method)) && i.data && (i.data = ke(i.data))), i),
746
746
  (i) => Promise.reject(i)
747
747
  ), this.httpClient.interceptors.response.use(
748
748
  (i) => (i.data && (i.data = Tr(i.data)), i),
@@ -888,7 +888,7 @@ const V = class V extends $e {
888
888
  * Возвращает кэшированные данные.
889
889
  * Если кэшированные данные отсутствуют, то вернет undefined.
890
890
  *
891
- * @param url URL запроса.
891
+ * @param key Ключ запроса.
892
892
  */
893
893
  static getCachedResponse(e) {
894
894
  const s = V.responseDataCache.get(e);
@@ -914,13 +914,14 @@ const V = class V extends $e {
914
914
  * @param url URL запроса для получения данных.
915
915
  * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
916
916
  * и использовать в случае аналогичных запросов.
917
+ * @param params Дополнительные параметры запроса.
917
918
  */
918
919
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
919
- getTypedDataArrayRequester(e, s, i = !1) {
920
- const o = i ? V.getCachedResponse(s) : void 0;
921
- return o ? Promise.resolve(o) : this.get(s).then((l) => {
922
- const p = l.map((g) => Le.instanceInitializer(e, g));
923
- return i && p && this.cacheResponse(s, p), p;
920
+ getTypedDataArrayRequester(e, s, i = !1, o = {}) {
921
+ const l = s + (Fe(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? V.getCachedResponse(l) : void 0;
922
+ return p ? Promise.resolve(p) : this.get(s, o).then((g) => {
923
+ const R = g.map((A) => Le.instanceInitializer(e, A));
924
+ return i && R && this.cacheResponse(s, R), R;
924
925
  });
925
926
  }
926
927
  };
@@ -1063,7 +1064,7 @@ class q extends ie {
1063
1064
  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));
1064
1065
  }
1065
1066
  }
1066
- class We extends D {
1067
+ class je extends $ {
1067
1068
  /**
1068
1069
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1069
1070
  *
@@ -1078,7 +1079,7 @@ class We extends D {
1078
1079
  this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1079
1080
  }
1080
1081
  }
1081
- class qr extends We {
1082
+ class qr extends je {
1082
1083
  /**
1083
1084
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1084
1085
  *
@@ -1104,7 +1105,7 @@ class wt {
1104
1105
  if (e)
1105
1106
  try {
1106
1107
  const s = JSON.parse(e);
1107
- if (fr(f(s.availableFor) || Fe(), /* @__PURE__ */ new Date()))
1108
+ if (fr(f(s.availableFor) || He(), /* @__PURE__ */ new Date()))
1108
1109
  return s.data ?? {};
1109
1110
  } catch {
1110
1111
  localStorage.removeItem(r);
@@ -1127,7 +1128,7 @@ class wt {
1127
1128
  );
1128
1129
  }
1129
1130
  }
1130
- class U extends D {
1131
+ class U extends $ {
1131
1132
  /**
1132
1133
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1133
1134
  *
@@ -1142,7 +1143,7 @@ class U extends D {
1142
1143
  this.type = e == null ? void 0 : e.type;
1143
1144
  }
1144
1145
  }
1145
- class Ur extends D {
1146
+ class Ur extends $ {
1146
1147
  /**
1147
1148
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1148
1149
  *
@@ -1181,7 +1182,7 @@ class Ur extends D {
1181
1182
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new U(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1182
1183
  }
1183
1184
  }
1184
- class W extends We {
1185
+ class W extends je {
1185
1186
  /**
1186
1187
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1187
1188
  *
@@ -1259,7 +1260,7 @@ class Gr {
1259
1260
  }
1260
1261
  class S extends w {
1261
1262
  }
1262
- class re extends D {
1263
+ class re extends $ {
1263
1264
  /**
1264
1265
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1265
1266
  *
@@ -1368,7 +1369,7 @@ class le extends Mr {
1368
1369
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new le(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
1369
1370
  }
1370
1371
  }
1371
- class je {
1372
+ class Ve {
1372
1373
  /**
1373
1374
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1374
1375
  *
@@ -1386,7 +1387,7 @@ class je {
1386
1387
  this.coefficient = (r == null ? void 0 : r.coefficient) && new fe(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1387
1388
  }
1388
1389
  }
1389
- class ve extends je {
1390
+ class ve extends Ve {
1390
1391
  /**
1391
1392
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1392
1393
  *
@@ -1433,7 +1434,7 @@ class pe extends w {
1433
1434
  e && (this.region = new te(e.region));
1434
1435
  }
1435
1436
  }
1436
- class Ve extends D {
1437
+ class Ee extends $ {
1437
1438
  /**
1438
1439
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1439
1440
  *
@@ -1472,7 +1473,7 @@ class Ve extends D {
1472
1473
  this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new S(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1473
1474
  }
1474
1475
  }
1475
- class ne extends Ve {
1476
+ class ne extends Ee {
1476
1477
  /**
1477
1478
  * Инициализирует экземпляр класса {@link Client}.
1478
1479
  *
@@ -1544,7 +1545,7 @@ class Y extends H {
1544
1545
  this.startAt = m(e == null ? void 0 : e.startAt) ? f(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = m(e == null ? void 0 : e.endAt) ? f(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1545
1546
  }
1546
1547
  }
1547
- class Pe extends je {
1548
+ class Pe extends Ve {
1548
1549
  /**
1549
1550
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1550
1551
  *
@@ -1559,9 +1560,9 @@ class Pe extends je {
1559
1560
  this.product = new _(e == null ? void 0 : e.product);
1560
1561
  }
1561
1562
  }
1562
- class Ee extends w {
1563
+ class Ke extends w {
1563
1564
  }
1564
- class X extends D {
1565
+ class X extends $ {
1565
1566
  /**
1566
1567
  * Инициализирует экземпляр класса {@link Property}.
1567
1568
  *
@@ -1581,7 +1582,7 @@ class X extends D {
1581
1582
  * Дополнительные метаданные свойства.
1582
1583
  */
1583
1584
  t(this, "metadata");
1584
- this.type = new Ee(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1585
+ this.type = new Ke(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1585
1586
  }
1586
1587
  }
1587
1588
  class z {
@@ -1687,13 +1688,13 @@ class Ct {
1687
1688
  }
1688
1689
  class Fr extends w {
1689
1690
  }
1690
- class Ke extends w {
1691
+ class Je extends w {
1691
1692
  }
1692
1693
  class vt extends w {
1693
1694
  }
1694
1695
  class Hr extends w {
1695
1696
  }
1696
- class ue extends D {
1697
+ class ue extends $ {
1697
1698
  /**
1698
1699
  * Инициализирует экземпляр класса {@link Currency}.
1699
1700
  *
@@ -1736,11 +1737,11 @@ class Wr extends w {
1736
1737
  }
1737
1738
  class jr extends w {
1738
1739
  }
1739
- class Je extends w {
1740
- }
1741
1740
  class Qe extends w {
1742
1741
  }
1743
- class R extends u {
1742
+ class Ye extends w {
1743
+ }
1744
+ class D extends u {
1744
1745
  /**
1745
1746
  * Возвращает {@link Promise} для получения данных указанного справочника.
1746
1747
  *
@@ -1756,7 +1757,7 @@ class R extends u {
1756
1757
  * первичного интереса.
1757
1758
  */
1758
1759
  getChannelPrimaryInterest() {
1759
- return this.getTypedDataArrayRequester(Ke, "/internal/references/channel-primary-interest", !0);
1760
+ return this.getTypedDataArrayRequester(Je, "/internal/references/channel-primary-interest", !0);
1760
1761
  }
1761
1762
  /**
1762
1763
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
@@ -1805,7 +1806,7 @@ class R extends u {
1805
1806
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1806
1807
  */
1807
1808
  getResourceTypes() {
1808
- return this.getTypedDataArrayRequester(Je, "/internal/references/resource-type", !0);
1809
+ return this.getTypedDataArrayRequester(Qe, "/internal/references/resource-type", !0);
1809
1810
  }
1810
1811
  /**
1811
1812
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -1817,7 +1818,7 @@ class R extends u {
1817
1818
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1818
1819
  */
1819
1820
  getSourcePrimaryInterest() {
1820
- return this.getTypedDataArrayRequester(Qe, "/internal/references/source-primary-interest", !0);
1821
+ return this.getTypedDataArrayRequester(Ye, "/internal/references/source-primary-interest", !0);
1821
1822
  }
1822
1823
  /**
1823
1824
  * Выполняет поиск данных о городах по терму в названии.
@@ -1859,7 +1860,7 @@ class R extends u {
1859
1860
  * Возвращает {@link Promise} для получения справочника типов свойств.
1860
1861
  */
1861
1862
  getPropertyTypes() {
1862
- return this.getTypedDataArrayRequester(Ee, "/internal/references/property-type", !0);
1863
+ return this.getTypedDataArrayRequester(Ke, "/internal/references/property-type", !0);
1863
1864
  }
1864
1865
  /**
1865
1866
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -1875,7 +1876,7 @@ class R extends u {
1875
1876
  }
1876
1877
  }
1877
1878
  var Vr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Vr || {});
1878
- class Er extends Ve {
1879
+ class Er extends Ee {
1879
1880
  /**
1880
1881
  * Инициализирует экземпляр класса {@link User}.
1881
1882
  *
@@ -1971,7 +1972,7 @@ class Ne {
1971
1972
  r != null && r.products && (this.products = r.products.map((e) => new _(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
1972
1973
  }
1973
1974
  }
1974
- class Z extends D {
1975
+ class Z extends $ {
1975
1976
  /**
1976
1977
  * Инициализирует экземпляр класса {@link PricingRole}.
1977
1978
  *
@@ -2451,7 +2452,7 @@ class At extends u {
2451
2452
  getCategoryProductsCoefficients(r) {
2452
2453
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2453
2454
  const { data: s } = e;
2454
- return pr(s, (i) => i.map((o) => new ae(o))), s;
2455
+ return ur(s, (i) => i.map((o) => new ae(o))), s;
2455
2456
  });
2456
2457
  }
2457
2458
  /**
@@ -2647,7 +2648,7 @@ class de {
2647
2648
  field: this.field,
2648
2649
  op: this.op
2649
2650
  };
2650
- return r.value = ur(this.value) ? B(this.value, T.getConfig().dateFormats.api) : this.value, r;
2651
+ return r.value = hr(this.value) ? B(this.value, T.getConfig().dateFormats.api) : this.value, r;
2651
2652
  }
2652
2653
  }
2653
2654
  class se {
@@ -2702,7 +2703,7 @@ class Ce extends u {
2702
2703
  page: (i == null ? void 0 : i.page) ?? 1,
2703
2704
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2704
2705
  };
2705
- return e && (g.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), hr(s) || (g.sort = gr(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2706
+ return e && (g.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), Fe(s) || (g.sort = gr(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2706
2707
  }
2707
2708
  }
2708
2709
  class _t extends Ce {
@@ -3476,7 +3477,7 @@ class be extends H {
3476
3477
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ue(e.currency));
3477
3478
  }
3478
3479
  }
3479
- class _e extends D {
3480
+ class _e extends $ {
3480
3481
  /**
3481
3482
  * Инициализирует экземпляр класса {@link Contact}.
3482
3483
  *
@@ -3530,7 +3531,7 @@ class F extends _e {
3530
3531
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3531
3532
  }
3532
3533
  }
3533
- class Ye extends D {
3534
+ class Xe extends $ {
3534
3535
  /**
3535
3536
  * Инициализирует экземпляр класса {@link ContragentBase}.
3536
3537
  *
@@ -3603,7 +3604,7 @@ class Ye extends D {
3603
3604
  }
3604
3605
  }
3605
3606
  }
3606
- class Yr extends Ye {
3607
+ class Yr extends Xe {
3607
3608
  /**
3608
3609
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3609
3610
  *
@@ -3613,7 +3614,7 @@ class Yr extends Ye {
3613
3614
  super(r);
3614
3615
  }
3615
3616
  }
3616
- class Xe extends Ye {
3617
+ class Ze extends Xe {
3617
3618
  /**
3618
3619
  * Инициализирует экземпляр класса {@link ContragentIc}.
3619
3620
  *
@@ -3656,7 +3657,7 @@ class Xe extends Ye {
3656
3657
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
3657
3658
  }
3658
3659
  }
3659
- class Ze extends Xe {
3660
+ class er extends Ze {
3660
3661
  /**
3661
3662
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3662
3663
  *
@@ -3671,7 +3672,7 @@ class Ze extends Xe {
3671
3672
  e && (this.kpp = e.kpp ?? "");
3672
3673
  }
3673
3674
  }
3674
- class Xr extends Ze {
3675
+ class Xr extends er {
3675
3676
  /**
3676
3677
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3677
3678
  *
@@ -3703,9 +3704,9 @@ class he {
3703
3704
  static createInstance(r) {
3704
3705
  switch (r.opf.slug) {
3705
3706
  case b.Ic:
3706
- return new Xe(r);
3707
- case b.UlR:
3708
3707
  return new Ze(r);
3708
+ case b.UlR:
3709
+ return new er(r);
3709
3710
  case b.UlNr:
3710
3711
  return new Xr(r);
3711
3712
  default:
@@ -3793,7 +3794,7 @@ class ge extends qr {
3793
3794
  * Признак того, что указанный адрес является адресом транспортной компании.
3794
3795
  */
3795
3796
  t(this, "isTransportCompanyAddress");
3796
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Be(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3797
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new We(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3797
3798
  }
3798
3799
  }
3799
3800
  class Ue extends ne {
@@ -3850,7 +3851,7 @@ class Ue extends ne {
3850
3851
  * Дополнительные данные о клиенте.
3851
3852
  */
3852
3853
  t(this, "extraData");
3853
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => he.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new M(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new ge(p))) ?? [], this.channelPrimaryInterest = new Ke(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Qe(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3854
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => he.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new M(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new ge(p))) ?? [], this.channelPrimaryInterest = new Je(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ye(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3854
3855
  }
3855
3856
  }
3856
3857
  class xt {
@@ -4023,7 +4024,7 @@ class xt {
4023
4024
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
4024
4025
  }
4025
4026
  }
4026
- class er extends H {
4027
+ class rr extends H {
4027
4028
  /**
4028
4029
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4029
4030
  *
@@ -4046,7 +4047,7 @@ class er extends H {
4046
4047
  this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4047
4048
  }
4048
4049
  }
4049
- class et extends D {
4050
+ class et extends $ {
4050
4051
  /**
4051
4052
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4052
4053
  *
@@ -4079,7 +4080,7 @@ class et extends D {
4079
4080
  * Список менеджеров.
4080
4081
  */
4081
4082
  t(this, "managers");
4082
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4083
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new rr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4083
4084
  }
4084
4085
  }
4085
4086
  class rt {
@@ -4351,7 +4352,7 @@ class Ot extends Ce {
4351
4352
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4352
4353
  */
4353
4354
  createContragentClientData(r, e, s = {}) {
4354
- var g, A, $, L, I, x, k, N;
4355
+ var g, R, A, L, I, x, k, N;
4355
4356
  let i;
4356
4357
  const o = e, l = e, p = e;
4357
4358
  switch (e.opf.slug) {
@@ -4361,7 +4362,7 @@ class Ot extends Ce {
4361
4362
  name: o.name,
4362
4363
  alternative_name: o.alternativeName,
4363
4364
  partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
4364
- manager_id: (A = o.manager) == null ? void 0 : A.id,
4365
+ manager_id: (R = o.manager) == null ? void 0 : R.id,
4365
4366
  comment: o.comment,
4366
4367
  inn: o.inn,
4367
4368
  okpo: o.okpo,
@@ -4378,7 +4379,7 @@ class Ot extends Ce {
4378
4379
  opf: l.opf.slug,
4379
4380
  name: l.name,
4380
4381
  alternative_name: l.alternativeName,
4381
- partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
4382
+ partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
4382
4383
  manager_id: (L = l.manager) == null ? void 0 : L.id,
4383
4384
  comment: l.comment,
4384
4385
  inn: l.inn,
@@ -4440,7 +4441,7 @@ class Ot extends Ce {
4440
4441
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4441
4442
  */
4442
4443
  updateContragentClientData(r, e, s = {}) {
4443
- var g, A, $, L, I, x, k, N;
4444
+ var g, R, A, L, I, x, k, N;
4444
4445
  let i;
4445
4446
  const o = e, l = e, p = e;
4446
4447
  switch (e.opf.slug) {
@@ -4450,7 +4451,7 @@ class Ot extends Ce {
4450
4451
  name: o.name,
4451
4452
  alternative_name: o.alternativeName,
4452
4453
  partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
4453
- manager_id: (A = o.manager) == null ? void 0 : A.id,
4454
+ manager_id: (R = o.manager) == null ? void 0 : R.id,
4454
4455
  comment: o.comment,
4455
4456
  inn: o.inn,
4456
4457
  okpo: o.okpo,
@@ -4467,7 +4468,7 @@ class Ot extends Ce {
4467
4468
  opf: l.opf.slug,
4468
4469
  name: l.name,
4469
4470
  alternative_name: l.alternativeName,
4470
- partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
4471
+ partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
4471
4472
  manager_id: (L = l.manager) == null ? void 0 : L.id,
4472
4473
  comment: l.comment,
4473
4474
  inn: l.inn,
@@ -4970,7 +4971,7 @@ class Ut {
4970
4971
  return {
4971
4972
  // 'Следующий рабочий день' - это значение по-умолчанию
4972
4973
  nextWorkingDay: { label: "Следующий рабочий день", from: Ar(r), to: Dr(r) },
4973
- today: { label: "Сегодня", from: Fe(), to: Rr() },
4974
+ today: { label: "Сегодня", from: He(), to: Rr() },
4974
4975
  yesterday: { label: "Вчера", from: Pr(), to: vr() },
4975
4976
  tomorrow: { label: "Завтра", from: Cr(), to: wr() }
4976
4977
  };
@@ -5045,14 +5046,14 @@ class tt extends u {
5045
5046
  });
5046
5047
  }
5047
5048
  }
5048
- class rr extends er {
5049
+ class tr extends rr {
5049
5050
  /**
5050
5051
  * Инициализирует экземпляр класса {@link OrderInfo}.
5051
5052
  *
5052
5053
  * @param data Данные для первоначальной инициализации.
5053
5054
  */
5054
5055
  constructor(e) {
5055
- var s, i, o, l, p, g, A, $;
5056
+ var s, i, o, l, p, g, R, A;
5056
5057
  super(e);
5057
5058
  /**
5058
5059
  * Краткие данные о клиенте.
@@ -5101,8 +5102,8 @@ class rr extends er {
5101
5102
  }, this.delivery = {
5102
5103
  type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
5103
5104
  date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
5104
- address: (A = e == null ? void 0 : e.delivery) != null && A.address ? new ge(e.delivery.address) : void 0,
5105
- warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new ye(e.delivery.warehouse) : void 0
5105
+ address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new ge(e.delivery.address) : void 0,
5106
+ warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new ye(e.delivery.warehouse) : void 0
5106
5107
  }, this.attachedUser = new U(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;
5107
5108
  }
5108
5109
  }
@@ -5189,7 +5190,7 @@ class st extends H {
5189
5190
  this.product = new J(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;
5190
5191
  }
5191
5192
  }
5192
- class it extends rr {
5193
+ class it extends tr {
5193
5194
  /**
5194
5195
  * Инициализирует экземпляр класса {@link Order}.
5195
5196
  *
@@ -5245,7 +5246,7 @@ class Mt extends Ce {
5245
5246
  getOrders(r, e, s) {
5246
5247
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5247
5248
  const o = { ...i.data };
5248
- return o.data = o.data.map((l) => new rr(l)), o;
5249
+ return o.data = o.data.map((l) => new tr(l)), o;
5249
5250
  });
5250
5251
  }
5251
5252
  /**
@@ -5320,7 +5321,7 @@ class Me {
5320
5321
  */
5321
5322
  t(this, "meta");
5322
5323
  var e;
5323
- 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 nt(s))) ?? [];
5324
+ this.resourceType = new Qe(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 nt(s))) ?? [];
5324
5325
  }
5325
5326
  }
5326
5327
  class Ft extends u {
@@ -5355,7 +5356,7 @@ class Ft extends u {
5355
5356
  }
5356
5357
  }
5357
5358
  const P = me("__references_private", () => {
5358
- const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), l = C(void 0), p = C(void 0), g = C(void 0), A = C(void 0), $ = C(void 0), L = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), d = C(void 0), c = C(void 0);
5359
+ const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), l = C(void 0), p = C(void 0), g = C(void 0), R = C(void 0), A = C(void 0), L = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), d = C(void 0), c = C(void 0);
5359
5360
  return {
5360
5361
  /**
5361
5362
  * Список загружаемых/загруженных на данный момент значений.
@@ -5396,11 +5397,11 @@ const P = me("__references_private", () => {
5396
5397
  /**
5397
5398
  * Справочник типов оплаты заказов.
5398
5399
  */
5399
- paymentTypeReference: A,
5400
+ paymentTypeReference: R,
5400
5401
  /**
5401
5402
  * Справочник групп партнеров.
5402
5403
  */
5403
- partnerGroupReference: $,
5404
+ partnerGroupReference: A,
5404
5405
  /**
5405
5406
  * Справочник типов файлов продукктов/категорий.
5406
5407
  */
@@ -5433,67 +5434,67 @@ const P = me("__references_private", () => {
5433
5434
  }), Ht = me("references", () => {
5434
5435
  const n = v(() => {
5435
5436
  const c = P();
5436
- return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
5437
+ return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(D).getChannelPrimaryInterest().then((h) => {
5437
5438
  c.channelPrimaryInterestReference = h;
5438
5439
  }).catch(y)), c.channelPrimaryInterestReference;
5439
5440
  }), r = v(() => {
5440
5441
  const c = P();
5441
- return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(R).getContactPositions().then((h) => {
5442
+ return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(D).getContactPositions().then((h) => {
5442
5443
  c.contactPositionsReference = h;
5443
5444
  }).catch(y)), c.contactPositionsReference;
5444
5445
  }), e = v(() => {
5445
5446
  const c = P();
5446
- return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(R).getCurrency().then((h) => {
5447
+ return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(D).getCurrency().then((h) => {
5447
5448
  c.currencyReference = h;
5448
5449
  }).catch(y)), c.currencyReference;
5449
5450
  }), s = v(() => {
5450
5451
  const c = P();
5451
- return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(R).getOpf().then((h) => {
5452
+ return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(D).getOpf().then((h) => {
5452
5453
  c.opfReference = h;
5453
5454
  }).catch(y)), c.opfReference;
5454
5455
  }), i = v(() => {
5455
5456
  const c = P();
5456
- return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(R).getOrderPaymentStatuses().then((h) => {
5457
+ return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(D).getOrderPaymentStatuses().then((h) => {
5457
5458
  c.orderPaymentStatusReference = h;
5458
5459
  }).catch(y)), c.orderPaymentStatusReference;
5459
5460
  }), o = v(() => {
5460
5461
  const c = P();
5461
- return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(R).getOrderStatuses().then((h) => {
5462
+ return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(D).getOrderStatuses().then((h) => {
5462
5463
  c.orderStatusReference = h;
5463
5464
  }).catch(y)), c.orderStatusReference;
5464
5465
  }), l = v(() => {
5465
5466
  const c = P();
5466
- return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(R).getPaymentTypes().then((h) => {
5467
+ return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(D).getPaymentTypes().then((h) => {
5467
5468
  c.paymentTypeReference = h;
5468
5469
  }).catch(y)), c.paymentTypeReference;
5469
5470
  }), p = v(() => {
5470
5471
  const c = P();
5471
- return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(R).getPartnerGroup().then((h) => {
5472
+ return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(D).getPartnerGroup().then((h) => {
5472
5473
  c.partnerGroupReference = h;
5473
5474
  }).catch(y)), c.partnerGroupReference;
5474
5475
  }), g = v(() => {
5475
5476
  const c = P();
5476
- return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(R).getProductFileType().then((h) => {
5477
+ return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(D).getProductFileType().then((h) => {
5477
5478
  c.productFileTypeReference = h;
5478
5479
  }).catch(y)), c.productFileTypeReference;
5479
- }), A = v(() => {
5480
+ }), R = v(() => {
5480
5481
  const c = P();
5481
- return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(R).getResourceTypes().then((h) => {
5482
+ return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(D).getResourceTypes().then((h) => {
5482
5483
  c.resourceTypesReference = h;
5483
5484
  }).catch(y)), c.resourceTypesReference;
5484
- }), $ = v(() => {
5485
+ }), A = v(() => {
5485
5486
  const c = P();
5486
- return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((h) => {
5487
+ return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(D).getSalesDirections().then((h) => {
5487
5488
  c.salesDirectionsReference = h;
5488
5489
  }).catch(y)), c.salesDirectionsReference;
5489
5490
  }), L = v(() => {
5490
5491
  const c = P();
5491
- return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((h) => {
5492
+ return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(D).getSourcePrimaryInterest().then((h) => {
5492
5493
  c.sourcePrimaryInterestReference = h;
5493
5494
  }).catch(y)), c.sourcePrimaryInterestReference;
5494
5495
  }), I = v(() => {
5495
5496
  const c = P();
5496
- return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(R).getDeliveryTypes().then((h) => {
5497
+ return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(D).getDeliveryTypes().then((h) => {
5497
5498
  c.deliveryTypeReference = h;
5498
5499
  }).catch(y)), c.deliveryTypeReference;
5499
5500
  }), x = v(() => {
@@ -5503,17 +5504,17 @@ const P = me("__references_private", () => {
5503
5504
  }).catch(y)), c.managersList;
5504
5505
  }), k = v(() => {
5505
5506
  const c = P();
5506
- return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(R).getWarehouses().then((h) => {
5507
+ return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(D).getWarehouses().then((h) => {
5507
5508
  c.warehousesReference = h;
5508
5509
  }).catch(y)), c.warehousesReference;
5509
5510
  }), N = v(() => {
5510
5511
  const c = P();
5511
- return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((h) => {
5512
+ return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(D).getPropertyTypes().then((h) => {
5512
5513
  c.propertyTypesReference = h;
5513
5514
  }).catch(y)), c.propertyTypesReference;
5514
5515
  }), d = v(() => {
5515
5516
  const c = P();
5516
- return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((h) => {
5517
+ return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(D).getPriceCoefficients().then((h) => {
5517
5518
  c.priceCoefficientsReference = h;
5518
5519
  }).catch(y)), c.priceCoefficientsReference;
5519
5520
  });
@@ -5557,11 +5558,11 @@ const P = me("__references_private", () => {
5557
5558
  /**
5558
5559
  * Справочник типов ресурсов.
5559
5560
  */
5560
- resourceTypesReference: A,
5561
+ resourceTypesReference: R,
5561
5562
  /**
5562
5563
  * Справочник направлений продаж.
5563
5564
  */
5564
- salesDirectionsReference: $,
5565
+ salesDirectionsReference: A,
5565
5566
  /**
5566
5567
  * Справочник каналов первичного интереса.
5567
5568
  */
@@ -5692,10 +5693,10 @@ export {
5692
5693
  ar as CartItemBase,
5693
5694
  yt as CartProvider,
5694
5695
  Pt as CatalogProvider,
5695
- He as CatalogableItem,
5696
+ ze as CatalogableItem,
5696
5697
  q as Category,
5697
5698
  Oe as CategoryPricingRule,
5698
- Ke as ChannelPrimaryInterest,
5699
+ Je as ChannelPrimaryInterest,
5699
5700
  vt as City,
5700
5701
  pe as CityWithRegionAndCountry,
5701
5702
  Ue as Client,
@@ -5717,12 +5718,12 @@ export {
5717
5718
  Zr as ContactPersonRelated,
5718
5719
  Hr as ContactPosition,
5719
5720
  De as ContactRelation,
5720
- Ye as ContragentBase,
5721
+ Xe as ContragentBase,
5721
5722
  he as ContragentFactory,
5722
- Xe as ContragentIc,
5723
+ Ze as ContragentIc,
5723
5724
  Yr as ContragentPerson,
5724
5725
  Xr as ContragentUlNr,
5725
- Ze as ContragentUlR,
5726
+ er as ContragentUlR,
5726
5727
  Ie as CostSourceEnum,
5727
5728
  Q as Country,
5728
5729
  ue as Currency,
@@ -5740,7 +5741,7 @@ export {
5740
5741
  se as FilterGroup,
5741
5742
  de as FilterItem,
5742
5743
  xe as FilterOpEnum,
5743
- Be as GeoCoordinates,
5744
+ We as GeoCoordinates,
5744
5745
  _r as HiddenCatalogableItem,
5745
5746
  Te as HttpBaseCachedRequester,
5746
5747
  $e as HttpBaseRequester,
@@ -5753,14 +5754,14 @@ export {
5753
5754
  Gt as ManagerDataFactory,
5754
5755
  tt as ManagerDataProvider,
5755
5756
  nt as MetaTagItem,
5756
- D as NamedIdentity,
5757
+ $ as NamedIdentity,
5757
5758
  G as Opf,
5758
5759
  b as OpfEnum,
5759
5760
  it as Order,
5760
- rr as OrderInfo,
5761
+ tr as OrderInfo,
5761
5762
  zr as OrderPaymentStatus,
5762
5763
  st as OrderProduct,
5763
- er as OrderShortInfo,
5764
+ rr as OrderShortInfo,
5764
5765
  Br as OrderStatus,
5765
5766
  Mt as OrdersDataProvider,
5766
5767
  M as PartnerGroup,
@@ -5769,11 +5770,11 @@ export {
5769
5770
  Re as PriceAnalyze,
5770
5771
  It as PriceAnalyzeProvider,
5771
5772
  fe as PriceCoefficient,
5772
- ze as PriceCoefficientEnum,
5773
+ Be as PriceCoefficientEnum,
5773
5774
  W as PriceTemplate,
5774
5775
  ve as PriceTemplateCategory,
5775
5776
  Y as PriceTemplateClient,
5776
- je as PriceTemplateICatalogableItem,
5777
+ Ve as PriceTemplateICatalogableItem,
5777
5778
  Pe as PriceTemplateProduct,
5778
5779
  _t as PriceTemplateProvider,
5779
5780
  Z as PricingRole,
@@ -5787,28 +5788,28 @@ export {
5787
5788
  Jr as ProductPriceHistory,
5788
5789
  at as PropertiesProvider,
5789
5790
  X as Property,
5790
- Ee as PropertyType,
5791
+ Ke as PropertyType,
5791
5792
  dr as PropertyTypeEnum,
5792
5793
  z as PropertyValue,
5793
5794
  Lt as RecommendationsDataProvider,
5794
5795
  Ne as RecommendationsList,
5795
5796
  w as Reference,
5796
- R as ReferenceDataProvider,
5797
+ D as ReferenceDataProvider,
5797
5798
  te as Region,
5798
- Je as ResourceType,
5799
+ Qe as ResourceType,
5799
5800
  S as SalesDirection,
5800
5801
  kr as SentryConfig,
5801
5802
  Me as Seo,
5802
5803
  Ft as SeoDataProvider,
5803
- Qe as SourcePrimaryInterest,
5804
+ Ye as SourcePrimaryInterest,
5804
5805
  br as StockCount,
5805
5806
  Ct as TemplatesListFilters,
5806
5807
  Le as TypedInstanceFactory,
5807
5808
  Ge as UnitsHelper,
5808
5809
  dt as UnknownClientDataProvider,
5809
- We as UpdatableNamedIdentity,
5810
+ je as UpdatableNamedIdentity,
5810
5811
  Er as User,
5811
- Ve as UserCommonInfo,
5812
+ Ee as UserCommonInfo,
5812
5813
  Kr as UserDataProvider,
5813
5814
  U as UserShortInfo,
5814
5815
  Vr as UserTypeEnum,