@snabcentr/common-lib 1.59.1 → 1.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +3 -3
  3. package/dist/sc-common-lib.js +235 -258
  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/product.d.ts.map +1 -1
  8. package/dist/src/config/classes/app-base-config.d.ts +0 -16
  9. package/dist/src/config/classes/app-base-config.d.ts.map +1 -1
  10. package/dist/src/config/interfaces/i-app-base-config.d.ts +0 -67
  11. package/dist/src/config/interfaces/i-app-base-config.d.ts.map +1 -1
  12. package/dist/src/config/interfaces/i-catalog-config.d.ts +29 -0
  13. package/dist/src/config/interfaces/i-catalog-config.d.ts.map +1 -0
  14. package/dist/src/config/interfaces/index.d.ts +1 -1
  15. package/dist/src/config/interfaces/index.d.ts.map +1 -1
  16. package/dist/src/system/classes/identity.d.ts +4 -4
  17. package/dist/src/system/classes/identity.d.ts.map +1 -1
  18. package/dist/src/system/classes/named-identity.d.ts +2 -2
  19. package/dist/src/system/classes/named-identity.d.ts.map +1 -1
  20. package/dist/src/system/classes/reference.d.ts +1 -1
  21. package/dist/src/system/classes/reference.d.ts.map +1 -1
  22. package/dist/src/system/index.d.ts +0 -1
  23. package/dist/src/system/index.d.ts.map +1 -1
  24. package/dist/src/system/interfaces/i-identity.d.ts +2 -2
  25. package/dist/src/system/interfaces/i-identity.d.ts.map +1 -1
  26. package/dist/src/system/interfaces/i-named-identity.d.ts +2 -2
  27. package/dist/src/system/interfaces/i-named-identity.d.ts.map +1 -1
  28. package/dist/src/system/interfaces/i-reference.d.ts +1 -1
  29. package/dist/src/system/interfaces/i-reference.d.ts.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/src/config/interfaces/i-theme.d.ts +0 -10
  32. package/dist/src/config/interfaces/i-theme.d.ts.map +0 -1
  33. package/dist/src/system/enums/index.d.ts +0 -2
  34. package/dist/src/system/enums/index.d.ts.map +0 -1
  35. package/dist/src/system/enums/window-resolution-enum.d.ts +0 -18
  36. package/dist/src/system/enums/window-resolution-enum.d.ts.map +0 -1
@@ -1,11 +1,11 @@
1
1
  var tr = Object.defineProperty;
2
2
  var sr = (n, r, e) => r in n ? tr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var t = (n, r, e) => sr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { toUpper as ir, constant as nr, isUndefined as or, isString as m, cloneDeep as cr, noop as y, toLower as lr, isNil as _e, isFunction as Se, map as oe, forEach as pr, isDate as ur, isEmpty as hr } from "lodash-es";
5
- import { parseISO as f, format as B, addSeconds as gr, isAfter as mr, startOfToday as Fe, addBusinessDays as fr, endOfTomorrow as yr, startOfTomorrow as wr, endOfYesterday as Cr, startOfYesterday as vr, endOfToday as Pr, endOfDay as Rr, startOfDay as Dr } from "date-fns";
6
- import Ar from "axios";
7
- import { objectToSnake as ke, objectToCamel as $r } from "ts-case-convert";
8
- import { defineStore as ge } from "pinia";
4
+ import { isNil as ee, toUpper as ir, constant as nr, isUndefined as or, isString as m, cloneDeep as cr, noop as y, toLower as lr, isFunction as Se, map as ce, forEach as pr, isDate as ur, isEmpty as hr, isArray as gr } from "lodash-es";
5
+ import { parseISO as f, format as B, addSeconds as mr, isAfter as fr, startOfToday as Fe, addBusinessDays as yr, endOfTomorrow as wr, startOfTomorrow as Cr, endOfYesterday as vr, startOfYesterday as Pr, endOfToday as Rr, endOfDay as Dr, startOfDay as Ar } from "date-fns";
6
+ import $r from "axios";
7
+ import { objectToSnake as ke, objectToCamel as Tr } from "ts-case-convert";
8
+ import { defineStore as me } from "pinia";
9
9
  import { ref as C, computed as v } from "vue";
10
10
  class H {
11
11
  /**
@@ -15,20 +15,20 @@ class H {
15
15
  */
16
16
  constructor(r) {
17
17
  /**
18
- * Идентификатор записи.
18
+ * @inheritDoc
19
19
  */
20
20
  t(this, "id");
21
21
  /**
22
- * GUID-идентификатор.
22
+ * @inheritDoc
23
23
  */
24
24
  t(this, "guid");
25
- this.id = (r == null ? void 0 : r.id) ?? -1, this.guid = (r == null ? void 0 : r.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) ?? "";
26
26
  }
27
27
  /**
28
28
  * Возвращает признак, что это новая запись.
29
29
  */
30
30
  isNewRec() {
31
- return this.id === -1;
31
+ return typeof this.id == "number" ? this.id === -1 : (typeof this.id == "string" && (this.id = ""), ee(this.id));
32
32
  }
33
33
  }
34
34
  class D extends H {
@@ -69,7 +69,7 @@ class He extends D {
69
69
  this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
70
70
  }
71
71
  }
72
- class De extends He {
72
+ class Ae extends He {
73
73
  /**
74
74
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
75
75
  *
@@ -84,7 +84,7 @@ class De extends He {
84
84
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
85
85
  }
86
86
  }
87
- class se extends De {
87
+ class ie extends Ae {
88
88
  /**
89
89
  * Инициализирует экземпляр класса {@link BaseCategory}.
90
90
  *
@@ -131,7 +131,7 @@ class w extends D {
131
131
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
132
132
  }
133
133
  }
134
- class me extends w {
134
+ class fe extends w {
135
135
  /**
136
136
  * Возвращает значение справочника коэффициента розничной цены.
137
137
  */
@@ -139,7 +139,7 @@ class me extends w {
139
139
  return { id: -2, slug: ze.Retail, name: "Розн. цена", guid: "", isNewRec: nr(!0) };
140
140
  }
141
141
  }
142
- class Le {
142
+ class ae {
143
143
  /**
144
144
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
145
145
  *
@@ -166,7 +166,7 @@ class Le {
166
166
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
167
167
  */
168
168
  t(this, "readOnly");
169
- this.coefficient = new me(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;
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
172
  class Be {
@@ -189,7 +189,7 @@ class Be {
189
189
  }
190
190
  class K extends w {
191
191
  }
192
- class fe extends w {
192
+ class ye extends w {
193
193
  /**
194
194
  * Инициализирует экземпляр класса {@link Warehouse}.
195
195
  *
@@ -221,7 +221,7 @@ class fe extends w {
221
221
  this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Be(e == null ? void 0 : e.coordinates);
222
222
  }
223
223
  }
224
- class Tr {
224
+ class br {
225
225
  /**
226
226
  * Инициализирует экземпляр класса {@link StockCount}.
227
227
  *
@@ -236,7 +236,7 @@ class Tr {
236
236
  * Количество остатков товара на складе.
237
237
  */
238
238
  t(this, "count");
239
- this.warehouse = new fe(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
239
+ this.warehouse = new ye(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
240
240
  }
241
241
  }
242
242
  const j = class j {
@@ -276,7 +276,7 @@ const j = class j {
276
276
  */
277
277
  t(j, "config");
278
278
  let T = j;
279
- class br extends He {
279
+ class _r extends He {
280
280
  /**
281
281
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
282
282
  *
@@ -291,7 +291,7 @@ class br extends He {
291
291
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
292
292
  }
293
293
  }
294
- class _r {
294
+ class Sr {
295
295
  /**
296
296
  * Инициализирует экземпляр класса {@link Image}.
297
297
  *
@@ -314,7 +314,7 @@ class _r {
314
314
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
315
315
  }
316
316
  }
317
- class _ extends br {
317
+ class _ extends _r {
318
318
  /**
319
319
  * Инициализирует экземпляр класса {@link Product}.
320
320
  *
@@ -391,19 +391,20 @@ class _ extends br {
391
391
  * Список коэффициентов цен на продукт.
392
392
  */
393
393
  t(this, "priceCoefficients");
394
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((g) => new Tr(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
394
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((g) => new br(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
395
395
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
396
- s && (this.category = new De({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new De(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new _r(g, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new Le(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
396
+ s && (this.category = new Ae({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new Ae(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new Sr(g, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new ae(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
397
397
  }
398
398
  /**
399
399
  * Возвращает признак, что это измеряемый товар.
400
400
  */
401
401
  getIsMeasurable() {
402
- const e = T.getConfig().products.units;
403
- return [...e.linear, ...e.square].includes(this.unit);
402
+ var s;
403
+ const e = (s = T.getConfig().catalog) == null ? void 0 : s.products.units;
404
+ return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
404
405
  }
405
406
  }
406
- class Sr extends H {
407
+ class ar extends H {
407
408
  /**
408
409
  * Инициализирует экземпляр класса {@link CartItemBase}.
409
410
  *
@@ -455,10 +456,10 @@ class Sr extends H {
455
456
  * Признак того, что позиция является дополнительной продажей.
456
457
  */
457
458
  t(this, "isAdditionalSale");
458
- this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new se(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && cr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
459
+ this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ie(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && cr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
459
460
  }
460
461
  }
461
- class Lr extends Sr {
462
+ class Lr extends ar {
462
463
  /**
463
464
  * Инициализирует экземпляр класса {@link CartItem}.
464
465
  *
@@ -508,7 +509,7 @@ class Lr extends Sr {
508
509
  this.currency = e.currency, this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
509
510
  }
510
511
  }
511
- class ne {
512
+ class oe {
512
513
  /**
513
514
  * Инициализирует экземпляр класса {@link Cart}.
514
515
  *
@@ -530,7 +531,7 @@ class ne {
530
531
  this.items = r.items.map((e) => new Lr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
531
532
  }
532
533
  }
533
- class ar {
534
+ class Ir {
534
535
  /**
535
536
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
536
537
  *
@@ -552,7 +553,7 @@ class ar {
552
553
  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;
553
554
  }
554
555
  }
555
- class Ir {
556
+ class xr {
556
557
  /**
557
558
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
558
559
  *
@@ -574,7 +575,7 @@ class Ir {
574
575
  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;
575
576
  }
576
577
  }
577
- class xr {
578
+ class kr {
578
579
  /**
579
580
  * Инициализирует экземпляр класса {@link SentryConfig}.
580
581
  *
@@ -619,7 +620,7 @@ class xr {
619
620
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
620
621
  }
621
622
  }
622
- class kr {
623
+ class Nr {
623
624
  /**
624
625
  * Инициализирует экземпляр класса {@link VersionConfig}.
625
626
  *
@@ -652,10 +653,6 @@ class ft {
652
653
  * Тип окружения.
653
654
  */
654
655
  t(this, "environment");
655
- /**
656
- * Название текущего домена.
657
- */
658
- t(this, "currentDomain");
659
656
  /**
660
657
  * Параметры разработки и отладки.
661
658
  */
@@ -668,10 +665,6 @@ class ft {
668
665
  * Список условного отношения разрешения экрана и типа устройств.
669
666
  */
670
667
  t(this, "deviceTypeByResolution");
671
- /**
672
- * Настройки продуктов.
673
- */
674
- t(this, "products");
675
668
  /**
676
669
  * Настройки системы журналирования ошибок Sentry.
677
670
  */
@@ -688,32 +681,18 @@ class ft {
688
681
  * Форматы дат.
689
682
  */
690
683
  t(this, "dateFormats");
691
- /**
692
- * Параметры тем для различных устройств.
693
- */
694
- t(this, "themes");
695
- /**
696
- * Минимальная длина поискового запроса.
697
- */
698
- t(this, "minSearchTermLength");
699
684
  var e, s, i;
700
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.currentDomain = (r == null ? void 0 : r.currentDomain) ?? "", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Ir(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ar(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
701
- units: {
702
- linear: ["пог.м.", "м."],
703
- square: ["м2"]
704
- },
705
- ...r == null ? void 0 : r.products
706
- }, this.sentry = new xr({
685
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Ir(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new kr({
707
686
  environment: this.environment,
708
687
  ...r == null ? void 0 : r.sentry
709
- }), this.urls = r == null ? void 0 : r.urls, this.version = new kr(r == null ? void 0 : r.version), this.dateFormats = {
688
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new Nr(r == null ? void 0 : r.version), this.dateFormats = {
710
689
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
711
690
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
712
691
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
713
- }, this.minSearchTermLength = (r == null ? void 0 : r.minSearchTermLength) ?? 3, r != null && r.themes && (this.themes = r.themes);
692
+ };
714
693
  }
715
694
  }
716
- class ae {
695
+ class Le {
717
696
  /**
718
697
  * Инициализирует экземпляр указанного класса.
719
698
  *
@@ -732,7 +711,7 @@ class ae {
732
711
  return new r(e);
733
712
  }
734
713
  }
735
- const L = class L {
714
+ const a = class a {
736
715
  /**
737
716
  * Инициализирует экземпляр класса {@link HttpRequester}.
738
717
  *
@@ -753,11 +732,11 @@ const L = class L {
753
732
  */
754
733
  t(this, "defaultInstanceNotificationErrorResponseHandler", y);
755
734
  const s = T.getConfig().version;
756
- this.defaultInstanceNotificationErrorResponseHandler = L.baseDefaultNotificationErrorResponseHandler, this.httpClient = Ar.create({
735
+ this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = $r.create({
757
736
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
758
737
  baseURL: r,
759
738
  headers: {
760
- "APP-VERSION": `${s.name} (${s.version}, ${B(s.date, T.getConfig().dateFormats.api)})`,
739
+ "APP-VERSION": `${s.name} (${s.version}, ${B(s.date, T.getConfig().dateFormats.uiDate)})`,
761
740
  Accept: "application/json",
762
741
  "Content-Type": "application/json",
763
742
  ...e
@@ -766,9 +745,9 @@ const L = class L {
766
745
  (i) => (i.method && (i.method === "get" && i.params && (i.params = ke(i.params)), ["put", "patch", "post"].includes(lr(i.method)) && i.data && (i.data = ke(i.data))), i),
767
746
  (i) => Promise.reject(i)
768
747
  ), this.httpClient.interceptors.response.use(
769
- (i) => (i.data && (i.data = $r(i.data)), i),
748
+ (i) => (i.data && (i.data = Tr(i.data)), i),
770
749
  // Возвращаем изменённую структуру сообщения об ошибке.
771
- (i) => L.convertHttpErrorResponse(i)
750
+ (i) => a.convertHttpErrorResponse(i)
772
751
  );
773
752
  }
774
753
  /**
@@ -777,7 +756,7 @@ const L = class L {
777
756
  * @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
778
757
  */
779
758
  static setBaseDefaultNotificationErrorResponseHandler(r) {
780
- L.baseDefaultNotificationErrorResponseHandler = r;
759
+ a.baseDefaultNotificationErrorResponseHandler = r;
781
760
  }
782
761
  /**
783
762
  * Возвращает экземпляр объекта текущего класса.
@@ -785,7 +764,7 @@ const L = class L {
785
764
  * @param type Тип данных, которыми оперирует метод.
786
765
  */
787
766
  static getInstance(r) {
788
- return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] = ae.simpleInstanceInitializer(r)), L.instances[r.name];
767
+ return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Le.simpleInstanceInitializer(r)), a.instances[r.name];
789
768
  }
790
769
  /**
791
770
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -880,16 +859,16 @@ const L = class L {
880
859
  * Экземпляр объекта текущего класса.
881
860
  */
882
861
  // eslint-disable-next-line no-use-before-define
883
- t(L, "instances", {}), /**
862
+ t(a, "instances", {}), /**
884
863
  * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
885
864
  *
886
865
  * Параметры:
887
866
  * - error Данные об ошибке.
888
867
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
889
868
  */
890
- t(L, "baseDefaultNotificationErrorResponseHandler", y);
891
- let Ae = L;
892
- const V = class V extends Ae {
869
+ t(a, "baseDefaultNotificationErrorResponseHandler", y);
870
+ let $e = a;
871
+ const V = class V extends $e {
893
872
  /**
894
873
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
895
874
  *
@@ -924,7 +903,7 @@ const V = class V extends Ae {
924
903
  */
925
904
  cacheResponse(e, s) {
926
905
  V.responseDataCache.set(e, {
927
- validTo: gr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
906
+ validTo: mr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
928
907
  val: s
929
908
  });
930
909
  }
@@ -940,7 +919,7 @@ const V = class V extends Ae {
940
919
  getTypedDataArrayRequester(e, s, i = !1) {
941
920
  const o = i ? V.getCachedResponse(s) : void 0;
942
921
  return o ? Promise.resolve(o) : this.get(s).then((l) => {
943
- const p = l.map((g) => ae.instanceInitializer(e, g));
922
+ const p = l.map((g) => Le.instanceInitializer(e, g));
944
923
  return i && p && this.cacheResponse(s, p), p;
945
924
  });
946
925
  }
@@ -949,8 +928,8 @@ const V = class V extends Ae {
949
928
  * Кэш результатов запросов.
950
929
  */
951
930
  t(V, "responseDataCache", /* @__PURE__ */ new Map());
952
- let $e = V;
953
- class u extends $e {
931
+ let Te = V;
932
+ class u extends Te {
954
933
  /**
955
934
  * Инициализирует экземпляр класса {@link HttpRequester}.
956
935
  */
@@ -969,7 +948,7 @@ class yt extends u {
969
948
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
970
949
  */
971
950
  getCart(r) {
972
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ne(e.data));
951
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new oe(e.data));
973
952
  }
974
953
  /**
975
954
  * Удаляет всё содержимое корзины.
@@ -1007,7 +986,7 @@ class yt extends u {
1007
986
  isAdditionalSale: e.isAdditionalSale,
1008
987
  ...e.configuratorParams
1009
988
  },
1010
- (i) => new ne(i.data),
989
+ (i) => new oe(i.data),
1011
990
  s
1012
991
  );
1013
992
  }
@@ -1037,7 +1016,7 @@ class yt extends u {
1037
1016
  isAdditionalSale: e.isAdditionalSale,
1038
1017
  ...e.configuratorParams
1039
1018
  },
1040
- (i) => new ne(i.data),
1019
+ (i) => new oe(i.data),
1041
1020
  s
1042
1021
  );
1043
1022
  }
@@ -1060,11 +1039,11 @@ class yt extends u {
1060
1039
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1061
1040
  */
1062
1041
  addCartItemFromCSV(r) {
1063
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ne(e.data));
1042
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new oe(e.data));
1064
1043
  }
1065
1044
  }
1066
- var Nr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Nr || {}), Ie = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ie || {}), Or = /* @__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))(Or || {});
1067
- class U extends se {
1045
+ var Or = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Or || {}), Ie = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ie || {}), dr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(dr || {});
1046
+ class q extends ie {
1068
1047
  /**
1069
1048
  * Инициализирует экземпляр класса {@link Category}.
1070
1049
  *
@@ -1081,10 +1060,9 @@ class U extends se {
1081
1060
  * Список продуктов категории.
1082
1061
  */
1083
1062
  t(this, "products");
1084
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new U(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new _(o));
1063
+ 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));
1085
1064
  }
1086
1065
  }
1087
- var qr = /* @__PURE__ */ ((n) => (n.phone = "phone", n.tablet = "tablet", n.laptop = "laptop", n))(qr || {});
1088
1066
  class We extends D {
1089
1067
  /**
1090
1068
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
@@ -1100,7 +1078,7 @@ class We extends D {
1100
1078
  this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1101
1079
  }
1102
1080
  }
1103
- class Ur extends We {
1081
+ class qr extends We {
1104
1082
  /**
1105
1083
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1106
1084
  *
@@ -1126,7 +1104,7 @@ class wt {
1126
1104
  if (e)
1127
1105
  try {
1128
1106
  const s = JSON.parse(e);
1129
- if (mr(f(s.availableFor) || Fe(), /* @__PURE__ */ new Date()))
1107
+ if (fr(f(s.availableFor) || Fe(), /* @__PURE__ */ new Date()))
1130
1108
  return s.data ?? {};
1131
1109
  } catch {
1132
1110
  localStorage.removeItem(r);
@@ -1149,7 +1127,7 @@ class wt {
1149
1127
  );
1150
1128
  }
1151
1129
  }
1152
- class d extends D {
1130
+ class U extends D {
1153
1131
  /**
1154
1132
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1155
1133
  *
@@ -1164,7 +1142,7 @@ class d extends D {
1164
1142
  this.type = e == null ? void 0 : e.type;
1165
1143
  }
1166
1144
  }
1167
- class dr extends D {
1145
+ class Ur extends D {
1168
1146
  /**
1169
1147
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1170
1148
  *
@@ -1200,7 +1178,7 @@ class dr extends D {
1200
1178
  * Дата и время удаления.
1201
1179
  */
1202
1180
  t(this, "deletedAt");
1203
- 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 d(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1181
+ 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;
1204
1182
  }
1205
1183
  }
1206
1184
  class W extends We {
@@ -1258,7 +1236,7 @@ class J extends _ {
1258
1236
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1259
1237
  */
1260
1238
  t(this, "isFavorite");
1261
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ie.Product, this.discount = e != null && e.discount ? new dr(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;
1239
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ie.Product, this.discount = e != null && e.discount ? new Ur(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1262
1240
  }
1263
1241
  }
1264
1242
  class Gr {
@@ -1281,7 +1259,7 @@ class Gr {
1281
1259
  }
1282
1260
  class S extends w {
1283
1261
  }
1284
- class ee extends D {
1262
+ class re extends D {
1285
1263
  /**
1286
1264
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1287
1265
  *
@@ -1308,7 +1286,7 @@ class ee extends D {
1308
1286
  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));
1309
1287
  }
1310
1288
  }
1311
- class ye extends ee {
1289
+ class we extends re {
1312
1290
  /**
1313
1291
  * Инициализирует экземпляр класса {@link Manager}.
1314
1292
  *
@@ -1339,7 +1317,7 @@ class ye extends ee {
1339
1317
  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;
1340
1318
  }
1341
1319
  }
1342
- class Mr extends se {
1320
+ class Mr extends ie {
1343
1321
  /**
1344
1322
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1345
1323
  *
@@ -1367,10 +1345,10 @@ class Mr extends se {
1367
1345
  * Данные о менеджере за которым закреплена категория.
1368
1346
  */
1369
1347
  t(this, "manager");
1370
- this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new ye(e.manager) : void 0;
1348
+ 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;
1371
1349
  }
1372
1350
  }
1373
- class ce extends Mr {
1351
+ class le extends Mr {
1374
1352
  /**
1375
1353
  * Инициализирует экземпляр класса {@link ClientCategory}.
1376
1354
  *
@@ -1387,7 +1365,7 @@ class ce extends Mr {
1387
1365
  * Список продуктов категории.
1388
1366
  */
1389
1367
  t(this, "products");
1390
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ce(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
1368
+ 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));
1391
1369
  }
1392
1370
  }
1393
1371
  class je {
@@ -1405,10 +1383,10 @@ class je {
1405
1383
  * Процент, который прибавляется к значению выбранного коэффициента.
1406
1384
  */
1407
1385
  t(this, "increasePercent");
1408
- this.coefficient = (r == null ? void 0 : r.coefficient) && new me(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1386
+ this.coefficient = (r == null ? void 0 : r.coefficient) && new fe(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1409
1387
  }
1410
1388
  }
1411
- class Ce extends je {
1389
+ class ve extends je {
1412
1390
  /**
1413
1391
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1414
1392
  *
@@ -1420,12 +1398,12 @@ class Ce extends je {
1420
1398
  * Базовые данные о продукте.
1421
1399
  */
1422
1400
  t(this, "productCategory");
1423
- this.productCategory = new se(e == null ? void 0 : e.productCategory);
1401
+ this.productCategory = new ie(e == null ? void 0 : e.productCategory);
1424
1402
  }
1425
1403
  }
1426
1404
  class Q extends w {
1427
1405
  }
1428
- class re extends w {
1406
+ class te extends w {
1429
1407
  /**
1430
1408
  * Инициализирует экземпляр класса {@link Region}.
1431
1409
  *
@@ -1440,7 +1418,7 @@ class re extends w {
1440
1418
  e && (this.country = new Q(e.country));
1441
1419
  }
1442
1420
  }
1443
- class le extends w {
1421
+ class pe extends w {
1444
1422
  /**
1445
1423
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1446
1424
  *
@@ -1451,8 +1429,8 @@ class le extends w {
1451
1429
  /**
1452
1430
  * Данные о регионе, в котором расположен город.
1453
1431
  */
1454
- t(this, "region", new re());
1455
- e && (this.region = new re(e.region));
1432
+ t(this, "region", new te());
1433
+ e && (this.region = new te(e.region));
1456
1434
  }
1457
1435
  }
1458
1436
  class Ve extends D {
@@ -1494,7 +1472,7 @@ class Ve extends D {
1494
1472
  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;
1495
1473
  }
1496
1474
  }
1497
- class ie extends Ve {
1475
+ class ne extends Ve {
1498
1476
  /**
1499
1477
  * Инициализирует экземпляр класса {@link Client}.
1500
1478
  *
@@ -1536,7 +1514,7 @@ class ie extends Ve {
1536
1514
  * Список менеджеров клиента.
1537
1515
  */
1538
1516
  t(this, "managers");
1539
- 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 le(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 ee(i))) ?? [];
1517
+ 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))) ?? [];
1540
1518
  }
1541
1519
  }
1542
1520
  class Y extends H {
@@ -1563,10 +1541,10 @@ class Y extends H {
1563
1541
  * Данные шаблона прайс-листа.
1564
1542
  */
1565
1543
  t(this, "priceTemplate");
1566
- 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 ie(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1544
+ 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);
1567
1545
  }
1568
1546
  }
1569
- class ve extends je {
1547
+ class Pe extends je {
1570
1548
  /**
1571
1549
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1572
1550
  *
@@ -1703,7 +1681,7 @@ class Ct {
1703
1681
  return Object.keys(this).forEach((l) => {
1704
1682
  const p = this[l];
1705
1683
  // eslint-disable-next-line prettier/prettier
1706
- _e(p) || m(p) && p.trim().length === 0 || Se(p.isNewRec) && p.isNewRec() || (r[l] = p);
1684
+ ee(p) || m(p) && p.trim().length === 0 || Se(p.isNewRec) && p.isNewRec() || (r[l] = p);
1707
1685
  }), !((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;
1708
1686
  }
1709
1687
  }
@@ -1715,7 +1693,7 @@ class vt extends w {
1715
1693
  }
1716
1694
  class Hr extends w {
1717
1695
  }
1718
- class pe extends D {
1696
+ class ue extends D {
1719
1697
  /**
1720
1698
  * Инициализирует экземпляр класса {@link Currency}.
1721
1699
  *
@@ -1790,7 +1768,7 @@ class R extends u {
1790
1768
  * Возвращает {@link Promise} для получения справочника списка валют.
1791
1769
  */
1792
1770
  getCurrency() {
1793
- return this.getTypedDataArrayRequester(pe, "/public/references/currency", !0);
1771
+ return this.getTypedDataArrayRequester(ue, "/public/references/currency", !0);
1794
1772
  }
1795
1773
  /**
1796
1774
  * Возвращает {@link Promise} для получения справочника данных
@@ -1847,7 +1825,7 @@ class R extends u {
1847
1825
  * @param term Терм поиска.
1848
1826
  */
1849
1827
  searchCity(r) {
1850
- return this.getTypedDataArrayRequester(le, `/internal/references/city-with-region-and-country/search?term=${r}`);
1828
+ return this.getTypedDataArrayRequester(pe, `/internal/references/city-with-region-and-country/search?term=${r}`);
1851
1829
  }
1852
1830
  /**
1853
1831
  * Выполняет поиск данных о регионах по терму в названии.
@@ -1855,7 +1833,7 @@ class R extends u {
1855
1833
  * @param term Терм поиска.
1856
1834
  */
1857
1835
  searchRegion(r) {
1858
- return this.getTypedDataArrayRequester(re, `/internal/references/region-with-country/search?term=${r}`);
1836
+ return this.getTypedDataArrayRequester(te, `/internal/references/region-with-country/search?term=${r}`);
1859
1837
  }
1860
1838
  /**
1861
1839
  * Выполняет поиск данных о странах по терму в названии.
@@ -1875,7 +1853,7 @@ class R extends u {
1875
1853
  * Возвращает {@link Promise} для получения справочника складов.
1876
1854
  */
1877
1855
  getWarehouses() {
1878
- return this.getTypedDataArrayRequester(fe, "/public/references/warehouse", !0);
1856
+ return this.getTypedDataArrayRequester(ye, "/public/references/warehouse", !0);
1879
1857
  }
1880
1858
  /**
1881
1859
  * Возвращает {@link Promise} для получения справочника типов свойств.
@@ -1887,7 +1865,7 @@ class R extends u {
1887
1865
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
1888
1866
  */
1889
1867
  getPriceCoefficients() {
1890
- return this.getTypedDataArrayRequester(me, "/internal/references/price-coefficient", !0);
1868
+ return this.getTypedDataArrayRequester(fe, "/internal/references/price-coefficient", !0);
1891
1869
  }
1892
1870
  /**
1893
1871
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
@@ -1972,7 +1950,7 @@ class Jr {
1972
1950
  * Данные о валюте.
1973
1951
  */
1974
1952
  t(this, "currency");
1975
- 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 d(r.client) : void 0, this.executor = r.executor ? new d(r.executor) : void 0, this.currency = r.currency ? new pe(r.currency) : void 0;
1953
+ 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;
1976
1954
  }
1977
1955
  }
1978
1956
  class Ne {
@@ -1990,7 +1968,7 @@ class Ne {
1990
1968
  * Список рекомендованных категорий продуктов.
1991
1969
  */
1992
1970
  t(this, "productCategories", []);
1993
- r != null && r.products && (this.products = r.products.map((e) => new _(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new U(e)));
1971
+ 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)));
1994
1972
  }
1995
1973
  }
1996
1974
  class Z extends D {
@@ -2047,10 +2025,10 @@ class Oe {
2047
2025
  * Минимальный коэффициент цены.
2048
2026
  */
2049
2027
  t(this, "minCoefficient");
2050
- this.role = new Z(r == null ? void 0 : r.role), this.category = new se(r == null ? void 0 : r.category), this.minCoefficient = new me(r == null ? void 0 : r.minCoefficient);
2028
+ 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);
2051
2029
  }
2052
2030
  }
2053
- class Pe {
2031
+ class Re {
2054
2032
  /**
2055
2033
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
2056
2034
  *
@@ -2077,7 +2055,7 @@ class Pe {
2077
2055
  * Источник клиентской цены.
2078
2056
  */
2079
2057
  t(this, "source");
2080
- this.client = new ie(r == null ? void 0 : r.client), this.product = new _(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Ie.Product;
2058
+ this.client = new ne(r == null ? void 0 : r.client), this.product = new _(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Ie.Product;
2081
2059
  }
2082
2060
  }
2083
2061
  class Pt extends u {
@@ -2414,7 +2392,7 @@ class At extends u {
2414
2392
  {
2415
2393
  showHidden: r
2416
2394
  },
2417
- (e) => e.data.map((s) => new U(s))
2395
+ (e) => e.data.map((s) => new q(s))
2418
2396
  );
2419
2397
  }
2420
2398
  /**
@@ -2433,7 +2411,7 @@ class At extends u {
2433
2411
  showHidden: e,
2434
2412
  withNestedCategories: s
2435
2413
  },
2436
- (i) => new U(i.data)
2414
+ (i) => new q(i.data)
2437
2415
  );
2438
2416
  }
2439
2417
  /**
@@ -2442,7 +2420,7 @@ class At extends u {
2442
2420
  * @param categoryID Идентификатор категории продуктов.
2443
2421
  */
2444
2422
  getPublicCategoryData(r) {
2445
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new U(e.data));
2423
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new q(e.data));
2446
2424
  }
2447
2425
  /**
2448
2426
  * Возвращает список продуктов категории.
@@ -2460,7 +2438,7 @@ class At extends u {
2460
2438
  showHidden: s,
2461
2439
  withPriceCoefficients: e
2462
2440
  },
2463
- (i) => oe(i.data, (o) => new _(o))
2441
+ (i) => ce(i.data, (o) => new _(o))
2464
2442
  );
2465
2443
  }
2466
2444
  /**
@@ -2473,7 +2451,7 @@ class At extends u {
2473
2451
  getCategoryProductsCoefficients(r) {
2474
2452
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2475
2453
  const { data: s } = e;
2476
- return pr(s, (i) => i.map((o) => new Le(o))), s;
2454
+ return pr(s, (i) => i.map((o) => new ae(o))), s;
2477
2455
  });
2478
2456
  }
2479
2457
  /**
@@ -2485,7 +2463,7 @@ class At extends u {
2485
2463
  publicSimpleSearch(r, e = 10) {
2486
2464
  return new Promise((s, i) => {
2487
2465
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2488
- s(o.categories.map((l) => new U(l)));
2466
+ s(o.categories.map((l) => new q(l)));
2489
2467
  }).catch((o) => {
2490
2468
  i(o);
2491
2469
  });
@@ -2523,7 +2501,7 @@ class $t extends u {
2523
2501
  return this.get(
2524
2502
  `/internal/catalog/products/${r}/coefficients`,
2525
2503
  {},
2526
- (e) => oe(e.data, (s) => new Le(s))
2504
+ (e) => ce(e.data, (s) => new ae(s))
2527
2505
  );
2528
2506
  }
2529
2507
  /**
@@ -2536,7 +2514,7 @@ class $t extends u {
2536
2514
  */
2537
2515
  getProductPriceHistory(r, e) {
2538
2516
  const s = {};
2539
- return _e(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => oe(i.data, (o) => new Jr(o)));
2517
+ return ee(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ce(i.data, (o) => new Jr(o)));
2540
2518
  }
2541
2519
  /**
2542
2520
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2570,7 +2548,7 @@ class Tt extends u {
2570
2548
  clientId: r,
2571
2549
  showHidden: e
2572
2550
  },
2573
- (s) => s.data.map((i) => new ce(i))
2551
+ (s) => s.data.map((i) => new le(i))
2574
2552
  );
2575
2553
  }
2576
2554
  /**
@@ -2591,7 +2569,7 @@ class Tt extends u {
2591
2569
  showHidden: s,
2592
2570
  withNestedCategories: i
2593
2571
  },
2594
- (o) => new ce(o.data)
2572
+ (o) => new le(o.data)
2595
2573
  );
2596
2574
  }
2597
2575
  /**
@@ -2612,7 +2590,7 @@ class Tt extends u {
2612
2590
  showHidden: i,
2613
2591
  withPriceCoefficients: s
2614
2592
  },
2615
- (o) => oe(o.data, (l) => new J(l))
2593
+ (o) => ce(o.data, (l) => new J(l))
2616
2594
  );
2617
2595
  }
2618
2596
  }
@@ -2638,7 +2616,7 @@ class bt extends u {
2638
2616
  }
2639
2617
  }
2640
2618
  var xe = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(xe || {});
2641
- class qe {
2619
+ class de {
2642
2620
  /**
2643
2621
  * Инициализирует экземпляр класса {@link FilterItem}.
2644
2622
  *
@@ -2672,7 +2650,7 @@ class qe {
2672
2650
  return r.value = ur(this.value) ? B(this.value, T.getConfig().dateFormats.api) : this.value, r;
2673
2651
  }
2674
2652
  }
2675
- class te {
2653
+ class se {
2676
2654
  /**
2677
2655
  * Инициализирует экземпляр класса {@link FilterGroup}.
2678
2656
  *
@@ -2692,7 +2670,7 @@ class te {
2692
2670
  */
2693
2671
  t(this, "groups");
2694
2672
  var e, s;
2695
- 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 qe(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new te(i))) ?? [];
2673
+ 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))) ?? [];
2696
2674
  }
2697
2675
  /**
2698
2676
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2702,12 +2680,12 @@ class te {
2702
2680
  toPrimitive() {
2703
2681
  return {
2704
2682
  groupOp: this.groupOp,
2705
- filters: this.filters.map((r) => r instanceof qe && Se(r.toPrimitive) ? r.toPrimitive() : r),
2706
- groups: this.groups.map((r) => r instanceof te ? r.toPrimitive() : r)
2683
+ filters: this.filters.map((r) => r instanceof de && Se(r.toPrimitive) ? r.toPrimitive() : r),
2684
+ groups: this.groups.map((r) => r instanceof se ? r.toPrimitive() : r)
2707
2685
  };
2708
2686
  }
2709
2687
  }
2710
- class we extends u {
2688
+ class Ce extends u {
2711
2689
  /**
2712
2690
  * Получает пагинированный список данных.
2713
2691
  *
@@ -2724,10 +2702,10 @@ class we extends u {
2724
2702
  page: (i == null ? void 0 : i.page) ?? 1,
2725
2703
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2726
2704
  };
2727
- return e && (g.filters = JSON.stringify((e instanceof te ? e : new te(e)).toPrimitive())), hr(s) || (g.sort = s), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2705
+ return e && (g.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), hr(s) || (g.sort = gr(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2728
2706
  }
2729
2707
  }
2730
- class _t extends we {
2708
+ class _t extends Ce {
2731
2709
  /**
2732
2710
  * Возвращает список шаблонов прайс-листа.
2733
2711
  *
@@ -2799,7 +2777,7 @@ class _t extends we {
2799
2777
  return this.get(
2800
2778
  `/internal/price/templates/${r}/products`,
2801
2779
  {},
2802
- (e) => e.data.map((s) => new ve(s))
2780
+ (e) => e.data.map((s) => new Pe(s))
2803
2781
  );
2804
2782
  }
2805
2783
  /**
@@ -2811,7 +2789,7 @@ class _t extends we {
2811
2789
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
2812
2790
  */
2813
2791
  getProductTemplatePrice(r, e) {
2814
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new ve(s.data));
2792
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Pe(s.data));
2815
2793
  }
2816
2794
  /**
2817
2795
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -2830,7 +2808,7 @@ class _t extends we {
2830
2808
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2831
2809
  increase_percent: s.value
2832
2810
  },
2833
- (o) => new ve(o.data)
2811
+ (o) => new Pe(o.data)
2834
2812
  );
2835
2813
  }
2836
2814
  /**
@@ -2855,7 +2833,7 @@ class _t extends we {
2855
2833
  return this.get(
2856
2834
  `/internal/price/templates/${r}/categories`,
2857
2835
  {},
2858
- (e) => e.data.map((s) => new Ce(s))
2836
+ (e) => e.data.map((s) => new ve(s))
2859
2837
  );
2860
2838
  }
2861
2839
  /**
@@ -2870,7 +2848,7 @@ class _t extends we {
2870
2848
  return this.get(
2871
2849
  `/internal/price/templates/${r}/categories/${e}`,
2872
2850
  {},
2873
- (s) => new Ce(s.data)
2851
+ (s) => new ve(s.data)
2874
2852
  );
2875
2853
  }
2876
2854
  /**
@@ -2890,7 +2868,7 @@ class _t extends we {
2890
2868
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2891
2869
  increase_percent: s.value
2892
2870
  },
2893
- (o) => new Ce(o.data)
2871
+ (o) => new ve(o.data)
2894
2872
  );
2895
2873
  }
2896
2874
  /**
@@ -2999,7 +2977,7 @@ class St extends u {
2999
2977
  );
3000
2978
  }
3001
2979
  }
3002
- class Lt extends we {
2980
+ class at extends Ce {
3003
2981
  /**
3004
2982
  * Возвращает пагинированный список свойств.
3005
2983
  *
@@ -3371,7 +3349,7 @@ class Lt extends we {
3371
3349
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3372
3350
  }
3373
3351
  }
3374
- class at extends u {
3352
+ class Lt extends u {
3375
3353
  /**
3376
3354
  * Возвращает данные о рекомендациях указанной категории продуктов.
3377
3355
  *
@@ -3413,7 +3391,7 @@ class at extends u {
3413
3391
  });
3414
3392
  }
3415
3393
  }
3416
- const Ue = (n) => {
3394
+ const qe = (n) => {
3417
3395
  const r = {};
3418
3396
  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;
3419
3397
  };
@@ -3429,8 +3407,8 @@ class It extends u {
3429
3407
  analyzeProductPrices(r, e) {
3430
3408
  return this.get(
3431
3409
  `/internal/price/products/${r}/analyze`,
3432
- { ...Ue(e) },
3433
- (s) => s.data.map((i) => new Pe(i))
3410
+ { ...qe(e) },
3411
+ (s) => s.data.map((i) => new Re(i))
3434
3412
  );
3435
3413
  }
3436
3414
  /**
@@ -3444,8 +3422,8 @@ class It extends u {
3444
3422
  analyzeCategoryPrices(r, e) {
3445
3423
  return this.get(
3446
3424
  `/internal/price/categories/${r}/analyze`,
3447
- { ...Ue(e) },
3448
- (s) => s.data.map((i) => new Pe(i))
3425
+ { ...qe(e) },
3426
+ (s) => s.data.map((i) => new Re(i))
3449
3427
  );
3450
3428
  }
3451
3429
  /**
@@ -3462,12 +3440,12 @@ class It extends u {
3462
3440
  return this.get(
3463
3441
  `/internal/price/categories/${r}/analyze/square`,
3464
3442
  { ...e },
3465
- (s) => s.data.map((i) => new Pe(i))
3443
+ (s) => s.data.map((i) => new Re(i))
3466
3444
  );
3467
3445
  }
3468
3446
  }
3469
3447
  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 || {});
3470
- class Te extends H {
3448
+ class be extends H {
3471
3449
  /**
3472
3450
  * Инициализирует экземпляр класса {@link BankAccount}.
3473
3451
  *
@@ -3494,11 +3472,11 @@ class Te extends H {
3494
3472
  /**
3495
3473
  * Данные о валюте.
3496
3474
  */
3497
- t(this, "currency", new pe());
3498
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new pe(e.currency));
3475
+ t(this, "currency", new ue());
3476
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ue(e.currency));
3499
3477
  }
3500
3478
  }
3501
- class be extends D {
3479
+ class _e extends D {
3502
3480
  /**
3503
3481
  * Инициализирует экземпляр класса {@link Contact}.
3504
3482
  *
@@ -3517,7 +3495,7 @@ class be extends D {
3517
3495
  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;
3518
3496
  }
3519
3497
  }
3520
- class F extends be {
3498
+ class F extends _e {
3521
3499
  /**
3522
3500
  * Инициализирует экземпляр класса {@link ContactPerson}.
3523
3501
  *
@@ -3564,7 +3542,7 @@ class Ye extends D {
3564
3542
  /**
3565
3543
  * Данные о менеджере.
3566
3544
  */
3567
- t(this, "manager", new ee());
3545
+ t(this, "manager", new re());
3568
3546
  /**
3569
3547
  * Данные об организационно-правовой форме.
3570
3548
  */
@@ -3610,7 +3588,7 @@ class Ye extends D {
3610
3588
  */
3611
3589
  t(this, "updater");
3612
3590
  if (e) {
3613
- if (this.opf = new G(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new M(e.partnerGroup)), e.manager && (this.manager = new ee(e.manager)), e.contacts) {
3591
+ if (this.opf = new G(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new M(e.partnerGroup)), e.manager && (this.manager = new re(e.manager)), e.contacts) {
3614
3592
  const s = [];
3615
3593
  e.contacts.forEach((i) => {
3616
3594
  s.push(new F(i));
@@ -3619,7 +3597,7 @@ class Ye extends D {
3619
3597
  if (e.bankAccounts) {
3620
3598
  const s = [];
3621
3599
  e.bankAccounts.forEach((i) => {
3622
- s.push(new Te(i));
3600
+ s.push(new be(i));
3623
3601
  }), this.bankAccounts = s;
3624
3602
  }
3625
3603
  }
@@ -3716,7 +3694,7 @@ class Xr extends Ze {
3716
3694
  e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3717
3695
  }
3718
3696
  }
3719
- class ue {
3697
+ class he {
3720
3698
  /**
3721
3699
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3722
3700
  *
@@ -3735,7 +3713,7 @@ class ue {
3735
3713
  }
3736
3714
  }
3737
3715
  }
3738
- class Re extends H {
3716
+ class De extends H {
3739
3717
  /**
3740
3718
  * Инициализирует экземпляр класса {@link ContactRelation}.
3741
3719
  *
@@ -3775,10 +3753,10 @@ class Zr extends F {
3775
3753
  */
3776
3754
  addresses: []
3777
3755
  });
3778
- 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))));
3756
+ 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))));
3779
3757
  }
3780
3758
  }
3781
- class he extends Ur {
3759
+ class ge extends qr {
3782
3760
  /**
3783
3761
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3784
3762
  *
@@ -3818,7 +3796,7 @@ class he extends Ur {
3818
3796
  this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Be(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3819
3797
  }
3820
3798
  }
3821
- class de extends ie {
3799
+ class Ue extends ne {
3822
3800
  /**
3823
3801
  * Инициализирует экземпляр класса {@link Client}.
3824
3802
  *
@@ -3872,7 +3850,7 @@ class de extends ie {
3872
3850
  * Дополнительные данные о клиенте.
3873
3851
  */
3874
3852
  t(this, "extraData");
3875
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => ue.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 he(p))) ?? [], this.channelPrimaryInterest = new Ke(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Qe(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new fe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3853
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => he.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new M(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new ge(p))) ?? [], this.channelPrimaryInterest = new Ke(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Qe(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3876
3854
  }
3877
3855
  }
3878
3856
  class xt {
@@ -3967,7 +3945,7 @@ class xt {
3967
3945
  */
3968
3946
  t(this, "lastOrder");
3969
3947
  var e, s, i;
3970
- 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 le(r == null ? void 0 : r.city), this.region = new re(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 ye(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 be(r == null ? void 0 : r.contact), this.lastOrder = {
3948
+ 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 = {
3971
3949
  createdAt: new O((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
3972
3950
  creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
3973
3951
  isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
@@ -3990,10 +3968,10 @@ class xt {
3990
3968
  this[r] = void 0;
3991
3969
  break;
3992
3970
  case "city":
3993
- this.city = new le();
3971
+ this.city = new pe();
3994
3972
  break;
3995
3973
  case "region":
3996
- this.region = new re();
3974
+ this.region = new te();
3997
3975
  break;
3998
3976
  case "isActive":
3999
3977
  this.isActive = !0;
@@ -4026,7 +4004,7 @@ class xt {
4026
4004
  this.partnerGroup = new M();
4027
4005
  break;
4028
4006
  case "contact":
4029
- this.contact = new be();
4007
+ this.contact = new _e();
4030
4008
  break;
4031
4009
  }
4032
4010
  return this;
@@ -4041,7 +4019,7 @@ class xt {
4041
4019
  return Object.keys(this).forEach((l) => {
4042
4020
  const p = this[l];
4043
4021
  // eslint-disable-next-line prettier/prettier
4044
- _e(p) || m(p) && p.trim().length === 0 || Se(p.isNewRec) && p.isNewRec() || (r[l] = p);
4022
+ ee(p) || m(p) && p.trim().length === 0 || Se(p.isNewRec) && p.isNewRec() || (r[l] = p);
4045
4023
  }), !((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;
4046
4024
  }
4047
4025
  }
@@ -4065,7 +4043,7 @@ class er extends H {
4065
4043
  * Признак того, что заказ подтвержден в 1С.
4066
4044
  */
4067
4045
  t(this, "isApproved1c");
4068
- this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4046
+ 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;
4069
4047
  }
4070
4048
  }
4071
4049
  class et extends D {
@@ -4101,7 +4079,7 @@ class et extends D {
4101
4079
  * Список менеджеров.
4102
4080
  */
4103
4081
  t(this, "managers");
4104
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ee(o)));
4082
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4105
4083
  }
4106
4084
  }
4107
4085
  class rt {
@@ -4171,7 +4149,7 @@ class Nt {
4171
4149
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4172
4150
  }
4173
4151
  }
4174
- class Ot extends we {
4152
+ class Ot extends Ce {
4175
4153
  /**
4176
4154
  * Возвращает данные об указанном клиенте.
4177
4155
  *
@@ -4179,7 +4157,7 @@ class Ot extends we {
4179
4157
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4180
4158
  */
4181
4159
  getClient(r) {
4182
- return this.get(`/internal/clients/${r}`, {}, (e) => new de(e.data));
4160
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Ue(e.data));
4183
4161
  }
4184
4162
  /**
4185
4163
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4194,7 +4172,7 @@ class Ot extends we {
4194
4172
  getClientsList(r, e, s, i) {
4195
4173
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4196
4174
  const l = { ...o.data };
4197
- return l.data = l.data.map((p) => new ie(p)), l;
4175
+ return l.data = l.data.map((p) => new ne(p)), l;
4198
4176
  });
4199
4177
  }
4200
4178
  /**
@@ -4263,7 +4241,7 @@ class Ot extends we {
4263
4241
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4264
4242
  preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4265
4243
  },
4266
- (i) => new de(i.data),
4244
+ (i) => new Ue(i.data),
4267
4245
  e
4268
4246
  );
4269
4247
  }
@@ -4373,7 +4351,7 @@ class Ot extends we {
4373
4351
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4374
4352
  */
4375
4353
  createContragentClientData(r, e, s = {}) {
4376
- var g, A, $, a, I, x, k, N;
4354
+ var g, A, $, L, I, x, k, N;
4377
4355
  let i;
4378
4356
  const o = e, l = e, p = e;
4379
4357
  switch (e.opf.slug) {
@@ -4401,7 +4379,7 @@ class Ot extends we {
4401
4379
  name: l.name,
4402
4380
  alternative_name: l.alternativeName,
4403
4381
  partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
4404
- manager_id: (a = l.manager) == null ? void 0 : a.id,
4382
+ manager_id: (L = l.manager) == null ? void 0 : L.id,
4405
4383
  comment: l.comment,
4406
4384
  inn: l.inn,
4407
4385
  kpp: l.kpp,
@@ -4447,7 +4425,7 @@ class Ot extends we {
4447
4425
  return this.post(
4448
4426
  `/internal/clients/${r}/contragents`,
4449
4427
  i,
4450
- (q) => ue.createInstance(q.data),
4428
+ (d) => he.createInstance(d.data),
4451
4429
  s
4452
4430
  );
4453
4431
  }
@@ -4462,7 +4440,7 @@ class Ot extends we {
4462
4440
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4463
4441
  */
4464
4442
  updateContragentClientData(r, e, s = {}) {
4465
- var g, A, $, a, I, x, k, N;
4443
+ var g, A, $, L, I, x, k, N;
4466
4444
  let i;
4467
4445
  const o = e, l = e, p = e;
4468
4446
  switch (e.opf.slug) {
@@ -4490,7 +4468,7 @@ class Ot extends we {
4490
4468
  name: l.name,
4491
4469
  alternative_name: l.alternativeName,
4492
4470
  partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
4493
- manager_id: (a = l.manager) == null ? void 0 : a.id,
4471
+ manager_id: (L = l.manager) == null ? void 0 : L.id,
4494
4472
  comment: l.comment,
4495
4473
  inn: l.inn,
4496
4474
  kpp: l.kpp,
@@ -4536,7 +4514,7 @@ class Ot extends we {
4536
4514
  return this.patch(
4537
4515
  `/internal/clients/${r}/contragents/${e.id}`,
4538
4516
  i,
4539
- (q) => ue.createInstance(q.data),
4517
+ (d) => he.createInstance(d.data),
4540
4518
  s
4541
4519
  );
4542
4520
  }
@@ -4574,7 +4552,7 @@ class Ot extends we {
4574
4552
  }), e.operatingHours && (i.operating_hours = {
4575
4553
  from: e.operatingHours.from,
4576
4554
  to: e.operatingHours.to
4577
- }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new he(p.data), s);
4555
+ }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new ge(p.data), s);
4578
4556
  }
4579
4557
  /**
4580
4558
  * Обновляет данные об адресе доставки клиента.
@@ -4603,7 +4581,7 @@ class Ot extends we {
4603
4581
  }), this.patch(
4604
4582
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4605
4583
  i,
4606
- (p) => new he(p.data),
4584
+ (p) => new ge(p.data),
4607
4585
  s
4608
4586
  );
4609
4587
  }
@@ -4639,7 +4617,7 @@ class Ot extends we {
4639
4617
  correspondent_account: s.correspondentAccount,
4640
4618
  currency_id: s.currency.id
4641
4619
  },
4642
- (o) => new Te(o.data),
4620
+ (o) => new be(o.data),
4643
4621
  i
4644
4622
  );
4645
4623
  }
@@ -4665,7 +4643,7 @@ class Ot extends we {
4665
4643
  correspondent_account: s.correspondentAccount,
4666
4644
  currency_id: s.currency.id
4667
4645
  },
4668
- (o) => new Te(o.data),
4646
+ (o) => new be(o.data),
4669
4647
  i
4670
4648
  );
4671
4649
  }
@@ -4898,7 +4876,7 @@ class Ot extends we {
4898
4876
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4899
4877
  }
4900
4878
  }
4901
- class qt extends u {
4879
+ class dt extends u {
4902
4880
  /**
4903
4881
  * Выполняет проверку занят ли указанный номер телефона.
4904
4882
  *
@@ -4912,7 +4890,7 @@ class qt extends u {
4912
4890
  });
4913
4891
  }
4914
4892
  }
4915
- class Ut extends u {
4893
+ class qt extends u {
4916
4894
  /**
4917
4895
  * Возвращает настройки указанного конфигуратора для указанной категории.
4918
4896
  *
@@ -4983,18 +4961,18 @@ class Ut extends u {
4983
4961
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
4984
4962
  }
4985
4963
  }
4986
- class dt {
4964
+ class Ut {
4987
4965
  /**
4988
4966
  * Возвращает диапазон дат по умолчанию.
4989
4967
  */
4990
4968
  static defaultDateRanges() {
4991
- const r = fr(/* @__PURE__ */ new Date(), 1);
4969
+ const r = yr(/* @__PURE__ */ new Date(), 1);
4992
4970
  return {
4993
4971
  // 'Следующий рабочий день' - это значение по-умолчанию
4994
- nextWorkingDay: { label: "Следующий рабочий день", from: Dr(r), to: Rr(r) },
4995
- today: { label: "Сегодня", from: Fe(), to: Pr() },
4996
- yesterday: { label: "Вчера", from: vr(), to: Cr() },
4997
- tomorrow: { label: "Завтра", from: wr(), to: yr() }
4972
+ nextWorkingDay: { label: "Следующий рабочий день", from: Ar(r), to: Dr(r) },
4973
+ today: { label: "Сегодня", from: Fe(), to: Rr() },
4974
+ yesterday: { label: "Вчера", from: Pr(), to: vr() },
4975
+ tomorrow: { label: "Завтра", from: Cr(), to: wr() }
4998
4976
  };
4999
4977
  }
5000
4978
  }
@@ -5044,7 +5022,7 @@ class Gt {
5044
5022
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5045
5023
  */
5046
5024
  static generateUndefinedManagerInstance() {
5047
- return new ye({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5025
+ return new we({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5048
5026
  }
5049
5027
  /**
5050
5028
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5062,7 +5040,7 @@ class tt extends u {
5062
5040
  getManagers() {
5063
5041
  const r = "/internal/managers", e = u.getCachedResponse(r);
5064
5042
  return e ? Promise.resolve(e) : this.get(r).then((s) => {
5065
- const i = s.data.map((o) => ae.instanceInitializer(ye, o));
5043
+ const i = s.data.map((o) => Le.instanceInitializer(we, o));
5066
5044
  return i && this.cacheResponse(r, i), i;
5067
5045
  });
5068
5046
  }
@@ -5116,16 +5094,16 @@ class rr extends er {
5116
5094
  * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
5117
5095
  */
5118
5096
  t(this, "isNotInStock");
5119
- this.client = new ie(e == null ? void 0 : e.client), this.payment = {
5097
+ this.client = new ne(e == null ? void 0 : e.client), this.payment = {
5120
5098
  type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
5121
5099
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5122
5100
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5123
5101
  }, this.delivery = {
5124
5102
  type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
5125
5103
  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(),
5126
- address: (A = e == null ? void 0 : e.delivery) != null && A.address ? new he(e.delivery.address) : void 0,
5127
- warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new fe(e.delivery.warehouse) : void 0
5128
- }, this.attachedUser = new d(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
5104
+ address: (A = e == null ? void 0 : e.delivery) != null && A.address ? new ge(e.delivery.address) : void 0,
5105
+ warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new ye(e.delivery.warehouse) : void 0
5106
+ }, 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;
5129
5107
  }
5130
5108
  }
5131
5109
  class st extends H {
@@ -5251,10 +5229,10 @@ class it extends rr {
5251
5229
  * Признак, что разрешена передача заказа в работу без оплаты.
5252
5230
  */
5253
5231
  t(this, "isAllowProcessingWithoutPayment");
5254
- 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 ? ue.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5232
+ 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;
5255
5233
  }
5256
5234
  }
5257
- class Mt extends we {
5235
+ class Mt extends Ce {
5258
5236
  /**
5259
5237
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5260
5238
  *
@@ -5376,8 +5354,8 @@ class Ft extends u {
5376
5354
  return this.delete(`/internal/seo/${r.slug}/${e}`);
5377
5355
  }
5378
5356
  }
5379
- const P = ge("__references_private", () => {
5380
- const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), l = C(void 0), p = C(void 0), g = C(void 0), A = C(void 0), $ = C(void 0), a = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), q = C(void 0), c = C(void 0);
5357
+ const P = me("__references_private", () => {
5358
+ const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), l = C(void 0), p = C(void 0), g = C(void 0), A = C(void 0), $ = C(void 0), L = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), d = C(void 0), c = C(void 0);
5381
5359
  return {
5382
5360
  /**
5383
5361
  * Список загружаемых/загруженных на данный момент значений.
@@ -5426,7 +5404,7 @@ const P = ge("__references_private", () => {
5426
5404
  /**
5427
5405
  * Справочник типов файлов продукктов/категорий.
5428
5406
  */
5429
- productFileTypeReference: a,
5407
+ productFileTypeReference: L,
5430
5408
  /**
5431
5409
  * Справочник типов ресурсов.
5432
5410
  */
@@ -5446,13 +5424,13 @@ const P = ge("__references_private", () => {
5446
5424
  /**
5447
5425
  * Справочник типов свойств.
5448
5426
  */
5449
- propertyTypesReference: q,
5427
+ propertyTypesReference: d,
5450
5428
  /**
5451
5429
  * Справочник коэффициентов цен.
5452
5430
  */
5453
5431
  priceCoefficientsReference: c
5454
5432
  };
5455
- }), Ht = ge("references", () => {
5433
+ }), Ht = me("references", () => {
5456
5434
  const n = v(() => {
5457
5435
  const c = P();
5458
5436
  return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
@@ -5508,7 +5486,7 @@ const P = ge("__references_private", () => {
5508
5486
  return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((h) => {
5509
5487
  c.salesDirectionsReference = h;
5510
5488
  }).catch(y)), c.salesDirectionsReference;
5511
- }), a = v(() => {
5489
+ }), L = v(() => {
5512
5490
  const c = P();
5513
5491
  return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((h) => {
5514
5492
  c.sourcePrimaryInterestReference = h;
@@ -5533,7 +5511,7 @@ const P = ge("__references_private", () => {
5533
5511
  return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((h) => {
5534
5512
  c.propertyTypesReference = h;
5535
5513
  }).catch(y)), c.propertyTypesReference;
5536
- }), q = v(() => {
5514
+ }), d = v(() => {
5537
5515
  const c = P();
5538
5516
  return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((h) => {
5539
5517
  c.priceCoefficientsReference = h;
@@ -5587,7 +5565,7 @@ const P = ge("__references_private", () => {
5587
5565
  /**
5588
5566
  * Справочник каналов первичного интереса.
5589
5567
  */
5590
- sourcePrimaryInterestsReference: a,
5568
+ sourcePrimaryInterestsReference: L,
5591
5569
  /**
5592
5570
  * Справочник типов доставки.
5593
5571
  */
@@ -5607,9 +5585,9 @@ const P = ge("__references_private", () => {
5607
5585
  /**
5608
5586
  * Справочник коэффициентов цен.
5609
5587
  */
5610
- priceCoefficientsReference: q
5588
+ priceCoefficientsReference: d
5611
5589
  };
5612
- }), ot = ge("__user_state_private", () => {
5590
+ }), ot = me("__user_state_private", () => {
5613
5591
  const n = C({}), r = C(void 0);
5614
5592
  return {
5615
5593
  /**
@@ -5621,7 +5599,7 @@ const P = ge("__references_private", () => {
5621
5599
  */
5622
5600
  currentUser: r
5623
5601
  };
5624
- }), zt = ge("user_state", () => ({
5602
+ }), zt = me("user_state", () => ({
5625
5603
  /**
5626
5604
  * Данные о текущем пользователе.
5627
5605
  */
@@ -5706,72 +5684,72 @@ export {
5706
5684
  Fr as AnyReference,
5707
5685
  ft as AppBaseConfig,
5708
5686
  T as AppConfigProvider,
5709
- Te as BankAccount,
5710
- we as BasePaginationProvider,
5711
- Nr as CalculationTypeEnum,
5712
- ne as Cart,
5687
+ be as BankAccount,
5688
+ Ce as BasePaginationProvider,
5689
+ Or as CalculationTypeEnum,
5690
+ oe as Cart,
5713
5691
  Lr as CartItem,
5714
- Sr as CartItemBase,
5692
+ ar as CartItemBase,
5715
5693
  yt as CartProvider,
5716
5694
  Pt as CatalogProvider,
5717
5695
  He as CatalogableItem,
5718
- U as Category,
5696
+ q as Category,
5719
5697
  Oe as CategoryPricingRule,
5720
5698
  Ke as ChannelPrimaryInterest,
5721
5699
  vt as City,
5722
- le as CityWithRegionAndCountry,
5723
- de as Client,
5700
+ pe as CityWithRegionAndCountry,
5701
+ Ue as Client,
5724
5702
  et as ClientAdditionalData,
5725
- ce as ClientCategory,
5703
+ le as ClientCategory,
5726
5704
  Ot as ClientDataProvider,
5727
5705
  Rt as ClientPriceProvider,
5728
5706
  Dt as ClientPriceTemplateProvider,
5729
5707
  J as ClientProduct,
5730
5708
  Tt as ClientProductCategoryDataProvider,
5731
5709
  bt as ClientProductDataProvider,
5732
- ie as ClientShortInfo,
5710
+ ne as ClientShortInfo,
5733
5711
  Qr as ClientsAdditionalDataRequestTypeEnum,
5734
5712
  xt as ClientsListFilters,
5735
- Ut as ConfiguratorProvider,
5736
- be as Contact,
5713
+ qt as ConfiguratorProvider,
5714
+ _e as Contact,
5737
5715
  Gr as ContactLinks,
5738
5716
  F as ContactPerson,
5739
5717
  Zr as ContactPersonRelated,
5740
5718
  Hr as ContactPosition,
5741
- Re as ContactRelation,
5719
+ De as ContactRelation,
5742
5720
  Ye as ContragentBase,
5743
- ue as ContragentFactory,
5721
+ he as ContragentFactory,
5744
5722
  Xe as ContragentIc,
5745
5723
  Yr as ContragentPerson,
5746
5724
  Xr as ContragentUlNr,
5747
5725
  Ze as ContragentUlR,
5748
5726
  Ie as CostSourceEnum,
5749
5727
  Q as Country,
5750
- pe as Currency,
5728
+ ue as Currency,
5751
5729
  Bt as DataSuggestionProvider,
5752
5730
  kt as DataTablePagination,
5753
5731
  rt as DataTablePaginationRequestParams,
5754
5732
  Nt as DataTableSortRequestParams,
5755
- dt as DateTimeProvider,
5756
- Ur as DeletableNamedIdentity,
5757
- he as DeliveryAddress,
5733
+ Ut as DateTimeProvider,
5734
+ qr as DeletableNamedIdentity,
5735
+ ge as DeliveryAddress,
5758
5736
  K as DeliveryType,
5759
- ar as DeviceTypeResolutionConfig,
5760
- dr as DiscountShortInfo,
5737
+ Ir as DeviceTypeResolutionConfig,
5738
+ Ur as DiscountShortInfo,
5761
5739
  Wt as FieldValidationResultData,
5762
- te as FilterGroup,
5763
- qe as FilterItem,
5740
+ se as FilterGroup,
5741
+ de as FilterItem,
5764
5742
  xe as FilterOpEnum,
5765
5743
  Be as GeoCoordinates,
5766
- br as HiddenCatalogableItem,
5767
- $e as HttpBaseCachedRequester,
5768
- Ae as HttpBaseRequester,
5769
- Ir as HttpParamsConfig,
5744
+ _r as HiddenCatalogableItem,
5745
+ Te as HttpBaseCachedRequester,
5746
+ $e as HttpBaseRequester,
5747
+ xr as HttpParamsConfig,
5770
5748
  u as HttpRequester,
5771
5749
  H as Identity,
5772
- _r as Image,
5773
- ye as Manager,
5774
- ee as ManagerCommon,
5750
+ Sr as Image,
5751
+ we as Manager,
5752
+ re as ManagerCommon,
5775
5753
  Gt as ManagerDataFactory,
5776
5754
  tt as ManagerDataProvider,
5777
5755
  nt as MetaTagItem,
@@ -5788,55 +5766,54 @@ export {
5788
5766
  M as PartnerGroup,
5789
5767
  Wr as PaymentType,
5790
5768
  wt as PreferencesStorageProvider,
5791
- Pe as PriceAnalyze,
5769
+ Re as PriceAnalyze,
5792
5770
  It as PriceAnalyzeProvider,
5793
- me as PriceCoefficient,
5771
+ fe as PriceCoefficient,
5794
5772
  ze as PriceCoefficientEnum,
5795
5773
  W as PriceTemplate,
5796
- Ce as PriceTemplateCategory,
5774
+ ve as PriceTemplateCategory,
5797
5775
  Y as PriceTemplateClient,
5798
5776
  je as PriceTemplateICatalogableItem,
5799
- ve as PriceTemplateProduct,
5777
+ Pe as PriceTemplateProduct,
5800
5778
  _t as PriceTemplateProvider,
5801
5779
  Z as PricingRole,
5802
5780
  St as PricingRoleProvider,
5803
- De as PrimaryCatalogableItem,
5781
+ Ae as PrimaryCatalogableItem,
5804
5782
  _ as Product,
5805
5783
  At as ProductCategoryDataProvider,
5806
5784
  $t as ProductDataProvider,
5807
5785
  jr as ProductFileType,
5808
- Le as ProductPriceCoefficient,
5786
+ ae as ProductPriceCoefficient,
5809
5787
  Jr as ProductPriceHistory,
5810
- Lt as PropertiesProvider,
5788
+ at as PropertiesProvider,
5811
5789
  X as Property,
5812
5790
  Ee as PropertyType,
5813
- Or as PropertyTypeEnum,
5791
+ dr as PropertyTypeEnum,
5814
5792
  z as PropertyValue,
5815
- at as RecommendationsDataProvider,
5793
+ Lt as RecommendationsDataProvider,
5816
5794
  Ne as RecommendationsList,
5817
5795
  w as Reference,
5818
5796
  R as ReferenceDataProvider,
5819
- re as Region,
5797
+ te as Region,
5820
5798
  Je as ResourceType,
5821
5799
  S as SalesDirection,
5822
- xr as SentryConfig,
5800
+ kr as SentryConfig,
5823
5801
  Me as Seo,
5824
5802
  Ft as SeoDataProvider,
5825
5803
  Qe as SourcePrimaryInterest,
5826
- Tr as StockCount,
5804
+ br as StockCount,
5827
5805
  Ct as TemplatesListFilters,
5828
- ae as TypedInstanceFactory,
5806
+ Le as TypedInstanceFactory,
5829
5807
  Ge as UnitsHelper,
5830
- qt as UnknownClientDataProvider,
5808
+ dt as UnknownClientDataProvider,
5831
5809
  We as UpdatableNamedIdentity,
5832
5810
  Er as User,
5833
5811
  Ve as UserCommonInfo,
5834
5812
  Kr as UserDataProvider,
5835
- d as UserShortInfo,
5813
+ U as UserShortInfo,
5836
5814
  Vr as UserTypeEnum,
5837
- kr as VersionConfig,
5838
- fe as Warehouse,
5839
- qr as WindowResolutionEnum,
5815
+ Nr as VersionConfig,
5816
+ ye as Warehouse,
5840
5817
  Ht as useReferencesStore,
5841
5818
  zt as useUserStateStore
5842
5819
  };