@snabcentr/common-lib 1.60.5 → 1.61.0

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 (53) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +2 -2
  3. package/dist/sc-common-lib.js +617 -584
  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/index.d.ts +0 -1
  8. package/dist/src/catalog/classes/index.d.ts.map +1 -1
  9. package/dist/src/catalog/classes/price-template-catalogable-item.d.ts +1 -1
  10. package/dist/src/catalog/classes/price-template-catalogable-item.d.ts.map +1 -1
  11. package/dist/src/catalog/classes/product.d.ts +8 -0
  12. package/dist/src/catalog/classes/product.d.ts.map +1 -1
  13. package/dist/src/catalog/interfaces/i-price-template-catalogable-item.d.ts +1 -1
  14. package/dist/src/catalog/interfaces/i-price-template-catalogable-item.d.ts.map +1 -1
  15. package/dist/src/catalog/interfaces/i-product.d.ts +8 -0
  16. package/dist/src/catalog/interfaces/i-product.d.ts.map +1 -1
  17. package/dist/src/catalog/interfaces/index.d.ts +0 -2
  18. package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
  19. package/dist/src/catalog/providers/index.d.ts +0 -1
  20. package/dist/src/catalog/providers/index.d.ts.map +1 -1
  21. package/dist/src/index.d.ts +1 -0
  22. package/dist/src/index.d.ts.map +1 -1
  23. package/dist/src/price-analyze/classes/index.d.ts +2 -0
  24. package/dist/src/price-analyze/classes/index.d.ts.map +1 -0
  25. package/dist/src/{catalog → price-analyze}/classes/price-analyze.d.ts +3 -3
  26. package/dist/src/price-analyze/classes/price-analyze.d.ts.map +1 -0
  27. package/dist/src/price-analyze/converters/price-analyze-filters.d.ts +8 -0
  28. package/dist/src/price-analyze/converters/price-analyze-filters.d.ts.map +1 -0
  29. package/dist/src/{catalog/providers/converters/price-analyze.d.ts → price-analyze/converters/price-analyze-params.d.ts} +3 -3
  30. package/dist/src/price-analyze/converters/price-analyze-params.d.ts.map +1 -0
  31. package/dist/src/price-analyze/index.d.ts +4 -0
  32. package/dist/src/price-analyze/index.d.ts.map +1 -0
  33. package/dist/src/price-analyze/interfaces/i-price-analyze-filters.d.ts +36 -0
  34. package/dist/src/price-analyze/interfaces/i-price-analyze-filters.d.ts.map +1 -0
  35. package/dist/src/price-analyze/interfaces/i-price-analyze-parameter.d.ts.map +1 -0
  36. package/dist/src/{catalog → price-analyze}/interfaces/i-price-analyze-params.d.ts +1 -1
  37. package/dist/src/price-analyze/interfaces/i-price-analyze-params.d.ts.map +1 -0
  38. package/dist/src/{catalog → price-analyze}/interfaces/i-price-analyze.d.ts +2 -2
  39. package/dist/src/price-analyze/interfaces/i-price-analyze.d.ts.map +1 -0
  40. package/dist/src/price-analyze/interfaces/index.d.ts +4 -0
  41. package/dist/src/price-analyze/interfaces/index.d.ts.map +1 -0
  42. package/dist/src/price-analyze/providers/index.d.ts +2 -0
  43. package/dist/src/price-analyze/providers/index.d.ts.map +1 -0
  44. package/dist/src/{catalog → price-analyze}/providers/price-analyze-provider.d.ts +8 -4
  45. package/dist/src/price-analyze/providers/price-analyze-provider.d.ts.map +1 -0
  46. package/package.json +1 -1
  47. package/dist/src/catalog/classes/price-analyze.d.ts.map +0 -1
  48. package/dist/src/catalog/interfaces/i-price-analyze-params.d.ts.map +0 -1
  49. package/dist/src/catalog/interfaces/i-price-analyze.d.ts.map +0 -1
  50. package/dist/src/catalog/providers/converters/price-analyze.d.ts.map +0 -1
  51. package/dist/src/catalog/providers/interfaces/i-price-analyze-parameter.d.ts.map +0 -1
  52. package/dist/src/catalog/providers/price-analyze-provider.d.ts.map +0 -1
  53. /package/dist/src/{catalog/providers → price-analyze}/interfaces/i-price-analyze-parameter.d.ts +0 -0
@@ -1,10 +1,10 @@
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
- import $r from "axios";
7
- import { objectToSnake as ke, objectToCamel as Tr } from "ts-case-convert";
1
+ var nr = Object.defineProperty;
2
+ var or = (n, r, e) => r in n ? nr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => or(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { isNil as K, toUpper as cr, constant as lr, isUndefined as pr, isString as m, cloneDeep as ur, noop as y, toLower as hr, isEmpty as Le, isFunction as ae, map as ce, forEach as gr, isDate as mr, isArray as ze, omitBy as fr, isObject as yr } from "lodash-es";
5
+ import { parseISO as f, format as B, addSeconds as wr, isAfter as Cr, startOfToday as Be, addBusinessDays as vr, endOfTomorrow as Pr, startOfTomorrow as Rr, endOfYesterday as Ar, startOfYesterday as Dr, endOfToday as $r, endOfDay as br, startOfDay as Tr } from "date-fns";
6
+ import _r from "axios";
7
+ import { objectToSnake as Oe, objectToCamel as Sr } from "ts-case-convert";
8
8
  import { defineStore as me } from "pinia";
9
9
  import { ref as C, computed as v } from "vue";
10
10
  class H {
@@ -22,13 +22,13 @@ class H {
22
22
  * @inheritDoc
23
23
  */
24
24
  t(this, "guid");
25
- this.id = r == null ? void 0 : r.id, ee(this.id) && (typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "")), this.guid = (r == null ? void 0 : r.guid) ?? "";
25
+ this.id = r == null ? void 0 : r.id, K(this.id) && (typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "")), this.guid = (r == null ? void 0 : r.guid) ?? "";
26
26
  }
27
27
  /**
28
28
  * Возвращает признак, что это новая запись.
29
29
  */
30
30
  isNewRec() {
31
- return typeof this.id == "number" ? this.id === -1 : (typeof this.id == "string" && (this.id = ""), ee(this.id));
31
+ return typeof this.id == "number" ? this.id === -1 : (typeof this.id == "string" && (this.id = ""), K(this.id));
32
32
  }
33
33
  }
34
34
  class $ extends H {
@@ -46,7 +46,7 @@ class $ extends H {
46
46
  this.name = (e == null ? void 0 : e.name) ?? "";
47
47
  }
48
48
  }
49
- class ze extends $ {
49
+ class We extends $ {
50
50
  /**
51
51
  * Инициализирует экземпляр класса {@link CatalogableItem}.
52
52
  *
@@ -69,7 +69,7 @@ class ze extends $ {
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 ze {
72
+ class $e extends We {
73
73
  /**
74
74
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
75
75
  *
@@ -84,7 +84,7 @@ class Ae extends ze {
84
84
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
85
85
  }
86
86
  }
87
- class ie extends Ae {
87
+ class ie extends $e {
88
88
  /**
89
89
  * Инициализирует экземпляр класса {@link BaseCategory}.
90
90
  *
@@ -108,10 +108,10 @@ 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]) => [nr(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]) => [cr(s), i])) : void 0;
112
112
  }
113
113
  }
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 || {});
114
+ var je = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(je || {});
115
115
  class w extends $ {
116
116
  /**
117
117
  * Инициализирует экземпляр класса {@link Reference}.
@@ -136,10 +136,10 @@ class fe extends w {
136
136
  * Возвращает значение справочника коэффициента розничной цены.
137
137
  */
138
138
  static getRetailPriceCoefficient() {
139
- return { id: -2, slug: Be.Retail, name: "Розн. цена", guid: "", isNewRec: or(!0) };
139
+ return { id: -2, slug: je.Retail, name: "Розн. цена", guid: "", isNewRec: lr(!0) };
140
140
  }
141
141
  }
142
- class ae {
142
+ class Ie {
143
143
  /**
144
144
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
145
145
  *
@@ -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 We {
172
+ class Ve {
173
173
  /**
174
174
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
175
175
  *
@@ -187,7 +187,7 @@ class We {
187
187
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
188
188
  }
189
189
  }
190
- class K extends w {
190
+ class J extends w {
191
191
  }
192
192
  class ye extends w {
193
193
  /**
@@ -218,10 +218,10 @@ 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 We(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 J(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Ve(e == null ? void 0 : e.coordinates);
222
222
  }
223
223
  }
224
- class br {
224
+ class Lr {
225
225
  /**
226
226
  * Инициализирует экземпляр класса {@link StockCount}.
227
227
  *
@@ -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 (cr(j.config))
256
+ if (pr(j.config))
257
257
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
258
258
  return j.config;
259
259
  }
@@ -275,8 +275,8 @@ const j = class j {
275
275
  * Конфигурация приложения.
276
276
  */
277
277
  t(j, "config");
278
- let T = j;
279
- class _r extends ze {
278
+ let b = j;
279
+ class ar extends We {
280
280
  /**
281
281
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
282
282
  *
@@ -291,7 +291,7 @@ class _r extends ze {
291
291
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
292
292
  }
293
293
  }
294
- class Sr {
294
+ class Ir {
295
295
  /**
296
296
  * Инициализирует экземпляр класса {@link Image}.
297
297
  *
@@ -314,14 +314,14 @@ class Sr {
314
314
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
315
315
  }
316
316
  }
317
- class _ extends _r {
317
+ class _ extends ar {
318
318
  /**
319
319
  * Инициализирует экземпляр класса {@link Product}.
320
320
  *
321
321
  * @param data Данные для первоначальной инициализации.
322
322
  */
323
323
  constructor(e) {
324
- var i, o, l, p;
324
+ var i, o, c, p;
325
325
  super(e);
326
326
  /**
327
327
  * Артикул производителя/поставщика.
@@ -387,24 +387,32 @@ class _ extends _r {
387
387
  * Список свойств продукта.
388
388
  */
389
389
  t(this, "properties");
390
+ /**
391
+ * Розничная цена.
392
+ */
393
+ t(this, "retailCost");
394
+ /**
395
+ * Розничная стоимость продукта в рублях.
396
+ */
397
+ t(this, "retailCostRub");
390
398
  /**
391
399
  * Список коэффициентов цен на продукт.
392
400
  */
393
401
  t(this, "priceCoefficients");
394
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((g) => new br(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
402
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((g) => new Lr(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
395
403
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
396
- s && (this.category = new Ae({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new Ae(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new Sr(g, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new ae(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
404
+ s && (this.category = new $e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new $e(g))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((g) => new Ir(g, b.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new Ie(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
397
405
  }
398
406
  /**
399
407
  * Возвращает признак, что это измеряемый товар.
400
408
  */
401
409
  getIsMeasurable() {
402
410
  var s;
403
- const e = (s = T.getConfig().catalog) == null ? void 0 : s.products.units;
411
+ const e = (s = b.getConfig().catalog) == null ? void 0 : s.products.units;
404
412
  return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
405
413
  }
406
414
  }
407
- class ar extends H {
415
+ class xr extends H {
408
416
  /**
409
417
  * Инициализирует экземпляр класса {@link CartItemBase}.
410
418
  *
@@ -456,10 +464,10 @@ class ar extends H {
456
464
  * Признак того, что позиция является дополнительной продажей.
457
465
  */
458
466
  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 && lr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
467
+ 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 && ur(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
460
468
  }
461
469
  }
462
- class Lr extends ar {
470
+ class kr extends xr {
463
471
  /**
464
472
  * Инициализирует экземпляр класса {@link CartItem}.
465
473
  *
@@ -528,10 +536,10 @@ class oe {
528
536
  * Список итоговых сумм по направлениям продаж.
529
537
  */
530
538
  t(this, "directionsSum");
531
- this.items = r.items.map((e) => new Lr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
539
+ this.items = r.items.map((e) => new kr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
532
540
  }
533
541
  }
534
- class Ir {
542
+ class Nr {
535
543
  /**
536
544
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
537
545
  *
@@ -553,7 +561,7 @@ class Ir {
553
561
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
554
562
  }
555
563
  }
556
- class xr {
564
+ class Or {
557
565
  /**
558
566
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
559
567
  *
@@ -575,7 +583,7 @@ class xr {
575
583
  this.apiUri = (r == null ? void 0 : r.apiUri) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
576
584
  }
577
585
  }
578
- class kr {
586
+ class dr {
579
587
  /**
580
588
  * Инициализирует экземпляр класса {@link SentryConfig}.
581
589
  *
@@ -620,7 +628,7 @@ class kr {
620
628
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
621
629
  }
622
630
  }
623
- class Nr {
631
+ class qr {
624
632
  /**
625
633
  * Инициализирует экземпляр класса {@link VersionConfig}.
626
634
  *
@@ -642,7 +650,7 @@ class Nr {
642
650
  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";
643
651
  }
644
652
  }
645
- class ft {
653
+ class Ct {
646
654
  /**
647
655
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
648
656
  *
@@ -682,17 +690,17 @@ class ft {
682
690
  */
683
691
  t(this, "dateFormats");
684
692
  var e, s, i;
685
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Ir(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new kr({
693
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Or(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Nr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new dr({
686
694
  environment: this.environment,
687
695
  ...r == null ? void 0 : r.sentry
688
- }), this.urls = r == null ? void 0 : r.urls, this.version = new Nr(r == null ? void 0 : r.version), this.dateFormats = {
696
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new qr(r == null ? void 0 : r.version), this.dateFormats = {
689
697
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
690
698
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
691
699
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
692
700
  };
693
701
  }
694
702
  }
695
- class Le {
703
+ class xe {
696
704
  /**
697
705
  * Инициализирует экземпляр указанного класса.
698
706
  *
@@ -711,7 +719,7 @@ class Le {
711
719
  return new r(e);
712
720
  }
713
721
  }
714
- const a = class a {
722
+ const L = class L {
715
723
  /**
716
724
  * Инициализирует экземпляр класса {@link HttpRequester}.
717
725
  *
@@ -731,23 +739,23 @@ const a = class a {
731
739
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
732
740
  */
733
741
  t(this, "defaultInstanceNotificationErrorResponseHandler", y);
734
- const s = T.getConfig().version;
735
- this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = $r.create({
742
+ const s = b.getConfig().version;
743
+ this.defaultInstanceNotificationErrorResponseHandler = L.baseDefaultNotificationErrorResponseHandler, this.httpClient = _r.create({
736
744
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
737
745
  baseURL: r,
738
746
  headers: {
739
- "APP-VERSION": `${s.name} (${s.version}, ${B(s.date, T.getConfig().dateFormats.uiDate)})`,
747
+ "APP-VERSION": `${s.name} (${s.version}, ${B(s.date, b.getConfig().dateFormats.uiDate)})`,
740
748
  Accept: "application/json",
741
749
  "Content-Type": "application/json",
742
750
  ...e
743
751
  }
744
752
  }), this.httpClient.interceptors.request.use(
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),
753
+ (i) => (i.method && (i.method === "get" && i.params && (i.params = Oe(i.params)), ["put", "patch", "post"].includes(hr(i.method)) && i.data && (i.data = Oe(i.data))), i),
746
754
  (i) => Promise.reject(i)
747
755
  ), this.httpClient.interceptors.response.use(
748
- (i) => (i.data && (i.data = Tr(i.data)), i),
756
+ (i) => (i.data && (i.data = Sr(i.data)), i),
749
757
  // Возвращаем изменённую структуру сообщения об ошибке.
750
- (i) => a.convertHttpErrorResponse(i)
758
+ (i) => L.convertHttpErrorResponse(i)
751
759
  );
752
760
  }
753
761
  /**
@@ -756,7 +764,7 @@ const a = class a {
756
764
  * @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
757
765
  */
758
766
  static setBaseDefaultNotificationErrorResponseHandler(r) {
759
- a.baseDefaultNotificationErrorResponseHandler = r;
767
+ L.baseDefaultNotificationErrorResponseHandler = r;
760
768
  }
761
769
  /**
762
770
  * Возвращает экземпляр объекта текущего класса.
@@ -764,7 +772,7 @@ const a = class a {
764
772
  * @param type Тип данных, которыми оперирует метод.
765
773
  */
766
774
  static getInstance(r) {
767
- return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Le.simpleInstanceInitializer(r)), a.instances[r.name];
775
+ return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] = xe.simpleInstanceInitializer(r)), L.instances[r.name];
768
776
  }
769
777
  /**
770
778
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -793,9 +801,9 @@ const a = class a {
793
801
  * @param disableDefaultNotificationErrorResponseHandler Признак необходимости отключить обработчик ошибок по умолчанию используемый для текущего экземпляра класса.
794
802
  */
795
803
  request(r, e = void 0, s = {}, i = !1) {
796
- const o = this.httpClient.request(r).then((l) => e ? e(l) : l.data);
797
- return i || o.catch((l) => {
798
- this.defaultInstanceNotificationErrorResponseHandler(l, s);
804
+ const o = this.httpClient.request(r).then((c) => e ? e(c) : c.data);
805
+ return i || o.catch((c) => {
806
+ this.defaultInstanceNotificationErrorResponseHandler(c, s);
799
807
  }), o;
800
808
  }
801
809
  /**
@@ -859,16 +867,16 @@ const a = class a {
859
867
  * Экземпляр объекта текущего класса.
860
868
  */
861
869
  // eslint-disable-next-line no-use-before-define
862
- t(a, "instances", {}), /**
870
+ t(L, "instances", {}), /**
863
871
  * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
864
872
  *
865
873
  * Параметры:
866
874
  * - error Данные об ошибке.
867
875
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
868
876
  */
869
- t(a, "baseDefaultNotificationErrorResponseHandler", y);
870
- let $e = a;
871
- const V = class V extends $e {
877
+ t(L, "baseDefaultNotificationErrorResponseHandler", y);
878
+ let be = L;
879
+ const V = class V extends be {
872
880
  /**
873
881
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
874
882
  *
@@ -881,7 +889,7 @@ const V = class V extends $e {
881
889
  * Время кэширования данных ответов на запросы (секунд).
882
890
  */
883
891
  t(this, "responseDataCacheTimeout");
884
- const i = T.getConfig();
892
+ const i = b.getConfig();
885
893
  this.responseDataCacheTimeout = i.http.responseDataCacheTimeout;
886
894
  }
887
895
  /**
@@ -903,7 +911,7 @@ const V = class V extends $e {
903
911
  */
904
912
  cacheResponse(e, s) {
905
913
  V.responseDataCache.set(e, {
906
- validTo: mr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
914
+ validTo: wr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
907
915
  val: s
908
916
  });
909
917
  }
@@ -918,9 +926,9 @@ const V = class V extends $e {
918
926
  */
919
927
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
920
928
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
921
- const l = s + (Fe(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? V.getCachedResponse(l) : void 0;
929
+ const c = s + (Le(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? V.getCachedResponse(c) : void 0;
922
930
  return p ? Promise.resolve(p) : this.get(s, o).then((g) => {
923
- const R = g.map((A) => Le.instanceInitializer(e, A));
931
+ const R = g.map((D) => xe.instanceInitializer(e, D));
924
932
  return i && R && this.cacheResponse(s, R), R;
925
933
  });
926
934
  }
@@ -936,11 +944,11 @@ class u extends Te {
936
944
  */
937
945
  constructor() {
938
946
  var s, i;
939
- const r = T.getConfig(), e = {};
947
+ const r = b.getConfig(), e = {};
940
948
  (s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
941
949
  }
942
950
  }
943
- class yt extends u {
951
+ class vt extends u {
944
952
  /**
945
953
  * Возвращает содержимое корзины указанного клиента.
946
954
  *
@@ -1043,7 +1051,7 @@ class yt extends u {
1043
1051
  return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new oe(e.data));
1044
1052
  }
1045
1053
  }
1046
- var Or = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Or || {}), Ie = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ie || {}), dr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(dr || {});
1054
+ var Ur = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Ur || {}), ke = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(ke || {}), Gr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Gr || {});
1047
1055
  class q extends ie {
1048
1056
  /**
1049
1057
  * Инициализирует экземпляр класса {@link Category}.
@@ -1064,7 +1072,7 @@ class q extends ie {
1064
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));
1065
1073
  }
1066
1074
  }
1067
- class je extends $ {
1075
+ class Ee extends $ {
1068
1076
  /**
1069
1077
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1070
1078
  *
@@ -1079,7 +1087,7 @@ class je extends $ {
1079
1087
  this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1080
1088
  }
1081
1089
  }
1082
- class qr extends je {
1090
+ class Mr extends Ee {
1083
1091
  /**
1084
1092
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1085
1093
  *
@@ -1094,7 +1102,7 @@ class qr extends je {
1094
1102
  this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1095
1103
  }
1096
1104
  }
1097
- class wt {
1105
+ class Pt {
1098
1106
  /**
1099
1107
  * Возвращает актуальные и не просроченные данные из хранилища.
1100
1108
  *
@@ -1105,7 +1113,7 @@ class wt {
1105
1113
  if (e)
1106
1114
  try {
1107
1115
  const s = JSON.parse(e);
1108
- if (fr(f(s.availableFor) || He(), /* @__PURE__ */ new Date()))
1116
+ if (Cr(f(s.availableFor) || Be(), /* @__PURE__ */ new Date()))
1109
1117
  return s.data ?? {};
1110
1118
  } catch {
1111
1119
  localStorage.removeItem(r);
@@ -1143,7 +1151,7 @@ class U extends $ {
1143
1151
  this.type = e == null ? void 0 : e.type;
1144
1152
  }
1145
1153
  }
1146
- class Ur extends $ {
1154
+ class Fr extends $ {
1147
1155
  /**
1148
1156
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1149
1157
  *
@@ -1182,7 +1190,7 @@ class Ur extends $ {
1182
1190
  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;
1183
1191
  }
1184
1192
  }
1185
- class W extends je {
1193
+ class W extends Ee {
1186
1194
  /**
1187
1195
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1188
1196
  *
@@ -1201,7 +1209,7 @@ class W extends je {
1201
1209
  this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1202
1210
  }
1203
1211
  }
1204
- class J extends _ {
1212
+ class Q extends _ {
1205
1213
  /**
1206
1214
  * Инициализирует экземпляр класса {@link ClientProduct}.
1207
1215
  *
@@ -1237,10 +1245,10 @@ class J extends _ {
1237
1245
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1238
1246
  */
1239
1247
  t(this, "isFavorite");
1240
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ie.Product, this.discount = e != null && e.discount ? new Ur(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(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;
1248
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? ke.Product, this.discount = e != null && e.discount ? new Fr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(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;
1241
1249
  }
1242
1250
  }
1243
- class Gr {
1251
+ class Hr {
1244
1252
  /**
1245
1253
  * Инициализирует экземпляр класса {@link ContactLinks}.
1246
1254
  *
@@ -1284,7 +1292,7 @@ class re extends $ {
1284
1292
  * Признак того, что менеджер является основным для клиента.
1285
1293
  */
1286
1294
  t(this, "isDefault");
1287
- e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Gr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1295
+ e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Hr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1288
1296
  }
1289
1297
  }
1290
1298
  class we extends re {
@@ -1318,7 +1326,7 @@ class we extends re {
1318
1326
  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;
1319
1327
  }
1320
1328
  }
1321
- class Mr extends ie {
1329
+ class zr extends ie {
1322
1330
  /**
1323
1331
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1324
1332
  *
@@ -1349,7 +1357,7 @@ class Mr extends ie {
1349
1357
  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 we(e.manager) : void 0;
1350
1358
  }
1351
1359
  }
1352
- class le extends Mr {
1360
+ class le extends zr {
1353
1361
  /**
1354
1362
  * Инициализирует экземпляр класса {@link ClientCategory}.
1355
1363
  *
@@ -1366,10 +1374,10 @@ class le extends Mr {
1366
1374
  * Список продуктов категории.
1367
1375
  */
1368
1376
  t(this, "products");
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));
1377
+ 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 Q(o));
1370
1378
  }
1371
1379
  }
1372
- class Ve {
1380
+ class Ke {
1373
1381
  /**
1374
1382
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1375
1383
  *
@@ -1379,15 +1387,15 @@ class Ve {
1379
1387
  /**
1380
1388
  * Коэффициент цены.
1381
1389
  */
1382
- t(this, "coefficient");
1390
+ t(this, "priceCoefficient");
1383
1391
  /**
1384
1392
  * Процент, который прибавляется к значению выбранного коэффициента.
1385
1393
  */
1386
1394
  t(this, "increasePercent");
1387
- this.coefficient = (r == null ? void 0 : r.coefficient) && new fe(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1395
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new fe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1388
1396
  }
1389
1397
  }
1390
- class ve extends Ve {
1398
+ class ve extends Ke {
1391
1399
  /**
1392
1400
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1393
1401
  *
@@ -1402,7 +1410,7 @@ class ve extends Ve {
1402
1410
  this.productCategory = new ie(e == null ? void 0 : e.productCategory);
1403
1411
  }
1404
1412
  }
1405
- class Q extends w {
1413
+ class Y extends w {
1406
1414
  }
1407
1415
  class te extends w {
1408
1416
  /**
@@ -1415,8 +1423,8 @@ class te extends w {
1415
1423
  /**
1416
1424
  * Данные о стране, в которой расположен регион.
1417
1425
  */
1418
- t(this, "country", new Q());
1419
- e && (this.country = new Q(e.country));
1426
+ t(this, "country", new Y());
1427
+ e && (this.country = new Y(e.country));
1420
1428
  }
1421
1429
  }
1422
1430
  class pe extends w {
@@ -1434,7 +1442,7 @@ class pe extends w {
1434
1442
  e && (this.region = new te(e.region));
1435
1443
  }
1436
1444
  }
1437
- class Ee extends $ {
1445
+ class Je extends $ {
1438
1446
  /**
1439
1447
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1440
1448
  *
@@ -1473,7 +1481,7 @@ class Ee extends $ {
1473
1481
  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;
1474
1482
  }
1475
1483
  }
1476
- class ne extends Ee {
1484
+ class ne extends Je {
1477
1485
  /**
1478
1486
  * Инициализирует экземпляр класса {@link Client}.
1479
1487
  *
@@ -1518,7 +1526,7 @@ class ne extends Ee {
1518
1526
  this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new pe(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new re(i))) ?? [];
1519
1527
  }
1520
1528
  }
1521
- class Y extends H {
1529
+ class X extends H {
1522
1530
  /**
1523
1531
  * Инициализирует новый экземпляр класса.
1524
1532
  *
@@ -1545,7 +1553,7 @@ class Y extends H {
1545
1553
  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);
1546
1554
  }
1547
1555
  }
1548
- class Pe extends Ve {
1556
+ class Pe extends Ke {
1549
1557
  /**
1550
1558
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1551
1559
  *
@@ -1560,9 +1568,9 @@ class Pe extends Ve {
1560
1568
  this.product = new _(e == null ? void 0 : e.product);
1561
1569
  }
1562
1570
  }
1563
- class Ke extends w {
1571
+ class Qe extends w {
1564
1572
  }
1565
- class X extends $ {
1573
+ class Z extends $ {
1566
1574
  /**
1567
1575
  * Инициализирует экземпляр класса {@link Property}.
1568
1576
  *
@@ -1582,7 +1590,7 @@ class X extends $ {
1582
1590
  * Дополнительные метаданные свойства.
1583
1591
  */
1584
1592
  t(this, "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;
1593
+ this.type = new Qe(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1586
1594
  }
1587
1595
  }
1588
1596
  class z {
@@ -1601,7 +1609,7 @@ class z {
1601
1609
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
1602
1610
  */
1603
1611
  t(this, "value");
1604
- this.property = new X(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1612
+ this.property = new Z(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1605
1613
  }
1606
1614
  }
1607
1615
  class O {
@@ -1622,7 +1630,7 @@ class O {
1622
1630
  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;
1623
1631
  }
1624
1632
  }
1625
- class Ct {
1633
+ class Rt {
1626
1634
  /**
1627
1635
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
1628
1636
  *
@@ -1679,20 +1687,20 @@ class Ct {
1679
1687
  asClearRaw() {
1680
1688
  var e, s, i, o;
1681
1689
  const r = {};
1682
- return Object.keys(this).forEach((l) => {
1683
- const p = this[l];
1690
+ return Object.keys(this).forEach((c) => {
1691
+ const p = this[c];
1684
1692
  // eslint-disable-next-line prettier/prettier
1685
- ee(p) || m(p) && p.trim().length === 0 || Se(p.isNewRec) && p.isNewRec() || (r[l] = p);
1693
+ K(p) || m(p) && p.trim().length === 0 || ae(p.isNewRec) && p.isNewRec() || (r[c] = p);
1686
1694
  }), !((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.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
1687
1695
  }
1688
1696
  }
1689
- class Fr extends w {
1697
+ class Br extends w {
1690
1698
  }
1691
- class Je extends w {
1699
+ class Ye extends w {
1692
1700
  }
1693
- class vt extends w {
1701
+ class At extends w {
1694
1702
  }
1695
- class Hr extends w {
1703
+ class Wr extends w {
1696
1704
  }
1697
1705
  class ue extends $ {
1698
1706
  /**
@@ -1713,7 +1721,7 @@ class ue extends $ {
1713
1721
  e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
1714
1722
  }
1715
1723
  }
1716
- var b = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(b || {});
1724
+ var T = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(T || {});
1717
1725
  class G extends w {
1718
1726
  /**
1719
1727
  * Возвращает сгенерированную запись-описание физического лица.
@@ -1722,26 +1730,26 @@ class G extends w {
1722
1730
  return new G({
1723
1731
  id: 1,
1724
1732
  guid: "",
1725
- slug: b.Person,
1733
+ slug: T.Person,
1726
1734
  name: ""
1727
1735
  });
1728
1736
  }
1729
1737
  }
1730
- class zr extends w {
1738
+ class jr extends w {
1731
1739
  }
1732
- class Br extends w {
1740
+ class Vr extends w {
1733
1741
  }
1734
1742
  class M extends w {
1735
1743
  }
1736
- class Wr extends w {
1744
+ class Er extends w {
1737
1745
  }
1738
- class jr extends w {
1746
+ class Kr extends w {
1739
1747
  }
1740
- class Qe extends w {
1748
+ class Xe extends w {
1741
1749
  }
1742
- class Ye extends w {
1750
+ class Ze extends w {
1743
1751
  }
1744
- class D extends u {
1752
+ class A extends u {
1745
1753
  /**
1746
1754
  * Возвращает {@link Promise} для получения данных указанного справочника.
1747
1755
  *
@@ -1750,20 +1758,20 @@ class D extends u {
1750
1758
  * и использовать в случае аналогичных запросов.
1751
1759
  */
1752
1760
  getReference(r, e = !1) {
1753
- return this.getTypedDataArrayRequester(Fr, `/internal/references/${r}`, e);
1761
+ return this.getTypedDataArrayRequester(Br, `/internal/references/${r}`, e);
1754
1762
  }
1755
1763
  /**
1756
1764
  * Возвращает {@link Promise} для получения справочника данных о канале
1757
1765
  * первичного интереса.
1758
1766
  */
1759
1767
  getChannelPrimaryInterest() {
1760
- return this.getTypedDataArrayRequester(Je, "/internal/references/channel-primary-interest", !0);
1768
+ return this.getTypedDataArrayRequester(Ye, "/internal/references/channel-primary-interest", !0);
1761
1769
  }
1762
1770
  /**
1763
1771
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1764
1772
  */
1765
1773
  getContactPositions() {
1766
- return this.getTypedDataArrayRequester(Hr, "/internal/references/contact-position", !0);
1774
+ return this.getTypedDataArrayRequester(Wr, "/internal/references/contact-position", !0);
1767
1775
  }
1768
1776
  /**
1769
1777
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -1788,25 +1796,25 @@ class D extends u {
1788
1796
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1789
1797
  */
1790
1798
  getOrderPaymentStatuses() {
1791
- return this.getTypedDataArrayRequester(zr, "/public/references/order-payment-status", !0);
1799
+ return this.getTypedDataArrayRequester(jr, "/public/references/order-payment-status", !0);
1792
1800
  }
1793
1801
  /**
1794
1802
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1795
1803
  */
1796
1804
  getOrderStatuses() {
1797
- return this.getTypedDataArrayRequester(Br, "/public/references/order-status", !0);
1805
+ return this.getTypedDataArrayRequester(Vr, "/public/references/order-status", !0);
1798
1806
  }
1799
1807
  /**
1800
1808
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1801
1809
  */
1802
1810
  getPaymentTypes() {
1803
- return this.getTypedDataArrayRequester(Wr, "/public/references/payment-type", !0);
1811
+ return this.getTypedDataArrayRequester(Er, "/public/references/payment-type", !0);
1804
1812
  }
1805
1813
  /**
1806
1814
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1807
1815
  */
1808
1816
  getResourceTypes() {
1809
- return this.getTypedDataArrayRequester(Qe, "/internal/references/resource-type", !0);
1817
+ return this.getTypedDataArrayRequester(Xe, "/internal/references/resource-type", !0);
1810
1818
  }
1811
1819
  /**
1812
1820
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -1818,7 +1826,7 @@ class D extends u {
1818
1826
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1819
1827
  */
1820
1828
  getSourcePrimaryInterest() {
1821
- return this.getTypedDataArrayRequester(Ye, "/internal/references/source-primary-interest", !0);
1829
+ return this.getTypedDataArrayRequester(Ze, "/internal/references/source-primary-interest", !0);
1822
1830
  }
1823
1831
  /**
1824
1832
  * Выполняет поиск данных о городах по терму в названии.
@@ -1842,13 +1850,13 @@ class D extends u {
1842
1850
  * @param term Терм поиска.
1843
1851
  */
1844
1852
  searchCountry(r) {
1845
- return this.getTypedDataArrayRequester(Q, `/internal/references/country/search?term=${r}`);
1853
+ return this.getTypedDataArrayRequester(Y, `/internal/references/country/search?term=${r}`);
1846
1854
  }
1847
1855
  /**
1848
1856
  * Возвращает {@link Promise} для получения справочника типов доставки.
1849
1857
  */
1850
1858
  getDeliveryTypes() {
1851
- return this.getTypedDataArrayRequester(K, "/internal/references/delivery-type", !0);
1859
+ return this.getTypedDataArrayRequester(J, "/internal/references/delivery-type", !0);
1852
1860
  }
1853
1861
  /**
1854
1862
  * Возвращает {@link Promise} для получения справочника складов.
@@ -1860,7 +1868,7 @@ class D extends u {
1860
1868
  * Возвращает {@link Promise} для получения справочника типов свойств.
1861
1869
  */
1862
1870
  getPropertyTypes() {
1863
- return this.getTypedDataArrayRequester(Ke, "/internal/references/property-type", !0);
1871
+ return this.getTypedDataArrayRequester(Qe, "/internal/references/property-type", !0);
1864
1872
  }
1865
1873
  /**
1866
1874
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -1872,11 +1880,11 @@ class D extends u {
1872
1880
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
1873
1881
  */
1874
1882
  getProductFileType() {
1875
- return this.getTypedDataArrayRequester(jr, "/public/references/product-file-type", !0);
1883
+ return this.getTypedDataArrayRequester(Kr, "/public/references/product-file-type", !0);
1876
1884
  }
1877
1885
  }
1878
- var Vr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Vr || {});
1879
- class Er extends Ee {
1886
+ var Jr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Jr || {});
1887
+ class Qr extends Je {
1880
1888
  /**
1881
1889
  * Инициализирует экземпляр класса {@link User}.
1882
1890
  *
@@ -1899,16 +1907,16 @@ class Er extends Ee {
1899
1907
  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;
1900
1908
  }
1901
1909
  }
1902
- class Kr extends u {
1910
+ class Yr extends u {
1903
1911
  /**
1904
1912
  * Возвращает данные о текущем пользователе.
1905
1913
  */
1906
1914
  // eslint-disable-next-line class-methods-use-this
1907
1915
  getCurrentUser() {
1908
- return this.get("/internal/users/info", {}, (r) => new Er(r.data));
1916
+ return this.get("/internal/users/info", {}, (r) => new Qr(r.data));
1909
1917
  }
1910
1918
  }
1911
- class Jr {
1919
+ class Xr {
1912
1920
  /**
1913
1921
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1914
1922
  *
@@ -1954,7 +1962,7 @@ class Jr {
1954
1962
  this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new ue(r.currency) : void 0;
1955
1963
  }
1956
1964
  }
1957
- class Ne {
1965
+ class de {
1958
1966
  /**
1959
1967
  * Инициализирует экземпляр класса {@link RecommendationsList}.
1960
1968
  *
@@ -1972,7 +1980,7 @@ class Ne {
1972
1980
  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)));
1973
1981
  }
1974
1982
  }
1975
- class Z extends $ {
1983
+ class ee extends $ {
1976
1984
  /**
1977
1985
  * Инициализирует экземпляр класса {@link PricingRole}.
1978
1986
  *
@@ -2007,7 +2015,7 @@ class Z extends $ {
2007
2015
  this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
2008
2016
  }
2009
2017
  }
2010
- class Oe {
2018
+ class qe {
2011
2019
  /**
2012
2020
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2013
2021
  *
@@ -2026,40 +2034,10 @@ class Oe {
2026
2034
  * Минимальный коэффициент цены.
2027
2035
  */
2028
2036
  t(this, "minCoefficient");
2029
- this.role = new Z(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new fe(r == null ? void 0 : r.minCoefficient);
2030
- }
2031
- }
2032
- class Re {
2033
- /**
2034
- * Инициализирует экземпляр класса {@link PriceAnalyze}.
2035
- *
2036
- * @param data Данные для первоначальной инициализации.
2037
- */
2038
- constructor(r) {
2039
- /**
2040
- * Краткие данные о клиенте.
2041
- */
2042
- t(this, "client");
2043
- /**
2044
- * Базовые данные о продукте.
2045
- */
2046
- t(this, "product");
2047
- /**
2048
- * Стоимость товара или услуги.
2049
- */
2050
- t(this, "cost");
2051
- /**
2052
- * Коэффициент стоимости продукта от розничной цены.
2053
- */
2054
- t(this, "costCoefficient");
2055
- /**
2056
- * Источник клиентской цены.
2057
- */
2058
- t(this, "source");
2059
- this.client = new ne(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) ?? Ie.Product;
2037
+ this.role = new ee(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new fe(r == null ? void 0 : r.minCoefficient);
2060
2038
  }
2061
2039
  }
2062
- class Pt extends u {
2040
+ class Dt extends u {
2063
2041
  /**
2064
2042
  * Возвращает данные о результатах поиска категорий и товаров.
2065
2043
  *
@@ -2086,11 +2064,11 @@ class Pt extends u {
2086
2064
  */
2087
2065
  // eslint-disable-next-line class-methods-use-this
2088
2066
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2089
- let l = `${T.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2090
- return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
2067
+ let c = `${b.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2068
+ return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2091
2069
  }
2092
2070
  }
2093
- class Rt extends u {
2071
+ class $t extends u {
2094
2072
  /**
2095
2073
  * Импортирует цены клиента из CSV файла.
2096
2074
  *
@@ -2214,7 +2192,7 @@ class Rt extends u {
2214
2192
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2215
2193
  increase_percent: s.value
2216
2194
  },
2217
- (o) => new J(o.data)
2195
+ (o) => new Q(o.data)
2218
2196
  );
2219
2197
  }
2220
2198
  /**
@@ -2226,7 +2204,7 @@ class Rt extends u {
2226
2204
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2227
2205
  */
2228
2206
  removeProductPrice(r, e) {
2229
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new J(s.data));
2207
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new Q(s.data));
2230
2208
  }
2231
2209
  /**
2232
2210
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2289,7 +2267,7 @@ class Rt extends u {
2289
2267
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2290
2268
  }
2291
2269
  }
2292
- class Dt extends u {
2270
+ class bt extends u {
2293
2271
  /**
2294
2272
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2295
2273
  *
@@ -2301,7 +2279,7 @@ class Dt extends u {
2301
2279
  return this.get(
2302
2280
  `/internal/clients/${r}/price/templates`,
2303
2281
  {},
2304
- (e) => e.data.map((s) => new Y(s))
2282
+ (e) => e.data.map((s) => new X(s))
2305
2283
  );
2306
2284
  }
2307
2285
  /**
@@ -2312,7 +2290,7 @@ class Dt extends u {
2312
2290
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2313
2291
  */
2314
2292
  getActiveTemplate(r) {
2315
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new Y(e.data));
2293
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new X(e.data));
2316
2294
  }
2317
2295
  /**
2318
2296
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2324,14 +2302,14 @@ class Dt extends u {
2324
2302
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2325
2303
  */
2326
2304
  attachTemplate(r, e, s) {
2327
- const i = T.getConfig().dateFormats.api;
2305
+ const i = b.getConfig().dateFormats.api;
2328
2306
  return this.post(
2329
2307
  `/internal/clients/${r}/price/templates/${e}`,
2330
2308
  s && {
2331
2309
  startAt: s.startAt && B(s.startAt, i),
2332
2310
  endAt: s.endAt && B(s.endAt, i)
2333
2311
  },
2334
- (o) => new Y(o.data)
2312
+ (o) => new X(o.data)
2335
2313
  );
2336
2314
  }
2337
2315
  /**
@@ -2356,14 +2334,14 @@ class Dt extends u {
2356
2334
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2357
2335
  */
2358
2336
  changeTemplate(r, e, s, i) {
2359
- const o = T.getConfig().dateFormats.api;
2337
+ const o = b.getConfig().dateFormats.api;
2360
2338
  return this.patch(
2361
2339
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2362
2340
  i && {
2363
2341
  startAt: i.startAt && B(i.startAt, o),
2364
2342
  endAt: i.endAt && B(i.endAt, o)
2365
2343
  },
2366
- (l) => new Y(l.data)
2344
+ (c) => new X(c.data)
2367
2345
  );
2368
2346
  }
2369
2347
  /**
@@ -2379,7 +2357,7 @@ class Dt extends u {
2379
2357
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2380
2358
  }
2381
2359
  }
2382
- class At extends u {
2360
+ class Tt extends u {
2383
2361
  /**
2384
2362
  * Возвращает список данных о корневых категориях.
2385
2363
  *
@@ -2452,7 +2430,7 @@ class At extends u {
2452
2430
  getCategoryProductsCoefficients(r) {
2453
2431
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2454
2432
  const { data: s } = e;
2455
- return ur(s, (i) => i.map((o) => new ae(o))), s;
2433
+ return gr(s, (i) => i.map((o) => new Ie(o))), s;
2456
2434
  });
2457
2435
  }
2458
2436
  /**
@@ -2464,14 +2442,14 @@ class At extends u {
2464
2442
  publicSimpleSearch(r, e = 10) {
2465
2443
  return new Promise((s, i) => {
2466
2444
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2467
- s(o.categories.map((l) => new q(l)));
2445
+ s(o.categories.map((c) => new q(c)));
2468
2446
  }).catch((o) => {
2469
2447
  i(o);
2470
2448
  });
2471
2449
  });
2472
2450
  }
2473
2451
  }
2474
- class $t extends u {
2452
+ class _t extends u {
2475
2453
  /**
2476
2454
  * Возвращает данные об указанном продукте.
2477
2455
  *
@@ -2502,7 +2480,7 @@ class $t extends u {
2502
2480
  return this.get(
2503
2481
  `/internal/catalog/products/${r}/coefficients`,
2504
2482
  {},
2505
- (e) => ce(e.data, (s) => new ae(s))
2483
+ (e) => ce(e.data, (s) => new Ie(s))
2506
2484
  );
2507
2485
  }
2508
2486
  /**
@@ -2515,7 +2493,7 @@ class $t extends u {
2515
2493
  */
2516
2494
  getProductPriceHistory(r, e) {
2517
2495
  const s = {};
2518
- return ee(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ce(i.data, (o) => new Jr(o)));
2496
+ return K(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ce(i.data, (o) => new Xr(o)));
2519
2497
  }
2520
2498
  /**
2521
2499
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2526,14 +2504,14 @@ class $t extends u {
2526
2504
  publicSimpleSearch(r, e = 10) {
2527
2505
  return new Promise((s, i) => {
2528
2506
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2529
- s(o.products.map((l) => new _(l)));
2507
+ s(o.products.map((c) => new _(c)));
2530
2508
  }).catch((o) => {
2531
2509
  i(o);
2532
2510
  });
2533
2511
  });
2534
2512
  }
2535
2513
  }
2536
- class Tt extends u {
2514
+ class St extends u {
2537
2515
  /**
2538
2516
  * Возвращает список данных о корневых категориях указанного клиента.
2539
2517
  *
@@ -2591,11 +2569,11 @@ class Tt extends u {
2591
2569
  showHidden: i,
2592
2570
  withPriceCoefficients: s
2593
2571
  },
2594
- (o) => ce(o.data, (l) => new J(l))
2572
+ (o) => ce(o.data, (c) => new Q(c))
2595
2573
  );
2596
2574
  }
2597
2575
  }
2598
- class bt extends u {
2576
+ class Lt extends u {
2599
2577
  /**
2600
2578
  * Возвращает данные об указанном продукте для указанного клиента.
2601
2579
  *
@@ -2612,12 +2590,12 @@ class bt extends u {
2612
2590
  clientId: e,
2613
2591
  withPriceCoefficients: s
2614
2592
  },
2615
- (i) => new J(i.data)
2593
+ (i) => new Q(i.data)
2616
2594
  );
2617
2595
  }
2618
2596
  }
2619
- var xe = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(xe || {});
2620
- class de {
2597
+ var Ne = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Ne || {});
2598
+ class Ue {
2621
2599
  /**
2622
2600
  * Инициализирует экземпляр класса {@link FilterItem}.
2623
2601
  *
@@ -2636,7 +2614,7 @@ class de {
2636
2614
  * Значение с которым сравнивается поле.
2637
2615
  */
2638
2616
  t(this, "value");
2639
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? xe.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2617
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Ne.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2640
2618
  }
2641
2619
  /**
2642
2620
  * Преобразует фильтр в примитивное представление для API.
@@ -2648,7 +2626,7 @@ class de {
2648
2626
  field: this.field,
2649
2627
  op: this.op
2650
2628
  };
2651
- return r.value = hr(this.value) ? B(this.value, T.getConfig().dateFormats.api) : this.value, r;
2629
+ return r.value = mr(this.value) ? B(this.value, b.getConfig().dateFormats.api) : this.value, r;
2652
2630
  }
2653
2631
  }
2654
2632
  class se {
@@ -2671,7 +2649,7 @@ class se {
2671
2649
  */
2672
2650
  t(this, "groups");
2673
2651
  var e, s;
2674
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new de(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new se(i))) ?? [];
2652
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ue(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new se(i))) ?? [];
2675
2653
  }
2676
2654
  /**
2677
2655
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2681,7 +2659,7 @@ class se {
2681
2659
  toPrimitive() {
2682
2660
  return {
2683
2661
  groupOp: this.groupOp,
2684
- filters: this.filters.map((r) => r instanceof de && Se(r.toPrimitive) ? r.toPrimitive() : r),
2662
+ filters: this.filters.map((r) => r instanceof Ue && ae(r.toPrimitive) ? r.toPrimitive() : r),
2685
2663
  groups: this.groups.map((r) => r instanceof se ? r.toPrimitive() : r)
2686
2664
  };
2687
2665
  }
@@ -2698,15 +2676,15 @@ class Ce extends u {
2698
2676
  * @param successHandler Обработчик успешного выполнения запроса.
2699
2677
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2700
2678
  */
2701
- getPaginated(r, e, s, i, o, l, p) {
2679
+ getPaginated(r, e, s, i, o, c, p) {
2702
2680
  let g = {
2703
2681
  page: (i == null ? void 0 : i.page) ?? 1,
2704
2682
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2705
2683
  };
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);
2684
+ return e && (g.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), Le(s) || (g.sort = ze(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, c, p);
2707
2685
  }
2708
2686
  }
2709
- class _t extends Ce {
2687
+ class at extends Ce {
2710
2688
  /**
2711
2689
  * Возвращает список шаблонов прайс-листа.
2712
2690
  *
@@ -2719,7 +2697,7 @@ class _t extends Ce {
2719
2697
  getTemplateList(r, e, s) {
2720
2698
  return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
2721
2699
  const o = { ...i.data };
2722
- return o.data = o.data.map((l) => new W(l)), o;
2700
+ return o.data = o.data.map((c) => new W(c)), o;
2723
2701
  });
2724
2702
  }
2725
2703
  /**
@@ -2894,18 +2872,18 @@ class _t extends Ce {
2894
2872
  return this.get(
2895
2873
  `/internal/price/templates/${r}/clients`,
2896
2874
  {},
2897
- (e) => e.data.map((s) => new Y(s))
2875
+ (e) => e.data.map((s) => new X(s))
2898
2876
  );
2899
2877
  }
2900
2878
  }
2901
- class St extends u {
2879
+ class It extends u {
2902
2880
  /**
2903
2881
  * Возвращает список ролей ценообразования.
2904
2882
  *
2905
2883
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
2906
2884
  */
2907
2885
  getRoles() {
2908
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new Z(e)));
2886
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ee(e)));
2909
2887
  }
2910
2888
  /**
2911
2889
  * Добавляет новую роль ценообразования.
@@ -2915,7 +2893,7 @@ class St extends u {
2915
2893
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
2916
2894
  */
2917
2895
  createRole(r) {
2918
- return this.post("/internal/price/roles", r, (e) => new Z(e.data));
2896
+ return this.post("/internal/price/roles", r, (e) => new ee(e.data));
2919
2897
  }
2920
2898
  /**
2921
2899
  * Возвращает данные роли ценообразования.
@@ -2925,7 +2903,7 @@ class St extends u {
2925
2903
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
2926
2904
  */
2927
2905
  getRole(r) {
2928
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new Z(e.data));
2906
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new ee(e.data));
2929
2907
  }
2930
2908
  /**
2931
2909
  * Обновляет данные роли ценообразования.
@@ -2936,7 +2914,7 @@ class St extends u {
2936
2914
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
2937
2915
  */
2938
2916
  updateRole(r, e) {
2939
- return this.patch(`/internal/price/roles/${r}`, e, (s) => new Z(s.data));
2917
+ return this.patch(`/internal/price/roles/${r}`, e, (s) => new ee(s.data));
2940
2918
  }
2941
2919
  /**
2942
2920
  * Удаляет роль ценообразования.
@@ -2959,7 +2937,7 @@ class St extends u {
2959
2937
  return this.get(
2960
2938
  `/internal/price/roles/rules/categories/${r}`,
2961
2939
  {},
2962
- (e) => e.data.map((s) => new Oe(s))
2940
+ (e) => e.data.map((s) => new qe(s))
2963
2941
  );
2964
2942
  }
2965
2943
  /**
@@ -2974,11 +2952,11 @@ class St extends u {
2974
2952
  return this.patch(
2975
2953
  `/internal/price/roles/rules/categories/${r}`,
2976
2954
  e,
2977
- (s) => s.data.map((i) => new Oe(i))
2955
+ (s) => s.data.map((i) => new qe(i))
2978
2956
  );
2979
2957
  }
2980
2958
  }
2981
- class at extends Ce {
2959
+ class xt extends Ce {
2982
2960
  /**
2983
2961
  * Возвращает пагинированный список свойств.
2984
2962
  *
@@ -2991,7 +2969,7 @@ class at extends Ce {
2991
2969
  getProperties(r, e, s) {
2992
2970
  return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
2993
2971
  const o = { ...i.data };
2994
- return o.data = o.data.map((l) => new X(l)), o;
2972
+ return o.data = o.data.map((c) => new Z(c)), o;
2995
2973
  });
2996
2974
  }
2997
2975
  /**
@@ -3008,7 +2986,7 @@ class at extends Ce {
3008
2986
  ...s,
3009
2987
  type: e
3010
2988
  },
3011
- (i) => new X(i.data)
2989
+ (i) => new Z(i.data)
3012
2990
  );
3013
2991
  }
3014
2992
  /**
@@ -3018,7 +2996,7 @@ class at extends Ce {
3018
2996
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3019
2997
  */
3020
2998
  getProperty(r) {
3021
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new X(e.data));
2999
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new Z(e.data));
3022
3000
  }
3023
3001
  /**
3024
3002
  * Обновляет существующее свойство.
@@ -3035,7 +3013,7 @@ class at extends Ce {
3035
3013
  ...i,
3036
3014
  type: s
3037
3015
  },
3038
- (o) => new X(o.data)
3016
+ (o) => new Z(o.data)
3039
3017
  );
3040
3018
  }
3041
3019
  /**
@@ -3350,14 +3328,14 @@ class at extends Ce {
3350
3328
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3351
3329
  }
3352
3330
  }
3353
- class Lt extends u {
3331
+ class kt extends u {
3354
3332
  /**
3355
3333
  * Возвращает данные о рекомендациях указанной категории продуктов.
3356
3334
  *
3357
3335
  * @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
3358
3336
  */
3359
3337
  getProductCategoryRecommendations(r) {
3360
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Ne(e.data));
3338
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new de(e.data));
3361
3339
  }
3362
3340
  /**
3363
3341
  * Возвращает данные о рекомендациях указанного продукта.
@@ -3365,7 +3343,7 @@ class Lt extends u {
3365
3343
  * @param product Данные о продукте, для которого необходимо получить рекомендации.
3366
3344
  */
3367
3345
  getProductRecommendations(r) {
3368
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Ne(e.data));
3346
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new de(e.data));
3369
3347
  }
3370
3348
  /**
3371
3349
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -3392,61 +3370,8 @@ class Lt extends u {
3392
3370
  });
3393
3371
  }
3394
3372
  }
3395
- const qe = (n) => {
3396
- const r = {};
3397
- 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;
3398
- };
3399
- class It extends u {
3400
- /**
3401
- * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
3402
- *
3403
- * @param productId Идентификатор продукта.
3404
- * @param params Параметры анализа цен.
3405
- *
3406
- * @see /doc/api/internal#/operations/api_internal_catalog_price_products_analyze
3407
- */
3408
- analyzeProductPrices(r, e) {
3409
- return this.get(
3410
- `/internal/price/products/${r}/analyze`,
3411
- { ...qe(e) },
3412
- (s) => s.data.map((i) => new Re(i))
3413
- );
3414
- }
3415
- /**
3416
- * Возвращает список клиентских цен на продукты категории в указанном диапазоне цены.
3417
- *
3418
- * @param productCategoryId Идентификатор категории продукта.
3419
- * @param params Параметры анализа цен.
3420
- *
3421
- * @see /doc/api/internal#/operations/api_internal_catalog_price_categories_analyze
3422
- */
3423
- analyzeCategoryPrices(r, e) {
3424
- return this.get(
3425
- `/internal/price/categories/${r}/analyze`,
3426
- { ...qe(e) },
3427
- (s) => s.data.map((i) => new Re(i))
3428
- );
3429
- }
3430
- /**
3431
- * Возвращает список клиентских цен на продукты категории в указанном диапазоне цены за квадратный метр.
3432
- *
3433
- * @param productCategoryId Идентификатор категории продукта.
3434
- * @param params Параметры анализа цен.
3435
- * @param params.from Цена больше или равна значению.
3436
- * @param params.to Цена меньше или равна значению.
3437
- *
3438
- * @see /doc/api/internal#/operations/api_internal_catalog_price_categories_analyze_by_square
3439
- */
3440
- analyzeCategoryPricesBySquare(r, e) {
3441
- return this.get(
3442
- `/internal/price/categories/${r}/analyze/square`,
3443
- { ...e },
3444
- (s) => s.data.map((i) => new Re(i))
3445
- );
3446
- }
3447
- }
3448
- var Qr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(Qr || {});
3449
- class be extends H {
3373
+ var Zr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(Zr || {});
3374
+ class _e extends H {
3450
3375
  /**
3451
3376
  * Инициализирует экземпляр класса {@link BankAccount}.
3452
3377
  *
@@ -3477,7 +3402,7 @@ class be extends H {
3477
3402
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ue(e.currency));
3478
3403
  }
3479
3404
  }
3480
- class _e extends $ {
3405
+ class Se extends $ {
3481
3406
  /**
3482
3407
  * Инициализирует экземпляр класса {@link Contact}.
3483
3408
  *
@@ -3496,7 +3421,7 @@ class _e extends $ {
3496
3421
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
3497
3422
  }
3498
3423
  }
3499
- class F extends _e {
3424
+ class F extends Se {
3500
3425
  /**
3501
3426
  * Инициализирует экземпляр класса {@link ContactPerson}.
3502
3427
  *
@@ -3531,7 +3456,7 @@ class F extends _e {
3531
3456
  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;
3532
3457
  }
3533
3458
  }
3534
- class Xe extends $ {
3459
+ class er extends $ {
3535
3460
  /**
3536
3461
  * Инициализирует экземпляр класса {@link ContragentBase}.
3537
3462
  *
@@ -3598,13 +3523,13 @@ class Xe extends $ {
3598
3523
  if (e.bankAccounts) {
3599
3524
  const s = [];
3600
3525
  e.bankAccounts.forEach((i) => {
3601
- s.push(new be(i));
3526
+ s.push(new _e(i));
3602
3527
  }), this.bankAccounts = s;
3603
3528
  }
3604
3529
  }
3605
3530
  }
3606
3531
  }
3607
- class Yr extends Xe {
3532
+ class et extends er {
3608
3533
  /**
3609
3534
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3610
3535
  *
@@ -3614,7 +3539,7 @@ class Yr extends Xe {
3614
3539
  super(r);
3615
3540
  }
3616
3541
  }
3617
- class Ze extends Xe {
3542
+ class rr extends er {
3618
3543
  /**
3619
3544
  * Инициализирует экземпляр класса {@link ContragentIc}.
3620
3545
  *
@@ -3657,7 +3582,7 @@ class Ze extends Xe {
3657
3582
  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 ?? "");
3658
3583
  }
3659
3584
  }
3660
- class er extends Ze {
3585
+ class tr extends rr {
3661
3586
  /**
3662
3587
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3663
3588
  *
@@ -3672,7 +3597,7 @@ class er extends Ze {
3672
3597
  e && (this.kpp = e.kpp ?? "");
3673
3598
  }
3674
3599
  }
3675
- class Xr extends er {
3600
+ class rt extends tr {
3676
3601
  /**
3677
3602
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3678
3603
  *
@@ -3683,7 +3608,7 @@ class Xr extends er {
3683
3608
  /**
3684
3609
  * Страна регистрации юридического лица нерезидента.
3685
3610
  */
3686
- t(this, "registrationCountry", new Q());
3611
+ t(this, "registrationCountry", new Y());
3687
3612
  /**
3688
3613
  * Регистрационный номер юридического лица нерезидента.
3689
3614
  */
@@ -3692,7 +3617,7 @@ class Xr extends er {
3692
3617
  * Налоговый номер юридического лица нерезидента.
3693
3618
  */
3694
3619
  t(this, "taxNumber", "");
3695
- e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3620
+ e && (this.registrationCountry = new Y(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3696
3621
  }
3697
3622
  }
3698
3623
  class he {
@@ -3703,18 +3628,18 @@ class he {
3703
3628
  */
3704
3629
  static createInstance(r) {
3705
3630
  switch (r.opf.slug) {
3706
- case b.Ic:
3707
- return new Ze(r);
3708
- case b.UlR:
3709
- return new er(r);
3710
- case b.UlNr:
3711
- return new Xr(r);
3631
+ case T.Ic:
3632
+ return new rr(r);
3633
+ case T.UlR:
3634
+ return new tr(r);
3635
+ case T.UlNr:
3636
+ return new rt(r);
3712
3637
  default:
3713
- return new Yr(r);
3638
+ return new et(r);
3714
3639
  }
3715
3640
  }
3716
3641
  }
3717
- class De extends H {
3642
+ class Re extends H {
3718
3643
  /**
3719
3644
  * Инициализирует экземпляр класса {@link ContactRelation}.
3720
3645
  *
@@ -3729,7 +3654,7 @@ class De extends H {
3729
3654
  this.isPrimary = e.isPrimary;
3730
3655
  }
3731
3656
  }
3732
- class Zr extends F {
3657
+ class tt extends F {
3733
3658
  /**
3734
3659
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3735
3660
  *
@@ -3754,10 +3679,10 @@ class Zr extends F {
3754
3679
  */
3755
3680
  addresses: []
3756
3681
  });
3757
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new De(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new De(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new De(s))));
3682
+ 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))));
3758
3683
  }
3759
3684
  }
3760
- class ge extends qr {
3685
+ class ge extends Mr {
3761
3686
  /**
3762
3687
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3763
3688
  *
@@ -3794,10 +3719,10 @@ class ge extends qr {
3794
3719
  * Признак того, что указанный адрес является адресом транспортной компании.
3795
3720
  */
3796
3721
  t(this, "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;
3722
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ve(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;
3798
3723
  }
3799
3724
  }
3800
- class Ue extends ne {
3725
+ class Ge extends ne {
3801
3726
  /**
3802
3727
  * Инициализирует экземпляр класса {@link Client}.
3803
3728
  *
@@ -3805,7 +3730,7 @@ class Ue extends ne {
3805
3730
  */
3806
3731
  // eslint-disable-next-line sonarjs/cognitive-complexity
3807
3732
  constructor(e) {
3808
- var s, i, o, l;
3733
+ var s, i, o, c;
3809
3734
  super(e);
3810
3735
  /**
3811
3736
  * Список контрагентов клиента.
@@ -3851,10 +3776,10 @@ class Ue extends ne {
3851
3776
  * Дополнительные данные о клиенте.
3852
3777
  */
3853
3778
  t(this, "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) ?? {};
3779
+ 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 = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new ge(p))) ?? [], this.channelPrimaryInterest = new Ye(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ze(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(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) ?? {};
3855
3780
  }
3856
3781
  }
3857
- class xt {
3782
+ class Nt {
3858
3783
  /**
3859
3784
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3860
3785
  *
@@ -3946,7 +3871,7 @@ class xt {
3946
3871
  */
3947
3872
  t(this, "lastOrder");
3948
3873
  var e, s, i;
3949
- 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 pe(r == null ? void 0 : r.city), this.region = new te(r == null ? void 0 : r.region), this.country = new Q(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 O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(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 we(o)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new _e(r == null ? void 0 : r.contact), this.lastOrder = {
3874
+ 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 pe(r == null ? void 0 : r.city), this.region = new te(r == null ? void 0 : r.region), this.country = new Y(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 O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(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 we(o)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new J(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new Se(r == null ? void 0 : r.contact), this.lastOrder = {
3950
3875
  createdAt: new O((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3951
3876
  creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
3952
3877
  isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
@@ -3999,13 +3924,13 @@ class xt {
3999
3924
  this.contragentType = new G();
4000
3925
  break;
4001
3926
  case "preferredDeliveryType":
4002
- this.preferredDeliveryType = new K();
3927
+ this.preferredDeliveryType = new J();
4003
3928
  break;
4004
3929
  case "partnerGroup":
4005
3930
  this.partnerGroup = new M();
4006
3931
  break;
4007
3932
  case "contact":
4008
- this.contact = new _e();
3933
+ this.contact = new Se();
4009
3934
  break;
4010
3935
  }
4011
3936
  return this;
@@ -4017,14 +3942,14 @@ class xt {
4017
3942
  asClearRaw() {
4018
3943
  var e, s, i, o;
4019
3944
  const r = {};
4020
- return Object.keys(this).forEach((l) => {
4021
- const p = this[l];
3945
+ return Object.keys(this).forEach((c) => {
3946
+ const p = this[c];
4022
3947
  // eslint-disable-next-line prettier/prettier
4023
- ee(p) || m(p) && p.trim().length === 0 || Se(p.isNewRec) && p.isNewRec() || (r[l] = p);
3948
+ K(p) || m(p) && p.trim().length === 0 || ae(p.isNewRec) && p.isNewRec() || (r[c] = p);
4024
3949
  }), !((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;
4025
3950
  }
4026
3951
  }
4027
- class rr extends H {
3952
+ class sr extends H {
4028
3953
  /**
4029
3954
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4030
3955
  *
@@ -4047,7 +3972,7 @@ class rr extends H {
4047
3972
  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;
4048
3973
  }
4049
3974
  }
4050
- class et extends $ {
3975
+ class st extends $ {
4051
3976
  /**
4052
3977
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4053
3978
  *
@@ -4080,10 +4005,10 @@ class et extends $ {
4080
4005
  * Список менеджеров.
4081
4006
  */
4082
4007
  t(this, "managers");
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)));
4008
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new sr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new J(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4084
4009
  }
4085
4010
  }
4086
- class rt {
4011
+ class it {
4087
4012
  /**
4088
4013
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4089
4014
  *
@@ -4101,7 +4026,7 @@ class rt {
4101
4026
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4102
4027
  }
4103
4028
  }
4104
- class kt extends rt {
4029
+ class Ot extends it {
4105
4030
  /**
4106
4031
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4107
4032
  *
@@ -4132,7 +4057,7 @@ class kt extends rt {
4132
4057
  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;
4133
4058
  }
4134
4059
  }
4135
- class Nt {
4060
+ class dt {
4136
4061
  /**
4137
4062
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4138
4063
  *
@@ -4150,7 +4075,7 @@ class Nt {
4150
4075
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4151
4076
  }
4152
4077
  }
4153
- class Ot extends Ce {
4078
+ class qt extends Ce {
4154
4079
  /**
4155
4080
  * Возвращает данные об указанном клиенте.
4156
4081
  *
@@ -4158,7 +4083,7 @@ class Ot extends Ce {
4158
4083
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4159
4084
  */
4160
4085
  getClient(r) {
4161
- return this.get(`/internal/clients/${r}`, {}, (e) => new Ue(e.data));
4086
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Ge(e.data));
4162
4087
  }
4163
4088
  /**
4164
4089
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4172,8 +4097,8 @@ class Ot extends Ce {
4172
4097
  */
4173
4098
  getClientsList(r, e, s, i) {
4174
4099
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4175
- const l = { ...o.data };
4176
- return l.data = l.data.map((p) => new ne(p)), l;
4100
+ const c = { ...o.data };
4101
+ return c.data = c.data.map((p) => new ne(p)), c;
4177
4102
  });
4178
4103
  }
4179
4104
  /**
@@ -4186,7 +4111,7 @@ class Ot extends Ce {
4186
4111
  return this.getClientsList({
4187
4112
  groupOp: "and",
4188
4113
  groups: [],
4189
- filters: [{ field: "phone", op: xe.Contains, value: r }]
4114
+ filters: [{ field: "phone", op: Ne.Contains, value: r }]
4190
4115
  });
4191
4116
  }
4192
4117
  /**
@@ -4200,7 +4125,7 @@ class Ot extends Ce {
4200
4125
  const s = r.map((i) => i.id);
4201
4126
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4202
4127
  let o = [];
4203
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new et(l))), o;
4128
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new st(c))), o;
4204
4129
  });
4205
4130
  }
4206
4131
  /**
@@ -4212,7 +4137,7 @@ class Ot extends Ce {
4212
4137
  getAllClientContacts(r) {
4213
4138
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4214
4139
  let s = [];
4215
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Zr(i))), s;
4140
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new tt(i))), s;
4216
4141
  });
4217
4142
  }
4218
4143
  /**
@@ -4242,7 +4167,7 @@ class Ot extends Ce {
4242
4167
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4243
4168
  preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4244
4169
  },
4245
- (i) => new Ue(i.data),
4170
+ (i) => new Ge(i.data),
4246
4171
  e
4247
4172
  );
4248
4173
  }
@@ -4352,11 +4277,11 @@ class Ot extends Ce {
4352
4277
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4353
4278
  */
4354
4279
  createContragentClientData(r, e, s = {}) {
4355
- var g, R, A, L, I, x, k, N;
4280
+ var g, R, D, a, I, x, k, N;
4356
4281
  let i;
4357
- const o = e, l = e, p = e;
4282
+ const o = e, c = e, p = e;
4358
4283
  switch (e.opf.slug) {
4359
- case b.Ic:
4284
+ case T.Ic:
4360
4285
  i = {
4361
4286
  opf: o.opf.slug,
4362
4287
  name: o.name,
@@ -4374,26 +4299,26 @@ class Ot extends Ce {
4374
4299
  actual_address: o.actualAddress
4375
4300
  };
4376
4301
  break;
4377
- case b.UlR:
4302
+ case T.UlR:
4378
4303
  i = {
4379
- opf: l.opf.slug,
4380
- name: l.name,
4381
- alternative_name: l.alternativeName,
4382
- partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
4383
- manager_id: (L = l.manager) == null ? void 0 : L.id,
4384
- comment: l.comment,
4385
- inn: l.inn,
4386
- kpp: l.kpp,
4387
- okpo: l.okpo,
4388
- director_name: l.directorName,
4389
- director_position: l.directorPosition,
4390
- director_acts_on: l.directorActsOn,
4391
- legal_address: l.legalAddress,
4392
- postal_address: l.postalAddress,
4393
- actual_address: l.actualAddress
4304
+ opf: c.opf.slug,
4305
+ name: c.name,
4306
+ alternative_name: c.alternativeName,
4307
+ partner_group_id: (D = c.partnerGroup) == null ? void 0 : D.id,
4308
+ manager_id: (a = c.manager) == null ? void 0 : a.id,
4309
+ comment: c.comment,
4310
+ inn: c.inn,
4311
+ kpp: c.kpp,
4312
+ okpo: c.okpo,
4313
+ director_name: c.directorName,
4314
+ director_position: c.directorPosition,
4315
+ director_acts_on: c.directorActsOn,
4316
+ legal_address: c.legalAddress,
4317
+ postal_address: c.postalAddress,
4318
+ actual_address: c.actualAddress
4394
4319
  };
4395
4320
  break;
4396
- case b.UlNr:
4321
+ case T.UlNr:
4397
4322
  i = {
4398
4323
  opf: p.opf.slug,
4399
4324
  name: p.name,
@@ -4441,11 +4366,11 @@ class Ot extends Ce {
4441
4366
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4442
4367
  */
4443
4368
  updateContragentClientData(r, e, s = {}) {
4444
- var g, R, A, L, I, x, k, N;
4369
+ var g, R, D, a, I, x, k, N;
4445
4370
  let i;
4446
- const o = e, l = e, p = e;
4371
+ const o = e, c = e, p = e;
4447
4372
  switch (e.opf.slug) {
4448
- case b.Ic:
4373
+ case T.Ic:
4449
4374
  i = {
4450
4375
  opf: o.opf.slug,
4451
4376
  name: o.name,
@@ -4463,26 +4388,26 @@ class Ot extends Ce {
4463
4388
  actual_address: o.actualAddress
4464
4389
  };
4465
4390
  break;
4466
- case b.UlR:
4391
+ case T.UlR:
4467
4392
  i = {
4468
- opf: l.opf.slug,
4469
- name: l.name,
4470
- alternative_name: l.alternativeName,
4471
- partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
4472
- manager_id: (L = l.manager) == null ? void 0 : L.id,
4473
- comment: l.comment,
4474
- inn: l.inn,
4475
- kpp: l.kpp,
4476
- okpo: l.okpo,
4477
- director_name: l.directorName,
4478
- director_position: l.directorPosition,
4479
- director_acts_on: l.directorActsOn,
4480
- legal_address: l.legalAddress,
4481
- postal_address: l.postalAddress,
4482
- actual_address: l.actualAddress
4393
+ opf: c.opf.slug,
4394
+ name: c.name,
4395
+ alternative_name: c.alternativeName,
4396
+ partner_group_id: (D = c.partnerGroup) == null ? void 0 : D.id,
4397
+ manager_id: (a = c.manager) == null ? void 0 : a.id,
4398
+ comment: c.comment,
4399
+ inn: c.inn,
4400
+ kpp: c.kpp,
4401
+ okpo: c.okpo,
4402
+ director_name: c.directorName,
4403
+ director_position: c.directorPosition,
4404
+ director_acts_on: c.directorActsOn,
4405
+ legal_address: c.legalAddress,
4406
+ postal_address: c.postalAddress,
4407
+ actual_address: c.actualAddress
4483
4408
  };
4484
4409
  break;
4485
- case b.UlNr:
4410
+ case T.UlNr:
4486
4411
  i = {
4487
4412
  opf: p.opf.slug,
4488
4413
  name: p.name,
@@ -4540,7 +4465,7 @@ class Ot extends Ce {
4540
4465
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_create
4541
4466
  */
4542
4467
  createClientDeliveryAddress(r, e, s = {}) {
4543
- var o, l;
4468
+ var o, c;
4544
4469
  const i = {
4545
4470
  address: e.address,
4546
4471
  is_one_time: e.isOneTime ?? !1,
@@ -4549,7 +4474,7 @@ class Ot extends Ce {
4549
4474
  };
4550
4475
  return e.coordinates && (i.coordinates = {
4551
4476
  lat: (o = e.coordinates) == null ? void 0 : o.lat,
4552
- long: (l = e.coordinates) == null ? void 0 : l.long
4477
+ long: (c = e.coordinates) == null ? void 0 : c.long
4553
4478
  }), e.operatingHours && (i.operating_hours = {
4554
4479
  from: e.operatingHours.from,
4555
4480
  to: e.operatingHours.to
@@ -4566,7 +4491,7 @@ class Ot extends Ce {
4566
4491
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_update
4567
4492
  */
4568
4493
  updateClientDeliveryAddress(r, e, s = {}) {
4569
- var o, l;
4494
+ var o, c;
4570
4495
  const i = {
4571
4496
  address: e.address,
4572
4497
  is_one_time: e.isOneTime ?? !1,
@@ -4578,7 +4503,7 @@ class Ot extends Ce {
4578
4503
  to: e.operatingHours.to
4579
4504
  }), e.coordinates && (i.coordinates = {
4580
4505
  lat: (o = e.coordinates) == null ? void 0 : o.lat,
4581
- long: (l = e.coordinates) == null ? void 0 : l.long
4506
+ long: (c = e.coordinates) == null ? void 0 : c.long
4582
4507
  }), this.patch(
4583
4508
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4584
4509
  i,
@@ -4618,7 +4543,7 @@ class Ot extends Ce {
4618
4543
  correspondent_account: s.correspondentAccount,
4619
4544
  currency_id: s.currency.id
4620
4545
  },
4621
- (o) => new be(o.data),
4546
+ (o) => new _e(o.data),
4622
4547
  i
4623
4548
  );
4624
4549
  }
@@ -4644,7 +4569,7 @@ class Ot extends Ce {
4644
4569
  correspondent_account: s.correspondentAccount,
4645
4570
  currency_id: s.currency.id
4646
4571
  },
4647
- (o) => new be(o.data),
4572
+ (o) => new _e(o.data),
4648
4573
  i
4649
4574
  );
4650
4575
  }
@@ -4841,14 +4766,14 @@ class Ot extends Ce {
4841
4766
  * в случае ошибок в запросах.
4842
4767
  */
4843
4768
  createContact(r, e, s, i = {}) {
4844
- var l, p;
4769
+ var c, p;
4845
4770
  const o = {
4846
4771
  name: e.name,
4847
4772
  position: e.position,
4848
4773
  comment: e.comment,
4849
4774
  ...s
4850
4775
  };
4851
- return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (g) => new F(g.data), i);
4776
+ return (c = e.phone) != null && c.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (g) => new F(g.data), i);
4852
4777
  }
4853
4778
  /**
4854
4779
  * Устанавливает признак основного контактного лица.
@@ -4877,7 +4802,7 @@ class Ot extends Ce {
4877
4802
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4878
4803
  }
4879
4804
  }
4880
- class dt extends u {
4805
+ class Ut extends u {
4881
4806
  /**
4882
4807
  * Выполняет проверку занят ли указанный номер телефона.
4883
4808
  *
@@ -4891,7 +4816,7 @@ class dt extends u {
4891
4816
  });
4892
4817
  }
4893
4818
  }
4894
- class qt extends u {
4819
+ class Gt extends u {
4895
4820
  /**
4896
4821
  * Возвращает настройки указанного конфигуратора для указанной категории.
4897
4822
  *
@@ -4919,10 +4844,10 @@ class qt extends u {
4919
4844
  const i = this.get(
4920
4845
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
4921
4846
  { params: e },
4922
- (l) => new _(l.data)
4847
+ (c) => new _(c.data)
4923
4848
  );
4924
- return i.catch((l) => {
4925
- this.defaultInstanceNotificationErrorResponseHandler(l, s);
4849
+ return i.catch((c) => {
4850
+ this.defaultInstanceNotificationErrorResponseHandler(c, s);
4926
4851
  }), i;
4927
4852
  }
4928
4853
  /**
@@ -4962,18 +4887,18 @@ class qt extends u {
4962
4887
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
4963
4888
  }
4964
4889
  }
4965
- class Ut {
4890
+ class Mt {
4966
4891
  /**
4967
4892
  * Возвращает диапазон дат по умолчанию.
4968
4893
  */
4969
4894
  static defaultDateRanges() {
4970
- const r = yr(/* @__PURE__ */ new Date(), 1);
4895
+ const r = vr(/* @__PURE__ */ new Date(), 1);
4971
4896
  return {
4972
4897
  // 'Следующий рабочий день' - это значение по-умолчанию
4973
- nextWorkingDay: { label: "Следующий рабочий день", from: Ar(r), to: Dr(r) },
4974
- today: { label: "Сегодня", from: He(), to: Rr() },
4975
- yesterday: { label: "Вчера", from: Pr(), to: vr() },
4976
- tomorrow: { label: "Завтра", from: Cr(), to: wr() }
4898
+ nextWorkingDay: { label: "Следующий рабочий день", from: Tr(r), to: br(r) },
4899
+ today: { label: "Сегодня", from: Be(), to: $r() },
4900
+ yesterday: { label: "Вчера", from: Dr(), to: Ar() },
4901
+ tomorrow: { label: "Завтра", from: Rr(), to: Pr() }
4977
4902
  };
4978
4903
  }
4979
4904
  }
@@ -5017,8 +4942,8 @@ const E = class E {
5017
4942
  * Список единиц измерения линейной величины.
5018
4943
  */
5019
4944
  t(E, "linearValues", ["пог.м.", "м.", "м2"]);
5020
- let Ge = E;
5021
- class Gt {
4945
+ let Me = E;
4946
+ class Ft {
5022
4947
  /**
5023
4948
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5024
4949
  */
@@ -5034,26 +4959,26 @@ class Gt {
5034
4959
  return r.id === 0 && r.guid === "-undefined-";
5035
4960
  }
5036
4961
  }
5037
- class tt extends u {
4962
+ class nt extends u {
5038
4963
  /**
5039
4964
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5040
4965
  */
5041
4966
  getManagers() {
5042
4967
  const r = "/internal/managers", e = u.getCachedResponse(r);
5043
4968
  return e ? Promise.resolve(e) : this.get(r).then((s) => {
5044
- const i = s.data.map((o) => Le.instanceInitializer(we, o));
4969
+ const i = s.data.map((o) => xe.instanceInitializer(we, o));
5045
4970
  return i && this.cacheResponse(r, i), i;
5046
4971
  });
5047
4972
  }
5048
4973
  }
5049
- class tr extends rr {
4974
+ class ir extends sr {
5050
4975
  /**
5051
4976
  * Инициализирует экземпляр класса {@link OrderInfo}.
5052
4977
  *
5053
4978
  * @param data Данные для первоначальной инициализации.
5054
4979
  */
5055
4980
  constructor(e) {
5056
- var s, i, o, l, p, g, R, A;
4981
+ var s, i, o, c, p, g, R, D;
5057
4982
  super(e);
5058
4983
  /**
5059
4984
  * Краткие данные о клиенте.
@@ -5100,14 +5025,14 @@ class tr extends rr {
5100
5025
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5101
5026
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5102
5027
  }, this.delivery = {
5103
- type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
5028
+ type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5104
5029
  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(),
5105
5030
  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
5031
+ warehouse: (D = e == null ? void 0 : e.delivery) != null && D.warehouse ? new ye(e.delivery.warehouse) : void 0
5107
5032
  }, 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;
5108
5033
  }
5109
5034
  }
5110
- class st extends H {
5035
+ class ot extends H {
5111
5036
  /**
5112
5037
  * Инициализирует экземпляр класса {@link OrderProduct}.
5113
5038
  *
@@ -5187,10 +5112,10 @@ class st extends H {
5187
5112
  * который соответствует указанной ширине. Количество не ограничено.
5188
5113
  */
5189
5114
  t(this, "sawing");
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;
5115
+ this.product = new Q(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;
5191
5116
  }
5192
5117
  }
5193
- class it extends tr {
5118
+ class ct extends ir {
5194
5119
  /**
5195
5120
  * Инициализирует экземпляр класса {@link Order}.
5196
5121
  *
@@ -5230,10 +5155,10 @@ class it extends tr {
5230
5155
  * Признак, что разрешена передача заказа в работу без оплаты.
5231
5156
  */
5232
5157
  t(this, "isAllowProcessingWithoutPayment");
5233
- this.products = (e.products ?? []).map((s) => new st(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? he.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5158
+ this.products = (e.products ?? []).map((s) => new ot(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? he.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5234
5159
  }
5235
5160
  }
5236
- class Mt extends Ce {
5161
+ class Ht extends Ce {
5237
5162
  /**
5238
5163
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5239
5164
  *
@@ -5246,7 +5171,7 @@ class Mt extends Ce {
5246
5171
  getOrders(r, e, s) {
5247
5172
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5248
5173
  const o = { ...i.data };
5249
- return o.data = o.data.map((l) => new tr(l)), o;
5174
+ return o.data = o.data.map((c) => new ir(c)), o;
5250
5175
  });
5251
5176
  }
5252
5177
  /**
@@ -5264,10 +5189,118 @@ class Mt extends Ce {
5264
5189
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5265
5190
  */
5266
5191
  getOrder(r) {
5267
- return this.get(`/internal/orders/${r}`, {}, (e) => new it(e.data));
5192
+ return this.get(`/internal/orders/${r}`, {}, (e) => new ct(e.data));
5268
5193
  }
5269
5194
  }
5270
- class nt {
5195
+ class Ae {
5196
+ /**
5197
+ * Инициализирует экземпляр класса {@link PriceAnalyze}.
5198
+ *
5199
+ * @param data Данные для первоначальной инициализации.
5200
+ */
5201
+ constructor(r) {
5202
+ /**
5203
+ * Краткие данные о клиенте.
5204
+ */
5205
+ t(this, "client");
5206
+ /**
5207
+ * Базовые данные о продукте.
5208
+ */
5209
+ t(this, "product");
5210
+ /**
5211
+ * Стоимость товара или услуги.
5212
+ */
5213
+ t(this, "cost");
5214
+ /**
5215
+ * Коэффициент стоимости продукта от розничной цены.
5216
+ */
5217
+ t(this, "costCoefficient");
5218
+ /**
5219
+ * Источник клиентской цены.
5220
+ */
5221
+ t(this, "source");
5222
+ this.client = new ne(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) ?? ke.Product;
5223
+ }
5224
+ }
5225
+ const De = (n) => {
5226
+ var r, e, s, i, o;
5227
+ return n ? fr(
5228
+ {
5229
+ cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5230
+ clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
5231
+ managers: (s = n.managers) == null ? void 0 : s.map((c) => c.id),
5232
+ partnerGroups: (i = n.partnerGroups) == null ? void 0 : i.map((c) => c.id),
5233
+ salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5234
+ hideNotActive: n.hideNotActive
5235
+ },
5236
+ (c) => K(c) || (ze(c) || yr(c)) && Le(c)
5237
+ ) : {};
5238
+ }, Fe = (n) => {
5239
+ const r = {};
5240
+ 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;
5241
+ };
5242
+ class zt extends u {
5243
+ /**
5244
+ * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5245
+ *
5246
+ * @param productId Идентификатор продукта.
5247
+ * @param params Параметры анализа цен.
5248
+ * @param filters Параметры фильтрации данных.
5249
+ *
5250
+ * @see /doc/api/internal#/operations/api_internal_catalog_price_products_analyze
5251
+ */
5252
+ analyzeProductPrices(r, e, s) {
5253
+ return this.get(
5254
+ `/internal/price/products/${r}/analyze`,
5255
+ {
5256
+ ...Fe(e),
5257
+ filters: De(s)
5258
+ },
5259
+ (i) => i.data.map((o) => new Ae(o))
5260
+ );
5261
+ }
5262
+ /**
5263
+ * Возвращает список клиентских цен на продукты категории в указанном диапазоне цены.
5264
+ *
5265
+ * @param productCategoryId Идентификатор категории продукта.
5266
+ * @param params Параметры анализа цен.
5267
+ * @param filters Параметры фильтрации данных.
5268
+ *
5269
+ * @see /doc/api/internal#/operations/api_internal_catalog_price_categories_analyze
5270
+ */
5271
+ analyzeCategoryPrices(r, e, s) {
5272
+ return this.get(
5273
+ `/internal/price/categories/${r}/analyze`,
5274
+ {
5275
+ ...Fe(e),
5276
+ filters: De(s)
5277
+ },
5278
+ (i) => i.data.map((o) => new Ae(o))
5279
+ );
5280
+ }
5281
+ /**
5282
+ * Возвращает список клиентских цен на продукты категории в указанном диапазоне цены за квадратный метр.
5283
+ *
5284
+ * @param productCategoryId Идентификатор категории продукта.
5285
+ * @param params Параметры анализа цен.
5286
+ * @param params.from Цена больше или равна значению.
5287
+ * @param params.to Цена меньше или равна значению.
5288
+ * @param filters Параметры фильтрации данных.
5289
+ *
5290
+ * @see /doc/api/internal#/operations/api_internal_catalog_price_categories_analyze_by_square
5291
+ */
5292
+ analyzeCategoryPricesBySquare(r, e, s) {
5293
+ return this.get(
5294
+ `/internal/price/categories/${r}/analyze/square`,
5295
+ {
5296
+ ...e,
5297
+ filters: De(s)
5298
+ },
5299
+ (i) => i.data.map((o) => new Ae(o))
5300
+ );
5301
+ }
5302
+ }
5303
+ class lt {
5271
5304
  /**
5272
5305
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5273
5306
  *
@@ -5285,7 +5318,7 @@ class nt {
5285
5318
  this.name = r.name, this.content = r.content;
5286
5319
  }
5287
5320
  }
5288
- class Me {
5321
+ class He {
5289
5322
  /**
5290
5323
  * Инициализирует экземпляр класса {@link Seo}.
5291
5324
  *
@@ -5321,10 +5354,10 @@ class Me {
5321
5354
  */
5322
5355
  t(this, "meta");
5323
5356
  var e;
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))) ?? [];
5357
+ this.resourceType = new Xe(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new lt(s))) ?? [];
5325
5358
  }
5326
5359
  }
5327
- class Ft extends u {
5360
+ class Bt extends u {
5328
5361
  /**
5329
5362
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5330
5363
  *
@@ -5332,7 +5365,7 @@ class Ft extends u {
5332
5365
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
5333
5366
  */
5334
5367
  getResourceSeoData(r, e) {
5335
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new Me(s.data));
5368
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new He(s.data));
5336
5369
  }
5337
5370
  /**
5338
5371
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -5343,7 +5376,7 @@ class Ft extends u {
5343
5376
  * в случае ошибок в запросах.
5344
5377
  */
5345
5378
  saveResourceSeoData(r, e = {}) {
5346
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new Me(s.data), e);
5379
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new He(s.data), e);
5347
5380
  }
5348
5381
  /**
5349
5382
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -5356,7 +5389,7 @@ class Ft extends u {
5356
5389
  }
5357
5390
  }
5358
5391
  const P = me("__references_private", () => {
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);
5392
+ const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), c = C(void 0), p = C(void 0), g = C(void 0), R = C(void 0), D = C(void 0), a = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), d = C(void 0), l = C(void 0);
5360
5393
  return {
5361
5394
  /**
5362
5395
  * Список загружаемых/загруженных на данный момент значений.
@@ -5385,7 +5418,7 @@ const P = me("__references_private", () => {
5385
5418
  /**
5386
5419
  * Справочник организационно-правовых форм.
5387
5420
  */
5388
- opfReference: l,
5421
+ opfReference: c,
5389
5422
  /**
5390
5423
  * Справочник статусов оплаты заказа.
5391
5424
  */
@@ -5401,11 +5434,11 @@ const P = me("__references_private", () => {
5401
5434
  /**
5402
5435
  * Справочник групп партнеров.
5403
5436
  */
5404
- partnerGroupReference: A,
5437
+ partnerGroupReference: D,
5405
5438
  /**
5406
5439
  * Справочник типов файлов продукктов/категорий.
5407
5440
  */
5408
- productFileTypeReference: L,
5441
+ productFileTypeReference: a,
5409
5442
  /**
5410
5443
  * Справочник типов ресурсов.
5411
5444
  */
@@ -5429,94 +5462,94 @@ const P = me("__references_private", () => {
5429
5462
  /**
5430
5463
  * Справочник коэффициентов цен.
5431
5464
  */
5432
- priceCoefficientsReference: c
5465
+ priceCoefficientsReference: l
5433
5466
  };
5434
- }), Ht = me("references", () => {
5467
+ }), Wt = me("references", () => {
5435
5468
  const n = v(() => {
5436
- const c = P();
5437
- return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(D).getChannelPrimaryInterest().then((h) => {
5438
- c.channelPrimaryInterestReference = h;
5439
- }).catch(y)), c.channelPrimaryInterestReference;
5469
+ const l = P();
5470
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(A).getChannelPrimaryInterest().then((h) => {
5471
+ l.channelPrimaryInterestReference = h;
5472
+ }).catch(y)), l.channelPrimaryInterestReference;
5440
5473
  }), r = v(() => {
5441
- const c = P();
5442
- return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(D).getContactPositions().then((h) => {
5443
- c.contactPositionsReference = h;
5444
- }).catch(y)), c.contactPositionsReference;
5474
+ const l = P();
5475
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, u.getInstance(A).getContactPositions().then((h) => {
5476
+ l.contactPositionsReference = h;
5477
+ }).catch(y)), l.contactPositionsReference;
5445
5478
  }), e = v(() => {
5446
- const c = P();
5447
- return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(D).getCurrency().then((h) => {
5448
- c.currencyReference = h;
5449
- }).catch(y)), c.currencyReference;
5479
+ const l = P();
5480
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, u.getInstance(A).getCurrency().then((h) => {
5481
+ l.currencyReference = h;
5482
+ }).catch(y)), l.currencyReference;
5450
5483
  }), s = v(() => {
5451
- const c = P();
5452
- return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(D).getOpf().then((h) => {
5453
- c.opfReference = h;
5454
- }).catch(y)), c.opfReference;
5484
+ const l = P();
5485
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, u.getInstance(A).getOpf().then((h) => {
5486
+ l.opfReference = h;
5487
+ }).catch(y)), l.opfReference;
5455
5488
  }), i = v(() => {
5456
- const c = P();
5457
- return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(D).getOrderPaymentStatuses().then((h) => {
5458
- c.orderPaymentStatusReference = h;
5459
- }).catch(y)), c.orderPaymentStatusReference;
5489
+ const l = P();
5490
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(A).getOrderPaymentStatuses().then((h) => {
5491
+ l.orderPaymentStatusReference = h;
5492
+ }).catch(y)), l.orderPaymentStatusReference;
5460
5493
  }), o = v(() => {
5461
- const c = P();
5462
- return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(D).getOrderStatuses().then((h) => {
5463
- c.orderStatusReference = h;
5464
- }).catch(y)), c.orderStatusReference;
5465
- }), l = v(() => {
5466
- const c = P();
5467
- return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(D).getPaymentTypes().then((h) => {
5468
- c.paymentTypeReference = h;
5469
- }).catch(y)), c.paymentTypeReference;
5494
+ const l = P();
5495
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, u.getInstance(A).getOrderStatuses().then((h) => {
5496
+ l.orderStatusReference = h;
5497
+ }).catch(y)), l.orderStatusReference;
5498
+ }), c = v(() => {
5499
+ const l = P();
5500
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, u.getInstance(A).getPaymentTypes().then((h) => {
5501
+ l.paymentTypeReference = h;
5502
+ }).catch(y)), l.paymentTypeReference;
5470
5503
  }), p = v(() => {
5471
- const c = P();
5472
- return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(D).getPartnerGroup().then((h) => {
5473
- c.partnerGroupReference = h;
5474
- }).catch(y)), c.partnerGroupReference;
5504
+ const l = P();
5505
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, u.getInstance(A).getPartnerGroup().then((h) => {
5506
+ l.partnerGroupReference = h;
5507
+ }).catch(y)), l.partnerGroupReference;
5475
5508
  }), g = v(() => {
5476
- const c = P();
5477
- return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(D).getProductFileType().then((h) => {
5478
- c.productFileTypeReference = h;
5479
- }).catch(y)), c.productFileTypeReference;
5509
+ const l = P();
5510
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, u.getInstance(A).getProductFileType().then((h) => {
5511
+ l.productFileTypeReference = h;
5512
+ }).catch(y)), l.productFileTypeReference;
5480
5513
  }), R = v(() => {
5481
- const c = P();
5482
- return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(D).getResourceTypes().then((h) => {
5483
- c.resourceTypesReference = h;
5484
- }).catch(y)), c.resourceTypesReference;
5485
- }), A = v(() => {
5486
- const c = P();
5487
- return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(D).getSalesDirections().then((h) => {
5488
- c.salesDirectionsReference = h;
5489
- }).catch(y)), c.salesDirectionsReference;
5490
- }), L = v(() => {
5491
- const c = P();
5492
- return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(D).getSourcePrimaryInterest().then((h) => {
5493
- c.sourcePrimaryInterestReference = h;
5494
- }).catch(y)), c.sourcePrimaryInterestReference;
5514
+ const l = P();
5515
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, u.getInstance(A).getResourceTypes().then((h) => {
5516
+ l.resourceTypesReference = h;
5517
+ }).catch(y)), l.resourceTypesReference;
5518
+ }), D = v(() => {
5519
+ const l = P();
5520
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, u.getInstance(A).getSalesDirections().then((h) => {
5521
+ l.salesDirectionsReference = h;
5522
+ }).catch(y)), l.salesDirectionsReference;
5523
+ }), a = v(() => {
5524
+ const l = P();
5525
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(A).getSourcePrimaryInterest().then((h) => {
5526
+ l.sourcePrimaryInterestReference = h;
5527
+ }).catch(y)), l.sourcePrimaryInterestReference;
5495
5528
  }), I = v(() => {
5496
- const c = P();
5497
- return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(D).getDeliveryTypes().then((h) => {
5498
- c.deliveryTypeReference = h;
5499
- }).catch(y)), c.deliveryTypeReference;
5529
+ const l = P();
5530
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, u.getInstance(A).getDeliveryTypes().then((h) => {
5531
+ l.deliveryTypeReference = h;
5532
+ }).catch(y)), l.deliveryTypeReference;
5500
5533
  }), x = v(() => {
5501
- const c = P();
5502
- return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(tt).getManagers().then((h) => {
5503
- c.managersList = h;
5504
- }).catch(y)), c.managersList;
5534
+ const l = P();
5535
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, u.getInstance(nt).getManagers().then((h) => {
5536
+ l.managersList = h;
5537
+ }).catch(y)), l.managersList;
5505
5538
  }), k = v(() => {
5506
- const c = P();
5507
- return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(D).getWarehouses().then((h) => {
5508
- c.warehousesReference = h;
5509
- }).catch(y)), c.warehousesReference;
5539
+ const l = P();
5540
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, u.getInstance(A).getWarehouses().then((h) => {
5541
+ l.warehousesReference = h;
5542
+ }).catch(y)), l.warehousesReference;
5510
5543
  }), N = v(() => {
5511
- const c = P();
5512
- return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(D).getPropertyTypes().then((h) => {
5513
- c.propertyTypesReference = h;
5514
- }).catch(y)), c.propertyTypesReference;
5544
+ const l = P();
5545
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, u.getInstance(A).getPropertyTypes().then((h) => {
5546
+ l.propertyTypesReference = h;
5547
+ }).catch(y)), l.propertyTypesReference;
5515
5548
  }), d = v(() => {
5516
- const c = P();
5517
- return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(D).getPriceCoefficients().then((h) => {
5518
- c.priceCoefficientsReference = h;
5519
- }).catch(y)), c.priceCoefficientsReference;
5549
+ const l = P();
5550
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(A).getPriceCoefficients().then((h) => {
5551
+ l.priceCoefficientsReference = h;
5552
+ }).catch(y)), l.priceCoefficientsReference;
5520
5553
  });
5521
5554
  return {
5522
5555
  /**
@@ -5546,7 +5579,7 @@ const P = me("__references_private", () => {
5546
5579
  /**
5547
5580
  * Справочник типов оплаты заказов.
5548
5581
  */
5549
- paymentTypeReference: l,
5582
+ paymentTypeReference: c,
5550
5583
  /**
5551
5584
  * Справочник групп партнеров.
5552
5585
  */
@@ -5562,11 +5595,11 @@ const P = me("__references_private", () => {
5562
5595
  /**
5563
5596
  * Справочник направлений продаж.
5564
5597
  */
5565
- salesDirectionsReference: A,
5598
+ salesDirectionsReference: D,
5566
5599
  /**
5567
5600
  * Справочник каналов первичного интереса.
5568
5601
  */
5569
- sourcePrimaryInterestsReference: L,
5602
+ sourcePrimaryInterestsReference: a,
5570
5603
  /**
5571
5604
  * Справочник типов доставки.
5572
5605
  */
@@ -5588,7 +5621,7 @@ const P = me("__references_private", () => {
5588
5621
  */
5589
5622
  priceCoefficientsReference: d
5590
5623
  };
5591
- }), ot = me("__user_state_private", () => {
5624
+ }), pt = me("__user_state_private", () => {
5592
5625
  const n = C({}), r = C(void 0);
5593
5626
  return {
5594
5627
  /**
@@ -5600,18 +5633,18 @@ const P = me("__references_private", () => {
5600
5633
  */
5601
5634
  currentUser: r
5602
5635
  };
5603
- }), zt = me("user_state", () => ({
5636
+ }), jt = me("user_state", () => ({
5604
5637
  /**
5605
5638
  * Данные о текущем пользователе.
5606
5639
  */
5607
5640
  currentUser: v(() => {
5608
- const r = ot();
5609
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Kr).getCurrentUser().then((e) => {
5641
+ const r = pt();
5642
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Yr).getCurrentUser().then((e) => {
5610
5643
  r.currentUser = e;
5611
5644
  }).catch(y).finally(y)), r.currentUser;
5612
5645
  })
5613
5646
  }));
5614
- class Bt extends u {
5647
+ class Vt extends u {
5615
5648
  /**
5616
5649
  * Возвращает подсказки по адресам.
5617
5650
  *
@@ -5652,13 +5685,13 @@ class Bt extends u {
5652
5685
  return this.get(r, { query: e }).then((s) => {
5653
5686
  const i = [...s];
5654
5687
  let o = 1;
5655
- return i.forEach((l) => {
5656
- l.id = o++;
5688
+ return i.forEach((c) => {
5689
+ c.id = o++;
5657
5690
  }), i;
5658
5691
  });
5659
5692
  }
5660
5693
  }
5661
- class Wt {
5694
+ class Et {
5662
5695
  /**
5663
5696
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5664
5697
  *
@@ -5682,140 +5715,140 @@ class Wt {
5682
5715
  }
5683
5716
  }
5684
5717
  export {
5685
- Fr as AnyReference,
5686
- ft as AppBaseConfig,
5687
- T as AppConfigProvider,
5688
- be as BankAccount,
5718
+ Br as AnyReference,
5719
+ Ct as AppBaseConfig,
5720
+ b as AppConfigProvider,
5721
+ _e as BankAccount,
5689
5722
  Ce as BasePaginationProvider,
5690
- Or as CalculationTypeEnum,
5723
+ Ur as CalculationTypeEnum,
5691
5724
  oe as Cart,
5692
- Lr as CartItem,
5693
- ar as CartItemBase,
5694
- yt as CartProvider,
5695
- Pt as CatalogProvider,
5696
- ze as CatalogableItem,
5725
+ kr as CartItem,
5726
+ xr as CartItemBase,
5727
+ vt as CartProvider,
5728
+ Dt as CatalogProvider,
5729
+ We as CatalogableItem,
5697
5730
  q as Category,
5698
- Oe as CategoryPricingRule,
5699
- Je as ChannelPrimaryInterest,
5700
- vt as City,
5731
+ qe as CategoryPricingRule,
5732
+ Ye as ChannelPrimaryInterest,
5733
+ At as City,
5701
5734
  pe as CityWithRegionAndCountry,
5702
- Ue as Client,
5703
- et as ClientAdditionalData,
5735
+ Ge as Client,
5736
+ st as ClientAdditionalData,
5704
5737
  le as ClientCategory,
5705
- Ot as ClientDataProvider,
5706
- Rt as ClientPriceProvider,
5707
- Dt as ClientPriceTemplateProvider,
5708
- J as ClientProduct,
5709
- Tt as ClientProductCategoryDataProvider,
5710
- bt as ClientProductDataProvider,
5738
+ qt as ClientDataProvider,
5739
+ $t as ClientPriceProvider,
5740
+ bt as ClientPriceTemplateProvider,
5741
+ Q as ClientProduct,
5742
+ St as ClientProductCategoryDataProvider,
5743
+ Lt as ClientProductDataProvider,
5711
5744
  ne as ClientShortInfo,
5712
- Qr as ClientsAdditionalDataRequestTypeEnum,
5713
- xt as ClientsListFilters,
5714
- qt as ConfiguratorProvider,
5715
- _e as Contact,
5716
- Gr as ContactLinks,
5745
+ Zr as ClientsAdditionalDataRequestTypeEnum,
5746
+ Nt as ClientsListFilters,
5747
+ Gt as ConfiguratorProvider,
5748
+ Se as Contact,
5749
+ Hr as ContactLinks,
5717
5750
  F as ContactPerson,
5718
- Zr as ContactPersonRelated,
5719
- Hr as ContactPosition,
5720
- De as ContactRelation,
5721
- Xe as ContragentBase,
5751
+ tt as ContactPersonRelated,
5752
+ Wr as ContactPosition,
5753
+ Re as ContactRelation,
5754
+ er as ContragentBase,
5722
5755
  he as ContragentFactory,
5723
- Ze as ContragentIc,
5724
- Yr as ContragentPerson,
5725
- Xr as ContragentUlNr,
5726
- er as ContragentUlR,
5727
- Ie as CostSourceEnum,
5728
- Q as Country,
5756
+ rr as ContragentIc,
5757
+ et as ContragentPerson,
5758
+ rt as ContragentUlNr,
5759
+ tr as ContragentUlR,
5760
+ ke as CostSourceEnum,
5761
+ Y as Country,
5729
5762
  ue as Currency,
5730
- Bt as DataSuggestionProvider,
5731
- kt as DataTablePagination,
5732
- rt as DataTablePaginationRequestParams,
5733
- Nt as DataTableSortRequestParams,
5734
- Ut as DateTimeProvider,
5735
- qr as DeletableNamedIdentity,
5763
+ Vt as DataSuggestionProvider,
5764
+ Ot as DataTablePagination,
5765
+ it as DataTablePaginationRequestParams,
5766
+ dt as DataTableSortRequestParams,
5767
+ Mt as DateTimeProvider,
5768
+ Mr as DeletableNamedIdentity,
5736
5769
  ge as DeliveryAddress,
5737
- K as DeliveryType,
5738
- Ir as DeviceTypeResolutionConfig,
5739
- Ur as DiscountShortInfo,
5740
- Wt as FieldValidationResultData,
5770
+ J as DeliveryType,
5771
+ Nr as DeviceTypeResolutionConfig,
5772
+ Fr as DiscountShortInfo,
5773
+ Et as FieldValidationResultData,
5741
5774
  se as FilterGroup,
5742
- de as FilterItem,
5743
- xe as FilterOpEnum,
5744
- We as GeoCoordinates,
5745
- _r as HiddenCatalogableItem,
5775
+ Ue as FilterItem,
5776
+ Ne as FilterOpEnum,
5777
+ Ve as GeoCoordinates,
5778
+ ar as HiddenCatalogableItem,
5746
5779
  Te as HttpBaseCachedRequester,
5747
- $e as HttpBaseRequester,
5748
- xr as HttpParamsConfig,
5780
+ be as HttpBaseRequester,
5781
+ Or as HttpParamsConfig,
5749
5782
  u as HttpRequester,
5750
5783
  H as Identity,
5751
- Sr as Image,
5784
+ Ir as Image,
5752
5785
  we as Manager,
5753
5786
  re as ManagerCommon,
5754
- Gt as ManagerDataFactory,
5755
- tt as ManagerDataProvider,
5756
- nt as MetaTagItem,
5787
+ Ft as ManagerDataFactory,
5788
+ nt as ManagerDataProvider,
5789
+ lt as MetaTagItem,
5757
5790
  $ as NamedIdentity,
5758
5791
  G as Opf,
5759
- b as OpfEnum,
5760
- it as Order,
5761
- tr as OrderInfo,
5762
- zr as OrderPaymentStatus,
5763
- st as OrderProduct,
5764
- rr as OrderShortInfo,
5765
- Br as OrderStatus,
5766
- Mt as OrdersDataProvider,
5792
+ T as OpfEnum,
5793
+ ct as Order,
5794
+ ir as OrderInfo,
5795
+ jr as OrderPaymentStatus,
5796
+ ot as OrderProduct,
5797
+ sr as OrderShortInfo,
5798
+ Vr as OrderStatus,
5799
+ Ht as OrdersDataProvider,
5767
5800
  M as PartnerGroup,
5768
- Wr as PaymentType,
5769
- wt as PreferencesStorageProvider,
5770
- Re as PriceAnalyze,
5771
- It as PriceAnalyzeProvider,
5801
+ Er as PaymentType,
5802
+ Pt as PreferencesStorageProvider,
5803
+ Ae as PriceAnalyze,
5804
+ zt as PriceAnalyzeProvider,
5772
5805
  fe as PriceCoefficient,
5773
- Be as PriceCoefficientEnum,
5806
+ je as PriceCoefficientEnum,
5774
5807
  W as PriceTemplate,
5775
5808
  ve as PriceTemplateCategory,
5776
- Y as PriceTemplateClient,
5777
- Ve as PriceTemplateICatalogableItem,
5809
+ X as PriceTemplateClient,
5810
+ Ke as PriceTemplateICatalogableItem,
5778
5811
  Pe as PriceTemplateProduct,
5779
- _t as PriceTemplateProvider,
5780
- Z as PricingRole,
5781
- St as PricingRoleProvider,
5782
- Ae as PrimaryCatalogableItem,
5812
+ at as PriceTemplateProvider,
5813
+ ee as PricingRole,
5814
+ It as PricingRoleProvider,
5815
+ $e as PrimaryCatalogableItem,
5783
5816
  _ as Product,
5784
- At as ProductCategoryDataProvider,
5785
- $t as ProductDataProvider,
5786
- jr as ProductFileType,
5787
- ae as ProductPriceCoefficient,
5788
- Jr as ProductPriceHistory,
5789
- at as PropertiesProvider,
5790
- X as Property,
5791
- Ke as PropertyType,
5792
- dr as PropertyTypeEnum,
5817
+ Tt as ProductCategoryDataProvider,
5818
+ _t as ProductDataProvider,
5819
+ Kr as ProductFileType,
5820
+ Ie as ProductPriceCoefficient,
5821
+ Xr as ProductPriceHistory,
5822
+ xt as PropertiesProvider,
5823
+ Z as Property,
5824
+ Qe as PropertyType,
5825
+ Gr as PropertyTypeEnum,
5793
5826
  z as PropertyValue,
5794
- Lt as RecommendationsDataProvider,
5795
- Ne as RecommendationsList,
5827
+ kt as RecommendationsDataProvider,
5828
+ de as RecommendationsList,
5796
5829
  w as Reference,
5797
- D as ReferenceDataProvider,
5830
+ A as ReferenceDataProvider,
5798
5831
  te as Region,
5799
- Qe as ResourceType,
5832
+ Xe as ResourceType,
5800
5833
  S as SalesDirection,
5801
- kr as SentryConfig,
5802
- Me as Seo,
5803
- Ft as SeoDataProvider,
5804
- Ye as SourcePrimaryInterest,
5805
- br as StockCount,
5806
- Ct as TemplatesListFilters,
5807
- Le as TypedInstanceFactory,
5808
- Ge as UnitsHelper,
5809
- dt as UnknownClientDataProvider,
5810
- je as UpdatableNamedIdentity,
5811
- Er as User,
5812
- Ee as UserCommonInfo,
5813
- Kr as UserDataProvider,
5834
+ dr as SentryConfig,
5835
+ He as Seo,
5836
+ Bt as SeoDataProvider,
5837
+ Ze as SourcePrimaryInterest,
5838
+ Lr as StockCount,
5839
+ Rt as TemplatesListFilters,
5840
+ xe as TypedInstanceFactory,
5841
+ Me as UnitsHelper,
5842
+ Ut as UnknownClientDataProvider,
5843
+ Ee as UpdatableNamedIdentity,
5844
+ Qr as User,
5845
+ Je as UserCommonInfo,
5846
+ Yr as UserDataProvider,
5814
5847
  U as UserShortInfo,
5815
- Vr as UserTypeEnum,
5816
- Nr as VersionConfig,
5848
+ Jr as UserTypeEnum,
5849
+ qr as VersionConfig,
5817
5850
  ye as Warehouse,
5818
- Ht as useReferencesStore,
5819
- zt as useUserStateStore
5851
+ Wt as useReferencesStore,
5852
+ jt as useUserStateStore
5820
5853
  };
5821
5854
  //# sourceMappingURL=sc-common-lib.js.map