@snabcentr/common-lib 1.60.6 → 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 (45) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +3 -3
  3. package/dist/sc-common-lib.js +592 -567
  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/interfaces/index.d.ts +0 -2
  10. package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
  11. package/dist/src/catalog/providers/index.d.ts +0 -1
  12. package/dist/src/catalog/providers/index.d.ts.map +1 -1
  13. package/dist/src/index.d.ts +1 -0
  14. package/dist/src/index.d.ts.map +1 -1
  15. package/dist/src/price-analyze/classes/index.d.ts +2 -0
  16. package/dist/src/price-analyze/classes/index.d.ts.map +1 -0
  17. package/dist/src/{catalog → price-analyze}/classes/price-analyze.d.ts +3 -3
  18. package/dist/src/price-analyze/classes/price-analyze.d.ts.map +1 -0
  19. package/dist/src/price-analyze/converters/price-analyze-filters.d.ts +8 -0
  20. package/dist/src/price-analyze/converters/price-analyze-filters.d.ts.map +1 -0
  21. package/dist/src/{catalog/providers/converters/price-analyze.d.ts → price-analyze/converters/price-analyze-params.d.ts} +3 -3
  22. package/dist/src/price-analyze/converters/price-analyze-params.d.ts.map +1 -0
  23. package/dist/src/price-analyze/index.d.ts +4 -0
  24. package/dist/src/price-analyze/index.d.ts.map +1 -0
  25. package/dist/src/price-analyze/interfaces/i-price-analyze-filters.d.ts +36 -0
  26. package/dist/src/price-analyze/interfaces/i-price-analyze-filters.d.ts.map +1 -0
  27. package/dist/src/price-analyze/interfaces/i-price-analyze-parameter.d.ts.map +1 -0
  28. package/dist/src/{catalog → price-analyze}/interfaces/i-price-analyze-params.d.ts +1 -1
  29. package/dist/src/price-analyze/interfaces/i-price-analyze-params.d.ts.map +1 -0
  30. package/dist/src/{catalog → price-analyze}/interfaces/i-price-analyze.d.ts +2 -2
  31. package/dist/src/price-analyze/interfaces/i-price-analyze.d.ts.map +1 -0
  32. package/dist/src/price-analyze/interfaces/index.d.ts +4 -0
  33. package/dist/src/price-analyze/interfaces/index.d.ts.map +1 -0
  34. package/dist/src/price-analyze/providers/index.d.ts +2 -0
  35. package/dist/src/price-analyze/providers/index.d.ts.map +1 -0
  36. package/dist/src/{catalog → price-analyze}/providers/price-analyze-provider.d.ts +8 -4
  37. package/dist/src/price-analyze/providers/price-analyze-provider.d.ts.map +1 -0
  38. package/package.json +1 -1
  39. package/dist/src/catalog/classes/price-analyze.d.ts.map +0 -1
  40. package/dist/src/catalog/interfaces/i-price-analyze-params.d.ts.map +0 -1
  41. package/dist/src/catalog/interfaces/i-price-analyze.d.ts.map +0 -1
  42. package/dist/src/catalog/providers/converters/price-analyze.d.ts.map +0 -1
  43. package/dist/src/catalog/providers/interfaces/i-price-analyze-parameter.d.ts.map +0 -1
  44. package/dist/src/catalog/providers/price-analyze-provider.d.ts.map +0 -1
  45. /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 br } 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 Le {
142
+ class Ie {
143
143
  /**
144
144
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
145
145
  *
@@ -169,7 +169,7 @@ class Le {
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 Tr {
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
  }
@@ -276,7 +276,7 @@ const j = class j {
276
276
  */
277
277
  t(j, "config");
278
278
  let b = j;
279
- class _r extends ze {
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
  * Артикул производителя/поставщика.
@@ -399,9 +399,9 @@ class _ extends _r {
399
399
  * Список коэффициентов цен на продукт.
400
400
  */
401
401
  t(this, "priceCoefficients");
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 Tr(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";
403
403
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
404
- 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, 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 Le(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);
405
405
  }
406
406
  /**
407
407
  * Возвращает признак, что это измеряемый товар.
@@ -412,7 +412,7 @@ class _ extends _r {
412
412
  return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
413
413
  }
414
414
  }
415
- class Lr extends H {
415
+ class xr extends H {
416
416
  /**
417
417
  * Инициализирует экземпляр класса {@link CartItemBase}.
418
418
  *
@@ -464,10 +464,10 @@ class Lr extends H {
464
464
  * Признак того, что позиция является дополнительной продажей.
465
465
  */
466
466
  t(this, "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 && 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;
468
468
  }
469
469
  }
470
- class Ir extends Lr {
470
+ class kr extends xr {
471
471
  /**
472
472
  * Инициализирует экземпляр класса {@link CartItem}.
473
473
  *
@@ -536,10 +536,10 @@ class oe {
536
536
  * Список итоговых сумм по направлениям продаж.
537
537
  */
538
538
  t(this, "directionsSum");
539
- this.items = r.items.map((e) => new Ir(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;
540
540
  }
541
541
  }
542
- class xr {
542
+ class Nr {
543
543
  /**
544
544
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
545
545
  *
@@ -561,7 +561,7 @@ class xr {
561
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;
562
562
  }
563
563
  }
564
- class ar {
564
+ class Or {
565
565
  /**
566
566
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
567
567
  *
@@ -583,7 +583,7 @@ class ar {
583
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;
584
584
  }
585
585
  }
586
- class kr {
586
+ class dr {
587
587
  /**
588
588
  * Инициализирует экземпляр класса {@link SentryConfig}.
589
589
  *
@@ -628,7 +628,7 @@ class kr {
628
628
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
629
629
  }
630
630
  }
631
- class Nr {
631
+ class qr {
632
632
  /**
633
633
  * Инициализирует экземпляр класса {@link VersionConfig}.
634
634
  *
@@ -650,7 +650,7 @@ class Nr {
650
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";
651
651
  }
652
652
  }
653
- class ft {
653
+ class Ct {
654
654
  /**
655
655
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
656
656
  *
@@ -690,17 +690,17 @@ class ft {
690
690
  */
691
691
  t(this, "dateFormats");
692
692
  var e, s, i;
693
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new ar(r == null ? void 0 : r.http), this.deviceTypeByResolution = new xr(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({
694
694
  environment: this.environment,
695
695
  ...r == null ? void 0 : r.sentry
696
- }), 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 = {
697
697
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
698
698
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
699
699
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
700
700
  };
701
701
  }
702
702
  }
703
- class Ie {
703
+ class xe {
704
704
  /**
705
705
  * Инициализирует экземпляр указанного класса.
706
706
  *
@@ -740,7 +740,7 @@ const L = class L {
740
740
  */
741
741
  t(this, "defaultInstanceNotificationErrorResponseHandler", y);
742
742
  const s = b.getConfig().version;
743
- this.defaultInstanceNotificationErrorResponseHandler = L.baseDefaultNotificationErrorResponseHandler, this.httpClient = $r.create({
743
+ this.defaultInstanceNotificationErrorResponseHandler = L.baseDefaultNotificationErrorResponseHandler, this.httpClient = _r.create({
744
744
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
745
745
  baseURL: r,
746
746
  headers: {
@@ -750,10 +750,10 @@ const L = class L {
750
750
  ...e
751
751
  }
752
752
  }), this.httpClient.interceptors.request.use(
753
- (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),
754
754
  (i) => Promise.reject(i)
755
755
  ), this.httpClient.interceptors.response.use(
756
- (i) => (i.data && (i.data = br(i.data)), i),
756
+ (i) => (i.data && (i.data = Sr(i.data)), i),
757
757
  // Возвращаем изменённую структуру сообщения об ошибке.
758
758
  (i) => L.convertHttpErrorResponse(i)
759
759
  );
@@ -772,7 +772,7 @@ const L = class L {
772
772
  * @param type Тип данных, которыми оперирует метод.
773
773
  */
774
774
  static getInstance(r) {
775
- return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] = Ie.simpleInstanceInitializer(r)), L.instances[r.name];
775
+ return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] = xe.simpleInstanceInitializer(r)), L.instances[r.name];
776
776
  }
777
777
  /**
778
778
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -801,9 +801,9 @@ const L = class L {
801
801
  * @param disableDefaultNotificationErrorResponseHandler Признак необходимости отключить обработчик ошибок по умолчанию используемый для текущего экземпляра класса.
802
802
  */
803
803
  request(r, e = void 0, s = {}, i = !1) {
804
- const o = this.httpClient.request(r).then((l) => e ? e(l) : l.data);
805
- return i || o.catch((l) => {
806
- 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);
807
807
  }), o;
808
808
  }
809
809
  /**
@@ -875,8 +875,8 @@ t(L, "instances", {}), /**
875
875
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
876
876
  */
877
877
  t(L, "baseDefaultNotificationErrorResponseHandler", y);
878
- let $e = L;
879
- const V = class V extends $e {
878
+ let be = L;
879
+ const V = class V extends be {
880
880
  /**
881
881
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
882
882
  *
@@ -911,7 +911,7 @@ const V = class V extends $e {
911
911
  */
912
912
  cacheResponse(e, s) {
913
913
  V.responseDataCache.set(e, {
914
- validTo: mr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
914
+ validTo: wr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
915
915
  val: s
916
916
  });
917
917
  }
@@ -926,9 +926,9 @@ const V = class V extends $e {
926
926
  */
927
927
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
928
928
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
929
- 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;
930
930
  return p ? Promise.resolve(p) : this.get(s, o).then((g) => {
931
- const R = g.map((A) => Ie.instanceInitializer(e, A));
931
+ const R = g.map((D) => xe.instanceInitializer(e, D));
932
932
  return i && R && this.cacheResponse(s, R), R;
933
933
  });
934
934
  }
@@ -937,8 +937,8 @@ const V = class V extends $e {
937
937
  * Кэш результатов запросов.
938
938
  */
939
939
  t(V, "responseDataCache", /* @__PURE__ */ new Map());
940
- let be = V;
941
- class u extends be {
940
+ let Te = V;
941
+ class u extends Te {
942
942
  /**
943
943
  * Инициализирует экземпляр класса {@link HttpRequester}.
944
944
  */
@@ -948,7 +948,7 @@ class u extends be {
948
948
  (s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
949
949
  }
950
950
  }
951
- class yt extends u {
951
+ class vt extends u {
952
952
  /**
953
953
  * Возвращает содержимое корзины указанного клиента.
954
954
  *
@@ -1051,7 +1051,7 @@ class yt extends u {
1051
1051
  return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new oe(e.data));
1052
1052
  }
1053
1053
  }
1054
- var Or = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Or || {}), xe = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(xe || {}), 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 || {});
1055
1055
  class q extends ie {
1056
1056
  /**
1057
1057
  * Инициализирует экземпляр класса {@link Category}.
@@ -1072,7 +1072,7 @@ class q extends ie {
1072
1072
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new _(o));
1073
1073
  }
1074
1074
  }
1075
- class je extends $ {
1075
+ class Ee extends $ {
1076
1076
  /**
1077
1077
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1078
1078
  *
@@ -1087,7 +1087,7 @@ class je extends $ {
1087
1087
  this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1088
1088
  }
1089
1089
  }
1090
- class qr extends je {
1090
+ class Mr extends Ee {
1091
1091
  /**
1092
1092
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1093
1093
  *
@@ -1102,7 +1102,7 @@ class qr extends je {
1102
1102
  this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1103
1103
  }
1104
1104
  }
1105
- class wt {
1105
+ class Pt {
1106
1106
  /**
1107
1107
  * Возвращает актуальные и не просроченные данные из хранилища.
1108
1108
  *
@@ -1113,7 +1113,7 @@ class wt {
1113
1113
  if (e)
1114
1114
  try {
1115
1115
  const s = JSON.parse(e);
1116
- if (fr(f(s.availableFor) || He(), /* @__PURE__ */ new Date()))
1116
+ if (Cr(f(s.availableFor) || Be(), /* @__PURE__ */ new Date()))
1117
1117
  return s.data ?? {};
1118
1118
  } catch {
1119
1119
  localStorage.removeItem(r);
@@ -1151,7 +1151,7 @@ class U extends $ {
1151
1151
  this.type = e == null ? void 0 : e.type;
1152
1152
  }
1153
1153
  }
1154
- class Ur extends $ {
1154
+ class Fr extends $ {
1155
1155
  /**
1156
1156
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1157
1157
  *
@@ -1190,7 +1190,7 @@ class Ur extends $ {
1190
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;
1191
1191
  }
1192
1192
  }
1193
- class W extends je {
1193
+ class W extends Ee {
1194
1194
  /**
1195
1195
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1196
1196
  *
@@ -1209,7 +1209,7 @@ class W extends je {
1209
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();
1210
1210
  }
1211
1211
  }
1212
- class J extends _ {
1212
+ class Q extends _ {
1213
1213
  /**
1214
1214
  * Инициализирует экземпляр класса {@link ClientProduct}.
1215
1215
  *
@@ -1245,10 +1245,10 @@ class J extends _ {
1245
1245
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1246
1246
  */
1247
1247
  t(this, "isFavorite");
1248
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? xe.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;
1249
1249
  }
1250
1250
  }
1251
- class Gr {
1251
+ class Hr {
1252
1252
  /**
1253
1253
  * Инициализирует экземпляр класса {@link ContactLinks}.
1254
1254
  *
@@ -1292,7 +1292,7 @@ class re extends $ {
1292
1292
  * Признак того, что менеджер является основным для клиента.
1293
1293
  */
1294
1294
  t(this, "isDefault");
1295
- 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));
1296
1296
  }
1297
1297
  }
1298
1298
  class we extends re {
@@ -1326,7 +1326,7 @@ class we extends re {
1326
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;
1327
1327
  }
1328
1328
  }
1329
- class Mr extends ie {
1329
+ class zr extends ie {
1330
1330
  /**
1331
1331
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1332
1332
  *
@@ -1357,7 +1357,7 @@ class Mr extends ie {
1357
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;
1358
1358
  }
1359
1359
  }
1360
- class le extends Mr {
1360
+ class le extends zr {
1361
1361
  /**
1362
1362
  * Инициализирует экземпляр класса {@link ClientCategory}.
1363
1363
  *
@@ -1374,10 +1374,10 @@ class le extends Mr {
1374
1374
  * Список продуктов категории.
1375
1375
  */
1376
1376
  t(this, "products");
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 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));
1378
1378
  }
1379
1379
  }
1380
- class Ve {
1380
+ class Ke {
1381
1381
  /**
1382
1382
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1383
1383
  *
@@ -1395,7 +1395,7 @@ class Ve {
1395
1395
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new fe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1396
1396
  }
1397
1397
  }
1398
- class ve extends Ve {
1398
+ class ve extends Ke {
1399
1399
  /**
1400
1400
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1401
1401
  *
@@ -1410,7 +1410,7 @@ class ve extends Ve {
1410
1410
  this.productCategory = new ie(e == null ? void 0 : e.productCategory);
1411
1411
  }
1412
1412
  }
1413
- class Q extends w {
1413
+ class Y extends w {
1414
1414
  }
1415
1415
  class te extends w {
1416
1416
  /**
@@ -1423,8 +1423,8 @@ class te extends w {
1423
1423
  /**
1424
1424
  * Данные о стране, в которой расположен регион.
1425
1425
  */
1426
- t(this, "country", new Q());
1427
- e && (this.country = new Q(e.country));
1426
+ t(this, "country", new Y());
1427
+ e && (this.country = new Y(e.country));
1428
1428
  }
1429
1429
  }
1430
1430
  class pe extends w {
@@ -1442,7 +1442,7 @@ class pe extends w {
1442
1442
  e && (this.region = new te(e.region));
1443
1443
  }
1444
1444
  }
1445
- class Ee extends $ {
1445
+ class Je extends $ {
1446
1446
  /**
1447
1447
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1448
1448
  *
@@ -1481,7 +1481,7 @@ class Ee extends $ {
1481
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;
1482
1482
  }
1483
1483
  }
1484
- class ne extends Ee {
1484
+ class ne extends Je {
1485
1485
  /**
1486
1486
  * Инициализирует экземпляр класса {@link Client}.
1487
1487
  *
@@ -1526,7 +1526,7 @@ class ne extends Ee {
1526
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))) ?? [];
1527
1527
  }
1528
1528
  }
1529
- class Y extends H {
1529
+ class X extends H {
1530
1530
  /**
1531
1531
  * Инициализирует новый экземпляр класса.
1532
1532
  *
@@ -1553,7 +1553,7 @@ class Y extends H {
1553
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);
1554
1554
  }
1555
1555
  }
1556
- class Pe extends Ve {
1556
+ class Pe extends Ke {
1557
1557
  /**
1558
1558
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1559
1559
  *
@@ -1568,9 +1568,9 @@ class Pe extends Ve {
1568
1568
  this.product = new _(e == null ? void 0 : e.product);
1569
1569
  }
1570
1570
  }
1571
- class Ke extends w {
1571
+ class Qe extends w {
1572
1572
  }
1573
- class X extends $ {
1573
+ class Z extends $ {
1574
1574
  /**
1575
1575
  * Инициализирует экземпляр класса {@link Property}.
1576
1576
  *
@@ -1590,7 +1590,7 @@ class X extends $ {
1590
1590
  * Дополнительные метаданные свойства.
1591
1591
  */
1592
1592
  t(this, "metadata");
1593
- 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;
1594
1594
  }
1595
1595
  }
1596
1596
  class z {
@@ -1609,7 +1609,7 @@ class z {
1609
1609
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
1610
1610
  */
1611
1611
  t(this, "value");
1612
- 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) ?? "";
1613
1613
  }
1614
1614
  }
1615
1615
  class O {
@@ -1630,7 +1630,7 @@ class O {
1630
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;
1631
1631
  }
1632
1632
  }
1633
- class Ct {
1633
+ class Rt {
1634
1634
  /**
1635
1635
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
1636
1636
  *
@@ -1687,20 +1687,20 @@ class Ct {
1687
1687
  asClearRaw() {
1688
1688
  var e, s, i, o;
1689
1689
  const r = {};
1690
- return Object.keys(this).forEach((l) => {
1691
- const p = this[l];
1690
+ return Object.keys(this).forEach((c) => {
1691
+ const p = this[c];
1692
1692
  // eslint-disable-next-line prettier/prettier
1693
- 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);
1694
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;
1695
1695
  }
1696
1696
  }
1697
- class Fr extends w {
1697
+ class Br extends w {
1698
1698
  }
1699
- class Je extends w {
1699
+ class Ye extends w {
1700
1700
  }
1701
- class vt extends w {
1701
+ class At extends w {
1702
1702
  }
1703
- class Hr extends w {
1703
+ class Wr extends w {
1704
1704
  }
1705
1705
  class ue extends $ {
1706
1706
  /**
@@ -1735,21 +1735,21 @@ class G extends w {
1735
1735
  });
1736
1736
  }
1737
1737
  }
1738
- class zr extends w {
1738
+ class jr extends w {
1739
1739
  }
1740
- class Br extends w {
1740
+ class Vr extends w {
1741
1741
  }
1742
1742
  class M extends w {
1743
1743
  }
1744
- class Wr extends w {
1744
+ class Er extends w {
1745
1745
  }
1746
- class jr extends w {
1746
+ class Kr extends w {
1747
1747
  }
1748
- class Qe extends w {
1748
+ class Xe extends w {
1749
1749
  }
1750
- class Ye extends w {
1750
+ class Ze extends w {
1751
1751
  }
1752
- class D extends u {
1752
+ class A extends u {
1753
1753
  /**
1754
1754
  * Возвращает {@link Promise} для получения данных указанного справочника.
1755
1755
  *
@@ -1758,20 +1758,20 @@ class D extends u {
1758
1758
  * и использовать в случае аналогичных запросов.
1759
1759
  */
1760
1760
  getReference(r, e = !1) {
1761
- return this.getTypedDataArrayRequester(Fr, `/internal/references/${r}`, e);
1761
+ return this.getTypedDataArrayRequester(Br, `/internal/references/${r}`, e);
1762
1762
  }
1763
1763
  /**
1764
1764
  * Возвращает {@link Promise} для получения справочника данных о канале
1765
1765
  * первичного интереса.
1766
1766
  */
1767
1767
  getChannelPrimaryInterest() {
1768
- return this.getTypedDataArrayRequester(Je, "/internal/references/channel-primary-interest", !0);
1768
+ return this.getTypedDataArrayRequester(Ye, "/internal/references/channel-primary-interest", !0);
1769
1769
  }
1770
1770
  /**
1771
1771
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1772
1772
  */
1773
1773
  getContactPositions() {
1774
- return this.getTypedDataArrayRequester(Hr, "/internal/references/contact-position", !0);
1774
+ return this.getTypedDataArrayRequester(Wr, "/internal/references/contact-position", !0);
1775
1775
  }
1776
1776
  /**
1777
1777
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -1796,25 +1796,25 @@ class D extends u {
1796
1796
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1797
1797
  */
1798
1798
  getOrderPaymentStatuses() {
1799
- return this.getTypedDataArrayRequester(zr, "/public/references/order-payment-status", !0);
1799
+ return this.getTypedDataArrayRequester(jr, "/public/references/order-payment-status", !0);
1800
1800
  }
1801
1801
  /**
1802
1802
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1803
1803
  */
1804
1804
  getOrderStatuses() {
1805
- return this.getTypedDataArrayRequester(Br, "/public/references/order-status", !0);
1805
+ return this.getTypedDataArrayRequester(Vr, "/public/references/order-status", !0);
1806
1806
  }
1807
1807
  /**
1808
1808
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1809
1809
  */
1810
1810
  getPaymentTypes() {
1811
- return this.getTypedDataArrayRequester(Wr, "/public/references/payment-type", !0);
1811
+ return this.getTypedDataArrayRequester(Er, "/public/references/payment-type", !0);
1812
1812
  }
1813
1813
  /**
1814
1814
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1815
1815
  */
1816
1816
  getResourceTypes() {
1817
- return this.getTypedDataArrayRequester(Qe, "/internal/references/resource-type", !0);
1817
+ return this.getTypedDataArrayRequester(Xe, "/internal/references/resource-type", !0);
1818
1818
  }
1819
1819
  /**
1820
1820
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -1826,7 +1826,7 @@ class D extends u {
1826
1826
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1827
1827
  */
1828
1828
  getSourcePrimaryInterest() {
1829
- return this.getTypedDataArrayRequester(Ye, "/internal/references/source-primary-interest", !0);
1829
+ return this.getTypedDataArrayRequester(Ze, "/internal/references/source-primary-interest", !0);
1830
1830
  }
1831
1831
  /**
1832
1832
  * Выполняет поиск данных о городах по терму в названии.
@@ -1850,13 +1850,13 @@ class D extends u {
1850
1850
  * @param term Терм поиска.
1851
1851
  */
1852
1852
  searchCountry(r) {
1853
- return this.getTypedDataArrayRequester(Q, `/internal/references/country/search?term=${r}`);
1853
+ return this.getTypedDataArrayRequester(Y, `/internal/references/country/search?term=${r}`);
1854
1854
  }
1855
1855
  /**
1856
1856
  * Возвращает {@link Promise} для получения справочника типов доставки.
1857
1857
  */
1858
1858
  getDeliveryTypes() {
1859
- return this.getTypedDataArrayRequester(K, "/internal/references/delivery-type", !0);
1859
+ return this.getTypedDataArrayRequester(J, "/internal/references/delivery-type", !0);
1860
1860
  }
1861
1861
  /**
1862
1862
  * Возвращает {@link Promise} для получения справочника складов.
@@ -1868,7 +1868,7 @@ class D extends u {
1868
1868
  * Возвращает {@link Promise} для получения справочника типов свойств.
1869
1869
  */
1870
1870
  getPropertyTypes() {
1871
- return this.getTypedDataArrayRequester(Ke, "/internal/references/property-type", !0);
1871
+ return this.getTypedDataArrayRequester(Qe, "/internal/references/property-type", !0);
1872
1872
  }
1873
1873
  /**
1874
1874
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -1880,11 +1880,11 @@ class D extends u {
1880
1880
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
1881
1881
  */
1882
1882
  getProductFileType() {
1883
- return this.getTypedDataArrayRequester(jr, "/public/references/product-file-type", !0);
1883
+ return this.getTypedDataArrayRequester(Kr, "/public/references/product-file-type", !0);
1884
1884
  }
1885
1885
  }
1886
- var Vr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Vr || {});
1887
- 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 {
1888
1888
  /**
1889
1889
  * Инициализирует экземпляр класса {@link User}.
1890
1890
  *
@@ -1907,16 +1907,16 @@ class Er extends Ee {
1907
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;
1908
1908
  }
1909
1909
  }
1910
- class Kr extends u {
1910
+ class Yr extends u {
1911
1911
  /**
1912
1912
  * Возвращает данные о текущем пользователе.
1913
1913
  */
1914
1914
  // eslint-disable-next-line class-methods-use-this
1915
1915
  getCurrentUser() {
1916
- return this.get("/internal/users/info", {}, (r) => new Er(r.data));
1916
+ return this.get("/internal/users/info", {}, (r) => new Qr(r.data));
1917
1917
  }
1918
1918
  }
1919
- class Jr {
1919
+ class Xr {
1920
1920
  /**
1921
1921
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1922
1922
  *
@@ -1962,7 +1962,7 @@ class Jr {
1962
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;
1963
1963
  }
1964
1964
  }
1965
- class Ne {
1965
+ class de {
1966
1966
  /**
1967
1967
  * Инициализирует экземпляр класса {@link RecommendationsList}.
1968
1968
  *
@@ -1980,7 +1980,7 @@ class Ne {
1980
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)));
1981
1981
  }
1982
1982
  }
1983
- class Z extends $ {
1983
+ class ee extends $ {
1984
1984
  /**
1985
1985
  * Инициализирует экземпляр класса {@link PricingRole}.
1986
1986
  *
@@ -2015,7 +2015,7 @@ class Z extends $ {
2015
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;
2016
2016
  }
2017
2017
  }
2018
- class Oe {
2018
+ class qe {
2019
2019
  /**
2020
2020
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2021
2021
  *
@@ -2034,40 +2034,10 @@ class Oe {
2034
2034
  * Минимальный коэффициент цены.
2035
2035
  */
2036
2036
  t(this, "minCoefficient");
2037
- 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);
2038
- }
2039
- }
2040
- class Re {
2041
- /**
2042
- * Инициализирует экземпляр класса {@link PriceAnalyze}.
2043
- *
2044
- * @param data Данные для первоначальной инициализации.
2045
- */
2046
- constructor(r) {
2047
- /**
2048
- * Краткие данные о клиенте.
2049
- */
2050
- t(this, "client");
2051
- /**
2052
- * Базовые данные о продукте.
2053
- */
2054
- t(this, "product");
2055
- /**
2056
- * Стоимость товара или услуги.
2057
- */
2058
- t(this, "cost");
2059
- /**
2060
- * Коэффициент стоимости продукта от розничной цены.
2061
- */
2062
- t(this, "costCoefficient");
2063
- /**
2064
- * Источник клиентской цены.
2065
- */
2066
- t(this, "source");
2067
- 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) ?? xe.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);
2068
2038
  }
2069
2039
  }
2070
- class Pt extends u {
2040
+ class Dt extends u {
2071
2041
  /**
2072
2042
  * Возвращает данные о результатах поиска категорий и товаров.
2073
2043
  *
@@ -2094,11 +2064,11 @@ class Pt extends u {
2094
2064
  */
2095
2065
  // eslint-disable-next-line class-methods-use-this
2096
2066
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2097
- let l = `${b.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2098
- 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;
2099
2069
  }
2100
2070
  }
2101
- class Rt extends u {
2071
+ class $t extends u {
2102
2072
  /**
2103
2073
  * Импортирует цены клиента из CSV файла.
2104
2074
  *
@@ -2222,7 +2192,7 @@ class Rt extends u {
2222
2192
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2223
2193
  increase_percent: s.value
2224
2194
  },
2225
- (o) => new J(o.data)
2195
+ (o) => new Q(o.data)
2226
2196
  );
2227
2197
  }
2228
2198
  /**
@@ -2234,7 +2204,7 @@ class Rt extends u {
2234
2204
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2235
2205
  */
2236
2206
  removeProductPrice(r, e) {
2237
- 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));
2238
2208
  }
2239
2209
  /**
2240
2210
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2297,7 +2267,7 @@ class Rt extends u {
2297
2267
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2298
2268
  }
2299
2269
  }
2300
- class Dt extends u {
2270
+ class bt extends u {
2301
2271
  /**
2302
2272
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2303
2273
  *
@@ -2309,7 +2279,7 @@ class Dt extends u {
2309
2279
  return this.get(
2310
2280
  `/internal/clients/${r}/price/templates`,
2311
2281
  {},
2312
- (e) => e.data.map((s) => new Y(s))
2282
+ (e) => e.data.map((s) => new X(s))
2313
2283
  );
2314
2284
  }
2315
2285
  /**
@@ -2320,7 +2290,7 @@ class Dt extends u {
2320
2290
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2321
2291
  */
2322
2292
  getActiveTemplate(r) {
2323
- 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));
2324
2294
  }
2325
2295
  /**
2326
2296
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2339,7 +2309,7 @@ class Dt extends u {
2339
2309
  startAt: s.startAt && B(s.startAt, i),
2340
2310
  endAt: s.endAt && B(s.endAt, i)
2341
2311
  },
2342
- (o) => new Y(o.data)
2312
+ (o) => new X(o.data)
2343
2313
  );
2344
2314
  }
2345
2315
  /**
@@ -2371,7 +2341,7 @@ class Dt extends u {
2371
2341
  startAt: i.startAt && B(i.startAt, o),
2372
2342
  endAt: i.endAt && B(i.endAt, o)
2373
2343
  },
2374
- (l) => new Y(l.data)
2344
+ (c) => new X(c.data)
2375
2345
  );
2376
2346
  }
2377
2347
  /**
@@ -2387,7 +2357,7 @@ class Dt extends u {
2387
2357
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2388
2358
  }
2389
2359
  }
2390
- class At extends u {
2360
+ class Tt extends u {
2391
2361
  /**
2392
2362
  * Возвращает список данных о корневых категориях.
2393
2363
  *
@@ -2460,7 +2430,7 @@ class At extends u {
2460
2430
  getCategoryProductsCoefficients(r) {
2461
2431
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2462
2432
  const { data: s } = e;
2463
- return ur(s, (i) => i.map((o) => new Le(o))), s;
2433
+ return gr(s, (i) => i.map((o) => new Ie(o))), s;
2464
2434
  });
2465
2435
  }
2466
2436
  /**
@@ -2472,14 +2442,14 @@ class At extends u {
2472
2442
  publicSimpleSearch(r, e = 10) {
2473
2443
  return new Promise((s, i) => {
2474
2444
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2475
- s(o.categories.map((l) => new q(l)));
2445
+ s(o.categories.map((c) => new q(c)));
2476
2446
  }).catch((o) => {
2477
2447
  i(o);
2478
2448
  });
2479
2449
  });
2480
2450
  }
2481
2451
  }
2482
- class $t extends u {
2452
+ class _t extends u {
2483
2453
  /**
2484
2454
  * Возвращает данные об указанном продукте.
2485
2455
  *
@@ -2510,7 +2480,7 @@ class $t extends u {
2510
2480
  return this.get(
2511
2481
  `/internal/catalog/products/${r}/coefficients`,
2512
2482
  {},
2513
- (e) => ce(e.data, (s) => new Le(s))
2483
+ (e) => ce(e.data, (s) => new Ie(s))
2514
2484
  );
2515
2485
  }
2516
2486
  /**
@@ -2523,7 +2493,7 @@ class $t extends u {
2523
2493
  */
2524
2494
  getProductPriceHistory(r, e) {
2525
2495
  const s = {};
2526
- 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)));
2527
2497
  }
2528
2498
  /**
2529
2499
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2534,14 +2504,14 @@ class $t extends u {
2534
2504
  publicSimpleSearch(r, e = 10) {
2535
2505
  return new Promise((s, i) => {
2536
2506
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2537
- s(o.products.map((l) => new _(l)));
2507
+ s(o.products.map((c) => new _(c)));
2538
2508
  }).catch((o) => {
2539
2509
  i(o);
2540
2510
  });
2541
2511
  });
2542
2512
  }
2543
2513
  }
2544
- class bt extends u {
2514
+ class St extends u {
2545
2515
  /**
2546
2516
  * Возвращает список данных о корневых категориях указанного клиента.
2547
2517
  *
@@ -2599,11 +2569,11 @@ class bt extends u {
2599
2569
  showHidden: i,
2600
2570
  withPriceCoefficients: s
2601
2571
  },
2602
- (o) => ce(o.data, (l) => new J(l))
2572
+ (o) => ce(o.data, (c) => new Q(c))
2603
2573
  );
2604
2574
  }
2605
2575
  }
2606
- class Tt extends u {
2576
+ class Lt extends u {
2607
2577
  /**
2608
2578
  * Возвращает данные об указанном продукте для указанного клиента.
2609
2579
  *
@@ -2620,12 +2590,12 @@ class Tt extends u {
2620
2590
  clientId: e,
2621
2591
  withPriceCoefficients: s
2622
2592
  },
2623
- (i) => new J(i.data)
2593
+ (i) => new Q(i.data)
2624
2594
  );
2625
2595
  }
2626
2596
  }
2627
- var ae = /* @__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))(ae || {});
2628
- 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 {
2629
2599
  /**
2630
2600
  * Инициализирует экземпляр класса {@link FilterItem}.
2631
2601
  *
@@ -2644,7 +2614,7 @@ class de {
2644
2614
  * Значение с которым сравнивается поле.
2645
2615
  */
2646
2616
  t(this, "value");
2647
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? ae.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) ?? "";
2648
2618
  }
2649
2619
  /**
2650
2620
  * Преобразует фильтр в примитивное представление для API.
@@ -2656,7 +2626,7 @@ class de {
2656
2626
  field: this.field,
2657
2627
  op: this.op
2658
2628
  };
2659
- return r.value = hr(this.value) ? B(this.value, b.getConfig().dateFormats.api) : this.value, r;
2629
+ return r.value = mr(this.value) ? B(this.value, b.getConfig().dateFormats.api) : this.value, r;
2660
2630
  }
2661
2631
  }
2662
2632
  class se {
@@ -2679,7 +2649,7 @@ class se {
2679
2649
  */
2680
2650
  t(this, "groups");
2681
2651
  var e, s;
2682
- 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))) ?? [];
2683
2653
  }
2684
2654
  /**
2685
2655
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2689,7 +2659,7 @@ class se {
2689
2659
  toPrimitive() {
2690
2660
  return {
2691
2661
  groupOp: this.groupOp,
2692
- 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),
2693
2663
  groups: this.groups.map((r) => r instanceof se ? r.toPrimitive() : r)
2694
2664
  };
2695
2665
  }
@@ -2706,15 +2676,15 @@ class Ce extends u {
2706
2676
  * @param successHandler Обработчик успешного выполнения запроса.
2707
2677
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
2708
2678
  */
2709
- getPaginated(r, e, s, i, o, l, p) {
2679
+ getPaginated(r, e, s, i, o, c, p) {
2710
2680
  let g = {
2711
2681
  page: (i == null ? void 0 : i.page) ?? 1,
2712
2682
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2713
2683
  };
2714
- 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);
2715
2685
  }
2716
2686
  }
2717
- class _t extends Ce {
2687
+ class at extends Ce {
2718
2688
  /**
2719
2689
  * Возвращает список шаблонов прайс-листа.
2720
2690
  *
@@ -2727,7 +2697,7 @@ class _t extends Ce {
2727
2697
  getTemplateList(r, e, s) {
2728
2698
  return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
2729
2699
  const o = { ...i.data };
2730
- return o.data = o.data.map((l) => new W(l)), o;
2700
+ return o.data = o.data.map((c) => new W(c)), o;
2731
2701
  });
2732
2702
  }
2733
2703
  /**
@@ -2902,18 +2872,18 @@ class _t extends Ce {
2902
2872
  return this.get(
2903
2873
  `/internal/price/templates/${r}/clients`,
2904
2874
  {},
2905
- (e) => e.data.map((s) => new Y(s))
2875
+ (e) => e.data.map((s) => new X(s))
2906
2876
  );
2907
2877
  }
2908
2878
  }
2909
- class St extends u {
2879
+ class It extends u {
2910
2880
  /**
2911
2881
  * Возвращает список ролей ценообразования.
2912
2882
  *
2913
2883
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
2914
2884
  */
2915
2885
  getRoles() {
2916
- 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)));
2917
2887
  }
2918
2888
  /**
2919
2889
  * Добавляет новую роль ценообразования.
@@ -2923,7 +2893,7 @@ class St extends u {
2923
2893
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
2924
2894
  */
2925
2895
  createRole(r) {
2926
- 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));
2927
2897
  }
2928
2898
  /**
2929
2899
  * Возвращает данные роли ценообразования.
@@ -2933,7 +2903,7 @@ class St extends u {
2933
2903
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
2934
2904
  */
2935
2905
  getRole(r) {
2936
- 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));
2937
2907
  }
2938
2908
  /**
2939
2909
  * Обновляет данные роли ценообразования.
@@ -2944,7 +2914,7 @@ class St extends u {
2944
2914
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
2945
2915
  */
2946
2916
  updateRole(r, e) {
2947
- 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));
2948
2918
  }
2949
2919
  /**
2950
2920
  * Удаляет роль ценообразования.
@@ -2967,7 +2937,7 @@ class St extends u {
2967
2937
  return this.get(
2968
2938
  `/internal/price/roles/rules/categories/${r}`,
2969
2939
  {},
2970
- (e) => e.data.map((s) => new Oe(s))
2940
+ (e) => e.data.map((s) => new qe(s))
2971
2941
  );
2972
2942
  }
2973
2943
  /**
@@ -2982,11 +2952,11 @@ class St extends u {
2982
2952
  return this.patch(
2983
2953
  `/internal/price/roles/rules/categories/${r}`,
2984
2954
  e,
2985
- (s) => s.data.map((i) => new Oe(i))
2955
+ (s) => s.data.map((i) => new qe(i))
2986
2956
  );
2987
2957
  }
2988
2958
  }
2989
- class Lt extends Ce {
2959
+ class xt extends Ce {
2990
2960
  /**
2991
2961
  * Возвращает пагинированный список свойств.
2992
2962
  *
@@ -2999,7 +2969,7 @@ class Lt extends Ce {
2999
2969
  getProperties(r, e, s) {
3000
2970
  return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
3001
2971
  const o = { ...i.data };
3002
- return o.data = o.data.map((l) => new X(l)), o;
2972
+ return o.data = o.data.map((c) => new Z(c)), o;
3003
2973
  });
3004
2974
  }
3005
2975
  /**
@@ -3016,7 +2986,7 @@ class Lt extends Ce {
3016
2986
  ...s,
3017
2987
  type: e
3018
2988
  },
3019
- (i) => new X(i.data)
2989
+ (i) => new Z(i.data)
3020
2990
  );
3021
2991
  }
3022
2992
  /**
@@ -3026,7 +2996,7 @@ class Lt extends Ce {
3026
2996
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3027
2997
  */
3028
2998
  getProperty(r) {
3029
- 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));
3030
3000
  }
3031
3001
  /**
3032
3002
  * Обновляет существующее свойство.
@@ -3043,7 +3013,7 @@ class Lt extends Ce {
3043
3013
  ...i,
3044
3014
  type: s
3045
3015
  },
3046
- (o) => new X(o.data)
3016
+ (o) => new Z(o.data)
3047
3017
  );
3048
3018
  }
3049
3019
  /**
@@ -3358,14 +3328,14 @@ class Lt extends Ce {
3358
3328
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3359
3329
  }
3360
3330
  }
3361
- class It extends u {
3331
+ class kt extends u {
3362
3332
  /**
3363
3333
  * Возвращает данные о рекомендациях указанной категории продуктов.
3364
3334
  *
3365
3335
  * @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
3366
3336
  */
3367
3337
  getProductCategoryRecommendations(r) {
3368
- 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));
3369
3339
  }
3370
3340
  /**
3371
3341
  * Возвращает данные о рекомендациях указанного продукта.
@@ -3373,7 +3343,7 @@ class It extends u {
3373
3343
  * @param product Данные о продукте, для которого необходимо получить рекомендации.
3374
3344
  */
3375
3345
  getProductRecommendations(r) {
3376
- 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));
3377
3347
  }
3378
3348
  /**
3379
3349
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -3400,61 +3370,8 @@ class It extends u {
3400
3370
  });
3401
3371
  }
3402
3372
  }
3403
- const qe = (n) => {
3404
- const r = {};
3405
- 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;
3406
- };
3407
- class xt extends u {
3408
- /**
3409
- * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
3410
- *
3411
- * @param productId Идентификатор продукта.
3412
- * @param params Параметры анализа цен.
3413
- *
3414
- * @see /doc/api/internal#/operations/api_internal_catalog_price_products_analyze
3415
- */
3416
- analyzeProductPrices(r, e) {
3417
- return this.get(
3418
- `/internal/price/products/${r}/analyze`,
3419
- { ...qe(e) },
3420
- (s) => s.data.map((i) => new Re(i))
3421
- );
3422
- }
3423
- /**
3424
- * Возвращает список клиентских цен на продукты категории в указанном диапазоне цены.
3425
- *
3426
- * @param productCategoryId Идентификатор категории продукта.
3427
- * @param params Параметры анализа цен.
3428
- *
3429
- * @see /doc/api/internal#/operations/api_internal_catalog_price_categories_analyze
3430
- */
3431
- analyzeCategoryPrices(r, e) {
3432
- return this.get(
3433
- `/internal/price/categories/${r}/analyze`,
3434
- { ...qe(e) },
3435
- (s) => s.data.map((i) => new Re(i))
3436
- );
3437
- }
3438
- /**
3439
- * Возвращает список клиентских цен на продукты категории в указанном диапазоне цены за квадратный метр.
3440
- *
3441
- * @param productCategoryId Идентификатор категории продукта.
3442
- * @param params Параметры анализа цен.
3443
- * @param params.from Цена больше или равна значению.
3444
- * @param params.to Цена меньше или равна значению.
3445
- *
3446
- * @see /doc/api/internal#/operations/api_internal_catalog_price_categories_analyze_by_square
3447
- */
3448
- analyzeCategoryPricesBySquare(r, e) {
3449
- return this.get(
3450
- `/internal/price/categories/${r}/analyze/square`,
3451
- { ...e },
3452
- (s) => s.data.map((i) => new Re(i))
3453
- );
3454
- }
3455
- }
3456
- 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 || {});
3457
- class Te 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 {
3458
3375
  /**
3459
3376
  * Инициализирует экземпляр класса {@link BankAccount}.
3460
3377
  *
@@ -3485,7 +3402,7 @@ class Te extends H {
3485
3402
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ue(e.currency));
3486
3403
  }
3487
3404
  }
3488
- class _e extends $ {
3405
+ class Se extends $ {
3489
3406
  /**
3490
3407
  * Инициализирует экземпляр класса {@link Contact}.
3491
3408
  *
@@ -3504,7 +3421,7 @@ class _e extends $ {
3504
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;
3505
3422
  }
3506
3423
  }
3507
- class F extends _e {
3424
+ class F extends Se {
3508
3425
  /**
3509
3426
  * Инициализирует экземпляр класса {@link ContactPerson}.
3510
3427
  *
@@ -3539,7 +3456,7 @@ class F extends _e {
3539
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;
3540
3457
  }
3541
3458
  }
3542
- class Xe extends $ {
3459
+ class er extends $ {
3543
3460
  /**
3544
3461
  * Инициализирует экземпляр класса {@link ContragentBase}.
3545
3462
  *
@@ -3606,13 +3523,13 @@ class Xe extends $ {
3606
3523
  if (e.bankAccounts) {
3607
3524
  const s = [];
3608
3525
  e.bankAccounts.forEach((i) => {
3609
- s.push(new Te(i));
3526
+ s.push(new _e(i));
3610
3527
  }), this.bankAccounts = s;
3611
3528
  }
3612
3529
  }
3613
3530
  }
3614
3531
  }
3615
- class Yr extends Xe {
3532
+ class et extends er {
3616
3533
  /**
3617
3534
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3618
3535
  *
@@ -3622,7 +3539,7 @@ class Yr extends Xe {
3622
3539
  super(r);
3623
3540
  }
3624
3541
  }
3625
- class Ze extends Xe {
3542
+ class rr extends er {
3626
3543
  /**
3627
3544
  * Инициализирует экземпляр класса {@link ContragentIc}.
3628
3545
  *
@@ -3665,7 +3582,7 @@ class Ze extends Xe {
3665
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 ?? "");
3666
3583
  }
3667
3584
  }
3668
- class er extends Ze {
3585
+ class tr extends rr {
3669
3586
  /**
3670
3587
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3671
3588
  *
@@ -3680,7 +3597,7 @@ class er extends Ze {
3680
3597
  e && (this.kpp = e.kpp ?? "");
3681
3598
  }
3682
3599
  }
3683
- class Xr extends er {
3600
+ class rt extends tr {
3684
3601
  /**
3685
3602
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3686
3603
  *
@@ -3691,7 +3608,7 @@ class Xr extends er {
3691
3608
  /**
3692
3609
  * Страна регистрации юридического лица нерезидента.
3693
3610
  */
3694
- t(this, "registrationCountry", new Q());
3611
+ t(this, "registrationCountry", new Y());
3695
3612
  /**
3696
3613
  * Регистрационный номер юридического лица нерезидента.
3697
3614
  */
@@ -3700,7 +3617,7 @@ class Xr extends er {
3700
3617
  * Налоговый номер юридического лица нерезидента.
3701
3618
  */
3702
3619
  t(this, "taxNumber", "");
3703
- 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 ?? "");
3704
3621
  }
3705
3622
  }
3706
3623
  class he {
@@ -3712,17 +3629,17 @@ class he {
3712
3629
  static createInstance(r) {
3713
3630
  switch (r.opf.slug) {
3714
3631
  case T.Ic:
3715
- return new Ze(r);
3632
+ return new rr(r);
3716
3633
  case T.UlR:
3717
- return new er(r);
3634
+ return new tr(r);
3718
3635
  case T.UlNr:
3719
- return new Xr(r);
3636
+ return new rt(r);
3720
3637
  default:
3721
- return new Yr(r);
3638
+ return new et(r);
3722
3639
  }
3723
3640
  }
3724
3641
  }
3725
- class De extends H {
3642
+ class Re extends H {
3726
3643
  /**
3727
3644
  * Инициализирует экземпляр класса {@link ContactRelation}.
3728
3645
  *
@@ -3737,7 +3654,7 @@ class De extends H {
3737
3654
  this.isPrimary = e.isPrimary;
3738
3655
  }
3739
3656
  }
3740
- class Zr extends F {
3657
+ class tt extends F {
3741
3658
  /**
3742
3659
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3743
3660
  *
@@ -3762,10 +3679,10 @@ class Zr extends F {
3762
3679
  */
3763
3680
  addresses: []
3764
3681
  });
3765
- 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))));
3766
3683
  }
3767
3684
  }
3768
- class ge extends qr {
3685
+ class ge extends Mr {
3769
3686
  /**
3770
3687
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3771
3688
  *
@@ -3802,10 +3719,10 @@ class ge extends qr {
3802
3719
  * Признак того, что указанный адрес является адресом транспортной компании.
3803
3720
  */
3804
3721
  t(this, "isTransportCompanyAddress");
3805
- 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;
3806
3723
  }
3807
3724
  }
3808
- class Ue extends ne {
3725
+ class Ge extends ne {
3809
3726
  /**
3810
3727
  * Инициализирует экземпляр класса {@link Client}.
3811
3728
  *
@@ -3813,7 +3730,7 @@ class Ue extends ne {
3813
3730
  */
3814
3731
  // eslint-disable-next-line sonarjs/cognitive-complexity
3815
3732
  constructor(e) {
3816
- var s, i, o, l;
3733
+ var s, i, o, c;
3817
3734
  super(e);
3818
3735
  /**
3819
3736
  * Список контрагентов клиента.
@@ -3859,10 +3776,10 @@ class Ue extends ne {
3859
3776
  * Дополнительные данные о клиенте.
3860
3777
  */
3861
3778
  t(this, "extraData");
3862
- 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) ?? {};
3863
3780
  }
3864
3781
  }
3865
- class at {
3782
+ class Nt {
3866
3783
  /**
3867
3784
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3868
3785
  *
@@ -3954,7 +3871,7 @@ class at {
3954
3871
  */
3955
3872
  t(this, "lastOrder");
3956
3873
  var e, s, i;
3957
- 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 = {
3958
3875
  createdAt: new O((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3959
3876
  creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
3960
3877
  isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
@@ -4007,13 +3924,13 @@ class at {
4007
3924
  this.contragentType = new G();
4008
3925
  break;
4009
3926
  case "preferredDeliveryType":
4010
- this.preferredDeliveryType = new K();
3927
+ this.preferredDeliveryType = new J();
4011
3928
  break;
4012
3929
  case "partnerGroup":
4013
3930
  this.partnerGroup = new M();
4014
3931
  break;
4015
3932
  case "contact":
4016
- this.contact = new _e();
3933
+ this.contact = new Se();
4017
3934
  break;
4018
3935
  }
4019
3936
  return this;
@@ -4025,14 +3942,14 @@ class at {
4025
3942
  asClearRaw() {
4026
3943
  var e, s, i, o;
4027
3944
  const r = {};
4028
- return Object.keys(this).forEach((l) => {
4029
- const p = this[l];
3945
+ return Object.keys(this).forEach((c) => {
3946
+ const p = this[c];
4030
3947
  // eslint-disable-next-line prettier/prettier
4031
- 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);
4032
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;
4033
3950
  }
4034
3951
  }
4035
- class rr extends H {
3952
+ class sr extends H {
4036
3953
  /**
4037
3954
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4038
3955
  *
@@ -4055,7 +3972,7 @@ class rr extends H {
4055
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;
4056
3973
  }
4057
3974
  }
4058
- class et extends $ {
3975
+ class st extends $ {
4059
3976
  /**
4060
3977
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4061
3978
  *
@@ -4088,10 +4005,10 @@ class et extends $ {
4088
4005
  * Список менеджеров.
4089
4006
  */
4090
4007
  t(this, "managers");
4091
- (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)));
4092
4009
  }
4093
4010
  }
4094
- class rt {
4011
+ class it {
4095
4012
  /**
4096
4013
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4097
4014
  *
@@ -4109,7 +4026,7 @@ class rt {
4109
4026
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4110
4027
  }
4111
4028
  }
4112
- class kt extends rt {
4029
+ class Ot extends it {
4113
4030
  /**
4114
4031
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4115
4032
  *
@@ -4140,7 +4057,7 @@ class kt extends rt {
4140
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;
4141
4058
  }
4142
4059
  }
4143
- class Nt {
4060
+ class dt {
4144
4061
  /**
4145
4062
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4146
4063
  *
@@ -4158,7 +4075,7 @@ class Nt {
4158
4075
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4159
4076
  }
4160
4077
  }
4161
- class Ot extends Ce {
4078
+ class qt extends Ce {
4162
4079
  /**
4163
4080
  * Возвращает данные об указанном клиенте.
4164
4081
  *
@@ -4166,7 +4083,7 @@ class Ot extends Ce {
4166
4083
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4167
4084
  */
4168
4085
  getClient(r) {
4169
- return this.get(`/internal/clients/${r}`, {}, (e) => new Ue(e.data));
4086
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Ge(e.data));
4170
4087
  }
4171
4088
  /**
4172
4089
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4180,8 +4097,8 @@ class Ot extends Ce {
4180
4097
  */
4181
4098
  getClientsList(r, e, s, i) {
4182
4099
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4183
- const l = { ...o.data };
4184
- 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;
4185
4102
  });
4186
4103
  }
4187
4104
  /**
@@ -4194,7 +4111,7 @@ class Ot extends Ce {
4194
4111
  return this.getClientsList({
4195
4112
  groupOp: "and",
4196
4113
  groups: [],
4197
- filters: [{ field: "phone", op: ae.Contains, value: r }]
4114
+ filters: [{ field: "phone", op: Ne.Contains, value: r }]
4198
4115
  });
4199
4116
  }
4200
4117
  /**
@@ -4208,7 +4125,7 @@ class Ot extends Ce {
4208
4125
  const s = r.map((i) => i.id);
4209
4126
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4210
4127
  let o = [];
4211
- 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;
4212
4129
  });
4213
4130
  }
4214
4131
  /**
@@ -4220,7 +4137,7 @@ class Ot extends Ce {
4220
4137
  getAllClientContacts(r) {
4221
4138
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4222
4139
  let s = [];
4223
- 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;
4224
4141
  });
4225
4142
  }
4226
4143
  /**
@@ -4250,7 +4167,7 @@ class Ot extends Ce {
4250
4167
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4251
4168
  preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4252
4169
  },
4253
- (i) => new Ue(i.data),
4170
+ (i) => new Ge(i.data),
4254
4171
  e
4255
4172
  );
4256
4173
  }
@@ -4360,9 +4277,9 @@ class Ot extends Ce {
4360
4277
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4361
4278
  */
4362
4279
  createContragentClientData(r, e, s = {}) {
4363
- var g, R, A, I, x, a, k, N;
4280
+ var g, R, D, a, I, x, k, N;
4364
4281
  let i;
4365
- const o = e, l = e, p = e;
4282
+ const o = e, c = e, p = e;
4366
4283
  switch (e.opf.slug) {
4367
4284
  case T.Ic:
4368
4285
  i = {
@@ -4384,21 +4301,21 @@ class Ot extends Ce {
4384
4301
  break;
4385
4302
  case T.UlR:
4386
4303
  i = {
4387
- opf: l.opf.slug,
4388
- name: l.name,
4389
- alternative_name: l.alternativeName,
4390
- partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
4391
- manager_id: (I = l.manager) == null ? void 0 : I.id,
4392
- comment: l.comment,
4393
- inn: l.inn,
4394
- kpp: l.kpp,
4395
- okpo: l.okpo,
4396
- director_name: l.directorName,
4397
- director_position: l.directorPosition,
4398
- director_acts_on: l.directorActsOn,
4399
- legal_address: l.legalAddress,
4400
- postal_address: l.postalAddress,
4401
- 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
4402
4319
  };
4403
4320
  break;
4404
4321
  case T.UlNr:
@@ -4406,8 +4323,8 @@ class Ot extends Ce {
4406
4323
  opf: p.opf.slug,
4407
4324
  name: p.name,
4408
4325
  alternative_name: p.alternativeName,
4409
- partner_group_id: (x = p.partnerGroup) == null ? void 0 : x.id,
4410
- manager_id: (a = p.manager) == null ? void 0 : a.id,
4326
+ partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4327
+ manager_id: (x = p.manager) == null ? void 0 : x.id,
4411
4328
  comment: p.comment,
4412
4329
  director_name: p.directorName,
4413
4330
  director_position: p.directorPosition,
@@ -4449,9 +4366,9 @@ class Ot extends Ce {
4449
4366
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4450
4367
  */
4451
4368
  updateContragentClientData(r, e, s = {}) {
4452
- var g, R, A, I, x, a, k, N;
4369
+ var g, R, D, a, I, x, k, N;
4453
4370
  let i;
4454
- const o = e, l = e, p = e;
4371
+ const o = e, c = e, p = e;
4455
4372
  switch (e.opf.slug) {
4456
4373
  case T.Ic:
4457
4374
  i = {
@@ -4473,21 +4390,21 @@ class Ot extends Ce {
4473
4390
  break;
4474
4391
  case T.UlR:
4475
4392
  i = {
4476
- opf: l.opf.slug,
4477
- name: l.name,
4478
- alternative_name: l.alternativeName,
4479
- partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
4480
- manager_id: (I = l.manager) == null ? void 0 : I.id,
4481
- comment: l.comment,
4482
- inn: l.inn,
4483
- kpp: l.kpp,
4484
- okpo: l.okpo,
4485
- director_name: l.directorName,
4486
- director_position: l.directorPosition,
4487
- director_acts_on: l.directorActsOn,
4488
- legal_address: l.legalAddress,
4489
- postal_address: l.postalAddress,
4490
- 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
4491
4408
  };
4492
4409
  break;
4493
4410
  case T.UlNr:
@@ -4495,8 +4412,8 @@ class Ot extends Ce {
4495
4412
  opf: p.opf.slug,
4496
4413
  name: p.name,
4497
4414
  alternative_name: p.alternativeName,
4498
- partner_group_id: (x = p.partnerGroup) == null ? void 0 : x.id,
4499
- manager_id: (a = p.manager) == null ? void 0 : a.id,
4415
+ partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4416
+ manager_id: (x = p.manager) == null ? void 0 : x.id,
4500
4417
  comment: p.comment,
4501
4418
  director_name: p.directorName,
4502
4419
  director_position: p.directorPosition,
@@ -4548,7 +4465,7 @@ class Ot extends Ce {
4548
4465
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_create
4549
4466
  */
4550
4467
  createClientDeliveryAddress(r, e, s = {}) {
4551
- var o, l;
4468
+ var o, c;
4552
4469
  const i = {
4553
4470
  address: e.address,
4554
4471
  is_one_time: e.isOneTime ?? !1,
@@ -4557,7 +4474,7 @@ class Ot extends Ce {
4557
4474
  };
4558
4475
  return e.coordinates && (i.coordinates = {
4559
4476
  lat: (o = e.coordinates) == null ? void 0 : o.lat,
4560
- long: (l = e.coordinates) == null ? void 0 : l.long
4477
+ long: (c = e.coordinates) == null ? void 0 : c.long
4561
4478
  }), e.operatingHours && (i.operating_hours = {
4562
4479
  from: e.operatingHours.from,
4563
4480
  to: e.operatingHours.to
@@ -4574,7 +4491,7 @@ class Ot extends Ce {
4574
4491
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_update
4575
4492
  */
4576
4493
  updateClientDeliveryAddress(r, e, s = {}) {
4577
- var o, l;
4494
+ var o, c;
4578
4495
  const i = {
4579
4496
  address: e.address,
4580
4497
  is_one_time: e.isOneTime ?? !1,
@@ -4586,7 +4503,7 @@ class Ot extends Ce {
4586
4503
  to: e.operatingHours.to
4587
4504
  }), e.coordinates && (i.coordinates = {
4588
4505
  lat: (o = e.coordinates) == null ? void 0 : o.lat,
4589
- long: (l = e.coordinates) == null ? void 0 : l.long
4506
+ long: (c = e.coordinates) == null ? void 0 : c.long
4590
4507
  }), this.patch(
4591
4508
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4592
4509
  i,
@@ -4626,7 +4543,7 @@ class Ot extends Ce {
4626
4543
  correspondent_account: s.correspondentAccount,
4627
4544
  currency_id: s.currency.id
4628
4545
  },
4629
- (o) => new Te(o.data),
4546
+ (o) => new _e(o.data),
4630
4547
  i
4631
4548
  );
4632
4549
  }
@@ -4652,7 +4569,7 @@ class Ot extends Ce {
4652
4569
  correspondent_account: s.correspondentAccount,
4653
4570
  currency_id: s.currency.id
4654
4571
  },
4655
- (o) => new Te(o.data),
4572
+ (o) => new _e(o.data),
4656
4573
  i
4657
4574
  );
4658
4575
  }
@@ -4849,14 +4766,14 @@ class Ot extends Ce {
4849
4766
  * в случае ошибок в запросах.
4850
4767
  */
4851
4768
  createContact(r, e, s, i = {}) {
4852
- var l, p;
4769
+ var c, p;
4853
4770
  const o = {
4854
4771
  name: e.name,
4855
4772
  position: e.position,
4856
4773
  comment: e.comment,
4857
4774
  ...s
4858
4775
  };
4859
- 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);
4860
4777
  }
4861
4778
  /**
4862
4779
  * Устанавливает признак основного контактного лица.
@@ -4885,7 +4802,7 @@ class Ot extends Ce {
4885
4802
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4886
4803
  }
4887
4804
  }
4888
- class dt extends u {
4805
+ class Ut extends u {
4889
4806
  /**
4890
4807
  * Выполняет проверку занят ли указанный номер телефона.
4891
4808
  *
@@ -4899,7 +4816,7 @@ class dt extends u {
4899
4816
  });
4900
4817
  }
4901
4818
  }
4902
- class qt extends u {
4819
+ class Gt extends u {
4903
4820
  /**
4904
4821
  * Возвращает настройки указанного конфигуратора для указанной категории.
4905
4822
  *
@@ -4927,10 +4844,10 @@ class qt extends u {
4927
4844
  const i = this.get(
4928
4845
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
4929
4846
  { params: e },
4930
- (l) => new _(l.data)
4847
+ (c) => new _(c.data)
4931
4848
  );
4932
- return i.catch((l) => {
4933
- this.defaultInstanceNotificationErrorResponseHandler(l, s);
4849
+ return i.catch((c) => {
4850
+ this.defaultInstanceNotificationErrorResponseHandler(c, s);
4934
4851
  }), i;
4935
4852
  }
4936
4853
  /**
@@ -4970,18 +4887,18 @@ class qt extends u {
4970
4887
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
4971
4888
  }
4972
4889
  }
4973
- class Ut {
4890
+ class Mt {
4974
4891
  /**
4975
4892
  * Возвращает диапазон дат по умолчанию.
4976
4893
  */
4977
4894
  static defaultDateRanges() {
4978
- const r = yr(/* @__PURE__ */ new Date(), 1);
4895
+ const r = vr(/* @__PURE__ */ new Date(), 1);
4979
4896
  return {
4980
4897
  // 'Следующий рабочий день' - это значение по-умолчанию
4981
- nextWorkingDay: { label: "Следующий рабочий день", from: Ar(r), to: Dr(r) },
4982
- today: { label: "Сегодня", from: He(), to: Rr() },
4983
- yesterday: { label: "Вчера", from: Pr(), to: vr() },
4984
- 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() }
4985
4902
  };
4986
4903
  }
4987
4904
  }
@@ -5025,8 +4942,8 @@ const E = class E {
5025
4942
  * Список единиц измерения линейной величины.
5026
4943
  */
5027
4944
  t(E, "linearValues", ["пог.м.", "м.", "м2"]);
5028
- let Ge = E;
5029
- class Gt {
4945
+ let Me = E;
4946
+ class Ft {
5030
4947
  /**
5031
4948
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5032
4949
  */
@@ -5042,26 +4959,26 @@ class Gt {
5042
4959
  return r.id === 0 && r.guid === "-undefined-";
5043
4960
  }
5044
4961
  }
5045
- class tt extends u {
4962
+ class nt extends u {
5046
4963
  /**
5047
4964
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5048
4965
  */
5049
4966
  getManagers() {
5050
4967
  const r = "/internal/managers", e = u.getCachedResponse(r);
5051
4968
  return e ? Promise.resolve(e) : this.get(r).then((s) => {
5052
- const i = s.data.map((o) => Ie.instanceInitializer(we, o));
4969
+ const i = s.data.map((o) => xe.instanceInitializer(we, o));
5053
4970
  return i && this.cacheResponse(r, i), i;
5054
4971
  });
5055
4972
  }
5056
4973
  }
5057
- class tr extends rr {
4974
+ class ir extends sr {
5058
4975
  /**
5059
4976
  * Инициализирует экземпляр класса {@link OrderInfo}.
5060
4977
  *
5061
4978
  * @param data Данные для первоначальной инициализации.
5062
4979
  */
5063
4980
  constructor(e) {
5064
- var s, i, o, l, p, g, R, A;
4981
+ var s, i, o, c, p, g, R, D;
5065
4982
  super(e);
5066
4983
  /**
5067
4984
  * Краткие данные о клиенте.
@@ -5108,14 +5025,14 @@ class tr extends rr {
5108
5025
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5109
5026
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5110
5027
  }, this.delivery = {
5111
- 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,
5112
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(),
5113
5030
  address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new ge(e.delivery.address) : void 0,
5114
- 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
5115
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;
5116
5033
  }
5117
5034
  }
5118
- class st extends H {
5035
+ class ot extends H {
5119
5036
  /**
5120
5037
  * Инициализирует экземпляр класса {@link OrderProduct}.
5121
5038
  *
@@ -5195,10 +5112,10 @@ class st extends H {
5195
5112
  * который соответствует указанной ширине. Количество не ограничено.
5196
5113
  */
5197
5114
  t(this, "sawing");
5198
- 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;
5199
5116
  }
5200
5117
  }
5201
- class it extends tr {
5118
+ class ct extends ir {
5202
5119
  /**
5203
5120
  * Инициализирует экземпляр класса {@link Order}.
5204
5121
  *
@@ -5238,10 +5155,10 @@ class it extends tr {
5238
5155
  * Признак, что разрешена передача заказа в работу без оплаты.
5239
5156
  */
5240
5157
  t(this, "isAllowProcessingWithoutPayment");
5241
- 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;
5242
5159
  }
5243
5160
  }
5244
- class Mt extends Ce {
5161
+ class Ht extends Ce {
5245
5162
  /**
5246
5163
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5247
5164
  *
@@ -5254,7 +5171,7 @@ class Mt extends Ce {
5254
5171
  getOrders(r, e, s) {
5255
5172
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5256
5173
  const o = { ...i.data };
5257
- return o.data = o.data.map((l) => new tr(l)), o;
5174
+ return o.data = o.data.map((c) => new ir(c)), o;
5258
5175
  });
5259
5176
  }
5260
5177
  /**
@@ -5272,10 +5189,118 @@ class Mt extends Ce {
5272
5189
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5273
5190
  */
5274
5191
  getOrder(r) {
5275
- return this.get(`/internal/orders/${r}`, {}, (e) => new it(e.data));
5192
+ return this.get(`/internal/orders/${r}`, {}, (e) => new ct(e.data));
5193
+ }
5194
+ }
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
+ );
5276
5301
  }
5277
5302
  }
5278
- class nt {
5303
+ class lt {
5279
5304
  /**
5280
5305
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5281
5306
  *
@@ -5293,7 +5318,7 @@ class nt {
5293
5318
  this.name = r.name, this.content = r.content;
5294
5319
  }
5295
5320
  }
5296
- class Me {
5321
+ class He {
5297
5322
  /**
5298
5323
  * Инициализирует экземпляр класса {@link Seo}.
5299
5324
  *
@@ -5329,10 +5354,10 @@ class Me {
5329
5354
  */
5330
5355
  t(this, "meta");
5331
5356
  var e;
5332
- 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))) ?? [];
5333
5358
  }
5334
5359
  }
5335
- class Ft extends u {
5360
+ class Bt extends u {
5336
5361
  /**
5337
5362
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5338
5363
  *
@@ -5340,7 +5365,7 @@ class Ft extends u {
5340
5365
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
5341
5366
  */
5342
5367
  getResourceSeoData(r, e) {
5343
- 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));
5344
5369
  }
5345
5370
  /**
5346
5371
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -5351,7 +5376,7 @@ class Ft extends u {
5351
5376
  * в случае ошибок в запросах.
5352
5377
  */
5353
5378
  saveResourceSeoData(r, e = {}) {
5354
- 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);
5355
5380
  }
5356
5381
  /**
5357
5382
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -5364,7 +5389,7 @@ class Ft extends u {
5364
5389
  }
5365
5390
  }
5366
5391
  const P = me("__references_private", () => {
5367
- 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), I = C(void 0), x = C(void 0), a = 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);
5368
5393
  return {
5369
5394
  /**
5370
5395
  * Список загружаемых/загруженных на данный момент значений.
@@ -5393,7 +5418,7 @@ const P = me("__references_private", () => {
5393
5418
  /**
5394
5419
  * Справочник организационно-правовых форм.
5395
5420
  */
5396
- opfReference: l,
5421
+ opfReference: c,
5397
5422
  /**
5398
5423
  * Справочник статусов оплаты заказа.
5399
5424
  */
@@ -5409,19 +5434,19 @@ const P = me("__references_private", () => {
5409
5434
  /**
5410
5435
  * Справочник групп партнеров.
5411
5436
  */
5412
- partnerGroupReference: A,
5437
+ partnerGroupReference: D,
5413
5438
  /**
5414
5439
  * Справочник типов файлов продукктов/категорий.
5415
5440
  */
5416
- productFileTypeReference: I,
5441
+ productFileTypeReference: a,
5417
5442
  /**
5418
5443
  * Справочник типов ресурсов.
5419
5444
  */
5420
- resourceTypesReference: x,
5445
+ resourceTypesReference: I,
5421
5446
  /**
5422
5447
  * Справочник направлений продаж.
5423
5448
  */
5424
- salesDirectionsReference: a,
5449
+ salesDirectionsReference: x,
5425
5450
  /**
5426
5451
  * Справочник источников первичного интереса.
5427
5452
  */
@@ -5437,94 +5462,94 @@ const P = me("__references_private", () => {
5437
5462
  /**
5438
5463
  * Справочник коэффициентов цен.
5439
5464
  */
5440
- priceCoefficientsReference: c
5465
+ priceCoefficientsReference: l
5441
5466
  };
5442
- }), Ht = me("references", () => {
5467
+ }), Wt = me("references", () => {
5443
5468
  const n = v(() => {
5444
- const c = P();
5445
- return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(D).getChannelPrimaryInterest().then((h) => {
5446
- c.channelPrimaryInterestReference = h;
5447
- }).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;
5448
5473
  }), r = v(() => {
5449
- const c = P();
5450
- return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(D).getContactPositions().then((h) => {
5451
- c.contactPositionsReference = h;
5452
- }).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;
5453
5478
  }), e = v(() => {
5454
- const c = P();
5455
- return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(D).getCurrency().then((h) => {
5456
- c.currencyReference = h;
5457
- }).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;
5458
5483
  }), s = v(() => {
5459
- const c = P();
5460
- return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(D).getOpf().then((h) => {
5461
- c.opfReference = h;
5462
- }).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;
5463
5488
  }), i = v(() => {
5464
- const c = P();
5465
- return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(D).getOrderPaymentStatuses().then((h) => {
5466
- c.orderPaymentStatusReference = h;
5467
- }).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;
5468
5493
  }), o = v(() => {
5469
- const c = P();
5470
- return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(D).getOrderStatuses().then((h) => {
5471
- c.orderStatusReference = h;
5472
- }).catch(y)), c.orderStatusReference;
5473
- }), l = v(() => {
5474
- const c = P();
5475
- return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(D).getPaymentTypes().then((h) => {
5476
- c.paymentTypeReference = h;
5477
- }).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;
5478
5503
  }), p = v(() => {
5479
- const c = P();
5480
- return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(D).getPartnerGroup().then((h) => {
5481
- c.partnerGroupReference = h;
5482
- }).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;
5483
5508
  }), g = v(() => {
5484
- const c = P();
5485
- return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(D).getProductFileType().then((h) => {
5486
- c.productFileTypeReference = h;
5487
- }).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;
5488
5513
  }), R = v(() => {
5489
- const c = P();
5490
- return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(D).getResourceTypes().then((h) => {
5491
- c.resourceTypesReference = h;
5492
- }).catch(y)), c.resourceTypesReference;
5493
- }), A = v(() => {
5494
- const c = P();
5495
- return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(D).getSalesDirections().then((h) => {
5496
- c.salesDirectionsReference = h;
5497
- }).catch(y)), c.salesDirectionsReference;
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;
5498
5528
  }), I = v(() => {
5499
- const c = P();
5500
- return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(D).getSourcePrimaryInterest().then((h) => {
5501
- c.sourcePrimaryInterestReference = h;
5502
- }).catch(y)), c.sourcePrimaryInterestReference;
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;
5503
5533
  }), x = v(() => {
5504
- const c = P();
5505
- return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(D).getDeliveryTypes().then((h) => {
5506
- c.deliveryTypeReference = h;
5507
- }).catch(y)), c.deliveryTypeReference;
5508
- }), a = v(() => {
5509
- const c = P();
5510
- return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(tt).getManagers().then((h) => {
5511
- c.managersList = h;
5512
- }).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;
5513
5538
  }), k = v(() => {
5514
- const c = P();
5515
- return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(D).getWarehouses().then((h) => {
5516
- c.warehousesReference = h;
5517
- }).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;
5518
5543
  }), N = v(() => {
5519
- const c = P();
5520
- return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(D).getPropertyTypes().then((h) => {
5521
- c.propertyTypesReference = h;
5522
- }).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;
5523
5548
  }), d = v(() => {
5524
- const c = P();
5525
- return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(D).getPriceCoefficients().then((h) => {
5526
- c.priceCoefficientsReference = h;
5527
- }).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;
5528
5553
  });
5529
5554
  return {
5530
5555
  /**
@@ -5554,7 +5579,7 @@ const P = me("__references_private", () => {
5554
5579
  /**
5555
5580
  * Справочник типов оплаты заказов.
5556
5581
  */
5557
- paymentTypeReference: l,
5582
+ paymentTypeReference: c,
5558
5583
  /**
5559
5584
  * Справочник групп партнеров.
5560
5585
  */
@@ -5570,19 +5595,19 @@ const P = me("__references_private", () => {
5570
5595
  /**
5571
5596
  * Справочник направлений продаж.
5572
5597
  */
5573
- salesDirectionsReference: A,
5598
+ salesDirectionsReference: D,
5574
5599
  /**
5575
5600
  * Справочник каналов первичного интереса.
5576
5601
  */
5577
- sourcePrimaryInterestsReference: I,
5602
+ sourcePrimaryInterestsReference: a,
5578
5603
  /**
5579
5604
  * Справочник типов доставки.
5580
5605
  */
5581
- deliveryTypeReference: x,
5606
+ deliveryTypeReference: I,
5582
5607
  /**
5583
5608
  * Список менеджеров.
5584
5609
  */
5585
- managersList: a,
5610
+ managersList: x,
5586
5611
  /**
5587
5612
  * Справочник складов.
5588
5613
  */
@@ -5596,7 +5621,7 @@ const P = me("__references_private", () => {
5596
5621
  */
5597
5622
  priceCoefficientsReference: d
5598
5623
  };
5599
- }), ot = me("__user_state_private", () => {
5624
+ }), pt = me("__user_state_private", () => {
5600
5625
  const n = C({}), r = C(void 0);
5601
5626
  return {
5602
5627
  /**
@@ -5608,18 +5633,18 @@ const P = me("__references_private", () => {
5608
5633
  */
5609
5634
  currentUser: r
5610
5635
  };
5611
- }), zt = me("user_state", () => ({
5636
+ }), jt = me("user_state", () => ({
5612
5637
  /**
5613
5638
  * Данные о текущем пользователе.
5614
5639
  */
5615
5640
  currentUser: v(() => {
5616
- const r = ot();
5617
- 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) => {
5618
5643
  r.currentUser = e;
5619
5644
  }).catch(y).finally(y)), r.currentUser;
5620
5645
  })
5621
5646
  }));
5622
- class Bt extends u {
5647
+ class Vt extends u {
5623
5648
  /**
5624
5649
  * Возвращает подсказки по адресам.
5625
5650
  *
@@ -5660,13 +5685,13 @@ class Bt extends u {
5660
5685
  return this.get(r, { query: e }).then((s) => {
5661
5686
  const i = [...s];
5662
5687
  let o = 1;
5663
- return i.forEach((l) => {
5664
- l.id = o++;
5688
+ return i.forEach((c) => {
5689
+ c.id = o++;
5665
5690
  }), i;
5666
5691
  });
5667
5692
  }
5668
5693
  }
5669
- class Wt {
5694
+ class Et {
5670
5695
  /**
5671
5696
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5672
5697
  *
@@ -5690,140 +5715,140 @@ class Wt {
5690
5715
  }
5691
5716
  }
5692
5717
  export {
5693
- Fr as AnyReference,
5694
- ft as AppBaseConfig,
5718
+ Br as AnyReference,
5719
+ Ct as AppBaseConfig,
5695
5720
  b as AppConfigProvider,
5696
- Te as BankAccount,
5721
+ _e as BankAccount,
5697
5722
  Ce as BasePaginationProvider,
5698
- Or as CalculationTypeEnum,
5723
+ Ur as CalculationTypeEnum,
5699
5724
  oe as Cart,
5700
- Ir as CartItem,
5701
- Lr as CartItemBase,
5702
- yt as CartProvider,
5703
- Pt as CatalogProvider,
5704
- ze as CatalogableItem,
5725
+ kr as CartItem,
5726
+ xr as CartItemBase,
5727
+ vt as CartProvider,
5728
+ Dt as CatalogProvider,
5729
+ We as CatalogableItem,
5705
5730
  q as Category,
5706
- Oe as CategoryPricingRule,
5707
- Je as ChannelPrimaryInterest,
5708
- vt as City,
5731
+ qe as CategoryPricingRule,
5732
+ Ye as ChannelPrimaryInterest,
5733
+ At as City,
5709
5734
  pe as CityWithRegionAndCountry,
5710
- Ue as Client,
5711
- et as ClientAdditionalData,
5735
+ Ge as Client,
5736
+ st as ClientAdditionalData,
5712
5737
  le as ClientCategory,
5713
- Ot as ClientDataProvider,
5714
- Rt as ClientPriceProvider,
5715
- Dt as ClientPriceTemplateProvider,
5716
- J as ClientProduct,
5717
- bt as ClientProductCategoryDataProvider,
5718
- Tt 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,
5719
5744
  ne as ClientShortInfo,
5720
- Qr as ClientsAdditionalDataRequestTypeEnum,
5721
- at as ClientsListFilters,
5722
- qt as ConfiguratorProvider,
5723
- _e as Contact,
5724
- Gr as ContactLinks,
5745
+ Zr as ClientsAdditionalDataRequestTypeEnum,
5746
+ Nt as ClientsListFilters,
5747
+ Gt as ConfiguratorProvider,
5748
+ Se as Contact,
5749
+ Hr as ContactLinks,
5725
5750
  F as ContactPerson,
5726
- Zr as ContactPersonRelated,
5727
- Hr as ContactPosition,
5728
- De as ContactRelation,
5729
- Xe as ContragentBase,
5751
+ tt as ContactPersonRelated,
5752
+ Wr as ContactPosition,
5753
+ Re as ContactRelation,
5754
+ er as ContragentBase,
5730
5755
  he as ContragentFactory,
5731
- Ze as ContragentIc,
5732
- Yr as ContragentPerson,
5733
- Xr as ContragentUlNr,
5734
- er as ContragentUlR,
5735
- xe as CostSourceEnum,
5736
- 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,
5737
5762
  ue as Currency,
5738
- Bt as DataSuggestionProvider,
5739
- kt as DataTablePagination,
5740
- rt as DataTablePaginationRequestParams,
5741
- Nt as DataTableSortRequestParams,
5742
- Ut as DateTimeProvider,
5743
- 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,
5744
5769
  ge as DeliveryAddress,
5745
- K as DeliveryType,
5746
- xr as DeviceTypeResolutionConfig,
5747
- Ur as DiscountShortInfo,
5748
- Wt as FieldValidationResultData,
5770
+ J as DeliveryType,
5771
+ Nr as DeviceTypeResolutionConfig,
5772
+ Fr as DiscountShortInfo,
5773
+ Et as FieldValidationResultData,
5749
5774
  se as FilterGroup,
5750
- de as FilterItem,
5751
- ae as FilterOpEnum,
5752
- We as GeoCoordinates,
5753
- _r as HiddenCatalogableItem,
5754
- be as HttpBaseCachedRequester,
5755
- $e as HttpBaseRequester,
5756
- ar as HttpParamsConfig,
5775
+ Ue as FilterItem,
5776
+ Ne as FilterOpEnum,
5777
+ Ve as GeoCoordinates,
5778
+ ar as HiddenCatalogableItem,
5779
+ Te as HttpBaseCachedRequester,
5780
+ be as HttpBaseRequester,
5781
+ Or as HttpParamsConfig,
5757
5782
  u as HttpRequester,
5758
5783
  H as Identity,
5759
- Sr as Image,
5784
+ Ir as Image,
5760
5785
  we as Manager,
5761
5786
  re as ManagerCommon,
5762
- Gt as ManagerDataFactory,
5763
- tt as ManagerDataProvider,
5764
- nt as MetaTagItem,
5787
+ Ft as ManagerDataFactory,
5788
+ nt as ManagerDataProvider,
5789
+ lt as MetaTagItem,
5765
5790
  $ as NamedIdentity,
5766
5791
  G as Opf,
5767
5792
  T as OpfEnum,
5768
- it as Order,
5769
- tr as OrderInfo,
5770
- zr as OrderPaymentStatus,
5771
- st as OrderProduct,
5772
- rr as OrderShortInfo,
5773
- Br as OrderStatus,
5774
- Mt as OrdersDataProvider,
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,
5775
5800
  M as PartnerGroup,
5776
- Wr as PaymentType,
5777
- wt as PreferencesStorageProvider,
5778
- Re as PriceAnalyze,
5779
- xt as PriceAnalyzeProvider,
5801
+ Er as PaymentType,
5802
+ Pt as PreferencesStorageProvider,
5803
+ Ae as PriceAnalyze,
5804
+ zt as PriceAnalyzeProvider,
5780
5805
  fe as PriceCoefficient,
5781
- Be as PriceCoefficientEnum,
5806
+ je as PriceCoefficientEnum,
5782
5807
  W as PriceTemplate,
5783
5808
  ve as PriceTemplateCategory,
5784
- Y as PriceTemplateClient,
5785
- Ve as PriceTemplateICatalogableItem,
5809
+ X as PriceTemplateClient,
5810
+ Ke as PriceTemplateICatalogableItem,
5786
5811
  Pe as PriceTemplateProduct,
5787
- _t as PriceTemplateProvider,
5788
- Z as PricingRole,
5789
- St as PricingRoleProvider,
5790
- Ae as PrimaryCatalogableItem,
5812
+ at as PriceTemplateProvider,
5813
+ ee as PricingRole,
5814
+ It as PricingRoleProvider,
5815
+ $e as PrimaryCatalogableItem,
5791
5816
  _ as Product,
5792
- At as ProductCategoryDataProvider,
5793
- $t as ProductDataProvider,
5794
- jr as ProductFileType,
5795
- Le as ProductPriceCoefficient,
5796
- Jr as ProductPriceHistory,
5797
- Lt as PropertiesProvider,
5798
- X as Property,
5799
- Ke as PropertyType,
5800
- 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,
5801
5826
  z as PropertyValue,
5802
- It as RecommendationsDataProvider,
5803
- Ne as RecommendationsList,
5827
+ kt as RecommendationsDataProvider,
5828
+ de as RecommendationsList,
5804
5829
  w as Reference,
5805
- D as ReferenceDataProvider,
5830
+ A as ReferenceDataProvider,
5806
5831
  te as Region,
5807
- Qe as ResourceType,
5832
+ Xe as ResourceType,
5808
5833
  S as SalesDirection,
5809
- kr as SentryConfig,
5810
- Me as Seo,
5811
- Ft as SeoDataProvider,
5812
- Ye as SourcePrimaryInterest,
5813
- Tr as StockCount,
5814
- Ct as TemplatesListFilters,
5815
- Ie as TypedInstanceFactory,
5816
- Ge as UnitsHelper,
5817
- dt as UnknownClientDataProvider,
5818
- je as UpdatableNamedIdentity,
5819
- Er as User,
5820
- Ee as UserCommonInfo,
5821
- 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,
5822
5847
  U as UserShortInfo,
5823
- Vr as UserTypeEnum,
5824
- Nr as VersionConfig,
5848
+ Jr as UserTypeEnum,
5849
+ qr as VersionConfig,
5825
5850
  ye as Warehouse,
5826
- Ht as useReferencesStore,
5827
- zt as useUserStateStore
5851
+ Wt as useReferencesStore,
5852
+ jt as useUserStateStore
5828
5853
  };
5829
5854
  //# sourceMappingURL=sc-common-lib.js.map