@snabcentr/common-lib 1.60.6 → 1.61.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +2 -2
  3. package/dist/sc-common-lib.js +612 -575
  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/catalog/providers/price-template-provider.d.ts +6 -2
  14. package/dist/src/catalog/providers/price-template-provider.d.ts.map +1 -1
  15. package/dist/src/index.d.ts +1 -0
  16. package/dist/src/index.d.ts.map +1 -1
  17. package/dist/src/price-analyze/classes/index.d.ts +2 -0
  18. package/dist/src/price-analyze/classes/index.d.ts.map +1 -0
  19. package/dist/src/{catalog → price-analyze}/classes/price-analyze.d.ts +3 -3
  20. package/dist/src/price-analyze/classes/price-analyze.d.ts.map +1 -0
  21. package/dist/src/price-analyze/converters/price-analyze-filters.d.ts +8 -0
  22. package/dist/src/price-analyze/converters/price-analyze-filters.d.ts.map +1 -0
  23. package/dist/src/{catalog/providers/converters/price-analyze.d.ts → price-analyze/converters/price-analyze-params.d.ts} +3 -3
  24. package/dist/src/price-analyze/converters/price-analyze-params.d.ts.map +1 -0
  25. package/dist/src/price-analyze/index.d.ts +4 -0
  26. package/dist/src/price-analyze/index.d.ts.map +1 -0
  27. package/dist/src/price-analyze/interfaces/i-price-analyze-filters.d.ts +36 -0
  28. package/dist/src/price-analyze/interfaces/i-price-analyze-filters.d.ts.map +1 -0
  29. package/dist/src/price-analyze/interfaces/i-price-analyze-parameter.d.ts.map +1 -0
  30. package/dist/src/{catalog → price-analyze}/interfaces/i-price-analyze-params.d.ts +1 -1
  31. package/dist/src/price-analyze/interfaces/i-price-analyze-params.d.ts.map +1 -0
  32. package/dist/src/{catalog → price-analyze}/interfaces/i-price-analyze.d.ts +2 -2
  33. package/dist/src/price-analyze/interfaces/i-price-analyze.d.ts.map +1 -0
  34. package/dist/src/price-analyze/interfaces/index.d.ts +4 -0
  35. package/dist/src/price-analyze/interfaces/index.d.ts.map +1 -0
  36. package/dist/src/price-analyze/providers/index.d.ts +2 -0
  37. package/dist/src/price-analyze/providers/index.d.ts.map +1 -0
  38. package/dist/src/{catalog → price-analyze}/providers/price-analyze-provider.d.ts +8 -4
  39. package/dist/src/price-analyze/providers/price-analyze-provider.d.ts.map +1 -0
  40. package/package.json +1 -1
  41. package/dist/src/catalog/classes/price-analyze.d.ts.map +0 -1
  42. package/dist/src/catalog/interfaces/i-price-analyze-params.d.ts.map +0 -1
  43. package/dist/src/catalog/interfaces/i-price-analyze.d.ts.map +0 -1
  44. package/dist/src/catalog/providers/converters/price-analyze.d.ts.map +0 -1
  45. package/dist/src/catalog/providers/interfaces/i-price-analyze-parameter.d.ts.map +0 -1
  46. package/dist/src/catalog/providers/price-analyze-provider.d.ts.map +0 -1
  47. /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 ae, isFunction as Le, 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 Dr, startOfYesterday as Ar, 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 ar {
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 Lr 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 Lr {
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 ar(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
  *
@@ -719,7 +719,7 @@ class Ie {
719
719
  return new r(e);
720
720
  }
721
721
  }
722
- const L = class L {
722
+ const a = class a {
723
723
  /**
724
724
  * Инициализирует экземпляр класса {@link HttpRequester}.
725
725
  *
@@ -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 = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = _r.create({
744
744
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
745
745
  baseURL: r,
746
746
  headers: {
@@ -750,12 +750,12 @@ 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
- (i) => L.convertHttpErrorResponse(i)
758
+ (i) => a.convertHttpErrorResponse(i)
759
759
  );
760
760
  }
761
761
  /**
@@ -764,7 +764,7 @@ const L = class L {
764
764
  * @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
765
765
  */
766
766
  static setBaseDefaultNotificationErrorResponseHandler(r) {
767
- L.baseDefaultNotificationErrorResponseHandler = r;
767
+ a.baseDefaultNotificationErrorResponseHandler = r;
768
768
  }
769
769
  /**
770
770
  * Возвращает экземпляр объекта текущего класса.
@@ -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(a.instances, r.name) || (a.instances[r.name] = xe.simpleInstanceInitializer(r)), a.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
  /**
@@ -867,16 +867,16 @@ const L = class L {
867
867
  * Экземпляр объекта текущего класса.
868
868
  */
869
869
  // eslint-disable-next-line no-use-before-define
870
- t(L, "instances", {}), /**
870
+ t(a, "instances", {}), /**
871
871
  * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
872
872
  *
873
873
  * Параметры:
874
874
  * - error Данные об ошибке.
875
875
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
876
876
  */
877
- t(L, "baseDefaultNotificationErrorResponseHandler", y);
878
- let $e = L;
879
- const V = class V extends $e {
877
+ t(a, "baseDefaultNotificationErrorResponseHandler", y);
878
+ let be = a;
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 + (ae(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((A) => xe.instanceInitializer(e, A));
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 || Le(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 Dt extends w {
1702
1702
  }
1703
- class Hr extends w {
1703
+ class Wr extends w {
1704
1704
  }
1705
1705
  class ue extends $ {
1706
1706
  /**
@@ -1735,19 +1735,19 @@ 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
1752
  class D extends u {
1753
1753
  /**
@@ -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);
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);
2038
2038
  }
2039
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;
2068
- }
2069
- }
2070
- class Pt extends u {
2040
+ class At 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 at 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 && Le(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())), ae(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 Lt 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
  /**
@@ -2866,18 +2836,24 @@ class _t extends Ce {
2866
2836
  * @param priceTemplateId Идентификатор шаблона прайс-листа.
2867
2837
  * @param productCategoryId Идентификатор категории продуктов.
2868
2838
  * @param data Данные для сохранения цены.
2839
+ * @param recursively Признак того, что действие необходимо осуществить
2840
+ * рекурсивно для всех дочерних категорий.
2869
2841
  *
2870
2842
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_save
2871
2843
  */
2872
- saveCategoryTemplatePrice(r, e, s) {
2873
- var i;
2874
- return this.post(
2875
- `/internal/price/templates/${r}/categories/${e}`,
2844
+ saveCategoryTemplatePrice(r, e, s, i = !1) {
2845
+ var o;
2846
+ return this.request(
2876
2847
  {
2877
- price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2878
- increase_percent: s.value
2848
+ method: "POST",
2849
+ url: `/internal/price/templates/${r}/categories/${e}`,
2850
+ data: {
2851
+ price_coefficient_id: (o = s.coefficient) == null ? void 0 : o.id,
2852
+ increase_percent: s.value
2853
+ },
2854
+ params: i ? { recursively: !0 } : {}
2879
2855
  },
2880
- (o) => new ve(o.data)
2856
+ (c) => new ve(c.data)
2881
2857
  );
2882
2858
  }
2883
2859
  /**
@@ -2885,11 +2861,17 @@ class _t extends Ce {
2885
2861
  *
2886
2862
  * @param priceTemplateId Идентификатор шаблона прайс-листа.
2887
2863
  * @param productCategoryId Идентификатор категории продуктов.
2864
+ * @param recursively Признак того, что действие необходимо осуществить
2865
+ * рекурсивно для всех дочерних категорий.
2888
2866
  *
2889
2867
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_delete
2890
2868
  */
2891
- deleteCategoryTemplatePrice(r, e) {
2892
- return this.delete(`/internal/price/templates/${r}/categories/${e}`);
2869
+ deleteCategoryTemplatePrice(r, e, s = !1) {
2870
+ return this.request({
2871
+ method: "DELETE",
2872
+ url: `/internal/price/templates/${r}/categories/${e}`,
2873
+ params: s ? { recursively: !0 } : {}
2874
+ });
2893
2875
  }
2894
2876
  /**
2895
2877
  * Возвращает список клиентов, привязанных к шаблону прайс-листа.
@@ -2902,18 +2884,18 @@ class _t extends Ce {
2902
2884
  return this.get(
2903
2885
  `/internal/price/templates/${r}/clients`,
2904
2886
  {},
2905
- (e) => e.data.map((s) => new Y(s))
2887
+ (e) => e.data.map((s) => new X(s))
2906
2888
  );
2907
2889
  }
2908
2890
  }
2909
- class St extends u {
2891
+ class It extends u {
2910
2892
  /**
2911
2893
  * Возвращает список ролей ценообразования.
2912
2894
  *
2913
2895
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
2914
2896
  */
2915
2897
  getRoles() {
2916
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new Z(e)));
2898
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ee(e)));
2917
2899
  }
2918
2900
  /**
2919
2901
  * Добавляет новую роль ценообразования.
@@ -2923,7 +2905,7 @@ class St extends u {
2923
2905
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
2924
2906
  */
2925
2907
  createRole(r) {
2926
- return this.post("/internal/price/roles", r, (e) => new Z(e.data));
2908
+ return this.post("/internal/price/roles", r, (e) => new ee(e.data));
2927
2909
  }
2928
2910
  /**
2929
2911
  * Возвращает данные роли ценообразования.
@@ -2933,7 +2915,7 @@ class St extends u {
2933
2915
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
2934
2916
  */
2935
2917
  getRole(r) {
2936
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new Z(e.data));
2918
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new ee(e.data));
2937
2919
  }
2938
2920
  /**
2939
2921
  * Обновляет данные роли ценообразования.
@@ -2944,7 +2926,7 @@ class St extends u {
2944
2926
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
2945
2927
  */
2946
2928
  updateRole(r, e) {
2947
- return this.patch(`/internal/price/roles/${r}`, e, (s) => new Z(s.data));
2929
+ return this.patch(`/internal/price/roles/${r}`, e, (s) => new ee(s.data));
2948
2930
  }
2949
2931
  /**
2950
2932
  * Удаляет роль ценообразования.
@@ -2967,7 +2949,7 @@ class St extends u {
2967
2949
  return this.get(
2968
2950
  `/internal/price/roles/rules/categories/${r}`,
2969
2951
  {},
2970
- (e) => e.data.map((s) => new Oe(s))
2952
+ (e) => e.data.map((s) => new qe(s))
2971
2953
  );
2972
2954
  }
2973
2955
  /**
@@ -2982,11 +2964,11 @@ class St extends u {
2982
2964
  return this.patch(
2983
2965
  `/internal/price/roles/rules/categories/${r}`,
2984
2966
  e,
2985
- (s) => s.data.map((i) => new Oe(i))
2967
+ (s) => s.data.map((i) => new qe(i))
2986
2968
  );
2987
2969
  }
2988
2970
  }
2989
- class Lt extends Ce {
2971
+ class xt extends Ce {
2990
2972
  /**
2991
2973
  * Возвращает пагинированный список свойств.
2992
2974
  *
@@ -2999,7 +2981,7 @@ class Lt extends Ce {
2999
2981
  getProperties(r, e, s) {
3000
2982
  return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
3001
2983
  const o = { ...i.data };
3002
- return o.data = o.data.map((l) => new X(l)), o;
2984
+ return o.data = o.data.map((c) => new Z(c)), o;
3003
2985
  });
3004
2986
  }
3005
2987
  /**
@@ -3016,7 +2998,7 @@ class Lt extends Ce {
3016
2998
  ...s,
3017
2999
  type: e
3018
3000
  },
3019
- (i) => new X(i.data)
3001
+ (i) => new Z(i.data)
3020
3002
  );
3021
3003
  }
3022
3004
  /**
@@ -3026,7 +3008,7 @@ class Lt extends Ce {
3026
3008
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3027
3009
  */
3028
3010
  getProperty(r) {
3029
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new X(e.data));
3011
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new Z(e.data));
3030
3012
  }
3031
3013
  /**
3032
3014
  * Обновляет существующее свойство.
@@ -3043,7 +3025,7 @@ class Lt extends Ce {
3043
3025
  ...i,
3044
3026
  type: s
3045
3027
  },
3046
- (o) => new X(o.data)
3028
+ (o) => new Z(o.data)
3047
3029
  );
3048
3030
  }
3049
3031
  /**
@@ -3358,14 +3340,14 @@ class Lt extends Ce {
3358
3340
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3359
3341
  }
3360
3342
  }
3361
- class It extends u {
3343
+ class kt extends u {
3362
3344
  /**
3363
3345
  * Возвращает данные о рекомендациях указанной категории продуктов.
3364
3346
  *
3365
3347
  * @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
3366
3348
  */
3367
3349
  getProductCategoryRecommendations(r) {
3368
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Ne(e.data));
3350
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new de(e.data));
3369
3351
  }
3370
3352
  /**
3371
3353
  * Возвращает данные о рекомендациях указанного продукта.
@@ -3373,7 +3355,7 @@ class It extends u {
3373
3355
  * @param product Данные о продукте, для которого необходимо получить рекомендации.
3374
3356
  */
3375
3357
  getProductRecommendations(r) {
3376
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Ne(e.data));
3358
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new de(e.data));
3377
3359
  }
3378
3360
  /**
3379
3361
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -3400,61 +3382,8 @@ class It extends u {
3400
3382
  });
3401
3383
  }
3402
3384
  }
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 {
3385
+ 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 || {});
3386
+ class _e extends H {
3458
3387
  /**
3459
3388
  * Инициализирует экземпляр класса {@link BankAccount}.
3460
3389
  *
@@ -3485,7 +3414,7 @@ class Te extends H {
3485
3414
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ue(e.currency));
3486
3415
  }
3487
3416
  }
3488
- class _e extends $ {
3417
+ class Se extends $ {
3489
3418
  /**
3490
3419
  * Инициализирует экземпляр класса {@link Contact}.
3491
3420
  *
@@ -3504,7 +3433,7 @@ class _e extends $ {
3504
3433
  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
3434
  }
3506
3435
  }
3507
- class F extends _e {
3436
+ class F extends Se {
3508
3437
  /**
3509
3438
  * Инициализирует экземпляр класса {@link ContactPerson}.
3510
3439
  *
@@ -3539,7 +3468,7 @@ class F extends _e {
3539
3468
  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
3469
  }
3541
3470
  }
3542
- class Xe extends $ {
3471
+ class er extends $ {
3543
3472
  /**
3544
3473
  * Инициализирует экземпляр класса {@link ContragentBase}.
3545
3474
  *
@@ -3606,13 +3535,13 @@ class Xe extends $ {
3606
3535
  if (e.bankAccounts) {
3607
3536
  const s = [];
3608
3537
  e.bankAccounts.forEach((i) => {
3609
- s.push(new Te(i));
3538
+ s.push(new _e(i));
3610
3539
  }), this.bankAccounts = s;
3611
3540
  }
3612
3541
  }
3613
3542
  }
3614
3543
  }
3615
- class Yr extends Xe {
3544
+ class et extends er {
3616
3545
  /**
3617
3546
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3618
3547
  *
@@ -3622,7 +3551,7 @@ class Yr extends Xe {
3622
3551
  super(r);
3623
3552
  }
3624
3553
  }
3625
- class Ze extends Xe {
3554
+ class rr extends er {
3626
3555
  /**
3627
3556
  * Инициализирует экземпляр класса {@link ContragentIc}.
3628
3557
  *
@@ -3665,7 +3594,7 @@ class Ze extends Xe {
3665
3594
  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
3595
  }
3667
3596
  }
3668
- class er extends Ze {
3597
+ class tr extends rr {
3669
3598
  /**
3670
3599
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3671
3600
  *
@@ -3680,7 +3609,7 @@ class er extends Ze {
3680
3609
  e && (this.kpp = e.kpp ?? "");
3681
3610
  }
3682
3611
  }
3683
- class Xr extends er {
3612
+ class rt extends tr {
3684
3613
  /**
3685
3614
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3686
3615
  *
@@ -3691,7 +3620,7 @@ class Xr extends er {
3691
3620
  /**
3692
3621
  * Страна регистрации юридического лица нерезидента.
3693
3622
  */
3694
- t(this, "registrationCountry", new Q());
3623
+ t(this, "registrationCountry", new Y());
3695
3624
  /**
3696
3625
  * Регистрационный номер юридического лица нерезидента.
3697
3626
  */
@@ -3700,7 +3629,7 @@ class Xr extends er {
3700
3629
  * Налоговый номер юридического лица нерезидента.
3701
3630
  */
3702
3631
  t(this, "taxNumber", "");
3703
- e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3632
+ e && (this.registrationCountry = new Y(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3704
3633
  }
3705
3634
  }
3706
3635
  class he {
@@ -3712,17 +3641,17 @@ class he {
3712
3641
  static createInstance(r) {
3713
3642
  switch (r.opf.slug) {
3714
3643
  case T.Ic:
3715
- return new Ze(r);
3644
+ return new rr(r);
3716
3645
  case T.UlR:
3717
- return new er(r);
3646
+ return new tr(r);
3718
3647
  case T.UlNr:
3719
- return new Xr(r);
3648
+ return new rt(r);
3720
3649
  default:
3721
- return new Yr(r);
3650
+ return new et(r);
3722
3651
  }
3723
3652
  }
3724
3653
  }
3725
- class De extends H {
3654
+ class Re extends H {
3726
3655
  /**
3727
3656
  * Инициализирует экземпляр класса {@link ContactRelation}.
3728
3657
  *
@@ -3737,7 +3666,7 @@ class De extends H {
3737
3666
  this.isPrimary = e.isPrimary;
3738
3667
  }
3739
3668
  }
3740
- class Zr extends F {
3669
+ class tt extends F {
3741
3670
  /**
3742
3671
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3743
3672
  *
@@ -3762,10 +3691,10 @@ class Zr extends F {
3762
3691
  */
3763
3692
  addresses: []
3764
3693
  });
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))));
3694
+ 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
3695
  }
3767
3696
  }
3768
- class ge extends qr {
3697
+ class ge extends Mr {
3769
3698
  /**
3770
3699
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3771
3700
  *
@@ -3802,10 +3731,10 @@ class ge extends qr {
3802
3731
  * Признак того, что указанный адрес является адресом транспортной компании.
3803
3732
  */
3804
3733
  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;
3734
+ 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
3735
  }
3807
3736
  }
3808
- class Ue extends ne {
3737
+ class Ge extends ne {
3809
3738
  /**
3810
3739
  * Инициализирует экземпляр класса {@link Client}.
3811
3740
  *
@@ -3813,7 +3742,7 @@ class Ue extends ne {
3813
3742
  */
3814
3743
  // eslint-disable-next-line sonarjs/cognitive-complexity
3815
3744
  constructor(e) {
3816
- var s, i, o, l;
3745
+ var s, i, o, c;
3817
3746
  super(e);
3818
3747
  /**
3819
3748
  * Список контрагентов клиента.
@@ -3859,10 +3788,10 @@ class Ue extends ne {
3859
3788
  * Дополнительные данные о клиенте.
3860
3789
  */
3861
3790
  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) ?? {};
3791
+ 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
3792
  }
3864
3793
  }
3865
- class at {
3794
+ class Nt {
3866
3795
  /**
3867
3796
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3868
3797
  *
@@ -3954,7 +3883,7 @@ class at {
3954
3883
  */
3955
3884
  t(this, "lastOrder");
3956
3885
  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 = {
3886
+ 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
3887
  createdAt: new O((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3959
3888
  creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
3960
3889
  isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
@@ -4007,13 +3936,13 @@ class at {
4007
3936
  this.contragentType = new G();
4008
3937
  break;
4009
3938
  case "preferredDeliveryType":
4010
- this.preferredDeliveryType = new K();
3939
+ this.preferredDeliveryType = new J();
4011
3940
  break;
4012
3941
  case "partnerGroup":
4013
3942
  this.partnerGroup = new M();
4014
3943
  break;
4015
3944
  case "contact":
4016
- this.contact = new _e();
3945
+ this.contact = new Se();
4017
3946
  break;
4018
3947
  }
4019
3948
  return this;
@@ -4025,14 +3954,14 @@ class at {
4025
3954
  asClearRaw() {
4026
3955
  var e, s, i, o;
4027
3956
  const r = {};
4028
- return Object.keys(this).forEach((l) => {
4029
- const p = this[l];
3957
+ return Object.keys(this).forEach((c) => {
3958
+ const p = this[c];
4030
3959
  // eslint-disable-next-line prettier/prettier
4031
- ee(p) || m(p) && p.trim().length === 0 || Se(p.isNewRec) && p.isNewRec() || (r[l] = p);
3960
+ K(p) || m(p) && p.trim().length === 0 || Le(p.isNewRec) && p.isNewRec() || (r[c] = p);
4032
3961
  }), !((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
3962
  }
4034
3963
  }
4035
- class rr extends H {
3964
+ class sr extends H {
4036
3965
  /**
4037
3966
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4038
3967
  *
@@ -4055,7 +3984,7 @@ class rr extends H {
4055
3984
  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
3985
  }
4057
3986
  }
4058
- class et extends $ {
3987
+ class st extends $ {
4059
3988
  /**
4060
3989
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4061
3990
  *
@@ -4088,10 +4017,10 @@ class et extends $ {
4088
4017
  * Список менеджеров.
4089
4018
  */
4090
4019
  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)));
4020
+ (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
4021
  }
4093
4022
  }
4094
- class rt {
4023
+ class it {
4095
4024
  /**
4096
4025
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4097
4026
  *
@@ -4109,7 +4038,7 @@ class rt {
4109
4038
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4110
4039
  }
4111
4040
  }
4112
- class kt extends rt {
4041
+ class Ot extends it {
4113
4042
  /**
4114
4043
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4115
4044
  *
@@ -4140,7 +4069,7 @@ class kt extends rt {
4140
4069
  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
4070
  }
4142
4071
  }
4143
- class Nt {
4072
+ class dt {
4144
4073
  /**
4145
4074
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4146
4075
  *
@@ -4158,7 +4087,7 @@ class Nt {
4158
4087
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4159
4088
  }
4160
4089
  }
4161
- class Ot extends Ce {
4090
+ class qt extends Ce {
4162
4091
  /**
4163
4092
  * Возвращает данные об указанном клиенте.
4164
4093
  *
@@ -4166,7 +4095,7 @@ class Ot extends Ce {
4166
4095
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4167
4096
  */
4168
4097
  getClient(r) {
4169
- return this.get(`/internal/clients/${r}`, {}, (e) => new Ue(e.data));
4098
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Ge(e.data));
4170
4099
  }
4171
4100
  /**
4172
4101
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4180,8 +4109,8 @@ class Ot extends Ce {
4180
4109
  */
4181
4110
  getClientsList(r, e, s, i) {
4182
4111
  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;
4112
+ const c = { ...o.data };
4113
+ return c.data = c.data.map((p) => new ne(p)), c;
4185
4114
  });
4186
4115
  }
4187
4116
  /**
@@ -4194,7 +4123,7 @@ class Ot extends Ce {
4194
4123
  return this.getClientsList({
4195
4124
  groupOp: "and",
4196
4125
  groups: [],
4197
- filters: [{ field: "phone", op: ae.Contains, value: r }]
4126
+ filters: [{ field: "phone", op: Ne.Contains, value: r }]
4198
4127
  });
4199
4128
  }
4200
4129
  /**
@@ -4208,7 +4137,7 @@ class Ot extends Ce {
4208
4137
  const s = r.map((i) => i.id);
4209
4138
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4210
4139
  let o = [];
4211
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new et(l))), o;
4140
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new st(c))), o;
4212
4141
  });
4213
4142
  }
4214
4143
  /**
@@ -4220,7 +4149,7 @@ class Ot extends Ce {
4220
4149
  getAllClientContacts(r) {
4221
4150
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4222
4151
  let s = [];
4223
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Zr(i))), s;
4152
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new tt(i))), s;
4224
4153
  });
4225
4154
  }
4226
4155
  /**
@@ -4250,7 +4179,7 @@ class Ot extends Ce {
4250
4179
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4251
4180
  preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4252
4181
  },
4253
- (i) => new Ue(i.data),
4182
+ (i) => new Ge(i.data),
4254
4183
  e
4255
4184
  );
4256
4185
  }
@@ -4360,9 +4289,9 @@ class Ot extends Ce {
4360
4289
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4361
4290
  */
4362
4291
  createContragentClientData(r, e, s = {}) {
4363
- var g, R, A, I, x, a, k, N;
4292
+ var g, R, A, L, I, x, k, N;
4364
4293
  let i;
4365
- const o = e, l = e, p = e;
4294
+ const o = e, c = e, p = e;
4366
4295
  switch (e.opf.slug) {
4367
4296
  case T.Ic:
4368
4297
  i = {
@@ -4384,21 +4313,21 @@ class Ot extends Ce {
4384
4313
  break;
4385
4314
  case T.UlR:
4386
4315
  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
4316
+ opf: c.opf.slug,
4317
+ name: c.name,
4318
+ alternative_name: c.alternativeName,
4319
+ partner_group_id: (A = c.partnerGroup) == null ? void 0 : A.id,
4320
+ manager_id: (L = c.manager) == null ? void 0 : L.id,
4321
+ comment: c.comment,
4322
+ inn: c.inn,
4323
+ kpp: c.kpp,
4324
+ okpo: c.okpo,
4325
+ director_name: c.directorName,
4326
+ director_position: c.directorPosition,
4327
+ director_acts_on: c.directorActsOn,
4328
+ legal_address: c.legalAddress,
4329
+ postal_address: c.postalAddress,
4330
+ actual_address: c.actualAddress
4402
4331
  };
4403
4332
  break;
4404
4333
  case T.UlNr:
@@ -4406,8 +4335,8 @@ class Ot extends Ce {
4406
4335
  opf: p.opf.slug,
4407
4336
  name: p.name,
4408
4337
  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,
4338
+ partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4339
+ manager_id: (x = p.manager) == null ? void 0 : x.id,
4411
4340
  comment: p.comment,
4412
4341
  director_name: p.directorName,
4413
4342
  director_position: p.directorPosition,
@@ -4449,9 +4378,9 @@ class Ot extends Ce {
4449
4378
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4450
4379
  */
4451
4380
  updateContragentClientData(r, e, s = {}) {
4452
- var g, R, A, I, x, a, k, N;
4381
+ var g, R, A, L, I, x, k, N;
4453
4382
  let i;
4454
- const o = e, l = e, p = e;
4383
+ const o = e, c = e, p = e;
4455
4384
  switch (e.opf.slug) {
4456
4385
  case T.Ic:
4457
4386
  i = {
@@ -4473,21 +4402,21 @@ class Ot extends Ce {
4473
4402
  break;
4474
4403
  case T.UlR:
4475
4404
  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
4405
+ opf: c.opf.slug,
4406
+ name: c.name,
4407
+ alternative_name: c.alternativeName,
4408
+ partner_group_id: (A = c.partnerGroup) == null ? void 0 : A.id,
4409
+ manager_id: (L = c.manager) == null ? void 0 : L.id,
4410
+ comment: c.comment,
4411
+ inn: c.inn,
4412
+ kpp: c.kpp,
4413
+ okpo: c.okpo,
4414
+ director_name: c.directorName,
4415
+ director_position: c.directorPosition,
4416
+ director_acts_on: c.directorActsOn,
4417
+ legal_address: c.legalAddress,
4418
+ postal_address: c.postalAddress,
4419
+ actual_address: c.actualAddress
4491
4420
  };
4492
4421
  break;
4493
4422
  case T.UlNr:
@@ -4495,8 +4424,8 @@ class Ot extends Ce {
4495
4424
  opf: p.opf.slug,
4496
4425
  name: p.name,
4497
4426
  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,
4427
+ partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
4428
+ manager_id: (x = p.manager) == null ? void 0 : x.id,
4500
4429
  comment: p.comment,
4501
4430
  director_name: p.directorName,
4502
4431
  director_position: p.directorPosition,
@@ -4548,7 +4477,7 @@ class Ot extends Ce {
4548
4477
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_create
4549
4478
  */
4550
4479
  createClientDeliveryAddress(r, e, s = {}) {
4551
- var o, l;
4480
+ var o, c;
4552
4481
  const i = {
4553
4482
  address: e.address,
4554
4483
  is_one_time: e.isOneTime ?? !1,
@@ -4557,7 +4486,7 @@ class Ot extends Ce {
4557
4486
  };
4558
4487
  return e.coordinates && (i.coordinates = {
4559
4488
  lat: (o = e.coordinates) == null ? void 0 : o.lat,
4560
- long: (l = e.coordinates) == null ? void 0 : l.long
4489
+ long: (c = e.coordinates) == null ? void 0 : c.long
4561
4490
  }), e.operatingHours && (i.operating_hours = {
4562
4491
  from: e.operatingHours.from,
4563
4492
  to: e.operatingHours.to
@@ -4574,7 +4503,7 @@ class Ot extends Ce {
4574
4503
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_update
4575
4504
  */
4576
4505
  updateClientDeliveryAddress(r, e, s = {}) {
4577
- var o, l;
4506
+ var o, c;
4578
4507
  const i = {
4579
4508
  address: e.address,
4580
4509
  is_one_time: e.isOneTime ?? !1,
@@ -4586,7 +4515,7 @@ class Ot extends Ce {
4586
4515
  to: e.operatingHours.to
4587
4516
  }), e.coordinates && (i.coordinates = {
4588
4517
  lat: (o = e.coordinates) == null ? void 0 : o.lat,
4589
- long: (l = e.coordinates) == null ? void 0 : l.long
4518
+ long: (c = e.coordinates) == null ? void 0 : c.long
4590
4519
  }), this.patch(
4591
4520
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4592
4521
  i,
@@ -4626,7 +4555,7 @@ class Ot extends Ce {
4626
4555
  correspondent_account: s.correspondentAccount,
4627
4556
  currency_id: s.currency.id
4628
4557
  },
4629
- (o) => new Te(o.data),
4558
+ (o) => new _e(o.data),
4630
4559
  i
4631
4560
  );
4632
4561
  }
@@ -4652,7 +4581,7 @@ class Ot extends Ce {
4652
4581
  correspondent_account: s.correspondentAccount,
4653
4582
  currency_id: s.currency.id
4654
4583
  },
4655
- (o) => new Te(o.data),
4584
+ (o) => new _e(o.data),
4656
4585
  i
4657
4586
  );
4658
4587
  }
@@ -4849,14 +4778,14 @@ class Ot extends Ce {
4849
4778
  * в случае ошибок в запросах.
4850
4779
  */
4851
4780
  createContact(r, e, s, i = {}) {
4852
- var l, p;
4781
+ var c, p;
4853
4782
  const o = {
4854
4783
  name: e.name,
4855
4784
  position: e.position,
4856
4785
  comment: e.comment,
4857
4786
  ...s
4858
4787
  };
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);
4788
+ 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
4789
  }
4861
4790
  /**
4862
4791
  * Устанавливает признак основного контактного лица.
@@ -4885,7 +4814,7 @@ class Ot extends Ce {
4885
4814
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4886
4815
  }
4887
4816
  }
4888
- class dt extends u {
4817
+ class Ut extends u {
4889
4818
  /**
4890
4819
  * Выполняет проверку занят ли указанный номер телефона.
4891
4820
  *
@@ -4899,7 +4828,7 @@ class dt extends u {
4899
4828
  });
4900
4829
  }
4901
4830
  }
4902
- class qt extends u {
4831
+ class Gt extends u {
4903
4832
  /**
4904
4833
  * Возвращает настройки указанного конфигуратора для указанной категории.
4905
4834
  *
@@ -4927,10 +4856,10 @@ class qt extends u {
4927
4856
  const i = this.get(
4928
4857
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
4929
4858
  { params: e },
4930
- (l) => new _(l.data)
4859
+ (c) => new _(c.data)
4931
4860
  );
4932
- return i.catch((l) => {
4933
- this.defaultInstanceNotificationErrorResponseHandler(l, s);
4861
+ return i.catch((c) => {
4862
+ this.defaultInstanceNotificationErrorResponseHandler(c, s);
4934
4863
  }), i;
4935
4864
  }
4936
4865
  /**
@@ -4970,18 +4899,18 @@ class qt extends u {
4970
4899
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
4971
4900
  }
4972
4901
  }
4973
- class Ut {
4902
+ class Mt {
4974
4903
  /**
4975
4904
  * Возвращает диапазон дат по умолчанию.
4976
4905
  */
4977
4906
  static defaultDateRanges() {
4978
- const r = yr(/* @__PURE__ */ new Date(), 1);
4907
+ const r = vr(/* @__PURE__ */ new Date(), 1);
4979
4908
  return {
4980
4909
  // 'Следующий рабочий день' - это значение по-умолчанию
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() }
4910
+ nextWorkingDay: { label: "Следующий рабочий день", from: Tr(r), to: br(r) },
4911
+ today: { label: "Сегодня", from: Be(), to: $r() },
4912
+ yesterday: { label: "Вчера", from: Ar(), to: Dr() },
4913
+ tomorrow: { label: "Завтра", from: Rr(), to: Pr() }
4985
4914
  };
4986
4915
  }
4987
4916
  }
@@ -5025,8 +4954,8 @@ const E = class E {
5025
4954
  * Список единиц измерения линейной величины.
5026
4955
  */
5027
4956
  t(E, "linearValues", ["пог.м.", "м.", "м2"]);
5028
- let Ge = E;
5029
- class Gt {
4957
+ let Me = E;
4958
+ class Ft {
5030
4959
  /**
5031
4960
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5032
4961
  */
@@ -5042,26 +4971,26 @@ class Gt {
5042
4971
  return r.id === 0 && r.guid === "-undefined-";
5043
4972
  }
5044
4973
  }
5045
- class tt extends u {
4974
+ class nt extends u {
5046
4975
  /**
5047
4976
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5048
4977
  */
5049
4978
  getManagers() {
5050
4979
  const r = "/internal/managers", e = u.getCachedResponse(r);
5051
4980
  return e ? Promise.resolve(e) : this.get(r).then((s) => {
5052
- const i = s.data.map((o) => Ie.instanceInitializer(we, o));
4981
+ const i = s.data.map((o) => xe.instanceInitializer(we, o));
5053
4982
  return i && this.cacheResponse(r, i), i;
5054
4983
  });
5055
4984
  }
5056
4985
  }
5057
- class tr extends rr {
4986
+ class ir extends sr {
5058
4987
  /**
5059
4988
  * Инициализирует экземпляр класса {@link OrderInfo}.
5060
4989
  *
5061
4990
  * @param data Данные для первоначальной инициализации.
5062
4991
  */
5063
4992
  constructor(e) {
5064
- var s, i, o, l, p, g, R, A;
4993
+ var s, i, o, c, p, g, R, A;
5065
4994
  super(e);
5066
4995
  /**
5067
4996
  * Краткие данные о клиенте.
@@ -5108,14 +5037,14 @@ class tr extends rr {
5108
5037
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5109
5038
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5110
5039
  }, this.delivery = {
5111
- type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
5040
+ type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5112
5041
  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
5042
  address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new ge(e.delivery.address) : void 0,
5114
5043
  warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new ye(e.delivery.warehouse) : void 0
5115
5044
  }, 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
5045
  }
5117
5046
  }
5118
- class st extends H {
5047
+ class ot extends H {
5119
5048
  /**
5120
5049
  * Инициализирует экземпляр класса {@link OrderProduct}.
5121
5050
  *
@@ -5195,10 +5124,10 @@ class st extends H {
5195
5124
  * который соответствует указанной ширине. Количество не ограничено.
5196
5125
  */
5197
5126
  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;
5127
+ 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
5128
  }
5200
5129
  }
5201
- class it extends tr {
5130
+ class ct extends ir {
5202
5131
  /**
5203
5132
  * Инициализирует экземпляр класса {@link Order}.
5204
5133
  *
@@ -5238,10 +5167,10 @@ class it extends tr {
5238
5167
  * Признак, что разрешена передача заказа в работу без оплаты.
5239
5168
  */
5240
5169
  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;
5170
+ 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
5171
  }
5243
5172
  }
5244
- class Mt extends Ce {
5173
+ class Ht extends Ce {
5245
5174
  /**
5246
5175
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5247
5176
  *
@@ -5254,7 +5183,7 @@ class Mt extends Ce {
5254
5183
  getOrders(r, e, s) {
5255
5184
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5256
5185
  const o = { ...i.data };
5257
- return o.data = o.data.map((l) => new tr(l)), o;
5186
+ return o.data = o.data.map((c) => new ir(c)), o;
5258
5187
  });
5259
5188
  }
5260
5189
  /**
@@ -5272,10 +5201,118 @@ class Mt extends Ce {
5272
5201
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5273
5202
  */
5274
5203
  getOrder(r) {
5275
- return this.get(`/internal/orders/${r}`, {}, (e) => new it(e.data));
5204
+ return this.get(`/internal/orders/${r}`, {}, (e) => new ct(e.data));
5205
+ }
5206
+ }
5207
+ class De {
5208
+ /**
5209
+ * Инициализирует экземпляр класса {@link PriceAnalyze}.
5210
+ *
5211
+ * @param data Данные для первоначальной инициализации.
5212
+ */
5213
+ constructor(r) {
5214
+ /**
5215
+ * Краткие данные о клиенте.
5216
+ */
5217
+ t(this, "client");
5218
+ /**
5219
+ * Базовые данные о продукте.
5220
+ */
5221
+ t(this, "product");
5222
+ /**
5223
+ * Стоимость товара или услуги.
5224
+ */
5225
+ t(this, "cost");
5226
+ /**
5227
+ * Коэффициент стоимости продукта от розничной цены.
5228
+ */
5229
+ t(this, "costCoefficient");
5230
+ /**
5231
+ * Источник клиентской цены.
5232
+ */
5233
+ t(this, "source");
5234
+ 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;
5235
+ }
5236
+ }
5237
+ const Ae = (n) => {
5238
+ var r, e, s, i, o;
5239
+ return n ? fr(
5240
+ {
5241
+ cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5242
+ clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
5243
+ managers: (s = n.managers) == null ? void 0 : s.map((c) => c.id),
5244
+ partnerGroups: (i = n.partnerGroups) == null ? void 0 : i.map((c) => c.id),
5245
+ salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5246
+ hideNotActive: n.hideNotActive
5247
+ },
5248
+ (c) => K(c) || (ze(c) || yr(c)) && ae(c)
5249
+ ) : {};
5250
+ }, Fe = (n) => {
5251
+ const r = {};
5252
+ 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;
5253
+ };
5254
+ class zt extends u {
5255
+ /**
5256
+ * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5257
+ *
5258
+ * @param productId Идентификатор продукта.
5259
+ * @param params Параметры анализа цен.
5260
+ * @param filters Параметры фильтрации данных.
5261
+ *
5262
+ * @see /doc/api/internal#/operations/api_internal_catalog_price_products_analyze
5263
+ */
5264
+ analyzeProductPrices(r, e, s) {
5265
+ return this.get(
5266
+ `/internal/price/products/${r}/analyze`,
5267
+ {
5268
+ ...Fe(e),
5269
+ filters: Ae(s)
5270
+ },
5271
+ (i) => i.data.map((o) => new De(o))
5272
+ );
5273
+ }
5274
+ /**
5275
+ * Возвращает список клиентских цен на продукты категории в указанном диапазоне цены.
5276
+ *
5277
+ * @param productCategoryId Идентификатор категории продукта.
5278
+ * @param params Параметры анализа цен.
5279
+ * @param filters Параметры фильтрации данных.
5280
+ *
5281
+ * @see /doc/api/internal#/operations/api_internal_catalog_price_categories_analyze
5282
+ */
5283
+ analyzeCategoryPrices(r, e, s) {
5284
+ return this.get(
5285
+ `/internal/price/categories/${r}/analyze`,
5286
+ {
5287
+ ...Fe(e),
5288
+ filters: Ae(s)
5289
+ },
5290
+ (i) => i.data.map((o) => new De(o))
5291
+ );
5292
+ }
5293
+ /**
5294
+ * Возвращает список клиентских цен на продукты категории в указанном диапазоне цены за квадратный метр.
5295
+ *
5296
+ * @param productCategoryId Идентификатор категории продукта.
5297
+ * @param params Параметры анализа цен.
5298
+ * @param params.from Цена больше или равна значению.
5299
+ * @param params.to Цена меньше или равна значению.
5300
+ * @param filters Параметры фильтрации данных.
5301
+ *
5302
+ * @see /doc/api/internal#/operations/api_internal_catalog_price_categories_analyze_by_square
5303
+ */
5304
+ analyzeCategoryPricesBySquare(r, e, s) {
5305
+ return this.get(
5306
+ `/internal/price/categories/${r}/analyze/square`,
5307
+ {
5308
+ ...e,
5309
+ filters: Ae(s)
5310
+ },
5311
+ (i) => i.data.map((o) => new De(o))
5312
+ );
5276
5313
  }
5277
5314
  }
5278
- class nt {
5315
+ class lt {
5279
5316
  /**
5280
5317
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5281
5318
  *
@@ -5293,7 +5330,7 @@ class nt {
5293
5330
  this.name = r.name, this.content = r.content;
5294
5331
  }
5295
5332
  }
5296
- class Me {
5333
+ class He {
5297
5334
  /**
5298
5335
  * Инициализирует экземпляр класса {@link Seo}.
5299
5336
  *
@@ -5329,10 +5366,10 @@ class Me {
5329
5366
  */
5330
5367
  t(this, "meta");
5331
5368
  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))) ?? [];
5369
+ 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
5370
  }
5334
5371
  }
5335
- class Ft extends u {
5372
+ class Bt extends u {
5336
5373
  /**
5337
5374
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5338
5375
  *
@@ -5340,7 +5377,7 @@ class Ft extends u {
5340
5377
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
5341
5378
  */
5342
5379
  getResourceSeoData(r, e) {
5343
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new Me(s.data));
5380
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new He(s.data));
5344
5381
  }
5345
5382
  /**
5346
5383
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -5351,7 +5388,7 @@ class Ft extends u {
5351
5388
  * в случае ошибок в запросах.
5352
5389
  */
5353
5390
  saveResourceSeoData(r, e = {}) {
5354
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new Me(s.data), e);
5391
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new He(s.data), e);
5355
5392
  }
5356
5393
  /**
5357
5394
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -5364,7 +5401,7 @@ class Ft extends u {
5364
5401
  }
5365
5402
  }
5366
5403
  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);
5404
+ 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), A = C(void 0), L = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), d = C(void 0), l = C(void 0);
5368
5405
  return {
5369
5406
  /**
5370
5407
  * Список загружаемых/загруженных на данный момент значений.
@@ -5393,7 +5430,7 @@ const P = me("__references_private", () => {
5393
5430
  /**
5394
5431
  * Справочник организационно-правовых форм.
5395
5432
  */
5396
- opfReference: l,
5433
+ opfReference: c,
5397
5434
  /**
5398
5435
  * Справочник статусов оплаты заказа.
5399
5436
  */
@@ -5413,15 +5450,15 @@ const P = me("__references_private", () => {
5413
5450
  /**
5414
5451
  * Справочник типов файлов продукктов/категорий.
5415
5452
  */
5416
- productFileTypeReference: I,
5453
+ productFileTypeReference: L,
5417
5454
  /**
5418
5455
  * Справочник типов ресурсов.
5419
5456
  */
5420
- resourceTypesReference: x,
5457
+ resourceTypesReference: I,
5421
5458
  /**
5422
5459
  * Справочник направлений продаж.
5423
5460
  */
5424
- salesDirectionsReference: a,
5461
+ salesDirectionsReference: x,
5425
5462
  /**
5426
5463
  * Справочник источников первичного интереса.
5427
5464
  */
@@ -5437,94 +5474,94 @@ const P = me("__references_private", () => {
5437
5474
  /**
5438
5475
  * Справочник коэффициентов цен.
5439
5476
  */
5440
- priceCoefficientsReference: c
5477
+ priceCoefficientsReference: l
5441
5478
  };
5442
- }), Ht = me("references", () => {
5479
+ }), Wt = me("references", () => {
5443
5480
  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;
5481
+ const l = P();
5482
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(D).getChannelPrimaryInterest().then((h) => {
5483
+ l.channelPrimaryInterestReference = h;
5484
+ }).catch(y)), l.channelPrimaryInterestReference;
5448
5485
  }), 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;
5486
+ const l = P();
5487
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, u.getInstance(D).getContactPositions().then((h) => {
5488
+ l.contactPositionsReference = h;
5489
+ }).catch(y)), l.contactPositionsReference;
5453
5490
  }), 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;
5491
+ const l = P();
5492
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, u.getInstance(D).getCurrency().then((h) => {
5493
+ l.currencyReference = h;
5494
+ }).catch(y)), l.currencyReference;
5458
5495
  }), 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;
5496
+ const l = P();
5497
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, u.getInstance(D).getOpf().then((h) => {
5498
+ l.opfReference = h;
5499
+ }).catch(y)), l.opfReference;
5463
5500
  }), 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;
5501
+ const l = P();
5502
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(D).getOrderPaymentStatuses().then((h) => {
5503
+ l.orderPaymentStatusReference = h;
5504
+ }).catch(y)), l.orderPaymentStatusReference;
5468
5505
  }), 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;
5506
+ const l = P();
5507
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, u.getInstance(D).getOrderStatuses().then((h) => {
5508
+ l.orderStatusReference = h;
5509
+ }).catch(y)), l.orderStatusReference;
5510
+ }), c = v(() => {
5511
+ const l = P();
5512
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, u.getInstance(D).getPaymentTypes().then((h) => {
5513
+ l.paymentTypeReference = h;
5514
+ }).catch(y)), l.paymentTypeReference;
5478
5515
  }), 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;
5516
+ const l = P();
5517
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, u.getInstance(D).getPartnerGroup().then((h) => {
5518
+ l.partnerGroupReference = h;
5519
+ }).catch(y)), l.partnerGroupReference;
5483
5520
  }), 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;
5521
+ const l = P();
5522
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, u.getInstance(D).getProductFileType().then((h) => {
5523
+ l.productFileTypeReference = h;
5524
+ }).catch(y)), l.productFileTypeReference;
5488
5525
  }), 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;
5526
+ const l = P();
5527
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, u.getInstance(D).getResourceTypes().then((h) => {
5528
+ l.resourceTypesReference = h;
5529
+ }).catch(y)), l.resourceTypesReference;
5493
5530
  }), 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;
5531
+ const l = P();
5532
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, u.getInstance(D).getSalesDirections().then((h) => {
5533
+ l.salesDirectionsReference = h;
5534
+ }).catch(y)), l.salesDirectionsReference;
5535
+ }), L = v(() => {
5536
+ const l = P();
5537
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(D).getSourcePrimaryInterest().then((h) => {
5538
+ l.sourcePrimaryInterestReference = h;
5539
+ }).catch(y)), l.sourcePrimaryInterestReference;
5498
5540
  }), 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;
5541
+ const l = P();
5542
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, u.getInstance(D).getDeliveryTypes().then((h) => {
5543
+ l.deliveryTypeReference = h;
5544
+ }).catch(y)), l.deliveryTypeReference;
5503
5545
  }), 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;
5546
+ const l = P();
5547
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, u.getInstance(nt).getManagers().then((h) => {
5548
+ l.managersList = h;
5549
+ }).catch(y)), l.managersList;
5513
5550
  }), 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;
5551
+ const l = P();
5552
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, u.getInstance(D).getWarehouses().then((h) => {
5553
+ l.warehousesReference = h;
5554
+ }).catch(y)), l.warehousesReference;
5518
5555
  }), 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;
5556
+ const l = P();
5557
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, u.getInstance(D).getPropertyTypes().then((h) => {
5558
+ l.propertyTypesReference = h;
5559
+ }).catch(y)), l.propertyTypesReference;
5523
5560
  }), 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;
5561
+ const l = P();
5562
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(D).getPriceCoefficients().then((h) => {
5563
+ l.priceCoefficientsReference = h;
5564
+ }).catch(y)), l.priceCoefficientsReference;
5528
5565
  });
5529
5566
  return {
5530
5567
  /**
@@ -5554,7 +5591,7 @@ const P = me("__references_private", () => {
5554
5591
  /**
5555
5592
  * Справочник типов оплаты заказов.
5556
5593
  */
5557
- paymentTypeReference: l,
5594
+ paymentTypeReference: c,
5558
5595
  /**
5559
5596
  * Справочник групп партнеров.
5560
5597
  */
@@ -5574,15 +5611,15 @@ const P = me("__references_private", () => {
5574
5611
  /**
5575
5612
  * Справочник каналов первичного интереса.
5576
5613
  */
5577
- sourcePrimaryInterestsReference: I,
5614
+ sourcePrimaryInterestsReference: L,
5578
5615
  /**
5579
5616
  * Справочник типов доставки.
5580
5617
  */
5581
- deliveryTypeReference: x,
5618
+ deliveryTypeReference: I,
5582
5619
  /**
5583
5620
  * Список менеджеров.
5584
5621
  */
5585
- managersList: a,
5622
+ managersList: x,
5586
5623
  /**
5587
5624
  * Справочник складов.
5588
5625
  */
@@ -5596,7 +5633,7 @@ const P = me("__references_private", () => {
5596
5633
  */
5597
5634
  priceCoefficientsReference: d
5598
5635
  };
5599
- }), ot = me("__user_state_private", () => {
5636
+ }), pt = me("__user_state_private", () => {
5600
5637
  const n = C({}), r = C(void 0);
5601
5638
  return {
5602
5639
  /**
@@ -5608,18 +5645,18 @@ const P = me("__references_private", () => {
5608
5645
  */
5609
5646
  currentUser: r
5610
5647
  };
5611
- }), zt = me("user_state", () => ({
5648
+ }), jt = me("user_state", () => ({
5612
5649
  /**
5613
5650
  * Данные о текущем пользователе.
5614
5651
  */
5615
5652
  currentUser: v(() => {
5616
- const r = ot();
5617
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Kr).getCurrentUser().then((e) => {
5653
+ const r = pt();
5654
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Yr).getCurrentUser().then((e) => {
5618
5655
  r.currentUser = e;
5619
5656
  }).catch(y).finally(y)), r.currentUser;
5620
5657
  })
5621
5658
  }));
5622
- class Bt extends u {
5659
+ class Vt extends u {
5623
5660
  /**
5624
5661
  * Возвращает подсказки по адресам.
5625
5662
  *
@@ -5660,13 +5697,13 @@ class Bt extends u {
5660
5697
  return this.get(r, { query: e }).then((s) => {
5661
5698
  const i = [...s];
5662
5699
  let o = 1;
5663
- return i.forEach((l) => {
5664
- l.id = o++;
5700
+ return i.forEach((c) => {
5701
+ c.id = o++;
5665
5702
  }), i;
5666
5703
  });
5667
5704
  }
5668
5705
  }
5669
- class Wt {
5706
+ class Et {
5670
5707
  /**
5671
5708
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5672
5709
  *
@@ -5690,140 +5727,140 @@ class Wt {
5690
5727
  }
5691
5728
  }
5692
5729
  export {
5693
- Fr as AnyReference,
5694
- ft as AppBaseConfig,
5730
+ Br as AnyReference,
5731
+ Ct as AppBaseConfig,
5695
5732
  b as AppConfigProvider,
5696
- Te as BankAccount,
5733
+ _e as BankAccount,
5697
5734
  Ce as BasePaginationProvider,
5698
- Or as CalculationTypeEnum,
5735
+ Ur as CalculationTypeEnum,
5699
5736
  oe as Cart,
5700
- Ir as CartItem,
5701
- Lr as CartItemBase,
5702
- yt as CartProvider,
5703
- Pt as CatalogProvider,
5704
- ze as CatalogableItem,
5737
+ kr as CartItem,
5738
+ xr as CartItemBase,
5739
+ vt as CartProvider,
5740
+ At as CatalogProvider,
5741
+ We as CatalogableItem,
5705
5742
  q as Category,
5706
- Oe as CategoryPricingRule,
5707
- Je as ChannelPrimaryInterest,
5708
- vt as City,
5743
+ qe as CategoryPricingRule,
5744
+ Ye as ChannelPrimaryInterest,
5745
+ Dt as City,
5709
5746
  pe as CityWithRegionAndCountry,
5710
- Ue as Client,
5711
- et as ClientAdditionalData,
5747
+ Ge as Client,
5748
+ st as ClientAdditionalData,
5712
5749
  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,
5750
+ qt as ClientDataProvider,
5751
+ $t as ClientPriceProvider,
5752
+ bt as ClientPriceTemplateProvider,
5753
+ Q as ClientProduct,
5754
+ St as ClientProductCategoryDataProvider,
5755
+ at as ClientProductDataProvider,
5719
5756
  ne as ClientShortInfo,
5720
- Qr as ClientsAdditionalDataRequestTypeEnum,
5721
- at as ClientsListFilters,
5722
- qt as ConfiguratorProvider,
5723
- _e as Contact,
5724
- Gr as ContactLinks,
5757
+ Zr as ClientsAdditionalDataRequestTypeEnum,
5758
+ Nt as ClientsListFilters,
5759
+ Gt as ConfiguratorProvider,
5760
+ Se as Contact,
5761
+ Hr as ContactLinks,
5725
5762
  F as ContactPerson,
5726
- Zr as ContactPersonRelated,
5727
- Hr as ContactPosition,
5728
- De as ContactRelation,
5729
- Xe as ContragentBase,
5763
+ tt as ContactPersonRelated,
5764
+ Wr as ContactPosition,
5765
+ Re as ContactRelation,
5766
+ er as ContragentBase,
5730
5767
  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,
5768
+ rr as ContragentIc,
5769
+ et as ContragentPerson,
5770
+ rt as ContragentUlNr,
5771
+ tr as ContragentUlR,
5772
+ ke as CostSourceEnum,
5773
+ Y as Country,
5737
5774
  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,
5775
+ Vt as DataSuggestionProvider,
5776
+ Ot as DataTablePagination,
5777
+ it as DataTablePaginationRequestParams,
5778
+ dt as DataTableSortRequestParams,
5779
+ Mt as DateTimeProvider,
5780
+ Mr as DeletableNamedIdentity,
5744
5781
  ge as DeliveryAddress,
5745
- K as DeliveryType,
5746
- xr as DeviceTypeResolutionConfig,
5747
- Ur as DiscountShortInfo,
5748
- Wt as FieldValidationResultData,
5782
+ J as DeliveryType,
5783
+ Nr as DeviceTypeResolutionConfig,
5784
+ Fr as DiscountShortInfo,
5785
+ Et as FieldValidationResultData,
5749
5786
  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,
5787
+ Ue as FilterItem,
5788
+ Ne as FilterOpEnum,
5789
+ Ve as GeoCoordinates,
5790
+ Lr as HiddenCatalogableItem,
5791
+ Te as HttpBaseCachedRequester,
5792
+ be as HttpBaseRequester,
5793
+ Or as HttpParamsConfig,
5757
5794
  u as HttpRequester,
5758
5795
  H as Identity,
5759
- Sr as Image,
5796
+ Ir as Image,
5760
5797
  we as Manager,
5761
5798
  re as ManagerCommon,
5762
- Gt as ManagerDataFactory,
5763
- tt as ManagerDataProvider,
5764
- nt as MetaTagItem,
5799
+ Ft as ManagerDataFactory,
5800
+ nt as ManagerDataProvider,
5801
+ lt as MetaTagItem,
5765
5802
  $ as NamedIdentity,
5766
5803
  G as Opf,
5767
5804
  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,
5805
+ ct as Order,
5806
+ ir as OrderInfo,
5807
+ jr as OrderPaymentStatus,
5808
+ ot as OrderProduct,
5809
+ sr as OrderShortInfo,
5810
+ Vr as OrderStatus,
5811
+ Ht as OrdersDataProvider,
5775
5812
  M as PartnerGroup,
5776
- Wr as PaymentType,
5777
- wt as PreferencesStorageProvider,
5778
- Re as PriceAnalyze,
5779
- xt as PriceAnalyzeProvider,
5813
+ Er as PaymentType,
5814
+ Pt as PreferencesStorageProvider,
5815
+ De as PriceAnalyze,
5816
+ zt as PriceAnalyzeProvider,
5780
5817
  fe as PriceCoefficient,
5781
- Be as PriceCoefficientEnum,
5818
+ je as PriceCoefficientEnum,
5782
5819
  W as PriceTemplate,
5783
5820
  ve as PriceTemplateCategory,
5784
- Y as PriceTemplateClient,
5785
- Ve as PriceTemplateICatalogableItem,
5821
+ X as PriceTemplateClient,
5822
+ Ke as PriceTemplateICatalogableItem,
5786
5823
  Pe as PriceTemplateProduct,
5787
- _t as PriceTemplateProvider,
5788
- Z as PricingRole,
5789
- St as PricingRoleProvider,
5790
- Ae as PrimaryCatalogableItem,
5824
+ Lt as PriceTemplateProvider,
5825
+ ee as PricingRole,
5826
+ It as PricingRoleProvider,
5827
+ $e as PrimaryCatalogableItem,
5791
5828
  _ 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,
5829
+ Tt as ProductCategoryDataProvider,
5830
+ _t as ProductDataProvider,
5831
+ Kr as ProductFileType,
5832
+ Ie as ProductPriceCoefficient,
5833
+ Xr as ProductPriceHistory,
5834
+ xt as PropertiesProvider,
5835
+ Z as Property,
5836
+ Qe as PropertyType,
5837
+ Gr as PropertyTypeEnum,
5801
5838
  z as PropertyValue,
5802
- It as RecommendationsDataProvider,
5803
- Ne as RecommendationsList,
5839
+ kt as RecommendationsDataProvider,
5840
+ de as RecommendationsList,
5804
5841
  w as Reference,
5805
5842
  D as ReferenceDataProvider,
5806
5843
  te as Region,
5807
- Qe as ResourceType,
5844
+ Xe as ResourceType,
5808
5845
  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,
5846
+ dr as SentryConfig,
5847
+ He as Seo,
5848
+ Bt as SeoDataProvider,
5849
+ Ze as SourcePrimaryInterest,
5850
+ ar as StockCount,
5851
+ Rt as TemplatesListFilters,
5852
+ xe as TypedInstanceFactory,
5853
+ Me as UnitsHelper,
5854
+ Ut as UnknownClientDataProvider,
5855
+ Ee as UpdatableNamedIdentity,
5856
+ Qr as User,
5857
+ Je as UserCommonInfo,
5858
+ Yr as UserDataProvider,
5822
5859
  U as UserShortInfo,
5823
- Vr as UserTypeEnum,
5824
- Nr as VersionConfig,
5860
+ Jr as UserTypeEnum,
5861
+ qr as VersionConfig,
5825
5862
  ye as Warehouse,
5826
- Ht as useReferencesStore,
5827
- zt as useUserStateStore
5863
+ Wt as useReferencesStore,
5864
+ jt as useUserStateStore
5828
5865
  };
5829
5866
  //# sourceMappingURL=sc-common-lib.js.map