@snabcentr/common-lib 1.64.0 → 1.65.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- var pr = Object.defineProperty;
2
- var hr = (n, r, e) => r in n ? pr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => hr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as We } from "jwt-decode";
5
- import { merge as Ve, isNil as U, toUpper as gr, constant as mr, isUndefined as fr, isString as m, cloneDeep as yr, noop as y, toLower as wr, isEmpty as Se, isFunction as Le, map as ce, forEach as Cr, isDate as vr, isArray as Ee, omitBy as Pr, isObject as Rr } from "lodash-es";
6
- import { objectToCamel as Ie, objectToSnake as qe } from "ts-case-convert";
7
- import { parseISO as f, format as B, addSeconds as Ar, isAfter as Dr, startOfToday as Je, addBusinessDays as $r, endOfTomorrow as br, startOfTomorrow as Tr, endOfYesterday as ar, startOfYesterday as _r, endOfToday as Sr, endOfDay as Lr, startOfDay as Ir } from "date-fns";
8
- import xr from "axios";
9
- import { defineStore as me } from "pinia";
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 $r, startOfTomorrow as ar, 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
10
  import { ref as C, computed as v } from "vue";
11
- class le {
11
+ class ue {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -99,7 +99,7 @@ class le {
99
99
  * @inheritDoc
100
100
  */
101
101
  t(this, "email", "");
102
- Ve(this, r);
102
+ We(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -107,10 +107,10 @@ class le {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- return new le(Ie(We(r)));
110
+ return new ue(Ie(je(r)));
111
111
  }
112
112
  }
113
- class Dt extends le {
113
+ class At extends ue {
114
114
  /**
115
115
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
116
116
  *
@@ -142,7 +142,7 @@ class Dt extends le {
142
142
  * @inheritDoc
143
143
  */
144
144
  t(this, "address");
145
- Ve(this, e);
145
+ We(this, e);
146
146
  }
147
147
  /**
148
148
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -150,10 +150,10 @@ class Dt extends le {
150
150
  * @param jwtToken JWT-ключ доступа.
151
151
  */
152
152
  static getJwtPayload(e) {
153
- return new le(Ie(We(e)));
153
+ return new ue(Ie(je(e)));
154
154
  }
155
155
  }
156
- class H {
156
+ class B {
157
157
  /**
158
158
  * Инициализирует экземпляр класса {@link Identity}.
159
159
  *
@@ -178,7 +178,7 @@ class H {
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 H {
181
+ class a extends B {
182
182
  /**
183
183
  * Инициализирует экземпляр класса {@link NamedIdentity}.
184
184
  *
@@ -193,7 +193,7 @@ class $ extends H {
193
193
  this.name = (e == null ? void 0 : e.name) ?? "";
194
194
  }
195
195
  }
196
- class Ke extends $ {
196
+ class Je extends a {
197
197
  /**
198
198
  * Инициализирует экземпляр класса {@link CatalogableItem}.
199
199
  *
@@ -216,7 +216,7 @@ class Ke 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 Ke {
219
+ class ae extends Je {
220
220
  /**
221
221
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
222
222
  *
@@ -231,7 +231,7 @@ class $e extends Ke {
231
231
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
232
232
  }
233
233
  }
234
- class ie extends $e {
234
+ class ne extends ae {
235
235
  /**
236
236
  * Инициализирует экземпляр класса {@link BaseCategory}.
237
237
  *
@@ -255,11 +255,11 @@ class ie 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]) => [gr(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]) => [hr(s), i])) : void 0;
259
259
  }
260
260
  }
261
- var Qe = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Qe || {});
262
- class w extends $ {
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 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 fe extends w {
281
+ class ye extends w {
282
282
  /**
283
283
  * Возвращает значение справочника коэффициента розничной цены.
284
284
  */
285
285
  static getRetailPriceCoefficient() {
286
- return { id: -2, slug: Qe.Retail, name: "Розн. цена", guid: "", isNewRec: mr(!0) };
286
+ return { id: -2, slug: Ke.Retail, name: "Розн. цена", guid: "", isNewRec: gr(!0) };
287
287
  }
288
288
  }
289
- class xe {
289
+ class Le {
290
290
  /**
291
291
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
292
292
  *
@@ -313,10 +313,10 @@ class xe {
313
313
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
314
314
  */
315
315
  t(this, "readOnly");
316
- this.coefficient = new fe(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
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;
317
317
  }
318
318
  }
319
- class Ye {
319
+ class Qe {
320
320
  /**
321
321
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
322
322
  *
@@ -336,7 +336,7 @@ class Ye {
336
336
  }
337
337
  class J extends w {
338
338
  }
339
- class ye extends w {
339
+ class we extends w {
340
340
  /**
341
341
  * Инициализирует экземпляр класса {@link Warehouse}.
342
342
  *
@@ -365,10 +365,10 @@ class ye 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 Ye(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 Qe(e == null ? void 0 : e.coordinates);
369
369
  }
370
370
  }
371
- class kr {
371
+ class xr {
372
372
  /**
373
373
  * Инициализирует экземпляр класса {@link StockCount}.
374
374
  *
@@ -383,7 +383,7 @@ class kr {
383
383
  * Количество остатков товара на складе.
384
384
  */
385
385
  t(this, "count");
386
- this.warehouse = new ye(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
386
+ this.warehouse = new we(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 (fr(W.config))
403
+ if (mr(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 b = W;
426
- class Nr extends Ke {
425
+ let $ = W;
426
+ class kr extends Je {
427
427
  /**
428
428
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
429
429
  *
@@ -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 a extends Nr {
464
+ class b extends kr {
465
465
  /**
466
466
  * Инициализирует экземпляр класса {@link Product}.
467
467
  *
@@ -546,16 +546,16 @@ class a extends Nr {
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 = 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 kr(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 = 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";
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, b.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((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);
551
+ s && (this.category = new ae({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new ae(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new dr(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 Le(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 = b.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 a extends Nr {
571
571
  return this.retailCostRub ?? this.costRub;
572
572
  }
573
573
  }
574
- class Or extends H {
574
+ class Nr extends B {
575
575
  /**
576
576
  * Инициализирует экземпляр класса {@link CartItemBase}.
577
577
  *
@@ -623,10 +623,10 @@ class Or extends H {
623
623
  * Признак того, что позиция является дополнительной продажей.
624
624
  */
625
625
  t(this, "isAdditionalSale");
626
- this.product = new a(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ie(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && yr(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 && fr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
627
627
  }
628
628
  }
629
- class qr extends Or {
629
+ class Or extends Nr {
630
630
  /**
631
631
  * Инициализирует экземпляр класса {@link CartItem}.
632
632
  *
@@ -676,7 +676,7 @@ class qr extends Or {
676
676
  this.currency = e.currency, this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
677
677
  }
678
678
  }
679
- class oe {
679
+ class ce {
680
680
  /**
681
681
  * Инициализирует экземпляр класса {@link Cart}.
682
682
  *
@@ -695,10 +695,10 @@ class oe {
695
695
  * Список итоговых сумм по направлениям продаж.
696
696
  */
697
697
  t(this, "directionsSum");
698
- this.items = r.items.map((e) => new qr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
698
+ this.items = r.items.map((e) => new Or(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
699
699
  }
700
700
  }
701
- class Ur {
701
+ class qr {
702
702
  /**
703
703
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
704
704
  *
@@ -720,7 +720,7 @@ class Ur {
720
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
721
  }
722
722
  }
723
- class Gr {
723
+ class Ur {
724
724
  /**
725
725
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
726
726
  *
@@ -728,21 +728,21 @@ class Gr {
728
728
  */
729
729
  constructor(r) {
730
730
  /**
731
- * API URI для выполнения запросов.
731
+ * @inheritDoc
732
732
  */
733
- t(this, "apiUri");
733
+ t(this, "portalApiUrl");
734
734
  /**
735
- * URL медиа-сервера.
735
+ * @inheritDoc
736
736
  */
737
737
  t(this, "mediaUrl");
738
738
  /**
739
- * Время кэширования данных ответов на запросы (секунд).
739
+ * @inheritDoc
740
740
  */
741
741
  t(this, "responseDataCacheTimeout");
742
- this.apiUri = (r == null ? void 0 : r.apiUri) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
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
743
  }
744
744
  }
745
- class Mr {
745
+ class Gr {
746
746
  /**
747
747
  * Инициализирует экземпляр класса {@link SentryConfig}.
748
748
  *
@@ -787,7 +787,7 @@ class Mr {
787
787
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
788
788
  }
789
789
  }
790
- class Fr {
790
+ class Mr {
791
791
  /**
792
792
  * Инициализирует экземпляр класса {@link VersionConfig}.
793
793
  *
@@ -806,10 +806,10 @@ class Fr {
806
806
  * Текущая версия приложения.
807
807
  */
808
808
  t(this, "version");
809
- 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";
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";
810
810
  }
811
811
  }
812
- class $t {
812
+ class Dt {
813
813
  /**
814
814
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
815
815
  *
@@ -849,17 +849,17 @@ class $t {
849
849
  */
850
850
  t(this, "dateFormats");
851
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 Gr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Ur(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Mr({
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
853
  environment: this.environment,
854
854
  ...r == null ? void 0 : r.sentry
855
- }), this.urls = r == null ? void 0 : r.urls, this.version = new Fr(r == null ? void 0 : r.version), this.dateFormats = {
855
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new Mr(r == null ? void 0 : r.version), this.dateFormats = {
856
856
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
857
857
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
858
858
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
859
859
  };
860
860
  }
861
861
  }
862
- class ke {
862
+ class xe {
863
863
  /**
864
864
  * Инициализирует экземпляр указанного класса.
865
865
  *
@@ -881,10 +881,8 @@ class ke {
881
881
  const _ = class _ {
882
882
  /**
883
883
  * Инициализирует экземпляр класса {@link HttpRequester}.
884
- *
885
- * @param baseUrl Базовый URL для выполнения запросов.
886
884
  */
887
- constructor(r) {
885
+ constructor() {
888
886
  /**
889
887
  * Клиент для выполнения запросов данных.
890
888
  */
@@ -896,23 +894,82 @@ const _ = class _ {
896
894
  * - error Данные об ошибке.
897
895
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
898
896
  */
899
- t(this, "defaultInstanceNotificationErrorResponseHandler", y);
900
- const e = b.getConfig().version;
901
- this.defaultInstanceNotificationErrorResponseHandler = _.baseDefaultNotificationErrorResponseHandler, this.httpClient = xr.create({
902
- // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
903
- baseURL: r,
897
+ t(this, "defaultInstanceNotificationErrorResponseHandler", m);
898
+ /**
899
+ * Возвращает базовый URL путь для выполнения запросов.
900
+ */
901
+ // eslint-disable-next-line class-methods-use-this
902
+ t(this, "getBaseUrl", () => `${$.getConfig().http.portalApiUrl}/api`);
903
+ /**
904
+ * Возвращает токен доступа к системе.
905
+ */
906
+ // eslint-disable-next-line class-methods-use-this
907
+ t(this, "getAccessToken", () => {
908
+ var s, i;
909
+ let r;
910
+ const e = $.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);
917
+ /**
918
+ * Функция обратного вызова для обработки ошибок запросов.
919
+ *
920
+ * @param error Данные об ошибке.
921
+ */
922
+ t(this, "requestErrorHandler", m);
923
+ /**
924
+ * Перехватчик запроса для установки URL для выполнения запросов.
925
+ *
926
+ * @param request Данные запроса.
927
+ */
928
+ t(this, "setBaseUrlRequestInterceptor", (r) => (r.baseURL = this.getBaseUrl(), r));
929
+ /**
930
+ * Перехватчик запроса для установки заголовков аутентификации.
931
+ *
932
+ * @param request Данные запроса.
933
+ */
934
+ t(this, "authRequestInterceptor", async (r) => {
935
+ const e = await this.getAccessToken();
936
+ return e && r.headers.set("Authorization", `Bearer ${e}`), r;
937
+ });
938
+ /**
939
+ * Перехватчик запроса для преобразования данных запроса.
940
+ *
941
+ * @param request Данные запроса.
942
+ */
943
+ // 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));
945
+ /**
946
+ * Перехватчик ошибок ответов на запрос.
947
+ *
948
+ * @param error Данные ошибки ответа на запрос.
949
+ */
950
+ t(this, "authErrorsResponseInterceptors", (r) => {
951
+ var s;
952
+ 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));
954
+ });
955
+ /**
956
+ * Перехватчик ответа для преобразования данных ответа на запрос.
957
+ *
958
+ * @param response Данные ответа на запрос.
959
+ */
960
+ // eslint-disable-next-line class-methods-use-this
961
+ t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ie(r.data)), r));
962
+ const r = $.getConfig().version;
963
+ this.defaultInstanceNotificationErrorResponseHandler = _.baseDefaultNotificationErrorResponseHandler, this.httpClient = Lr.create({
904
964
  headers: {
905
- "APP-VERSION": `${e.name} (${e.version}, ${B(e.date, b.getConfig().dateFormats.uiDate)})`,
965
+ "APP-VERSION": `${r.name} (${r.version}, ${z(r.date, $.getConfig().dateFormats.uiDate)})`,
906
966
  Accept: "application/json",
907
967
  "Content-Type": "application/json"
908
968
  }
909
- }), this.httpClient.interceptors.request.use(
910
- (s) => (s.method && (s.method === "get" && s.params && (s.params = qe(s.params)), ["put", "patch", "post"].includes(wr(s.method)) && s.data && (s.data = qe(s.data))), s),
911
- (s) => Promise.reject(s)
912
- ), this.httpClient.interceptors.response.use(
913
- (s) => (s.data && (s.data = Ie(s.data)), s),
969
+ }), this.httpClient.interceptors.request.use(this.setBaseUrlRequestInterceptor, (e) => Promise.reject(e)), this.httpClient.interceptors.request.use(this.authRequestInterceptor, (e) => Promise.reject(e)), this.httpClient.interceptors.request.use(this.dataConverterRequestInterceptor, (e) => Promise.reject(e)), this.httpClient.interceptors.response.use((e) => e, this.authErrorsResponseInterceptors), this.httpClient.interceptors.response.use(
970
+ this.dataConverterResponseInterceptor,
914
971
  // Возвращаем изменённую структуру сообщения об ошибке.
915
- (s) => _.convertHttpErrorResponse(s)
972
+ (e) => _.convertHttpErrorResponse(e)
916
973
  );
917
974
  }
918
975
  /**
@@ -929,7 +986,7 @@ const _ = class _ {
929
986
  * @param type Тип данных, которыми оперирует метод.
930
987
  */
931
988
  static getInstance(r) {
932
- return Object.prototype.hasOwnProperty.call(_.instances, r.name) || (_.instances[r.name] = ke.simpleInstanceInitializer(r)), _.instances[r.name];
989
+ return Object.prototype.hasOwnProperty.call(_.instances, r.name) || (_.instances[r.name] = xe.simpleInstanceInitializer(r)), _.instances[r.name];
933
990
  }
934
991
  /**
935
992
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1031,86 +1088,9 @@ t(_, "instances", {}), /**
1031
1088
  * - error Данные об ошибке.
1032
1089
  * - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1033
1090
  */
1034
- t(_, "baseDefaultNotificationErrorResponseHandler", y);
1035
- let be = _;
1036
- const V = class V extends be {
1037
- /**
1038
- * Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
1039
- *
1040
- * @param baseUrl Базовый URL для выполнения запросов.
1041
- */
1042
- constructor(e) {
1043
- super(e);
1044
- /**
1045
- * Время кэширования данных ответов на запросы (секунд).
1046
- */
1047
- t(this, "responseDataCacheTimeout");
1048
- const s = b.getConfig();
1049
- this.responseDataCacheTimeout = s.http.responseDataCacheTimeout;
1050
- }
1051
- /**
1052
- * Возвращает кэшированные данные.
1053
- * Если кэшированные данные отсутствуют, то вернет undefined.
1054
- *
1055
- * @param key Ключ запроса.
1056
- */
1057
- static getCachedResponse(e) {
1058
- const s = V.responseDataCache.get(e);
1059
- if (s && s.validTo > /* @__PURE__ */ new Date())
1060
- return s.val;
1061
- }
1062
- /**
1063
- * Сохраняет указанные данные из запроса в кэш результатов.
1064
- *
1065
- * @param url URL запроса.
1066
- * @param data Данные для кэширования.
1067
- */
1068
- cacheResponse(e, s) {
1069
- V.responseDataCache.set(e, {
1070
- validTo: Ar(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
1071
- val: s
1072
- });
1073
- }
1074
- /**
1075
- * Возвращает {@link Promise} типизированного результата выполнения запроса.
1076
- *
1077
- * @param type Тип возвращаемых данных.
1078
- * @param url URL запроса для получения данных.
1079
- * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
1080
- * и использовать в случае аналогичных запросов.
1081
- * @param params Дополнительные параметры запроса.
1082
- */
1083
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
1084
- getTypedDataArrayRequester(e, s, i = !1, o = {}) {
1085
- const c = s + (Se(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
1086
- return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
1087
- const R = p.map((D) => ke.instanceInitializer(e, D));
1088
- return i && R && this.cacheResponse(s, R), R;
1089
- });
1090
- }
1091
- };
1092
- /**
1093
- * Кэш результатов запросов.
1094
- */
1095
- t(V, "responseDataCache", /* @__PURE__ */ new Map());
1096
- let Te = V;
1097
- class h extends Te {
1098
- /**
1099
- * Инициализирует экземпляр класса {@link HttpRequester}.
1100
- */
1101
- constructor() {
1102
- var e;
1103
- const r = b.getConfig();
1104
- super(`${r.http.apiUri}/api`), (e = r.devMode) != null && e.authBearerToken && this.httpClient.interceptors.request.use(
1105
- (s) => {
1106
- var i;
1107
- return s.headers.set("Authorization", `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), s;
1108
- },
1109
- (s) => Promise.reject(s)
1110
- );
1111
- }
1112
- }
1113
- class bt extends h {
1091
+ t(_, "baseDefaultNotificationErrorResponseHandler", m);
1092
+ let h = _;
1093
+ class $t extends h {
1114
1094
  /**
1115
1095
  * Возвращает содержимое корзины указанного клиента.
1116
1096
  *
@@ -1119,7 +1099,7 @@ class bt extends h {
1119
1099
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
1120
1100
  */
1121
1101
  getCart(r) {
1122
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new oe(e.data));
1102
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ce(e.data));
1123
1103
  }
1124
1104
  /**
1125
1105
  * Удаляет всё содержимое корзины.
@@ -1157,7 +1137,7 @@ class bt extends h {
1157
1137
  isAdditionalSale: e.isAdditionalSale,
1158
1138
  ...e.configuratorParams
1159
1139
  },
1160
- (i) => new oe(i.data),
1140
+ (i) => new ce(i.data),
1161
1141
  s
1162
1142
  );
1163
1143
  }
@@ -1187,7 +1167,7 @@ class bt extends h {
1187
1167
  isAdditionalSale: e.isAdditionalSale,
1188
1168
  ...e.configuratorParams
1189
1169
  },
1190
- (i) => new oe(i.data),
1170
+ (i) => new ce(i.data),
1191
1171
  s
1192
1172
  );
1193
1173
  }
@@ -1210,11 +1190,11 @@ class bt extends h {
1210
1190
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1211
1191
  */
1212
1192
  addCartItemFromCSV(r) {
1213
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new oe(e.data));
1193
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ce(e.data));
1214
1194
  }
1215
1195
  }
1216
- var Hr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Hr || {}), Ne = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ne || {}), zr = /* @__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))(zr || {});
1217
- class q extends ie {
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 || {});
1197
+ class q extends ne {
1218
1198
  /**
1219
1199
  * Инициализирует экземпляр класса {@link Category}.
1220
1200
  *
@@ -1231,10 +1211,10 @@ class q extends ie {
1231
1211
  * Список продуктов категории.
1232
1212
  */
1233
1213
  t(this, "products");
1234
- 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 a(o));
1214
+ 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));
1235
1215
  }
1236
1216
  }
1237
- class Xe extends $ {
1217
+ class Ye extends a {
1238
1218
  /**
1239
1219
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1240
1220
  *
@@ -1246,10 +1226,10 @@ class Xe extends $ {
1246
1226
  * Дата и время последнего изменения.
1247
1227
  */
1248
1228
  t(this, "updatedAt");
1249
- this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1229
+ this.updatedAt = f(e == null ? void 0 : e.updatedAt) ? y(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1250
1230
  }
1251
1231
  }
1252
- class Br extends Xe {
1232
+ class Hr extends Ye {
1253
1233
  /**
1254
1234
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1255
1235
  *
@@ -1261,10 +1241,10 @@ class Br extends Xe {
1261
1241
  * Дата и время последнего удаления.
1262
1242
  */
1263
1243
  t(this, "deletedAt");
1264
- this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1244
+ this.deletedAt = f(e == null ? void 0 : e.deletedAt) ? y(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1265
1245
  }
1266
1246
  }
1267
- class Tt {
1247
+ class at {
1268
1248
  /**
1269
1249
  * Возвращает актуальные и не просроченные данные из хранилища.
1270
1250
  *
@@ -1275,7 +1255,7 @@ class Tt {
1275
1255
  if (e)
1276
1256
  try {
1277
1257
  const s = JSON.parse(e);
1278
- if (Dr(f(s.availableFor) || Je(), /* @__PURE__ */ new Date()))
1258
+ if (Rr(y(s.availableFor) || Ve(), /* @__PURE__ */ new Date()))
1279
1259
  return s.data ?? {};
1280
1260
  } catch {
1281
1261
  localStorage.removeItem(r);
@@ -1298,7 +1278,7 @@ class Tt {
1298
1278
  );
1299
1279
  }
1300
1280
  }
1301
- class G extends $ {
1281
+ class G extends a {
1302
1282
  /**
1303
1283
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1304
1284
  *
@@ -1313,7 +1293,7 @@ class G extends $ {
1313
1293
  this.type = e == null ? void 0 : e.type;
1314
1294
  }
1315
1295
  }
1316
- class jr extends $ {
1296
+ class zr extends a {
1317
1297
  /**
1318
1298
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1319
1299
  *
@@ -1349,10 +1329,10 @@ class jr extends $ {
1349
1329
  * Дата и время удаления.
1350
1330
  */
1351
1331
  t(this, "deletedAt");
1352
- 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;
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;
1353
1333
  }
1354
1334
  }
1355
- class j extends Xe {
1335
+ class j extends Ye {
1356
1336
  /**
1357
1337
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1358
1338
  *
@@ -1368,10 +1348,10 @@ class j extends Xe {
1368
1348
  * Дата и время создания шаблона.
1369
1349
  */
1370
1350
  t(this, "createdAt");
1371
- 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();
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();
1372
1352
  }
1373
1353
  }
1374
- class K extends a {
1354
+ class K extends b {
1375
1355
  /**
1376
1356
  * Инициализирует экземпляр класса {@link ClientProduct}.
1377
1357
  *
@@ -1407,10 +1387,10 @@ class K extends a {
1407
1387
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1408
1388
  */
1409
1389
  t(this, "isFavorite");
1410
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ne.Product, this.discount = e != null && e.discount ? new jr(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;
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;
1411
1391
  }
1412
1392
  }
1413
- class Wr {
1393
+ class jr {
1414
1394
  /**
1415
1395
  * Инициализирует экземпляр класса {@link ContactLinks}.
1416
1396
  *
@@ -1430,7 +1410,7 @@ class Wr {
1430
1410
  }
1431
1411
  class S extends w {
1432
1412
  }
1433
- class re extends $ {
1413
+ class re extends a {
1434
1414
  /**
1435
1415
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1436
1416
  *
@@ -1454,10 +1434,10 @@ class re extends $ {
1454
1434
  * Признак того, что менеджер является основным для клиента.
1455
1435
  */
1456
1436
  t(this, "isDefault");
1457
- e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Wr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1437
+ 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));
1458
1438
  }
1459
1439
  }
1460
- class we extends re {
1440
+ class Ce extends re {
1461
1441
  /**
1462
1442
  * Инициализирует экземпляр класса {@link Manager}.
1463
1443
  *
@@ -1488,7 +1468,7 @@ class we extends re {
1488
1468
  this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId;
1489
1469
  }
1490
1470
  }
1491
- class Vr extends ie {
1471
+ class Wr extends ne {
1492
1472
  /**
1493
1473
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1494
1474
  *
@@ -1516,10 +1496,10 @@ class Vr extends ie {
1516
1496
  * Данные о менеджере за которым закреплена категория.
1517
1497
  */
1518
1498
  t(this, "manager");
1519
- this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new we(e.manager) : void 0;
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;
1520
1500
  }
1521
1501
  }
1522
- class ue extends Vr {
1502
+ class pe extends Wr {
1523
1503
  /**
1524
1504
  * Инициализирует экземпляр класса {@link ClientCategory}.
1525
1505
  *
@@ -1536,10 +1516,10 @@ class ue extends Vr {
1536
1516
  * Список продуктов категории.
1537
1517
  */
1538
1518
  t(this, "products");
1539
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ue(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
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));
1540
1520
  }
1541
1521
  }
1542
- class Ze {
1522
+ class Xe {
1543
1523
  /**
1544
1524
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1545
1525
  *
@@ -1554,10 +1534,10 @@ class Ze {
1554
1534
  * Процент, который прибавляется к значению выбранного коэффициента.
1555
1535
  */
1556
1536
  t(this, "increasePercent");
1557
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new fe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1537
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new ye(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1558
1538
  }
1559
1539
  }
1560
- class ve extends Ze {
1540
+ class Pe extends Xe {
1561
1541
  /**
1562
1542
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1563
1543
  *
@@ -1569,7 +1549,7 @@ class ve extends Ze {
1569
1549
  * Базовые данные о продукте.
1570
1550
  */
1571
1551
  t(this, "productCategory");
1572
- this.productCategory = new ie(e == null ? void 0 : e.productCategory);
1552
+ this.productCategory = new ne(e == null ? void 0 : e.productCategory);
1573
1553
  }
1574
1554
  }
1575
1555
  class Q extends w {
@@ -1604,7 +1584,7 @@ class de extends w {
1604
1584
  e && (this.region = new te(e.region));
1605
1585
  }
1606
1586
  }
1607
- class er extends $ {
1587
+ class Ze extends a {
1608
1588
  /**
1609
1589
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1610
1590
  *
@@ -1640,10 +1620,10 @@ class er extends $ {
1640
1620
  * Признак активности учетной записи пользователя.
1641
1621
  */
1642
1622
  t(this, "isActive");
1643
- 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;
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;
1644
1624
  }
1645
1625
  }
1646
- class ne extends er {
1626
+ class oe extends Ze {
1647
1627
  /**
1648
1628
  * Инициализирует экземпляр класса {@link Client}.
1649
1629
  *
@@ -1688,7 +1668,7 @@ class ne extends er {
1688
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))) ?? [];
1689
1669
  }
1690
1670
  }
1691
- class X extends H {
1671
+ class X extends B {
1692
1672
  /**
1693
1673
  * Инициализирует новый экземпляр класса.
1694
1674
  *
@@ -1712,10 +1692,10 @@ class X extends H {
1712
1692
  * Данные шаблона прайс-листа.
1713
1693
  */
1714
1694
  t(this, "priceTemplate");
1715
- 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 ne(e == null ? void 0 : e.client), this.priceTemplate = new j(e == null ? void 0 : e.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);
1716
1696
  }
1717
1697
  }
1718
- class Pe extends Ze {
1698
+ class Re extends Xe {
1719
1699
  /**
1720
1700
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1721
1701
  *
@@ -1727,12 +1707,12 @@ class Pe extends Ze {
1727
1707
  * Базовые данные о продукте.
1728
1708
  */
1729
1709
  t(this, "product");
1730
- this.product = new a(e == null ? void 0 : e.product);
1710
+ this.product = new b(e == null ? void 0 : e.product);
1731
1711
  }
1732
1712
  }
1733
- class rr extends w {
1713
+ class er extends w {
1734
1714
  }
1735
- class Z extends $ {
1715
+ class Z extends a {
1736
1716
  /**
1737
1717
  * Инициализирует экземпляр класса {@link Property}.
1738
1718
  *
@@ -1752,10 +1732,10 @@ class Z extends $ {
1752
1732
  * Дополнительные метаданные свойства.
1753
1733
  */
1754
1734
  t(this, "metadata");
1755
- this.type = new rr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.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;
1756
1736
  }
1757
1737
  }
1758
- class z {
1738
+ class H {
1759
1739
  /**
1760
1740
  * Инициализирует экземпляр класса {@link PropertyValue}.
1761
1741
  *
@@ -1774,7 +1754,7 @@ class z {
1774
1754
  this.property = new Z(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
1775
1755
  }
1776
1756
  }
1777
- class d {
1757
+ class N {
1778
1758
  /**
1779
1759
  * Инициализирует экземпляр класса {@link DatePeriod}.
1780
1760
  *
@@ -1789,10 +1769,10 @@ class d {
1789
1769
  * Окончание периода.
1790
1770
  */
1791
1771
  t(this, "to");
1792
- 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;
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;
1793
1773
  }
1794
1774
  }
1795
- class at {
1775
+ class Tt {
1796
1776
  /**
1797
1777
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
1798
1778
  *
@@ -1814,12 +1794,12 @@ class at {
1814
1794
  /**
1815
1795
  * Период создания.
1816
1796
  */
1817
- t(this, "createdAt", new d());
1797
+ t(this, "createdAt", new N());
1818
1798
  /**
1819
1799
  * Период изменения.
1820
1800
  */
1821
- t(this, "updatedAt", new d());
1822
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new d(r == null ? void 0 : r.createdAt), this.updatedAt = new d(r == null ? void 0 : r.updatedAt);
1801
+ t(this, "updatedAt", new N());
1802
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new N(r == null ? void 0 : r.createdAt), this.updatedAt = new N(r == null ? void 0 : r.updatedAt);
1823
1803
  }
1824
1804
  /**
1825
1805
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -1852,19 +1832,19 @@ class at {
1852
1832
  return Object.keys(this).forEach((c) => {
1853
1833
  const u = this[c];
1854
1834
  // eslint-disable-next-line prettier/prettier
1855
- U(u) || m(u) && u.trim().length === 0 || Le(u.isNewRec) && u.isNewRec() || (r[c] = u);
1835
+ U(u) || f(u) && u.trim().length === 0 || _e(u.isNewRec) && u.isNewRec() || (r[c] = u);
1856
1836
  }), !((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;
1857
1837
  }
1858
1838
  }
1859
1839
  class Er extends w {
1860
1840
  }
1861
- class tr extends w {
1841
+ class rr extends w {
1862
1842
  }
1863
- class _t extends w {
1843
+ class bt extends w {
1864
1844
  }
1865
- class Jr extends w {
1845
+ class Vr extends w {
1866
1846
  }
1867
- class pe extends $ {
1847
+ class he extends a {
1868
1848
  /**
1869
1849
  * Инициализирует экземпляр класса {@link Currency}.
1870
1850
  *
@@ -1897,21 +1877,80 @@ class M extends w {
1897
1877
  });
1898
1878
  }
1899
1879
  }
1900
- class Kr extends w {
1880
+ class Jr extends w {
1901
1881
  }
1902
- class Qr extends w {
1882
+ class Kr extends w {
1903
1883
  }
1904
1884
  class Y extends w {
1905
1885
  }
1886
+ class Qr extends w {
1887
+ }
1906
1888
  class Yr extends w {
1907
1889
  }
1908
- class Xr extends w {
1890
+ class tr extends w {
1909
1891
  }
1910
1892
  class sr extends w {
1911
1893
  }
1912
- class ir extends w {
1913
- }
1914
- class A extends h {
1894
+ const E = class E extends h {
1895
+ /**
1896
+ * Инициализирует экземпляр класса {@link HttpCachedRequester}.
1897
+ */
1898
+ constructor() {
1899
+ super();
1900
+ /**
1901
+ * Время кэширования данных ответов на запросы (секунд).
1902
+ */
1903
+ t(this, "responseDataCacheTimeout");
1904
+ this.responseDataCacheTimeout = $.getConfig().http.responseDataCacheTimeout;
1905
+ }
1906
+ /**
1907
+ * Возвращает кэшированные данные.
1908
+ * Если кэшированные данные отсутствуют, то вернет undefined.
1909
+ *
1910
+ * @param key Ключ запроса.
1911
+ */
1912
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
1913
+ static getCachedResponse(e) {
1914
+ const s = E.responseDataCache.get(e);
1915
+ if (s && s.validTo > /* @__PURE__ */ new Date())
1916
+ return s.val;
1917
+ }
1918
+ /**
1919
+ * Сохраняет указанные данные из запроса в кэш результатов.
1920
+ *
1921
+ * @param url URL запроса.
1922
+ * @param data Данные для кэширования.
1923
+ */
1924
+ cacheResponse(e, s) {
1925
+ E.responseDataCache.set(e, {
1926
+ validTo: Ar(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
1927
+ val: s
1928
+ });
1929
+ }
1930
+ /**
1931
+ * Возвращает {@link Promise} типизированного результата выполнения запроса.
1932
+ *
1933
+ * @param type Тип возвращаемых данных.
1934
+ * @param url URL запроса для получения данных.
1935
+ * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
1936
+ * и использовать в случае аналогичных запросов.
1937
+ * @param params Дополнительные параметры запроса.
1938
+ */
1939
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
1940
+ getTypedDataArrayRequester(e, s, i = !1, o = {}) {
1941
+ const c = s + (Se(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? E.getCachedResponse(c) : void 0;
1942
+ return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
1943
+ const R = p.map((D) => xe.instanceInitializer(e, D));
1944
+ return i && R && this.cacheResponse(s, R), R;
1945
+ });
1946
+ }
1947
+ };
1948
+ /**
1949
+ * Кэш результатов запросов.
1950
+ */
1951
+ t(E, "responseDataCache", /* @__PURE__ */ new Map());
1952
+ let se = E;
1953
+ class A extends se {
1915
1954
  /**
1916
1955
  * Возвращает {@link Promise} для получения данных указанного справочника.
1917
1956
  *
@@ -1927,19 +1966,19 @@ class A extends h {
1927
1966
  * первичного интереса.
1928
1967
  */
1929
1968
  getChannelPrimaryInterest() {
1930
- return this.getTypedDataArrayRequester(tr, "/internal/references/channel-primary-interest", !0);
1969
+ return this.getTypedDataArrayRequester(rr, "/internal/references/channel-primary-interest", !0);
1931
1970
  }
1932
1971
  /**
1933
1972
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1934
1973
  */
1935
1974
  getContactPositions() {
1936
- return this.getTypedDataArrayRequester(Jr, "/internal/references/contact-position", !0);
1975
+ return this.getTypedDataArrayRequester(Vr, "/internal/references/contact-position", !0);
1937
1976
  }
1938
1977
  /**
1939
1978
  * Возвращает {@link Promise} для получения справочника списка валют.
1940
1979
  */
1941
1980
  getCurrency() {
1942
- return this.getTypedDataArrayRequester(pe, "/public/references/currency", !0);
1981
+ return this.getTypedDataArrayRequester(he, "/public/references/currency", !0);
1943
1982
  }
1944
1983
  /**
1945
1984
  * Возвращает {@link Promise} для получения справочника данных
@@ -1958,25 +1997,25 @@ class A extends h {
1958
1997
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1959
1998
  */
1960
1999
  getOrderPaymentStatuses() {
1961
- return this.getTypedDataArrayRequester(Kr, "/public/references/order-payment-status", !0);
2000
+ return this.getTypedDataArrayRequester(Jr, "/public/references/order-payment-status", !0);
1962
2001
  }
1963
2002
  /**
1964
2003
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1965
2004
  */
1966
2005
  getOrderStatuses() {
1967
- return this.getTypedDataArrayRequester(Qr, "/public/references/order-status", !0);
2006
+ return this.getTypedDataArrayRequester(Kr, "/public/references/order-status", !0);
1968
2007
  }
1969
2008
  /**
1970
2009
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1971
2010
  */
1972
2011
  getPaymentTypes() {
1973
- return this.getTypedDataArrayRequester(Yr, "/public/references/payment-type", !0);
2012
+ return this.getTypedDataArrayRequester(Qr, "/public/references/payment-type", !0);
1974
2013
  }
1975
2014
  /**
1976
2015
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
1977
2016
  */
1978
2017
  getResourceTypes() {
1979
- return this.getTypedDataArrayRequester(sr, "/internal/references/resource-type", !0);
2018
+ return this.getTypedDataArrayRequester(tr, "/internal/references/resource-type", !0);
1980
2019
  }
1981
2020
  /**
1982
2021
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -1988,7 +2027,7 @@ class A extends h {
1988
2027
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
1989
2028
  */
1990
2029
  getSourcePrimaryInterest() {
1991
- return this.getTypedDataArrayRequester(ir, "/internal/references/source-primary-interest", !0);
2030
+ return this.getTypedDataArrayRequester(sr, "/internal/references/source-primary-interest", !0);
1992
2031
  }
1993
2032
  /**
1994
2033
  * Выполняет поиск данных о городах по терму в названии.
@@ -2024,29 +2063,29 @@ class A extends h {
2024
2063
  * Возвращает {@link Promise} для получения справочника складов.
2025
2064
  */
2026
2065
  getWarehouses() {
2027
- return this.getTypedDataArrayRequester(ye, "/public/references/warehouse", !0);
2066
+ return this.getTypedDataArrayRequester(we, "/public/references/warehouse", !0);
2028
2067
  }
2029
2068
  /**
2030
2069
  * Возвращает {@link Promise} для получения справочника типов свойств.
2031
2070
  */
2032
2071
  getPropertyTypes() {
2033
- return this.getTypedDataArrayRequester(rr, "/internal/references/property-type", !0);
2072
+ return this.getTypedDataArrayRequester(er, "/internal/references/property-type", !0);
2034
2073
  }
2035
2074
  /**
2036
2075
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
2037
2076
  */
2038
2077
  getPriceCoefficients() {
2039
- return this.getTypedDataArrayRequester(fe, "/internal/references/price-coefficient", !0);
2078
+ return this.getTypedDataArrayRequester(ye, "/internal/references/price-coefficient", !0);
2040
2079
  }
2041
2080
  /**
2042
2081
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
2043
2082
  */
2044
2083
  getProductFileType() {
2045
- return this.getTypedDataArrayRequester(Xr, "/public/references/product-file-type", !0);
2084
+ return this.getTypedDataArrayRequester(Yr, "/public/references/product-file-type", !0);
2046
2085
  }
2047
2086
  }
2048
- var Zr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Zr || {});
2049
- class et extends er {
2087
+ 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 {
2050
2089
  /**
2051
2090
  * Инициализирует экземпляр класса {@link User}.
2052
2091
  *
@@ -2069,16 +2108,16 @@ class et extends er {
2069
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;
2070
2109
  }
2071
2110
  }
2072
- class rt extends h {
2111
+ class et extends h {
2073
2112
  /**
2074
2113
  * Возвращает данные о текущем пользователе.
2075
2114
  */
2076
2115
  // eslint-disable-next-line class-methods-use-this
2077
2116
  getCurrentUser() {
2078
- return this.get("/internal/users/info", {}, (r) => new et(r.data));
2117
+ return this.get("/internal/users/info", {}, (r) => new Zr(r.data));
2079
2118
  }
2080
2119
  }
2081
- class tt {
2120
+ class rt {
2082
2121
  /**
2083
2122
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
2084
2123
  *
@@ -2121,10 +2160,10 @@ class tt {
2121
2160
  * Данные о валюте.
2122
2161
  */
2123
2162
  t(this, "currency");
2124
- 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 pe(r.currency) : void 0;
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;
2125
2164
  }
2126
2165
  }
2127
- class Ue {
2166
+ class qe {
2128
2167
  /**
2129
2168
  * Инициализирует экземпляр класса {@link RecommendationsList}.
2130
2169
  *
@@ -2139,10 +2178,10 @@ class Ue {
2139
2178
  * Список рекомендованных категорий продуктов.
2140
2179
  */
2141
2180
  t(this, "productCategories", []);
2142
- r != null && r.products && (this.products = r.products.map((e) => new a(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
2181
+ 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)));
2143
2182
  }
2144
2183
  }
2145
- class ee extends $ {
2184
+ class ee extends a {
2146
2185
  /**
2147
2186
  * Инициализирует экземпляр класса {@link PricingRole}.
2148
2187
  *
@@ -2177,7 +2216,7 @@ class ee extends $ {
2177
2216
  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;
2178
2217
  }
2179
2218
  }
2180
- class Ge {
2219
+ class Ue {
2181
2220
  /**
2182
2221
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2183
2222
  *
@@ -2196,10 +2235,10 @@ class Ge {
2196
2235
  * Минимальный коэффициент цены.
2197
2236
  */
2198
2237
  t(this, "minCoefficient");
2199
- this.role = new ee(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new fe(r == null ? void 0 : r.minCoefficient);
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);
2200
2239
  }
2201
2240
  }
2202
- class St extends h {
2241
+ class _t extends h {
2203
2242
  /**
2204
2243
  * Возвращает данные о результатах поиска категорий и товаров.
2205
2244
  *
@@ -2226,11 +2265,11 @@ class St extends h {
2226
2265
  */
2227
2266
  // eslint-disable-next-line class-methods-use-this
2228
2267
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2229
- let c = `${b.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2268
+ let c = `${$.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2230
2269
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2231
2270
  }
2232
2271
  }
2233
- class Lt extends h {
2272
+ class St extends h {
2234
2273
  /**
2235
2274
  * Импортирует цены клиента из CSV файла.
2236
2275
  *
@@ -2464,12 +2503,12 @@ class It extends h {
2464
2503
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2465
2504
  */
2466
2505
  attachTemplate(r, e, s) {
2467
- const i = b.getConfig().dateFormats.api;
2506
+ const i = $.getConfig().dateFormats.api;
2468
2507
  return this.post(
2469
2508
  `/internal/clients/${r}/price/templates/${e}`,
2470
2509
  s && {
2471
- startAt: s.startAt && B(s.startAt, i),
2472
- endAt: s.endAt && B(s.endAt, i)
2510
+ startAt: s.startAt && z(s.startAt, i),
2511
+ endAt: s.endAt && z(s.endAt, i)
2473
2512
  },
2474
2513
  (o) => new X(o.data),
2475
2514
  {},
@@ -2498,12 +2537,12 @@ class It extends h {
2498
2537
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2499
2538
  */
2500
2539
  changeTemplate(r, e, s, i) {
2501
- const o = b.getConfig().dateFormats.api;
2540
+ const o = $.getConfig().dateFormats.api;
2502
2541
  return this.patch(
2503
2542
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2504
2543
  i && {
2505
- startAt: i.startAt && B(i.startAt, o),
2506
- endAt: i.endAt && B(i.endAt, o)
2544
+ startAt: i.startAt && z(i.startAt, o),
2545
+ endAt: i.endAt && z(i.endAt, o)
2507
2546
  },
2508
2547
  (c) => new X(c.data)
2509
2548
  );
@@ -2521,7 +2560,7 @@ class It extends h {
2521
2560
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2522
2561
  }
2523
2562
  }
2524
- class xt extends h {
2563
+ class Lt extends h {
2525
2564
  /**
2526
2565
  * Возвращает список данных о корневых категориях.
2527
2566
  *
@@ -2581,7 +2620,7 @@ class xt extends h {
2581
2620
  showHidden: s,
2582
2621
  withPriceCoefficients: e
2583
2622
  },
2584
- (i) => ce(i.data, (o) => new a(o))
2623
+ (i) => le(i.data, (o) => new b(o))
2585
2624
  );
2586
2625
  }
2587
2626
  /**
@@ -2594,7 +2633,7 @@ class xt extends h {
2594
2633
  getCategoryProductsCoefficients(r) {
2595
2634
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2596
2635
  const { data: s } = e;
2597
- return Cr(s, (i) => i.map((o) => new xe(o))), s;
2636
+ return wr(s, (i) => i.map((o) => new Le(o))), s;
2598
2637
  });
2599
2638
  }
2600
2639
  /**
@@ -2613,7 +2652,7 @@ class xt extends h {
2613
2652
  });
2614
2653
  }
2615
2654
  }
2616
- class kt extends h {
2655
+ class xt extends h {
2617
2656
  /**
2618
2657
  * Возвращает данные об указанном продукте.
2619
2658
  *
@@ -2623,7 +2662,7 @@ class kt extends h {
2623
2662
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2624
2663
  */
2625
2664
  getProductData(r, e = !1) {
2626
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new a(s.data));
2665
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new b(s.data));
2627
2666
  }
2628
2667
  /**
2629
2668
  * Возвращает публичные данные об указанном продукте.
@@ -2631,7 +2670,7 @@ class kt extends h {
2631
2670
  * @param productId Идентификатор продукта.
2632
2671
  */
2633
2672
  getPublicProductData(r) {
2634
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new a(e.data));
2673
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new b(e.data));
2635
2674
  }
2636
2675
  /**
2637
2676
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2644,7 +2683,7 @@ class kt extends h {
2644
2683
  return this.get(
2645
2684
  `/internal/catalog/products/${r}/coefficients`,
2646
2685
  {},
2647
- (e) => ce(e.data, (s) => new xe(s))
2686
+ (e) => le(e.data, (s) => new Le(s))
2648
2687
  );
2649
2688
  }
2650
2689
  /**
@@ -2657,7 +2696,7 @@ class kt extends h {
2657
2696
  */
2658
2697
  getProductPriceHistory(r, e) {
2659
2698
  const s = {};
2660
- return U(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ce(i.data, (o) => new tt(o)));
2699
+ return U(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => le(i.data, (o) => new rt(o)));
2661
2700
  }
2662
2701
  /**
2663
2702
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2668,14 +2707,14 @@ class kt extends h {
2668
2707
  publicSimpleSearch(r, e = 10) {
2669
2708
  return new Promise((s, i) => {
2670
2709
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2671
- s(o.products.map((c) => new a(c)));
2710
+ s(o.products.map((c) => new b(c)));
2672
2711
  }).catch((o) => {
2673
2712
  i(o);
2674
2713
  });
2675
2714
  });
2676
2715
  }
2677
2716
  }
2678
- class Nt extends h {
2717
+ class kt extends h {
2679
2718
  /**
2680
2719
  * Возвращает список данных о корневых категориях указанного клиента.
2681
2720
  *
@@ -2691,7 +2730,7 @@ class Nt extends h {
2691
2730
  clientId: r,
2692
2731
  showHidden: e
2693
2732
  },
2694
- (s) => s.data.map((i) => new ue(i))
2733
+ (s) => s.data.map((i) => new pe(i))
2695
2734
  );
2696
2735
  }
2697
2736
  /**
@@ -2712,7 +2751,7 @@ class Nt extends h {
2712
2751
  showHidden: s,
2713
2752
  withNestedCategories: i
2714
2753
  },
2715
- (o) => new ue(o.data)
2754
+ (o) => new pe(o.data)
2716
2755
  );
2717
2756
  }
2718
2757
  /**
@@ -2733,7 +2772,7 @@ class Nt extends h {
2733
2772
  showHidden: i,
2734
2773
  withPriceCoefficients: s
2735
2774
  },
2736
- (o) => ce(o.data, (c) => new K(c))
2775
+ (o) => le(o.data, (c) => new K(c))
2737
2776
  );
2738
2777
  }
2739
2778
  }
@@ -2758,8 +2797,8 @@ class dt extends h {
2758
2797
  );
2759
2798
  }
2760
2799
  }
2761
- 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 || {});
2762
- class Me {
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 {
2763
2802
  /**
2764
2803
  * Инициализирует экземпляр класса {@link FilterItem}.
2765
2804
  *
@@ -2778,7 +2817,7 @@ class Me {
2778
2817
  * Значение с которым сравнивается поле.
2779
2818
  */
2780
2819
  t(this, "value");
2781
- 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) ?? "";
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) ?? "";
2782
2821
  }
2783
2822
  /**
2784
2823
  * Преобразует фильтр в примитивное представление для API.
@@ -2790,10 +2829,10 @@ class Me {
2790
2829
  field: this.field,
2791
2830
  op: this.op
2792
2831
  };
2793
- return r.value = vr(this.value) ? B(this.value, b.getConfig().dateFormats.api) : this.value, r;
2832
+ return r.value = Cr(this.value) ? z(this.value, $.getConfig().dateFormats.api) : this.value, r;
2794
2833
  }
2795
2834
  }
2796
- class se {
2835
+ class ie {
2797
2836
  /**
2798
2837
  * Инициализирует экземпляр класса {@link FilterGroup}.
2799
2838
  *
@@ -2813,7 +2852,7 @@ class se {
2813
2852
  */
2814
2853
  t(this, "groups");
2815
2854
  var e, s;
2816
- 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 Me(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new se(i))) ?? [];
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))) ?? [];
2817
2856
  }
2818
2857
  /**
2819
2858
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2823,12 +2862,12 @@ class se {
2823
2862
  toPrimitive() {
2824
2863
  return {
2825
2864
  groupOp: this.groupOp,
2826
- filters: this.filters.map((r) => r instanceof Me && Le(r.toPrimitive) ? r.toPrimitive() : r),
2827
- groups: this.groups.map((r) => r instanceof se ? r.toPrimitive() : r)
2865
+ filters: this.filters.map((r) => r instanceof Ge && _e(r.toPrimitive) ? r.toPrimitive() : r),
2866
+ groups: this.groups.map((r) => r instanceof ie ? r.toPrimitive() : r)
2828
2867
  };
2829
2868
  }
2830
2869
  }
2831
- class Ce extends h {
2870
+ class ve extends h {
2832
2871
  /**
2833
2872
  * Получает пагинированный список данных.
2834
2873
  *
@@ -2845,10 +2884,10 @@ class Ce extends h {
2845
2884
  page: (i == null ? void 0 : i.page) ?? 1,
2846
2885
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2847
2886
  };
2848
- return e && (p.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), Se(s) || (p.sort = Ee(s) ? s : [s]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
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);
2849
2888
  }
2850
2889
  }
2851
- class Ot extends Ce {
2890
+ class Nt extends ve {
2852
2891
  /**
2853
2892
  * Возвращает список шаблонов прайс-листа.
2854
2893
  *
@@ -2920,7 +2959,7 @@ class Ot extends Ce {
2920
2959
  return this.get(
2921
2960
  `/internal/price/templates/${r}/products`,
2922
2961
  {},
2923
- (e) => e.data.map((s) => new Pe(s))
2962
+ (e) => e.data.map((s) => new Re(s))
2924
2963
  );
2925
2964
  }
2926
2965
  /**
@@ -2932,7 +2971,7 @@ class Ot extends Ce {
2932
2971
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
2933
2972
  */
2934
2973
  getProductTemplatePrice(r, e) {
2935
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Pe(s.data));
2974
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Re(s.data));
2936
2975
  }
2937
2976
  /**
2938
2977
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -2951,7 +2990,7 @@ class Ot extends Ce {
2951
2990
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2952
2991
  increase_percent: s.value
2953
2992
  },
2954
- (o) => new Pe(o.data)
2993
+ (o) => new Re(o.data)
2955
2994
  );
2956
2995
  }
2957
2996
  /**
@@ -2976,7 +3015,7 @@ class Ot extends Ce {
2976
3015
  return this.get(
2977
3016
  `/internal/price/templates/${r}/categories`,
2978
3017
  {},
2979
- (e) => e.data.map((s) => new ve(s))
3018
+ (e) => e.data.map((s) => new Pe(s))
2980
3019
  );
2981
3020
  }
2982
3021
  /**
@@ -2991,7 +3030,7 @@ class Ot extends Ce {
2991
3030
  return this.get(
2992
3031
  `/internal/price/templates/${r}/categories/${e}`,
2993
3032
  {},
2994
- (s) => new ve(s.data)
3033
+ (s) => new Pe(s.data)
2995
3034
  );
2996
3035
  }
2997
3036
  /**
@@ -3017,7 +3056,7 @@ class Ot extends Ce {
3017
3056
  },
3018
3057
  params: i ? { recursively: !0 } : {}
3019
3058
  },
3020
- (c) => new ve(c.data)
3059
+ (c) => new Pe(c.data)
3021
3060
  );
3022
3061
  }
3023
3062
  /**
@@ -3052,7 +3091,7 @@ class Ot extends Ce {
3052
3091
  );
3053
3092
  }
3054
3093
  }
3055
- class qt extends h {
3094
+ class Ot extends h {
3056
3095
  /**
3057
3096
  * Возвращает список ролей ценообразования.
3058
3097
  *
@@ -3113,7 +3152,7 @@ class qt extends h {
3113
3152
  return this.get(
3114
3153
  `/internal/price/roles/rules/categories/${r}`,
3115
3154
  {},
3116
- (e) => e.data.map((s) => new Ge(s))
3155
+ (e) => e.data.map((s) => new Ue(s))
3117
3156
  );
3118
3157
  }
3119
3158
  /**
@@ -3128,11 +3167,11 @@ class qt extends h {
3128
3167
  return this.patch(
3129
3168
  `/internal/price/roles/rules/categories/${r}`,
3130
3169
  e,
3131
- (s) => s.data.map((i) => new Ge(i))
3170
+ (s) => s.data.map((i) => new Ue(i))
3132
3171
  );
3133
3172
  }
3134
3173
  }
3135
- class Ut extends Ce {
3174
+ class qt extends ve {
3136
3175
  /**
3137
3176
  * Возвращает пагинированный список свойств.
3138
3177
  *
@@ -3208,7 +3247,7 @@ class Ut extends Ce {
3208
3247
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3209
3248
  */
3210
3249
  getProductProperties(r) {
3211
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new z(s)));
3250
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3212
3251
  }
3213
3252
  /**
3214
3253
  * Возвращает значение свойства продукта.
@@ -3218,7 +3257,7 @@ class Ut extends Ce {
3218
3257
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3219
3258
  */
3220
3259
  getProductProperty(r, e) {
3221
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new z(s.data));
3260
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
3222
3261
  }
3223
3262
  /**
3224
3263
  * Обновляет значение свойства продукта.
@@ -3229,7 +3268,7 @@ class Ut extends Ce {
3229
3268
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3230
3269
  */
3231
3270
  updateProductProperty(r, e, s) {
3232
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new z(i.data));
3271
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3233
3272
  }
3234
3273
  /**
3235
3274
  * Удаляет значение свойства продукта.
@@ -3354,7 +3393,7 @@ class Ut extends Ce {
3354
3393
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3355
3394
  */
3356
3395
  getCategoryProperties(r) {
3357
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new z(s)));
3396
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3358
3397
  }
3359
3398
  /**
3360
3399
  * Возвращает значение свойства категории.
@@ -3364,7 +3403,7 @@ class Ut extends Ce {
3364
3403
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3365
3404
  */
3366
3405
  getCategoryProperty(r, e) {
3367
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new z(s.data));
3406
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
3368
3407
  }
3369
3408
  /**
3370
3409
  * Обновляет значение свойства категории.
@@ -3375,7 +3414,7 @@ class Ut extends Ce {
3375
3414
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3376
3415
  */
3377
3416
  updateCategoryProperty(r, e, s) {
3378
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new z(i.data));
3417
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3379
3418
  }
3380
3419
  /**
3381
3420
  * Удаляет значение свойства категории.
@@ -3504,14 +3543,14 @@ class Ut extends Ce {
3504
3543
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3505
3544
  }
3506
3545
  }
3507
- class Gt extends h {
3546
+ class Ut extends h {
3508
3547
  /**
3509
3548
  * Возвращает данные о рекомендациях указанной категории продуктов.
3510
3549
  *
3511
3550
  * @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
3512
3551
  */
3513
3552
  getProductCategoryRecommendations(r) {
3514
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Ue(e.data));
3553
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new qe(e.data));
3515
3554
  }
3516
3555
  /**
3517
3556
  * Возвращает данные о рекомендациях указанного продукта.
@@ -3519,7 +3558,7 @@ class Gt extends h {
3519
3558
  * @param product Данные о продукте, для которого необходимо получить рекомендации.
3520
3559
  */
3521
3560
  getProductRecommendations(r) {
3522
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Ue(e.data));
3561
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new qe(e.data));
3523
3562
  }
3524
3563
  /**
3525
3564
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -3546,7 +3585,7 @@ class Gt extends h {
3546
3585
  });
3547
3586
  }
3548
3587
  }
3549
- function Fe(n, r, e) {
3588
+ function Me(n, r, e) {
3550
3589
  let s;
3551
3590
  return n.some((i) => {
3552
3591
  if (i.type === e && i.id === r)
@@ -3555,20 +3594,20 @@ function Fe(n, r, e) {
3555
3594
  return !1;
3556
3595
  const o = i;
3557
3596
  if (o.products && o.products.length > 0) {
3558
- const c = Fe(o.products, r, e);
3597
+ const c = Me(o.products, r, e);
3559
3598
  if (c)
3560
3599
  return s = c, !0;
3561
3600
  }
3562
3601
  if (o.categories && o.categories.length > 0) {
3563
- const c = Fe(o.categories, r, e);
3602
+ const c = Me(o.categories, r, e);
3564
3603
  if (c)
3565
3604
  return s = c, !0;
3566
3605
  }
3567
3606
  return !1;
3568
3607
  }), s;
3569
3608
  }
3570
- var st = /* @__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))(st || {});
3571
- class ae extends H {
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 {
3572
3611
  /**
3573
3612
  * Инициализирует экземпляр класса {@link BankAccount}.
3574
3613
  *
@@ -3595,11 +3634,11 @@ class ae extends H {
3595
3634
  /**
3596
3635
  * Данные о валюте.
3597
3636
  */
3598
- t(this, "currency", new pe());
3599
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new pe(e.currency));
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));
3600
3639
  }
3601
3640
  }
3602
- class _e extends $ {
3641
+ class be extends a {
3603
3642
  /**
3604
3643
  * Инициализирует экземпляр класса {@link Contact}.
3605
3644
  *
@@ -3618,7 +3657,7 @@ class _e extends $ {
3618
3657
  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;
3619
3658
  }
3620
3659
  }
3621
- class F extends _e {
3660
+ class F extends be {
3622
3661
  /**
3623
3662
  * Инициализирует экземпляр класса {@link ContactPerson}.
3624
3663
  *
@@ -3650,10 +3689,10 @@ class F extends _e {
3650
3689
  * Дата и время последнего удаления.
3651
3690
  */
3652
3691
  t(this, "deletedAt");
3653
- 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;
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;
3654
3693
  }
3655
3694
  }
3656
- class nr extends $ {
3695
+ class ir extends a {
3657
3696
  /**
3658
3697
  * Инициализирует экземпляр класса {@link ContragentBase}.
3659
3698
  *
@@ -3711,7 +3750,7 @@ class nr extends $ {
3711
3750
  */
3712
3751
  t(this, "updater");
3713
3752
  if (e) {
3714
- 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) {
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) {
3715
3754
  const s = [];
3716
3755
  e.contacts.forEach((i) => {
3717
3756
  s.push(new F(i));
@@ -3720,13 +3759,13 @@ class nr extends $ {
3720
3759
  if (e.bankAccounts) {
3721
3760
  const s = [];
3722
3761
  e.bankAccounts.forEach((i) => {
3723
- s.push(new ae(i));
3762
+ s.push(new Te(i));
3724
3763
  }), this.bankAccounts = s;
3725
3764
  }
3726
3765
  }
3727
3766
  }
3728
3767
  }
3729
- class it extends nr {
3768
+ class st extends ir {
3730
3769
  /**
3731
3770
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3732
3771
  *
@@ -3736,7 +3775,7 @@ class it extends nr {
3736
3775
  super(r);
3737
3776
  }
3738
3777
  }
3739
- class or extends nr {
3778
+ class nr extends ir {
3740
3779
  /**
3741
3780
  * Инициализирует экземпляр класса {@link ContragentIc}.
3742
3781
  *
@@ -3779,7 +3818,7 @@ class or extends nr {
3779
3818
  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 ?? "");
3780
3819
  }
3781
3820
  }
3782
- class cr extends or {
3821
+ class or extends nr {
3783
3822
  /**
3784
3823
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3785
3824
  *
@@ -3794,7 +3833,7 @@ class cr extends or {
3794
3833
  e && (this.kpp = e.kpp ?? "");
3795
3834
  }
3796
3835
  }
3797
- class nt extends cr {
3836
+ class it extends or {
3798
3837
  /**
3799
3838
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3800
3839
  *
@@ -3817,7 +3856,7 @@ class nt extends cr {
3817
3856
  e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3818
3857
  }
3819
3858
  }
3820
- class he {
3859
+ class ge {
3821
3860
  /**
3822
3861
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3823
3862
  *
@@ -3826,17 +3865,17 @@ class he {
3826
3865
  static createInstance(r) {
3827
3866
  switch (r.opf.slug) {
3828
3867
  case T.Ic:
3829
- return new or(r);
3868
+ return new nr(r);
3830
3869
  case T.UlR:
3831
- return new cr(r);
3870
+ return new or(r);
3832
3871
  case T.UlNr:
3833
- return new nt(r);
3834
- default:
3835
3872
  return new it(r);
3873
+ default:
3874
+ return new st(r);
3836
3875
  }
3837
3876
  }
3838
3877
  }
3839
- class Re extends H {
3878
+ class Ae extends B {
3840
3879
  /**
3841
3880
  * Инициализирует экземпляр класса {@link ContactRelation}.
3842
3881
  *
@@ -3851,7 +3890,7 @@ class Re extends H {
3851
3890
  this.isPrimary = e.isPrimary;
3852
3891
  }
3853
3892
  }
3854
- class ot extends F {
3893
+ class nt extends F {
3855
3894
  /**
3856
3895
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3857
3896
  *
@@ -3876,10 +3915,10 @@ class ot extends F {
3876
3915
  */
3877
3916
  addresses: []
3878
3917
  });
3879
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Re(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Re(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Re(s))));
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))));
3880
3919
  }
3881
3920
  }
3882
- class ge extends Br {
3921
+ class me extends Hr {
3883
3922
  /**
3884
3923
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3885
3924
  *
@@ -3916,10 +3955,10 @@ class ge extends Br {
3916
3955
  * Признак того, что указанный адрес является адресом транспортной компании.
3917
3956
  */
3918
3957
  t(this, "isTransportCompanyAddress");
3919
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ye(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;
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;
3920
3959
  }
3921
3960
  }
3922
- class He extends ne {
3961
+ class Fe extends oe {
3923
3962
  /**
3924
3963
  * Инициализирует экземпляр класса {@link Client}.
3925
3964
  *
@@ -3973,10 +4012,10 @@ class He extends ne {
3973
4012
  * Дополнительные данные о клиенте.
3974
4013
  */
3975
4014
  t(this, "extraData");
3976
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => he.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 ge(u))) ?? [], this.channelPrimaryInterest = new tr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new ir(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
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) ?? {};
3977
4016
  }
3978
4017
  }
3979
- class Mt {
4018
+ class Gt {
3980
4019
  /**
3981
4020
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3982
4021
  *
@@ -4026,11 +4065,11 @@ class Mt {
4026
4065
  /**
4027
4066
  * Период регистрации.
4028
4067
  */
4029
- t(this, "createdAt", new d());
4068
+ t(this, "createdAt", new N());
4030
4069
  /**
4031
4070
  * Период последнего входа.
4032
4071
  */
4033
- t(this, "lastLoginDate", new d());
4072
+ t(this, "lastLoginDate", new N());
4034
4073
  /**
4035
4074
  * Признак того, что в указанный период последнего входа, клиентом был сделан заказ.
4036
4075
  */
@@ -4068,8 +4107,8 @@ class Mt {
4068
4107
  */
4069
4108
  t(this, "lastOrder");
4070
4109
  var e, s, i, o, c, u;
4071
- 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 d(r == null ? void 0 : r.createdAt), this.lastLoginDate = new d(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 we(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 = {
4072
- createdAt: new d((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
4110
+ 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 = {
4111
+ createdAt: new N((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
4073
4112
  creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
4074
4113
  isApproved: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.isApproved
4075
4114
  };
@@ -4127,7 +4166,7 @@ class Mt {
4127
4166
  this.partnerGroups = [];
4128
4167
  break;
4129
4168
  case "contact":
4130
- this.contact = new _e();
4169
+ this.contact = new be();
4131
4170
  break;
4132
4171
  }
4133
4172
  return this;
@@ -4142,11 +4181,11 @@ class Mt {
4142
4181
  return Object.keys(this).forEach((c) => {
4143
4182
  const u = this[c];
4144
4183
  // eslint-disable-next-line prettier/prettier
4145
- U(u) || m(u) && u.trim().length === 0 || Le(u.isNewRec) && u.isNewRec() || (r[c] = u);
4184
+ U(u) || f(u) && u.trim().length === 0 || _e(u.isNewRec) && u.isNewRec() || (r[c] = u);
4146
4185
  }), !((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;
4147
4186
  }
4148
4187
  }
4149
- class lr extends H {
4188
+ class cr extends B {
4150
4189
  /**
4151
4190
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4152
4191
  *
@@ -4166,10 +4205,10 @@ class lr extends H {
4166
4205
  * Признак того, что заказ подтвержден в 1С.
4167
4206
  */
4168
4207
  t(this, "isApproved1c");
4169
- 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;
4208
+ 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;
4170
4209
  }
4171
4210
  }
4172
- class ct extends $ {
4211
+ class ot extends a {
4173
4212
  /**
4174
4213
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4175
4214
  *
@@ -4202,10 +4241,10 @@ class ct extends $ {
4202
4241
  * Список менеджеров.
4203
4242
  */
4204
4243
  t(this, "managers");
4205
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new lr(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)));
4244
+ (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)));
4206
4245
  }
4207
4246
  }
4208
- class lt {
4247
+ class ct {
4209
4248
  /**
4210
4249
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4211
4250
  *
@@ -4223,7 +4262,7 @@ class lt {
4223
4262
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4224
4263
  }
4225
4264
  }
4226
- class Ft extends lt {
4265
+ class Mt extends ct {
4227
4266
  /**
4228
4267
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4229
4268
  *
@@ -4254,7 +4293,7 @@ class Ft extends lt {
4254
4293
  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;
4255
4294
  }
4256
4295
  }
4257
- class Ht {
4296
+ class Ft {
4258
4297
  /**
4259
4298
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4260
4299
  *
@@ -4272,7 +4311,7 @@ class Ht {
4272
4311
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4273
4312
  }
4274
4313
  }
4275
- class zt extends Ce {
4314
+ class Bt extends ve {
4276
4315
  /**
4277
4316
  * Возвращает данные об указанном клиенте.
4278
4317
  *
@@ -4280,7 +4319,7 @@ class zt extends Ce {
4280
4319
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4281
4320
  */
4282
4321
  getClient(r) {
4283
- return this.get(`/internal/clients/${r}`, {}, (e) => new He(e.data));
4322
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Fe(e.data));
4284
4323
  }
4285
4324
  /**
4286
4325
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4295,7 +4334,7 @@ class zt extends Ce {
4295
4334
  getClientsList(r, e, s, i) {
4296
4335
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4297
4336
  const c = { ...o.data };
4298
- return c.data = c.data.map((u) => new ne(u)), c;
4337
+ return c.data = c.data.map((u) => new oe(u)), c;
4299
4338
  });
4300
4339
  }
4301
4340
  /**
@@ -4308,7 +4347,7 @@ class zt extends Ce {
4308
4347
  return this.getClientsList({
4309
4348
  groupOp: "and",
4310
4349
  groups: [],
4311
- filters: [{ field: "phone", op: Oe.Contains, value: r }]
4350
+ filters: [{ field: "phone", op: Ne.Contains, value: r }]
4312
4351
  });
4313
4352
  }
4314
4353
  /**
@@ -4322,7 +4361,7 @@ class zt extends Ce {
4322
4361
  const s = r.map((i) => i.id);
4323
4362
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4324
4363
  let o = [];
4325
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new ct(c))), o;
4364
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new ot(c))), o;
4326
4365
  });
4327
4366
  }
4328
4367
  /**
@@ -4334,7 +4373,7 @@ class zt extends Ce {
4334
4373
  getAllClientContacts(r) {
4335
4374
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4336
4375
  let s = [];
4337
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ot(i))), s;
4376
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new nt(i))), s;
4338
4377
  });
4339
4378
  }
4340
4379
  /**
@@ -4364,7 +4403,7 @@ class zt extends Ce {
4364
4403
  is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
4365
4404
  preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
4366
4405
  },
4367
- (i) => new He(i.data),
4406
+ (i) => new Fe(i.data),
4368
4407
  e
4369
4408
  );
4370
4409
  }
@@ -4474,7 +4513,7 @@ class zt extends Ce {
4474
4513
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4475
4514
  */
4476
4515
  createContragentClientData(r, e, s = {}) {
4477
- var p, R, D, L, I, x, k, N;
4516
+ var p, R, D, I, L, x, k, d;
4478
4517
  let i;
4479
4518
  const o = e, c = e, u = e;
4480
4519
  switch (e.opf.slug) {
@@ -4502,7 +4541,7 @@ class zt extends Ce {
4502
4541
  name: c.name,
4503
4542
  alternative_name: c.alternativeName,
4504
4543
  partner_group_id: (D = c.partnerGroup) == null ? void 0 : D.id,
4505
- manager_id: (L = c.manager) == null ? void 0 : L.id,
4544
+ manager_id: (I = c.manager) == null ? void 0 : I.id,
4506
4545
  comment: c.comment,
4507
4546
  inn: c.inn,
4508
4547
  kpp: c.kpp,
@@ -4520,7 +4559,7 @@ class zt extends Ce {
4520
4559
  opf: u.opf.slug,
4521
4560
  name: u.name,
4522
4561
  alternative_name: u.alternativeName,
4523
- partner_group_id: (I = u.partnerGroup) == null ? void 0 : I.id,
4562
+ partner_group_id: (L = u.partnerGroup) == null ? void 0 : L.id,
4524
4563
  manager_id: (x = u.manager) == null ? void 0 : x.id,
4525
4564
  comment: u.comment,
4526
4565
  director_name: u.directorName,
@@ -4540,7 +4579,7 @@ class zt extends Ce {
4540
4579
  name: e.name,
4541
4580
  alternative_name: e.alternativeName,
4542
4581
  partner_group_id: (k = e.partnerGroup) == null ? void 0 : k.id,
4543
- manager_id: (N = e.manager) == null ? void 0 : N.id,
4582
+ manager_id: (d = e.manager) == null ? void 0 : d.id,
4544
4583
  comment: e.comment
4545
4584
  };
4546
4585
  break;
@@ -4548,7 +4587,7 @@ class zt extends Ce {
4548
4587
  return this.post(
4549
4588
  `/internal/clients/${r}/contragents`,
4550
4589
  i,
4551
- (O) => he.createInstance(O.data),
4590
+ (O) => ge.createInstance(O.data),
4552
4591
  s
4553
4592
  );
4554
4593
  }
@@ -4563,7 +4602,7 @@ class zt extends Ce {
4563
4602
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4564
4603
  */
4565
4604
  updateContragentClientData(r, e, s = {}) {
4566
- var p, R, D, L, I, x, k, N;
4605
+ var p, R, D, I, L, x, k, d;
4567
4606
  let i;
4568
4607
  const o = e, c = e, u = e;
4569
4608
  switch (e.opf.slug) {
@@ -4591,7 +4630,7 @@ class zt extends Ce {
4591
4630
  name: c.name,
4592
4631
  alternative_name: c.alternativeName,
4593
4632
  partner_group_id: (D = c.partnerGroup) == null ? void 0 : D.id,
4594
- manager_id: (L = c.manager) == null ? void 0 : L.id,
4633
+ manager_id: (I = c.manager) == null ? void 0 : I.id,
4595
4634
  comment: c.comment,
4596
4635
  inn: c.inn,
4597
4636
  kpp: c.kpp,
@@ -4609,7 +4648,7 @@ class zt extends Ce {
4609
4648
  opf: u.opf.slug,
4610
4649
  name: u.name,
4611
4650
  alternative_name: u.alternativeName,
4612
- partner_group_id: (I = u.partnerGroup) == null ? void 0 : I.id,
4651
+ partner_group_id: (L = u.partnerGroup) == null ? void 0 : L.id,
4613
4652
  manager_id: (x = u.manager) == null ? void 0 : x.id,
4614
4653
  comment: u.comment,
4615
4654
  director_name: u.directorName,
@@ -4629,7 +4668,7 @@ class zt extends Ce {
4629
4668
  name: e.name,
4630
4669
  alternative_name: e.alternativeName,
4631
4670
  partner_group_id: (k = e.partnerGroup) == null ? void 0 : k.id,
4632
- manager_id: (N = e.manager) == null ? void 0 : N.id,
4671
+ manager_id: (d = e.manager) == null ? void 0 : d.id,
4633
4672
  comment: e.comment
4634
4673
  };
4635
4674
  break;
@@ -4637,7 +4676,7 @@ class zt extends Ce {
4637
4676
  return this.patch(
4638
4677
  `/internal/clients/${r}/contragents/${e.id}`,
4639
4678
  i,
4640
- (O) => he.createInstance(O.data),
4679
+ (O) => ge.createInstance(O.data),
4641
4680
  s
4642
4681
  );
4643
4682
  }
@@ -4675,7 +4714,7 @@ class zt extends Ce {
4675
4714
  }), e.operatingHours && (i.operating_hours = {
4676
4715
  from: e.operatingHours.from,
4677
4716
  to: e.operatingHours.to
4678
- }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new ge(u.data), s);
4717
+ }), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new me(u.data), s);
4679
4718
  }
4680
4719
  /**
4681
4720
  * Обновляет данные об адресе доставки клиента.
@@ -4704,7 +4743,7 @@ class zt extends Ce {
4704
4743
  }), this.patch(
4705
4744
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4706
4745
  i,
4707
- (u) => new ge(u.data),
4746
+ (u) => new me(u.data),
4708
4747
  s
4709
4748
  );
4710
4749
  }
@@ -4740,7 +4779,7 @@ class zt extends Ce {
4740
4779
  correspondent_account: s.correspondentAccount,
4741
4780
  currency_id: s.currency.id
4742
4781
  },
4743
- (o) => new ae(o.data),
4782
+ (o) => new Te(o.data),
4744
4783
  i
4745
4784
  );
4746
4785
  }
@@ -4766,7 +4805,7 @@ class zt extends Ce {
4766
4805
  correspondent_account: s.correspondentAccount,
4767
4806
  currency_id: s.currency.id
4768
4807
  },
4769
- (o) => new ae(o.data),
4808
+ (o) => new Te(o.data),
4770
4809
  i
4771
4810
  );
4772
4811
  }
@@ -4999,7 +5038,7 @@ class zt extends Ce {
4999
5038
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5000
5039
  }
5001
5040
  }
5002
- class Bt extends h {
5041
+ class Ht extends h {
5003
5042
  /**
5004
5043
  * Выполняет проверку занят ли указанный номер телефона.
5005
5044
  *
@@ -5013,7 +5052,7 @@ class Bt extends h {
5013
5052
  });
5014
5053
  }
5015
5054
  }
5016
- class jt extends h {
5055
+ class zt extends h {
5017
5056
  /**
5018
5057
  * Возвращает настройки указанного конфигуратора для указанной категории.
5019
5058
  *
@@ -5041,7 +5080,7 @@ class jt extends h {
5041
5080
  const i = this.get(
5042
5081
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
5043
5082
  { params: e },
5044
- (c) => new a(c.data)
5083
+ (c) => new b(c.data)
5045
5084
  );
5046
5085
  return i.catch((c) => {
5047
5086
  this.defaultInstanceNotificationErrorResponseHandler(c, s);
@@ -5084,29 +5123,29 @@ class jt extends h {
5084
5123
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
5085
5124
  }
5086
5125
  }
5087
- class Wt {
5126
+ class jt {
5088
5127
  /**
5089
5128
  * Возвращает диапазон дат по умолчанию.
5090
5129
  */
5091
5130
  static defaultDateRanges() {
5092
- const r = $r(/* @__PURE__ */ new Date(), 1);
5131
+ const r = Dr(/* @__PURE__ */ new Date(), 1);
5093
5132
  return {
5094
5133
  // 'Следующий рабочий день' - это значение по-умолчанию
5095
- nextWorkingDay: { label: "Следующий рабочий день", from: Ir(r), to: Lr(r) },
5096
- today: { label: "Сегодня", from: Je(), to: Sr() },
5097
- yesterday: { label: "Вчера", from: _r(), to: ar() },
5098
- tomorrow: { label: "Завтра", from: Tr(), to: br() }
5134
+ nextWorkingDay: { label: "Следующий рабочий день", from: Ir(r), to: Sr(r) },
5135
+ today: { label: "Сегодня", from: Ve(), to: _r() },
5136
+ yesterday: { label: "Вчера", from: br(), to: Tr() },
5137
+ tomorrow: { label: "Завтра", from: ar(), to: $r() }
5099
5138
  };
5100
5139
  }
5101
5140
  }
5102
- const E = class E {
5141
+ const V = class V {
5103
5142
  /**
5104
5143
  * Устанавливает список единиц измерения линейной величины.
5105
5144
  *
5106
5145
  * @param linearValues Список единиц измерения линейной величины.
5107
5146
  */
5108
5147
  static setLinearValues(r) {
5109
- E.linearValues = r;
5148
+ V.linearValues = r;
5110
5149
  }
5111
5150
  /**
5112
5151
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
@@ -5114,7 +5153,7 @@ const E = class E {
5114
5153
  * @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
5115
5154
  */
5116
5155
  static productIsMeasurable(r) {
5117
- return E.linearValues.includes(r.unit);
5156
+ return V.linearValues.includes(r.unit);
5118
5157
  }
5119
5158
  /**
5120
5159
  * Возвращает кратность количества для указанного товара.
@@ -5123,7 +5162,7 @@ const E = class E {
5123
5162
  */
5124
5163
  static getProductMultiplicity(r) {
5125
5164
  var e, s;
5126
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !E.productIsMeasurable(r) ? r.properties.minCount : 1;
5165
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !V.productIsMeasurable(r) ? r.properties.minCount : 1;
5127
5166
  }
5128
5167
  /**
5129
5168
  * Возвращает кратность длины для указанного товара.
@@ -5138,14 +5177,14 @@ const E = class E {
5138
5177
  /**
5139
5178
  * Список единиц измерения линейной величины.
5140
5179
  */
5141
- t(E, "linearValues", ["пог.м.", "м.", "м2"]);
5142
- let ze = E;
5143
- class Vt {
5180
+ t(V, "linearValues", ["пог.м.", "м.", "м2"]);
5181
+ let Be = V;
5182
+ class Wt {
5144
5183
  /**
5145
5184
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5146
5185
  */
5147
5186
  static generateUndefinedManagerInstance() {
5148
- return new we({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5187
+ return new Ce({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5149
5188
  }
5150
5189
  /**
5151
5190
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5156,19 +5195,19 @@ class Vt {
5156
5195
  return r.id === 0 && r.guid === "-undefined-";
5157
5196
  }
5158
5197
  }
5159
- class ut extends h {
5198
+ class lt extends se {
5160
5199
  /**
5161
5200
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5162
5201
  */
5163
- getManagers() {
5164
- const r = "/internal/managers", e = h.getCachedResponse(r);
5165
- return e ? Promise.resolve(e) : this.get(r).then((s) => {
5166
- const i = s.data.map((o) => ke.instanceInitializer(we, o));
5167
- return i && this.cacheResponse(r, i), i;
5168
- });
5202
+ async getManagers() {
5203
+ const r = "/internal/managers", e = se.getCachedResponse(r);
5204
+ if (e)
5205
+ return e;
5206
+ const i = (await this.get(r)).data.map((o) => xe.instanceInitializer(Ce, o));
5207
+ return this.cacheResponse(r, i), i;
5169
5208
  }
5170
5209
  }
5171
- class ur extends lr {
5210
+ class lr extends cr {
5172
5211
  /**
5173
5212
  * Инициализирует экземпляр класса {@link OrderInfo}.
5174
5213
  *
@@ -5217,19 +5256,19 @@ class ur extends lr {
5217
5256
  * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
5218
5257
  */
5219
5258
  t(this, "isNotInStock");
5220
- this.client = new ne(e == null ? void 0 : e.client), this.payment = {
5259
+ this.client = new oe(e == null ? void 0 : e.client), this.payment = {
5221
5260
  type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
5222
5261
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5223
5262
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5224
5263
  }, this.delivery = {
5225
5264
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5226
- 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(),
5227
- address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new ge(e.delivery.address) : void 0,
5228
- warehouse: (D = e == null ? void 0 : e.delivery) != null && D.warehouse ? new ye(e.delivery.warehouse) : void 0
5229
- }, 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;
5265
+ 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(),
5266
+ address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new me(e.delivery.address) : void 0,
5267
+ warehouse: (D = e == null ? void 0 : e.delivery) != null && D.warehouse ? new we(e.delivery.warehouse) : void 0
5268
+ }, 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;
5230
5269
  }
5231
5270
  }
5232
- class pt extends H {
5271
+ class ut extends B {
5233
5272
  /**
5234
5273
  * Инициализирует экземпляр класса {@link OrderProduct}.
5235
5274
  *
@@ -5312,7 +5351,7 @@ class pt extends H {
5312
5351
  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;
5313
5352
  }
5314
5353
  }
5315
- class ht extends ur {
5354
+ class pt extends lr {
5316
5355
  /**
5317
5356
  * Инициализирует экземпляр класса {@link Order}.
5318
5357
  *
@@ -5352,10 +5391,10 @@ class ht extends ur {
5352
5391
  * Признак, что разрешена передача заказа в работу без оплаты.
5353
5392
  */
5354
5393
  t(this, "isAllowProcessingWithoutPayment");
5355
- this.products = (e.products ?? []).map((s) => new pt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? he.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5394
+ 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;
5356
5395
  }
5357
5396
  }
5358
- class Et extends Ce {
5397
+ class Et extends ve {
5359
5398
  /**
5360
5399
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5361
5400
  *
@@ -5368,7 +5407,7 @@ class Et extends Ce {
5368
5407
  getOrders(r, e, s) {
5369
5408
  return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
5370
5409
  const o = { ...i.data };
5371
- return o.data = o.data.map((c) => new ur(c)), o;
5410
+ return o.data = o.data.map((c) => new lr(c)), o;
5372
5411
  });
5373
5412
  }
5374
5413
  /**
@@ -5386,10 +5425,10 @@ class Et extends Ce {
5386
5425
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5387
5426
  */
5388
5427
  getOrder(r) {
5389
- return this.get(`/internal/orders/${r}`, {}, (e) => new ht(e.data));
5428
+ return this.get(`/internal/orders/${r}`, {}, (e) => new pt(e.data));
5390
5429
  }
5391
5430
  }
5392
- class Ae {
5431
+ class De {
5393
5432
  /**
5394
5433
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5395
5434
  *
@@ -5416,12 +5455,12 @@ class Ae {
5416
5455
  * Источник клиентской цены.
5417
5456
  */
5418
5457
  t(this, "source");
5419
- this.client = new ne(r == null ? void 0 : r.client), this.product = new a(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) ?? Ne.Product;
5458
+ 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;
5420
5459
  }
5421
5460
  }
5422
- const De = (n) => {
5461
+ const $e = (n) => {
5423
5462
  var r, e, s, i, o;
5424
- return n ? Pr(
5463
+ return n ? vr(
5425
5464
  {
5426
5465
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5427
5466
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -5430,13 +5469,13 @@ const De = (n) => {
5430
5469
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5431
5470
  hideNotActive: n.hideNotActive
5432
5471
  },
5433
- (c) => U(c) || (Ee(c) || Rr(c)) && Se(c)
5472
+ (c) => U(c) || (Ee(c) || Pr(c)) && Se(c)
5434
5473
  ) : {};
5435
- }, Be = (n) => {
5474
+ }, He = (n) => {
5436
5475
  const r = {};
5437
5476
  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;
5438
5477
  };
5439
- class Jt extends h {
5478
+ class Vt extends h {
5440
5479
  /**
5441
5480
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5442
5481
  *
@@ -5450,10 +5489,10 @@ class Jt extends h {
5450
5489
  return this.get(
5451
5490
  `/internal/price/products/${r}/analyze`,
5452
5491
  {
5453
- ...Be(e),
5454
- filters: De(s)
5492
+ ...He(e),
5493
+ filters: $e(s)
5455
5494
  },
5456
- (i) => i.data.map((o) => new Ae(o))
5495
+ (i) => i.data.map((o) => new De(o))
5457
5496
  );
5458
5497
  }
5459
5498
  /**
@@ -5469,10 +5508,10 @@ class Jt extends h {
5469
5508
  return this.get(
5470
5509
  `/internal/price/categories/${r}/analyze`,
5471
5510
  {
5472
- ...Be(e),
5473
- filters: De(s)
5511
+ ...He(e),
5512
+ filters: $e(s)
5474
5513
  },
5475
- (i) => i.data.map((o) => new Ae(o))
5514
+ (i) => i.data.map((o) => new De(o))
5476
5515
  );
5477
5516
  }
5478
5517
  /**
@@ -5491,13 +5530,13 @@ class Jt extends h {
5491
5530
  `/internal/price/categories/${r}/analyze/square`,
5492
5531
  {
5493
5532
  ...e,
5494
- filters: De(s)
5533
+ filters: $e(s)
5495
5534
  },
5496
- (i) => i.data.map((o) => new Ae(o))
5535
+ (i) => i.data.map((o) => new De(o))
5497
5536
  );
5498
5537
  }
5499
5538
  }
5500
- class gt {
5539
+ class ht {
5501
5540
  /**
5502
5541
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5503
5542
  *
@@ -5515,7 +5554,7 @@ class gt {
5515
5554
  this.name = r.name, this.content = r.content;
5516
5555
  }
5517
5556
  }
5518
- class je {
5557
+ class ze {
5519
5558
  /**
5520
5559
  * Инициализирует экземпляр класса {@link Seo}.
5521
5560
  *
@@ -5551,10 +5590,10 @@ class je {
5551
5590
  */
5552
5591
  t(this, "meta");
5553
5592
  var e;
5554
- this.resourceType = new sr(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 gt(s))) ?? [];
5593
+ 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))) ?? [];
5555
5594
  }
5556
5595
  }
5557
- class Kt extends h {
5596
+ class Jt extends h {
5558
5597
  /**
5559
5598
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5560
5599
  *
@@ -5562,7 +5601,7 @@ class Kt extends h {
5562
5601
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
5563
5602
  */
5564
5603
  getResourceSeoData(r, e) {
5565
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new je(s.data));
5604
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new ze(s.data));
5566
5605
  }
5567
5606
  /**
5568
5607
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -5573,7 +5612,7 @@ class Kt extends h {
5573
5612
  * в случае ошибок в запросах.
5574
5613
  */
5575
5614
  saveResourceSeoData(r, e = {}) {
5576
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new je(s.data), e);
5615
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new ze(s.data), e);
5577
5616
  }
5578
5617
  /**
5579
5618
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -5585,8 +5624,8 @@ class Kt extends h {
5585
5624
  return this.delete(`/internal/seo/${r.slug}/${e}`);
5586
5625
  }
5587
5626
  }
5588
- const P = me("__references_private", () => {
5589
- 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), L = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), O = C(void 0), l = C(void 0);
5627
+ const P = fe("__references_private", () => {
5628
+ 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);
5590
5629
  return {
5591
5630
  /**
5592
5631
  * Список загружаемых/загруженных на данный момент значений.
@@ -5635,11 +5674,11 @@ const P = me("__references_private", () => {
5635
5674
  /**
5636
5675
  * Справочник типов файлов продукктов/категорий.
5637
5676
  */
5638
- productFileTypeReference: L,
5677
+ productFileTypeReference: I,
5639
5678
  /**
5640
5679
  * Справочник типов ресурсов.
5641
5680
  */
5642
- resourceTypesReference: I,
5681
+ resourceTypesReference: L,
5643
5682
  /**
5644
5683
  * Справочник направлений продаж.
5645
5684
  */
@@ -5651,7 +5690,7 @@ const P = me("__references_private", () => {
5651
5690
  /**
5652
5691
  * Справочник складов.
5653
5692
  */
5654
- warehousesReference: N,
5693
+ warehousesReference: d,
5655
5694
  /**
5656
5695
  * Справочник типов свойств.
5657
5696
  */
@@ -5661,92 +5700,92 @@ const P = me("__references_private", () => {
5661
5700
  */
5662
5701
  priceCoefficientsReference: l
5663
5702
  };
5664
- }), Qt = me("references", () => {
5703
+ }), Kt = fe("references", () => {
5665
5704
  const n = v(() => {
5666
5705
  const l = P();
5667
5706
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(A).getChannelPrimaryInterest().then((g) => {
5668
5707
  l.channelPrimaryInterestReference = g;
5669
- }).catch(y)), l.channelPrimaryInterestReference;
5708
+ }).catch(m)), l.channelPrimaryInterestReference;
5670
5709
  }), r = v(() => {
5671
5710
  const l = P();
5672
5711
  return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(A).getContactPositions().then((g) => {
5673
5712
  l.contactPositionsReference = g;
5674
- }).catch(y)), l.contactPositionsReference;
5713
+ }).catch(m)), l.contactPositionsReference;
5675
5714
  }), e = v(() => {
5676
5715
  const l = P();
5677
5716
  return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(A).getCurrency().then((g) => {
5678
5717
  l.currencyReference = g;
5679
- }).catch(y)), l.currencyReference;
5718
+ }).catch(m)), l.currencyReference;
5680
5719
  }), s = v(() => {
5681
5720
  const l = P();
5682
5721
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(A).getOpf().then((g) => {
5683
5722
  l.opfReference = g;
5684
- }).catch(y)), l.opfReference;
5723
+ }).catch(m)), l.opfReference;
5685
5724
  }), i = v(() => {
5686
5725
  const l = P();
5687
5726
  return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(A).getOrderPaymentStatuses().then((g) => {
5688
5727
  l.orderPaymentStatusReference = g;
5689
- }).catch(y)), l.orderPaymentStatusReference;
5728
+ }).catch(m)), l.orderPaymentStatusReference;
5690
5729
  }), o = v(() => {
5691
5730
  const l = P();
5692
5731
  return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(A).getOrderStatuses().then((g) => {
5693
5732
  l.orderStatusReference = g;
5694
- }).catch(y)), l.orderStatusReference;
5733
+ }).catch(m)), l.orderStatusReference;
5695
5734
  }), c = v(() => {
5696
5735
  const l = P();
5697
5736
  return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(A).getPaymentTypes().then((g) => {
5698
5737
  l.paymentTypeReference = g;
5699
- }).catch(y)), l.paymentTypeReference;
5738
+ }).catch(m)), l.paymentTypeReference;
5700
5739
  }), u = v(() => {
5701
5740
  const l = P();
5702
5741
  return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(A).getPartnerGroup().then((g) => {
5703
5742
  l.partnerGroupReference = g;
5704
- }).catch(y)), l.partnerGroupReference;
5743
+ }).catch(m)), l.partnerGroupReference;
5705
5744
  }), p = v(() => {
5706
5745
  const l = P();
5707
5746
  return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(A).getProductFileType().then((g) => {
5708
5747
  l.productFileTypeReference = g;
5709
- }).catch(y)), l.productFileTypeReference;
5748
+ }).catch(m)), l.productFileTypeReference;
5710
5749
  }), R = v(() => {
5711
5750
  const l = P();
5712
5751
  return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(A).getResourceTypes().then((g) => {
5713
5752
  l.resourceTypesReference = g;
5714
- }).catch(y)), l.resourceTypesReference;
5753
+ }).catch(m)), l.resourceTypesReference;
5715
5754
  }), D = v(() => {
5716
5755
  const l = P();
5717
5756
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(A).getSalesDirections().then((g) => {
5718
5757
  l.salesDirectionsReference = g;
5719
- }).catch(y)), l.salesDirectionsReference;
5720
- }), L = v(() => {
5758
+ }).catch(m)), l.salesDirectionsReference;
5759
+ }), I = v(() => {
5721
5760
  const l = P();
5722
5761
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(A).getSourcePrimaryInterest().then((g) => {
5723
5762
  l.sourcePrimaryInterestReference = g;
5724
- }).catch(y)), l.sourcePrimaryInterestReference;
5725
- }), I = v(() => {
5763
+ }).catch(m)), l.sourcePrimaryInterestReference;
5764
+ }), L = v(() => {
5726
5765
  const l = P();
5727
5766
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(A).getDeliveryTypes().then((g) => {
5728
5767
  l.deliveryTypeReference = g;
5729
- }).catch(y)), l.deliveryTypeReference;
5768
+ }).catch(m)), l.deliveryTypeReference;
5730
5769
  }), x = v(() => {
5731
5770
  const l = P();
5732
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ut).getManagers().then((g) => {
5771
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(lt).getManagers().then((g) => {
5733
5772
  l.managersList = g;
5734
- }).catch(y)), l.managersList;
5773
+ }).catch(m)), l.managersList;
5735
5774
  }), k = v(() => {
5736
5775
  const l = P();
5737
5776
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(A).getWarehouses().then((g) => {
5738
5777
  l.warehousesReference = g;
5739
- }).catch(y)), l.warehousesReference;
5740
- }), N = v(() => {
5778
+ }).catch(m)), l.warehousesReference;
5779
+ }), d = v(() => {
5741
5780
  const l = P();
5742
5781
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(A).getPropertyTypes().then((g) => {
5743
5782
  l.propertyTypesReference = g;
5744
- }).catch(y)), l.propertyTypesReference;
5783
+ }).catch(m)), l.propertyTypesReference;
5745
5784
  }), O = v(() => {
5746
5785
  const l = P();
5747
5786
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(A).getPriceCoefficients().then((g) => {
5748
5787
  l.priceCoefficientsReference = g;
5749
- }).catch(y)), l.priceCoefficientsReference;
5788
+ }).catch(m)), l.priceCoefficientsReference;
5750
5789
  });
5751
5790
  return {
5752
5791
  /**
@@ -5796,11 +5835,11 @@ const P = me("__references_private", () => {
5796
5835
  /**
5797
5836
  * Справочник каналов первичного интереса.
5798
5837
  */
5799
- sourcePrimaryInterestsReference: L,
5838
+ sourcePrimaryInterestsReference: I,
5800
5839
  /**
5801
5840
  * Справочник типов доставки.
5802
5841
  */
5803
- deliveryTypeReference: I,
5842
+ deliveryTypeReference: L,
5804
5843
  /**
5805
5844
  * Список менеджеров.
5806
5845
  */
@@ -5812,13 +5851,13 @@ const P = me("__references_private", () => {
5812
5851
  /**
5813
5852
  * Справочник типов свойств.
5814
5853
  */
5815
- propertyTypesReference: N,
5854
+ propertyTypesReference: d,
5816
5855
  /**
5817
5856
  * Справочник коэффициентов цен.
5818
5857
  */
5819
5858
  priceCoefficientsReference: O
5820
5859
  };
5821
- }), mt = me("__user_state_private", () => {
5860
+ }), gt = fe("__user_state_private", () => {
5822
5861
  const n = C({}), r = C(void 0);
5823
5862
  return {
5824
5863
  /**
@@ -5830,18 +5869,18 @@ const P = me("__references_private", () => {
5830
5869
  */
5831
5870
  currentUser: r
5832
5871
  };
5833
- }), Yt = me("user_state", () => ({
5872
+ }), Qt = fe("user_state", () => ({
5834
5873
  /**
5835
5874
  * Данные о текущем пользователе.
5836
5875
  */
5837
5876
  currentUser: v(() => {
5838
- const r = mt();
5839
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(rt).getCurrentUser().then((e) => {
5877
+ const r = gt();
5878
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(et).getCurrentUser().then((e) => {
5840
5879
  r.currentUser = e;
5841
- }).catch(y).finally(y)), r.currentUser;
5880
+ }).catch(m).finally(m)), r.currentUser;
5842
5881
  })
5843
5882
  }));
5844
- class Xt extends h {
5883
+ class Yt extends h {
5845
5884
  /**
5846
5885
  * Возвращает подсказки по адресам.
5847
5886
  *
@@ -5888,7 +5927,7 @@ class Xt extends h {
5888
5927
  });
5889
5928
  }
5890
5929
  }
5891
- class Zt {
5930
+ class Xt {
5892
5931
  /**
5893
5932
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5894
5933
  *
@@ -5913,142 +5952,141 @@ class Zt {
5913
5952
  }
5914
5953
  export {
5915
5954
  Er as AnyReference,
5916
- $t as AppBaseConfig,
5917
- b as AppConfigProvider,
5918
- ae as BankAccount,
5919
- Ce as BasePaginationProvider,
5920
- Hr as CalculationTypeEnum,
5921
- oe as Cart,
5922
- qr as CartItem,
5923
- Or as CartItemBase,
5924
- bt as CartProvider,
5925
- St as CatalogProvider,
5926
- Ke as CatalogableItem,
5955
+ Dt as AppBaseConfig,
5956
+ $ as AppConfigProvider,
5957
+ Te as BankAccount,
5958
+ ve as BasePaginationProvider,
5959
+ Fr as CalculationTypeEnum,
5960
+ ce as Cart,
5961
+ Or as CartItem,
5962
+ Nr as CartItemBase,
5963
+ $t as CartProvider,
5964
+ _t as CatalogProvider,
5965
+ Je as CatalogableItem,
5927
5966
  q as Category,
5928
- Ge as CategoryPricingRule,
5929
- tr as ChannelPrimaryInterest,
5930
- _t as City,
5967
+ Ue as CategoryPricingRule,
5968
+ rr as ChannelPrimaryInterest,
5969
+ bt as City,
5931
5970
  de as CityWithRegionAndCountry,
5932
- He as Client,
5933
- ct as ClientAdditionalData,
5934
- ue as ClientCategory,
5935
- zt as ClientDataProvider,
5936
- Lt as ClientPriceProvider,
5971
+ Fe as Client,
5972
+ ot as ClientAdditionalData,
5973
+ pe as ClientCategory,
5974
+ Bt as ClientDataProvider,
5975
+ St as ClientPriceProvider,
5937
5976
  It as ClientPriceTemplateProvider,
5938
5977
  K as ClientProduct,
5939
- Nt as ClientProductCategoryDataProvider,
5978
+ kt as ClientProductCategoryDataProvider,
5940
5979
  dt as ClientProductDataProvider,
5941
- ne as ClientShortInfo,
5942
- st as ClientsAdditionalDataRequestTypeEnum,
5943
- Mt as ClientsListFilters,
5944
- jt as ConfiguratorProvider,
5945
- _e as Contact,
5946
- Wr as ContactLinks,
5980
+ oe as ClientShortInfo,
5981
+ tt as ClientsAdditionalDataRequestTypeEnum,
5982
+ Gt as ClientsListFilters,
5983
+ zt as ConfiguratorProvider,
5984
+ be as Contact,
5985
+ jr as ContactLinks,
5947
5986
  F as ContactPerson,
5948
- ot as ContactPersonRelated,
5949
- Jr as ContactPosition,
5950
- Re as ContactRelation,
5951
- nr as ContragentBase,
5952
- he as ContragentFactory,
5953
- or as ContragentIc,
5954
- it as ContragentPerson,
5955
- nt as ContragentUlNr,
5956
- cr as ContragentUlR,
5957
- Ne as CostSourceEnum,
5987
+ nt as ContactPersonRelated,
5988
+ Vr as ContactPosition,
5989
+ Ae as ContactRelation,
5990
+ ir as ContragentBase,
5991
+ ge as ContragentFactory,
5992
+ nr as ContragentIc,
5993
+ st as ContragentPerson,
5994
+ it as ContragentUlNr,
5995
+ or as ContragentUlR,
5996
+ ke as CostSourceEnum,
5958
5997
  Q as Country,
5959
- pe as Currency,
5960
- Xt as DataSuggestionProvider,
5961
- Ft as DataTablePagination,
5962
- lt as DataTablePaginationRequestParams,
5963
- Ht as DataTableSortRequestParams,
5964
- Wt as DateTimeProvider,
5965
- Br as DeletableNamedIdentity,
5966
- ge as DeliveryAddress,
5998
+ he as Currency,
5999
+ Yt as DataSuggestionProvider,
6000
+ Mt as DataTablePagination,
6001
+ ct as DataTablePaginationRequestParams,
6002
+ Ft as DataTableSortRequestParams,
6003
+ jt as DateTimeProvider,
6004
+ Hr as DeletableNamedIdentity,
6005
+ me as DeliveryAddress,
5967
6006
  J as DeliveryType,
5968
- Dt as DetailedJwtPayload,
5969
- Ur as DeviceTypeResolutionConfig,
5970
- jr as DiscountShortInfo,
5971
- Zt as FieldValidationResultData,
5972
- se as FilterGroup,
5973
- Me as FilterItem,
5974
- Oe as FilterOpEnum,
5975
- Ye as GeoCoordinates,
5976
- Nr as HiddenCatalogableItem,
5977
- Te as HttpBaseCachedRequester,
5978
- be as HttpBaseRequester,
5979
- Gr as HttpParamsConfig,
6007
+ At as DetailedJwtPayload,
6008
+ qr as DeviceTypeResolutionConfig,
6009
+ zr as DiscountShortInfo,
6010
+ Xt as FieldValidationResultData,
6011
+ ie as FilterGroup,
6012
+ Ge as FilterItem,
6013
+ Ne as FilterOpEnum,
6014
+ Qe as GeoCoordinates,
6015
+ kr as HiddenCatalogableItem,
6016
+ se as HttpCachedRequester,
6017
+ Ur as HttpParamsConfig,
5980
6018
  h as HttpRequester,
5981
- H as Identity,
6019
+ B as Identity,
5982
6020
  dr as Image,
5983
- le as JwtPayload,
5984
- we as Manager,
6021
+ ue as JwtPayload,
6022
+ Ce as Manager,
5985
6023
  re as ManagerCommon,
5986
- Vt as ManagerDataFactory,
5987
- ut as ManagerDataProvider,
5988
- gt as MetaTagItem,
5989
- $ as NamedIdentity,
6024
+ Wt as ManagerDataFactory,
6025
+ lt as ManagerDataProvider,
6026
+ ht as MetaTagItem,
6027
+ a as NamedIdentity,
5990
6028
  M as Opf,
5991
6029
  T as OpfEnum,
5992
- ht as Order,
5993
- ur as OrderInfo,
5994
- Kr as OrderPaymentStatus,
5995
- pt as OrderProduct,
5996
- lr as OrderShortInfo,
5997
- Qr as OrderStatus,
6030
+ pt as Order,
6031
+ lr as OrderInfo,
6032
+ Jr as OrderPaymentStatus,
6033
+ ut as OrderProduct,
6034
+ cr as OrderShortInfo,
6035
+ Kr as OrderStatus,
5998
6036
  Et as OrdersDataProvider,
5999
6037
  Y as PartnerGroup,
6000
- Yr as PaymentType,
6001
- Tt as PreferencesStorageProvider,
6002
- Ae as PriceAnalyze,
6003
- Jt as PriceAnalyzeProvider,
6004
- fe as PriceCoefficient,
6005
- Qe as PriceCoefficientEnum,
6038
+ Qr as PaymentType,
6039
+ at as PreferencesStorageProvider,
6040
+ De as PriceAnalyze,
6041
+ Vt as PriceAnalyzeProvider,
6042
+ ye as PriceCoefficient,
6043
+ Ke as PriceCoefficientEnum,
6006
6044
  j as PriceTemplate,
6007
- ve as PriceTemplateCategory,
6045
+ Pe as PriceTemplateCategory,
6008
6046
  X as PriceTemplateClient,
6009
- Ze as PriceTemplateICatalogableItem,
6010
- Pe as PriceTemplateProduct,
6011
- Ot as PriceTemplateProvider,
6047
+ Xe as PriceTemplateICatalogableItem,
6048
+ Re as PriceTemplateProduct,
6049
+ Nt as PriceTemplateProvider,
6012
6050
  ee as PricingRole,
6013
- qt as PricingRoleProvider,
6014
- $e as PrimaryCatalogableItem,
6015
- a as Product,
6016
- xt as ProductCategoryDataProvider,
6017
- kt as ProductDataProvider,
6018
- Xr as ProductFileType,
6019
- xe as ProductPriceCoefficient,
6020
- tt as ProductPriceHistory,
6021
- Ut as PropertiesProvider,
6051
+ Ot as PricingRoleProvider,
6052
+ ae as PrimaryCatalogableItem,
6053
+ b as Product,
6054
+ Lt as ProductCategoryDataProvider,
6055
+ xt as ProductDataProvider,
6056
+ Yr as ProductFileType,
6057
+ Le as ProductPriceCoefficient,
6058
+ rt as ProductPriceHistory,
6059
+ qt as PropertiesProvider,
6022
6060
  Z as Property,
6023
- rr as PropertyType,
6024
- zr as PropertyTypeEnum,
6025
- z as PropertyValue,
6026
- Gt as RecommendationsDataProvider,
6027
- Ue as RecommendationsList,
6061
+ er as PropertyType,
6062
+ Br as PropertyTypeEnum,
6063
+ H as PropertyValue,
6064
+ Ut as RecommendationsDataProvider,
6065
+ qe as RecommendationsList,
6028
6066
  w as Reference,
6029
6067
  A as ReferenceDataProvider,
6030
6068
  te as Region,
6031
- sr as ResourceType,
6069
+ tr as ResourceType,
6032
6070
  S as SalesDirection,
6033
- Mr as SentryConfig,
6034
- je as Seo,
6035
- Kt as SeoDataProvider,
6036
- ir as SourcePrimaryInterest,
6037
- kr as StockCount,
6038
- at as TemplatesListFilters,
6039
- ke as TypedInstanceFactory,
6040
- ze as UnitsHelper,
6041
- Bt as UnknownClientDataProvider,
6042
- Xe as UpdatableNamedIdentity,
6043
- et as User,
6044
- er as UserCommonInfo,
6045
- rt as UserDataProvider,
6071
+ Gr as SentryConfig,
6072
+ ze as Seo,
6073
+ Jt as SeoDataProvider,
6074
+ sr as SourcePrimaryInterest,
6075
+ xr as StockCount,
6076
+ Tt as TemplatesListFilters,
6077
+ xe as TypedInstanceFactory,
6078
+ Be as UnitsHelper,
6079
+ Ht as UnknownClientDataProvider,
6080
+ Ye as UpdatableNamedIdentity,
6081
+ Zr as User,
6082
+ Ze as UserCommonInfo,
6083
+ et as UserDataProvider,
6046
6084
  G as UserShortInfo,
6047
- Zr as UserTypeEnum,
6048
- Fr as VersionConfig,
6049
- ye as Warehouse,
6050
- Fe as findCatalogItemByIdRecursive,
6051
- Qt as useReferencesStore,
6052
- Yt as useUserStateStore
6085
+ Xr as UserTypeEnum,
6086
+ Mr as VersionConfig,
6087
+ we as Warehouse,
6088
+ Me as findCatalogItemByIdRecursive,
6089
+ Kt as useReferencesStore,
6090
+ Qt as useUserStateStore
6053
6091
  };
6054
6092
  //# sourceMappingURL=sc-common-lib.js.map