@snabcentr/common-lib 1.65.2 → 1.66.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.
@@ -1,14 +1,14 @@
1
- var ur = Object.defineProperty;
2
- var pr = (n, r, e) => r in n ? ur(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => pr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as je } from "jwt-decode";
5
- import { merge as We, isNil as U, toUpper as hr, constant as gr, isUndefined as mr, isString as f, cloneDeep as fr, noop as m, toLower as yr, isFunction as _e, isEmpty as Se, map as le, forEach as wr, isDate as Cr, isArray as Ee, omitBy as vr, isObject as Pr } from "lodash-es";
6
- import { objectToCamel as Ie, objectToSnake as Oe } from "ts-case-convert";
7
- import { parseISO as y, format as z, isAfter as Rr, startOfToday as Ve, addSeconds as Ar, addBusinessDays as Dr, endOfTomorrow as ar, startOfTomorrow as $r, endOfYesterday as Tr, startOfYesterday as br, endOfToday as _r, endOfDay as Sr, startOfDay as Ir } from "date-fns";
8
- import Lr from "axios";
9
- import { defineStore as fe } from "pinia";
10
- import { ref as C, computed as v } from "vue";
11
- class ue {
1
+ var hr = Object.defineProperty;
2
+ var gr = (n, r, e) => r in n ? hr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => gr(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as Ve } from "jwt-decode";
5
+ import { merge as Ee, isNil as U, toUpper as mr, constant as fr, isUndefined as yr, isString as m, cloneDeep as wr, noop as w, toLower as Cr, isFunction as Se, isEmpty as Le, map as ue, forEach as vr, isDate as Pr, isArray as Je, omitBy as Rr, isObject as Ar } from "lodash-es";
6
+ import { objectToCamel as Ie, objectToSnake as qe } from "ts-case-convert";
7
+ import { parseISO as f, format as z, isAfter as Dr, startOfToday as Ke, addSeconds as $r, addBusinessDays as ar, endOfTomorrow as Tr, startOfTomorrow as br, endOfYesterday as _r, startOfYesterday as Sr, endOfToday as Lr, endOfDay as Ir, startOfDay as xr } from "date-fns";
8
+ import { defineStore as ye } from "pinia";
9
+ import { ref as y, computed as v } from "vue";
10
+ import kr from "axios";
11
+ class pe {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -99,7 +99,7 @@ class ue {
99
99
  * @inheritDoc
100
100
  */
101
101
  t(this, "email", "");
102
- We(this, r);
102
+ Ee(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -107,10 +107,10 @@ class ue {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- return new ue(Ie(je(r)));
110
+ return new pe(Ie(Ve(r)));
111
111
  }
112
112
  }
113
- class At extends ue {
113
+ class Dt extends pe {
114
114
  /**
115
115
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
116
116
  *
@@ -142,7 +142,7 @@ class At extends ue {
142
142
  * @inheritDoc
143
143
  */
144
144
  t(this, "address");
145
- We(this, e);
145
+ Ee(this, e);
146
146
  }
147
147
  /**
148
148
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -150,7 +150,7 @@ class At extends ue {
150
150
  * @param jwtToken JWT-ключ доступа.
151
151
  */
152
152
  static getJwtPayload(e) {
153
- return new ue(Ie(je(e)));
153
+ return new pe(Ie(Ve(e)));
154
154
  }
155
155
  }
156
156
  class B {
@@ -178,7 +178,7 @@ class B {
178
178
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : U(this.id);
179
179
  }
180
180
  }
181
- class $ extends B {
181
+ class a extends B {
182
182
  /**
183
183
  * Инициализирует экземпляр класса {@link NamedIdentity}.
184
184
  *
@@ -193,7 +193,7 @@ class $ extends B {
193
193
  this.name = (e == null ? void 0 : e.name) ?? "";
194
194
  }
195
195
  }
196
- class Je extends $ {
196
+ class Qe extends a {
197
197
  /**
198
198
  * Инициализирует экземпляр класса {@link CatalogableItem}.
199
199
  *
@@ -216,7 +216,7 @@ class Je extends $ {
216
216
  this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
217
217
  }
218
218
  }
219
- class $e extends Je {
219
+ class Te extends Qe {
220
220
  /**
221
221
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
222
222
  *
@@ -231,7 +231,7 @@ class $e extends Je {
231
231
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
232
232
  }
233
233
  }
234
- class ne extends $e {
234
+ class ne extends Te {
235
235
  /**
236
236
  * Инициализирует экземпляр класса {@link BaseCategory}.
237
237
  *
@@ -255,11 +255,11 @@ class ne extends $e {
255
255
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
256
256
  */
257
257
  t(this, "currencyRates");
258
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [hr(s), i])) : void 0;
258
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [mr(s), i])) : void 0;
259
259
  }
260
260
  }
261
- var Ke = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Ke || {});
262
- class w extends $ {
261
+ var Ye = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Ye || {});
262
+ class C extends a {
263
263
  /**
264
264
  * Инициализирует экземпляр класса {@link Reference}.
265
265
  *
@@ -278,15 +278,15 @@ class w extends $ {
278
278
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
279
279
  }
280
280
  }
281
- class ye extends w {
281
+ class we extends C {
282
282
  /**
283
283
  * Возвращает значение справочника коэффициента розничной цены.
284
284
  */
285
285
  static getRetailPriceCoefficient() {
286
- return { id: -2, slug: Ke.Retail, name: "Розн. цена", guid: "", isNewRec: gr(!0) };
286
+ return { id: -2, slug: Ye.Retail, name: "Розн. цена", guid: "", isNewRec: fr(!0) };
287
287
  }
288
288
  }
289
- class Le {
289
+ class xe {
290
290
  /**
291
291
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
292
292
  *
@@ -313,10 +313,10 @@ class Le {
313
313
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
314
314
  */
315
315
  t(this, "readOnly");
316
- this.coefficient = new ye(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;
316
+ this.coefficient = new we(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;
317
317
  }
318
318
  }
319
- class Qe {
319
+ class Xe {
320
320
  /**
321
321
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
322
322
  *
@@ -334,9 +334,9 @@ class Qe {
334
334
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
335
335
  }
336
336
  }
337
- class J extends w {
337
+ class J extends C {
338
338
  }
339
- class we extends w {
339
+ class Ce extends C {
340
340
  /**
341
341
  * Инициализирует экземпляр класса {@link Warehouse}.
342
342
  *
@@ -365,10 +365,10 @@ class we extends w {
365
365
  * Координаты склада.
366
366
  */
367
367
  t(this, "coordinates");
368
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new J(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Qe(e == null ? void 0 : e.coordinates);
368
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new J(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Xe(e == null ? void 0 : e.coordinates);
369
369
  }
370
370
  }
371
- class xr {
371
+ class dr {
372
372
  /**
373
373
  * Инициализирует экземпляр класса {@link StockCount}.
374
374
  *
@@ -383,7 +383,7 @@ class xr {
383
383
  * Количество остатков товара на складе.
384
384
  */
385
385
  t(this, "count");
386
- this.warehouse = new we(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
386
+ this.warehouse = new Ce(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
387
387
  }
388
388
  }
389
389
  const W = class W {
@@ -400,7 +400,7 @@ const W = class W {
400
400
  */
401
401
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
402
402
  static getConfig() {
403
- if (mr(W.config))
403
+ if (yr(W.config))
404
404
  throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
405
405
  return W.config;
406
406
  }
@@ -422,8 +422,8 @@ const W = class W {
422
422
  * Конфигурация приложения.
423
423
  */
424
424
  t(W, "config");
425
- let a = W;
426
- class kr extends Je {
425
+ let $ = W;
426
+ class Nr extends Qe {
427
427
  /**
428
428
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
429
429
  *
@@ -438,7 +438,7 @@ class kr extends Je {
438
438
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
439
439
  }
440
440
  }
441
- class dr {
441
+ class Or {
442
442
  /**
443
443
  * Инициализирует экземпляр класса {@link Image}.
444
444
  *
@@ -461,7 +461,7 @@ class dr {
461
461
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
462
462
  }
463
463
  }
464
- class b extends kr {
464
+ class b extends Nr {
465
465
  /**
466
466
  * Инициализирует экземпляр класса {@link Product}.
467
467
  *
@@ -546,16 +546,16 @@ class b extends kr {
546
546
  * Список коэффициентов цен на продукт.
547
547
  */
548
548
  t(this, "priceCoefficients");
549
- 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 = f(e == null ? void 0 : e.costDate) ? y(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((p) => new xr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
549
+ 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((p) => new dr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
550
550
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
551
- s && (this.category = new $e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new $e(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new dr(p, a.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Le(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
551
+ s && (this.category = new Te({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Te(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Or(p, $.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new xe(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
552
552
  }
553
553
  /**
554
554
  * Возвращает признак, что это измеряемый товар.
555
555
  */
556
556
  getIsMeasurable() {
557
557
  var s;
558
- const e = (s = a.getConfig().catalog) == null ? void 0 : s.products.units;
558
+ const e = (s = $.getConfig().catalog) == null ? void 0 : s.products.units;
559
559
  return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
560
560
  }
561
561
  /**
@@ -571,7 +571,7 @@ class b extends kr {
571
571
  return this.retailCostRub ?? this.costRub;
572
572
  }
573
573
  }
574
- class Nr extends B {
574
+ class qr extends B {
575
575
  /**
576
576
  * Инициализирует экземпляр класса {@link CartItemBase}.
577
577
  *
@@ -623,10 +623,10 @@ class Nr extends B {
623
623
  * Признак того, что позиция является дополнительной продажей.
624
624
  */
625
625
  t(this, "isAdditionalSale");
626
- this.product = new b(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ne(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && fr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
626
+ this.product = new b(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ne(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && wr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
627
627
  }
628
628
  }
629
- class Or extends Nr {
629
+ class Ur extends qr {
630
630
  /**
631
631
  * Инициализирует экземпляр класса {@link CartItem}.
632
632
  *
@@ -695,171 +695,131 @@ class ce {
695
695
  * Список итоговых сумм по направлениям продаж.
696
696
  */
697
697
  t(this, "directionsSum");
698
- this.items = r.items.map((e) => new Or(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
698
+ this.items = r.items.map((e) => new Ur(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
699
699
  }
700
700
  }
701
- class qr {
702
- /**
703
- * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
704
- *
705
- * @param data Данные для первоначальной инициализации.
706
- */
707
- constructor(r) {
708
- /**
709
- * Максимальное разрешение для распознания мобильного телефона.
710
- */
711
- t(this, "phone");
712
- /**
713
- * Минимальное разрешение для распознания планшета.
714
- */
715
- t(this, "tablet");
716
- /**
717
- * Минимальное разрешение для распознания компьютера.
718
- */
719
- t(this, "laptop");
720
- 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;
721
- }
701
+ class S extends C {
722
702
  }
723
- class Ur {
703
+ class Ze extends a {
724
704
  /**
725
- * Инициализирует экземпляр класса {@link HttpParamsConfig}.
705
+ * Инициализирует экземпляр класса {@link UserCommonInfo}.
726
706
  *
727
707
  * @param data Данные для первоначальной инициализации.
728
708
  */
729
- constructor(r) {
730
- /**
731
- * @inheritDoc
732
- */
733
- t(this, "portalApiUrl");
734
- /**
735
- * @inheritDoc
736
- */
737
- t(this, "mediaUrl");
709
+ constructor(e) {
710
+ super(e);
738
711
  /**
739
- * @inheritDoc
712
+ * Номер телефона. В формате "79203436527" или "+79203436527".
740
713
  */
741
- t(this, "responseDataCacheTimeout");
742
- this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
743
- }
744
- }
745
- class Gr {
746
- /**
747
- * Инициализирует экземпляр класса {@link SentryConfig}.
748
- *
749
- * @param data Данные для первоначальной инициализации.
750
- */
751
- constructor(r) {
714
+ t(this, "phone");
752
715
  /**
753
- * DSN подключения к Sentry.
716
+ * Адрес электронной почты.
754
717
  */
755
- t(this, "dsn");
718
+ t(this, "email");
756
719
  /**
757
- * Тип окружения.
720
+ * Признак подписки на новости и информационные сообщения.
758
721
  */
759
- t(this, "environment");
722
+ t(this, "getNews");
760
723
  /**
761
- * Список игнорируемых ошибок.
724
+ * Направление продаж.
762
725
  */
763
- t(this, "ignoreErrors");
726
+ t(this, "salesDirection");
764
727
  /**
765
- * Настройки трассировкии событий.
728
+ * Дата и время регистрации пользователя.
766
729
  */
767
- t(this, "trace");
730
+ t(this, "createdAt");
768
731
  /**
769
- * Настройки записей сеансов.
732
+ * Дата и время последней аутентификации пользователя.
770
733
  */
771
- t(this, "replay");
734
+ t(this, "lastLoginAt");
772
735
  /**
773
- * Дополнительные параметры.
736
+ * Признак активности учетной записи пользователя.
774
737
  */
775
- t(this, "additionalParams");
776
- var e, s, i, o;
777
- this.dsn = (r == null ? void 0 : r.dsn) ?? "", this.environment = (r == null ? void 0 : r.environment) ?? "production", this.ignoreErrors = (r == null ? void 0 : r.ignoreErrors) ?? [
778
- /Network\s{1,3}Error/,
779
- /Request\s{1,3}aborted/,
780
- /Request\s{1,3}failed\s{1,3}with\s{1,3}status\s{1,3}code\s{1,3}(401|403|422)/
781
- ], this.trace = {
782
- allowedTargets: ((e = r == null ? void 0 : r.trace) == null ? void 0 : e.allowedTargets) ?? [/^\//],
783
- sampleRate: ((s = r == null ? void 0 : r.trace) == null ? void 0 : s.sampleRate) ?? 0
784
- }, this.replay = {
785
- replaysOnErrorSampleRate: ((i = r == null ? void 0 : r.replay) == null ? void 0 : i.replaysOnErrorSampleRate) ?? 0,
786
- replaysSessionSampleRate: ((o = r == null ? void 0 : r.replay) == null ? void 0 : o.replaysSessionSampleRate) ?? 0
787
- }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
738
+ t(this, "isActive");
739
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new S(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
788
740
  }
789
741
  }
790
- class Mr {
742
+ class Gr extends Ze {
791
743
  /**
792
- * Инициализирует экземпляр класса {@link VersionConfig}.
744
+ * Инициализирует экземпляр класса {@link User}.
793
745
  *
794
746
  * @param data Данные для первоначальной инициализации.
795
747
  */
796
- constructor(r) {
748
+ constructor(e) {
749
+ super(e);
797
750
  /**
798
- * Дата релиза текущей версии приложения.
751
+ * Тип пользователя.
799
752
  */
800
- t(this, "date");
753
+ t(this, "type");
801
754
  /**
802
- * Название релиза.
755
+ * Признак того, что менеджер может работать с рекламациями.
803
756
  */
804
- t(this, "name");
757
+ t(this, "canDoReclamations");
805
758
  /**
806
- * Текущая версия приложения.
759
+ * URI путь к фотографии пользователя.
807
760
  */
808
- t(this, "version");
809
- this.date = f(r == null ? void 0 : r.date) ? y(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";
761
+ t(this, "photo");
762
+ 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;
810
763
  }
811
764
  }
812
- class Dt {
765
+ class Mr extends h {
813
766
  /**
814
- * Инициализирует экземпляр класса {@link AppBaseConfig}.
815
- *
816
- * @param data Данные для первоначальной инициализации.
767
+ * Возвращает данные о текущем пользователе.
817
768
  */
818
- constructor(r) {
819
- /**
820
- * Тип окружения.
821
- */
822
- t(this, "environment");
823
- /**
824
- * Параметры разработки и отладки.
825
- */
826
- t(this, "devMode");
769
+ // eslint-disable-next-line class-methods-use-this
770
+ getCurrentUser() {
771
+ return this.get("/internal/users/info", {}, (r) => new Gr(r.data));
772
+ }
773
+ }
774
+ const le = ye("__user_state_private", () => {
775
+ var s;
776
+ const n = y({}), r = y(Promise.resolve((s = $.getConfig().devMode) == null ? void 0 : s.initAuthBearerToken)), e = y(void 0);
777
+ return {
827
778
  /**
828
- * Параметры HTTP-запросов.
779
+ * Список загружаемых/загруженных на данный момент значений.
829
780
  */
830
- t(this, "http");
781
+ dataLoaderList: n,
831
782
  /**
832
- * Список условного отношения разрешения экрана и типа устройств.
783
+ * {@link Promise<string>} для получения ключа доступа к системам.
833
784
  */
834
- t(this, "deviceTypeByResolution");
785
+ accessTokenPromise: r,
835
786
  /**
836
- * Настройки системы журналирования ошибок Sentry.
787
+ * Данные о текущем пользователе.
837
788
  */
838
- t(this, "sentry");
789
+ currentUser: e
790
+ };
791
+ }), Ue = ye("user_state", () => {
792
+ const n = v({
793
+ get() {
794
+ return le().accessTokenPromise;
795
+ },
796
+ set(s) {
797
+ le().accessTokenPromise = s;
798
+ }
799
+ }), r = () => {
800
+ le().accessTokenPromise = void 0;
801
+ }, e = v(() => {
802
+ const s = le();
803
+ return !s.currentUser && !s.dataLoaderList.currentUser && (s.dataLoaderList.currentUser = !0, h.getInstance(Mr).getCurrentUser().then((i) => {
804
+ s.currentUser = i;
805
+ }).catch(w).finally(w)), s.currentUser;
806
+ });
807
+ return {
839
808
  /**
840
- * Список дополнительных URL-адресов.
809
+ * {@link Promise<string>} для получения ключа доступа к системам.
841
810
  */
842
- t(this, "urls");
811
+ accessTokenPromise: n,
843
812
  /**
844
- * Данные о текущем выпуске приложения.
813
+ * Выполняет очистку ключа доступа к системам.
845
814
  */
846
- t(this, "version");
815
+ invalidateJwtAccessToken: r,
847
816
  /**
848
- * Форматы дат.
817
+ * Данные о текущем пользователе.
849
818
  */
850
- t(this, "dateFormats");
851
- var e, s, i;
852
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Ur(r == null ? void 0 : r.http), this.deviceTypeByResolution = new qr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Gr({
853
- environment: this.environment,
854
- ...r == null ? void 0 : r.sentry
855
- }), this.urls = r == null ? void 0 : r.urls, this.version = new Mr(r == null ? void 0 : r.version), this.dateFormats = {
856
- api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
857
- uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
858
- uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
859
- };
860
- }
861
- }
862
- class xe {
819
+ currentUser: e
820
+ };
821
+ });
822
+ class ke {
863
823
  /**
864
824
  * Инициализирует экземпляр указанного класса.
865
825
  *
@@ -888,51 +848,31 @@ const _ = class _ {
888
848
  */
889
849
  t(this, "httpClient");
890
850
  /**
891
- * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы текущего экземпляра класса.
892
- *
893
- * Параметры:
894
- * - error Данные об ошибке.
895
- * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
896
- */
897
- t(this, "defaultInstanceNotificationErrorResponseHandler", m);
898
- /**
899
- * Возвращает базовый URL путь для выполнения запросов.
900
- */
901
- // eslint-disable-next-line class-methods-use-this
902
- t(this, "getBaseUrl", () => `${a.getConfig().http.portalApiUrl}/api`);
903
- /**
904
- * Возвращает токен доступа к системе.
851
+ * Базовый URL путь для выполнения запросов.
905
852
  */
906
- // eslint-disable-next-line class-methods-use-this
907
- t(this, "getAccessToken", () => {
908
- var s, i;
909
- let r;
910
- const e = a.getConfig();
911
- return (s = e.devMode) != null && s.authBearerToken && (r = (i = e.devMode) == null ? void 0 : i.authBearerToken), Promise.resolve(r);
912
- });
913
- /**
914
- * Функция обратного вызова для аннулирования токена доступа, если он приводит к ошибкам 401.
915
- */
916
- t(this, "invalidateAccessToken", m);
853
+ t(this, "baseUrl", `${$.getConfig().http.portalApiUrl}/api`);
917
854
  /**
918
- * Функция обратного вызова для обработки ошибок запросов.
855
+ * Обработчик ошибок выполнения запросов текущего экземпляра класса.
919
856
  *
920
857
  * @param error Данные об ошибке.
858
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
859
+ * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
921
860
  */
922
- t(this, "requestErrorHandler", m);
861
+ t(this, "errorResponseHandler", w);
923
862
  /**
924
863
  * Перехватчик запроса для установки URL для выполнения запросов.
925
864
  *
926
865
  * @param request Данные запроса.
927
866
  */
928
- t(this, "setBaseUrlRequestInterceptor", (r) => (r.baseURL = this.getBaseUrl(), r));
867
+ t(this, "setBaseUrlRequestInterceptor", (r) => (r.baseURL = this.baseUrl, r));
929
868
  /**
930
869
  * Перехватчик запроса для установки заголовков аутентификации.
931
870
  *
932
871
  * @param request Данные запроса.
933
872
  */
873
+ // eslint-disable-next-line class-methods-use-this
934
874
  t(this, "authRequestInterceptor", async (r) => {
935
- const e = await this.getAccessToken();
875
+ const e = await Ue().accessTokenPromise;
936
876
  return e && r.headers.set("Authorization", `Bearer ${e}`), r;
937
877
  });
938
878
  /**
@@ -941,7 +881,7 @@ const _ = class _ {
941
881
  * @param request Данные запроса.
942
882
  */
943
883
  // eslint-disable-next-line class-methods-use-this
944
- t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Oe(r.params)), ["put", "patch", "post"].includes(yr(r.method)) && r.data && (r.data = Oe(r.data))), r));
884
+ t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = qe(r.params)), ["put", "patch", "post"].includes(Cr(r.method)) && r.data && (r.data = qe(r.data))), r));
945
885
  /**
946
886
  * Перехватчик ошибок ответов на запрос.
947
887
  *
@@ -950,7 +890,7 @@ const _ = class _ {
950
890
  t(this, "authErrorsResponseInterceptors", (r) => {
951
891
  var s;
952
892
  const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
953
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (this.invalidateAccessToken(), e.__isRetryRequest = !0, this.httpClient(e)) : (this.requestErrorHandler(r), Promise.reject(r));
893
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Ue().invalidateJwtAccessToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
954
894
  });
955
895
  /**
956
896
  * Перехватчик ответа для преобразования данных ответа на запрос.
@@ -959,10 +899,10 @@ const _ = class _ {
959
899
  */
960
900
  // eslint-disable-next-line class-methods-use-this
961
901
  t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ie(r.data)), r));
962
- const r = a.getConfig().version;
963
- this.defaultInstanceNotificationErrorResponseHandler = _.baseDefaultNotificationErrorResponseHandler, this.httpClient = Lr.create({
902
+ const r = $.getConfig().version;
903
+ this.errorResponseHandler = _.defaultErrorsResponseHandler, this.httpClient = kr.create({
964
904
  headers: {
965
- "APP-VERSION": `${r.name} (${r.version}, ${z(r.date, a.getConfig().dateFormats.uiDate)})`,
905
+ "APP-VERSION": `${r.name} (${r.version}, ${z(r.date, $.getConfig().dateFormats.uiDate)})`,
966
906
  Accept: "application/json",
967
907
  "Content-Type": "application/json"
968
908
  }
@@ -973,12 +913,12 @@ const _ = class _ {
973
913
  );
974
914
  }
975
915
  /**
976
- * Устанавливает обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
916
+ * Устанавливает базовый обработчик ошибок выполнения запросов.
977
917
  *
978
- * @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
918
+ * @param handler Ссылка на функцию-обработчик ошибок.
979
919
  */
980
- static setBaseDefaultNotificationErrorResponseHandler(r) {
981
- _.baseDefaultNotificationErrorResponseHandler = r;
920
+ static setDefaultErrorsResponseHandler(r) {
921
+ _.defaultErrorsResponseHandler = r;
982
922
  }
983
923
  /**
984
924
  * Возвращает экземпляр объекта текущего класса.
@@ -986,7 +926,7 @@ const _ = class _ {
986
926
  * @param type Тип данных, которыми оперирует метод.
987
927
  */
988
928
  static getInstance(r) {
989
- return Object.prototype.hasOwnProperty.call(_.instances, r.name) || (_.instances[r.name] = xe.simpleInstanceInitializer(r)), _.instances[r.name];
929
+ return Object.prototype.hasOwnProperty.call(_.instances, r.name) || (_.instances[r.name] = ke.simpleInstanceInitializer(r)), _.instances[r.name];
990
930
  }
991
931
  /**
992
932
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1012,12 +952,12 @@ const _ = class _ {
1012
952
  * @param config Параметры запроса.
1013
953
  * @param successHandler Функция обратного вызова для обработки данных при успешном выполнении запроса.
1014
954
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1015
- * @param disableDefaultNotificationErrorResponseHandler Признак необходимости отключить обработчик ошибок по умолчанию используемый для текущего экземпляра класса.
955
+ * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1016
956
  */
1017
957
  request(r, e = void 0, s = {}, i = !1) {
1018
958
  const o = this.httpClient.request(r).then((c) => e ? e(c) : c.data);
1019
- return i || o.catch((c) => {
1020
- this.defaultInstanceNotificationErrorResponseHandler(c, s);
959
+ return o.catch((c) => {
960
+ this.errorResponseHandler(c, s, i);
1021
961
  }), o;
1022
962
  }
1023
963
  /**
@@ -1026,7 +966,7 @@ const _ = class _ {
1026
966
  * @param url URL запроса.
1027
967
  * @param params Параметры запроса.
1028
968
  * @param successHandler Функция обратного вызова для обработки данных при успешном выполнении запроса.
1029
- * @param disableDefaultNotificationErrorResponseHandler Признак необходимости отключить обработчик ошибок по умолчанию используемый для текущего экземпляра класса.
969
+ * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1030
970
  */
1031
971
  get(r, e = {}, s = void 0, i = !1) {
1032
972
  return this.request({ method: "GET", url: r, params: e }, s, {}, i);
@@ -1037,7 +977,7 @@ const _ = class _ {
1037
977
  * @param url URL запроса.
1038
978
  * @param params Параметры запроса.
1039
979
  * @param successHandler Функция обратного вызова для обработки данных при успешном выполнении запроса.
1040
- * @param disableDefaultNotificationErrorResponseHandler Признак необходимости отключить обработчик ошибок по умолчанию используемый для текущего экземпляра класса.
980
+ * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1041
981
  */
1042
982
  getBlob(r, e = {}, s = void 0, i = !1) {
1043
983
  return this.request({ method: "GET", url: r, params: e, responseType: "blob" }, s, {}, i);
@@ -1049,7 +989,7 @@ const _ = class _ {
1049
989
  * @param data Данные запроса.
1050
990
  * @param successHandler Функция обратного вызова для обработки данных при успешном выполнении запроса.
1051
991
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1052
- * @param disableDefaultNotificationErrorResponseHandler Признак необходимости отключить обработчик ошибок по умолчанию используемый для текущего экземпляра класса.
992
+ * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1053
993
  */
1054
994
  patch(r, e = {}, s = void 0, i = {}, o = !1) {
1055
995
  return this.request({ method: "PATCH", url: r, data: e }, s, i, o);
@@ -1061,7 +1001,7 @@ const _ = class _ {
1061
1001
  * @param data Данные запроса.
1062
1002
  * @param successHandler Функция обратного вызова для обработки данных при успешном выполнении запроса.
1063
1003
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1064
- * @param disableDefaultNotificationErrorResponseHandler Признак необходимости отключить обработчик ошибок по умолчанию используемый для текущего экземпляра класса.
1004
+ * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1065
1005
  */
1066
1006
  post(r, e = {}, s = void 0, i = {}, o = !1) {
1067
1007
  return this.request({ method: "POST", url: r, data: e }, s, i, o);
@@ -1071,7 +1011,7 @@ const _ = class _ {
1071
1011
  *
1072
1012
  * @param url URL запроса.
1073
1013
  * @param successHandler Функция обратного вызова для обработки данных при успешном выполнении запроса.
1074
- * @param disableDefaultNotificationErrorResponseHandler Признак необходимости отключить обработчик ошибок по умолчанию используемый для текущего экземпляра класса.
1014
+ * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1075
1015
  */
1076
1016
  delete(r, e = void 0, s = !1) {
1077
1017
  return this.request({ method: "DELETE", url: r }, e, {}, s);
@@ -1082,15 +1022,15 @@ const _ = class _ {
1082
1022
  */
1083
1023
  // eslint-disable-next-line no-use-before-define
1084
1024
  t(_, "instances", {}), /**
1085
- * Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
1025
+ * Базовый обработчик ошибок выполнения запросов.
1086
1026
  *
1087
- * Параметры:
1088
- * - error Данные об ошибке.
1089
- * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1027
+ * @param error Данные об ошибке.
1028
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1029
+ * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1090
1030
  */
1091
- t(_, "baseDefaultNotificationErrorResponseHandler", m);
1031
+ t(_, "defaultErrorsResponseHandler", w);
1092
1032
  let h = _;
1093
- class at extends h {
1033
+ class $t extends h {
1094
1034
  /**
1095
1035
  * Возвращает содержимое корзины указанного клиента.
1096
1036
  *
@@ -1193,7 +1133,7 @@ class at extends h {
1193
1133
  return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ce(e.data));
1194
1134
  }
1195
1135
  }
1196
- var Fr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Fr || {}), ke = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(ke || {}), Br = /* @__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))(Br || {});
1136
+ var Fr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Fr || {}), de = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(de || {}), Br = /* @__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))(Br || {});
1197
1137
  class q extends ne {
1198
1138
  /**
1199
1139
  * Инициализирует экземпляр класса {@link Category}.
@@ -1214,7 +1154,7 @@ class q extends ne {
1214
1154
  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 b(o));
1215
1155
  }
1216
1156
  }
1217
- class Ye extends $ {
1157
+ class er extends a {
1218
1158
  /**
1219
1159
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1220
1160
  *
@@ -1226,10 +1166,10 @@ class Ye extends $ {
1226
1166
  * Дата и время последнего изменения.
1227
1167
  */
1228
1168
  t(this, "updatedAt");
1229
- this.updatedAt = f(e == null ? void 0 : e.updatedAt) ? y(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1169
+ this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1230
1170
  }
1231
1171
  }
1232
- class Hr extends Ye {
1172
+ class Hr extends er {
1233
1173
  /**
1234
1174
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1235
1175
  *
@@ -1241,10 +1181,10 @@ class Hr extends Ye {
1241
1181
  * Дата и время последнего удаления.
1242
1182
  */
1243
1183
  t(this, "deletedAt");
1244
- this.deletedAt = f(e == null ? void 0 : e.deletedAt) ? y(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1184
+ this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1245
1185
  }
1246
1186
  }
1247
- class $t {
1187
+ class at {
1248
1188
  /**
1249
1189
  * Возвращает актуальные и не просроченные данные из хранилища.
1250
1190
  *
@@ -1255,7 +1195,7 @@ class $t {
1255
1195
  if (e)
1256
1196
  try {
1257
1197
  const s = JSON.parse(e);
1258
- if (Rr(y(s.availableFor) || Ve(), /* @__PURE__ */ new Date()))
1198
+ if (Dr(f(s.availableFor) || Ke(), /* @__PURE__ */ new Date()))
1259
1199
  return s.data ?? {};
1260
1200
  } catch {
1261
1201
  localStorage.removeItem(r);
@@ -1278,7 +1218,7 @@ class $t {
1278
1218
  );
1279
1219
  }
1280
1220
  }
1281
- class G extends $ {
1221
+ class G extends a {
1282
1222
  /**
1283
1223
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1284
1224
  *
@@ -1293,7 +1233,7 @@ class G extends $ {
1293
1233
  this.type = e == null ? void 0 : e.type;
1294
1234
  }
1295
1235
  }
1296
- class zr extends $ {
1236
+ class zr extends a {
1297
1237
  /**
1298
1238
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1299
1239
  *
@@ -1329,10 +1269,10 @@ class zr extends $ {
1329
1269
  * Дата и время удаления.
1330
1270
  */
1331
1271
  t(this, "deletedAt");
1332
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = f(e == null ? void 0 : e.publishedAt) ? y(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new G(e == null ? void 0 : e.owner), this.deletedAt = f(e == null ? void 0 : e.deletedAt) ? y(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1272
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new G(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1333
1273
  }
1334
1274
  }
1335
- class j extends Ye {
1275
+ class j extends er {
1336
1276
  /**
1337
1277
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1338
1278
  *
@@ -1348,7 +1288,7 @@ class j extends Ye {
1348
1288
  * Дата и время создания шаблона.
1349
1289
  */
1350
1290
  t(this, "createdAt");
1351
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = f(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1291
+ 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();
1352
1292
  }
1353
1293
  }
1354
1294
  class K extends b {
@@ -1387,7 +1327,7 @@ class K extends b {
1387
1327
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1388
1328
  */
1389
1329
  t(this, "isFavorite");
1390
- 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 zr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new j(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;
1330
+ 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 zr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new j(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;
1391
1331
  }
1392
1332
  }
1393
1333
  class jr {
@@ -1408,9 +1348,7 @@ class jr {
1408
1348
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1409
1349
  }
1410
1350
  }
1411
- class S extends w {
1412
- }
1413
- class re extends $ {
1351
+ class re extends a {
1414
1352
  /**
1415
1353
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1416
1354
  *
@@ -1437,7 +1375,7 @@ class re extends $ {
1437
1375
  e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new jr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1438
1376
  }
1439
1377
  }
1440
- class Ce extends re {
1378
+ class ve extends re {
1441
1379
  /**
1442
1380
  * Инициализирует экземпляр класса {@link Manager}.
1443
1381
  *
@@ -1496,10 +1434,10 @@ class Wr extends ne {
1496
1434
  * Данные о менеджере за которым закреплена категория.
1497
1435
  */
1498
1436
  t(this, "manager");
1499
- 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 Ce(e.manager) : void 0;
1437
+ 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 ve(e.manager) : void 0;
1500
1438
  }
1501
1439
  }
1502
- class pe extends Wr {
1440
+ class he extends Wr {
1503
1441
  /**
1504
1442
  * Инициализирует экземпляр класса {@link ClientCategory}.
1505
1443
  *
@@ -1516,10 +1454,10 @@ class pe extends Wr {
1516
1454
  * Список продуктов категории.
1517
1455
  */
1518
1456
  t(this, "products");
1519
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new pe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
1457
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new he(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
1520
1458
  }
1521
1459
  }
1522
- class Xe {
1460
+ class rr {
1523
1461
  /**
1524
1462
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1525
1463
  *
@@ -1534,10 +1472,10 @@ class Xe {
1534
1472
  * Процент, который прибавляется к значению выбранного коэффициента.
1535
1473
  */
1536
1474
  t(this, "increasePercent");
1537
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new ye(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1475
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new we(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1538
1476
  }
1539
1477
  }
1540
- class Pe extends Xe {
1478
+ class Re extends rr {
1541
1479
  /**
1542
1480
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1543
1481
  *
@@ -1552,9 +1490,9 @@ class Pe extends Xe {
1552
1490
  this.productCategory = new ne(e == null ? void 0 : e.productCategory);
1553
1491
  }
1554
1492
  }
1555
- class Q extends w {
1493
+ class Q extends C {
1556
1494
  }
1557
- class te extends w {
1495
+ class te extends C {
1558
1496
  /**
1559
1497
  * Инициализирует экземпляр класса {@link Region}.
1560
1498
  *
@@ -1569,7 +1507,7 @@ class te extends w {
1569
1507
  e && (this.country = new Q(e.country));
1570
1508
  }
1571
1509
  }
1572
- class de extends w {
1510
+ class Ne extends C {
1573
1511
  /**
1574
1512
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1575
1513
  *
@@ -1584,45 +1522,6 @@ class de extends w {
1584
1522
  e && (this.region = new te(e.region));
1585
1523
  }
1586
1524
  }
1587
- class Ze extends $ {
1588
- /**
1589
- * Инициализирует экземпляр класса {@link UserCommonInfo}.
1590
- *
1591
- * @param data Данные для первоначальной инициализации.
1592
- */
1593
- constructor(e) {
1594
- super(e);
1595
- /**
1596
- * Номер телефона. В формате "79203436527" или "+79203436527".
1597
- */
1598
- t(this, "phone");
1599
- /**
1600
- * Адрес электронной почты.
1601
- */
1602
- t(this, "email");
1603
- /**
1604
- * Признак подписки на новости и информационные сообщения.
1605
- */
1606
- t(this, "getNews");
1607
- /**
1608
- * Направление продаж.
1609
- */
1610
- t(this, "salesDirection");
1611
- /**
1612
- * Дата и время регистрации пользователя.
1613
- */
1614
- t(this, "createdAt");
1615
- /**
1616
- * Дата и время последней аутентификации пользователя.
1617
- */
1618
- t(this, "lastLoginAt");
1619
- /**
1620
- * Признак активности учетной записи пользователя.
1621
- */
1622
- t(this, "isActive");
1623
- this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new S(e.salesDirection) : void 0, this.createdAt = f(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = f(e == null ? void 0 : e.lastLoginAt) ? y(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1624
- }
1625
- }
1626
1525
  class oe extends Ze {
1627
1526
  /**
1628
1527
  * Инициализирует экземпляр класса {@link Client}.
@@ -1665,7 +1564,7 @@ class oe extends Ze {
1665
1564
  * Список менеджеров клиента.
1666
1565
  */
1667
1566
  t(this, "managers");
1668
- this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new de(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new re(i))) ?? [];
1567
+ this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Ne(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new re(i))) ?? [];
1669
1568
  }
1670
1569
  }
1671
1570
  class X extends B {
@@ -1692,10 +1591,10 @@ class X extends B {
1692
1591
  * Данные шаблона прайс-листа.
1693
1592
  */
1694
1593
  t(this, "priceTemplate");
1695
- this.createdAt = f(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = f(e == null ? void 0 : e.deletedAt) ? y(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new oe(e == null ? void 0 : e.client), this.priceTemplate = new j(e == null ? void 0 : e.priceTemplate);
1594
+ this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new oe(e == null ? void 0 : e.client), this.priceTemplate = new j(e == null ? void 0 : e.priceTemplate);
1696
1595
  }
1697
1596
  }
1698
- class Re extends Xe {
1597
+ class Ae extends rr {
1699
1598
  /**
1700
1599
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1701
1600
  *
@@ -1710,9 +1609,9 @@ class Re extends Xe {
1710
1609
  this.product = new b(e == null ? void 0 : e.product);
1711
1610
  }
1712
1611
  }
1713
- class er extends w {
1612
+ class tr extends C {
1714
1613
  }
1715
- class Z extends $ {
1614
+ class Z extends a {
1716
1615
  /**
1717
1616
  * Инициализирует экземпляр класса {@link Property}.
1718
1617
  *
@@ -1732,7 +1631,7 @@ class Z extends $ {
1732
1631
  * Дополнительные метаданные свойства.
1733
1632
  */
1734
1633
  t(this, "metadata");
1735
- this.type = new er(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1634
+ this.type = new tr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1736
1635
  }
1737
1636
  }
1738
1637
  class H {
@@ -1769,7 +1668,7 @@ class N {
1769
1668
  * Окончание периода.
1770
1669
  */
1771
1670
  t(this, "to");
1772
- this.from = f(r == null ? void 0 : r.from) ? y(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = f(r == null ? void 0 : r.to) ? y(r.to) : (r == null ? void 0 : r.to) ?? null;
1671
+ this.from = m(r == null ? void 0 : r.from) ? f(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = m(r == null ? void 0 : r.to) ? f(r.to) : (r == null ? void 0 : r.to) ?? null;
1773
1672
  }
1774
1673
  }
1775
1674
  class Tt {
@@ -1832,19 +1731,19 @@ class Tt {
1832
1731
  return Object.keys(this).forEach((c) => {
1833
1732
  const u = this[c];
1834
1733
  // eslint-disable-next-line prettier/prettier
1835
- U(u) || f(u) && u.trim().length === 0 || _e(u.isNewRec) && u.isNewRec() || (r[c] = u);
1734
+ U(u) || m(u) && u.trim().length === 0 || Se(u.isNewRec) && u.isNewRec() || (r[c] = u);
1836
1735
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
1837
1736
  }
1838
1737
  }
1839
- class Er extends w {
1738
+ class Vr extends C {
1840
1739
  }
1841
- class rr extends w {
1740
+ class sr extends C {
1842
1741
  }
1843
- class bt extends w {
1742
+ class bt extends C {
1844
1743
  }
1845
- class Vr extends w {
1744
+ class Er extends C {
1846
1745
  }
1847
- class he extends $ {
1746
+ class ge extends a {
1848
1747
  /**
1849
1748
  * Инициализирует экземпляр класса {@link Currency}.
1850
1749
  *
@@ -1864,7 +1763,7 @@ class he extends $ {
1864
1763
  }
1865
1764
  }
1866
1765
  var T = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(T || {});
1867
- class M extends w {
1766
+ class M extends C {
1868
1767
  /**
1869
1768
  * Возвращает сгенерированную запись-описание физического лица.
1870
1769
  */
@@ -1877,21 +1776,21 @@ class M extends w {
1877
1776
  });
1878
1777
  }
1879
1778
  }
1880
- class Jr extends w {
1779
+ class Jr extends C {
1881
1780
  }
1882
- class Kr extends w {
1781
+ class Kr extends C {
1883
1782
  }
1884
- class Y extends w {
1783
+ class Y extends C {
1885
1784
  }
1886
- class Qr extends w {
1785
+ class Qr extends C {
1887
1786
  }
1888
- class Yr extends w {
1787
+ class Yr extends C {
1889
1788
  }
1890
- class tr extends w {
1789
+ class ir extends C {
1891
1790
  }
1892
- class sr extends w {
1791
+ class nr extends C {
1893
1792
  }
1894
- const E = class E extends h {
1793
+ const V = class V extends h {
1895
1794
  /**
1896
1795
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
1897
1796
  */
@@ -1901,7 +1800,7 @@ const E = class E extends h {
1901
1800
  * Время кэширования данных ответов на запросы (секунд).
1902
1801
  */
1903
1802
  t(this, "responseDataCacheTimeout");
1904
- this.responseDataCacheTimeout = a.getConfig().http.responseDataCacheTimeout;
1803
+ this.responseDataCacheTimeout = $.getConfig().http.responseDataCacheTimeout;
1905
1804
  }
1906
1805
  /**
1907
1806
  * Возвращает кэшированные данные.
@@ -1911,7 +1810,7 @@ const E = class E extends h {
1911
1810
  */
1912
1811
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
1913
1812
  static getCachedResponse(e) {
1914
- const s = E.responseDataCache.get(e);
1813
+ const s = V.responseDataCache.get(e);
1915
1814
  if (s && s.validTo > /* @__PURE__ */ new Date())
1916
1815
  return s.val;
1917
1816
  }
@@ -1922,8 +1821,8 @@ const E = class E extends h {
1922
1821
  * @param data Данные для кэширования.
1923
1822
  */
1924
1823
  cacheResponse(e, s) {
1925
- E.responseDataCache.set(e, {
1926
- validTo: Ar(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
1824
+ V.responseDataCache.set(e, {
1825
+ validTo: $r(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
1927
1826
  val: s
1928
1827
  });
1929
1828
  }
@@ -1938,9 +1837,9 @@ const E = class E extends h {
1938
1837
  */
1939
1838
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
1940
1839
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
1941
- const c = s + (Se(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? E.getCachedResponse(c) : void 0;
1840
+ const c = s + (Le(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
1942
1841
  return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
1943
- const R = p.map((D) => xe.instanceInitializer(e, D));
1842
+ const R = p.map((D) => ke.instanceInitializer(e, D));
1944
1843
  return i && R && this.cacheResponse(s, R), R;
1945
1844
  });
1946
1845
  }
@@ -1948,8 +1847,8 @@ const E = class E extends h {
1948
1847
  /**
1949
1848
  * Кэш результатов запросов.
1950
1849
  */
1951
- t(E, "responseDataCache", /* @__PURE__ */ new Map());
1952
- let se = E;
1850
+ t(V, "responseDataCache", /* @__PURE__ */ new Map());
1851
+ let se = V;
1953
1852
  class A extends se {
1954
1853
  /**
1955
1854
  * Возвращает {@link Promise} для получения данных указанного справочника.
@@ -1959,26 +1858,26 @@ class A extends se {
1959
1858
  * и использовать в случае аналогичных запросов.
1960
1859
  */
1961
1860
  getReference(r, e = !1) {
1962
- return this.getTypedDataArrayRequester(Er, `/internal/references/${r}`, e);
1861
+ return this.getTypedDataArrayRequester(Vr, `/internal/references/${r}`, e);
1963
1862
  }
1964
1863
  /**
1965
1864
  * Возвращает {@link Promise} для получения справочника данных о канале
1966
1865
  * первичного интереса.
1967
1866
  */
1968
1867
  getChannelPrimaryInterest() {
1969
- return this.getTypedDataArrayRequester(rr, "/internal/references/channel-primary-interest", !0);
1868
+ return this.getTypedDataArrayRequester(sr, "/internal/references/channel-primary-interest", !0);
1970
1869
  }
1971
1870
  /**
1972
1871
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1973
1872
  */
1974
1873
  getContactPositions() {
1975
- return this.getTypedDataArrayRequester(Vr, "/internal/references/contact-position", !0);
1874
+ return this.getTypedDataArrayRequester(Er, "/internal/references/contact-position", !0);
1976
1875
  }
1977
1876
  /**
1978
1877
  * Возвращает {@link Promise} для получения справочника списка валют.
1979
1878
  */
1980
1879
  getCurrency() {
1981
- return this.getTypedDataArrayRequester(he, "/public/references/currency", !0);
1880
+ return this.getTypedDataArrayRequester(ge, "/public/references/currency", !0);
1982
1881
  }
1983
1882
  /**
1984
1883
  * Возвращает {@link Promise} для получения справочника данных
@@ -2015,7 +1914,7 @@ class A extends se {
2015
1914
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
2016
1915
  */
2017
1916
  getResourceTypes() {
2018
- return this.getTypedDataArrayRequester(tr, "/internal/references/resource-type", !0);
1917
+ return this.getTypedDataArrayRequester(ir, "/internal/references/resource-type", !0);
2019
1918
  }
2020
1919
  /**
2021
1920
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -2027,7 +1926,7 @@ class A extends se {
2027
1926
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
2028
1927
  */
2029
1928
  getSourcePrimaryInterest() {
2030
- return this.getTypedDataArrayRequester(sr, "/internal/references/source-primary-interest", !0);
1929
+ return this.getTypedDataArrayRequester(nr, "/internal/references/source-primary-interest", !0);
2031
1930
  }
2032
1931
  /**
2033
1932
  * Выполняет поиск данных о городах по терму в названии.
@@ -2035,7 +1934,7 @@ class A extends se {
2035
1934
  * @param term Терм поиска.
2036
1935
  */
2037
1936
  searchCity(r) {
2038
- return this.getTypedDataArrayRequester(de, `/internal/references/city-with-region-and-country/search?term=${r}`);
1937
+ return this.getTypedDataArrayRequester(Ne, `/internal/references/city-with-region-and-country/search?term=${r}`);
2039
1938
  }
2040
1939
  /**
2041
1940
  * Выполняет поиск данных о регионах по терму в названии.
@@ -2063,19 +1962,19 @@ class A extends se {
2063
1962
  * Возвращает {@link Promise} для получения справочника складов.
2064
1963
  */
2065
1964
  getWarehouses() {
2066
- return this.getTypedDataArrayRequester(we, "/public/references/warehouse", !0);
1965
+ return this.getTypedDataArrayRequester(Ce, "/public/references/warehouse", !0);
2067
1966
  }
2068
1967
  /**
2069
1968
  * Возвращает {@link Promise} для получения справочника типов свойств.
2070
1969
  */
2071
1970
  getPropertyTypes() {
2072
- return this.getTypedDataArrayRequester(er, "/internal/references/property-type", !0);
1971
+ return this.getTypedDataArrayRequester(tr, "/internal/references/property-type", !0);
2073
1972
  }
2074
1973
  /**
2075
1974
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
2076
1975
  */
2077
1976
  getPriceCoefficients() {
2078
- return this.getTypedDataArrayRequester(ye, "/internal/references/price-coefficient", !0);
1977
+ return this.getTypedDataArrayRequester(we, "/internal/references/price-coefficient", !0);
2079
1978
  }
2080
1979
  /**
2081
1980
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
@@ -2085,39 +1984,7 @@ class A extends se {
2085
1984
  }
2086
1985
  }
2087
1986
  var Xr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Xr || {});
2088
- class Zr extends Ze {
2089
- /**
2090
- * Инициализирует экземпляр класса {@link User}.
2091
- *
2092
- * @param data Данные для первоначальной инициализации.
2093
- */
2094
- constructor(e) {
2095
- super(e);
2096
- /**
2097
- * Тип пользователя.
2098
- */
2099
- t(this, "type");
2100
- /**
2101
- * Признак того, что менеджер может работать с рекламациями.
2102
- */
2103
- t(this, "canDoReclamations");
2104
- /**
2105
- * URI путь к фотографии пользователя.
2106
- */
2107
- t(this, "photo");
2108
- 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;
2109
- }
2110
- }
2111
- class et extends h {
2112
- /**
2113
- * Возвращает данные о текущем пользователе.
2114
- */
2115
- // eslint-disable-next-line class-methods-use-this
2116
- getCurrentUser() {
2117
- return this.get("/internal/users/info", {}, (r) => new Zr(r.data));
2118
- }
2119
- }
2120
- class rt {
1987
+ class Zr {
2121
1988
  /**
2122
1989
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
2123
1990
  *
@@ -2160,10 +2027,10 @@ class rt {
2160
2027
  * Данные о валюте.
2161
2028
  */
2162
2029
  t(this, "currency");
2163
- this.cost = r.cost, this.costDate = f(r.costDate) ? y(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 G(r.client) : void 0, this.executor = r.executor ? new G(r.executor) : void 0, this.currency = r.currency ? new he(r.currency) : void 0;
2030
+ 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 G(r.client) : void 0, this.executor = r.executor ? new G(r.executor) : void 0, this.currency = r.currency ? new ge(r.currency) : void 0;
2164
2031
  }
2165
2032
  }
2166
- class qe {
2033
+ class Ge {
2167
2034
  /**
2168
2035
  * Инициализирует экземпляр класса {@link RecommendationsList}.
2169
2036
  *
@@ -2181,7 +2048,7 @@ class qe {
2181
2048
  r != null && r.products && (this.products = r.products.map((e) => new b(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
2182
2049
  }
2183
2050
  }
2184
- class ee extends $ {
2051
+ class ee extends a {
2185
2052
  /**
2186
2053
  * Инициализирует экземпляр класса {@link PricingRole}.
2187
2054
  *
@@ -2216,7 +2083,7 @@ class ee extends $ {
2216
2083
  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;
2217
2084
  }
2218
2085
  }
2219
- class Ue {
2086
+ class Me {
2220
2087
  /**
2221
2088
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2222
2089
  *
@@ -2235,10 +2102,171 @@ class Ue {
2235
2102
  * Минимальный коэффициент цены.
2236
2103
  */
2237
2104
  t(this, "minCoefficient");
2238
- this.role = new ee(r == null ? void 0 : r.role), this.category = new ne(r == null ? void 0 : r.category), this.minCoefficient = new ye(r == null ? void 0 : r.minCoefficient);
2105
+ this.role = new ee(r == null ? void 0 : r.role), this.category = new ne(r == null ? void 0 : r.category), this.minCoefficient = new we(r == null ? void 0 : r.minCoefficient);
2106
+ }
2107
+ }
2108
+ class et {
2109
+ /**
2110
+ * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
2111
+ *
2112
+ * @param data Данные для первоначальной инициализации.
2113
+ */
2114
+ constructor(r) {
2115
+ /**
2116
+ * Максимальное разрешение для распознания мобильного телефона.
2117
+ */
2118
+ t(this, "phone");
2119
+ /**
2120
+ * Минимальное разрешение для распознания планшета.
2121
+ */
2122
+ t(this, "tablet");
2123
+ /**
2124
+ * Минимальное разрешение для распознания компьютера.
2125
+ */
2126
+ t(this, "laptop");
2127
+ 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;
2128
+ }
2129
+ }
2130
+ class rt {
2131
+ /**
2132
+ * Инициализирует экземпляр класса {@link HttpParamsConfig}.
2133
+ *
2134
+ * @param data Данные для первоначальной инициализации.
2135
+ */
2136
+ constructor(r) {
2137
+ /**
2138
+ * @inheritDoc
2139
+ */
2140
+ t(this, "portalApiUrl");
2141
+ /**
2142
+ * @inheritDoc
2143
+ */
2144
+ t(this, "mediaUrl");
2145
+ /**
2146
+ * @inheritDoc
2147
+ */
2148
+ t(this, "responseDataCacheTimeout");
2149
+ this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
2150
+ }
2151
+ }
2152
+ class tt {
2153
+ /**
2154
+ * Инициализирует экземпляр класса {@link SentryConfig}.
2155
+ *
2156
+ * @param data Данные для первоначальной инициализации.
2157
+ */
2158
+ constructor(r) {
2159
+ /**
2160
+ * DSN подключения к Sentry.
2161
+ */
2162
+ t(this, "dsn");
2163
+ /**
2164
+ * Тип окружения.
2165
+ */
2166
+ t(this, "environment");
2167
+ /**
2168
+ * Список игнорируемых ошибок.
2169
+ */
2170
+ t(this, "ignoreErrors");
2171
+ /**
2172
+ * Настройки трассировкии событий.
2173
+ */
2174
+ t(this, "trace");
2175
+ /**
2176
+ * Настройки записей сеансов.
2177
+ */
2178
+ t(this, "replay");
2179
+ /**
2180
+ * Дополнительные параметры.
2181
+ */
2182
+ t(this, "additionalParams");
2183
+ var e, s, i, o;
2184
+ this.dsn = (r == null ? void 0 : r.dsn) ?? "", this.environment = (r == null ? void 0 : r.environment) ?? "production", this.ignoreErrors = (r == null ? void 0 : r.ignoreErrors) ?? [
2185
+ /Network\s{1,3}Error/,
2186
+ /Request\s{1,3}aborted/,
2187
+ /Request\s{1,3}failed\s{1,3}with\s{1,3}status\s{1,3}code\s{1,3}(401|403|422)/
2188
+ ], this.trace = {
2189
+ allowedTargets: ((e = r == null ? void 0 : r.trace) == null ? void 0 : e.allowedTargets) ?? [/^\//],
2190
+ sampleRate: ((s = r == null ? void 0 : r.trace) == null ? void 0 : s.sampleRate) ?? 0
2191
+ }, this.replay = {
2192
+ replaysOnErrorSampleRate: ((i = r == null ? void 0 : r.replay) == null ? void 0 : i.replaysOnErrorSampleRate) ?? 0,
2193
+ replaysSessionSampleRate: ((o = r == null ? void 0 : r.replay) == null ? void 0 : o.replaysSessionSampleRate) ?? 0
2194
+ }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
2195
+ }
2196
+ }
2197
+ class st {
2198
+ /**
2199
+ * Инициализирует экземпляр класса {@link VersionConfig}.
2200
+ *
2201
+ * @param data Данные для первоначальной инициализации.
2202
+ */
2203
+ constructor(r) {
2204
+ /**
2205
+ * Дата релиза текущей версии приложения.
2206
+ */
2207
+ t(this, "date");
2208
+ /**
2209
+ * Название релиза.
2210
+ */
2211
+ t(this, "name");
2212
+ /**
2213
+ * Текущая версия приложения.
2214
+ */
2215
+ t(this, "version");
2216
+ 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";
2217
+ }
2218
+ }
2219
+ class _t {
2220
+ /**
2221
+ * Инициализирует экземпляр класса {@link AppBaseConfig}.
2222
+ *
2223
+ * @param data Данные для первоначальной инициализации.
2224
+ */
2225
+ constructor(r) {
2226
+ /**
2227
+ * Тип окружения.
2228
+ */
2229
+ t(this, "environment");
2230
+ /**
2231
+ * Параметры разработки и отладки.
2232
+ */
2233
+ t(this, "devMode");
2234
+ /**
2235
+ * Параметры HTTP-запросов.
2236
+ */
2237
+ t(this, "http");
2238
+ /**
2239
+ * Список условного отношения разрешения экрана и типа устройств.
2240
+ */
2241
+ t(this, "deviceTypeByResolution");
2242
+ /**
2243
+ * Настройки системы журналирования ошибок Sentry.
2244
+ */
2245
+ t(this, "sentry");
2246
+ /**
2247
+ * Список дополнительных URL-адресов.
2248
+ */
2249
+ t(this, "urls");
2250
+ /**
2251
+ * Данные о текущем выпуске приложения.
2252
+ */
2253
+ t(this, "version");
2254
+ /**
2255
+ * Форматы дат.
2256
+ */
2257
+ t(this, "dateFormats");
2258
+ var e, s, i;
2259
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new rt(r == null ? void 0 : r.http), this.deviceTypeByResolution = new et(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new tt({
2260
+ environment: this.environment,
2261
+ ...r == null ? void 0 : r.sentry
2262
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new st(r == null ? void 0 : r.version), this.dateFormats = {
2263
+ api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
2264
+ uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
2265
+ uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
2266
+ };
2239
2267
  }
2240
2268
  }
2241
- class _t extends h {
2269
+ class St extends h {
2242
2270
  /**
2243
2271
  * Возвращает данные о результатах поиска категорий и товаров.
2244
2272
  *
@@ -2265,11 +2293,11 @@ class _t extends h {
2265
2293
  */
2266
2294
  // eslint-disable-next-line class-methods-use-this
2267
2295
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2268
- let c = `${a.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2296
+ let c = `${$.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2269
2297
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2270
2298
  }
2271
2299
  }
2272
- class St extends h {
2300
+ class Lt extends h {
2273
2301
  /**
2274
2302
  * Импортирует цены клиента из CSV файла.
2275
2303
  *
@@ -2503,7 +2531,7 @@ class It extends h {
2503
2531
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2504
2532
  */
2505
2533
  attachTemplate(r, e, s) {
2506
- const i = a.getConfig().dateFormats.api;
2534
+ const i = $.getConfig().dateFormats.api;
2507
2535
  return this.post(
2508
2536
  `/internal/clients/${r}/price/templates/${e}`,
2509
2537
  s && {
@@ -2537,7 +2565,7 @@ class It extends h {
2537
2565
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2538
2566
  */
2539
2567
  changeTemplate(r, e, s, i) {
2540
- const o = a.getConfig().dateFormats.api;
2568
+ const o = $.getConfig().dateFormats.api;
2541
2569
  return this.patch(
2542
2570
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2543
2571
  i && {
@@ -2560,7 +2588,7 @@ class It extends h {
2560
2588
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2561
2589
  }
2562
2590
  }
2563
- class Lt extends h {
2591
+ class xt extends h {
2564
2592
  /**
2565
2593
  * Возвращает список данных о корневых категориях.
2566
2594
  *
@@ -2620,7 +2648,7 @@ class Lt extends h {
2620
2648
  showHidden: s,
2621
2649
  withPriceCoefficients: e
2622
2650
  },
2623
- (i) => le(i.data, (o) => new b(o))
2651
+ (i) => ue(i.data, (o) => new b(o))
2624
2652
  );
2625
2653
  }
2626
2654
  /**
@@ -2633,7 +2661,7 @@ class Lt extends h {
2633
2661
  getCategoryProductsCoefficients(r) {
2634
2662
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2635
2663
  const { data: s } = e;
2636
- return wr(s, (i) => i.map((o) => new Le(o))), s;
2664
+ return vr(s, (i) => i.map((o) => new xe(o))), s;
2637
2665
  });
2638
2666
  }
2639
2667
  /**
@@ -2652,7 +2680,7 @@ class Lt extends h {
2652
2680
  });
2653
2681
  }
2654
2682
  }
2655
- class xt extends h {
2683
+ class kt extends h {
2656
2684
  /**
2657
2685
  * Возвращает данные об указанном продукте.
2658
2686
  *
@@ -2683,7 +2711,7 @@ class xt extends h {
2683
2711
  return this.get(
2684
2712
  `/internal/catalog/products/${r}/coefficients`,
2685
2713
  {},
2686
- (e) => le(e.data, (s) => new Le(s))
2714
+ (e) => ue(e.data, (s) => new xe(s))
2687
2715
  );
2688
2716
  }
2689
2717
  /**
@@ -2696,7 +2724,7 @@ class xt extends h {
2696
2724
  */
2697
2725
  getProductPriceHistory(r, e) {
2698
2726
  const s = {};
2699
- return U(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => le(i.data, (o) => new rt(o)));
2727
+ return U(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ue(i.data, (o) => new Zr(o)));
2700
2728
  }
2701
2729
  /**
2702
2730
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2714,7 +2742,7 @@ class xt extends h {
2714
2742
  });
2715
2743
  }
2716
2744
  }
2717
- class kt extends h {
2745
+ class dt extends h {
2718
2746
  /**
2719
2747
  * Возвращает список данных о корневых категориях указанного клиента.
2720
2748
  *
@@ -2730,7 +2758,7 @@ class kt extends h {
2730
2758
  clientId: r,
2731
2759
  showHidden: e
2732
2760
  },
2733
- (s) => s.data.map((i) => new pe(i))
2761
+ (s) => s.data.map((i) => new he(i))
2734
2762
  );
2735
2763
  }
2736
2764
  /**
@@ -2751,7 +2779,7 @@ class kt extends h {
2751
2779
  showHidden: s,
2752
2780
  withNestedCategories: i
2753
2781
  },
2754
- (o) => new pe(o.data)
2782
+ (o) => new he(o.data)
2755
2783
  );
2756
2784
  }
2757
2785
  /**
@@ -2772,11 +2800,11 @@ class kt extends h {
2772
2800
  showHidden: i,
2773
2801
  withPriceCoefficients: s
2774
2802
  },
2775
- (o) => le(o.data, (c) => new K(c))
2803
+ (o) => ue(o.data, (c) => new K(c))
2776
2804
  );
2777
2805
  }
2778
2806
  }
2779
- class dt extends h {
2807
+ class Nt extends h {
2780
2808
  /**
2781
2809
  * Возвращает данные об указанном продукте для указанного клиента.
2782
2810
  *
@@ -2797,8 +2825,8 @@ class dt extends h {
2797
2825
  );
2798
2826
  }
2799
2827
  }
2800
- var Ne = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Ne || {});
2801
- class Ge {
2828
+ var Oe = /* @__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))(Oe || {});
2829
+ class Fe {
2802
2830
  /**
2803
2831
  * Инициализирует экземпляр класса {@link FilterItem}.
2804
2832
  *
@@ -2817,7 +2845,7 @@ class Ge {
2817
2845
  * Значение с которым сравнивается поле.
2818
2846
  */
2819
2847
  t(this, "value");
2820
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Ne.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2848
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Oe.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2821
2849
  }
2822
2850
  /**
2823
2851
  * Преобразует фильтр в примитивное представление для API.
@@ -2829,7 +2857,7 @@ class Ge {
2829
2857
  field: this.field,
2830
2858
  op: this.op
2831
2859
  };
2832
- return r.value = Cr(this.value) ? z(this.value, a.getConfig().dateFormats.api) : this.value, r;
2860
+ return r.value = Pr(this.value) ? z(this.value, $.getConfig().dateFormats.api) : this.value, r;
2833
2861
  }
2834
2862
  }
2835
2863
  class ie {
@@ -2852,7 +2880,7 @@ class ie {
2852
2880
  */
2853
2881
  t(this, "groups");
2854
2882
  var e, s;
2855
- 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 Ge(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ie(i))) ?? [];
2883
+ 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 Fe(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ie(i))) ?? [];
2856
2884
  }
2857
2885
  /**
2858
2886
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2862,12 +2890,12 @@ class ie {
2862
2890
  toPrimitive() {
2863
2891
  return {
2864
2892
  groupOp: this.groupOp,
2865
- filters: this.filters.map((r) => r instanceof Ge && _e(r.toPrimitive) ? r.toPrimitive() : r),
2893
+ filters: this.filters.map((r) => r instanceof Fe && Se(r.toPrimitive) ? r.toPrimitive() : r),
2866
2894
  groups: this.groups.map((r) => r instanceof ie ? r.toPrimitive() : r)
2867
2895
  };
2868
2896
  }
2869
2897
  }
2870
- class ve extends h {
2898
+ class Pe extends h {
2871
2899
  /**
2872
2900
  * Получает пагинированный список данных.
2873
2901
  *
@@ -2884,10 +2912,10 @@ class ve extends h {
2884
2912
  page: (i == null ? void 0 : i.page) ?? 1,
2885
2913
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2886
2914
  };
2887
- return e && (p.filters = JSON.stringify((e instanceof ie ? e : new ie(e)).toPrimitive())), Se(s) || (p.sort = Ee(s) ? s : [s]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
2915
+ return e && (p.filters = JSON.stringify((e instanceof ie ? e : new ie(e)).toPrimitive())), Le(s) || (p.sort = Je(s) ? s : [s]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
2888
2916
  }
2889
2917
  }
2890
- class Nt extends ve {
2918
+ class Ot extends Pe {
2891
2919
  /**
2892
2920
  * Возвращает список шаблонов прайс-листа.
2893
2921
  *
@@ -2959,7 +2987,7 @@ class Nt extends ve {
2959
2987
  return this.get(
2960
2988
  `/internal/price/templates/${r}/products`,
2961
2989
  {},
2962
- (e) => e.data.map((s) => new Re(s))
2990
+ (e) => e.data.map((s) => new Ae(s))
2963
2991
  );
2964
2992
  }
2965
2993
  /**
@@ -2971,7 +2999,7 @@ class Nt extends ve {
2971
2999
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
2972
3000
  */
2973
3001
  getProductTemplatePrice(r, e) {
2974
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Re(s.data));
3002
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Ae(s.data));
2975
3003
  }
2976
3004
  /**
2977
3005
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -2990,7 +3018,7 @@ class Nt extends ve {
2990
3018
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2991
3019
  increase_percent: s.value
2992
3020
  },
2993
- (o) => new Re(o.data)
3021
+ (o) => new Ae(o.data)
2994
3022
  );
2995
3023
  }
2996
3024
  /**
@@ -3015,7 +3043,7 @@ class Nt extends ve {
3015
3043
  return this.get(
3016
3044
  `/internal/price/templates/${r}/categories`,
3017
3045
  {},
3018
- (e) => e.data.map((s) => new Pe(s))
3046
+ (e) => e.data.map((s) => new Re(s))
3019
3047
  );
3020
3048
  }
3021
3049
  /**
@@ -3030,7 +3058,7 @@ class Nt extends ve {
3030
3058
  return this.get(
3031
3059
  `/internal/price/templates/${r}/categories/${e}`,
3032
3060
  {},
3033
- (s) => new Pe(s.data)
3061
+ (s) => new Re(s.data)
3034
3062
  );
3035
3063
  }
3036
3064
  /**
@@ -3056,7 +3084,7 @@ class Nt extends ve {
3056
3084
  },
3057
3085
  params: i ? { recursively: !0 } : {}
3058
3086
  },
3059
- (c) => new Pe(c.data)
3087
+ (c) => new Re(c.data)
3060
3088
  );
3061
3089
  }
3062
3090
  /**
@@ -3091,7 +3119,7 @@ class Nt extends ve {
3091
3119
  );
3092
3120
  }
3093
3121
  }
3094
- class Ot extends h {
3122
+ class qt extends h {
3095
3123
  /**
3096
3124
  * Возвращает список ролей ценообразования.
3097
3125
  *
@@ -3152,7 +3180,7 @@ class Ot extends h {
3152
3180
  return this.get(
3153
3181
  `/internal/price/roles/rules/categories/${r}`,
3154
3182
  {},
3155
- (e) => e.data.map((s) => new Ue(s))
3183
+ (e) => e.data.map((s) => new Me(s))
3156
3184
  );
3157
3185
  }
3158
3186
  /**
@@ -3167,11 +3195,11 @@ class Ot extends h {
3167
3195
  return this.patch(
3168
3196
  `/internal/price/roles/rules/categories/${r}`,
3169
3197
  e,
3170
- (s) => s.data.map((i) => new Ue(i))
3198
+ (s) => s.data.map((i) => new Me(i))
3171
3199
  );
3172
3200
  }
3173
3201
  }
3174
- class qt extends ve {
3202
+ class Ut extends Pe {
3175
3203
  /**
3176
3204
  * Возвращает пагинированный список свойств.
3177
3205
  *
@@ -3543,14 +3571,14 @@ class qt extends ve {
3543
3571
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3544
3572
  }
3545
3573
  }
3546
- class Ut extends h {
3574
+ class Gt extends h {
3547
3575
  /**
3548
3576
  * Возвращает данные о рекомендациях указанной категории продуктов.
3549
3577
  *
3550
3578
  * @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
3551
3579
  */
3552
3580
  getProductCategoryRecommendations(r) {
3553
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new qe(e.data));
3581
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Ge(e.data));
3554
3582
  }
3555
3583
  /**
3556
3584
  * Возвращает данные о рекомендациях указанного продукта.
@@ -3558,7 +3586,7 @@ class Ut extends h {
3558
3586
  * @param product Данные о продукте, для которого необходимо получить рекомендации.
3559
3587
  */
3560
3588
  getProductRecommendations(r) {
3561
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new qe(e.data));
3589
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Ge(e.data));
3562
3590
  }
3563
3591
  /**
3564
3592
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -3585,7 +3613,7 @@ class Ut extends h {
3585
3613
  });
3586
3614
  }
3587
3615
  }
3588
- function Me(n, r, e) {
3616
+ function Be(n, r, e) {
3589
3617
  let s;
3590
3618
  return n.some((i) => {
3591
3619
  if (i.type === e && i.id === r)
@@ -3594,20 +3622,20 @@ function Me(n, r, e) {
3594
3622
  return !1;
3595
3623
  const o = i;
3596
3624
  if (o.products && o.products.length > 0) {
3597
- const c = Me(o.products, r, e);
3625
+ const c = Be(o.products, r, e);
3598
3626
  if (c)
3599
3627
  return s = c, !0;
3600
3628
  }
3601
3629
  if (o.categories && o.categories.length > 0) {
3602
- const c = Me(o.categories, r, e);
3630
+ const c = Be(o.categories, r, e);
3603
3631
  if (c)
3604
3632
  return s = c, !0;
3605
3633
  }
3606
3634
  return !1;
3607
3635
  }), s;
3608
3636
  }
3609
- var tt = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(tt || {});
3610
- class Te extends B {
3637
+ var it = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(it || {});
3638
+ class be extends B {
3611
3639
  /**
3612
3640
  * Инициализирует экземпляр класса {@link BankAccount}.
3613
3641
  *
@@ -3634,11 +3662,11 @@ class Te extends B {
3634
3662
  /**
3635
3663
  * Данные о валюте.
3636
3664
  */
3637
- t(this, "currency", new he());
3638
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new he(e.currency));
3665
+ t(this, "currency", new ge());
3666
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ge(e.currency));
3639
3667
  }
3640
3668
  }
3641
- class be extends $ {
3669
+ class _e extends a {
3642
3670
  /**
3643
3671
  * Инициализирует экземпляр класса {@link Contact}.
3644
3672
  *
@@ -3657,7 +3685,7 @@ class be extends $ {
3657
3685
  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;
3658
3686
  }
3659
3687
  }
3660
- class F extends be {
3688
+ class F extends _e {
3661
3689
  /**
3662
3690
  * Инициализирует экземпляр класса {@link ContactPerson}.
3663
3691
  *
@@ -3689,10 +3717,10 @@ class F extends be {
3689
3717
  * Дата и время последнего удаления.
3690
3718
  */
3691
3719
  t(this, "deletedAt");
3692
- 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 = f(e == null ? void 0 : e.deletedAt) ? y(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3720
+ 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;
3693
3721
  }
3694
3722
  }
3695
- class ir extends $ {
3723
+ class or extends a {
3696
3724
  /**
3697
3725
  * Инициализирует экземпляр класса {@link ContragentBase}.
3698
3726
  *
@@ -3750,7 +3778,7 @@ class ir extends $ {
3750
3778
  */
3751
3779
  t(this, "updater");
3752
3780
  if (e) {
3753
- if (this.opf = new M(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = f(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : e.createdAt, this.creator = e.creator ? new G(e.creator) : void 0, this.updatedAt = f(e == null ? void 0 : e.updatedAt) ? y(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Y(e.partnerGroup)), e.manager && (this.manager = new re(e.manager)), e.contacts) {
3781
+ if (this.opf = new M(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new G(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Y(e.partnerGroup)), e.manager && (this.manager = new re(e.manager)), e.contacts) {
3754
3782
  const s = [];
3755
3783
  e.contacts.forEach((i) => {
3756
3784
  s.push(new F(i));
@@ -3759,13 +3787,13 @@ class ir extends $ {
3759
3787
  if (e.bankAccounts) {
3760
3788
  const s = [];
3761
3789
  e.bankAccounts.forEach((i) => {
3762
- s.push(new Te(i));
3790
+ s.push(new be(i));
3763
3791
  }), this.bankAccounts = s;
3764
3792
  }
3765
3793
  }
3766
3794
  }
3767
3795
  }
3768
- class st extends ir {
3796
+ class nt extends or {
3769
3797
  /**
3770
3798
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3771
3799
  *
@@ -3775,7 +3803,7 @@ class st extends ir {
3775
3803
  super(r);
3776
3804
  }
3777
3805
  }
3778
- class nr extends ir {
3806
+ class cr extends or {
3779
3807
  /**
3780
3808
  * Инициализирует экземпляр класса {@link ContragentIc}.
3781
3809
  *
@@ -3818,7 +3846,7 @@ class nr extends ir {
3818
3846
  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 ?? "");
3819
3847
  }
3820
3848
  }
3821
- class or extends nr {
3849
+ class lr extends cr {
3822
3850
  /**
3823
3851
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3824
3852
  *
@@ -3833,7 +3861,7 @@ class or extends nr {
3833
3861
  e && (this.kpp = e.kpp ?? "");
3834
3862
  }
3835
3863
  }
3836
- class it extends or {
3864
+ class ot extends lr {
3837
3865
  /**
3838
3866
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3839
3867
  *
@@ -3856,7 +3884,7 @@ class it extends or {
3856
3884
  e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3857
3885
  }
3858
3886
  }
3859
- class ge {
3887
+ class me {
3860
3888
  /**
3861
3889
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3862
3890
  *
@@ -3865,17 +3893,17 @@ class ge {
3865
3893
  static createInstance(r) {
3866
3894
  switch (r.opf.slug) {
3867
3895
  case T.Ic:
3868
- return new nr(r);
3896
+ return new cr(r);
3869
3897
  case T.UlR:
3870
- return new or(r);
3898
+ return new lr(r);
3871
3899
  case T.UlNr:
3872
- return new it(r);
3900
+ return new ot(r);
3873
3901
  default:
3874
- return new st(r);
3902
+ return new nt(r);
3875
3903
  }
3876
3904
  }
3877
3905
  }
3878
- class Ae extends B {
3906
+ class De extends B {
3879
3907
  /**
3880
3908
  * Инициализирует экземпляр класса {@link ContactRelation}.
3881
3909
  *
@@ -3890,7 +3918,7 @@ class Ae extends B {
3890
3918
  this.isPrimary = e.isPrimary;
3891
3919
  }
3892
3920
  }
3893
- class nt extends F {
3921
+ class ct extends F {
3894
3922
  /**
3895
3923
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3896
3924
  *
@@ -3915,10 +3943,10 @@ class nt extends F {
3915
3943
  */
3916
3944
  addresses: []
3917
3945
  });
3918
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Ae(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Ae(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Ae(s))));
3946
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new De(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new De(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new De(s))));
3919
3947
  }
3920
3948
  }
3921
- class me extends Hr {
3949
+ class fe extends Hr {
3922
3950
  /**
3923
3951
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3924
3952
  *
@@ -3955,10 +3983,10 @@ class me extends Hr {
3955
3983
  * Признак того, что указанный адрес является адресом транспортной компании.
3956
3984
  */
3957
3985
  t(this, "isTransportCompanyAddress");
3958
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Qe(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3986
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Xe(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3959
3987
  }
3960
3988
  }
3961
- class Fe extends oe {
3989
+ class He extends oe {
3962
3990
  /**
3963
3991
  * Инициализирует экземпляр класса {@link Client}.
3964
3992
  *
@@ -4012,10 +4040,10 @@ class Fe extends oe {
4012
4040
  * Дополнительные данные о клиенте.
4013
4041
  */
4014
4042
  t(this, "extraData");
4015
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ge.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Y(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new F(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new me(u))) ?? [], this.channelPrimaryInterest = new rr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new sr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new we(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4043
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => me.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Y(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new F(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new fe(u))) ?? [], this.channelPrimaryInterest = new sr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new nr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ce(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4016
4044
  }
4017
4045
  }
4018
- class Gt {
4046
+ class Mt {
4019
4047
  /**
4020
4048
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4021
4049
  *
@@ -4111,7 +4139,7 @@ class Gt {
4111
4139
  */
4112
4140
  t(this, "lastOrder");
4113
4141
  var e, s, i, o, c, u;
4114
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((p) => new de(p)), this.region = new te(r == null ? void 0 : r.region), this.country = new Q(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new N(r == null ? void 0 : r.createdAt), this.lastLoginDate = new N(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((p) => new Ce(p)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((p) => new S(p)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new M(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new J(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((p) => new Y(p)), this.contact = new be(r == null ? void 0 : r.contact), this.lastOrder = {
4142
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((p) => new Ne(p)), this.region = new te(r == null ? void 0 : r.region), this.country = new Q(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new N(r == null ? void 0 : r.createdAt), this.lastLoginDate = new N(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((p) => new ve(p)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((p) => new S(p)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new M(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new J(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((p) => new Y(p)), this.contact = new _e(r == null ? void 0 : r.contact), this.lastOrder = {
4115
4143
  createdAt: new N((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
4116
4144
  creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
4117
4145
  isApproved: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.isApproved
@@ -4170,7 +4198,7 @@ class Gt {
4170
4198
  this.partnerGroups = [];
4171
4199
  break;
4172
4200
  case "contact":
4173
- this.contact = new be();
4201
+ this.contact = new _e();
4174
4202
  break;
4175
4203
  }
4176
4204
  return this;
@@ -4185,11 +4213,11 @@ class Gt {
4185
4213
  return Object.keys(this).forEach((c) => {
4186
4214
  const u = this[c];
4187
4215
  // eslint-disable-next-line prettier/prettier
4188
- U(u) || f(u) && u.trim().length === 0 || _e(u.isNewRec) && u.isNewRec() || (r[c] = u);
4216
+ U(u) || m(u) && u.trim().length === 0 || Se(u.isNewRec) && u.isNewRec() || (r[c] = u);
4189
4217
  }), !((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;
4190
4218
  }
4191
4219
  }
4192
- class cr extends B {
4220
+ class ur extends B {
4193
4221
  /**
4194
4222
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4195
4223
  *
@@ -4209,10 +4237,10 @@ class cr extends B {
4209
4237
  * Признак того, что заказ подтвержден в 1С.
4210
4238
  */
4211
4239
  t(this, "isApproved1c");
4212
- this.createdAt = f(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new G(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4240
+ this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new G(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4213
4241
  }
4214
4242
  }
4215
- class ot extends $ {
4243
+ class lt extends a {
4216
4244
  /**
4217
4245
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4218
4246
  *
@@ -4245,10 +4273,10 @@ class ot extends $ {
4245
4273
  * Список менеджеров.
4246
4274
  */
4247
4275
  t(this, "managers");
4248
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new cr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new Y(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new J(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4276
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new ur(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new Y(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new J(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
4249
4277
  }
4250
4278
  }
4251
- class ct {
4279
+ class ut {
4252
4280
  /**
4253
4281
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4254
4282
  *
@@ -4266,7 +4294,7 @@ class ct {
4266
4294
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4267
4295
  }
4268
4296
  }
4269
- class Mt extends ct {
4297
+ class Ft extends ut {
4270
4298
  /**
4271
4299
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4272
4300
  *
@@ -4297,7 +4325,7 @@ class Mt extends ct {
4297
4325
  this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
4298
4326
  }
4299
4327
  }
4300
- class Ft {
4328
+ class Bt {
4301
4329
  /**
4302
4330
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4303
4331
  *
@@ -4315,7 +4343,7 @@ class Ft {
4315
4343
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4316
4344
  }
4317
4345
  }
4318
- class Bt extends ve {
4346
+ class Ht extends Pe {
4319
4347
  /**
4320
4348
  * Возвращает данные об указанном клиенте.
4321
4349
  *
@@ -4323,7 +4351,7 @@ class Bt extends ve {
4323
4351
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4324
4352
  */
4325
4353
  getClient(r) {
4326
- return this.get(`/internal/clients/${r}`, {}, (e) => new Fe(e.data));
4354
+ return this.get(`/internal/clients/${r}`, {}, (e) => new He(e.data));
4327
4355
  }
4328
4356
  /**
4329
4357
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4351,7 +4379,7 @@ class Bt extends ve {
4351
4379
  return this.getClientsList({
4352
4380
  groupOp: "and",
4353
4381
  groups: [],
4354
- filters: [{ field: "phone", op: Ne.Contains, value: r }]
4382
+ filters: [{ field: "phone", op: Oe.Contains, value: r }]
4355
4383
  });
4356
4384
  }
4357
4385
  /**
@@ -4365,7 +4393,7 @@ class Bt extends ve {
4365
4393
  const s = r.map((i) => i.id);
4366
4394
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4367
4395
  let o = [];
4368
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new ot(c))), o;
4396
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new lt(c))), o;
4369
4397
  });
4370
4398
  }
4371
4399
  /**
@@ -4377,7 +4405,7 @@ class Bt extends ve {
4377
4405
  getAllClientContacts(r) {
4378
4406
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4379
4407
  let s = [];
4380
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new nt(i))), s;
4408
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ct(i))), s;
4381
4409
  });
4382
4410
  }
4383
4411
  /**
@@ -4407,7 +4435,7 @@ class Bt extends ve {
4407
4435
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4408
4436
  preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4409
4437
  },
4410
- (i) => new Fe(i.data),
4438
+ (i) => new He(i.data),
4411
4439
  e
4412
4440
  );
4413
4441
  }
@@ -4517,7 +4545,7 @@ class Bt extends ve {
4517
4545
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4518
4546
  */
4519
4547
  createContragentClientData(r, e, s = {}) {
4520
- var p, R, D, I, L, x, k, d;
4548
+ var p, R, D, L, I, x, k, d;
4521
4549
  let i;
4522
4550
  const o = e, c = e, u = e;
4523
4551
  switch (e.opf.slug) {
@@ -4545,7 +4573,7 @@ class Bt extends ve {
4545
4573
  name: c.name,
4546
4574
  alternative_name: c.alternativeName,
4547
4575
  partner_group_id: (D = c.partnerGroup) == null ? void 0 : D.id,
4548
- manager_id: (I = c.manager) == null ? void 0 : I.id,
4576
+ manager_id: (L = c.manager) == null ? void 0 : L.id,
4549
4577
  comment: c.comment,
4550
4578
  inn: c.inn,
4551
4579
  kpp: c.kpp,
@@ -4563,7 +4591,7 @@ class Bt extends ve {
4563
4591
  opf: u.opf.slug,
4564
4592
  name: u.name,
4565
4593
  alternative_name: u.alternativeName,
4566
- partner_group_id: (L = u.partnerGroup) == null ? void 0 : L.id,
4594
+ partner_group_id: (I = u.partnerGroup) == null ? void 0 : I.id,
4567
4595
  manager_id: (x = u.manager) == null ? void 0 : x.id,
4568
4596
  comment: u.comment,
4569
4597
  director_name: u.directorName,
@@ -4591,7 +4619,7 @@ class Bt extends ve {
4591
4619
  return this.post(
4592
4620
  `/internal/clients/${r}/contragents`,
4593
4621
  i,
4594
- (O) => ge.createInstance(O.data),
4622
+ (O) => me.createInstance(O.data),
4595
4623
  s
4596
4624
  );
4597
4625
  }
@@ -4606,7 +4634,7 @@ class Bt extends ve {
4606
4634
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4607
4635
  */
4608
4636
  updateContragentClientData(r, e, s = {}) {
4609
- var p, R, D, I, L, x, k, d;
4637
+ var p, R, D, L, I, x, k, d;
4610
4638
  let i;
4611
4639
  const o = e, c = e, u = e;
4612
4640
  switch (e.opf.slug) {
@@ -4634,7 +4662,7 @@ class Bt extends ve {
4634
4662
  name: c.name,
4635
4663
  alternative_name: c.alternativeName,
4636
4664
  partner_group_id: (D = c.partnerGroup) == null ? void 0 : D.id,
4637
- manager_id: (I = c.manager) == null ? void 0 : I.id,
4665
+ manager_id: (L = c.manager) == null ? void 0 : L.id,
4638
4666
  comment: c.comment,
4639
4667
  inn: c.inn,
4640
4668
  kpp: c.kpp,
@@ -4652,7 +4680,7 @@ class Bt extends ve {
4652
4680
  opf: u.opf.slug,
4653
4681
  name: u.name,
4654
4682
  alternative_name: u.alternativeName,
4655
- partner_group_id: (L = u.partnerGroup) == null ? void 0 : L.id,
4683
+ partner_group_id: (I = u.partnerGroup) == null ? void 0 : I.id,
4656
4684
  manager_id: (x = u.manager) == null ? void 0 : x.id,
4657
4685
  comment: u.comment,
4658
4686
  director_name: u.directorName,
@@ -4680,7 +4708,7 @@ class Bt extends ve {
4680
4708
  return this.patch(
4681
4709
  `/internal/clients/${r}/contragents/${e.id}`,
4682
4710
  i,
4683
- (O) => ge.createInstance(O.data),
4711
+ (O) => me.createInstance(O.data),
4684
4712
  s
4685
4713
  );
4686
4714
  }
@@ -4718,7 +4746,7 @@ class Bt extends ve {
4718
4746
  }), e.operatingHours && (i.operating_hours = {
4719
4747
  from: e.operatingHours.from,
4720
4748
  to: e.operatingHours.to
4721
- }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new me(u.data), s);
4749
+ }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new fe(u.data), s);
4722
4750
  }
4723
4751
  /**
4724
4752
  * Обновляет данные об адресе доставки клиента.
@@ -4747,7 +4775,7 @@ class Bt extends ve {
4747
4775
  }), this.patch(
4748
4776
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4749
4777
  i,
4750
- (u) => new me(u.data),
4778
+ (u) => new fe(u.data),
4751
4779
  s
4752
4780
  );
4753
4781
  }
@@ -4783,7 +4811,7 @@ class Bt extends ve {
4783
4811
  correspondent_account: s.correspondentAccount,
4784
4812
  currency_id: s.currency.id
4785
4813
  },
4786
- (o) => new Te(o.data),
4814
+ (o) => new be(o.data),
4787
4815
  i
4788
4816
  );
4789
4817
  }
@@ -4809,7 +4837,7 @@ class Bt extends ve {
4809
4837
  correspondent_account: s.correspondentAccount,
4810
4838
  currency_id: s.currency.id
4811
4839
  },
4812
- (o) => new Te(o.data),
4840
+ (o) => new be(o.data),
4813
4841
  i
4814
4842
  );
4815
4843
  }
@@ -5042,7 +5070,7 @@ class Bt extends ve {
5042
5070
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5043
5071
  }
5044
5072
  }
5045
- class Ht extends h {
5073
+ class zt extends h {
5046
5074
  /**
5047
5075
  * Выполняет проверку занят ли указанный номер телефона.
5048
5076
  *
@@ -5056,7 +5084,7 @@ class Ht extends h {
5056
5084
  });
5057
5085
  }
5058
5086
  }
5059
- class zt extends h {
5087
+ class jt extends h {
5060
5088
  /**
5061
5089
  * Возвращает настройки указанного конфигуратора для указанной категории.
5062
5090
  *
@@ -5087,7 +5115,7 @@ class zt extends h {
5087
5115
  (c) => new b(c.data)
5088
5116
  );
5089
5117
  return i.catch((c) => {
5090
- this.defaultInstanceNotificationErrorResponseHandler(c, s);
5118
+ this.errorResponseHandler(c, s);
5091
5119
  }), i;
5092
5120
  }
5093
5121
  /**
@@ -5127,29 +5155,29 @@ class zt extends h {
5127
5155
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
5128
5156
  }
5129
5157
  }
5130
- class jt {
5158
+ class Wt {
5131
5159
  /**
5132
5160
  * Возвращает диапазон дат по умолчанию.
5133
5161
  */
5134
5162
  static defaultDateRanges() {
5135
- const r = Dr(/* @__PURE__ */ new Date(), 1);
5163
+ const r = ar(/* @__PURE__ */ new Date(), 1);
5136
5164
  return {
5137
5165
  // 'Следующий рабочий день' - это значение по-умолчанию
5138
- nextWorkingDay: { label: "Следующий рабочий день", from: Ir(r), to: Sr(r) },
5139
- today: { label: "Сегодня", from: Ve(), to: _r() },
5140
- yesterday: { label: "Вчера", from: br(), to: Tr() },
5141
- tomorrow: { label: "Завтра", from: $r(), to: ar() }
5166
+ nextWorkingDay: { label: "Следующий рабочий день", from: xr(r), to: Ir(r) },
5167
+ today: { label: "Сегодня", from: Ke(), to: Lr() },
5168
+ yesterday: { label: "Вчера", from: Sr(), to: _r() },
5169
+ tomorrow: { label: "Завтра", from: br(), to: Tr() }
5142
5170
  };
5143
5171
  }
5144
5172
  }
5145
- const V = class V {
5173
+ const E = class E {
5146
5174
  /**
5147
5175
  * Устанавливает список единиц измерения линейной величины.
5148
5176
  *
5149
5177
  * @param linearValues Список единиц измерения линейной величины.
5150
5178
  */
5151
5179
  static setLinearValues(r) {
5152
- V.linearValues = r;
5180
+ E.linearValues = r;
5153
5181
  }
5154
5182
  /**
5155
5183
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
@@ -5157,7 +5185,7 @@ const V = class V {
5157
5185
  * @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
5158
5186
  */
5159
5187
  static productIsMeasurable(r) {
5160
- return V.linearValues.includes(r.unit);
5188
+ return E.linearValues.includes(r.unit);
5161
5189
  }
5162
5190
  /**
5163
5191
  * Возвращает кратность количества для указанного товара.
@@ -5166,7 +5194,7 @@ const V = class V {
5166
5194
  */
5167
5195
  static getProductMultiplicity(r) {
5168
5196
  var e, s;
5169
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !V.productIsMeasurable(r) ? r.properties.minCount : 1;
5197
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !E.productIsMeasurable(r) ? r.properties.minCount : 1;
5170
5198
  }
5171
5199
  /**
5172
5200
  * Возвращает кратность длины для указанного товара.
@@ -5181,14 +5209,14 @@ const V = class V {
5181
5209
  /**
5182
5210
  * Список единиц измерения линейной величины.
5183
5211
  */
5184
- t(V, "linearValues", ["пог.м.", "м.", "м2"]);
5185
- let Be = V;
5186
- class Wt {
5212
+ t(E, "linearValues", ["пог.м.", "м.", "м2"]);
5213
+ let ze = E;
5214
+ class Vt {
5187
5215
  /**
5188
5216
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5189
5217
  */
5190
5218
  static generateUndefinedManagerInstance() {
5191
- return new Ce({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5219
+ return new ve({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5192
5220
  }
5193
5221
  /**
5194
5222
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5199,7 +5227,7 @@ class Wt {
5199
5227
  return r.id === 0 && r.guid === "-undefined-";
5200
5228
  }
5201
5229
  }
5202
- class lt extends se {
5230
+ class pt extends se {
5203
5231
  /**
5204
5232
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5205
5233
  */
@@ -5207,11 +5235,11 @@ class lt extends se {
5207
5235
  const r = "/internal/managers", e = se.getCachedResponse(r);
5208
5236
  if (e)
5209
5237
  return e;
5210
- const i = (await this.get(r)).data.map((o) => xe.instanceInitializer(Ce, o));
5238
+ const i = (await this.get(r)).data.map((o) => ke.instanceInitializer(ve, o));
5211
5239
  return this.cacheResponse(r, i), i;
5212
5240
  }
5213
5241
  }
5214
- class lr extends cr {
5242
+ class pr extends ur {
5215
5243
  /**
5216
5244
  * Инициализирует экземпляр класса {@link OrderInfo}.
5217
5245
  *
@@ -5266,13 +5294,13 @@ class lr extends cr {
5266
5294
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5267
5295
  }, this.delivery = {
5268
5296
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5269
- date: f((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? y(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5270
- address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new me(e.delivery.address) : void 0,
5271
- warehouse: (D = e == null ? void 0 : e.delivery) != null && D.warehouse ? new we(e.delivery.warehouse) : void 0
5272
- }, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.pendingAt = f(e == null ? void 0 : e.pendingAt) ? y(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = f(e == null ? void 0 : e.processedAt) ? y(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;
5297
+ date: m((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? f(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5298
+ address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new fe(e.delivery.address) : void 0,
5299
+ warehouse: (D = e == null ? void 0 : e.delivery) != null && D.warehouse ? new Ce(e.delivery.warehouse) : void 0
5300
+ }, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
5273
5301
  }
5274
5302
  }
5275
- class ut extends B {
5303
+ class ht extends B {
5276
5304
  /**
5277
5305
  * Инициализирует экземпляр класса {@link OrderProduct}.
5278
5306
  *
@@ -5355,7 +5383,7 @@ class ut extends B {
5355
5383
  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;
5356
5384
  }
5357
5385
  }
5358
- class pt extends lr {
5386
+ class gt extends pr {
5359
5387
  /**
5360
5388
  * Инициализирует экземпляр класса {@link Order}.
5361
5389
  *
@@ -5395,10 +5423,10 @@ class pt extends lr {
5395
5423
  * Признак, что разрешена передача заказа в работу без оплаты.
5396
5424
  */
5397
5425
  t(this, "isAllowProcessingWithoutPayment");
5398
- this.products = (e.products ?? []).map((s) => new ut(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ge.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5426
+ this.products = (e.products ?? []).map((s) => new ht(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? me.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new C(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5399
5427
  }
5400
5428
  }
5401
- class Et extends ve {
5429
+ class Et extends Pe {
5402
5430
  /**
5403
5431
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5404
5432
  *
@@ -5411,7 +5439,7 @@ class Et extends ve {
5411
5439
  getOrders(r, e, s) {
5412
5440
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5413
5441
  const o = { ...i.data };
5414
- return o.data = o.data.map((c) => new lr(c)), o;
5442
+ return o.data = o.data.map((c) => new pr(c)), o;
5415
5443
  });
5416
5444
  }
5417
5445
  /**
@@ -5429,10 +5457,10 @@ class Et extends ve {
5429
5457
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5430
5458
  */
5431
5459
  getOrder(r) {
5432
- return this.get(`/internal/orders/${r}`, {}, (e) => new pt(e.data));
5460
+ return this.get(`/internal/orders/${r}`, {}, (e) => new gt(e.data));
5433
5461
  }
5434
5462
  }
5435
- class De {
5463
+ class $e {
5436
5464
  /**
5437
5465
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5438
5466
  *
@@ -5459,12 +5487,12 @@ class De {
5459
5487
  * Источник клиентской цены.
5460
5488
  */
5461
5489
  t(this, "source");
5462
- this.client = new oe(r == null ? void 0 : r.client), this.product = new b(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? ke.Product;
5490
+ this.client = new oe(r == null ? void 0 : r.client), this.product = new b(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;
5463
5491
  }
5464
5492
  }
5465
5493
  const ae = (n) => {
5466
5494
  var r, e, s, i, o;
5467
- return n ? vr(
5495
+ return n ? Rr(
5468
5496
  {
5469
5497
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5470
5498
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -5473,13 +5501,13 @@ const ae = (n) => {
5473
5501
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5474
5502
  hideNotActive: n.hideNotActive
5475
5503
  },
5476
- (c) => U(c) || (Ee(c) || Pr(c)) && Se(c)
5504
+ (c) => U(c) || (Je(c) || Ar(c)) && Le(c)
5477
5505
  ) : {};
5478
- }, He = (n) => {
5506
+ }, je = (n) => {
5479
5507
  const r = {};
5480
5508
  return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
5481
5509
  };
5482
- class Vt extends h {
5510
+ class Jt extends h {
5483
5511
  /**
5484
5512
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5485
5513
  *
@@ -5493,10 +5521,10 @@ class Vt extends h {
5493
5521
  return this.get(
5494
5522
  `/internal/price/products/${r}/analyze`,
5495
5523
  {
5496
- ...He(e),
5524
+ ...je(e),
5497
5525
  filters: ae(s)
5498
5526
  },
5499
- (i) => i.data.map((o) => new De(o))
5527
+ (i) => i.data.map((o) => new $e(o))
5500
5528
  );
5501
5529
  }
5502
5530
  /**
@@ -5512,10 +5540,10 @@ class Vt extends h {
5512
5540
  return this.get(
5513
5541
  `/internal/price/categories/${r}/analyze`,
5514
5542
  {
5515
- ...He(e),
5543
+ ...je(e),
5516
5544
  filters: ae(s)
5517
5545
  },
5518
- (i) => i.data.map((o) => new De(o))
5546
+ (i) => i.data.map((o) => new $e(o))
5519
5547
  );
5520
5548
  }
5521
5549
  /**
@@ -5536,11 +5564,11 @@ class Vt extends h {
5536
5564
  ...e,
5537
5565
  filters: ae(s)
5538
5566
  },
5539
- (i) => i.data.map((o) => new De(o))
5567
+ (i) => i.data.map((o) => new $e(o))
5540
5568
  );
5541
5569
  }
5542
5570
  }
5543
- class ht {
5571
+ class mt {
5544
5572
  /**
5545
5573
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5546
5574
  *
@@ -5558,7 +5586,7 @@ class ht {
5558
5586
  this.name = r.name, this.content = r.content;
5559
5587
  }
5560
5588
  }
5561
- class ze {
5589
+ class We {
5562
5590
  /**
5563
5591
  * Инициализирует экземпляр класса {@link Seo}.
5564
5592
  *
@@ -5594,10 +5622,10 @@ class ze {
5594
5622
  */
5595
5623
  t(this, "meta");
5596
5624
  var e;
5597
- this.resourceType = new tr(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 ht(s))) ?? [];
5625
+ this.resourceType = new ir(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 mt(s))) ?? [];
5598
5626
  }
5599
5627
  }
5600
- class Jt extends h {
5628
+ class Kt extends h {
5601
5629
  /**
5602
5630
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5603
5631
  *
@@ -5605,7 +5633,7 @@ class Jt extends h {
5605
5633
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
5606
5634
  */
5607
5635
  getResourceSeoData(r, e) {
5608
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new ze(s.data));
5636
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new We(s.data));
5609
5637
  }
5610
5638
  /**
5611
5639
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -5616,7 +5644,7 @@ class Jt extends h {
5616
5644
  * в случае ошибок в запросах.
5617
5645
  */
5618
5646
  saveResourceSeoData(r, e = {}) {
5619
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new ze(s.data), e);
5647
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new We(s.data), e);
5620
5648
  }
5621
5649
  /**
5622
5650
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -5628,8 +5656,8 @@ class Jt extends h {
5628
5656
  return this.delete(`/internal/seo/${r.slug}/${e}`);
5629
5657
  }
5630
5658
  }
5631
- const P = fe("__references_private", () => {
5632
- const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), c = C(void 0), u = C(void 0), p = C(void 0), R = C(void 0), D = C(void 0), I = C(void 0), L = C(void 0), x = C(void 0), k = C(void 0), d = C(void 0), O = C(void 0), l = C(void 0);
5659
+ const P = ye("__references_private", () => {
5660
+ const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), R = y(void 0), D = y(void 0), L = y(void 0), I = y(void 0), x = y(void 0), k = y(void 0), d = y(void 0), O = y(void 0), l = y(void 0);
5633
5661
  return {
5634
5662
  /**
5635
5663
  * Список загружаемых/загруженных на данный момент значений.
@@ -5678,11 +5706,11 @@ const P = fe("__references_private", () => {
5678
5706
  /**
5679
5707
  * Справочник типов файлов продукктов/категорий.
5680
5708
  */
5681
- productFileTypeReference: I,
5709
+ productFileTypeReference: L,
5682
5710
  /**
5683
5711
  * Справочник типов ресурсов.
5684
5712
  */
5685
- resourceTypesReference: L,
5713
+ resourceTypesReference: I,
5686
5714
  /**
5687
5715
  * Справочник направлений продаж.
5688
5716
  */
@@ -5704,92 +5732,92 @@ const P = fe("__references_private", () => {
5704
5732
  */
5705
5733
  priceCoefficientsReference: l
5706
5734
  };
5707
- }), Kt = fe("references", () => {
5735
+ }), Qt = ye("references", () => {
5708
5736
  const n = v(() => {
5709
5737
  const l = P();
5710
5738
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(A).getChannelPrimaryInterest().then((g) => {
5711
5739
  l.channelPrimaryInterestReference = g;
5712
- }).catch(m)), l.channelPrimaryInterestReference;
5740
+ }).catch(w)), l.channelPrimaryInterestReference;
5713
5741
  }), r = v(() => {
5714
5742
  const l = P();
5715
5743
  return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(A).getContactPositions().then((g) => {
5716
5744
  l.contactPositionsReference = g;
5717
- }).catch(m)), l.contactPositionsReference;
5745
+ }).catch(w)), l.contactPositionsReference;
5718
5746
  }), e = v(() => {
5719
5747
  const l = P();
5720
5748
  return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(A).getCurrency().then((g) => {
5721
5749
  l.currencyReference = g;
5722
- }).catch(m)), l.currencyReference;
5750
+ }).catch(w)), l.currencyReference;
5723
5751
  }), s = v(() => {
5724
5752
  const l = P();
5725
5753
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(A).getOpf().then((g) => {
5726
5754
  l.opfReference = g;
5727
- }).catch(m)), l.opfReference;
5755
+ }).catch(w)), l.opfReference;
5728
5756
  }), i = v(() => {
5729
5757
  const l = P();
5730
5758
  return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(A).getOrderPaymentStatuses().then((g) => {
5731
5759
  l.orderPaymentStatusReference = g;
5732
- }).catch(m)), l.orderPaymentStatusReference;
5760
+ }).catch(w)), l.orderPaymentStatusReference;
5733
5761
  }), o = v(() => {
5734
5762
  const l = P();
5735
5763
  return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(A).getOrderStatuses().then((g) => {
5736
5764
  l.orderStatusReference = g;
5737
- }).catch(m)), l.orderStatusReference;
5765
+ }).catch(w)), l.orderStatusReference;
5738
5766
  }), c = v(() => {
5739
5767
  const l = P();
5740
5768
  return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(A).getPaymentTypes().then((g) => {
5741
5769
  l.paymentTypeReference = g;
5742
- }).catch(m)), l.paymentTypeReference;
5770
+ }).catch(w)), l.paymentTypeReference;
5743
5771
  }), u = v(() => {
5744
5772
  const l = P();
5745
5773
  return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(A).getPartnerGroup().then((g) => {
5746
5774
  l.partnerGroupReference = g;
5747
- }).catch(m)), l.partnerGroupReference;
5775
+ }).catch(w)), l.partnerGroupReference;
5748
5776
  }), p = v(() => {
5749
5777
  const l = P();
5750
5778
  return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(A).getProductFileType().then((g) => {
5751
5779
  l.productFileTypeReference = g;
5752
- }).catch(m)), l.productFileTypeReference;
5780
+ }).catch(w)), l.productFileTypeReference;
5753
5781
  }), R = v(() => {
5754
5782
  const l = P();
5755
5783
  return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(A).getResourceTypes().then((g) => {
5756
5784
  l.resourceTypesReference = g;
5757
- }).catch(m)), l.resourceTypesReference;
5785
+ }).catch(w)), l.resourceTypesReference;
5758
5786
  }), D = v(() => {
5759
5787
  const l = P();
5760
5788
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(A).getSalesDirections().then((g) => {
5761
5789
  l.salesDirectionsReference = g;
5762
- }).catch(m)), l.salesDirectionsReference;
5763
- }), I = v(() => {
5790
+ }).catch(w)), l.salesDirectionsReference;
5791
+ }), L = v(() => {
5764
5792
  const l = P();
5765
5793
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(A).getSourcePrimaryInterest().then((g) => {
5766
5794
  l.sourcePrimaryInterestReference = g;
5767
- }).catch(m)), l.sourcePrimaryInterestReference;
5768
- }), L = v(() => {
5795
+ }).catch(w)), l.sourcePrimaryInterestReference;
5796
+ }), I = v(() => {
5769
5797
  const l = P();
5770
5798
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(A).getDeliveryTypes().then((g) => {
5771
5799
  l.deliveryTypeReference = g;
5772
- }).catch(m)), l.deliveryTypeReference;
5800
+ }).catch(w)), l.deliveryTypeReference;
5773
5801
  }), x = v(() => {
5774
5802
  const l = P();
5775
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(lt).getManagers().then((g) => {
5803
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(pt).getManagers().then((g) => {
5776
5804
  l.managersList = g;
5777
- }).catch(m)), l.managersList;
5805
+ }).catch(w)), l.managersList;
5778
5806
  }), k = v(() => {
5779
5807
  const l = P();
5780
5808
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(A).getWarehouses().then((g) => {
5781
5809
  l.warehousesReference = g;
5782
- }).catch(m)), l.warehousesReference;
5810
+ }).catch(w)), l.warehousesReference;
5783
5811
  }), d = v(() => {
5784
5812
  const l = P();
5785
5813
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(A).getPropertyTypes().then((g) => {
5786
5814
  l.propertyTypesReference = g;
5787
- }).catch(m)), l.propertyTypesReference;
5815
+ }).catch(w)), l.propertyTypesReference;
5788
5816
  }), O = v(() => {
5789
5817
  const l = P();
5790
5818
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(A).getPriceCoefficients().then((g) => {
5791
5819
  l.priceCoefficientsReference = g;
5792
- }).catch(m)), l.priceCoefficientsReference;
5820
+ }).catch(w)), l.priceCoefficientsReference;
5793
5821
  });
5794
5822
  return {
5795
5823
  /**
@@ -5839,11 +5867,11 @@ const P = fe("__references_private", () => {
5839
5867
  /**
5840
5868
  * Справочник каналов первичного интереса.
5841
5869
  */
5842
- sourcePrimaryInterestsReference: I,
5870
+ sourcePrimaryInterestsReference: L,
5843
5871
  /**
5844
5872
  * Справочник типов доставки.
5845
5873
  */
5846
- deliveryTypeReference: L,
5874
+ deliveryTypeReference: I,
5847
5875
  /**
5848
5876
  * Список менеджеров.
5849
5877
  */
@@ -5861,29 +5889,7 @@ const P = fe("__references_private", () => {
5861
5889
  */
5862
5890
  priceCoefficientsReference: O
5863
5891
  };
5864
- }), gt = fe("__user_state_private", () => {
5865
- const n = C({}), r = C(void 0);
5866
- return {
5867
- /**
5868
- * Список загружаемых/загруженных на данный момент значений.
5869
- */
5870
- dataLoaderList: n,
5871
- /**
5872
- * Данные о текущем пользователе.
5873
- */
5874
- currentUser: r
5875
- };
5876
- }), Qt = fe("user_state", () => ({
5877
- /**
5878
- * Данные о текущем пользователе.
5879
- */
5880
- currentUser: v(() => {
5881
- const r = gt();
5882
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(et).getCurrentUser().then((e) => {
5883
- r.currentUser = e;
5884
- }).catch(m).finally(m)), r.currentUser;
5885
- })
5886
- }));
5892
+ });
5887
5893
  class Yt extends h {
5888
5894
  /**
5889
5895
  * Возвращает подсказки по адресам.
@@ -5955,142 +5961,142 @@ class Xt {
5955
5961
  }
5956
5962
  }
5957
5963
  export {
5958
- Er as AnyReference,
5959
- Dt as AppBaseConfig,
5960
- a as AppConfigProvider,
5961
- Te as BankAccount,
5962
- ve as BasePaginationProvider,
5964
+ Vr as AnyReference,
5965
+ _t as AppBaseConfig,
5966
+ $ as AppConfigProvider,
5967
+ be as BankAccount,
5968
+ Pe as BasePaginationProvider,
5963
5969
  Fr as CalculationTypeEnum,
5964
5970
  ce as Cart,
5965
- Or as CartItem,
5966
- Nr as CartItemBase,
5967
- at as CartProvider,
5968
- _t as CatalogProvider,
5969
- Je as CatalogableItem,
5971
+ Ur as CartItem,
5972
+ qr as CartItemBase,
5973
+ $t as CartProvider,
5974
+ St as CatalogProvider,
5975
+ Qe as CatalogableItem,
5970
5976
  q as Category,
5971
- Ue as CategoryPricingRule,
5972
- rr as ChannelPrimaryInterest,
5977
+ Me as CategoryPricingRule,
5978
+ sr as ChannelPrimaryInterest,
5973
5979
  bt as City,
5974
- de as CityWithRegionAndCountry,
5975
- Fe as Client,
5976
- ot as ClientAdditionalData,
5977
- pe as ClientCategory,
5978
- Bt as ClientDataProvider,
5979
- St as ClientPriceProvider,
5980
+ Ne as CityWithRegionAndCountry,
5981
+ He as Client,
5982
+ lt as ClientAdditionalData,
5983
+ he as ClientCategory,
5984
+ Ht as ClientDataProvider,
5985
+ Lt as ClientPriceProvider,
5980
5986
  It as ClientPriceTemplateProvider,
5981
5987
  K as ClientProduct,
5982
- kt as ClientProductCategoryDataProvider,
5983
- dt as ClientProductDataProvider,
5988
+ dt as ClientProductCategoryDataProvider,
5989
+ Nt as ClientProductDataProvider,
5984
5990
  oe as ClientShortInfo,
5985
- tt as ClientsAdditionalDataRequestTypeEnum,
5986
- Gt as ClientsListFilters,
5987
- zt as ConfiguratorProvider,
5988
- be as Contact,
5991
+ it as ClientsAdditionalDataRequestTypeEnum,
5992
+ Mt as ClientsListFilters,
5993
+ jt as ConfiguratorProvider,
5994
+ _e as Contact,
5989
5995
  jr as ContactLinks,
5990
5996
  F as ContactPerson,
5991
- nt as ContactPersonRelated,
5992
- Vr as ContactPosition,
5993
- Ae as ContactRelation,
5994
- ir as ContragentBase,
5995
- ge as ContragentFactory,
5996
- nr as ContragentIc,
5997
- st as ContragentPerson,
5998
- it as ContragentUlNr,
5999
- or as ContragentUlR,
6000
- ke as CostSourceEnum,
5997
+ ct as ContactPersonRelated,
5998
+ Er as ContactPosition,
5999
+ De as ContactRelation,
6000
+ or as ContragentBase,
6001
+ me as ContragentFactory,
6002
+ cr as ContragentIc,
6003
+ nt as ContragentPerson,
6004
+ ot as ContragentUlNr,
6005
+ lr as ContragentUlR,
6006
+ de as CostSourceEnum,
6001
6007
  Q as Country,
6002
- he as Currency,
6008
+ ge as Currency,
6003
6009
  Yt as DataSuggestionProvider,
6004
- Mt as DataTablePagination,
6005
- ct as DataTablePaginationRequestParams,
6006
- Ft as DataTableSortRequestParams,
6007
- jt as DateTimeProvider,
6010
+ Ft as DataTablePagination,
6011
+ ut as DataTablePaginationRequestParams,
6012
+ Bt as DataTableSortRequestParams,
6013
+ Wt as DateTimeProvider,
6008
6014
  Hr as DeletableNamedIdentity,
6009
- me as DeliveryAddress,
6015
+ fe as DeliveryAddress,
6010
6016
  J as DeliveryType,
6011
- At as DetailedJwtPayload,
6012
- qr as DeviceTypeResolutionConfig,
6017
+ Dt as DetailedJwtPayload,
6018
+ et as DeviceTypeResolutionConfig,
6013
6019
  zr as DiscountShortInfo,
6014
6020
  Xt as FieldValidationResultData,
6015
6021
  ie as FilterGroup,
6016
- Ge as FilterItem,
6017
- Ne as FilterOpEnum,
6018
- Qe as GeoCoordinates,
6019
- kr as HiddenCatalogableItem,
6022
+ Fe as FilterItem,
6023
+ Oe as FilterOpEnum,
6024
+ Xe as GeoCoordinates,
6025
+ Nr as HiddenCatalogableItem,
6020
6026
  se as HttpCachedRequester,
6021
- Ur as HttpParamsConfig,
6027
+ rt as HttpParamsConfig,
6022
6028
  h as HttpRequester,
6023
6029
  B as Identity,
6024
- dr as Image,
6025
- ue as JwtPayload,
6026
- Ce as Manager,
6030
+ Or as Image,
6031
+ pe as JwtPayload,
6032
+ ve as Manager,
6027
6033
  re as ManagerCommon,
6028
- Wt as ManagerDataFactory,
6029
- lt as ManagerDataProvider,
6030
- ht as MetaTagItem,
6031
- $ as NamedIdentity,
6034
+ Vt as ManagerDataFactory,
6035
+ pt as ManagerDataProvider,
6036
+ mt as MetaTagItem,
6037
+ a as NamedIdentity,
6032
6038
  M as Opf,
6033
6039
  T as OpfEnum,
6034
- pt as Order,
6035
- lr as OrderInfo,
6040
+ gt as Order,
6041
+ pr as OrderInfo,
6036
6042
  Jr as OrderPaymentStatus,
6037
- ut as OrderProduct,
6038
- cr as OrderShortInfo,
6043
+ ht as OrderProduct,
6044
+ ur as OrderShortInfo,
6039
6045
  Kr as OrderStatus,
6040
6046
  Et as OrdersDataProvider,
6041
6047
  Y as PartnerGroup,
6042
6048
  Qr as PaymentType,
6043
- $t as PreferencesStorageProvider,
6044
- De as PriceAnalyze,
6045
- Vt as PriceAnalyzeProvider,
6046
- ye as PriceCoefficient,
6047
- Ke as PriceCoefficientEnum,
6049
+ at as PreferencesStorageProvider,
6050
+ $e as PriceAnalyze,
6051
+ Jt as PriceAnalyzeProvider,
6052
+ we as PriceCoefficient,
6053
+ Ye as PriceCoefficientEnum,
6048
6054
  j as PriceTemplate,
6049
- Pe as PriceTemplateCategory,
6055
+ Re as PriceTemplateCategory,
6050
6056
  X as PriceTemplateClient,
6051
- Xe as PriceTemplateICatalogableItem,
6052
- Re as PriceTemplateProduct,
6053
- Nt as PriceTemplateProvider,
6057
+ rr as PriceTemplateICatalogableItem,
6058
+ Ae as PriceTemplateProduct,
6059
+ Ot as PriceTemplateProvider,
6054
6060
  ee as PricingRole,
6055
- Ot as PricingRoleProvider,
6056
- $e as PrimaryCatalogableItem,
6061
+ qt as PricingRoleProvider,
6062
+ Te as PrimaryCatalogableItem,
6057
6063
  b as Product,
6058
- Lt as ProductCategoryDataProvider,
6059
- xt as ProductDataProvider,
6064
+ xt as ProductCategoryDataProvider,
6065
+ kt as ProductDataProvider,
6060
6066
  Yr as ProductFileType,
6061
- Le as ProductPriceCoefficient,
6062
- rt as ProductPriceHistory,
6063
- qt as PropertiesProvider,
6067
+ xe as ProductPriceCoefficient,
6068
+ Zr as ProductPriceHistory,
6069
+ Ut as PropertiesProvider,
6064
6070
  Z as Property,
6065
- er as PropertyType,
6071
+ tr as PropertyType,
6066
6072
  Br as PropertyTypeEnum,
6067
6073
  H as PropertyValue,
6068
- Ut as RecommendationsDataProvider,
6069
- qe as RecommendationsList,
6070
- w as Reference,
6074
+ Gt as RecommendationsDataProvider,
6075
+ Ge as RecommendationsList,
6076
+ C as Reference,
6071
6077
  A as ReferenceDataProvider,
6072
6078
  te as Region,
6073
- tr as ResourceType,
6079
+ ir as ResourceType,
6074
6080
  S as SalesDirection,
6075
- Gr as SentryConfig,
6076
- ze as Seo,
6077
- Jt as SeoDataProvider,
6078
- sr as SourcePrimaryInterest,
6079
- xr as StockCount,
6081
+ tt as SentryConfig,
6082
+ We as Seo,
6083
+ Kt as SeoDataProvider,
6084
+ nr as SourcePrimaryInterest,
6085
+ dr as StockCount,
6080
6086
  Tt as TemplatesListFilters,
6081
- xe as TypedInstanceFactory,
6082
- Be as UnitsHelper,
6083
- Ht as UnknownClientDataProvider,
6084
- Ye as UpdatableNamedIdentity,
6085
- Zr as User,
6087
+ ke as TypedInstanceFactory,
6088
+ ze as UnitsHelper,
6089
+ zt as UnknownClientDataProvider,
6090
+ er as UpdatableNamedIdentity,
6091
+ Gr as User,
6086
6092
  Ze as UserCommonInfo,
6087
- et as UserDataProvider,
6093
+ Mr as UserDataProvider,
6088
6094
  G as UserShortInfo,
6089
6095
  Xr as UserTypeEnum,
6090
- Mr as VersionConfig,
6091
- we as Warehouse,
6092
- Me as findCatalogItemByIdRecursive,
6093
- Kt as useReferencesStore,
6094
- Qt as useUserStateStore
6096
+ st as VersionConfig,
6097
+ Ce as Warehouse,
6098
+ Be as findCatalogItemByIdRecursive,
6099
+ Qt as useReferencesStore,
6100
+ Ue as useUserStateStore
6095
6101
  };
6096
6102
  //# sourceMappingURL=sc-common-lib.js.map