@snabcentr/common-lib 1.41.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +3 -3
  3. package/dist/sc-common-lib.js +258 -237
  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/{category-pricing-role.d.ts → category-pricing-rule.d.ts} +8 -8
  8. package/dist/src/catalog/classes/category-pricing-rule.d.ts.map +1 -0
  9. package/dist/src/catalog/classes/index.d.ts +1 -1
  10. package/dist/src/catalog/classes/pricing-role.d.ts +12 -0
  11. package/dist/src/catalog/classes/pricing-role.d.ts.map +1 -1
  12. package/dist/src/catalog/interfaces/{i-category-pricing-role-update-data.d.ts → i-category-pricing-rule-update-data.d.ts} +3 -3
  13. package/dist/src/catalog/interfaces/{i-category-pricing-role-update-data.d.ts.map → i-category-pricing-rule-update-data.d.ts.map} +1 -1
  14. package/dist/src/catalog/interfaces/{i-category-pricing-role.d.ts → i-category-pricing-rule.d.ts} +4 -4
  15. package/dist/src/catalog/interfaces/i-category-pricing-rule.d.ts.map +1 -0
  16. package/dist/src/catalog/interfaces/i-pricing-role.d.ts +12 -0
  17. package/dist/src/catalog/interfaces/i-pricing-role.d.ts.map +1 -1
  18. package/dist/src/catalog/interfaces/index.d.ts +2 -2
  19. package/dist/src/catalog/providers/pricing-role-provider.d.ts +4 -4
  20. package/dist/src/catalog/providers/pricing-role-provider.d.ts.map +1 -1
  21. package/dist/src/http/classes/http-base-requester.d.ts +1 -3
  22. package/dist/src/http/classes/http-base-requester.d.ts.map +1 -1
  23. package/dist/src/http/interfaces/i-http-response-error.d.ts +4 -0
  24. package/dist/src/http/interfaces/i-http-response-error.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/dist/src/catalog/classes/category-pricing-role.d.ts.map +0 -1
  27. package/dist/src/catalog/interfaces/i-category-pricing-role.d.ts.map +0 -1
@@ -1,13 +1,13 @@
1
- var je = Object.defineProperty;
2
- var Ve = (i, r, e) => r in i ? je(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
- var s = (i, r, e) => Ve(i, typeof r != "symbol" ? r + "" : r, e);
4
- import { isUndefined as Le, cloneDeep as Ee, noop as m, toLower as Ke, isString as D, map as Z, forEach as Je, isNil as Qe, isEmpty as Ye, isArray as Xe, isFunction as Ze } from "lodash-es";
5
- import { format as er, addSeconds as rr, parseISO as N, isAfter as sr, startOfToday as me, parse as V, getDay as tr, startOfTomorrow as he, nextMonday as nr, getUnixTime as k, endOfTomorrow as ir, endOfYesterday as or, startOfYesterday as cr, endOfToday as lr, endOfDay as ur, startOfDay as pr } from "date-fns";
6
- import hr from "axios";
7
- import { objectToSnake as $e, objectToCamel as gr } from "ts-case-convert";
1
+ var Ve = Object.defineProperty;
2
+ var Ee = (i, r, e) => r in i ? Ve(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
+ var s = (i, r, e) => Ee(i, typeof r != "symbol" ? r + "" : r, e);
4
+ import { isUndefined as Ie, cloneDeep as Ke, noop as m, toLower as Je, isString as D, map as Z, forEach as Qe, isNil as Ye, isEmpty as Xe, isArray as Ze, isFunction as er } from "lodash-es";
5
+ import { format as rr, addSeconds as sr, parseISO as N, isAfter as tr, startOfToday as me, parse as j, getDay as nr, startOfTomorrow as he, nextMonday as ir, getUnixTime as k, endOfTomorrow as or, endOfYesterday as cr, startOfYesterday as lr, endOfToday as ur, endOfDay as pr, startOfDay as hr } from "date-fns";
6
+ import gr from "axios";
7
+ import { objectToSnake as be, objectToCamel as mr } from "ts-case-convert";
8
8
  import { defineStore as oe } from "pinia";
9
9
  import { ref as w, computed as C } from "vue";
10
- class J {
10
+ class K {
11
11
  /**
12
12
  * Инициализирует экземпляр класса {@link Identity}.
13
13
  *
@@ -31,7 +31,7 @@ class J {
31
31
  return this.id === -1;
32
32
  }
33
33
  }
34
- class P extends J {
34
+ class P extends K {
35
35
  /**
36
36
  * Инициализирует экземпляр класса {@link NamedIdentity}.
37
37
  *
@@ -46,7 +46,7 @@ class P extends J {
46
46
  this.name = (e == null ? void 0 : e.name) ?? "";
47
47
  }
48
48
  }
49
- class ae extends P {
49
+ class xe extends P {
50
50
  /**
51
51
  * Инициализирует экземпляр класса {@link CatalogableItem}.
52
52
  *
@@ -69,7 +69,7 @@ class ae extends P {
69
69
  this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
70
70
  }
71
71
  }
72
- class fe extends ae {
72
+ class fe extends xe {
73
73
  /**
74
74
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
75
75
  *
@@ -126,9 +126,9 @@ class f extends P {
126
126
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
127
127
  }
128
128
  }
129
- class Ie extends f {
129
+ class Re extends f {
130
130
  }
131
- class Re {
131
+ class De {
132
132
  /**
133
133
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
134
134
  *
@@ -155,10 +155,10 @@ class Re {
155
155
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
156
156
  */
157
157
  s(this, "readOnly");
158
- this.coefficient = new Ie(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;
158
+ this.coefficient = new Re(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;
159
159
  }
160
160
  }
161
- class xe {
161
+ class ke {
162
162
  /**
163
163
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
164
164
  *
@@ -176,7 +176,7 @@ class xe {
176
176
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
177
177
  }
178
178
  }
179
- class E extends f {
179
+ class V extends f {
180
180
  }
181
181
  class le extends f {
182
182
  /**
@@ -207,10 +207,10 @@ class le extends f {
207
207
  * Координаты склада.
208
208
  */
209
209
  s(this, "coordinates");
210
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((n) => new E(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new xe(e == null ? void 0 : e.coordinates);
210
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((n) => new V(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new ke(e == null ? void 0 : e.coordinates);
211
211
  }
212
212
  }
213
- class mr {
213
+ class fr {
214
214
  /**
215
215
  * Инициализирует экземпляр класса {@link StockCount}.
216
216
  *
@@ -228,23 +228,23 @@ class mr {
228
228
  this.warehouse = new le(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
229
229
  }
230
230
  }
231
- const W = class W {
231
+ const B = class B {
232
232
  /**
233
233
  * Инициализирует и возвращает конфигурацию приложения.
234
234
  *
235
235
  * @param config Данные для первоначальной инициализации.
236
236
  */
237
237
  static init(r) {
238
- W.config = r;
238
+ B.config = r;
239
239
  }
240
240
  /**
241
241
  * Возвращает текущую конфигурацию приложения.
242
242
  */
243
243
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
244
244
  static getConfig() {
245
- if (Le(W.config))
245
+ if (Ie(B.config))
246
246
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
247
- return W.config;
247
+ return B.config;
248
248
  }
249
249
  /**
250
250
  * Выполняет загрузку конфигурации по указанному пути.
@@ -263,9 +263,9 @@ const W = class W {
263
263
  /**
264
264
  * Конфигурация приложения.
265
265
  */
266
- s(W, "config");
267
- let O = W;
268
- class fr extends ae {
266
+ s(B, "config");
267
+ let d = B;
268
+ class yr extends xe {
269
269
  /**
270
270
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
271
271
  *
@@ -280,7 +280,7 @@ class fr extends ae {
280
280
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
281
281
  }
282
282
  }
283
- class yr {
283
+ class wr {
284
284
  /**
285
285
  * Инициализирует экземпляр класса {@link Image}.
286
286
  *
@@ -303,7 +303,7 @@ class yr {
303
303
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
304
304
  }
305
305
  }
306
- class x extends fr {
306
+ class x extends yr {
307
307
  /**
308
308
  * Инициализирует экземпляр класса {@link Product}.
309
309
  *
@@ -376,22 +376,22 @@ class x extends fr {
376
376
  * Список коэффициентов цен на продукт.
377
377
  */
378
378
  s(this, "priceCoefficients");
379
- 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 = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((g) => new mr(g))) ?? [], this.type = "product";
379
+ 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 = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((g) => new fr(g))) ?? [], this.type = "product";
380
380
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
381
381
  t && (this.category = new fe({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new fe(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => {
382
382
  var y;
383
- return new yr(g, (y = O.getConfig().urls) == null ? void 0 : y.mediaServer);
384
- })) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((g) => new Re(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
383
+ return new wr(g, (y = d.getConfig().urls) == null ? void 0 : y.mediaServer);
384
+ })) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((g) => new De(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
385
385
  }
386
386
  /**
387
387
  * Возвращает признак, что это измеряемый товар.
388
388
  */
389
389
  getIsMeasurable() {
390
- const e = O.getConfig().products.units;
390
+ const e = d.getConfig().products.units;
391
391
  return [...e.linear, ...e.square].includes(this.unit);
392
392
  }
393
393
  }
394
- class wr extends J {
394
+ class Cr extends K {
395
395
  /**
396
396
  * Инициализирует экземпляр класса {@link CartItemBase}.
397
397
  *
@@ -443,10 +443,10 @@ class wr extends J {
443
443
  * Признак того, что позиция является дополнительной продажей.
444
444
  */
445
445
  s(this, "isAdditionalSale");
446
- this.product = new x(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ce(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ee(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
446
+ this.product = new x(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ce(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ke(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
447
447
  }
448
448
  }
449
- class Cr extends wr {
449
+ class vr extends Cr {
450
450
  /**
451
451
  * Инициализирует экземпляр класса {@link CartItem}.
452
452
  *
@@ -515,10 +515,10 @@ class X {
515
515
  * Список итоговых сумм по направлениям продаж.
516
516
  */
517
517
  s(this, "directionsSum");
518
- this.items = r.items.map((e) => new Cr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
518
+ this.items = r.items.map((e) => new vr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
519
519
  }
520
520
  }
521
- class vr {
521
+ class Rr {
522
522
  /**
523
523
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
524
524
  *
@@ -540,7 +540,7 @@ class vr {
540
540
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
541
541
  }
542
542
  }
543
- class Rr {
543
+ class Dr {
544
544
  /**
545
545
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
546
546
  *
@@ -558,7 +558,7 @@ class Rr {
558
558
  this.apiUri = (r == null ? void 0 : r.apiUri) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
559
559
  }
560
560
  }
561
- class Dr {
561
+ class Pr {
562
562
  /**
563
563
  * Инициализирует экземпляр класса {@link SentryConfig}.
564
564
  *
@@ -603,7 +603,7 @@ class Dr {
603
603
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
604
604
  }
605
605
  }
606
- class Pr {
606
+ class Ar {
607
607
  /**
608
608
  * Инициализирует экземпляр класса {@link VersionConfig}.
609
609
  *
@@ -622,7 +622,7 @@ class Pr {
622
622
  * Текущая версия приложения.
623
623
  */
624
624
  s(this, "version");
625
- this.date = (r == null ? void 0 : r.date) ?? er(/* @__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";
625
+ this.date = (r == null ? void 0 : r.date) ?? rr(/* @__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";
626
626
  }
627
627
  }
628
628
  class ns {
@@ -668,19 +668,19 @@ class ns {
668
668
  * Данные о текущем выпуске приложения.
669
669
  */
670
670
  s(this, "version");
671
- 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 Rr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new vr(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
671
+ 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 Dr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Rr(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
672
672
  units: {
673
673
  linear: ["пог.м.", "м."],
674
674
  square: ["м2"]
675
675
  },
676
676
  ...r == null ? void 0 : r.products
677
- }, this.sentry = new Dr({
677
+ }, this.sentry = new Pr({
678
678
  environment: this.environment,
679
679
  ...r == null ? void 0 : r.sentry
680
- }), this.urls = r == null ? void 0 : r.urls, this.version = new Pr(r == null ? void 0 : r.version);
680
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new Ar(r == null ? void 0 : r.version);
681
681
  }
682
682
  }
683
- class De {
683
+ class Pe {
684
684
  /**
685
685
  * Инициализирует экземпляр указанного класса.
686
686
  *
@@ -719,8 +719,8 @@ const b = class b {
719
719
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
720
720
  */
721
721
  s(this, "defaultInstanceNotificationErrorResponseHandler", m);
722
- const t = O.getConfig().version;
723
- this.defaultInstanceNotificationErrorResponseHandler = b.baseDefaultNotificationErrorResponseHandler, this.httpClient = hr.create({
722
+ const t = d.getConfig().version;
723
+ this.defaultInstanceNotificationErrorResponseHandler = b.baseDefaultNotificationErrorResponseHandler, this.httpClient = gr.create({
724
724
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
725
725
  baseURL: r,
726
726
  headers: {
@@ -730,10 +730,10 @@ const b = class b {
730
730
  ...e
731
731
  }
732
732
  }), this.httpClient.interceptors.request.use(
733
- (n) => (n.method && (n.method === "get" && n.params && (n.params = $e(n.params)), ["put", "patch", "post"].includes(Ke(n.method)) && n.data && (n.data = $e(n.data))), n),
733
+ (n) => (n.method && (n.method === "get" && n.params && (n.params = be(n.params)), ["put", "patch", "post"].includes(Je(n.method)) && n.data && (n.data = be(n.data))), n),
734
734
  (n) => Promise.reject(n)
735
735
  ), this.httpClient.interceptors.response.use(
736
- (n) => (n.data && (n.data = gr(n.data)), n),
736
+ (n) => (n.data && (n.data = mr(n.data)), n),
737
737
  // Возвращаем изменённую структуру сообщения об ошибке.
738
738
  (n) => b.convertHttpErrorResponse(n)
739
739
  );
@@ -752,7 +752,7 @@ const b = class b {
752
752
  * @param type Тип данных, которыми оперирует метод.
753
753
  */
754
754
  static getInstance(r) {
755
- return Object.prototype.hasOwnProperty.call(b.instances, r.name) || (b.instances[r.name] = De.simpleInstanceInitializer(r)), b.instances[r.name];
755
+ return Object.prototype.hasOwnProperty.call(b.instances, r.name) || (b.instances[r.name] = Pe.simpleInstanceInitializer(r)), b.instances[r.name];
756
756
  }
757
757
  /**
758
758
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -768,6 +768,7 @@ const b = class b {
768
768
  message: ((t = e == null ? void 0 : e.data) == null ? void 0 : t.message) ?? "Unknown Error. Probably network error.",
769
769
  errors: (n = e == null ? void 0 : e.data) == null ? void 0 : n.errors,
770
770
  headers: (e == null ? void 0 : e.headers) ?? {},
771
+ data: e == null ? void 0 : e.data,
771
772
  rawError: r
772
773
  });
773
774
  }
@@ -843,7 +844,7 @@ s(b, "instances", {}), /**
843
844
  */
844
845
  s(b, "baseDefaultNotificationErrorResponseHandler", m);
845
846
  let ye = b;
846
- const z = class z extends ye {
847
+ const W = class W extends ye {
847
848
  /**
848
849
  * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
849
850
  *
@@ -856,7 +857,7 @@ const z = class z extends ye {
856
857
  * Время кэширования данных ответов на запросы (секунд).
857
858
  */
858
859
  s(this, "responseDataCacheTimeout");
859
- const n = O.getConfig();
860
+ const n = d.getConfig();
860
861
  this.responseDataCacheTimeout = n.http.responseDataCacheTimeout;
861
862
  }
862
863
  /**
@@ -866,7 +867,7 @@ const z = class z extends ye {
866
867
  * @param url URL запроса.
867
868
  */
868
869
  static getCachedResponse(e) {
869
- const t = z.responseDataCache.get(e);
870
+ const t = W.responseDataCache.get(e);
870
871
  if (t && t.validTo > /* @__PURE__ */ new Date())
871
872
  return t.val;
872
873
  }
@@ -877,8 +878,8 @@ const z = class z extends ye {
877
878
  * @param data Данные для кэширования.
878
879
  */
879
880
  cacheResponse(e, t) {
880
- z.responseDataCache.set(e, {
881
- validTo: rr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
881
+ W.responseDataCache.set(e, {
882
+ validTo: sr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
882
883
  val: t
883
884
  });
884
885
  }
@@ -892,9 +893,9 @@ const z = class z extends ye {
892
893
  */
893
894
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
894
895
  getTypedDataArrayRequester(e, t, n = !1) {
895
- const o = n ? z.getCachedResponse(t) : void 0;
896
+ const o = n ? W.getCachedResponse(t) : void 0;
896
897
  return o ? Promise.resolve(o) : this.get(t).then((l) => {
897
- const u = l.map((g) => De.instanceInitializer(e, g));
898
+ const u = l.map((g) => Pe.instanceInitializer(e, g));
898
899
  return n && u && this.cacheResponse(t, u), u;
899
900
  });
900
901
  }
@@ -902,15 +903,15 @@ const z = class z extends ye {
902
903
  /**
903
904
  * Кэш результатов запросов.
904
905
  */
905
- s(z, "responseDataCache", /* @__PURE__ */ new Map());
906
- let we = z;
906
+ s(W, "responseDataCache", /* @__PURE__ */ new Map());
907
+ let we = W;
907
908
  class p extends we {
908
909
  /**
909
910
  * Инициализирует экземпляр класса {@link HttpRequester}.
910
911
  */
911
912
  constructor() {
912
913
  var t, n;
913
- const r = O.getConfig(), e = {};
914
+ const r = d.getConfig(), e = {};
914
915
  (t = r.devMode) != null && t.authBearerToken && (e.Authorization = `Bearer ${(n = r.devMode) == null ? void 0 : n.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
915
916
  }
916
917
  }
@@ -1017,7 +1018,7 @@ class is extends p {
1017
1018
  return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new X(e.data));
1018
1019
  }
1019
1020
  }
1020
- var ke = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(ke || {}), Ar = /* @__PURE__ */ ((i) => (i.Unknown = "unknown", i.Bool = "bool", i.Integer = "integer", i.Float = "float", i.String = "string", i.Range = "range", i.Json = "json", i.Object = "object", i))(Ar || {}), $r = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i))($r || {});
1021
+ var Ne = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Ne || {}), $r = /* @__PURE__ */ ((i) => (i.Unknown = "unknown", i.Bool = "bool", i.Integer = "integer", i.Float = "float", i.String = "string", i.Range = "range", i.Json = "json", i.Object = "object", i))($r || {}), br = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i))(br || {});
1021
1022
  class U extends ce {
1022
1023
  /**
1023
1024
  * Инициализирует экземпляр класса {@link Category}.
@@ -1038,7 +1039,7 @@ class U extends ce {
1038
1039
  this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new U(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new x(o));
1039
1040
  }
1040
1041
  }
1041
- class Ne extends P {
1042
+ class de extends P {
1042
1043
  /**
1043
1044
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1044
1045
  *
@@ -1053,7 +1054,7 @@ class Ne extends P {
1053
1054
  this.updatedAt = e == null ? void 0 : e.updatedAt;
1054
1055
  }
1055
1056
  }
1056
- class br extends Ne {
1057
+ class Tr extends de {
1057
1058
  /**
1058
1059
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1059
1060
  *
@@ -1079,7 +1080,7 @@ class os {
1079
1080
  if (e)
1080
1081
  try {
1081
1082
  const t = JSON.parse(e);
1082
- if (sr(N(t.availableFor) || me(), /* @__PURE__ */ new Date()))
1083
+ if (tr(N(t.availableFor) || me(), /* @__PURE__ */ new Date()))
1083
1084
  return t.data || {};
1084
1085
  } catch {
1085
1086
  localStorage.removeItem(r);
@@ -1117,7 +1118,7 @@ class q extends P {
1117
1118
  this.type = e == null ? void 0 : e.type;
1118
1119
  }
1119
1120
  }
1120
- class Tr extends P {
1121
+ class Sr extends P {
1121
1122
  /**
1122
1123
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1123
1124
  *
@@ -1156,7 +1157,7 @@ class Tr extends P {
1156
1157
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = e != null && e.publishedAt ? D(e.publishedAt) ? N(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 ? D(e.deletedAt) ? N(e.deletedAt) : e.deletedAt : void 0;
1157
1158
  }
1158
1159
  }
1159
- class Sr extends Ne {
1160
+ class _r extends de {
1160
1161
  /**
1161
1162
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1162
1163
  *
@@ -1211,10 +1212,10 @@ class ue extends x {
1211
1212
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1212
1213
  */
1213
1214
  s(this, "isFavorite");
1214
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? ke.Product, this.discount = e != null && e.discount ? new Tr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Sr(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;
1215
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ne.Product, this.discount = e != null && e.discount ? new Sr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new _r(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;
1215
1216
  }
1216
1217
  }
1217
- class _r {
1218
+ class Lr {
1218
1219
  /**
1219
1220
  * Инициализирует экземпляр класса {@link ContactLinks}.
1220
1221
  *
@@ -1258,7 +1259,7 @@ class ee extends P {
1258
1259
  * Признак того, что менеджер является основным для клиента.
1259
1260
  */
1260
1261
  s(this, "isDefault");
1261
- e && (this.salesDirection = new T(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new _r(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1262
+ e && (this.salesDirection = new T(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Lr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1262
1263
  }
1263
1264
  }
1264
1265
  class pe extends ee {
@@ -1292,7 +1293,7 @@ class pe extends ee {
1292
1293
  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;
1293
1294
  }
1294
1295
  }
1295
- class Lr extends ce {
1296
+ class ar extends ce {
1296
1297
  /**
1297
1298
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1298
1299
  *
@@ -1323,7 +1324,7 @@ class Lr extends ce {
1323
1324
  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 pe(e.manager) : void 0;
1324
1325
  }
1325
1326
  }
1326
- class re extends Lr {
1327
+ class re extends ar {
1327
1328
  /**
1328
1329
  * Инициализирует экземпляр класса {@link ClientCategory}.
1329
1330
  *
@@ -1345,7 +1346,7 @@ class re extends Lr {
1345
1346
  }
1346
1347
  class Oe extends f {
1347
1348
  }
1348
- class Q extends P {
1349
+ class J extends P {
1349
1350
  /**
1350
1351
  * Инициализирует экземпляр класса {@link Property}.
1351
1352
  *
@@ -1384,16 +1385,16 @@ class F {
1384
1385
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
1385
1386
  */
1386
1387
  s(this, "value");
1387
- this.property = new Q(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1388
+ this.property = new J(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1388
1389
  }
1389
1390
  }
1390
- class ar extends f {
1391
+ class Ir extends f {
1391
1392
  }
1392
- class de extends f {
1393
+ class Ue extends f {
1393
1394
  }
1394
1395
  class cs extends f {
1395
1396
  }
1396
- class K extends f {
1397
+ class E extends f {
1397
1398
  }
1398
1399
  class Y extends f {
1399
1400
  /**
@@ -1406,8 +1407,8 @@ class Y extends f {
1406
1407
  /**
1407
1408
  * Данные о стране, в которой расположен регион.
1408
1409
  */
1409
- s(this, "country", new K());
1410
- e && (this.country = new K(e.country));
1410
+ s(this, "country", new E());
1411
+ e && (this.country = new E(e.country));
1411
1412
  }
1412
1413
  }
1413
1414
  class se extends f {
@@ -1425,7 +1426,7 @@ class se extends f {
1425
1426
  e && (this.region = new Y(e.region));
1426
1427
  }
1427
1428
  }
1428
- class Ir extends f {
1429
+ class xr extends f {
1429
1430
  }
1430
1431
  class te extends P {
1431
1432
  /**
@@ -1460,20 +1461,20 @@ class G extends f {
1460
1461
  });
1461
1462
  }
1462
1463
  }
1463
- class xr extends f {
1464
- }
1465
1464
  class kr extends f {
1466
1465
  }
1466
+ class Nr extends f {
1467
+ }
1467
1468
  class M extends f {
1468
1469
  }
1469
- class Nr extends f {
1470
+ class dr extends f {
1470
1471
  }
1471
1472
  class Or extends f {
1472
1473
  }
1473
- class Ue extends f {
1474
- }
1475
1474
  class qe extends f {
1476
1475
  }
1476
+ class Ge extends f {
1477
+ }
1477
1478
  class R extends p {
1478
1479
  /**
1479
1480
  * Возвращает {@link Promise} для получения данных указанного справочника.
@@ -1483,20 +1484,20 @@ class R extends p {
1483
1484
  * и использовать в случае аналогичных запросов.
1484
1485
  */
1485
1486
  getReference(r, e = !1) {
1486
- return this.getTypedDataArrayRequester(ar, `/internal/references/${r}`, e);
1487
+ return this.getTypedDataArrayRequester(Ir, `/internal/references/${r}`, e);
1487
1488
  }
1488
1489
  /**
1489
1490
  * Возвращает {@link Promise} для получения справочника данных о канале
1490
1491
  * первичного интереса.
1491
1492
  */
1492
1493
  getChannelPrimaryInterest() {
1493
- return this.getTypedDataArrayRequester(de, "/internal/references/channel-primary-interest", !0);
1494
+ return this.getTypedDataArrayRequester(Ue, "/internal/references/channel-primary-interest", !0);
1494
1495
  }
1495
1496
  /**
1496
1497
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1497
1498
  */
1498
1499
  getContactPositions() {
1499
- return this.getTypedDataArrayRequester(Ir, "/internal/references/contact-position", !0);
1500
+ return this.getTypedDataArrayRequester(xr, "/internal/references/contact-position", !0);
1500
1501
  }
1501
1502
  /**
1502
1503
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -1521,25 +1522,25 @@ class R extends p {
1521
1522
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1522
1523
  */
1523
1524
  getOrderPaymentStatuses() {
1524
- return this.getTypedDataArrayRequester(xr, "/public/references/order-payment-status", !0);
1525
+ return this.getTypedDataArrayRequester(kr, "/public/references/order-payment-status", !0);
1525
1526
  }
1526
1527
  /**
1527
1528
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1528
1529
  */
1529
1530
  getOrderStatuses() {
1530
- return this.getTypedDataArrayRequester(kr, "/public/references/order-status", !0);
1531
+ return this.getTypedDataArrayRequester(Nr, "/public/references/order-status", !0);
1531
1532
  }
1532
1533
  /**
1533
1534
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1534
1535
  */
1535
1536
  getPaymentTypes() {
1536
- return this.getTypedDataArrayRequester(Nr, "/public/references/payment-type", !0);
1537
+ return this.getTypedDataArrayRequester(dr, "/public/references/payment-type", !0);
1537
1538
  }
1538
1539
  /**
1539
1540
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1540
1541
  */
1541
1542
  getResourceTypes() {
1542
- return this.getTypedDataArrayRequester(Ue, "/internal/references/resource-type", !0);
1543
+ return this.getTypedDataArrayRequester(qe, "/internal/references/resource-type", !0);
1543
1544
  }
1544
1545
  /**
1545
1546
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -1551,7 +1552,7 @@ class R extends p {
1551
1552
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1552
1553
  */
1553
1554
  getSourcePrimaryInterest() {
1554
- return this.getTypedDataArrayRequester(qe, "/internal/references/source-primary-interest", !0);
1555
+ return this.getTypedDataArrayRequester(Ge, "/internal/references/source-primary-interest", !0);
1555
1556
  }
1556
1557
  /**
1557
1558
  * Выполняет поиск данных о городах по терму в названии.
@@ -1575,13 +1576,13 @@ class R extends p {
1575
1576
  * @param term Терм поиска.
1576
1577
  */
1577
1578
  searchCountry(r) {
1578
- return this.getTypedDataArrayRequester(K, `/internal/references/country/search?term=${r}`);
1579
+ return this.getTypedDataArrayRequester(E, `/internal/references/country/search?term=${r}`);
1579
1580
  }
1580
1581
  /**
1581
1582
  * Возвращает {@link Promise} для получения справочника типов доставки.
1582
1583
  */
1583
1584
  getDeliveryTypes() {
1584
- return this.getTypedDataArrayRequester(E, "/internal/references/delivery-type", !0);
1585
+ return this.getTypedDataArrayRequester(V, "/internal/references/delivery-type", !0);
1585
1586
  }
1586
1587
  /**
1587
1588
  * Возвращает {@link Promise} для получения справочника складов.
@@ -1599,7 +1600,7 @@ class R extends p {
1599
1600
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
1600
1601
  */
1601
1602
  getPriceCoefficients() {
1602
- return this.getTypedDataArrayRequester(Ie, "/internal/references/price-coefficient", !0);
1603
+ return this.getTypedDataArrayRequester(Re, "/internal/references/price-coefficient", !0);
1603
1604
  }
1604
1605
  /**
1605
1606
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
@@ -1608,8 +1609,8 @@ class R extends p {
1608
1609
  return this.getTypedDataArrayRequester(Or, "/public/references/product-file-type", !0);
1609
1610
  }
1610
1611
  }
1611
- var dr = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(dr || {});
1612
- class Ge extends P {
1612
+ var Ur = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(Ur || {});
1613
+ class Me extends P {
1613
1614
  /**
1614
1615
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1615
1616
  *
@@ -1648,7 +1649,7 @@ class Ge extends P {
1648
1649
  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 T(e.salesDirection) : void 0, this.createdAt = D(e == null ? void 0 : e.createdAt) ? N(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = D(e == null ? void 0 : e.lastLoginAt) ? N(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1649
1650
  }
1650
1651
  }
1651
- class Ur extends Ge {
1652
+ class qr extends Me {
1652
1653
  /**
1653
1654
  * Инициализирует экземпляр класса {@link User}.
1654
1655
  *
@@ -1671,16 +1672,16 @@ class Ur extends Ge {
1671
1672
  this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
1672
1673
  }
1673
1674
  }
1674
- class qr extends p {
1675
+ class Gr extends p {
1675
1676
  /**
1676
1677
  * Возвращает данные о текущем пользователе.
1677
1678
  */
1678
1679
  // eslint-disable-next-line class-methods-use-this
1679
1680
  getCurrentUser() {
1680
- return this.get("/internal/users/info", {}, (r) => new Ur(r.data));
1681
+ return this.get("/internal/users/info", {}, (r) => new qr(r.data));
1681
1682
  }
1682
1683
  }
1683
- class Gr {
1684
+ class Mr {
1684
1685
  /**
1685
1686
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1686
1687
  *
@@ -1726,7 +1727,7 @@ class Gr {
1726
1727
  this.cost = r.cost, this.costDate = D(r.costDate) ? N(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 te(r.currency) : void 0;
1727
1728
  }
1728
1729
  }
1729
- class be {
1730
+ class Te {
1730
1731
  /**
1731
1732
  * Инициализирует экземпляр класса {@link RecommendationsList}.
1732
1733
  *
@@ -1744,7 +1745,7 @@ class be {
1744
1745
  r != null && r.products && (this.products = r.products.map((e) => new x(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new U(e)));
1745
1746
  }
1746
1747
  }
1747
- class B extends P {
1748
+ class Q extends P {
1748
1749
  /**
1749
1750
  * Инициализирует экземпляр класса {@link PricingRole}.
1750
1751
  *
@@ -1764,10 +1765,22 @@ class B extends P {
1764
1765
  * Идентификатор родительской роли ценообразования.
1765
1766
  */
1766
1767
  s(this, "parentRoleId");
1768
+ /**
1769
+ * Дочерние категории.
1770
+ */
1771
+ s(this, "subRoles", []);
1772
+ /**
1773
+ * Родительская категория.
1774
+ */
1775
+ s(this, "parentRole");
1776
+ /**
1777
+ * Уровень роли ценообразования.
1778
+ */
1779
+ s(this, "level", 0);
1767
1780
  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;
1768
1781
  }
1769
1782
  }
1770
- class Mr {
1783
+ class Se {
1771
1784
  /**
1772
1785
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
1773
1786
  *
@@ -1786,7 +1799,7 @@ class Mr {
1786
1799
  * Минимальный коэффициент цены.
1787
1800
  */
1788
1801
  s(this, "minCoefficient");
1789
- this.role = new B(r == null ? void 0 : r.role), this.category = new ce(r == null ? void 0 : r.category), this.minCoefficient = new f(r == null ? void 0 : r.minCoefficient);
1802
+ this.role = new Q(r == null ? void 0 : r.role), this.category = new ce(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
1790
1803
  }
1791
1804
  }
1792
1805
  class ls extends p {
@@ -1815,7 +1828,7 @@ class ls extends p {
1815
1828
  */
1816
1829
  // eslint-disable-next-line class-methods-use-this
1817
1830
  getPriceExportLink(r = "csv", e = !1, t = void 0) {
1818
- let o = `${O.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
1831
+ let o = `${d.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
1819
1832
  return t && (o += `&client_id=${t}`), o;
1820
1833
  }
1821
1834
  }
@@ -1892,7 +1905,7 @@ class us extends p {
1892
1905
  getCategoryProductsCoefficients(r) {
1893
1906
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
1894
1907
  const { data: t } = e;
1895
- return Je(t, (n) => n.map((o) => new Re(o))), t;
1908
+ return Qe(t, (n) => n.map((o) => new De(o))), t;
1896
1909
  });
1897
1910
  }
1898
1911
  /**
@@ -1942,7 +1955,7 @@ class ps extends p {
1942
1955
  return this.get(
1943
1956
  `/internal/catalog/products/${r}/coefficients`,
1944
1957
  {},
1945
- (e) => Z(e.data, (t) => new Re(t))
1958
+ (e) => Z(e.data, (t) => new De(t))
1946
1959
  );
1947
1960
  }
1948
1961
  /**
@@ -1955,7 +1968,7 @@ class ps extends p {
1955
1968
  */
1956
1969
  getProductPriceHistory(r, e) {
1957
1970
  const t = {};
1958
- return Qe(e) || (t.clientId = e), this.get(`/internal/price/products/${r}/history`, t, (n) => Z(n.data, (o) => new Gr(o)));
1971
+ return Ye(e) || (t.clientId = e), this.get(`/internal/price/products/${r}/history`, t, (n) => Z(n.data, (o) => new Mr(o)));
1959
1972
  }
1960
1973
  /**
1961
1974
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2063,7 +2076,7 @@ class ms extends p {
2063
2076
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
2064
2077
  */
2065
2078
  getRoles() {
2066
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new B(e)));
2079
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new Q(e)));
2067
2080
  }
2068
2081
  /**
2069
2082
  * Добавляет новую роль ценообразования.
@@ -2073,7 +2086,7 @@ class ms extends p {
2073
2086
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
2074
2087
  */
2075
2088
  createRole(r) {
2076
- return this.post("/internal/price/roles", r, (e) => new B(e.data));
2089
+ return this.post("/internal/price/roles", r, (e) => new Q(e.data));
2077
2090
  }
2078
2091
  /**
2079
2092
  * Возвращает данные роли ценообразования.
@@ -2083,7 +2096,7 @@ class ms extends p {
2083
2096
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
2084
2097
  */
2085
2098
  getRole(r) {
2086
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new B(e.data));
2099
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new Q(e.data));
2087
2100
  }
2088
2101
  /**
2089
2102
  * Обновляет данные роли ценообразования.
@@ -2094,7 +2107,7 @@ class ms extends p {
2094
2107
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
2095
2108
  */
2096
2109
  updateRole(r, e) {
2097
- return this.patch(`/internal/price/roles/${r}`, e, (t) => new B(t.data));
2110
+ return this.patch(`/internal/price/roles/${r}`, e, (t) => new Q(t.data));
2098
2111
  }
2099
2112
  /**
2100
2113
  * Удаляет роль ценообразования.
@@ -2114,7 +2127,11 @@ class ms extends p {
2114
2127
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
2115
2128
  */
2116
2129
  getCategoryRules(r) {
2117
- return this.get(`/internal/price/roles/rules/categories/${r}`, {}, (e) => e.data.map((t) => new Mr(t)));
2130
+ return this.get(
2131
+ `/internal/price/roles/rules/categories/${r}`,
2132
+ {},
2133
+ (e) => e.data.map((t) => new Se(t))
2134
+ );
2118
2135
  }
2119
2136
  /**
2120
2137
  * Обновляет правила для роли ценообразования по указанной категории.
@@ -2125,10 +2142,14 @@ class ms extends p {
2125
2142
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_update
2126
2143
  */
2127
2144
  updateCategoryRules(r, e) {
2128
- return this.patch(`/internal/price/roles/rules/categories/${r}`, e, (t) => t.data.map((n) => new B(n)));
2145
+ return this.patch(
2146
+ `/internal/price/roles/rules/categories/${r}`,
2147
+ e,
2148
+ (t) => t.data.map((n) => new Se(n))
2149
+ );
2129
2150
  }
2130
2151
  }
2131
- class Pe extends p {
2152
+ class Ae extends p {
2132
2153
  /**
2133
2154
  * Получает пагинированный список данных.
2134
2155
  *
@@ -2144,12 +2165,12 @@ class Pe extends p {
2144
2165
  page: (n == null ? void 0 : n.page) ?? 1,
2145
2166
  per_page: (n == null ? void 0 : n.pageSize) ?? (n == null ? void 0 : n.perPage) ?? 10
2146
2167
  };
2147
- return e && (u.filters = JSON.stringify(e)), Ye(t) || (Xe(t) ? t : [t]).forEach((g, y) => {
2168
+ return e && (u.filters = JSON.stringify(e)), Xe(t) || (Ze(t) ? t : [t]).forEach((g, y) => {
2148
2169
  u[`sort[${y}][field]`] = g.field, u[`sort[${y}][direction]`] = g.direction;
2149
2170
  }), this.get(r, u, o, l);
2150
2171
  }
2151
2172
  }
2152
- class fs extends Pe {
2173
+ class fs extends Ae {
2153
2174
  /**
2154
2175
  * Возвращает пагинированный список свойств.
2155
2176
  *
@@ -2161,7 +2182,7 @@ class fs extends Pe {
2161
2182
  getProperties(r, e, t) {
2162
2183
  return this.getPaginated("/internal/catalog/properties", r, e, t, (n) => {
2163
2184
  const o = { ...n.data };
2164
- return o.data = o.data.map((l) => new Q(l)), o;
2185
+ return o.data = o.data.map((l) => new J(l)), o;
2165
2186
  });
2166
2187
  }
2167
2188
  /**
@@ -2178,7 +2199,7 @@ class fs extends Pe {
2178
2199
  ...t,
2179
2200
  type: e
2180
2201
  },
2181
- (n) => new Q(n.data)
2202
+ (n) => new J(n.data)
2182
2203
  );
2183
2204
  }
2184
2205
  /**
@@ -2188,7 +2209,7 @@ class fs extends Pe {
2188
2209
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
2189
2210
  */
2190
2211
  getProperty(r) {
2191
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new Q(e.data));
2212
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new J(e.data));
2192
2213
  }
2193
2214
  /**
2194
2215
  * Обновляет существующее свойство.
@@ -2205,7 +2226,7 @@ class fs extends Pe {
2205
2226
  ...n,
2206
2227
  type: t
2207
2228
  },
2208
- (o) => new Q(o.data)
2229
+ (o) => new J(o.data)
2209
2230
  );
2210
2231
  }
2211
2232
  /**
@@ -2517,7 +2538,7 @@ class ys extends p {
2517
2538
  * @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
2518
2539
  */
2519
2540
  getProductCategoryRecommendations(r) {
2520
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new be(e.data));
2541
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Te(e.data));
2521
2542
  }
2522
2543
  /**
2523
2544
  * Возвращает данные о рекомендациях указанного продукта.
@@ -2525,7 +2546,7 @@ class ys extends p {
2525
2546
  * @param product Данные о продукте, для которого необходимо получить рекомендации.
2526
2547
  */
2527
2548
  getProductRecommendations(r) {
2528
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new be(e.data));
2549
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Te(e.data));
2529
2550
  }
2530
2551
  /**
2531
2552
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -2553,7 +2574,7 @@ class ys extends p {
2553
2574
  }
2554
2575
  }
2555
2576
  var Hr = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i))(Hr || {});
2556
- class Ce extends J {
2577
+ class Ce extends K {
2557
2578
  /**
2558
2579
  * Инициализирует экземпляр класса {@link BankAccount}.
2559
2580
  *
@@ -2638,7 +2659,7 @@ class H extends ve {
2638
2659
  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 ? void 0 : e.deletedAt;
2639
2660
  }
2640
2661
  }
2641
- class Me extends P {
2662
+ class He extends P {
2642
2663
  /**
2643
2664
  * Инициализирует экземпляр класса {@link ContragentBase}.
2644
2665
  *
@@ -2696,7 +2717,7 @@ class Me extends P {
2696
2717
  */
2697
2718
  s(this, "updater");
2698
2719
  if (e) {
2699
- if (this.opf = new G(e.opf), this.salesDirection = new T(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = D(e == null ? void 0 : e.createdAt) ? V(e == null ? void 0 : e.createdAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updatedAt = D(e == null ? void 0 : e.updatedAt) ? V(e == null ? void 0 : e.updatedAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.updatedAt, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new M(e.partnerGroup)), e.manager && (this.manager = new ee(e.manager)), e.contacts) {
2720
+ if (this.opf = new G(e.opf), this.salesDirection = new T(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = D(e == null ? void 0 : e.createdAt) ? j(e == null ? void 0 : e.createdAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updatedAt = D(e == null ? void 0 : e.updatedAt) ? j(e == null ? void 0 : e.updatedAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.updatedAt, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new M(e.partnerGroup)), e.manager && (this.manager = new ee(e.manager)), e.contacts) {
2700
2721
  const t = [];
2701
2722
  e.contacts.forEach((n) => {
2702
2723
  t.push(new H(n));
@@ -2711,7 +2732,7 @@ class Me extends P {
2711
2732
  }
2712
2733
  }
2713
2734
  }
2714
- class Fr extends Me {
2735
+ class Fr extends He {
2715
2736
  /**
2716
2737
  * Инициализирует экземпляр класса {@link ContragentPerson}.
2717
2738
  *
@@ -2721,7 +2742,7 @@ class Fr extends Me {
2721
2742
  super(r);
2722
2743
  }
2723
2744
  }
2724
- class He extends Me {
2745
+ class Fe extends He {
2725
2746
  /**
2726
2747
  * Инициализирует экземпляр класса {@link ContragentIc}.
2727
2748
  *
@@ -2764,7 +2785,7 @@ class He extends Me {
2764
2785
  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 ?? "");
2765
2786
  }
2766
2787
  }
2767
- class Fe extends He {
2788
+ class Be extends Fe {
2768
2789
  /**
2769
2790
  * Инициализирует экземпляр класса {@link ContragentUlR}.
2770
2791
  *
@@ -2779,7 +2800,7 @@ class Fe extends He {
2779
2800
  e && (this.kpp = e.kpp ?? "");
2780
2801
  }
2781
2802
  }
2782
- class Br extends Fe {
2803
+ class Br extends Be {
2783
2804
  /**
2784
2805
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
2785
2806
  *
@@ -2790,7 +2811,7 @@ class Br extends Fe {
2790
2811
  /**
2791
2812
  * Страна регистрации юридического лица нерезидента.
2792
2813
  */
2793
- s(this, "registrationCountry", new K());
2814
+ s(this, "registrationCountry", new E());
2794
2815
  /**
2795
2816
  * Регистрационный номер юридического лица нерезидента.
2796
2817
  */
@@ -2799,7 +2820,7 @@ class Br extends Fe {
2799
2820
  * Налоговый номер юридического лица нерезидента.
2800
2821
  */
2801
2822
  s(this, "taxNumber", "");
2802
- e && (this.registrationCountry = new K(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
2823
+ e && (this.registrationCountry = new E(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
2803
2824
  }
2804
2825
  }
2805
2826
  class ne {
@@ -2811,9 +2832,9 @@ class ne {
2811
2832
  static createInstance(r) {
2812
2833
  switch (r.opf.slug) {
2813
2834
  case $.Ic:
2814
- return new He(r);
2815
- case $.UlR:
2816
2835
  return new Fe(r);
2836
+ case $.UlR:
2837
+ return new Be(r);
2817
2838
  case $.UlNr:
2818
2839
  return new Br(r);
2819
2840
  default:
@@ -2821,7 +2842,7 @@ class ne {
2821
2842
  }
2822
2843
  }
2823
2844
  }
2824
- class Ae extends Ge {
2845
+ class $e extends Me {
2825
2846
  /**
2826
2847
  * Инициализирует экземпляр класса {@link Client}.
2827
2848
  *
@@ -2866,7 +2887,7 @@ class Ae extends Ge {
2866
2887
  this.salesDirection = new T(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 se(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 = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((n) => new ee(n))) ?? [];
2867
2888
  }
2868
2889
  }
2869
- class ge extends J {
2890
+ class ge extends K {
2870
2891
  /**
2871
2892
  * Инициализирует экземпляр класса {@link ContactRelation}.
2872
2893
  *
@@ -2909,7 +2930,7 @@ class Wr extends H {
2909
2930
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new ge(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new ge(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new ge(t))));
2910
2931
  }
2911
2932
  }
2912
- class ie extends br {
2933
+ class ie extends Tr {
2913
2934
  /**
2914
2935
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
2915
2936
  *
@@ -2946,10 +2967,10 @@ class ie extends br {
2946
2967
  * Признак того, что указанный адрес является адресом транспортной компании.
2947
2968
  */
2948
2969
  s(this, "isTransportCompanyAddress");
2949
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new xe(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new H(n))) ?? [], 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;
2970
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ke(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new H(n))) ?? [], 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;
2950
2971
  }
2951
2972
  }
2952
- class Te extends Ae {
2973
+ class _e extends $e {
2953
2974
  /**
2954
2975
  * Инициализирует экземпляр класса {@link Client}.
2955
2976
  *
@@ -3003,7 +3024,7 @@ class Te extends Ae {
3003
3024
  * Дополнительные данные о клиенте.
3004
3025
  */
3005
3026
  s(this, "extraData");
3006
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => ne.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new M(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new H(u))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((u) => new ie(u))) ?? [], this.channelPrimaryInterest = new de(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new qe(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 le(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3027
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => ne.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new M(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new H(u))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((u) => new ie(u))) ?? [], this.channelPrimaryInterest = new Ue(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ge(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new V(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 le(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3007
3028
  }
3008
3029
  }
3009
3030
  class ws {
@@ -3104,13 +3125,13 @@ class ws {
3104
3125
  */
3105
3126
  s(this, "lastOrder");
3106
3127
  var e, t, n, o, l, u, g;
3107
- 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 se(r == null ? void 0 : r.city), this.region = new Y(r == null ? void 0 : r.region), this.country = new K(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 = {
3128
+ 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 se(r == null ? void 0 : r.city), this.region = new Y(r == null ? void 0 : r.region), this.country = new E(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 = {
3108
3129
  from: ((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ?? null,
3109
3130
  to: ((t = r == null ? void 0 : r.createdAt) == null ? void 0 : t.to) ?? null
3110
3131
  }, this.lastLoginDate = {
3111
3132
  from: ((n = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : n.from) ?? null,
3112
3133
  to: ((o = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : o.to) ?? null
3113
- }, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((y) => new pe(y)) : [], this.salesDirection = new T(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new E(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new ve(r == null ? void 0 : r.contact), this.lastOrder = {
3134
+ }, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((y) => new pe(y)) : [], this.salesDirection = new T(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new V(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new ve(r == null ? void 0 : r.contact), this.lastOrder = {
3114
3135
  createdAt: (l = r == null ? void 0 : r.lastOrder) == null ? void 0 : l.createdAt,
3115
3136
  creator: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.creator,
3116
3137
  isApproved: (g = r == null ? void 0 : r.lastOrder) == null ? void 0 : g.isApproved
@@ -3162,7 +3183,7 @@ class ws {
3162
3183
  this.contragentType = new G();
3163
3184
  break;
3164
3185
  case "preferredDeliveryType":
3165
- this.preferredDeliveryType = new E();
3186
+ this.preferredDeliveryType = new V();
3166
3187
  break;
3167
3188
  case "partnerGroup":
3168
3189
  this.partnerGroup = new M();
@@ -3186,11 +3207,11 @@ class ws {
3186
3207
  return Object.keys(this).forEach((l) => {
3187
3208
  const u = this[l];
3188
3209
  // eslint-disable-next-line prettier/prettier
3189
- Le(u) || D(u) && u.trim().length === 0 || Ze(u.isNewRec) && u.isNewRec() || (r[l] = u);
3210
+ Ie(u) || D(u) && u.trim().length === 0 || er(u.isNewRec) && u.isNewRec() || (r[l] = u);
3190
3211
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((n = r == null ? void 0 : r.lastLoginDate) != null && n.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
3191
3212
  }
3192
3213
  }
3193
- class Be extends J {
3214
+ class We extends K {
3194
3215
  /**
3195
3216
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
3196
3217
  *
@@ -3210,10 +3231,10 @@ class Be extends J {
3210
3231
  * Признак того, что заказ подтвержден в 1С.
3211
3232
  */
3212
3233
  s(this, "isApproved1c");
3213
- this.createdAt = D(e == null ? void 0 : e.createdAt) ? V(e.createdAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (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;
3234
+ this.createdAt = D(e == null ? void 0 : e.createdAt) ? j(e.createdAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (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;
3214
3235
  }
3215
3236
  }
3216
- class We extends Be {
3237
+ class ze extends We {
3217
3238
  /**
3218
3239
  * Инициализирует экземпляр класса {@link OrderInfo}.
3219
3240
  *
@@ -3262,19 +3283,19 @@ class We extends Be {
3262
3283
  * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
3263
3284
  */
3264
3285
  s(this, "isNotInStock");
3265
- this.client = new Ae(e == null ? void 0 : e.client), this.payment = {
3286
+ this.client = new $e(e == null ? void 0 : e.client), this.payment = {
3266
3287
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
3267
3288
  status: ((n = e == null ? void 0 : e.payment) == null ? void 0 : n.status) ?? -1,
3268
3289
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
3269
3290
  }, this.delivery = {
3270
3291
  type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
3271
- date: D((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? V(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(),
3292
+ date: D((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? j(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(),
3272
3293
  address: (y = e == null ? void 0 : e.delivery) != null && y.address ? new ie(e.delivery.address) : void 0,
3273
3294
  warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new le(e.delivery.warehouse) : void 0
3274
- }, this.attachedUser = new q(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new T(e == null ? void 0 : e.salesDirection), this.pendingAt = D(e == null ? void 0 : e.pendingAt) ? V(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 = D(e == null ? void 0 : e.processedAt) ? V(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;
3295
+ }, this.attachedUser = new q(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new T(e == null ? void 0 : e.salesDirection), this.pendingAt = D(e == null ? void 0 : e.pendingAt) ? j(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 = D(e == null ? void 0 : e.processedAt) ? j(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;
3275
3296
  }
3276
3297
  }
3277
- class zr extends J {
3298
+ class zr extends K {
3278
3299
  /**
3279
3300
  * Инициализирует экземпляр класса {@link OrderProduct}.
3280
3301
  *
@@ -3357,7 +3378,7 @@ class zr extends J {
3357
3378
  this.product = new ue(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;
3358
3379
  }
3359
3380
  }
3360
- class jr extends We {
3381
+ class jr extends ze {
3361
3382
  /**
3362
3383
  * Инициализирует экземпляр класса {@link Order}.
3363
3384
  *
@@ -3400,7 +3421,7 @@ class jr extends We {
3400
3421
  this.products = (e.products ?? []).map((t) => new zr(t)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ne.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new f(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
3401
3422
  }
3402
3423
  }
3403
- class Cs extends Pe {
3424
+ class Cs extends Ae {
3404
3425
  /**
3405
3426
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
3406
3427
  *
@@ -3412,7 +3433,7 @@ class Cs extends Pe {
3412
3433
  getOrders(r, e, t) {
3413
3434
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, t, (n) => {
3414
3435
  const o = { ...n.data };
3415
- return o.data = o.data.map((l) => new We(l)), o;
3436
+ return o.data = o.data.map((l) => new ze(l)), o;
3416
3437
  });
3417
3438
  }
3418
3439
  /**
@@ -3458,10 +3479,10 @@ class Vr extends P {
3458
3479
  * Данные о последнем заказе клиента.
3459
3480
  */
3460
3481
  s(this, "lastOrder");
3461
- (t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new H(o))), e.lastOrder && (this.lastOrder = new Be(e.lastOrder)), (n = e.partnerGroups) != null && n.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new E(e.preferredDeliveryType));
3482
+ (t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new H(o))), e.lastOrder && (this.lastOrder = new We(e.lastOrder)), (n = e.partnerGroups) != null && n.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new V(e.preferredDeliveryType));
3462
3483
  }
3463
3484
  }
3464
- var ze = /* @__PURE__ */ ((i) => (i.BeginWith = "bw", i.Contains = "cn", i.Custom = "custom", i.EndsWith = "ew", i.Equals = "eq", i.GreaterOrEqual = "ge", i.GreaterThan = "gt", i.InList = "in", i.LessOrEqual = "le", i.LessThan = "lt", i.NotBeginWith = "bn", i.NotContains = "nc", i.NotEndsWith = "en", i.NotEqual = "ne", i.NotInList = "ni", i.NotNull = "nn", i.Null = "nu", i))(ze || {});
3485
+ var je = /* @__PURE__ */ ((i) => (i.BeginWith = "bw", i.Contains = "cn", i.Custom = "custom", i.EndsWith = "ew", i.Equals = "eq", i.GreaterOrEqual = "ge", i.GreaterThan = "gt", i.InList = "in", i.LessOrEqual = "le", i.LessThan = "lt", i.NotBeginWith = "bn", i.NotContains = "nc", i.NotEndsWith = "en", i.NotEqual = "ne", i.NotInList = "ni", i.NotNull = "nn", i.Null = "nu", i))(je || {});
3465
3486
  class Er {
3466
3487
  /**
3467
3488
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
@@ -3535,7 +3556,7 @@ class Rs {
3535
3556
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
3536
3557
  }
3537
3558
  }
3538
- class Ds extends Pe {
3559
+ class Ds extends Ae {
3539
3560
  /**
3540
3561
  * Возвращает данные об указанном клиенте.
3541
3562
  *
@@ -3543,7 +3564,7 @@ class Ds extends Pe {
3543
3564
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
3544
3565
  */
3545
3566
  getClient(r) {
3546
- return this.get(`/internal/clients/${r}`, {}, (e) => new Te(e.data));
3567
+ return this.get(`/internal/clients/${r}`, {}, (e) => new _e(e.data));
3547
3568
  }
3548
3569
  /**
3549
3570
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -3556,7 +3577,7 @@ class Ds extends Pe {
3556
3577
  getClientsList(r, e, t) {
3557
3578
  return this.getPaginated("/internal/clients", r, e, t, (n) => {
3558
3579
  const o = { ...n.data };
3559
- return o.data = o.data.map((l) => new Ae(l)), o;
3580
+ return o.data = o.data.map((l) => new $e(l)), o;
3560
3581
  });
3561
3582
  }
3562
3583
  /**
@@ -3569,7 +3590,7 @@ class Ds extends Pe {
3569
3590
  return this.getClientsList({
3570
3591
  groupOp: "and",
3571
3592
  groups: [],
3572
- filters: [{ field: "phone", op: ze.Contains, value: r }]
3593
+ filters: [{ field: "phone", op: je.Contains, value: r }]
3573
3594
  });
3574
3595
  }
3575
3596
  /**
@@ -3624,7 +3645,7 @@ class Ds extends Pe {
3624
3645
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
3625
3646
  preferred_warehouse_id: (t = r.preferredWarehouse) == null ? void 0 : t.id
3626
3647
  },
3627
- (n) => new Te(n.data),
3648
+ (n) => new _e(n.data),
3628
3649
  e
3629
3650
  );
3630
3651
  }
@@ -3811,7 +3832,7 @@ class Ds extends Pe {
3811
3832
  return this.post(
3812
3833
  `/internal/clients/${r}/contragents`,
3813
3834
  n,
3814
- (d) => ne.createInstance(d.data),
3835
+ (O) => ne.createInstance(O.data),
3815
3836
  t
3816
3837
  );
3817
3838
  }
@@ -3903,7 +3924,7 @@ class Ds extends Pe {
3903
3924
  return this.patch(
3904
3925
  `/internal/clients/${r}/contragents/${e.id}`,
3905
3926
  n,
3906
- (d) => ne.createInstance(d.data),
3927
+ (O) => ne.createInstance(O.data),
3907
3928
  t
3908
3929
  );
3909
3930
  }
@@ -4360,24 +4381,24 @@ class $s {
4360
4381
  * Для пересчета в JavaScript Unix Timestamp значение необходимо умножить на 1000.
4361
4382
  */
4362
4383
  static defaultDateRanges() {
4363
- const r = [0, 6].includes(tr(he())) ? nr(me()) : he();
4384
+ const r = [0, 6].includes(nr(he())) ? ir(me()) : he();
4364
4385
  return {
4365
4386
  // 'Следующий рабочий день' - это значение по-умолчанию
4366
- nextWorkingDay: { label: "Следующий рабочий день", from: k(pr(r)), to: k(ur(r)) },
4367
- today: { label: "Сегодня", from: k(me()), to: k(lr()) },
4368
- yesterday: { label: "Вчера", from: k(cr()), to: k(or()) },
4369
- tomorrow: { label: "Завтра", from: k(he()), to: k(ir()) }
4387
+ nextWorkingDay: { label: "Следующий рабочий день", from: k(hr(r)), to: k(pr(r)) },
4388
+ today: { label: "Сегодня", from: k(me()), to: k(ur()) },
4389
+ yesterday: { label: "Вчера", from: k(lr()), to: k(cr()) },
4390
+ tomorrow: { label: "Завтра", from: k(he()), to: k(or()) }
4370
4391
  };
4371
4392
  }
4372
4393
  }
4373
- const j = class j {
4394
+ const z = class z {
4374
4395
  /**
4375
4396
  * Устанавливает список единиц измерения линейной величины.
4376
4397
  *
4377
4398
  * @param linearValues Список единиц измерения линейной величины.
4378
4399
  */
4379
4400
  static setLinearValues(r) {
4380
- j.linearValues = r;
4401
+ z.linearValues = r;
4381
4402
  }
4382
4403
  /**
4383
4404
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
@@ -4385,7 +4406,7 @@ const j = class j {
4385
4406
  * @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
4386
4407
  */
4387
4408
  static productIsMeasurable(r) {
4388
- return j.linearValues.includes(r.unit);
4409
+ return z.linearValues.includes(r.unit);
4389
4410
  }
4390
4411
  /**
4391
4412
  * Возвращает кратность количества для указанного товара.
@@ -4394,7 +4415,7 @@ const j = class j {
4394
4415
  */
4395
4416
  static getProductMultiplicity(r) {
4396
4417
  var e, t;
4397
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !j.productIsMeasurable(r) ? r.properties.minCount : 1;
4418
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !z.productIsMeasurable(r) ? r.properties.minCount : 1;
4398
4419
  }
4399
4420
  /**
4400
4421
  * Возвращает кратность длины для указанного товара.
@@ -4409,8 +4430,8 @@ const j = class j {
4409
4430
  /**
4410
4431
  * Список единиц измерения линейной величины.
4411
4432
  */
4412
- s(j, "linearValues", ["пог.м.", "м.", "м2"]);
4413
- let Se = j;
4433
+ s(z, "linearValues", ["пог.м.", "м.", "м2"]);
4434
+ let Le = z;
4414
4435
  class bs {
4415
4436
  /**
4416
4437
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
@@ -4434,7 +4455,7 @@ class Kr extends p {
4434
4455
  getManagers() {
4435
4456
  const r = "/internal/managers", e = p.getCachedResponse(r);
4436
4457
  return e ? Promise.resolve(e) : this.get(r).then((t) => {
4437
- const n = t.data.map((o) => De.instanceInitializer(pe, o));
4458
+ const n = t.data.map((o) => Pe.instanceInitializer(pe, o));
4438
4459
  return n && this.cacheResponse(r, n), n;
4439
4460
  });
4440
4461
  }
@@ -4457,7 +4478,7 @@ class Jr {
4457
4478
  this.name = r.name, this.content = r.content;
4458
4479
  }
4459
4480
  }
4460
- class _e {
4481
+ class ae {
4461
4482
  /**
4462
4483
  * Инициализирует экземпляр класса {@link Seo}.
4463
4484
  *
@@ -4493,7 +4514,7 @@ class _e {
4493
4514
  */
4494
4515
  s(this, "meta");
4495
4516
  var e;
4496
- this.resourceType = new Ue(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((t) => new Jr(t))) ?? [];
4517
+ this.resourceType = new qe(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new Jr(t))) ?? [];
4497
4518
  }
4498
4519
  }
4499
4520
  class Ts extends p {
@@ -4504,7 +4525,7 @@ class Ts extends p {
4504
4525
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
4505
4526
  */
4506
4527
  getResourceSeoData(r, e) {
4507
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new _e(t.data));
4528
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new ae(t.data));
4508
4529
  }
4509
4530
  /**
4510
4531
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -4515,7 +4536,7 @@ class Ts extends p {
4515
4536
  * в случае ошибок в запросах.
4516
4537
  */
4517
4538
  saveResourceSeoData(r, e = {}) {
4518
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new _e(t.data), e);
4539
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new ae(t.data), e);
4519
4540
  }
4520
4541
  /**
4521
4542
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -4528,7 +4549,7 @@ class Ts extends p {
4528
4549
  }
4529
4550
  }
4530
4551
  const v = oe("__references_private", () => {
4531
- const i = w({}), r = w(void 0), e = w(void 0), t = w(void 0), n = w(void 0), o = w(void 0), l = w(void 0), u = w(void 0), g = w(void 0), y = w(void 0), A = w(void 0), S = w(void 0), _ = w(void 0), L = w(void 0), a = w(void 0), I = w(void 0), d = w(void 0), c = w(void 0);
4552
+ const i = w({}), r = w(void 0), e = w(void 0), t = w(void 0), n = w(void 0), o = w(void 0), l = w(void 0), u = w(void 0), g = w(void 0), y = w(void 0), A = w(void 0), S = w(void 0), _ = w(void 0), L = w(void 0), a = w(void 0), I = w(void 0), O = w(void 0), c = w(void 0);
4532
4553
  return {
4533
4554
  /**
4534
4555
  * Список загружаемых/загруженных на данный момент значений.
@@ -4597,7 +4618,7 @@ const v = oe("__references_private", () => {
4597
4618
  /**
4598
4619
  * Справочник типов свойств.
4599
4620
  */
4600
- propertyTypesReference: d,
4621
+ propertyTypesReference: O,
4601
4622
  /**
4602
4623
  * Справочник коэффициентов цен.
4603
4624
  */
@@ -4684,7 +4705,7 @@ const v = oe("__references_private", () => {
4684
4705
  return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, p.getInstance(R).getPropertyTypes().then((h) => {
4685
4706
  c.propertyTypesReference = h;
4686
4707
  }).catch(m)), c.propertyTypesReference;
4687
- }), d = C(() => {
4708
+ }), O = C(() => {
4688
4709
  const c = v();
4689
4710
  return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(R).getPriceCoefficients().then((h) => {
4690
4711
  c.priceCoefficientsReference = h;
@@ -4758,7 +4779,7 @@ const v = oe("__references_private", () => {
4758
4779
  /**
4759
4780
  * Справочник коэффициентов цен.
4760
4781
  */
4761
- priceCoefficientsReference: d
4782
+ priceCoefficientsReference: O
4762
4783
  };
4763
4784
  }), Qr = oe("__user_state_private", () => {
4764
4785
  const i = w({}), r = w(void 0);
@@ -4778,7 +4799,7 @@ const v = oe("__references_private", () => {
4778
4799
  */
4779
4800
  currentUser: C(() => {
4780
4801
  const r = Qr();
4781
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(qr).getCurrentUser().then((e) => {
4802
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(Gr).getCurrentUser().then((e) => {
4782
4803
  r.currentUser = e;
4783
4804
  }).catch(m).finally(m)), r.currentUser;
4784
4805
  })
@@ -4854,68 +4875,68 @@ class as {
4854
4875
  }
4855
4876
  }
4856
4877
  export {
4857
- ar as AnyReference,
4878
+ Ir as AnyReference,
4858
4879
  ns as AppBaseConfig,
4859
- O as AppConfigProvider,
4880
+ d as AppConfigProvider,
4860
4881
  Ce as BankAccount,
4861
- Pe as BasePaginationProvider,
4882
+ Ae as BasePaginationProvider,
4862
4883
  X as Cart,
4863
- Cr as CartItem,
4864
- wr as CartItemBase,
4884
+ vr as CartItem,
4885
+ Cr as CartItemBase,
4865
4886
  is as CartProvider,
4866
4887
  ls as CatalogProvider,
4867
- ae as CatalogableItem,
4888
+ xe as CatalogableItem,
4868
4889
  U as Category,
4869
- Mr as CategoryPricingRole,
4870
- de as ChannelPrimaryInterest,
4890
+ Se as CategoryPricingRule,
4891
+ Ue as ChannelPrimaryInterest,
4871
4892
  cs as City,
4872
4893
  se as CityWithRegionAndCountry,
4873
- Te as Client,
4894
+ _e as Client,
4874
4895
  Vr as ClientAdditionalData,
4875
4896
  re as ClientCategory,
4876
4897
  Ds as ClientDataProvider,
4877
4898
  ue as ClientProduct,
4878
4899
  hs as ClientProductCategoryDataProvider,
4879
4900
  gs as ClientProductDataProvider,
4880
- Ae as ClientShortInfo,
4901
+ $e as ClientShortInfo,
4881
4902
  Hr as ClientsAdditionalDataRequestTypeEnum,
4882
4903
  ws as ClientsListFilters,
4883
4904
  As as ConfiguratorProvider,
4884
4905
  ve as Contact,
4885
- _r as ContactLinks,
4906
+ Lr as ContactLinks,
4886
4907
  H as ContactPerson,
4887
4908
  Wr as ContactPersonRelated,
4888
- Ir as ContactPosition,
4909
+ xr as ContactPosition,
4889
4910
  ge as ContactRelation,
4890
- Me as ContragentBase,
4911
+ He as ContragentBase,
4891
4912
  ne as ContragentFactory,
4892
- He as ContragentIc,
4913
+ Fe as ContragentIc,
4893
4914
  Fr as ContragentPerson,
4894
4915
  Br as ContragentUlNr,
4895
- Fe as ContragentUlR,
4896
- ke as CostSourceEnum,
4897
- K as Country,
4916
+ Be as ContragentUlR,
4917
+ Ne as CostSourceEnum,
4918
+ E as Country,
4898
4919
  te as Currency,
4899
4920
  Ls as DataSuggestionProvider,
4900
4921
  vs as DataTablePagination,
4901
4922
  Er as DataTablePaginationRequestParams,
4902
4923
  Rs as DataTableSortRequestParams,
4903
4924
  $s as DateTimeProvider,
4904
- br as DeletableNamedIdentity,
4925
+ Tr as DeletableNamedIdentity,
4905
4926
  ie as DeliveryAddress,
4906
- E as DeliveryType,
4907
- vr as DeviceTypeResolutionConfig,
4908
- Tr as DiscountShortInfo,
4927
+ V as DeliveryType,
4928
+ Rr as DeviceTypeResolutionConfig,
4929
+ Sr as DiscountShortInfo,
4909
4930
  as as FieldValidationResultData,
4910
- ze as FilterOpEnum,
4911
- xe as GeoCoordinates,
4912
- fr as HiddenCatalogableItem,
4931
+ je as FilterOpEnum,
4932
+ ke as GeoCoordinates,
4933
+ yr as HiddenCatalogableItem,
4913
4934
  we as HttpBaseCachedRequester,
4914
4935
  ye as HttpBaseRequester,
4915
- Rr as HttpParamsConfig,
4936
+ Dr as HttpParamsConfig,
4916
4937
  p as HttpRequester,
4917
- J as Identity,
4918
- yr as Image,
4938
+ K as Identity,
4939
+ wr as Image,
4919
4940
  pe as Manager,
4920
4941
  ee as ManagerCommon,
4921
4942
  bs as ManagerDataFactory,
@@ -4925,53 +4946,53 @@ export {
4925
4946
  G as Opf,
4926
4947
  $ as OpfEnum,
4927
4948
  jr as Order,
4928
- We as OrderInfo,
4929
- xr as OrderPaymentStatus,
4949
+ ze as OrderInfo,
4950
+ kr as OrderPaymentStatus,
4930
4951
  zr as OrderProduct,
4931
- Be as OrderShortInfo,
4932
- kr as OrderStatus,
4952
+ We as OrderShortInfo,
4953
+ Nr as OrderStatus,
4933
4954
  Cs as OrdersDataProvider,
4934
4955
  M as PartnerGroup,
4935
- Nr as PaymentType,
4956
+ dr as PaymentType,
4936
4957
  os as PreferencesStorageProvider,
4937
- $r as PriceCoefficientEnum,
4938
- Sr as PriceTemplate,
4939
- B as PricingRole,
4958
+ br as PriceCoefficientEnum,
4959
+ _r as PriceTemplate,
4960
+ Q as PricingRole,
4940
4961
  ms as PricingRoleProvider,
4941
4962
  fe as PrimaryCatalogableItem,
4942
4963
  x as Product,
4943
4964
  us as ProductCategoryDataProvider,
4944
4965
  ps as ProductDataProvider,
4945
4966
  Or as ProductFileType,
4946
- Re as ProductPriceCoefficient,
4947
- Gr as ProductPriceHistory,
4967
+ De as ProductPriceCoefficient,
4968
+ Mr as ProductPriceHistory,
4948
4969
  fs as PropertiesProvider,
4949
- Q as Property,
4970
+ J as Property,
4950
4971
  Oe as PropertyType,
4951
- Ar as PropertyTypeEnum,
4972
+ $r as PropertyTypeEnum,
4952
4973
  F as PropertyValue,
4953
4974
  ys as RecommendationsDataProvider,
4954
- be as RecommendationsList,
4975
+ Te as RecommendationsList,
4955
4976
  f as Reference,
4956
4977
  R as ReferenceDataProvider,
4957
4978
  Y as Region,
4958
- Ue as ResourceType,
4979
+ qe as ResourceType,
4959
4980
  T as SalesDirection,
4960
- Dr as SentryConfig,
4961
- _e as Seo,
4981
+ Pr as SentryConfig,
4982
+ ae as Seo,
4962
4983
  Ts as SeoDataProvider,
4963
- qe as SourcePrimaryInterest,
4964
- mr as StockCount,
4965
- De as TypedInstanceFactory,
4966
- Se as UnitsHelper,
4984
+ Ge as SourcePrimaryInterest,
4985
+ fr as StockCount,
4986
+ Pe as TypedInstanceFactory,
4987
+ Le as UnitsHelper,
4967
4988
  Ps as UnknownClientDataProvider,
4968
- Ne as UpdatableNamedIdentity,
4969
- Ur as User,
4970
- Ge as UserCommonInfo,
4971
- qr as UserDataProvider,
4989
+ de as UpdatableNamedIdentity,
4990
+ qr as User,
4991
+ Me as UserCommonInfo,
4992
+ Gr as UserDataProvider,
4972
4993
  q as UserShortInfo,
4973
- dr as UserTypeEnum,
4974
- Pr as VersionConfig,
4994
+ Ur as UserTypeEnum,
4995
+ Ar as VersionConfig,
4975
4996
  le as Warehouse,
4976
4997
  Ss as useReferencesStore,
4977
4998
  _s as useUserStateStore