@snabcentr/common-lib 1.48.1 → 1.49.2

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 +586 -509
  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/price-template.d.ts.map +1 -1
  8. package/dist/src/catalog/classes/product.d.ts +1 -1
  9. package/dist/src/catalog/classes/product.d.ts.map +1 -1
  10. package/dist/src/catalog/interfaces/i-predefined-properties.d.ts +1 -1
  11. package/dist/src/catalog/interfaces/i-predefined-properties.d.ts.map +1 -1
  12. package/dist/src/catalog/interfaces/i-product.d.ts +1 -1
  13. package/dist/src/catalog/interfaces/i-product.d.ts.map +1 -1
  14. package/dist/src/catalog/providers/client-price-template-provider.d.ts.map +1 -1
  15. package/dist/src/clients/classes/clients-list-filters.d.ts +3 -3
  16. package/dist/src/clients/classes/clients-list-filters.d.ts.map +1 -1
  17. package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +3 -3
  18. package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
  19. package/dist/src/config/classes/app-base-config.d.ts +4 -0
  20. package/dist/src/config/classes/app-base-config.d.ts.map +1 -1
  21. package/dist/src/config/classes/version-config.d.ts +1 -1
  22. package/dist/src/config/classes/version-config.d.ts.map +1 -1
  23. package/dist/src/config/interfaces/i-app-base-config.d.ts +17 -0
  24. package/dist/src/config/interfaces/i-app-base-config.d.ts.map +1 -1
  25. package/dist/src/config/interfaces/i-version-config.d.ts +1 -1
  26. package/dist/src/config/interfaces/i-version-config.d.ts.map +1 -1
  27. package/dist/src/contacts/classes/contact-person.d.ts.map +1 -1
  28. package/dist/src/data-table/classes/filter-group.d.ts +32 -0
  29. package/dist/src/data-table/classes/filter-group.d.ts.map +1 -0
  30. package/dist/src/data-table/classes/filter-item.d.ts +32 -0
  31. package/dist/src/data-table/classes/filter-item.d.ts.map +1 -0
  32. package/dist/src/data-table/classes/index.d.ts +2 -0
  33. package/dist/src/data-table/classes/index.d.ts.map +1 -1
  34. package/dist/src/data-table/interfaces/i-filter-item.d.ts +1 -1
  35. package/dist/src/data-table/interfaces/i-filter-item.d.ts.map +1 -1
  36. package/dist/src/date-time/providers/date-time-provider.d.ts +3 -8
  37. package/dist/src/date-time/providers/date-time-provider.d.ts.map +1 -1
  38. package/dist/src/http/classes/http-base-requester.d.ts.map +1 -1
  39. package/dist/src/orders/classes/order-info.d.ts.map +1 -1
  40. package/dist/src/orders/interfaces/i-orders-list-filters.d.ts +1 -2
  41. package/dist/src/orders/interfaces/i-orders-list-filters.d.ts.map +1 -1
  42. package/dist/src/pagination/providers/base-pagination-provider.d.ts.map +1 -1
  43. package/dist/src/references/classes/price-coefficient.d.ts +1 -2
  44. package/dist/src/references/classes/price-coefficient.d.ts.map +1 -1
  45. package/dist/src/system/interfaces/i-date-period.d.ts +3 -3
  46. package/dist/src/system/interfaces/i-date-period.d.ts.map +1 -1
  47. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  var er = Object.defineProperty;
2
2
  var rr = (n, r, e) => r in n ? er(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var t = (n, r, e) => rr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { constant as tr, isUndefined as sr, cloneDeep as ir, noop as m, toLower as nr, isString as C, isNil as Me, isFunction as or, isEmpty as cr, isArray as lr, map as ne, forEach as pr } from "lodash-es";
5
- import { format as Y, addSeconds as ur, parseISO as D, isAfter as hr, startOfToday as $e, parse as E, getDay as gr, startOfTomorrow as Ce, nextMonday as mr, getUnixTime as k, endOfTomorrow as fr, endOfYesterday as yr, startOfYesterday as wr, endOfToday as Cr, endOfDay as vr, startOfDay as Pr } from "date-fns";
4
+ import { constant as tr, isUndefined as sr, isString as m, cloneDeep as ir, noop as y, toLower as nr, isNil as qe, isFunction as Ue, isDate as or, isEmpty as cr, isArray as lr, map as ie, forEach as pr } from "lodash-es";
5
+ import { parseISO as f, format as z, addSeconds as ur, isAfter as hr, startOfToday as Ge, addBusinessDays as gr, endOfTomorrow as mr, startOfTomorrow as fr, endOfYesterday as yr, startOfYesterday as Cr, endOfToday as wr, endOfDay as vr, startOfDay as Pr } from "date-fns";
6
6
  import Rr from "axios";
7
- import { objectToSnake as xe, objectToCamel as ar } from "ts-case-convert";
8
- import { defineStore as ge } from "pinia";
9
- import { ref as y, computed as w } from "vue";
7
+ import { objectToSnake as Le, objectToCamel as Dr } from "ts-case-convert";
8
+ import { defineStore as he } from "pinia";
9
+ import { ref as w, computed as P } from "vue";
10
10
  class F {
11
11
  /**
12
12
  * Инициализирует экземпляр класса {@link Identity}.
@@ -31,7 +31,7 @@ class F {
31
31
  return this.id === -1;
32
32
  }
33
33
  }
34
- class a extends F {
34
+ class A extends F {
35
35
  /**
36
36
  * Инициализирует экземпляр класса {@link NamedIdentity}.
37
37
  *
@@ -46,7 +46,7 @@ class a extends F {
46
46
  this.name = (e == null ? void 0 : e.name) ?? "";
47
47
  }
48
48
  }
49
- class Ue extends a {
49
+ class Me extends A {
50
50
  /**
51
51
  * Инициализирует экземпляр класса {@link CatalogableItem}.
52
52
  *
@@ -69,7 +69,7 @@ class Ue extends a {
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 Ue {
72
+ class Re extends Me {
73
73
  /**
74
74
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
75
75
  *
@@ -84,7 +84,7 @@ class De extends Ue {
84
84
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
85
85
  }
86
86
  }
87
- class te extends De {
87
+ class re extends Re {
88
88
  /**
89
89
  * Инициализирует экземпляр класса {@link BaseCategory}.
90
90
  *
@@ -107,8 +107,8 @@ class te extends De {
107
107
  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";
108
108
  }
109
109
  }
110
- var Ge = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Ge || {});
111
- class f extends a {
110
+ var Fe = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Fe || {});
111
+ class C extends A {
112
112
  /**
113
113
  * Инициализирует экземпляр класса {@link Reference}.
114
114
  *
@@ -127,15 +127,15 @@ class f extends a {
127
127
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
128
128
  }
129
129
  }
130
- class me extends f {
130
+ class ge extends C {
131
131
  /**
132
132
  * Возвращает значение справочника коэффициента розничной цены.
133
133
  */
134
134
  static getRetailPriceCoefficient() {
135
- return { id: -2, slug: Ge.Retail, name: "Розничная цена", guid: "", isNewRec: tr(!0) };
135
+ return { id: -2, slug: Fe.Retail, name: "Розничная цена", guid: "", isNewRec: tr(!0) };
136
136
  }
137
137
  }
138
- class Se {
138
+ class be {
139
139
  /**
140
140
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
141
141
  *
@@ -162,7 +162,7 @@ class Se {
162
162
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
163
163
  */
164
164
  t(this, "readOnly");
165
- 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;
165
+ this.coefficient = new ge(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;
166
166
  }
167
167
  }
168
168
  class He {
@@ -183,9 +183,9 @@ class He {
183
183
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
184
184
  }
185
185
  }
186
- class K extends f {
186
+ class E extends C {
187
187
  }
188
- class fe extends f {
188
+ class me extends C {
189
189
  /**
190
190
  * Инициализирует экземпляр класса {@link Warehouse}.
191
191
  *
@@ -214,7 +214,7 @@ class fe extends f {
214
214
  * Координаты склада.
215
215
  */
216
216
  t(this, "coordinates");
217
- 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 He(e == null ? void 0 : e.coordinates);
217
+ 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 E(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new He(e == null ? void 0 : e.coordinates);
218
218
  }
219
219
  }
220
220
  class $r {
@@ -232,7 +232,7 @@ class $r {
232
232
  * Количество остатков товара на складе.
233
233
  */
234
234
  t(this, "count");
235
- this.warehouse = new fe(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
235
+ this.warehouse = new me(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
236
236
  }
237
237
  }
238
238
  const W = class W {
@@ -271,8 +271,8 @@ const W = class W {
271
271
  * Конфигурация приложения.
272
272
  */
273
273
  t(W, "config");
274
- let N = W;
275
- class Dr extends Ue {
274
+ let a = W;
275
+ class Ar extends Me {
276
276
  /**
277
277
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
278
278
  *
@@ -287,7 +287,7 @@ class Dr extends Ue {
287
287
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
288
288
  }
289
289
  }
290
- class Ar {
290
+ class Tr {
291
291
  /**
292
292
  * Инициализирует экземпляр класса {@link Image}.
293
293
  *
@@ -310,7 +310,7 @@ class Ar {
310
310
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
311
311
  }
312
312
  }
313
- class T extends Dr {
313
+ class L extends Ar {
314
314
  /**
315
315
  * Инициализирует экземпляр класса {@link Product}.
316
316
  *
@@ -383,19 +383,19 @@ class T extends Dr {
383
383
  * Список коэффициентов цен на продукт.
384
384
  */
385
385
  t(this, "priceCoefficients");
386
- 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 = 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 $r(g))) ?? [], this.type = "product";
386
+ 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 $r(g))) ?? [], this.type = "product";
387
387
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
388
- 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 Ar(g, N.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 Se(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
388
+ s && (this.category = new Re({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new Re(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new Tr(g, a.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 be(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
389
389
  }
390
390
  /**
391
391
  * Возвращает признак, что это измеряемый товар.
392
392
  */
393
393
  getIsMeasurable() {
394
- const e = N.getConfig().products.units;
394
+ const e = a.getConfig().products.units;
395
395
  return [...e.linear, ...e.square].includes(this.unit);
396
396
  }
397
397
  }
398
- class Tr extends F {
398
+ class br extends F {
399
399
  /**
400
400
  * Инициализирует экземпляр класса {@link CartItemBase}.
401
401
  *
@@ -447,10 +447,10 @@ class Tr extends F {
447
447
  * Признак того, что позиция является дополнительной продажей.
448
448
  */
449
449
  t(this, "isAdditionalSale");
450
- this.product = new T(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new te(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && ir(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
450
+ this.product = new L(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new re(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && ir(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
451
451
  }
452
452
  }
453
- class br extends Tr {
453
+ class ar extends br {
454
454
  /**
455
455
  * Инициализирует экземпляр класса {@link CartItem}.
456
456
  *
@@ -500,7 +500,7 @@ class br extends Tr {
500
500
  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;
501
501
  }
502
502
  }
503
- class ie {
503
+ class se {
504
504
  /**
505
505
  * Инициализирует экземпляр класса {@link Cart}.
506
506
  *
@@ -519,7 +519,7 @@ class ie {
519
519
  * Список итоговых сумм по направлениям продаж.
520
520
  */
521
521
  t(this, "directionsSum");
522
- this.items = r.items.map((e) => new br(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
522
+ this.items = r.items.map((e) => new ar(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
523
523
  }
524
524
  }
525
525
  class _r {
@@ -611,7 +611,7 @@ class Lr {
611
611
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
612
612
  }
613
613
  }
614
- class dr {
614
+ class xr {
615
615
  /**
616
616
  * Инициализирует экземпляр класса {@link VersionConfig}.
617
617
  *
@@ -630,7 +630,7 @@ class dr {
630
630
  * Текущая версия приложения.
631
631
  */
632
632
  t(this, "version");
633
- this.date = (r == null ? void 0 : r.date) ?? Y(/* @__PURE__ */ new Date(), "dd.MM.yyyy"), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
633
+ 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";
634
634
  }
635
635
  }
636
636
  class ht {
@@ -676,6 +676,11 @@ class ht {
676
676
  * Данные о текущем выпуске приложения.
677
677
  */
678
678
  t(this, "version");
679
+ /**
680
+ * Форматы дат.
681
+ */
682
+ t(this, "dateFormats");
683
+ var e, s, i;
679
684
  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 Sr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new _r(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
680
685
  units: {
681
686
  linear: ["пог.м.", "м."],
@@ -685,10 +690,14 @@ class ht {
685
690
  }, this.sentry = new Lr({
686
691
  environment: this.environment,
687
692
  ...r == null ? void 0 : r.sentry
688
- }), this.urls = r == null ? void 0 : r.urls, this.version = new dr(r == null ? void 0 : r.version);
693
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new xr(r == null ? void 0 : r.version), this.dateFormats = {
694
+ api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
695
+ uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
696
+ uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
697
+ };
689
698
  }
690
699
  }
691
- class Le {
700
+ class ae {
692
701
  /**
693
702
  * Инициализирует экземпляр указанного класса.
694
703
  *
@@ -707,7 +716,7 @@ class Le {
707
716
  return new r(e);
708
717
  }
709
718
  }
710
- const b = class b {
719
+ const x = class x {
711
720
  /**
712
721
  * Инициализирует экземпляр класса {@link HttpRequester}.
713
722
  *
@@ -726,24 +735,24 @@ const b = class b {
726
735
  * - error Данные об ошибке.
727
736
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
728
737
  */
729
- t(this, "defaultInstanceNotificationErrorResponseHandler", m);
730
- const s = N.getConfig().version;
731
- this.defaultInstanceNotificationErrorResponseHandler = b.baseDefaultNotificationErrorResponseHandler, this.httpClient = Rr.create({
738
+ t(this, "defaultInstanceNotificationErrorResponseHandler", y);
739
+ const s = a.getConfig().version;
740
+ this.defaultInstanceNotificationErrorResponseHandler = x.baseDefaultNotificationErrorResponseHandler, this.httpClient = Rr.create({
732
741
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
733
742
  baseURL: r,
734
743
  headers: {
735
- "APP-VERSION": `${s.name} (${s.version}, ${s.date})`,
744
+ "APP-VERSION": `${s.name} (${s.version}, ${z(s.date, a.getConfig().dateFormats.api)})`,
736
745
  Accept: "application/json",
737
746
  "Content-Type": "application/json",
738
747
  ...e
739
748
  }
740
749
  }), this.httpClient.interceptors.request.use(
741
- (i) => (i.method && (i.method === "get" && i.params && (i.params = xe(i.params)), ["put", "patch", "post"].includes(nr(i.method)) && i.data && (i.data = xe(i.data))), i),
750
+ (i) => (i.method && (i.method === "get" && i.params && (i.params = Le(i.params)), ["put", "patch", "post"].includes(nr(i.method)) && i.data && (i.data = Le(i.data))), i),
742
751
  (i) => Promise.reject(i)
743
752
  ), this.httpClient.interceptors.response.use(
744
- (i) => (i.data && (i.data = ar(i.data)), i),
753
+ (i) => (i.data && (i.data = Dr(i.data)), i),
745
754
  // Возвращаем изменённую структуру сообщения об ошибке.
746
- (i) => b.convertHttpErrorResponse(i)
755
+ (i) => x.convertHttpErrorResponse(i)
747
756
  );
748
757
  }
749
758
  /**
@@ -752,7 +761,7 @@ const b = class b {
752
761
  * @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
753
762
  */
754
763
  static setBaseDefaultNotificationErrorResponseHandler(r) {
755
- b.baseDefaultNotificationErrorResponseHandler = r;
764
+ x.baseDefaultNotificationErrorResponseHandler = r;
756
765
  }
757
766
  /**
758
767
  * Возвращает экземпляр объекта текущего класса.
@@ -760,7 +769,7 @@ const b = class b {
760
769
  * @param type Тип данных, которыми оперирует метод.
761
770
  */
762
771
  static getInstance(r) {
763
- return Object.prototype.hasOwnProperty.call(b.instances, r.name) || (b.instances[r.name] = Le.simpleInstanceInitializer(r)), b.instances[r.name];
772
+ return Object.prototype.hasOwnProperty.call(x.instances, r.name) || (x.instances[r.name] = ae.simpleInstanceInitializer(r)), x.instances[r.name];
764
773
  }
765
774
  /**
766
775
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -855,16 +864,16 @@ const b = class b {
855
864
  * Экземпляр объекта текущего класса.
856
865
  */
857
866
  // eslint-disable-next-line no-use-before-define
858
- t(b, "instances", {}), /**
867
+ t(x, "instances", {}), /**
859
868
  * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
860
869
  *
861
870
  * Параметры:
862
871
  * - error Данные об ошибке.
863
872
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
864
873
  */
865
- t(b, "baseDefaultNotificationErrorResponseHandler", m);
866
- let Ae = b;
867
- const j = class j extends Ae {
874
+ t(x, "baseDefaultNotificationErrorResponseHandler", y);
875
+ let De = x;
876
+ const j = class j extends De {
868
877
  /**
869
878
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
870
879
  *
@@ -877,7 +886,7 @@ const j = class j extends Ae {
877
886
  * Время кэширования данных ответов на запросы (секунд).
878
887
  */
879
888
  t(this, "responseDataCacheTimeout");
880
- const i = N.getConfig();
889
+ const i = a.getConfig();
881
890
  this.responseDataCacheTimeout = i.http.responseDataCacheTimeout;
882
891
  }
883
892
  /**
@@ -915,7 +924,7 @@ const j = class j extends Ae {
915
924
  getTypedDataArrayRequester(e, s, i = !1) {
916
925
  const o = i ? j.getCachedResponse(s) : void 0;
917
926
  return o ? Promise.resolve(o) : this.get(s).then((l) => {
918
- const p = l.map((g) => Le.instanceInitializer(e, g));
927
+ const p = l.map((g) => ae.instanceInitializer(e, g));
919
928
  return i && p && this.cacheResponse(s, p), p;
920
929
  });
921
930
  }
@@ -924,14 +933,14 @@ const j = class j extends Ae {
924
933
  * Кэш результатов запросов.
925
934
  */
926
935
  t(j, "responseDataCache", /* @__PURE__ */ new Map());
927
- let Te = j;
928
- class u extends Te {
936
+ let $e = j;
937
+ class u extends $e {
929
938
  /**
930
939
  * Инициализирует экземпляр класса {@link HttpRequester}.
931
940
  */
932
941
  constructor() {
933
942
  var s, i;
934
- const r = N.getConfig(), e = {};
943
+ const r = a.getConfig(), e = {};
935
944
  (s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
936
945
  }
937
946
  }
@@ -944,7 +953,7 @@ class gt extends u {
944
953
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
945
954
  */
946
955
  getCart(r) {
947
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ie(e.data));
956
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new se(e.data));
948
957
  }
949
958
  /**
950
959
  * Удаляет всё содержимое корзины.
@@ -982,7 +991,7 @@ class gt extends u {
982
991
  isAdditionalSale: e.isAdditionalSale,
983
992
  ...e.configuratorParams
984
993
  },
985
- (i) => new ie(i.data),
994
+ (i) => new se(i.data),
986
995
  s
987
996
  );
988
997
  }
@@ -1012,7 +1021,7 @@ class gt extends u {
1012
1021
  isAdditionalSale: e.isAdditionalSale,
1013
1022
  ...e.configuratorParams
1014
1023
  },
1015
- (i) => new ie(i.data),
1024
+ (i) => new se(i.data),
1016
1025
  s
1017
1026
  );
1018
1027
  }
@@ -1035,11 +1044,11 @@ class gt extends u {
1035
1044
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1036
1045
  */
1037
1046
  addCartItemFromCSV(r) {
1038
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ie(e.data));
1047
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new se(e.data));
1039
1048
  }
1040
1049
  }
1041
- var xr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(xr || {}), de = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(de || {}), Ir = /* @__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))(Ir || {});
1042
- class q extends te {
1050
+ var Ir = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Ir || {}), _e = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(_e || {}), kr = /* @__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))(kr || {});
1051
+ class d extends re {
1043
1052
  /**
1044
1053
  * Инициализирует экземпляр класса {@link Category}.
1045
1054
  *
@@ -1056,10 +1065,10 @@ class q extends te {
1056
1065
  * Список продуктов категории.
1057
1066
  */
1058
1067
  t(this, "products");
1059
- 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 T(o));
1068
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new d(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new L(o));
1060
1069
  }
1061
1070
  }
1062
- class Fe extends a {
1071
+ class ze extends A {
1063
1072
  /**
1064
1073
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1065
1074
  *
@@ -1071,10 +1080,10 @@ class Fe extends a {
1071
1080
  * Дата и время последнего изменения.
1072
1081
  */
1073
1082
  t(this, "updatedAt");
1074
- this.updatedAt = e != null && e.updatedAt ? C(e.updatedAt) ? D(e.updatedAt) : e.updatedAt : void 0;
1083
+ this.updatedAt = e != null && e.updatedAt ? m(e.updatedAt) ? f(e.updatedAt) : e.updatedAt : void 0;
1075
1084
  }
1076
1085
  }
1077
- class kr extends Fe {
1086
+ class Nr extends ze {
1078
1087
  /**
1079
1088
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1080
1089
  *
@@ -1086,7 +1095,7 @@ class kr extends Fe {
1086
1095
  * Дата и время последнего удаления.
1087
1096
  */
1088
1097
  t(this, "deletedAt");
1089
- this.deletedAt = e != null && e.deletedAt ? C(e.deletedAt) ? D(e.deletedAt) : e.deletedAt : void 0;
1098
+ this.deletedAt = e != null && e.deletedAt ? m(e.deletedAt) ? f(e.deletedAt) : e.deletedAt : void 0;
1090
1099
  }
1091
1100
  }
1092
1101
  class mt {
@@ -1100,7 +1109,7 @@ class mt {
1100
1109
  if (e)
1101
1110
  try {
1102
1111
  const s = JSON.parse(e);
1103
- if (hr(D(s.availableFor) || $e(), /* @__PURE__ */ new Date()))
1112
+ if (hr(f(s.availableFor) || Ge(), /* @__PURE__ */ new Date()))
1104
1113
  return s.data || {};
1105
1114
  } catch {
1106
1115
  localStorage.removeItem(r);
@@ -1123,7 +1132,7 @@ class mt {
1123
1132
  );
1124
1133
  }
1125
1134
  }
1126
- class M extends a {
1135
+ class q extends A {
1127
1136
  /**
1128
1137
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1129
1138
  *
@@ -1138,7 +1147,7 @@ class M extends a {
1138
1147
  this.type = e == null ? void 0 : e.type;
1139
1148
  }
1140
1149
  }
1141
- class Nr extends a {
1150
+ class Or extends A {
1142
1151
  /**
1143
1152
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1144
1153
  *
@@ -1174,10 +1183,10 @@ class Nr extends a {
1174
1183
  * Дата и время удаления.
1175
1184
  */
1176
1185
  t(this, "deletedAt");
1177
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = e != null && e.publishedAt ? C(e.publishedAt) ? D(e.publishedAt) : e.publishedAt : void 0, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new M(e == null ? void 0 : e.owner), this.deletedAt = e != null && e.deletedAt ? C(e.deletedAt) ? D(e.deletedAt) : e.deletedAt : void 0;
1186
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = e != null && e.publishedAt ? m(e.publishedAt) ? f(e.publishedAt) : e.publishedAt : void 0, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new q(e == null ? void 0 : e.owner), this.deletedAt = e != null && e.deletedAt ? m(e.deletedAt) ? f(e.deletedAt) : e.deletedAt : void 0;
1178
1187
  }
1179
1188
  }
1180
- class B extends Fe {
1189
+ class B extends ze {
1181
1190
  /**
1182
1191
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1183
1192
  *
@@ -1193,10 +1202,10 @@ class B extends Fe {
1193
1202
  * Дата и время создания шаблона.
1194
1203
  */
1195
1204
  t(this, "createdAt");
1196
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = e != null && e.createdAt ? C(e.createdAt) ? D(e.createdAt) : e.createdAt : /* @__PURE__ */ new Date();
1205
+ 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();
1197
1206
  }
1198
1207
  }
1199
- class J extends T {
1208
+ class K extends L {
1200
1209
  /**
1201
1210
  * Инициализирует экземпляр класса {@link ClientProduct}.
1202
1211
  *
@@ -1232,10 +1241,10 @@ class J extends T {
1232
1241
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1233
1242
  */
1234
1243
  t(this, "isFavorite");
1235
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? de.Product, this.discount = e != null && e.discount ? new Nr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new B(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;
1244
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? _e.Product, this.discount = e != null && e.discount ? new Or(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new B(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;
1236
1245
  }
1237
1246
  }
1238
- class Or {
1247
+ class dr {
1239
1248
  /**
1240
1249
  * Инициализирует экземпляр класса {@link ContactLinks}.
1241
1250
  *
@@ -1253,9 +1262,9 @@ class Or {
1253
1262
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1254
1263
  }
1255
1264
  }
1256
- class _ extends f {
1265
+ class I extends C {
1257
1266
  }
1258
- class oe extends a {
1267
+ class ne extends A {
1259
1268
  /**
1260
1269
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1261
1270
  *
@@ -1266,7 +1275,7 @@ class oe extends a {
1266
1275
  /**
1267
1276
  * Направление продаж.
1268
1277
  */
1269
- t(this, "salesDirection", new _());
1278
+ t(this, "salesDirection", new I());
1270
1279
  /**
1271
1280
  * URI путь к фотографии пользователя.
1272
1281
  */
@@ -1279,10 +1288,10 @@ class oe extends a {
1279
1288
  * Признак того, что менеджер является основным для клиента.
1280
1289
  */
1281
1290
  t(this, "isDefault");
1282
- e && (this.salesDirection = new _(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Or(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1291
+ e && (this.salesDirection = new I(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new dr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1283
1292
  }
1284
1293
  }
1285
- class ye extends oe {
1294
+ class fe extends ne {
1286
1295
  /**
1287
1296
  * Инициализирует экземпляр класса {@link Manager}.
1288
1297
  *
@@ -1313,7 +1322,7 @@ class ye extends oe {
1313
1322
  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;
1314
1323
  }
1315
1324
  }
1316
- class qr extends te {
1325
+ class qr extends re {
1317
1326
  /**
1318
1327
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1319
1328
  *
@@ -1341,10 +1350,10 @@ class qr extends te {
1341
1350
  * Данные о менеджере за которым закреплена категория.
1342
1351
  */
1343
1352
  t(this, "manager");
1344
- 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;
1353
+ 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 fe(e.manager) : void 0;
1345
1354
  }
1346
1355
  }
1347
- class ce extends qr {
1356
+ class oe extends qr {
1348
1357
  /**
1349
1358
  * Инициализирует экземпляр класса {@link ClientCategory}.
1350
1359
  *
@@ -1361,10 +1370,10 @@ class ce extends qr {
1361
1370
  * Список продуктов категории.
1362
1371
  */
1363
1372
  t(this, "products");
1364
- 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));
1373
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new oe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
1365
1374
  }
1366
1375
  }
1367
- class ze {
1376
+ class Be {
1368
1377
  /**
1369
1378
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1370
1379
  *
@@ -1379,10 +1388,10 @@ class ze {
1379
1388
  * Процент, который прибавляется к значению выбранного коэффициента.
1380
1389
  */
1381
1390
  t(this, "increasePercent");
1382
- this.coefficient = (r == null ? void 0 : r.coefficient) && new me(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1391
+ this.coefficient = (r == null ? void 0 : r.coefficient) && new ge(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1383
1392
  }
1384
1393
  }
1385
- class ve extends ze {
1394
+ class Ce extends Be {
1386
1395
  /**
1387
1396
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1388
1397
  *
@@ -1394,12 +1403,12 @@ class ve extends ze {
1394
1403
  * Базовые данные о продукте.
1395
1404
  */
1396
1405
  t(this, "productCategory");
1397
- this.productCategory = new te(e == null ? void 0 : e.productCategory);
1406
+ this.productCategory = new re(e == null ? void 0 : e.productCategory);
1398
1407
  }
1399
1408
  }
1400
- class Q extends f {
1409
+ class J extends C {
1401
1410
  }
1402
- class re extends f {
1411
+ class Z extends C {
1403
1412
  /**
1404
1413
  * Инициализирует экземпляр класса {@link Region}.
1405
1414
  *
@@ -1410,11 +1419,11 @@ class re extends f {
1410
1419
  /**
1411
1420
  * Данные о стране, в которой расположен регион.
1412
1421
  */
1413
- t(this, "country", new Q());
1414
- e && (this.country = new Q(e.country));
1422
+ t(this, "country", new J());
1423
+ e && (this.country = new J(e.country));
1415
1424
  }
1416
1425
  }
1417
- class le extends f {
1426
+ class ce extends C {
1418
1427
  /**
1419
1428
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1420
1429
  *
@@ -1425,11 +1434,11 @@ class le extends f {
1425
1434
  /**
1426
1435
  * Данные о регионе, в котором расположен город.
1427
1436
  */
1428
- t(this, "region", new re());
1429
- e && (this.region = new re(e.region));
1437
+ t(this, "region", new Z());
1438
+ e && (this.region = new Z(e.region));
1430
1439
  }
1431
1440
  }
1432
- class Be extends a {
1441
+ class We extends A {
1433
1442
  /**
1434
1443
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1435
1444
  *
@@ -1465,10 +1474,10 @@ class Be extends a {
1465
1474
  * Признак активности учетной записи пользователя.
1466
1475
  */
1467
1476
  t(this, "isActive");
1468
- 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 _(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? D(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1477
+ 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 I(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;
1469
1478
  }
1470
1479
  }
1471
- class se extends Be {
1480
+ class te extends We {
1472
1481
  /**
1473
1482
  * Инициализирует экземпляр класса {@link Client}.
1474
1483
  *
@@ -1510,10 +1519,10 @@ class se extends Be {
1510
1519
  * Список менеджеров клиента.
1511
1520
  */
1512
1521
  t(this, "managers");
1513
- this.salesDirection = new _(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 oe(i))) ?? [];
1522
+ this.salesDirection = new I(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 ce(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 ne(i))) ?? [];
1514
1523
  }
1515
1524
  }
1516
- class X extends F {
1525
+ class Q extends F {
1517
1526
  /**
1518
1527
  * Инициализирует новый экземпляр класса.
1519
1528
  *
@@ -1537,10 +1546,10 @@ class X extends F {
1537
1546
  * Данные шаблона прайс-листа.
1538
1547
  */
1539
1548
  t(this, "priceTemplate");
1540
- this.startAt = C(e == null ? void 0 : e.startAt) ? D(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = C(e == null ? void 0 : e.endAt) ? D(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new se(e == null ? void 0 : e.client), this.priceTemplate = new B(e == null ? void 0 : e.priceTemplate);
1549
+ 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 te(e == null ? void 0 : e.client), this.priceTemplate = new B(e == null ? void 0 : e.priceTemplate);
1541
1550
  }
1542
1551
  }
1543
- class Pe extends ze {
1552
+ class we extends Be {
1544
1553
  /**
1545
1554
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1546
1555
  *
@@ -1552,12 +1561,12 @@ class Pe extends ze {
1552
1561
  * Базовые данные о продукте.
1553
1562
  */
1554
1563
  t(this, "product");
1555
- this.product = new T(e == null ? void 0 : e.product);
1564
+ this.product = new L(e == null ? void 0 : e.product);
1556
1565
  }
1557
1566
  }
1558
- class We extends f {
1567
+ class je extends C {
1559
1568
  }
1560
- class Z extends a {
1569
+ class Y extends A {
1561
1570
  /**
1562
1571
  * Инициализирует экземпляр класса {@link Property}.
1563
1572
  *
@@ -1577,10 +1586,10 @@ class Z extends a {
1577
1586
  * Дополнительные метаданные свойства.
1578
1587
  */
1579
1588
  t(this, "metadata");
1580
- this.type = new We(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1589
+ this.type = new je(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1581
1590
  }
1582
1591
  }
1583
- class z {
1592
+ class H {
1584
1593
  /**
1585
1594
  * Инициализирует экземпляр класса {@link PropertyValue}.
1586
1595
  *
@@ -1596,18 +1605,18 @@ class z {
1596
1605
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
1597
1606
  */
1598
1607
  t(this, "value");
1599
- this.property = new Z(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1608
+ this.property = new Y(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1600
1609
  }
1601
1610
  }
1602
- class Mr extends f {
1611
+ class Ur extends C {
1603
1612
  }
1604
- class je extends f {
1613
+ class Ve extends C {
1605
1614
  }
1606
- class ft extends f {
1615
+ class ft extends C {
1607
1616
  }
1608
- class Ur extends f {
1617
+ class Gr extends C {
1609
1618
  }
1610
- class pe extends a {
1619
+ class le extends A {
1611
1620
  /**
1612
1621
  * Инициализирует экземпляр класса {@link Currency}.
1613
1622
  *
@@ -1626,8 +1635,8 @@ class pe extends a {
1626
1635
  e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
1627
1636
  }
1628
1637
  }
1629
- var A = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(A || {});
1630
- class U extends f {
1638
+ var S = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(S || {});
1639
+ class U extends C {
1631
1640
  /**
1632
1641
  * Возвращает сгенерированную запись-описание физического лица.
1633
1642
  */
@@ -1635,26 +1644,26 @@ class U extends f {
1635
1644
  return new U({
1636
1645
  id: 1,
1637
1646
  guid: "",
1638
- slug: A.Person,
1647
+ slug: S.Person,
1639
1648
  name: ""
1640
1649
  });
1641
1650
  }
1642
1651
  }
1643
- class Gr extends f {
1652
+ class Mr extends C {
1644
1653
  }
1645
- class Hr extends f {
1654
+ class Fr extends C {
1646
1655
  }
1647
- class G extends f {
1656
+ class G extends C {
1648
1657
  }
1649
- class Fr extends f {
1658
+ class Hr extends C {
1650
1659
  }
1651
- class zr extends f {
1660
+ class zr extends C {
1652
1661
  }
1653
- class Ve extends f {
1662
+ class Ee extends C {
1654
1663
  }
1655
- class Ee extends f {
1664
+ class Ke extends C {
1656
1665
  }
1657
- class R extends u {
1666
+ class D extends u {
1658
1667
  /**
1659
1668
  * Возвращает {@link Promise} для получения данных указанного справочника.
1660
1669
  *
@@ -1663,26 +1672,26 @@ class R extends u {
1663
1672
  * и использовать в случае аналогичных запросов.
1664
1673
  */
1665
1674
  getReference(r, e = !1) {
1666
- return this.getTypedDataArrayRequester(Mr, `/internal/references/${r}`, e);
1675
+ return this.getTypedDataArrayRequester(Ur, `/internal/references/${r}`, e);
1667
1676
  }
1668
1677
  /**
1669
1678
  * Возвращает {@link Promise} для получения справочника данных о канале
1670
1679
  * первичного интереса.
1671
1680
  */
1672
1681
  getChannelPrimaryInterest() {
1673
- return this.getTypedDataArrayRequester(je, "/internal/references/channel-primary-interest", !0);
1682
+ return this.getTypedDataArrayRequester(Ve, "/internal/references/channel-primary-interest", !0);
1674
1683
  }
1675
1684
  /**
1676
1685
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1677
1686
  */
1678
1687
  getContactPositions() {
1679
- return this.getTypedDataArrayRequester(Ur, "/internal/references/contact-position", !0);
1688
+ return this.getTypedDataArrayRequester(Gr, "/internal/references/contact-position", !0);
1680
1689
  }
1681
1690
  /**
1682
1691
  * Возвращает {@link Promise} для получения справочника списка валют.
1683
1692
  */
1684
1693
  getCurrency() {
1685
- return this.getTypedDataArrayRequester(pe, "/public/references/currency", !0);
1694
+ return this.getTypedDataArrayRequester(le, "/public/references/currency", !0);
1686
1695
  }
1687
1696
  /**
1688
1697
  * Возвращает {@link Promise} для получения справочника данных
@@ -1701,37 +1710,37 @@ class R extends u {
1701
1710
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1702
1711
  */
1703
1712
  getOrderPaymentStatuses() {
1704
- return this.getTypedDataArrayRequester(Gr, "/public/references/order-payment-status", !0);
1713
+ return this.getTypedDataArrayRequester(Mr, "/public/references/order-payment-status", !0);
1705
1714
  }
1706
1715
  /**
1707
1716
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1708
1717
  */
1709
1718
  getOrderStatuses() {
1710
- return this.getTypedDataArrayRequester(Hr, "/public/references/order-status", !0);
1719
+ return this.getTypedDataArrayRequester(Fr, "/public/references/order-status", !0);
1711
1720
  }
1712
1721
  /**
1713
1722
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1714
1723
  */
1715
1724
  getPaymentTypes() {
1716
- return this.getTypedDataArrayRequester(Fr, "/public/references/payment-type", !0);
1725
+ return this.getTypedDataArrayRequester(Hr, "/public/references/payment-type", !0);
1717
1726
  }
1718
1727
  /**
1719
1728
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1720
1729
  */
1721
1730
  getResourceTypes() {
1722
- return this.getTypedDataArrayRequester(Ve, "/internal/references/resource-type", !0);
1731
+ return this.getTypedDataArrayRequester(Ee, "/internal/references/resource-type", !0);
1723
1732
  }
1724
1733
  /**
1725
1734
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
1726
1735
  */
1727
1736
  getSalesDirections() {
1728
- return this.getTypedDataArrayRequester(_, "/public/references/sales-direction", !0);
1737
+ return this.getTypedDataArrayRequester(I, "/public/references/sales-direction", !0);
1729
1738
  }
1730
1739
  /**
1731
1740
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1732
1741
  */
1733
1742
  getSourcePrimaryInterest() {
1734
- return this.getTypedDataArrayRequester(Ee, "/internal/references/source-primary-interest", !0);
1743
+ return this.getTypedDataArrayRequester(Ke, "/internal/references/source-primary-interest", !0);
1735
1744
  }
1736
1745
  /**
1737
1746
  * Выполняет поиск данных о городах по терму в названии.
@@ -1739,7 +1748,7 @@ class R extends u {
1739
1748
  * @param term Терм поиска.
1740
1749
  */
1741
1750
  searchCity(r) {
1742
- return this.getTypedDataArrayRequester(le, `/internal/references/city-with-region-and-country/search?term=${r}`);
1751
+ return this.getTypedDataArrayRequester(ce, `/internal/references/city-with-region-and-country/search?term=${r}`);
1743
1752
  }
1744
1753
  /**
1745
1754
  * Выполняет поиск данных о регионах по терму в названии.
@@ -1747,7 +1756,7 @@ class R extends u {
1747
1756
  * @param term Терм поиска.
1748
1757
  */
1749
1758
  searchRegion(r) {
1750
- return this.getTypedDataArrayRequester(re, `/internal/references/region-with-country/search?term=${r}`);
1759
+ return this.getTypedDataArrayRequester(Z, `/internal/references/region-with-country/search?term=${r}`);
1751
1760
  }
1752
1761
  /**
1753
1762
  * Выполняет поиск данных о странах по терму в названии.
@@ -1755,31 +1764,31 @@ class R extends u {
1755
1764
  * @param term Терм поиска.
1756
1765
  */
1757
1766
  searchCountry(r) {
1758
- return this.getTypedDataArrayRequester(Q, `/internal/references/country/search?term=${r}`);
1767
+ return this.getTypedDataArrayRequester(J, `/internal/references/country/search?term=${r}`);
1759
1768
  }
1760
1769
  /**
1761
1770
  * Возвращает {@link Promise} для получения справочника типов доставки.
1762
1771
  */
1763
1772
  getDeliveryTypes() {
1764
- return this.getTypedDataArrayRequester(K, "/internal/references/delivery-type", !0);
1773
+ return this.getTypedDataArrayRequester(E, "/internal/references/delivery-type", !0);
1765
1774
  }
1766
1775
  /**
1767
1776
  * Возвращает {@link Promise} для получения справочника складов.
1768
1777
  */
1769
1778
  getWarehouses() {
1770
- return this.getTypedDataArrayRequester(fe, "/public/references/warehouse", !0);
1779
+ return this.getTypedDataArrayRequester(me, "/public/references/warehouse", !0);
1771
1780
  }
1772
1781
  /**
1773
1782
  * Возвращает {@link Promise} для получения справочника типов свойств.
1774
1783
  */
1775
1784
  getPropertyTypes() {
1776
- return this.getTypedDataArrayRequester(We, "/internal/references/property-type", !0);
1785
+ return this.getTypedDataArrayRequester(je, "/internal/references/property-type", !0);
1777
1786
  }
1778
1787
  /**
1779
1788
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
1780
1789
  */
1781
1790
  getPriceCoefficients() {
1782
- return this.getTypedDataArrayRequester(me, "/internal/references/price-coefficient", !0);
1791
+ return this.getTypedDataArrayRequester(ge, "/internal/references/price-coefficient", !0);
1783
1792
  }
1784
1793
  /**
1785
1794
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
@@ -1789,7 +1798,7 @@ class R extends u {
1789
1798
  }
1790
1799
  }
1791
1800
  var Br = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Br || {});
1792
- class Wr extends Be {
1801
+ class Wr extends We {
1793
1802
  /**
1794
1803
  * Инициализирует экземпляр класса {@link User}.
1795
1804
  *
@@ -1864,10 +1873,10 @@ class Vr {
1864
1873
  * Данные о валюте.
1865
1874
  */
1866
1875
  t(this, "currency");
1867
- this.cost = r.cost, this.costDate = C(r.costDate) ? D(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 M(r.client) : void 0, this.executor = r.executor ? new M(r.executor) : void 0, this.currency = r.currency ? new pe(r.currency) : void 0;
1876
+ 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 q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new le(r.currency) : void 0;
1868
1877
  }
1869
1878
  }
1870
- class Ie {
1879
+ class xe {
1871
1880
  /**
1872
1881
  * Инициализирует экземпляр класса {@link RecommendationsList}.
1873
1882
  *
@@ -1882,10 +1891,10 @@ class Ie {
1882
1891
  * Список рекомендованных категорий продуктов.
1883
1892
  */
1884
1893
  t(this, "productCategories", []);
1885
- r != null && r.products && (this.products = r.products.map((e) => new T(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
1894
+ r != null && r.products && (this.products = r.products.map((e) => new L(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new d(e)));
1886
1895
  }
1887
1896
  }
1888
- class ee extends a {
1897
+ class X extends A {
1889
1898
  /**
1890
1899
  * Инициализирует экземпляр класса {@link PricingRole}.
1891
1900
  *
@@ -1920,7 +1929,7 @@ class ee extends a {
1920
1929
  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;
1921
1930
  }
1922
1931
  }
1923
- class ke {
1932
+ class Ie {
1924
1933
  /**
1925
1934
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
1926
1935
  *
@@ -1939,11 +1948,11 @@ class ke {
1939
1948
  * Минимальный коэффициент цены.
1940
1949
  */
1941
1950
  t(this, "minCoefficient");
1942
- this.role = new ee(r == null ? void 0 : r.role), this.category = new te(r == null ? void 0 : r.category), this.minCoefficient = new me(r == null ? void 0 : r.minCoefficient);
1951
+ this.role = new X(r == null ? void 0 : r.role), this.category = new re(r == null ? void 0 : r.category), this.minCoefficient = new ge(r == null ? void 0 : r.minCoefficient);
1943
1952
  }
1944
1953
  }
1945
1954
  var Er = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Er || {});
1946
- class be extends F {
1955
+ class Ae extends F {
1947
1956
  /**
1948
1957
  * Инициализирует экземпляр класса {@link BankAccount}.
1949
1958
  *
@@ -1970,11 +1979,11 @@ class be extends F {
1970
1979
  /**
1971
1980
  * Данные о валюте.
1972
1981
  */
1973
- t(this, "currency", new pe());
1974
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new pe(e.currency));
1982
+ t(this, "currency", new le());
1983
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new le(e.currency));
1975
1984
  }
1976
1985
  }
1977
- class _e extends a {
1986
+ class Te extends A {
1978
1987
  /**
1979
1988
  * Инициализирует экземпляр класса {@link Contact}.
1980
1989
  *
@@ -1993,7 +2002,7 @@ class _e extends a {
1993
2002
  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;
1994
2003
  }
1995
2004
  }
1996
- class H extends _e {
2005
+ class M extends Te {
1997
2006
  /**
1998
2007
  * Инициализирует экземпляр класса {@link ContactPerson}.
1999
2008
  *
@@ -2025,10 +2034,10 @@ class H extends _e {
2025
2034
  * Дата и время последнего удаления.
2026
2035
  */
2027
2036
  t(this, "deletedAt");
2028
- 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 = e != null && e.deletedAt ? C(e.deletedAt) ? D(e.deletedAt) : e.deletedAt : void 0;
2037
+ 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;
2029
2038
  }
2030
2039
  }
2031
- class Ke extends a {
2040
+ class Je extends A {
2032
2041
  /**
2033
2042
  * Инициализирует экземпляр класса {@link ContragentBase}.
2034
2043
  *
@@ -2040,7 +2049,7 @@ class Ke extends a {
2040
2049
  /**
2041
2050
  * Данные о менеджере.
2042
2051
  */
2043
- t(this, "manager", new oe());
2052
+ t(this, "manager", new ne());
2044
2053
  /**
2045
2054
  * Данные об организационно-правовой форме.
2046
2055
  */
@@ -2048,7 +2057,7 @@ class Ke extends a {
2048
2057
  /**
2049
2058
  * Направление продаж.
2050
2059
  */
2051
- t(this, "salesDirection", new _());
2060
+ t(this, "salesDirection", new I());
2052
2061
  /**
2053
2062
  * Группа партнеров (направление деятельности).
2054
2063
  */
@@ -2086,22 +2095,22 @@ class Ke extends a {
2086
2095
  */
2087
2096
  t(this, "updater");
2088
2097
  if (e) {
2089
- if (this.opf = new U(e.opf), this.salesDirection = new _(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? E(e == null ? void 0 : e.createdAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.createdAt, this.creator = e.creator ? new M(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? E(e == null ? void 0 : e.updatedAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.updatedAt, this.updater = e.updater ? new M(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new G(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
2098
+ if (this.opf = new U(e.opf), this.salesDirection = new I(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 q(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new G(e.partnerGroup)), e.manager && (this.manager = new ne(e.manager)), e.contacts) {
2090
2099
  const s = [];
2091
2100
  e.contacts.forEach((i) => {
2092
- s.push(new H(i));
2101
+ s.push(new M(i));
2093
2102
  }), this.contacts = s;
2094
2103
  }
2095
2104
  if (e.bankAccounts) {
2096
2105
  const s = [];
2097
2106
  e.bankAccounts.forEach((i) => {
2098
- s.push(new be(i));
2107
+ s.push(new Ae(i));
2099
2108
  }), this.bankAccounts = s;
2100
2109
  }
2101
2110
  }
2102
2111
  }
2103
2112
  }
2104
- class Kr extends Ke {
2113
+ class Kr extends Je {
2105
2114
  /**
2106
2115
  * Инициализирует экземпляр класса {@link ContragentPerson}.
2107
2116
  *
@@ -2111,7 +2120,7 @@ class Kr extends Ke {
2111
2120
  super(r);
2112
2121
  }
2113
2122
  }
2114
- class Je extends Ke {
2123
+ class Qe extends Je {
2115
2124
  /**
2116
2125
  * Инициализирует экземпляр класса {@link ContragentIc}.
2117
2126
  *
@@ -2154,7 +2163,7 @@ class Je extends Ke {
2154
2163
  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 ?? "");
2155
2164
  }
2156
2165
  }
2157
- class Qe extends Je {
2166
+ class Ye extends Qe {
2158
2167
  /**
2159
2168
  * Инициализирует экземпляр класса {@link ContragentUlR}.
2160
2169
  *
@@ -2169,7 +2178,7 @@ class Qe extends Je {
2169
2178
  e && (this.kpp = e.kpp ?? "");
2170
2179
  }
2171
2180
  }
2172
- class Jr extends Qe {
2181
+ class Jr extends Ye {
2173
2182
  /**
2174
2183
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
2175
2184
  *
@@ -2180,7 +2189,7 @@ class Jr extends Qe {
2180
2189
  /**
2181
2190
  * Страна регистрации юридического лица нерезидента.
2182
2191
  */
2183
- t(this, "registrationCountry", new Q());
2192
+ t(this, "registrationCountry", new J());
2184
2193
  /**
2185
2194
  * Регистрационный номер юридического лица нерезидента.
2186
2195
  */
@@ -2189,10 +2198,10 @@ class Jr extends Qe {
2189
2198
  * Налоговый номер юридического лица нерезидента.
2190
2199
  */
2191
2200
  t(this, "taxNumber", "");
2192
- e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
2201
+ e && (this.registrationCountry = new J(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
2193
2202
  }
2194
2203
  }
2195
- class ue {
2204
+ class pe {
2196
2205
  /**
2197
2206
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
2198
2207
  *
@@ -2200,18 +2209,18 @@ class ue {
2200
2209
  */
2201
2210
  static createInstance(r) {
2202
2211
  switch (r.opf.slug) {
2203
- case A.Ic:
2204
- return new Je(r);
2205
- case A.UlR:
2212
+ case S.Ic:
2206
2213
  return new Qe(r);
2207
- case A.UlNr:
2214
+ case S.UlR:
2215
+ return new Ye(r);
2216
+ case S.UlNr:
2208
2217
  return new Jr(r);
2209
2218
  default:
2210
2219
  return new Kr(r);
2211
2220
  }
2212
2221
  }
2213
2222
  }
2214
- class Re extends F {
2223
+ class ve extends F {
2215
2224
  /**
2216
2225
  * Инициализирует экземпляр класса {@link ContactRelation}.
2217
2226
  *
@@ -2226,7 +2235,7 @@ class Re extends F {
2226
2235
  this.isPrimary = e.isPrimary;
2227
2236
  }
2228
2237
  }
2229
- class Qr extends H {
2238
+ class Qr extends M {
2230
2239
  /**
2231
2240
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
2232
2241
  *
@@ -2251,10 +2260,10 @@ class Qr extends H {
2251
2260
  */
2252
2261
  addresses: []
2253
2262
  });
2254
- 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))));
2263
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new ve(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new ve(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new ve(s))));
2255
2264
  }
2256
2265
  }
2257
- class he extends kr {
2266
+ class ue extends Nr {
2258
2267
  /**
2259
2268
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
2260
2269
  *
@@ -2291,10 +2300,10 @@ class he extends kr {
2291
2300
  * Признак того, что указанный адрес является адресом транспортной компании.
2292
2301
  */
2293
2302
  t(this, "isTransportCompanyAddress");
2294
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new He(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new H(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;
2303
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new He(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(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;
2295
2304
  }
2296
2305
  }
2297
- class Ne extends se {
2306
+ class ke extends te {
2298
2307
  /**
2299
2308
  * Инициализирует экземпляр класса {@link Client}.
2300
2309
  *
@@ -2348,7 +2357,7 @@ class Ne extends se {
2348
2357
  * Дополнительные данные о клиенте.
2349
2358
  */
2350
2359
  t(this, "extraData");
2351
- 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 G(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new H(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new he(p))) ?? [], this.channelPrimaryInterest = new je(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ee(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) ?? {};
2360
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => pe.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new G(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new M(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new ue(p))) ?? [], this.channelPrimaryInterest = new Ve(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ke(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new E(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 me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
2352
2361
  }
2353
2362
  }
2354
2363
  class yt {
@@ -2448,17 +2457,17 @@ class yt {
2448
2457
  * Данные о параметрах поиска последнего заказа который сделал пользователь.
2449
2458
  */
2450
2459
  t(this, "lastOrder");
2451
- var e, s, i, o, l, p, g;
2452
- 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.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 = {
2453
- from: ((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ?? null,
2454
- to: ((s = r == null ? void 0 : r.createdAt) == null ? void 0 : s.to) ?? null
2460
+ var e, s, i, o, l, p, g, v, $, T, b;
2461
+ 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.city = new ce(r == null ? void 0 : r.city), this.region = new Z(r == null ? void 0 : r.region), this.country = new J(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 = {
2462
+ from: m((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ? f((s = r == null ? void 0 : r.createdAt) == null ? void 0 : s.from) : null,
2463
+ to: m((i = r == null ? void 0 : r.createdAt) == null ? void 0 : i.to) ? f((o = r == null ? void 0 : r.createdAt) == null ? void 0 : o.to) : null
2455
2464
  }, this.lastLoginDate = {
2456
- from: ((i = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : i.from) ?? null,
2457
- to: ((o = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : o.to) ?? null
2458
- }, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((v) => new ye(v)) : [], this.salesDirection = new _(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new U(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new G(r == null ? void 0 : r.partnerGroup), this.contact = new _e(r == null ? void 0 : r.contact), this.lastOrder = {
2459
- createdAt: (l = r == null ? void 0 : r.lastOrder) == null ? void 0 : l.createdAt,
2460
- creator: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.creator,
2461
- isApproved: (g = r == null ? void 0 : r.lastOrder) == null ? void 0 : g.isApproved
2465
+ from: m((l = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : l.from) ? f((p = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : p.from) : null,
2466
+ to: m((g = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : g.to) ? f((v = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : v.to) : null
2467
+ }, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((_) => new fe(_)) : [], this.salesDirection = new I(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new U(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new E(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new G(r == null ? void 0 : r.partnerGroup), this.contact = new Te(r == null ? void 0 : r.contact), this.lastOrder = {
2468
+ createdAt: ($ = r == null ? void 0 : r.lastOrder) == null ? void 0 : $.createdAt,
2469
+ creator: (T = r == null ? void 0 : r.lastOrder) == null ? void 0 : T.creator,
2470
+ isApproved: (b = r == null ? void 0 : r.lastOrder) == null ? void 0 : b.isApproved
2462
2471
  };
2463
2472
  }
2464
2473
  /**
@@ -2477,10 +2486,10 @@ class yt {
2477
2486
  this[r] = "";
2478
2487
  break;
2479
2488
  case "city":
2480
- this.city = new le();
2489
+ this.city = new ce();
2481
2490
  break;
2482
2491
  case "region":
2483
- this.region = new re();
2492
+ this.region = new Z();
2484
2493
  break;
2485
2494
  case "isActive":
2486
2495
  this.isActive = !0;
@@ -2501,13 +2510,13 @@ class yt {
2501
2510
  this.managers = [];
2502
2511
  break;
2503
2512
  case "salesDirection":
2504
- this.salesDirection = new _();
2513
+ this.salesDirection = new I();
2505
2514
  break;
2506
2515
  case "contragentType":
2507
2516
  this.contragentType = new U();
2508
2517
  break;
2509
2518
  case "preferredDeliveryType":
2510
- this.preferredDeliveryType = new K();
2519
+ this.preferredDeliveryType = new E();
2511
2520
  break;
2512
2521
  case "partnerGroup":
2513
2522
  this.partnerGroup = new G();
@@ -2516,7 +2525,7 @@ class yt {
2516
2525
  this.hasCostLessThenStop = void 0;
2517
2526
  break;
2518
2527
  case "contact":
2519
- this.contact = new _e();
2528
+ this.contact = new Te();
2520
2529
  break;
2521
2530
  }
2522
2531
  return this;
@@ -2531,11 +2540,11 @@ class yt {
2531
2540
  return Object.keys(this).forEach((l) => {
2532
2541
  const p = this[l];
2533
2542
  // eslint-disable-next-line prettier/prettier
2534
- Me(p) || C(p) && p.trim().length === 0 || or(p.isNewRec) && p.isNewRec() || (r[l] = p);
2543
+ qe(p) || m(p) && p.trim().length === 0 || Ue(p.isNewRec) && p.isNewRec() || (r[l] = p);
2535
2544
  }), !((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;
2536
2545
  }
2537
2546
  }
2538
- class Ye extends F {
2547
+ class Xe extends F {
2539
2548
  /**
2540
2549
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
2541
2550
  *
@@ -2555,10 +2564,10 @@ class Ye extends F {
2555
2564
  * Признак того, что заказ подтвержден в 1С.
2556
2565
  */
2557
2566
  t(this, "isApproved1c");
2558
- this.createdAt = C(e == null ? void 0 : e.createdAt) ? E(e.createdAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new M(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
2567
+ this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
2559
2568
  }
2560
2569
  }
2561
- class Xe extends Ye {
2570
+ class Ze extends Xe {
2562
2571
  /**
2563
2572
  * Инициализирует экземпляр класса {@link OrderInfo}.
2564
2573
  *
@@ -2607,16 +2616,16 @@ class Xe extends Ye {
2607
2616
  * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
2608
2617
  */
2609
2618
  t(this, "isNotInStock");
2610
- this.client = new se(e == null ? void 0 : e.client), this.payment = {
2619
+ this.client = new te(e == null ? void 0 : e.client), this.payment = {
2611
2620
  type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
2612
2621
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
2613
2622
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
2614
2623
  }, this.delivery = {
2615
2624
  type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
2616
- date: C((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? E(e == null ? void 0 : e.delivery.date, "dd.MM.yyyy", /* @__PURE__ */ new Date()) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
2617
- address: (v = e == null ? void 0 : e.delivery) != null && v.address ? new he(e.delivery.address) : void 0,
2618
- warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new fe(e.delivery.warehouse) : void 0
2619
- }, this.attachedUser = new M(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new _(e == null ? void 0 : e.salesDirection), this.pendingAt = C(e == null ? void 0 : e.pendingAt) ? E(e == null ? void 0 : e.pendingAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.pendingAt) ?? /* @__PURE__ */ new Date(), this.processedAt = C(e == null ? void 0 : e.processedAt) ? E(e == null ? void 0 : e.processedAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.processedAt) ?? /* @__PURE__ */ new Date(), this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
2625
+ 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(),
2626
+ address: (v = e == null ? void 0 : e.delivery) != null && v.address ? new ue(e.delivery.address) : void 0,
2627
+ warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new me(e.delivery.warehouse) : void 0
2628
+ }, this.attachedUser = new q(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new I(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;
2620
2629
  }
2621
2630
  }
2622
2631
  class Yr extends F {
@@ -2699,10 +2708,10 @@ class Yr extends F {
2699
2708
  * который соответствует указанной ширине. Количество не ограничено.
2700
2709
  */
2701
2710
  t(this, "sawing");
2702
- 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;
2711
+ this.product = new K(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;
2703
2712
  }
2704
2713
  }
2705
- class Xr extends Xe {
2714
+ class Xr extends Ze {
2706
2715
  /**
2707
2716
  * Инициализирует экземпляр класса {@link Order}.
2708
2717
  *
@@ -2742,10 +2751,80 @@ class Xr extends Xe {
2742
2751
  * Признак, что разрешена передача заказа в работу без оплаты.
2743
2752
  */
2744
2753
  t(this, "isAllowProcessingWithoutPayment");
2745
- this.products = (e.products ?? []).map((s) => new Yr(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 f(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
2754
+ this.products = (e.products ?? []).map((s) => new Yr(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? pe.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new C(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
2746
2755
  }
2747
2756
  }
2748
- class we extends u {
2757
+ var Se = /* @__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))(Se || {});
2758
+ class Ne {
2759
+ /**
2760
+ * Инициализирует экземпляр класса {@link FilterItem}.
2761
+ *
2762
+ * @param data Данные для первоначальной инициализации.
2763
+ */
2764
+ constructor(r) {
2765
+ /**
2766
+ * Поле, по которому производится поиск.
2767
+ */
2768
+ t(this, "field");
2769
+ /**
2770
+ * Операция сравнения.
2771
+ */
2772
+ t(this, "op");
2773
+ /**
2774
+ * Значение с которым сравнивается поле.
2775
+ */
2776
+ t(this, "value");
2777
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Se.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2778
+ }
2779
+ /**
2780
+ * Преобразует фильтр в примитивное представление для API.
2781
+ *
2782
+ * @returns Примитивное представление фильтра.
2783
+ */
2784
+ toPrimitive() {
2785
+ const r = {
2786
+ field: this.field,
2787
+ op: this.op
2788
+ };
2789
+ return r.value = or(this.value) ? z(this.value, a.getConfig().dateFormats.api) : this.value, r;
2790
+ }
2791
+ }
2792
+ class ee {
2793
+ /**
2794
+ * Инициализирует экземпляр класса {@link FilterGroup}.
2795
+ *
2796
+ * @param data Данные для первоначальной инициализации.
2797
+ */
2798
+ constructor(r) {
2799
+ /**
2800
+ * Условие объединения фильтров.
2801
+ */
2802
+ t(this, "groupOp");
2803
+ /**
2804
+ * Список фильтров.
2805
+ */
2806
+ t(this, "filters");
2807
+ /**
2808
+ * Список вложенных групп фильтров.
2809
+ */
2810
+ t(this, "groups");
2811
+ var e, s;
2812
+ 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 Ne(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ee(i))) ?? [];
2813
+ }
2814
+ /**
2815
+ * Преобразует группу фильтров в примитивное представление для API.
2816
+ *
2817
+ * @returns Примитивное представление группы фильтров.
2818
+ */
2819
+ toPrimitive() {
2820
+ return {
2821
+ groupOp: this.groupOp,
2822
+ filters: this.filters.map((r) => r instanceof Ne && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2823
+ groups: this.groups.map((r) => r instanceof ee ? r.toPrimitive() : r)
2824
+ };
2825
+ }
2826
+ }
2827
+ class ye extends u {
2749
2828
  /**
2750
2829
  * Получает пагинированный список данных.
2751
2830
  *
@@ -2761,12 +2840,12 @@ class we extends u {
2761
2840
  page: (i == null ? void 0 : i.page) ?? 1,
2762
2841
  per_page: (i == null ? void 0 : i.pageSize) ?? (i == null ? void 0 : i.perPage) ?? 10
2763
2842
  };
2764
- return e && (p.filters = JSON.stringify(e)), cr(s) || (lr(s) ? s : [s]).forEach((g, v) => {
2843
+ return e && (p.filters = JSON.stringify((e instanceof ee ? e : new ee(e)).toPrimitive())), cr(s) || (lr(s) ? s : [s]).forEach((g, v) => {
2765
2844
  p[`sort[${v}][field]`] = g.field, p[`sort[${v}][direction]`] = g.direction;
2766
2845
  }), this.get(r, p, o, l);
2767
2846
  }
2768
2847
  }
2769
- class wt extends we {
2848
+ class Ct extends ye {
2770
2849
  /**
2771
2850
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
2772
2851
  *
@@ -2778,7 +2857,7 @@ class wt extends we {
2778
2857
  getOrders(r, e, s) {
2779
2858
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, (i) => {
2780
2859
  const o = { ...i.data };
2781
- return o.data = o.data.map((l) => new Xe(l)), o;
2860
+ return o.data = o.data.map((l) => new Ze(l)), o;
2782
2861
  });
2783
2862
  }
2784
2863
  /**
@@ -2799,7 +2878,7 @@ class wt extends we {
2799
2878
  return this.get(`/internal/orders/${r}`, {}, (e) => new Xr(e.data));
2800
2879
  }
2801
2880
  }
2802
- class Zr extends a {
2881
+ class Zr extends A {
2803
2882
  /**
2804
2883
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
2805
2884
  *
@@ -2824,10 +2903,9 @@ class Zr extends a {
2824
2903
  * Данные о последнем заказе клиента.
2825
2904
  */
2826
2905
  t(this, "lastOrder");
2827
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new H(o))), e.lastOrder && (this.lastOrder = new Ye(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType));
2906
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new Xe(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new E(e.preferredDeliveryType));
2828
2907
  }
2829
2908
  }
2830
- var Ze = /* @__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))(Ze || {});
2831
2909
  class et {
2832
2910
  /**
2833
2911
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
@@ -2852,7 +2930,7 @@ class et {
2852
2930
  this.page = (r == null ? void 0 : r.page) ?? 1, this.perPage = (r == null ? void 0 : r.perPage) ?? 50, this.pageSize = (r == null ? void 0 : r.pageSize) ?? this.perPage;
2853
2931
  }
2854
2932
  }
2855
- class Ct extends et {
2933
+ class wt extends et {
2856
2934
  /**
2857
2935
  * Инициализирует экземпляр класса {@link DataTablePagination}.
2858
2936
  *
@@ -2901,7 +2979,7 @@ class vt {
2901
2979
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
2902
2980
  }
2903
2981
  }
2904
- class Pt extends we {
2982
+ class Pt extends ye {
2905
2983
  /**
2906
2984
  * Возвращает данные об указанном клиенте.
2907
2985
  *
@@ -2909,7 +2987,7 @@ class Pt extends we {
2909
2987
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
2910
2988
  */
2911
2989
  getClient(r) {
2912
- return this.get(`/internal/clients/${r}`, {}, (e) => new Ne(e.data));
2990
+ return this.get(`/internal/clients/${r}`, {}, (e) => new ke(e.data));
2913
2991
  }
2914
2992
  /**
2915
2993
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -2922,7 +3000,7 @@ class Pt extends we {
2922
3000
  getClientsList(r, e, s) {
2923
3001
  return this.getPaginated("/internal/clients", r, e, s, (i) => {
2924
3002
  const o = { ...i.data };
2925
- return o.data = o.data.map((l) => new se(l)), o;
3003
+ return o.data = o.data.map((l) => new te(l)), o;
2926
3004
  });
2927
3005
  }
2928
3006
  /**
@@ -2935,7 +3013,7 @@ class Pt extends we {
2935
3013
  return this.getClientsList({
2936
3014
  groupOp: "and",
2937
3015
  groups: [],
2938
- filters: [{ field: "phone", op: Ze.Contains, value: r }]
3016
+ filters: [{ field: "phone", op: Se.Contains, value: r }]
2939
3017
  });
2940
3018
  }
2941
3019
  /**
@@ -2990,7 +3068,7 @@ class Pt extends we {
2990
3068
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
2991
3069
  preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
2992
3070
  },
2993
- (i) => new Ne(i.data),
3071
+ (i) => new ke(i.data),
2994
3072
  e
2995
3073
  );
2996
3074
  }
@@ -3100,11 +3178,11 @@ class Pt extends we {
3100
3178
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
3101
3179
  */
3102
3180
  createContragentClientData(r, e, s = {}) {
3103
- var g, v, $, S, L, d, x, I;
3181
+ var g, v, $, T, b, _, k, N;
3104
3182
  let i;
3105
3183
  const o = e, l = e, p = e;
3106
3184
  switch (e.opf.slug) {
3107
- case A.Ic:
3185
+ case S.Ic:
3108
3186
  i = {
3109
3187
  opf: o.opf.slug,
3110
3188
  name: o.name,
@@ -3122,13 +3200,13 @@ class Pt extends we {
3122
3200
  actual_address: o.actualAddress
3123
3201
  };
3124
3202
  break;
3125
- case A.UlR:
3203
+ case S.UlR:
3126
3204
  i = {
3127
3205
  opf: l.opf.slug,
3128
3206
  name: l.name,
3129
3207
  alternative_name: l.alternativeName,
3130
3208
  partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
3131
- manager_id: (S = l.manager) == null ? void 0 : S.id,
3209
+ manager_id: (T = l.manager) == null ? void 0 : T.id,
3132
3210
  comment: l.comment,
3133
3211
  inn: l.inn,
3134
3212
  kpp: l.kpp,
@@ -3141,13 +3219,13 @@ class Pt extends we {
3141
3219
  actual_address: l.actualAddress
3142
3220
  };
3143
3221
  break;
3144
- case A.UlNr:
3222
+ case S.UlNr:
3145
3223
  i = {
3146
3224
  opf: p.opf.slug,
3147
3225
  name: p.name,
3148
3226
  alternative_name: p.alternativeName,
3149
- partner_group_id: (L = p.partnerGroup) == null ? void 0 : L.id,
3150
- manager_id: (d = p.manager) == null ? void 0 : d.id,
3227
+ partner_group_id: (b = p.partnerGroup) == null ? void 0 : b.id,
3228
+ manager_id: (_ = p.manager) == null ? void 0 : _.id,
3151
3229
  comment: p.comment,
3152
3230
  inn: p.inn,
3153
3231
  kpp: p.kpp,
@@ -3168,8 +3246,8 @@ class Pt extends we {
3168
3246
  opf: e.opf.slug,
3169
3247
  name: e.name,
3170
3248
  alternative_name: e.alternativeName,
3171
- partner_group_id: (x = e.partnerGroup) == null ? void 0 : x.id,
3172
- manager_id: (I = e.manager) == null ? void 0 : I.id,
3249
+ partner_group_id: (k = e.partnerGroup) == null ? void 0 : k.id,
3250
+ manager_id: (N = e.manager) == null ? void 0 : N.id,
3173
3251
  comment: e.comment
3174
3252
  };
3175
3253
  break;
@@ -3177,7 +3255,7 @@ class Pt extends we {
3177
3255
  return this.post(
3178
3256
  `/internal/clients/${r}/contragents`,
3179
3257
  i,
3180
- (O) => ue.createInstance(O.data),
3258
+ (O) => pe.createInstance(O.data),
3181
3259
  s
3182
3260
  );
3183
3261
  }
@@ -3192,11 +3270,11 @@ class Pt extends we {
3192
3270
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
3193
3271
  */
3194
3272
  updateContragentClientData(r, e, s = {}) {
3195
- var g, v, $, S, L, d, x, I;
3273
+ var g, v, $, T, b, _, k, N;
3196
3274
  let i;
3197
3275
  const o = e, l = e, p = e;
3198
3276
  switch (e.opf.slug) {
3199
- case A.Ic:
3277
+ case S.Ic:
3200
3278
  i = {
3201
3279
  opf: o.opf.slug,
3202
3280
  name: o.name,
@@ -3214,13 +3292,13 @@ class Pt extends we {
3214
3292
  actual_address: o.actualAddress
3215
3293
  };
3216
3294
  break;
3217
- case A.UlR:
3295
+ case S.UlR:
3218
3296
  i = {
3219
3297
  opf: l.opf.slug,
3220
3298
  name: l.name,
3221
3299
  alternative_name: l.alternativeName,
3222
3300
  partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
3223
- manager_id: (S = l.manager) == null ? void 0 : S.id,
3301
+ manager_id: (T = l.manager) == null ? void 0 : T.id,
3224
3302
  comment: l.comment,
3225
3303
  inn: l.inn,
3226
3304
  kpp: l.kpp,
@@ -3233,13 +3311,13 @@ class Pt extends we {
3233
3311
  actual_address: l.actualAddress
3234
3312
  };
3235
3313
  break;
3236
- case A.UlNr:
3314
+ case S.UlNr:
3237
3315
  i = {
3238
3316
  opf: p.opf.slug,
3239
3317
  name: p.name,
3240
3318
  alternative_name: p.alternativeName,
3241
- partner_group_id: (L = p.partnerGroup) == null ? void 0 : L.id,
3242
- manager_id: (d = p.manager) == null ? void 0 : d.id,
3319
+ partner_group_id: (b = p.partnerGroup) == null ? void 0 : b.id,
3320
+ manager_id: (_ = p.manager) == null ? void 0 : _.id,
3243
3321
  comment: p.comment,
3244
3322
  inn: p.inn,
3245
3323
  kpp: p.kpp,
@@ -3260,8 +3338,8 @@ class Pt extends we {
3260
3338
  opf: e.opf.slug,
3261
3339
  name: e.name,
3262
3340
  alternative_name: e.alternativeName,
3263
- partner_group_id: (x = e.partnerGroup) == null ? void 0 : x.id,
3264
- manager_id: (I = e.manager) == null ? void 0 : I.id,
3341
+ partner_group_id: (k = e.partnerGroup) == null ? void 0 : k.id,
3342
+ manager_id: (N = e.manager) == null ? void 0 : N.id,
3265
3343
  comment: e.comment
3266
3344
  };
3267
3345
  break;
@@ -3269,7 +3347,7 @@ class Pt extends we {
3269
3347
  return this.patch(
3270
3348
  `/internal/clients/${r}/contragents/${e.id}`,
3271
3349
  i,
3272
- (O) => ue.createInstance(O.data),
3350
+ (O) => pe.createInstance(O.data),
3273
3351
  s
3274
3352
  );
3275
3353
  }
@@ -3307,7 +3385,7 @@ class Pt extends we {
3307
3385
  }), e.operatingHours && (i.operating_hours = {
3308
3386
  from: e.operatingHours.from,
3309
3387
  to: e.operatingHours.to
3310
- }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new he(p.data), s);
3388
+ }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new ue(p.data), s);
3311
3389
  }
3312
3390
  /**
3313
3391
  * Обновляет данные об адресе доставки клиента.
@@ -3336,7 +3414,7 @@ class Pt extends we {
3336
3414
  }), this.patch(
3337
3415
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
3338
3416
  i,
3339
- (p) => new he(p.data),
3417
+ (p) => new ue(p.data),
3340
3418
  s
3341
3419
  );
3342
3420
  }
@@ -3372,7 +3450,7 @@ class Pt extends we {
3372
3450
  correspondent_account: s.correspondentAccount,
3373
3451
  currency_id: s.currency.id
3374
3452
  },
3375
- (o) => new be(o.data),
3453
+ (o) => new Ae(o.data),
3376
3454
  i
3377
3455
  );
3378
3456
  }
@@ -3398,7 +3476,7 @@ class Pt extends we {
3398
3476
  correspondent_account: s.correspondentAccount,
3399
3477
  currency_id: s.currency.id
3400
3478
  },
3401
- (o) => new be(o.data),
3479
+ (o) => new Ae(o.data),
3402
3480
  i
3403
3481
  );
3404
3482
  }
@@ -3459,7 +3537,7 @@ class Pt extends we {
3459
3537
  comment: e.comment,
3460
3538
  not_disturb: e.notDisturb
3461
3539
  },
3462
- (i) => new H(i.data),
3540
+ (i) => new M(i.data),
3463
3541
  s
3464
3542
  );
3465
3543
  }
@@ -3602,7 +3680,7 @@ class Pt extends we {
3602
3680
  comment: e.comment,
3603
3681
  ...s
3604
3682
  };
3605
- 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 H(g.data), i);
3683
+ 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 M(g.data), i);
3606
3684
  }
3607
3685
  /**
3608
3686
  * Устанавливает признак основного контактного лица.
@@ -3645,7 +3723,7 @@ class Rt extends u {
3645
3723
  });
3646
3724
  }
3647
3725
  }
3648
- class ae {
3726
+ class Pe {
3649
3727
  /**
3650
3728
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
3651
3729
  *
@@ -3672,10 +3750,10 @@ class ae {
3672
3750
  * Источник клиентской цены.
3673
3751
  */
3674
3752
  t(this, "source");
3675
- this.client = new se(r == null ? void 0 : r.client), this.product = new T(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) ?? de.Product;
3753
+ this.client = new te(r == null ? void 0 : r.client), this.product = new L(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) ?? _e.Product;
3676
3754
  }
3677
3755
  }
3678
- class at extends u {
3756
+ class Dt extends u {
3679
3757
  /**
3680
3758
  * Возвращает данные о результатах поиска категорий и товаров.
3681
3759
  *
@@ -3702,7 +3780,7 @@ class at extends u {
3702
3780
  */
3703
3781
  // eslint-disable-next-line class-methods-use-this
3704
3782
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
3705
- let l = `${N.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3783
+ let l = `${a.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3706
3784
  return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
3707
3785
  }
3708
3786
  }
@@ -3830,7 +3908,7 @@ class $t extends u {
3830
3908
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
3831
3909
  increase_percent: s.value
3832
3910
  },
3833
- (o) => new J(o.data)
3911
+ (o) => new K(o.data)
3834
3912
  );
3835
3913
  }
3836
3914
  /**
@@ -3842,7 +3920,7 @@ class $t extends u {
3842
3920
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
3843
3921
  */
3844
3922
  removeProductPrice(r, e) {
3845
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new J(s.data));
3923
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new K(s.data));
3846
3924
  }
3847
3925
  /**
3848
3926
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -3905,7 +3983,7 @@ class $t extends u {
3905
3983
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3906
3984
  }
3907
3985
  }
3908
- class Dt extends u {
3986
+ class At extends u {
3909
3987
  /**
3910
3988
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3911
3989
  *
@@ -3917,7 +3995,7 @@ class Dt extends u {
3917
3995
  return this.get(
3918
3996
  `/internal/clients/${r}/price/templates`,
3919
3997
  {},
3920
- (e) => e.data.map((s) => new X(s))
3998
+ (e) => e.data.map((s) => new Q(s))
3921
3999
  );
3922
4000
  }
3923
4001
  /**
@@ -3928,7 +4006,7 @@ class Dt extends u {
3928
4006
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
3929
4007
  */
3930
4008
  getActiveTemplate(r) {
3931
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new X(e.data));
4009
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new Q(e.data));
3932
4010
  }
3933
4011
  /**
3934
4012
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -3940,13 +4018,14 @@ class Dt extends u {
3940
4018
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
3941
4019
  */
3942
4020
  attachTemplate(r, e, s) {
4021
+ const i = a.getConfig().dateFormats.api;
3943
4022
  return this.post(
3944
4023
  `/internal/clients/${r}/price/templates/${e}`,
3945
4024
  s && {
3946
- startAt: s.startAt ? Y(s.startAt, "yyyy-MM-dd HH:mm:ss") : void 0,
3947
- endAt: s.endAt ? Y(s.endAt, "yyyy-MM-dd HH:mm:ss") : void 0
4025
+ startAt: s.startAt && z(s.startAt, i),
4026
+ endAt: s.endAt && z(s.endAt, i)
3948
4027
  },
3949
- (i) => new X(i.data)
4028
+ (o) => new Q(o.data)
3950
4029
  );
3951
4030
  }
3952
4031
  /**
@@ -3971,13 +4050,14 @@ class Dt extends u {
3971
4050
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
3972
4051
  */
3973
4052
  changeTemplate(r, e, s, i) {
4053
+ const o = a.getConfig().dateFormats.api;
3974
4054
  return this.patch(
3975
4055
  `/internal/clients/${r}/price/templates/${e}/${s}`,
3976
4056
  i && {
3977
- startAt: i.startAt ? Y(i.startAt, "yyyy-MM-dd HH:mm:ss") : void 0,
3978
- endAt: i.endAt ? Y(i.endAt, "yyyy-MM-dd HH:mm:ss") : void 0
4057
+ startAt: i.startAt && z(i.startAt, o),
4058
+ endAt: i.endAt && z(i.endAt, o)
3979
4059
  },
3980
- (o) => new X(o.data)
4060
+ (l) => new Q(l.data)
3981
4061
  );
3982
4062
  }
3983
4063
  /**
@@ -3993,7 +4073,7 @@ class Dt extends u {
3993
4073
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
3994
4074
  }
3995
4075
  }
3996
- class At extends u {
4076
+ class Tt extends u {
3997
4077
  /**
3998
4078
  * Возвращает список данных о корневых категориях.
3999
4079
  *
@@ -4007,7 +4087,7 @@ class At extends u {
4007
4087
  {
4008
4088
  showHidden: r
4009
4089
  },
4010
- (e) => e.data.map((s) => new q(s))
4090
+ (e) => e.data.map((s) => new d(s))
4011
4091
  );
4012
4092
  }
4013
4093
  /**
@@ -4026,7 +4106,7 @@ class At extends u {
4026
4106
  showHidden: e,
4027
4107
  withNestedCategories: s
4028
4108
  },
4029
- (i) => new q(i.data)
4109
+ (i) => new d(i.data)
4030
4110
  );
4031
4111
  }
4032
4112
  /**
@@ -4035,7 +4115,7 @@ class At extends u {
4035
4115
  * @param categoryID Идентификатор категории продуктов.
4036
4116
  */
4037
4117
  getPublicCategoryData(r) {
4038
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new q(e.data));
4118
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new d(e.data));
4039
4119
  }
4040
4120
  /**
4041
4121
  * Возвращает список продуктов категории.
@@ -4053,7 +4133,7 @@ class At extends u {
4053
4133
  showHidden: s,
4054
4134
  withPriceCoefficients: e
4055
4135
  },
4056
- (i) => ne(i.data, (o) => new T(o))
4136
+ (i) => ie(i.data, (o) => new L(o))
4057
4137
  );
4058
4138
  }
4059
4139
  /**
@@ -4066,7 +4146,7 @@ class At extends u {
4066
4146
  getCategoryProductsCoefficients(r) {
4067
4147
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
4068
4148
  const { data: s } = e;
4069
- return pr(s, (i) => i.map((o) => new Se(o))), s;
4149
+ return pr(s, (i) => i.map((o) => new be(o))), s;
4070
4150
  });
4071
4151
  }
4072
4152
  /**
@@ -4078,14 +4158,14 @@ class At extends u {
4078
4158
  publicSimpleSearch(r, e = 10) {
4079
4159
  return new Promise((s, i) => {
4080
4160
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
4081
- s(o.categories.map((l) => new q(l)));
4161
+ s(o.categories.map((l) => new d(l)));
4082
4162
  }).catch((o) => {
4083
4163
  i(o);
4084
4164
  });
4085
4165
  });
4086
4166
  }
4087
4167
  }
4088
- class Tt extends u {
4168
+ class bt extends u {
4089
4169
  /**
4090
4170
  * Возвращает данные об указанном продукте.
4091
4171
  *
@@ -4095,7 +4175,7 @@ class Tt extends u {
4095
4175
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
4096
4176
  */
4097
4177
  getProductData(r, e = !1) {
4098
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new T(s.data));
4178
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new L(s.data));
4099
4179
  }
4100
4180
  /**
4101
4181
  * Возвращает публичные данные об указанном продукте.
@@ -4103,7 +4183,7 @@ class Tt extends u {
4103
4183
  * @param productId Идентификатор продукта.
4104
4184
  */
4105
4185
  getPublicProductData(r) {
4106
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new T(e.data));
4186
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new L(e.data));
4107
4187
  }
4108
4188
  /**
4109
4189
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -4116,7 +4196,7 @@ class Tt extends u {
4116
4196
  return this.get(
4117
4197
  `/internal/catalog/products/${r}/coefficients`,
4118
4198
  {},
4119
- (e) => ne(e.data, (s) => new Se(s))
4199
+ (e) => ie(e.data, (s) => new be(s))
4120
4200
  );
4121
4201
  }
4122
4202
  /**
@@ -4129,7 +4209,7 @@ class Tt extends u {
4129
4209
  */
4130
4210
  getProductPriceHistory(r, e) {
4131
4211
  const s = {};
4132
- return Me(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ne(i.data, (o) => new Vr(o)));
4212
+ return qe(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ie(i.data, (o) => new Vr(o)));
4133
4213
  }
4134
4214
  /**
4135
4215
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -4140,14 +4220,14 @@ class Tt extends u {
4140
4220
  publicSimpleSearch(r, e = 10) {
4141
4221
  return new Promise((s, i) => {
4142
4222
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
4143
- s(o.products.map((l) => new T(l)));
4223
+ s(o.products.map((l) => new L(l)));
4144
4224
  }).catch((o) => {
4145
4225
  i(o);
4146
4226
  });
4147
4227
  });
4148
4228
  }
4149
4229
  }
4150
- class bt extends u {
4230
+ class at extends u {
4151
4231
  /**
4152
4232
  * Возвращает список данных о корневых категориях указанного клиента.
4153
4233
  *
@@ -4163,7 +4243,7 @@ class bt extends u {
4163
4243
  clientId: r,
4164
4244
  showHidden: e
4165
4245
  },
4166
- (s) => s.data.map((i) => new ce(i))
4246
+ (s) => s.data.map((i) => new oe(i))
4167
4247
  );
4168
4248
  }
4169
4249
  /**
@@ -4184,7 +4264,7 @@ class bt extends u {
4184
4264
  showHidden: s,
4185
4265
  withNestedCategories: i
4186
4266
  },
4187
- (o) => new ce(o.data)
4267
+ (o) => new oe(o.data)
4188
4268
  );
4189
4269
  }
4190
4270
  /**
@@ -4205,7 +4285,7 @@ class bt extends u {
4205
4285
  showHidden: i,
4206
4286
  withPriceCoefficients: s
4207
4287
  },
4208
- (o) => ne(o.data, (l) => new J(l))
4288
+ (o) => ie(o.data, (l) => new K(l))
4209
4289
  );
4210
4290
  }
4211
4291
  }
@@ -4226,11 +4306,11 @@ class _t extends u {
4226
4306
  clientId: e,
4227
4307
  withPriceCoefficients: s
4228
4308
  },
4229
- (i) => new J(i.data)
4309
+ (i) => new K(i.data)
4230
4310
  );
4231
4311
  }
4232
4312
  }
4233
- class St extends we {
4313
+ class St extends ye {
4234
4314
  /**
4235
4315
  * Возвращает список шаблонов прайс-листа.
4236
4316
  *
@@ -4298,7 +4378,7 @@ class St extends we {
4298
4378
  return this.get(
4299
4379
  `/internal/price/templates/${r}/products`,
4300
4380
  {},
4301
- (e) => e.data.map((s) => new Pe(s))
4381
+ (e) => e.data.map((s) => new we(s))
4302
4382
  );
4303
4383
  }
4304
4384
  /**
@@ -4310,7 +4390,7 @@ class St extends we {
4310
4390
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
4311
4391
  */
4312
4392
  getProductTemplatePrice(r, e) {
4313
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Pe(s.data));
4393
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new we(s.data));
4314
4394
  }
4315
4395
  /**
4316
4396
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -4329,7 +4409,7 @@ class St extends we {
4329
4409
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
4330
4410
  increase_percent: s.value
4331
4411
  },
4332
- (o) => new Pe(o.data)
4412
+ (o) => new we(o.data)
4333
4413
  );
4334
4414
  }
4335
4415
  /**
@@ -4354,7 +4434,7 @@ class St extends we {
4354
4434
  return this.get(
4355
4435
  `/internal/price/templates/${r}/categories`,
4356
4436
  {},
4357
- (e) => e.data.map((s) => new ve(s))
4437
+ (e) => e.data.map((s) => new Ce(s))
4358
4438
  );
4359
4439
  }
4360
4440
  /**
@@ -4369,7 +4449,7 @@ class St extends we {
4369
4449
  return this.get(
4370
4450
  `/internal/price/templates/${r}/categories/${e}`,
4371
4451
  {},
4372
- (s) => new ve(s.data)
4452
+ (s) => new Ce(s.data)
4373
4453
  );
4374
4454
  }
4375
4455
  /**
@@ -4389,7 +4469,7 @@ class St extends we {
4389
4469
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
4390
4470
  increase_percent: s.value
4391
4471
  },
4392
- (o) => new ve(o.data)
4472
+ (o) => new Ce(o.data)
4393
4473
  );
4394
4474
  }
4395
4475
  /**
@@ -4414,7 +4494,7 @@ class St extends we {
4414
4494
  return this.get(
4415
4495
  `/internal/price/templates/${r}/clients`,
4416
4496
  {},
4417
- (e) => e.data.map((s) => new X(s))
4497
+ (e) => e.data.map((s) => new Q(s))
4418
4498
  );
4419
4499
  }
4420
4500
  }
@@ -4425,7 +4505,7 @@ class Lt extends u {
4425
4505
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
4426
4506
  */
4427
4507
  getRoles() {
4428
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ee(e)));
4508
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new X(e)));
4429
4509
  }
4430
4510
  /**
4431
4511
  * Добавляет новую роль ценообразования.
@@ -4435,7 +4515,7 @@ class Lt extends u {
4435
4515
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
4436
4516
  */
4437
4517
  createRole(r) {
4438
- return this.post("/internal/price/roles", r, (e) => new ee(e.data));
4518
+ return this.post("/internal/price/roles", r, (e) => new X(e.data));
4439
4519
  }
4440
4520
  /**
4441
4521
  * Возвращает данные роли ценообразования.
@@ -4445,7 +4525,7 @@ class Lt extends u {
4445
4525
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
4446
4526
  */
4447
4527
  getRole(r) {
4448
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new ee(e.data));
4528
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new X(e.data));
4449
4529
  }
4450
4530
  /**
4451
4531
  * Обновляет данные роли ценообразования.
@@ -4456,7 +4536,7 @@ class Lt extends u {
4456
4536
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
4457
4537
  */
4458
4538
  updateRole(r, e) {
4459
- return this.patch(`/internal/price/roles/${r}`, e, (s) => new ee(s.data));
4539
+ return this.patch(`/internal/price/roles/${r}`, e, (s) => new X(s.data));
4460
4540
  }
4461
4541
  /**
4462
4542
  * Удаляет роль ценообразования.
@@ -4479,7 +4559,7 @@ class Lt extends u {
4479
4559
  return this.get(
4480
4560
  `/internal/price/roles/rules/categories/${r}`,
4481
4561
  {},
4482
- (e) => e.data.map((s) => new ke(s))
4562
+ (e) => e.data.map((s) => new Ie(s))
4483
4563
  );
4484
4564
  }
4485
4565
  /**
@@ -4494,11 +4574,11 @@ class Lt extends u {
4494
4574
  return this.patch(
4495
4575
  `/internal/price/roles/rules/categories/${r}`,
4496
4576
  e,
4497
- (s) => s.data.map((i) => new ke(i))
4577
+ (s) => s.data.map((i) => new Ie(i))
4498
4578
  );
4499
4579
  }
4500
4580
  }
4501
- class dt extends we {
4581
+ class xt extends ye {
4502
4582
  /**
4503
4583
  * Возвращает пагинированный список свойств.
4504
4584
  *
@@ -4510,7 +4590,7 @@ class dt extends we {
4510
4590
  getProperties(r, e, s) {
4511
4591
  return this.getPaginated("/internal/catalog/properties", r, e, s, (i) => {
4512
4592
  const o = { ...i.data };
4513
- return o.data = o.data.map((l) => new Z(l)), o;
4593
+ return o.data = o.data.map((l) => new Y(l)), o;
4514
4594
  });
4515
4595
  }
4516
4596
  /**
@@ -4527,7 +4607,7 @@ class dt extends we {
4527
4607
  ...s,
4528
4608
  type: e
4529
4609
  },
4530
- (i) => new Z(i.data)
4610
+ (i) => new Y(i.data)
4531
4611
  );
4532
4612
  }
4533
4613
  /**
@@ -4537,7 +4617,7 @@ class dt extends we {
4537
4617
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
4538
4618
  */
4539
4619
  getProperty(r) {
4540
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new Z(e.data));
4620
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new Y(e.data));
4541
4621
  }
4542
4622
  /**
4543
4623
  * Обновляет существующее свойство.
@@ -4554,7 +4634,7 @@ class dt extends we {
4554
4634
  ...i,
4555
4635
  type: s
4556
4636
  },
4557
- (o) => new Z(o.data)
4637
+ (o) => new Y(o.data)
4558
4638
  );
4559
4639
  }
4560
4640
  /**
@@ -4573,7 +4653,7 @@ class dt extends we {
4573
4653
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
4574
4654
  */
4575
4655
  getProductProperties(r) {
4576
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new z(s)));
4656
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
4577
4657
  }
4578
4658
  /**
4579
4659
  * Возвращает значение свойства продукта.
@@ -4583,7 +4663,7 @@ class dt extends we {
4583
4663
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
4584
4664
  */
4585
4665
  getProductProperty(r, e) {
4586
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new z(s.data));
4666
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
4587
4667
  }
4588
4668
  /**
4589
4669
  * Обновляет значение свойства продукта.
@@ -4594,7 +4674,7 @@ class dt extends we {
4594
4674
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
4595
4675
  */
4596
4676
  updateProductProperty(r, e, s) {
4597
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new z(i.data));
4677
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
4598
4678
  }
4599
4679
  /**
4600
4680
  * Удаляет значение свойства продукта.
@@ -4719,7 +4799,7 @@ class dt extends we {
4719
4799
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
4720
4800
  */
4721
4801
  getCategoryProperties(r) {
4722
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new z(s)));
4802
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
4723
4803
  }
4724
4804
  /**
4725
4805
  * Возвращает значение свойства категории.
@@ -4729,7 +4809,7 @@ class dt extends we {
4729
4809
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
4730
4810
  */
4731
4811
  getCategoryProperty(r, e) {
4732
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new z(s.data));
4812
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
4733
4813
  }
4734
4814
  /**
4735
4815
  * Обновляет значение свойства категории.
@@ -4740,7 +4820,7 @@ class dt extends we {
4740
4820
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
4741
4821
  */
4742
4822
  updateCategoryProperty(r, e, s) {
4743
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new z(i.data));
4823
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
4744
4824
  }
4745
4825
  /**
4746
4826
  * Удаляет значение свойства категории.
@@ -4869,14 +4949,14 @@ class dt extends we {
4869
4949
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
4870
4950
  }
4871
4951
  }
4872
- class xt extends u {
4952
+ class It extends u {
4873
4953
  /**
4874
4954
  * Возвращает данные о рекомендациях указанной категории продуктов.
4875
4955
  *
4876
4956
  * @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
4877
4957
  */
4878
4958
  getProductCategoryRecommendations(r) {
4879
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Ie(e.data));
4959
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new xe(e.data));
4880
4960
  }
4881
4961
  /**
4882
4962
  * Возвращает данные о рекомендациях указанного продукта.
@@ -4884,7 +4964,7 @@ class xt extends u {
4884
4964
  * @param product Данные о продукте, для которого необходимо получить рекомендации.
4885
4965
  */
4886
4966
  getProductRecommendations(r) {
4887
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Ie(e.data));
4967
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new xe(e.data));
4888
4968
  }
4889
4969
  /**
4890
4970
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -4911,7 +4991,7 @@ class xt extends u {
4911
4991
  });
4912
4992
  }
4913
4993
  }
4914
- class It extends u {
4994
+ class kt extends u {
4915
4995
  /**
4916
4996
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
4917
4997
  *
@@ -4921,7 +5001,7 @@ class It extends u {
4921
5001
  * @see /doc/api/internal#/operations/api_internal_catalog_price_products_analyze
4922
5002
  */
4923
5003
  analyzeProductPrices(r, e) {
4924
- return this.get(`/internal/price/products/${r}/analyze`, { ...e }, (s) => s.data.map((i) => new ae(i)));
5004
+ return this.get(`/internal/price/products/${r}/analyze`, { ...e }, (s) => s.data.map((i) => new Pe(i)));
4925
5005
  }
4926
5006
  /**
4927
5007
  * Возвращает список клиентских цен на продукты категории в указанном диапазоне цены.
@@ -4935,7 +5015,7 @@ class It extends u {
4935
5015
  return this.get(
4936
5016
  `/internal/price/categories/${r}/analyze`,
4937
5017
  { ...e },
4938
- (s) => s.data.map((i) => new ae(i))
5018
+ (s) => s.data.map((i) => new Pe(i))
4939
5019
  );
4940
5020
  }
4941
5021
  /**
@@ -4952,11 +5032,11 @@ class It extends u {
4952
5032
  return this.get(
4953
5033
  `/internal/price/categories/${r}/analyze/square`,
4954
5034
  { ...e },
4955
- (s) => s.data.map((i) => new ae(i))
5035
+ (s) => s.data.map((i) => new Pe(i))
4956
5036
  );
4957
5037
  }
4958
5038
  }
4959
- class kt extends u {
5039
+ class Nt extends u {
4960
5040
  /**
4961
5041
  * Возвращает настройки указанного конфигуратора для указанной категории.
4962
5042
  *
@@ -4984,7 +5064,7 @@ class kt extends u {
4984
5064
  const i = this.get(
4985
5065
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
4986
5066
  { params: e },
4987
- (l) => new T(l.data)
5067
+ (l) => new L(l.data)
4988
5068
  );
4989
5069
  return i.catch((l) => {
4990
5070
  this.defaultInstanceNotificationErrorResponseHandler(l, s);
@@ -5027,23 +5107,18 @@ class kt extends u {
5027
5107
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
5028
5108
  }
5029
5109
  }
5030
- class Nt {
5110
+ class Ot {
5031
5111
  /**
5032
- * Возвращает Unix Timestamp диапазон дат (в секундах) по умолчанию.
5033
- *
5034
- * Особое внимание необходимо обратить на значения дат.
5035
- * Они возвращаются в формате Unix Timestamp в секундах.
5036
- * JavaScript Unix Timestamp измеряется в миллисекундах.
5037
- * Для пересчета в JavaScript Unix Timestamp значение необходимо умножить на 1000.
5112
+ * Возвращает диапазон дат по умолчанию.
5038
5113
  */
5039
5114
  static defaultDateRanges() {
5040
- const r = [0, 6].includes(gr(Ce())) ? mr($e()) : Ce();
5115
+ const r = gr(/* @__PURE__ */ new Date(), 1);
5041
5116
  return {
5042
5117
  // 'Следующий рабочий день' - это значение по-умолчанию
5043
- nextWorkingDay: { label: "Следующий рабочий день", from: k(Pr(r)), to: k(vr(r)) },
5044
- today: { label: "Сегодня", from: k($e()), to: k(Cr()) },
5045
- yesterday: { label: "Вчера", from: k(wr()), to: k(yr()) },
5046
- tomorrow: { label: "Завтра", from: k(Ce()), to: k(fr()) }
5118
+ nextWorkingDay: { label: "Следующий рабочий день", from: Pr(r), to: vr(r) },
5119
+ today: { label: "Сегодня", from: Ge(), to: wr() },
5120
+ yesterday: { label: "Вчера", from: Cr(), to: yr() },
5121
+ tomorrow: { label: "Завтра", from: fr(), to: mr() }
5047
5122
  };
5048
5123
  }
5049
5124
  }
@@ -5088,12 +5163,12 @@ const V = class V {
5088
5163
  */
5089
5164
  t(V, "linearValues", ["пог.м.", "м.", "м2"]);
5090
5165
  let Oe = V;
5091
- class Ot {
5166
+ class dt {
5092
5167
  /**
5093
5168
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5094
5169
  */
5095
5170
  static generateUndefinedManagerInstance() {
5096
- return new ye({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5171
+ return new fe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5097
5172
  }
5098
5173
  /**
5099
5174
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5111,7 +5186,7 @@ class rt extends u {
5111
5186
  getManagers() {
5112
5187
  const r = "/internal/managers", e = u.getCachedResponse(r);
5113
5188
  return e ? Promise.resolve(e) : this.get(r).then((s) => {
5114
- const i = s.data.map((o) => Le.instanceInitializer(ye, o));
5189
+ const i = s.data.map((o) => ae.instanceInitializer(fe, o));
5115
5190
  return i && this.cacheResponse(r, i), i;
5116
5191
  });
5117
5192
  }
@@ -5134,7 +5209,7 @@ class tt {
5134
5209
  this.name = r.name, this.content = r.content;
5135
5210
  }
5136
5211
  }
5137
- class qe {
5212
+ class de {
5138
5213
  /**
5139
5214
  * Инициализирует экземпляр класса {@link Seo}.
5140
5215
  *
@@ -5170,7 +5245,7 @@ class qe {
5170
5245
  */
5171
5246
  t(this, "meta");
5172
5247
  var e;
5173
- this.resourceType = new Ve(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 tt(s))) ?? [];
5248
+ this.resourceType = new Ee(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 tt(s))) ?? [];
5174
5249
  }
5175
5250
  }
5176
5251
  class qt extends u {
@@ -5181,7 +5256,7 @@ class qt extends u {
5181
5256
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
5182
5257
  */
5183
5258
  getResourceSeoData(r, e) {
5184
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new qe(s.data));
5259
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new de(s.data));
5185
5260
  }
5186
5261
  /**
5187
5262
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -5192,7 +5267,7 @@ class qt extends u {
5192
5267
  * в случае ошибок в запросах.
5193
5268
  */
5194
5269
  saveResourceSeoData(r, e = {}) {
5195
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new qe(s.data), e);
5270
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new de(s.data), e);
5196
5271
  }
5197
5272
  /**
5198
5273
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -5204,8 +5279,8 @@ class qt extends u {
5204
5279
  return this.delete(`/internal/seo/${r.slug}/${e}`);
5205
5280
  }
5206
5281
  }
5207
- const P = ge("__references_private", () => {
5208
- const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), l = y(void 0), p = y(void 0), g = y(void 0), v = y(void 0), $ = y(void 0), S = y(void 0), L = y(void 0), d = y(void 0), x = y(void 0), I = y(void 0), O = y(void 0), c = y(void 0);
5282
+ const R = he("__references_private", () => {
5283
+ const n = w({}), r = w(void 0), e = w(void 0), s = w(void 0), i = w(void 0), o = w(void 0), l = w(void 0), p = w(void 0), g = w(void 0), v = w(void 0), $ = w(void 0), T = w(void 0), b = w(void 0), _ = w(void 0), k = w(void 0), N = w(void 0), O = w(void 0), c = w(void 0);
5209
5284
  return {
5210
5285
  /**
5211
5286
  * Список загружаемых/загруженных на данный момент значений.
@@ -5254,23 +5329,23 @@ const P = ge("__references_private", () => {
5254
5329
  /**
5255
5330
  * Справочник типов файлов продукктов/категорий.
5256
5331
  */
5257
- productFileTypeReference: S,
5332
+ productFileTypeReference: T,
5258
5333
  /**
5259
5334
  * Справочник типов ресурсов.
5260
5335
  */
5261
- resourceTypesReference: L,
5336
+ resourceTypesReference: b,
5262
5337
  /**
5263
5338
  * Справочник направлений продаж.
5264
5339
  */
5265
- salesDirectionsReference: d,
5340
+ salesDirectionsReference: _,
5266
5341
  /**
5267
5342
  * Справочник источников первичного интереса.
5268
5343
  */
5269
- sourcePrimaryInterestReference: x,
5344
+ sourcePrimaryInterestReference: k,
5270
5345
  /**
5271
5346
  * Справочник складов.
5272
5347
  */
5273
- warehousesReference: I,
5348
+ warehousesReference: N,
5274
5349
  /**
5275
5350
  * Справочник типов свойств.
5276
5351
  */
@@ -5280,92 +5355,92 @@ const P = ge("__references_private", () => {
5280
5355
  */
5281
5356
  priceCoefficientsReference: c
5282
5357
  };
5283
- }), Mt = ge("references", () => {
5284
- const n = w(() => {
5285
- const c = P();
5286
- return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
5358
+ }), Ut = he("references", () => {
5359
+ const n = P(() => {
5360
+ const c = R();
5361
+ return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(D).getChannelPrimaryInterest().then((h) => {
5287
5362
  c.channelPrimaryInterestReference = h;
5288
- }).catch(m)), c.channelPrimaryInterestReference;
5289
- }), r = w(() => {
5290
- const c = P();
5291
- return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(R).getContactPositions().then((h) => {
5363
+ }).catch(y)), c.channelPrimaryInterestReference;
5364
+ }), r = P(() => {
5365
+ const c = R();
5366
+ return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(D).getContactPositions().then((h) => {
5292
5367
  c.contactPositionsReference = h;
5293
- }).catch(m)), c.contactPositionsReference;
5294
- }), e = w(() => {
5295
- const c = P();
5296
- return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(R).getCurrency().then((h) => {
5368
+ }).catch(y)), c.contactPositionsReference;
5369
+ }), e = P(() => {
5370
+ const c = R();
5371
+ return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(D).getCurrency().then((h) => {
5297
5372
  c.currencyReference = h;
5298
- }).catch(m)), c.currencyReference;
5299
- }), s = w(() => {
5300
- const c = P();
5301
- return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(R).getOpf().then((h) => {
5373
+ }).catch(y)), c.currencyReference;
5374
+ }), s = P(() => {
5375
+ const c = R();
5376
+ return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(D).getOpf().then((h) => {
5302
5377
  c.opfReference = h;
5303
- }).catch(m)), c.opfReference;
5304
- }), i = w(() => {
5305
- const c = P();
5306
- return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(R).getOrderPaymentStatuses().then((h) => {
5378
+ }).catch(y)), c.opfReference;
5379
+ }), i = P(() => {
5380
+ const c = R();
5381
+ return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(D).getOrderPaymentStatuses().then((h) => {
5307
5382
  c.orderPaymentStatusReference = h;
5308
- }).catch(m)), c.orderPaymentStatusReference;
5309
- }), o = w(() => {
5310
- const c = P();
5311
- return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(R).getOrderStatuses().then((h) => {
5383
+ }).catch(y)), c.orderPaymentStatusReference;
5384
+ }), o = P(() => {
5385
+ const c = R();
5386
+ return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(D).getOrderStatuses().then((h) => {
5312
5387
  c.orderStatusReference = h;
5313
- }).catch(m)), c.orderStatusReference;
5314
- }), l = w(() => {
5315
- const c = P();
5316
- return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(R).getPaymentTypes().then((h) => {
5388
+ }).catch(y)), c.orderStatusReference;
5389
+ }), l = P(() => {
5390
+ const c = R();
5391
+ return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(D).getPaymentTypes().then((h) => {
5317
5392
  c.paymentTypeReference = h;
5318
- }).catch(m)), c.paymentTypeReference;
5319
- }), p = w(() => {
5320
- const c = P();
5321
- return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(R).getPartnerGroup().then((h) => {
5393
+ }).catch(y)), c.paymentTypeReference;
5394
+ }), p = P(() => {
5395
+ const c = R();
5396
+ return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(D).getPartnerGroup().then((h) => {
5322
5397
  c.partnerGroupReference = h;
5323
- }).catch(m)), c.partnerGroupReference;
5324
- }), g = w(() => {
5325
- const c = P();
5326
- return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(R).getProductFileType().then((h) => {
5398
+ }).catch(y)), c.partnerGroupReference;
5399
+ }), g = P(() => {
5400
+ const c = R();
5401
+ return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(D).getProductFileType().then((h) => {
5327
5402
  c.productFileTypeReference = h;
5328
- }).catch(m)), c.productFileTypeReference;
5329
- }), v = w(() => {
5330
- const c = P();
5331
- return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(R).getResourceTypes().then((h) => {
5403
+ }).catch(y)), c.productFileTypeReference;
5404
+ }), v = P(() => {
5405
+ const c = R();
5406
+ return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(D).getResourceTypes().then((h) => {
5332
5407
  c.resourceTypesReference = h;
5333
- }).catch(m)), c.resourceTypesReference;
5334
- }), $ = w(() => {
5335
- const c = P();
5336
- return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((h) => {
5408
+ }).catch(y)), c.resourceTypesReference;
5409
+ }), $ = P(() => {
5410
+ const c = R();
5411
+ return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(D).getSalesDirections().then((h) => {
5337
5412
  c.salesDirectionsReference = h;
5338
- }).catch(m)), c.salesDirectionsReference;
5339
- }), S = w(() => {
5340
- const c = P();
5341
- return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((h) => {
5413
+ }).catch(y)), c.salesDirectionsReference;
5414
+ }), T = P(() => {
5415
+ const c = R();
5416
+ return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(D).getSourcePrimaryInterest().then((h) => {
5342
5417
  c.sourcePrimaryInterestReference = h;
5343
- }).catch(m)), c.sourcePrimaryInterestReference;
5344
- }), L = w(() => {
5345
- const c = P();
5346
- return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(R).getDeliveryTypes().then((h) => {
5418
+ }).catch(y)), c.sourcePrimaryInterestReference;
5419
+ }), b = P(() => {
5420
+ const c = R();
5421
+ return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(D).getDeliveryTypes().then((h) => {
5347
5422
  c.deliveryTypeReference = h;
5348
- }).catch(m)), c.deliveryTypeReference;
5349
- }), d = w(() => {
5350
- const c = P();
5423
+ }).catch(y)), c.deliveryTypeReference;
5424
+ }), _ = P(() => {
5425
+ const c = R();
5351
5426
  return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(rt).getManagers().then((h) => {
5352
5427
  c.managersList = h;
5353
- }).catch(m)), c.managersList;
5354
- }), x = w(() => {
5355
- const c = P();
5356
- return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(R).getWarehouses().then((h) => {
5428
+ }).catch(y)), c.managersList;
5429
+ }), k = P(() => {
5430
+ const c = R();
5431
+ return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(D).getWarehouses().then((h) => {
5357
5432
  c.warehousesReference = h;
5358
- }).catch(m)), c.warehousesReference;
5359
- }), I = w(() => {
5360
- const c = P();
5361
- return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((h) => {
5433
+ }).catch(y)), c.warehousesReference;
5434
+ }), N = P(() => {
5435
+ const c = R();
5436
+ return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(D).getPropertyTypes().then((h) => {
5362
5437
  c.propertyTypesReference = h;
5363
- }).catch(m)), c.propertyTypesReference;
5364
- }), O = w(() => {
5365
- const c = P();
5366
- return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((h) => {
5438
+ }).catch(y)), c.propertyTypesReference;
5439
+ }), O = P(() => {
5440
+ const c = R();
5441
+ return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(D).getPriceCoefficients().then((h) => {
5367
5442
  c.priceCoefficientsReference = h;
5368
- }).catch(m)), c.priceCoefficientsReference;
5443
+ }).catch(y)), c.priceCoefficientsReference;
5369
5444
  });
5370
5445
  return {
5371
5446
  /**
@@ -5415,30 +5490,30 @@ const P = ge("__references_private", () => {
5415
5490
  /**
5416
5491
  * Справочник каналов первичного интереса.
5417
5492
  */
5418
- sourcePrimaryInterestsReference: S,
5493
+ sourcePrimaryInterestsReference: T,
5419
5494
  /**
5420
5495
  * Справочник типов доставки.
5421
5496
  */
5422
- deliveryTypeReference: L,
5497
+ deliveryTypeReference: b,
5423
5498
  /**
5424
5499
  * Список менеджеров.
5425
5500
  */
5426
- managersList: d,
5501
+ managersList: _,
5427
5502
  /**
5428
5503
  * Справочник складов.
5429
5504
  */
5430
- warehousesReference: x,
5505
+ warehousesReference: k,
5431
5506
  /**
5432
5507
  * Справочник типов свойств.
5433
5508
  */
5434
- propertyTypesReference: I,
5509
+ propertyTypesReference: N,
5435
5510
  /**
5436
5511
  * Справочник коэффициентов цен.
5437
5512
  */
5438
5513
  priceCoefficientsReference: O
5439
5514
  };
5440
- }), st = ge("__user_state_private", () => {
5441
- const n = y({}), r = y(void 0);
5515
+ }), st = he("__user_state_private", () => {
5516
+ const n = w({}), r = w(void 0);
5442
5517
  return {
5443
5518
  /**
5444
5519
  * Список загружаемых/загруженных на данный момент значений.
@@ -5449,18 +5524,18 @@ const P = ge("__references_private", () => {
5449
5524
  */
5450
5525
  currentUser: r
5451
5526
  };
5452
- }), Ut = ge("user_state", () => ({
5527
+ }), Gt = he("user_state", () => ({
5453
5528
  /**
5454
5529
  * Данные о текущем пользователе.
5455
5530
  */
5456
- currentUser: w(() => {
5531
+ currentUser: P(() => {
5457
5532
  const r = st();
5458
5533
  return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(jr).getCurrentUser().then((e) => {
5459
5534
  r.currentUser = e;
5460
- }).catch(m).finally(m)), r.currentUser;
5535
+ }).catch(y).finally(y)), r.currentUser;
5461
5536
  })
5462
5537
  }));
5463
- class Gt extends u {
5538
+ class Mt extends u {
5464
5539
  /**
5465
5540
  * Возвращает подсказки по адресам.
5466
5541
  *
@@ -5507,7 +5582,7 @@ class Gt extends u {
5507
5582
  });
5508
5583
  }
5509
5584
  }
5510
- class Ht {
5585
+ class Ft {
5511
5586
  /**
5512
5587
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5513
5588
  *
@@ -5531,137 +5606,139 @@ class Ht {
5531
5606
  }
5532
5607
  }
5533
5608
  export {
5534
- Mr as AnyReference,
5609
+ Ur as AnyReference,
5535
5610
  ht as AppBaseConfig,
5536
- N as AppConfigProvider,
5537
- be as BankAccount,
5538
- we as BasePaginationProvider,
5539
- xr as CalculationTypeEnum,
5540
- ie as Cart,
5541
- br as CartItem,
5542
- Tr as CartItemBase,
5611
+ a as AppConfigProvider,
5612
+ Ae as BankAccount,
5613
+ ye as BasePaginationProvider,
5614
+ Ir as CalculationTypeEnum,
5615
+ se as Cart,
5616
+ ar as CartItem,
5617
+ br as CartItemBase,
5543
5618
  gt as CartProvider,
5544
- at as CatalogProvider,
5545
- Ue as CatalogableItem,
5546
- q as Category,
5547
- ke as CategoryPricingRule,
5548
- je as ChannelPrimaryInterest,
5619
+ Dt as CatalogProvider,
5620
+ Me as CatalogableItem,
5621
+ d as Category,
5622
+ Ie as CategoryPricingRule,
5623
+ Ve as ChannelPrimaryInterest,
5549
5624
  ft as City,
5550
- le as CityWithRegionAndCountry,
5551
- Ne as Client,
5625
+ ce as CityWithRegionAndCountry,
5626
+ ke as Client,
5552
5627
  Zr as ClientAdditionalData,
5553
- ce as ClientCategory,
5628
+ oe as ClientCategory,
5554
5629
  Pt as ClientDataProvider,
5555
5630
  $t as ClientPriceProvider,
5556
- Dt as ClientPriceTemplateProvider,
5557
- J as ClientProduct,
5558
- bt as ClientProductCategoryDataProvider,
5631
+ At as ClientPriceTemplateProvider,
5632
+ K as ClientProduct,
5633
+ at as ClientProductCategoryDataProvider,
5559
5634
  _t as ClientProductDataProvider,
5560
- se as ClientShortInfo,
5635
+ te as ClientShortInfo,
5561
5636
  Er as ClientsAdditionalDataRequestTypeEnum,
5562
5637
  yt as ClientsListFilters,
5563
- kt as ConfiguratorProvider,
5564
- _e as Contact,
5565
- Or as ContactLinks,
5566
- H as ContactPerson,
5638
+ Nt as ConfiguratorProvider,
5639
+ Te as Contact,
5640
+ dr as ContactLinks,
5641
+ M as ContactPerson,
5567
5642
  Qr as ContactPersonRelated,
5568
- Ur as ContactPosition,
5569
- Re as ContactRelation,
5570
- Ke as ContragentBase,
5571
- ue as ContragentFactory,
5572
- Je as ContragentIc,
5643
+ Gr as ContactPosition,
5644
+ ve as ContactRelation,
5645
+ Je as ContragentBase,
5646
+ pe as ContragentFactory,
5647
+ Qe as ContragentIc,
5573
5648
  Kr as ContragentPerson,
5574
5649
  Jr as ContragentUlNr,
5575
- Qe as ContragentUlR,
5576
- de as CostSourceEnum,
5577
- Q as Country,
5578
- pe as Currency,
5579
- Gt as DataSuggestionProvider,
5580
- Ct as DataTablePagination,
5650
+ Ye as ContragentUlR,
5651
+ _e as CostSourceEnum,
5652
+ J as Country,
5653
+ le as Currency,
5654
+ Mt as DataSuggestionProvider,
5655
+ wt as DataTablePagination,
5581
5656
  et as DataTablePaginationRequestParams,
5582
5657
  vt as DataTableSortRequestParams,
5583
- Nt as DateTimeProvider,
5584
- kr as DeletableNamedIdentity,
5585
- he as DeliveryAddress,
5586
- K as DeliveryType,
5658
+ Ot as DateTimeProvider,
5659
+ Nr as DeletableNamedIdentity,
5660
+ ue as DeliveryAddress,
5661
+ E as DeliveryType,
5587
5662
  _r as DeviceTypeResolutionConfig,
5588
- Nr as DiscountShortInfo,
5589
- Ht as FieldValidationResultData,
5590
- Ze as FilterOpEnum,
5663
+ Or as DiscountShortInfo,
5664
+ Ft as FieldValidationResultData,
5665
+ ee as FilterGroup,
5666
+ Ne as FilterItem,
5667
+ Se as FilterOpEnum,
5591
5668
  He as GeoCoordinates,
5592
- Dr as HiddenCatalogableItem,
5593
- Te as HttpBaseCachedRequester,
5594
- Ae as HttpBaseRequester,
5669
+ Ar as HiddenCatalogableItem,
5670
+ $e as HttpBaseCachedRequester,
5671
+ De as HttpBaseRequester,
5595
5672
  Sr as HttpParamsConfig,
5596
5673
  u as HttpRequester,
5597
5674
  F as Identity,
5598
- Ar as Image,
5599
- ye as Manager,
5600
- oe as ManagerCommon,
5601
- Ot as ManagerDataFactory,
5675
+ Tr as Image,
5676
+ fe as Manager,
5677
+ ne as ManagerCommon,
5678
+ dt as ManagerDataFactory,
5602
5679
  rt as ManagerDataProvider,
5603
5680
  tt as MetaTagItem,
5604
- a as NamedIdentity,
5681
+ A as NamedIdentity,
5605
5682
  U as Opf,
5606
- A as OpfEnum,
5683
+ S as OpfEnum,
5607
5684
  Xr as Order,
5608
- Xe as OrderInfo,
5609
- Gr as OrderPaymentStatus,
5685
+ Ze as OrderInfo,
5686
+ Mr as OrderPaymentStatus,
5610
5687
  Yr as OrderProduct,
5611
- Ye as OrderShortInfo,
5612
- Hr as OrderStatus,
5613
- wt as OrdersDataProvider,
5688
+ Xe as OrderShortInfo,
5689
+ Fr as OrderStatus,
5690
+ Ct as OrdersDataProvider,
5614
5691
  G as PartnerGroup,
5615
- Fr as PaymentType,
5692
+ Hr as PaymentType,
5616
5693
  mt as PreferencesStorageProvider,
5617
- ae as PriceAnalyze,
5618
- It as PriceAnalyzeProvider,
5619
- me as PriceCoefficient,
5620
- Ge as PriceCoefficientEnum,
5694
+ Pe as PriceAnalyze,
5695
+ kt as PriceAnalyzeProvider,
5696
+ ge as PriceCoefficient,
5697
+ Fe as PriceCoefficientEnum,
5621
5698
  B as PriceTemplate,
5622
- ve as PriceTemplateCategory,
5623
- X as PriceTemplateClient,
5624
- ze as PriceTemplateICatalogableItem,
5625
- Pe as PriceTemplateProduct,
5699
+ Ce as PriceTemplateCategory,
5700
+ Q as PriceTemplateClient,
5701
+ Be as PriceTemplateICatalogableItem,
5702
+ we as PriceTemplateProduct,
5626
5703
  St as PriceTemplateProvider,
5627
- ee as PricingRole,
5704
+ X as PricingRole,
5628
5705
  Lt as PricingRoleProvider,
5629
- De as PrimaryCatalogableItem,
5630
- T as Product,
5631
- At as ProductCategoryDataProvider,
5632
- Tt as ProductDataProvider,
5706
+ Re as PrimaryCatalogableItem,
5707
+ L as Product,
5708
+ Tt as ProductCategoryDataProvider,
5709
+ bt as ProductDataProvider,
5633
5710
  zr as ProductFileType,
5634
- Se as ProductPriceCoefficient,
5711
+ be as ProductPriceCoefficient,
5635
5712
  Vr as ProductPriceHistory,
5636
- dt as PropertiesProvider,
5637
- Z as Property,
5638
- We as PropertyType,
5639
- Ir as PropertyTypeEnum,
5640
- z as PropertyValue,
5641
- xt as RecommendationsDataProvider,
5642
- Ie as RecommendationsList,
5643
- f as Reference,
5644
- R as ReferenceDataProvider,
5645
- re as Region,
5646
- Ve as ResourceType,
5647
- _ as SalesDirection,
5713
+ xt as PropertiesProvider,
5714
+ Y as Property,
5715
+ je as PropertyType,
5716
+ kr as PropertyTypeEnum,
5717
+ H as PropertyValue,
5718
+ It as RecommendationsDataProvider,
5719
+ xe as RecommendationsList,
5720
+ C as Reference,
5721
+ D as ReferenceDataProvider,
5722
+ Z as Region,
5723
+ Ee as ResourceType,
5724
+ I as SalesDirection,
5648
5725
  Lr as SentryConfig,
5649
- qe as Seo,
5726
+ de as Seo,
5650
5727
  qt as SeoDataProvider,
5651
- Ee as SourcePrimaryInterest,
5728
+ Ke as SourcePrimaryInterest,
5652
5729
  $r as StockCount,
5653
- Le as TypedInstanceFactory,
5730
+ ae as TypedInstanceFactory,
5654
5731
  Oe as UnitsHelper,
5655
5732
  Rt as UnknownClientDataProvider,
5656
- Fe as UpdatableNamedIdentity,
5733
+ ze as UpdatableNamedIdentity,
5657
5734
  Wr as User,
5658
- Be as UserCommonInfo,
5735
+ We as UserCommonInfo,
5659
5736
  jr as UserDataProvider,
5660
- M as UserShortInfo,
5737
+ q as UserShortInfo,
5661
5738
  Br as UserTypeEnum,
5662
- dr as VersionConfig,
5663
- fe as Warehouse,
5664
- Mt as useReferencesStore,
5665
- Ut as useUserStateStore
5739
+ xr as VersionConfig,
5740
+ me as Warehouse,
5741
+ Ut as useReferencesStore,
5742
+ Gt as useUserStateStore
5666
5743
  };
5667
5744
  //# sourceMappingURL=sc-common-lib.js.map