@snabcentr/common-lib 1.59.1 → 1.59.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  var tr = Object.defineProperty;
2
2
  var sr = (n, r, e) => r in n ? tr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var t = (n, r, e) => sr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { toUpper as ir, constant as nr, isUndefined as or, isString as m, cloneDeep as cr, noop as y, toLower as lr, isNil as _e, isFunction as Se, map as oe, forEach as pr, isDate as ur, isEmpty as hr } from "lodash-es";
5
- import { parseISO as f, format as B, addSeconds as gr, isAfter as mr, startOfToday as Fe, addBusinessDays as fr, endOfTomorrow as yr, startOfTomorrow as wr, endOfYesterday as Cr, startOfYesterday as vr, endOfToday as Pr, endOfDay as Rr, startOfDay as Dr } from "date-fns";
6
- import Ar from "axios";
7
- import { objectToSnake as ke, objectToCamel as $r } from "ts-case-convert";
4
+ import { toUpper as ir, constant as nr, isUndefined as or, isString as m, cloneDeep as cr, noop as y, toLower as lr, isNil as _e, isFunction as Se, map as oe, forEach as pr, isDate as ur, isEmpty as hr, isArray as gr } from "lodash-es";
5
+ import { parseISO as f, format as B, addSeconds as mr, isAfter as fr, startOfToday as Fe, addBusinessDays as yr, endOfTomorrow as wr, startOfTomorrow as Cr, endOfYesterday as vr, startOfYesterday as Pr, endOfToday as Rr, endOfDay as Dr, startOfDay as Ar } from "date-fns";
6
+ import $r from "axios";
7
+ import { objectToSnake as ke, objectToCamel as Tr } from "ts-case-convert";
8
8
  import { defineStore as ge } from "pinia";
9
9
  import { ref as C, computed as v } from "vue";
10
10
  class H {
@@ -221,7 +221,7 @@ class fe extends w {
221
221
  this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Be(e == null ? void 0 : e.coordinates);
222
222
  }
223
223
  }
224
- class Tr {
224
+ class br {
225
225
  /**
226
226
  * Инициализирует экземпляр класса {@link StockCount}.
227
227
  *
@@ -276,7 +276,7 @@ const j = class j {
276
276
  */
277
277
  t(j, "config");
278
278
  let T = j;
279
- class br extends He {
279
+ class _r extends He {
280
280
  /**
281
281
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
282
282
  *
@@ -291,7 +291,7 @@ class br extends He {
291
291
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
292
292
  }
293
293
  }
294
- class _r {
294
+ class Sr {
295
295
  /**
296
296
  * Инициализирует экземпляр класса {@link Image}.
297
297
  *
@@ -314,7 +314,7 @@ class _r {
314
314
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
315
315
  }
316
316
  }
317
- class _ extends br {
317
+ class _ extends _r {
318
318
  /**
319
319
  * Инициализирует экземпляр класса {@link Product}.
320
320
  *
@@ -391,9 +391,9 @@ class _ extends br {
391
391
  * Список коэффициентов цен на продукт.
392
392
  */
393
393
  t(this, "priceCoefficients");
394
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((g) => new Tr(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
394
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((g) => new br(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
395
395
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
396
- s && (this.category = new De({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new De(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new _r(g, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new Le(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
396
+ s && (this.category = new De({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new De(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new Sr(g, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new Le(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
397
397
  }
398
398
  /**
399
399
  * Возвращает признак, что это измеряемый товар.
@@ -403,7 +403,7 @@ class _ extends br {
403
403
  return [...e.linear, ...e.square].includes(this.unit);
404
404
  }
405
405
  }
406
- class Sr extends H {
406
+ class Lr extends H {
407
407
  /**
408
408
  * Инициализирует экземпляр класса {@link CartItemBase}.
409
409
  *
@@ -458,7 +458,7 @@ class Sr extends H {
458
458
  this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new se(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && cr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
459
459
  }
460
460
  }
461
- class Lr extends Sr {
461
+ class ar extends Lr {
462
462
  /**
463
463
  * Инициализирует экземпляр класса {@link CartItem}.
464
464
  *
@@ -527,10 +527,10 @@ class ne {
527
527
  * Список итоговых сумм по направлениям продаж.
528
528
  */
529
529
  t(this, "directionsSum");
530
- this.items = r.items.map((e) => new Lr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
530
+ this.items = r.items.map((e) => new ar(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
531
531
  }
532
532
  }
533
- class ar {
533
+ class Ir {
534
534
  /**
535
535
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
536
536
  *
@@ -552,7 +552,7 @@ class ar {
552
552
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
553
553
  }
554
554
  }
555
- class Ir {
555
+ class xr {
556
556
  /**
557
557
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
558
558
  *
@@ -574,7 +574,7 @@ class Ir {
574
574
  this.apiUri = (r == null ? void 0 : r.apiUri) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
575
575
  }
576
576
  }
577
- class xr {
577
+ class kr {
578
578
  /**
579
579
  * Инициализирует экземпляр класса {@link SentryConfig}.
580
580
  *
@@ -619,7 +619,7 @@ class xr {
619
619
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
620
620
  }
621
621
  }
622
- class kr {
622
+ class Nr {
623
623
  /**
624
624
  * Инициализирует экземпляр класса {@link VersionConfig}.
625
625
  *
@@ -641,7 +641,7 @@ class kr {
641
641
  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";
642
642
  }
643
643
  }
644
- class ft {
644
+ class yt {
645
645
  /**
646
646
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
647
647
  *
@@ -697,16 +697,16 @@ class ft {
697
697
  */
698
698
  t(this, "minSearchTermLength");
699
699
  var e, s, i;
700
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.currentDomain = (r == null ? void 0 : r.currentDomain) ?? "", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Ir(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ar(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
700
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.currentDomain = (r == null ? void 0 : r.currentDomain) ?? "", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Ir(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
701
701
  units: {
702
702
  linear: ["пог.м.", "м."],
703
703
  square: ["м2"]
704
704
  },
705
705
  ...r == null ? void 0 : r.products
706
- }, this.sentry = new xr({
706
+ }, this.sentry = new kr({
707
707
  environment: this.environment,
708
708
  ...r == null ? void 0 : r.sentry
709
- }), this.urls = r == null ? void 0 : r.urls, this.version = new kr(r == null ? void 0 : r.version), this.dateFormats = {
709
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new Nr(r == null ? void 0 : r.version), this.dateFormats = {
710
710
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
711
711
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
712
712
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
@@ -753,7 +753,7 @@ const L = class L {
753
753
  */
754
754
  t(this, "defaultInstanceNotificationErrorResponseHandler", y);
755
755
  const s = T.getConfig().version;
756
- this.defaultInstanceNotificationErrorResponseHandler = L.baseDefaultNotificationErrorResponseHandler, this.httpClient = Ar.create({
756
+ this.defaultInstanceNotificationErrorResponseHandler = L.baseDefaultNotificationErrorResponseHandler, this.httpClient = $r.create({
757
757
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
758
758
  baseURL: r,
759
759
  headers: {
@@ -766,7 +766,7 @@ const L = class L {
766
766
  (i) => (i.method && (i.method === "get" && i.params && (i.params = ke(i.params)), ["put", "patch", "post"].includes(lr(i.method)) && i.data && (i.data = ke(i.data))), i),
767
767
  (i) => Promise.reject(i)
768
768
  ), this.httpClient.interceptors.response.use(
769
- (i) => (i.data && (i.data = $r(i.data)), i),
769
+ (i) => (i.data && (i.data = Tr(i.data)), i),
770
770
  // Возвращаем изменённую структуру сообщения об ошибке.
771
771
  (i) => L.convertHttpErrorResponse(i)
772
772
  );
@@ -924,7 +924,7 @@ const V = class V extends Ae {
924
924
  */
925
925
  cacheResponse(e, s) {
926
926
  V.responseDataCache.set(e, {
927
- validTo: gr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
927
+ validTo: mr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
928
928
  val: s
929
929
  });
930
930
  }
@@ -960,7 +960,7 @@ class u extends $e {
960
960
  (s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
961
961
  }
962
962
  }
963
- class yt extends u {
963
+ class wt extends u {
964
964
  /**
965
965
  * Возвращает содержимое корзины указанного клиента.
966
966
  *
@@ -1063,7 +1063,7 @@ class yt extends u {
1063
1063
  return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ne(e.data));
1064
1064
  }
1065
1065
  }
1066
- var Nr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Nr || {}), Ie = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ie || {}), Or = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Or || {});
1066
+ var Or = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Or || {}), Ie = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ie || {}), qr = /* @__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))(qr || {});
1067
1067
  class U extends se {
1068
1068
  /**
1069
1069
  * Инициализирует экземпляр класса {@link Category}.
@@ -1084,7 +1084,7 @@ class U extends se {
1084
1084
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new U(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new _(o));
1085
1085
  }
1086
1086
  }
1087
- var qr = /* @__PURE__ */ ((n) => (n.phone = "phone", n.tablet = "tablet", n.laptop = "laptop", n))(qr || {});
1087
+ var Ur = /* @__PURE__ */ ((n) => (n.phone = "phone", n.tablet = "tablet", n.laptop = "laptop", n))(Ur || {});
1088
1088
  class We extends D {
1089
1089
  /**
1090
1090
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
@@ -1100,7 +1100,7 @@ class We extends D {
1100
1100
  this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1101
1101
  }
1102
1102
  }
1103
- class Ur extends We {
1103
+ class dr extends We {
1104
1104
  /**
1105
1105
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1106
1106
  *
@@ -1115,7 +1115,7 @@ class Ur extends We {
1115
1115
  this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1116
1116
  }
1117
1117
  }
1118
- class wt {
1118
+ class Ct {
1119
1119
  /**
1120
1120
  * Возвращает актуальные и не просроченные данные из хранилища.
1121
1121
  *
@@ -1126,7 +1126,7 @@ class wt {
1126
1126
  if (e)
1127
1127
  try {
1128
1128
  const s = JSON.parse(e);
1129
- if (mr(f(s.availableFor) || Fe(), /* @__PURE__ */ new Date()))
1129
+ if (fr(f(s.availableFor) || Fe(), /* @__PURE__ */ new Date()))
1130
1130
  return s.data ?? {};
1131
1131
  } catch {
1132
1132
  localStorage.removeItem(r);
@@ -1164,7 +1164,7 @@ class d extends D {
1164
1164
  this.type = e == null ? void 0 : e.type;
1165
1165
  }
1166
1166
  }
1167
- class dr extends D {
1167
+ class Gr extends D {
1168
1168
  /**
1169
1169
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1170
1170
  *
@@ -1258,10 +1258,10 @@ class J extends _ {
1258
1258
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1259
1259
  */
1260
1260
  t(this, "isFavorite");
1261
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ie.Product, this.discount = e != null && e.discount ? new dr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1261
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ie.Product, this.discount = e != null && e.discount ? new Gr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1262
1262
  }
1263
1263
  }
1264
- class Gr {
1264
+ class Mr {
1265
1265
  /**
1266
1266
  * Инициализирует экземпляр класса {@link ContactLinks}.
1267
1267
  *
@@ -1305,7 +1305,7 @@ class ee extends D {
1305
1305
  * Признак того, что менеджер является основным для клиента.
1306
1306
  */
1307
1307
  t(this, "isDefault");
1308
- e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Gr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1308
+ e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Mr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1309
1309
  }
1310
1310
  }
1311
1311
  class ye extends ee {
@@ -1339,7 +1339,7 @@ class ye extends ee {
1339
1339
  this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId;
1340
1340
  }
1341
1341
  }
1342
- class Mr extends se {
1342
+ class Fr extends se {
1343
1343
  /**
1344
1344
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1345
1345
  *
@@ -1370,7 +1370,7 @@ class Mr extends se {
1370
1370
  this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new ye(e.manager) : void 0;
1371
1371
  }
1372
1372
  }
1373
- class ce extends Mr {
1373
+ class ce extends Fr {
1374
1374
  /**
1375
1375
  * Инициализирует экземпляр класса {@link ClientCategory}.
1376
1376
  *
@@ -1643,7 +1643,7 @@ class O {
1643
1643
  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;
1644
1644
  }
1645
1645
  }
1646
- class Ct {
1646
+ class vt {
1647
1647
  /**
1648
1648
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
1649
1649
  *
@@ -1707,13 +1707,13 @@ class Ct {
1707
1707
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
1708
1708
  }
1709
1709
  }
1710
- class Fr extends w {
1710
+ class Hr extends w {
1711
1711
  }
1712
1712
  class Ke extends w {
1713
1713
  }
1714
- class vt extends w {
1714
+ class Pt extends w {
1715
1715
  }
1716
- class Hr extends w {
1716
+ class zr extends w {
1717
1717
  }
1718
1718
  class pe extends D {
1719
1719
  /**
@@ -1748,16 +1748,16 @@ class G extends w {
1748
1748
  });
1749
1749
  }
1750
1750
  }
1751
- class zr extends w {
1752
- }
1753
1751
  class Br extends w {
1754
1752
  }
1755
- class M extends w {
1756
- }
1757
1753
  class Wr extends w {
1758
1754
  }
1755
+ class M extends w {
1756
+ }
1759
1757
  class jr extends w {
1760
1758
  }
1759
+ class Vr extends w {
1760
+ }
1761
1761
  class Je extends w {
1762
1762
  }
1763
1763
  class Qe extends w {
@@ -1771,7 +1771,7 @@ class R extends u {
1771
1771
  * и использовать в случае аналогичных запросов.
1772
1772
  */
1773
1773
  getReference(r, e = !1) {
1774
- return this.getTypedDataArrayRequester(Fr, `/internal/references/${r}`, e);
1774
+ return this.getTypedDataArrayRequester(Hr, `/internal/references/${r}`, e);
1775
1775
  }
1776
1776
  /**
1777
1777
  * Возвращает {@link Promise} для получения справочника данных о канале
@@ -1784,7 +1784,7 @@ class R extends u {
1784
1784
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
1785
1785
  */
1786
1786
  getContactPositions() {
1787
- return this.getTypedDataArrayRequester(Hr, "/internal/references/contact-position", !0);
1787
+ return this.getTypedDataArrayRequester(zr, "/internal/references/contact-position", !0);
1788
1788
  }
1789
1789
  /**
1790
1790
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -1809,19 +1809,19 @@ class R extends u {
1809
1809
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
1810
1810
  */
1811
1811
  getOrderPaymentStatuses() {
1812
- return this.getTypedDataArrayRequester(zr, "/public/references/order-payment-status", !0);
1812
+ return this.getTypedDataArrayRequester(Br, "/public/references/order-payment-status", !0);
1813
1813
  }
1814
1814
  /**
1815
1815
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
1816
1816
  */
1817
1817
  getOrderStatuses() {
1818
- return this.getTypedDataArrayRequester(Br, "/public/references/order-status", !0);
1818
+ return this.getTypedDataArrayRequester(Wr, "/public/references/order-status", !0);
1819
1819
  }
1820
1820
  /**
1821
1821
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
1822
1822
  */
1823
1823
  getPaymentTypes() {
1824
- return this.getTypedDataArrayRequester(Wr, "/public/references/payment-type", !0);
1824
+ return this.getTypedDataArrayRequester(jr, "/public/references/payment-type", !0);
1825
1825
  }
1826
1826
  /**
1827
1827
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
@@ -1893,11 +1893,11 @@ class R extends u {
1893
1893
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
1894
1894
  */
1895
1895
  getProductFileType() {
1896
- return this.getTypedDataArrayRequester(jr, "/public/references/product-file-type", !0);
1896
+ return this.getTypedDataArrayRequester(Vr, "/public/references/product-file-type", !0);
1897
1897
  }
1898
1898
  }
1899
- var Vr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Vr || {});
1900
- class Er extends Ve {
1899
+ var Er = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Er || {});
1900
+ class Kr extends Ve {
1901
1901
  /**
1902
1902
  * Инициализирует экземпляр класса {@link User}.
1903
1903
  *
@@ -1920,16 +1920,16 @@ class Er extends Ve {
1920
1920
  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;
1921
1921
  }
1922
1922
  }
1923
- class Kr extends u {
1923
+ class Jr extends u {
1924
1924
  /**
1925
1925
  * Возвращает данные о текущем пользователе.
1926
1926
  */
1927
1927
  // eslint-disable-next-line class-methods-use-this
1928
1928
  getCurrentUser() {
1929
- return this.get("/internal/users/info", {}, (r) => new Er(r.data));
1929
+ return this.get("/internal/users/info", {}, (r) => new Kr(r.data));
1930
1930
  }
1931
1931
  }
1932
- class Jr {
1932
+ class Qr {
1933
1933
  /**
1934
1934
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
1935
1935
  *
@@ -2080,7 +2080,7 @@ class Pe {
2080
2080
  this.client = new ie(r == null ? void 0 : r.client), this.product = new _(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Ie.Product;
2081
2081
  }
2082
2082
  }
2083
- class Pt extends u {
2083
+ class Rt extends u {
2084
2084
  /**
2085
2085
  * Возвращает данные о результатах поиска категорий и товаров.
2086
2086
  *
@@ -2111,7 +2111,7 @@ class Pt extends u {
2111
2111
  return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
2112
2112
  }
2113
2113
  }
2114
- class Rt extends u {
2114
+ class Dt extends u {
2115
2115
  /**
2116
2116
  * Импортирует цены клиента из CSV файла.
2117
2117
  *
@@ -2310,7 +2310,7 @@ class Rt extends u {
2310
2310
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2311
2311
  }
2312
2312
  }
2313
- class Dt extends u {
2313
+ class At extends u {
2314
2314
  /**
2315
2315
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2316
2316
  *
@@ -2400,7 +2400,7 @@ class Dt extends u {
2400
2400
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2401
2401
  }
2402
2402
  }
2403
- class At extends u {
2403
+ class $t extends u {
2404
2404
  /**
2405
2405
  * Возвращает список данных о корневых категориях.
2406
2406
  *
@@ -2492,7 +2492,7 @@ class At extends u {
2492
2492
  });
2493
2493
  }
2494
2494
  }
2495
- class $t extends u {
2495
+ class Tt extends u {
2496
2496
  /**
2497
2497
  * Возвращает данные об указанном продукте.
2498
2498
  *
@@ -2536,7 +2536,7 @@ class $t extends u {
2536
2536
  */
2537
2537
  getProductPriceHistory(r, e) {
2538
2538
  const s = {};
2539
- return _e(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => oe(i.data, (o) => new Jr(o)));
2539
+ return _e(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => oe(i.data, (o) => new Qr(o)));
2540
2540
  }
2541
2541
  /**
2542
2542
  * Выполняет публичный поиск данных о продуктах по терму.
@@ -2554,7 +2554,7 @@ class $t extends u {
2554
2554
  });
2555
2555
  }
2556
2556
  }
2557
- class Tt extends u {
2557
+ class bt extends u {
2558
2558
  /**
2559
2559
  * Возвращает список данных о корневых категориях указанного клиента.
2560
2560
  *
@@ -2616,7 +2616,7 @@ class Tt extends u {
2616
2616
  );
2617
2617
  }
2618
2618
  }
2619
- class bt extends u {
2619
+ class _t extends u {
2620
2620
  /**
2621
2621
  * Возвращает данные об указанном продукте для указанного клиента.
2622
2622
  *
@@ -2724,10 +2724,10 @@ class we extends u {
2724
2724
  page: (i == null ? void 0 : i.page) ?? 1,
2725
2725
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2726
2726
  };
2727
- return e && (g.filters = JSON.stringify((e instanceof te ? e : new te(e)).toPrimitive())), hr(s) || (g.sort = s), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2727
+ return e && (g.filters = JSON.stringify((e instanceof te ? e : new te(e)).toPrimitive())), hr(s) || (g.sort = gr(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, l, p);
2728
2728
  }
2729
2729
  }
2730
- class _t extends we {
2730
+ class St extends we {
2731
2731
  /**
2732
2732
  * Возвращает список шаблонов прайс-листа.
2733
2733
  *
@@ -2919,7 +2919,7 @@ class _t extends we {
2919
2919
  );
2920
2920
  }
2921
2921
  }
2922
- class St extends u {
2922
+ class Lt extends u {
2923
2923
  /**
2924
2924
  * Возвращает список ролей ценообразования.
2925
2925
  *
@@ -2999,7 +2999,7 @@ class St extends u {
2999
2999
  );
3000
3000
  }
3001
3001
  }
3002
- class Lt extends we {
3002
+ class at extends we {
3003
3003
  /**
3004
3004
  * Возвращает пагинированный список свойств.
3005
3005
  *
@@ -3371,7 +3371,7 @@ class Lt extends we {
3371
3371
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3372
3372
  }
3373
3373
  }
3374
- class at extends u {
3374
+ class It extends u {
3375
3375
  /**
3376
3376
  * Возвращает данные о рекомендациях указанной категории продуктов.
3377
3377
  *
@@ -3417,7 +3417,7 @@ const Ue = (n) => {
3417
3417
  const r = {};
3418
3418
  return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
3419
3419
  };
3420
- class It extends u {
3420
+ class xt extends u {
3421
3421
  /**
3422
3422
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
3423
3423
  *
@@ -3466,7 +3466,7 @@ class It extends u {
3466
3466
  );
3467
3467
  }
3468
3468
  }
3469
- var Qr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(Qr || {});
3469
+ var Yr = /* @__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))(Yr || {});
3470
3470
  class Te extends H {
3471
3471
  /**
3472
3472
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3625,7 +3625,7 @@ class Ye extends D {
3625
3625
  }
3626
3626
  }
3627
3627
  }
3628
- class Yr extends Ye {
3628
+ class Xr extends Ye {
3629
3629
  /**
3630
3630
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3631
3631
  *
@@ -3693,7 +3693,7 @@ class Ze extends Xe {
3693
3693
  e && (this.kpp = e.kpp ?? "");
3694
3694
  }
3695
3695
  }
3696
- class Xr extends Ze {
3696
+ class Zr extends Ze {
3697
3697
  /**
3698
3698
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3699
3699
  *
@@ -3729,9 +3729,9 @@ class ue {
3729
3729
  case b.UlR:
3730
3730
  return new Ze(r);
3731
3731
  case b.UlNr:
3732
- return new Xr(r);
3732
+ return new Zr(r);
3733
3733
  default:
3734
- return new Yr(r);
3734
+ return new Xr(r);
3735
3735
  }
3736
3736
  }
3737
3737
  }
@@ -3750,7 +3750,7 @@ class Re extends H {
3750
3750
  this.isPrimary = e.isPrimary;
3751
3751
  }
3752
3752
  }
3753
- class Zr extends F {
3753
+ class et extends F {
3754
3754
  /**
3755
3755
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3756
3756
  *
@@ -3778,7 +3778,7 @@ class Zr extends F {
3778
3778
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Re(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Re(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Re(s))));
3779
3779
  }
3780
3780
  }
3781
- class he extends Ur {
3781
+ class he extends dr {
3782
3782
  /**
3783
3783
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3784
3784
  *
@@ -3875,7 +3875,7 @@ class de extends ie {
3875
3875
  this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => ue.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new M(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new he(p))) ?? [], this.channelPrimaryInterest = new Ke(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Qe(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new fe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3876
3876
  }
3877
3877
  }
3878
- class xt {
3878
+ class kt {
3879
3879
  /**
3880
3880
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3881
3881
  *
@@ -4068,7 +4068,7 @@ class er extends H {
4068
4068
  this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4069
4069
  }
4070
4070
  }
4071
- class et extends D {
4071
+ class rt extends D {
4072
4072
  /**
4073
4073
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4074
4074
  *
@@ -4104,7 +4104,7 @@ class et extends D {
4104
4104
  (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ee(o)));
4105
4105
  }
4106
4106
  }
4107
- class rt {
4107
+ class tt {
4108
4108
  /**
4109
4109
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4110
4110
  *
@@ -4122,7 +4122,7 @@ class rt {
4122
4122
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4123
4123
  }
4124
4124
  }
4125
- class kt extends rt {
4125
+ class Nt extends tt {
4126
4126
  /**
4127
4127
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4128
4128
  *
@@ -4153,7 +4153,7 @@ class kt extends rt {
4153
4153
  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;
4154
4154
  }
4155
4155
  }
4156
- class Nt {
4156
+ class Ot {
4157
4157
  /**
4158
4158
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4159
4159
  *
@@ -4171,7 +4171,7 @@ class Nt {
4171
4171
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4172
4172
  }
4173
4173
  }
4174
- class Ot extends we {
4174
+ class qt extends we {
4175
4175
  /**
4176
4176
  * Возвращает данные об указанном клиенте.
4177
4177
  *
@@ -4221,7 +4221,7 @@ class Ot extends we {
4221
4221
  const s = r.map((i) => i.id);
4222
4222
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4223
4223
  let o = [];
4224
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new et(l))), o;
4224
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new rt(l))), o;
4225
4225
  });
4226
4226
  }
4227
4227
  /**
@@ -4233,7 +4233,7 @@ class Ot extends we {
4233
4233
  getAllClientContacts(r) {
4234
4234
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4235
4235
  let s = [];
4236
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Zr(i))), s;
4236
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new et(i))), s;
4237
4237
  });
4238
4238
  }
4239
4239
  /**
@@ -4898,7 +4898,7 @@ class Ot extends we {
4898
4898
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4899
4899
  }
4900
4900
  }
4901
- class qt extends u {
4901
+ class Ut extends u {
4902
4902
  /**
4903
4903
  * Выполняет проверку занят ли указанный номер телефона.
4904
4904
  *
@@ -4912,7 +4912,7 @@ class qt extends u {
4912
4912
  });
4913
4913
  }
4914
4914
  }
4915
- class Ut extends u {
4915
+ class dt extends u {
4916
4916
  /**
4917
4917
  * Возвращает настройки указанного конфигуратора для указанной категории.
4918
4918
  *
@@ -4983,18 +4983,18 @@ class Ut extends u {
4983
4983
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
4984
4984
  }
4985
4985
  }
4986
- class dt {
4986
+ class Gt {
4987
4987
  /**
4988
4988
  * Возвращает диапазон дат по умолчанию.
4989
4989
  */
4990
4990
  static defaultDateRanges() {
4991
- const r = fr(/* @__PURE__ */ new Date(), 1);
4991
+ const r = yr(/* @__PURE__ */ new Date(), 1);
4992
4992
  return {
4993
4993
  // 'Следующий рабочий день' - это значение по-умолчанию
4994
- nextWorkingDay: { label: "Следующий рабочий день", from: Dr(r), to: Rr(r) },
4995
- today: { label: "Сегодня", from: Fe(), to: Pr() },
4996
- yesterday: { label: "Вчера", from: vr(), to: Cr() },
4997
- tomorrow: { label: "Завтра", from: wr(), to: yr() }
4994
+ nextWorkingDay: { label: "Следующий рабочий день", from: Ar(r), to: Dr(r) },
4995
+ today: { label: "Сегодня", from: Fe(), to: Rr() },
4996
+ yesterday: { label: "Вчера", from: Pr(), to: vr() },
4997
+ tomorrow: { label: "Завтра", from: Cr(), to: wr() }
4998
4998
  };
4999
4999
  }
5000
5000
  }
@@ -5039,7 +5039,7 @@ const E = class E {
5039
5039
  */
5040
5040
  t(E, "linearValues", ["пог.м.", "м.", "м2"]);
5041
5041
  let Ge = E;
5042
- class Gt {
5042
+ class Mt {
5043
5043
  /**
5044
5044
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5045
5045
  */
@@ -5055,7 +5055,7 @@ class Gt {
5055
5055
  return r.id === 0 && r.guid === "-undefined-";
5056
5056
  }
5057
5057
  }
5058
- class tt extends u {
5058
+ class st extends u {
5059
5059
  /**
5060
5060
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5061
5061
  */
@@ -5128,7 +5128,7 @@ class rr extends er {
5128
5128
  }, this.attachedUser = new d(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
5129
5129
  }
5130
5130
  }
5131
- class st extends H {
5131
+ class it extends H {
5132
5132
  /**
5133
5133
  * Инициализирует экземпляр класса {@link OrderProduct}.
5134
5134
  *
@@ -5211,7 +5211,7 @@ class st extends H {
5211
5211
  this.product = new J(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
5212
5212
  }
5213
5213
  }
5214
- class it extends rr {
5214
+ class nt extends rr {
5215
5215
  /**
5216
5216
  * Инициализирует экземпляр класса {@link Order}.
5217
5217
  *
@@ -5251,10 +5251,10 @@ class it extends rr {
5251
5251
  * Признак, что разрешена передача заказа в работу без оплаты.
5252
5252
  */
5253
5253
  t(this, "isAllowProcessingWithoutPayment");
5254
- this.products = (e.products ?? []).map((s) => new st(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ue.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5254
+ this.products = (e.products ?? []).map((s) => new it(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ue.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5255
5255
  }
5256
5256
  }
5257
- class Mt extends we {
5257
+ class Ft extends we {
5258
5258
  /**
5259
5259
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5260
5260
  *
@@ -5285,10 +5285,10 @@ class Mt extends we {
5285
5285
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5286
5286
  */
5287
5287
  getOrder(r) {
5288
- return this.get(`/internal/orders/${r}`, {}, (e) => new it(e.data));
5288
+ return this.get(`/internal/orders/${r}`, {}, (e) => new nt(e.data));
5289
5289
  }
5290
5290
  }
5291
- class nt {
5291
+ class ot {
5292
5292
  /**
5293
5293
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5294
5294
  *
@@ -5342,10 +5342,10 @@ class Me {
5342
5342
  */
5343
5343
  t(this, "meta");
5344
5344
  var e;
5345
- this.resourceType = new Je(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 nt(s))) ?? [];
5345
+ this.resourceType = new Je(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 ot(s))) ?? [];
5346
5346
  }
5347
5347
  }
5348
- class Ft extends u {
5348
+ class Ht extends u {
5349
5349
  /**
5350
5350
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5351
5351
  *
@@ -5452,7 +5452,7 @@ const P = ge("__references_private", () => {
5452
5452
  */
5453
5453
  priceCoefficientsReference: c
5454
5454
  };
5455
- }), Ht = ge("references", () => {
5455
+ }), zt = ge("references", () => {
5456
5456
  const n = v(() => {
5457
5457
  const c = P();
5458
5458
  return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
@@ -5520,7 +5520,7 @@ const P = ge("__references_private", () => {
5520
5520
  }).catch(y)), c.deliveryTypeReference;
5521
5521
  }), x = v(() => {
5522
5522
  const c = P();
5523
- return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(tt).getManagers().then((h) => {
5523
+ return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(st).getManagers().then((h) => {
5524
5524
  c.managersList = h;
5525
5525
  }).catch(y)), c.managersList;
5526
5526
  }), k = v(() => {
@@ -5609,7 +5609,7 @@ const P = ge("__references_private", () => {
5609
5609
  */
5610
5610
  priceCoefficientsReference: q
5611
5611
  };
5612
- }), ot = ge("__user_state_private", () => {
5612
+ }), ct = ge("__user_state_private", () => {
5613
5613
  const n = C({}), r = C(void 0);
5614
5614
  return {
5615
5615
  /**
@@ -5621,18 +5621,18 @@ const P = ge("__references_private", () => {
5621
5621
  */
5622
5622
  currentUser: r
5623
5623
  };
5624
- }), zt = ge("user_state", () => ({
5624
+ }), Bt = ge("user_state", () => ({
5625
5625
  /**
5626
5626
  * Данные о текущем пользователе.
5627
5627
  */
5628
5628
  currentUser: v(() => {
5629
- const r = ot();
5630
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Kr).getCurrentUser().then((e) => {
5629
+ const r = ct();
5630
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Jr).getCurrentUser().then((e) => {
5631
5631
  r.currentUser = e;
5632
5632
  }).catch(y).finally(y)), r.currentUser;
5633
5633
  })
5634
5634
  }));
5635
- class Bt extends u {
5635
+ class Wt extends u {
5636
5636
  /**
5637
5637
  * Возвращает подсказки по адресам.
5638
5638
  *
@@ -5679,7 +5679,7 @@ class Bt extends u {
5679
5679
  });
5680
5680
  }
5681
5681
  }
5682
- class Wt {
5682
+ class jt {
5683
5683
  /**
5684
5684
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5685
5685
  *
@@ -5703,93 +5703,93 @@ class Wt {
5703
5703
  }
5704
5704
  }
5705
5705
  export {
5706
- Fr as AnyReference,
5707
- ft as AppBaseConfig,
5706
+ Hr as AnyReference,
5707
+ yt as AppBaseConfig,
5708
5708
  T as AppConfigProvider,
5709
5709
  Te as BankAccount,
5710
5710
  we as BasePaginationProvider,
5711
- Nr as CalculationTypeEnum,
5711
+ Or as CalculationTypeEnum,
5712
5712
  ne as Cart,
5713
- Lr as CartItem,
5714
- Sr as CartItemBase,
5715
- yt as CartProvider,
5716
- Pt as CatalogProvider,
5713
+ ar as CartItem,
5714
+ Lr as CartItemBase,
5715
+ wt as CartProvider,
5716
+ Rt as CatalogProvider,
5717
5717
  He as CatalogableItem,
5718
5718
  U as Category,
5719
5719
  Oe as CategoryPricingRule,
5720
5720
  Ke as ChannelPrimaryInterest,
5721
- vt as City,
5721
+ Pt as City,
5722
5722
  le as CityWithRegionAndCountry,
5723
5723
  de as Client,
5724
- et as ClientAdditionalData,
5724
+ rt as ClientAdditionalData,
5725
5725
  ce as ClientCategory,
5726
- Ot as ClientDataProvider,
5727
- Rt as ClientPriceProvider,
5728
- Dt as ClientPriceTemplateProvider,
5726
+ qt as ClientDataProvider,
5727
+ Dt as ClientPriceProvider,
5728
+ At as ClientPriceTemplateProvider,
5729
5729
  J as ClientProduct,
5730
- Tt as ClientProductCategoryDataProvider,
5731
- bt as ClientProductDataProvider,
5730
+ bt as ClientProductCategoryDataProvider,
5731
+ _t as ClientProductDataProvider,
5732
5732
  ie as ClientShortInfo,
5733
- Qr as ClientsAdditionalDataRequestTypeEnum,
5734
- xt as ClientsListFilters,
5735
- Ut as ConfiguratorProvider,
5733
+ Yr as ClientsAdditionalDataRequestTypeEnum,
5734
+ kt as ClientsListFilters,
5735
+ dt as ConfiguratorProvider,
5736
5736
  be as Contact,
5737
- Gr as ContactLinks,
5737
+ Mr as ContactLinks,
5738
5738
  F as ContactPerson,
5739
- Zr as ContactPersonRelated,
5740
- Hr as ContactPosition,
5739
+ et as ContactPersonRelated,
5740
+ zr as ContactPosition,
5741
5741
  Re as ContactRelation,
5742
5742
  Ye as ContragentBase,
5743
5743
  ue as ContragentFactory,
5744
5744
  Xe as ContragentIc,
5745
- Yr as ContragentPerson,
5746
- Xr as ContragentUlNr,
5745
+ Xr as ContragentPerson,
5746
+ Zr as ContragentUlNr,
5747
5747
  Ze as ContragentUlR,
5748
5748
  Ie as CostSourceEnum,
5749
5749
  Q as Country,
5750
5750
  pe as Currency,
5751
- Bt as DataSuggestionProvider,
5752
- kt as DataTablePagination,
5753
- rt as DataTablePaginationRequestParams,
5754
- Nt as DataTableSortRequestParams,
5755
- dt as DateTimeProvider,
5756
- Ur as DeletableNamedIdentity,
5751
+ Wt as DataSuggestionProvider,
5752
+ Nt as DataTablePagination,
5753
+ tt as DataTablePaginationRequestParams,
5754
+ Ot as DataTableSortRequestParams,
5755
+ Gt as DateTimeProvider,
5756
+ dr as DeletableNamedIdentity,
5757
5757
  he as DeliveryAddress,
5758
5758
  K as DeliveryType,
5759
- ar as DeviceTypeResolutionConfig,
5760
- dr as DiscountShortInfo,
5761
- Wt as FieldValidationResultData,
5759
+ Ir as DeviceTypeResolutionConfig,
5760
+ Gr as DiscountShortInfo,
5761
+ jt as FieldValidationResultData,
5762
5762
  te as FilterGroup,
5763
5763
  qe as FilterItem,
5764
5764
  xe as FilterOpEnum,
5765
5765
  Be as GeoCoordinates,
5766
- br as HiddenCatalogableItem,
5766
+ _r as HiddenCatalogableItem,
5767
5767
  $e as HttpBaseCachedRequester,
5768
5768
  Ae as HttpBaseRequester,
5769
- Ir as HttpParamsConfig,
5769
+ xr as HttpParamsConfig,
5770
5770
  u as HttpRequester,
5771
5771
  H as Identity,
5772
- _r as Image,
5772
+ Sr as Image,
5773
5773
  ye as Manager,
5774
5774
  ee as ManagerCommon,
5775
- Gt as ManagerDataFactory,
5776
- tt as ManagerDataProvider,
5777
- nt as MetaTagItem,
5775
+ Mt as ManagerDataFactory,
5776
+ st as ManagerDataProvider,
5777
+ ot as MetaTagItem,
5778
5778
  D as NamedIdentity,
5779
5779
  G as Opf,
5780
5780
  b as OpfEnum,
5781
- it as Order,
5781
+ nt as Order,
5782
5782
  rr as OrderInfo,
5783
- zr as OrderPaymentStatus,
5784
- st as OrderProduct,
5783
+ Br as OrderPaymentStatus,
5784
+ it as OrderProduct,
5785
5785
  er as OrderShortInfo,
5786
- Br as OrderStatus,
5787
- Mt as OrdersDataProvider,
5786
+ Wr as OrderStatus,
5787
+ Ft as OrdersDataProvider,
5788
5788
  M as PartnerGroup,
5789
- Wr as PaymentType,
5790
- wt as PreferencesStorageProvider,
5789
+ jr as PaymentType,
5790
+ Ct as PreferencesStorageProvider,
5791
5791
  Pe as PriceAnalyze,
5792
- It as PriceAnalyzeProvider,
5792
+ xt as PriceAnalyzeProvider,
5793
5793
  me as PriceCoefficient,
5794
5794
  ze as PriceCoefficientEnum,
5795
5795
  W as PriceTemplate,
@@ -5797,47 +5797,47 @@ export {
5797
5797
  Y as PriceTemplateClient,
5798
5798
  je as PriceTemplateICatalogableItem,
5799
5799
  ve as PriceTemplateProduct,
5800
- _t as PriceTemplateProvider,
5800
+ St as PriceTemplateProvider,
5801
5801
  Z as PricingRole,
5802
- St as PricingRoleProvider,
5802
+ Lt as PricingRoleProvider,
5803
5803
  De as PrimaryCatalogableItem,
5804
5804
  _ as Product,
5805
- At as ProductCategoryDataProvider,
5806
- $t as ProductDataProvider,
5807
- jr as ProductFileType,
5805
+ $t as ProductCategoryDataProvider,
5806
+ Tt as ProductDataProvider,
5807
+ Vr as ProductFileType,
5808
5808
  Le as ProductPriceCoefficient,
5809
- Jr as ProductPriceHistory,
5810
- Lt as PropertiesProvider,
5809
+ Qr as ProductPriceHistory,
5810
+ at as PropertiesProvider,
5811
5811
  X as Property,
5812
5812
  Ee as PropertyType,
5813
- Or as PropertyTypeEnum,
5813
+ qr as PropertyTypeEnum,
5814
5814
  z as PropertyValue,
5815
- at as RecommendationsDataProvider,
5815
+ It as RecommendationsDataProvider,
5816
5816
  Ne as RecommendationsList,
5817
5817
  w as Reference,
5818
5818
  R as ReferenceDataProvider,
5819
5819
  re as Region,
5820
5820
  Je as ResourceType,
5821
5821
  S as SalesDirection,
5822
- xr as SentryConfig,
5822
+ kr as SentryConfig,
5823
5823
  Me as Seo,
5824
- Ft as SeoDataProvider,
5824
+ Ht as SeoDataProvider,
5825
5825
  Qe as SourcePrimaryInterest,
5826
- Tr as StockCount,
5827
- Ct as TemplatesListFilters,
5826
+ br as StockCount,
5827
+ vt as TemplatesListFilters,
5828
5828
  ae as TypedInstanceFactory,
5829
5829
  Ge as UnitsHelper,
5830
- qt as UnknownClientDataProvider,
5830
+ Ut as UnknownClientDataProvider,
5831
5831
  We as UpdatableNamedIdentity,
5832
- Er as User,
5832
+ Kr as User,
5833
5833
  Ve as UserCommonInfo,
5834
- Kr as UserDataProvider,
5834
+ Jr as UserDataProvider,
5835
5835
  d as UserShortInfo,
5836
- Vr as UserTypeEnum,
5837
- kr as VersionConfig,
5836
+ Er as UserTypeEnum,
5837
+ Nr as VersionConfig,
5838
5838
  fe as Warehouse,
5839
- qr as WindowResolutionEnum,
5840
- Ht as useReferencesStore,
5841
- zt as useUserStateStore
5839
+ Ur as WindowResolutionEnum,
5840
+ zt as useReferencesStore,
5841
+ Bt as useUserStateStore
5842
5842
  };
5843
5843
  //# sourceMappingURL=sc-common-lib.js.map