@snabcentr/common-lib 1.59.0 → 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
  *
@@ -2747,11 +2747,13 @@ class _t extends we {
2747
2747
  * Создание нового шаблона прайс-листа.
2748
2748
  *
2749
2749
  * @param data Данные для создания шаблона прайс-листа.
2750
- *
2750
+ * @param validationFieldResultData Список полей, для которых необходимо
2751
+ * установить данные об ошибках валидации
2752
+ * в случае ошибок в запросах.
2751
2753
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
2752
2754
  */
2753
- createTemplate(r) {
2754
- return this.post("/internal/price/templates", r, (e) => new W(e.data));
2755
+ createTemplate(r, e = {}) {
2756
+ return this.post("/internal/price/templates", r, (s) => new W(s.data), e);
2755
2757
  }
2756
2758
  /**
2757
2759
  * Возвращает данные о шаблоне прайс-листа.
@@ -2768,11 +2770,13 @@ class _t extends we {
2768
2770
  *
2769
2771
  * @param priceTemplateId Идентификатор шаблона прайс-листа.
2770
2772
  * @param data Данные для изменения шаблона прайс-листа.
2771
- *
2773
+ * @param validationFieldResultData Список полей, для которых необходимо
2774
+ * установить данные об ошибках валидации
2775
+ * в случае ошибок в запросах.
2772
2776
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
2773
2777
  */
2774
- updateTemplate(r, e) {
2775
- return this.patch(`/internal/price/templates/${r}`, e, (s) => new W(s.data));
2778
+ updateTemplate(r, e, s = {}) {
2779
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new W(i.data), s);
2776
2780
  }
2777
2781
  /**
2778
2782
  * Удаляет данные о шаблоне прайс-листа.
@@ -2915,7 +2919,7 @@ class _t extends we {
2915
2919
  );
2916
2920
  }
2917
2921
  }
2918
- class St extends u {
2922
+ class Lt extends u {
2919
2923
  /**
2920
2924
  * Возвращает список ролей ценообразования.
2921
2925
  *
@@ -2995,7 +2999,7 @@ class St extends u {
2995
2999
  );
2996
3000
  }
2997
3001
  }
2998
- class Lt extends we {
3002
+ class at extends we {
2999
3003
  /**
3000
3004
  * Возвращает пагинированный список свойств.
3001
3005
  *
@@ -3367,7 +3371,7 @@ class Lt extends we {
3367
3371
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3368
3372
  }
3369
3373
  }
3370
- class at extends u {
3374
+ class It extends u {
3371
3375
  /**
3372
3376
  * Возвращает данные о рекомендациях указанной категории продуктов.
3373
3377
  *
@@ -3413,7 +3417,7 @@ const Ue = (n) => {
3413
3417
  const r = {};
3414
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;
3415
3419
  };
3416
- class It extends u {
3420
+ class xt extends u {
3417
3421
  /**
3418
3422
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
3419
3423
  *
@@ -3462,7 +3466,7 @@ class It extends u {
3462
3466
  );
3463
3467
  }
3464
3468
  }
3465
- 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 || {});
3466
3470
  class Te extends H {
3467
3471
  /**
3468
3472
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3621,7 +3625,7 @@ class Ye extends D {
3621
3625
  }
3622
3626
  }
3623
3627
  }
3624
- class Yr extends Ye {
3628
+ class Xr extends Ye {
3625
3629
  /**
3626
3630
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3627
3631
  *
@@ -3689,7 +3693,7 @@ class Ze extends Xe {
3689
3693
  e && (this.kpp = e.kpp ?? "");
3690
3694
  }
3691
3695
  }
3692
- class Xr extends Ze {
3696
+ class Zr extends Ze {
3693
3697
  /**
3694
3698
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3695
3699
  *
@@ -3725,9 +3729,9 @@ class ue {
3725
3729
  case b.UlR:
3726
3730
  return new Ze(r);
3727
3731
  case b.UlNr:
3728
- return new Xr(r);
3732
+ return new Zr(r);
3729
3733
  default:
3730
- return new Yr(r);
3734
+ return new Xr(r);
3731
3735
  }
3732
3736
  }
3733
3737
  }
@@ -3746,7 +3750,7 @@ class Re extends H {
3746
3750
  this.isPrimary = e.isPrimary;
3747
3751
  }
3748
3752
  }
3749
- class Zr extends F {
3753
+ class et extends F {
3750
3754
  /**
3751
3755
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3752
3756
  *
@@ -3774,7 +3778,7 @@ class Zr extends F {
3774
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))));
3775
3779
  }
3776
3780
  }
3777
- class he extends Ur {
3781
+ class he extends dr {
3778
3782
  /**
3779
3783
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3780
3784
  *
@@ -3871,7 +3875,7 @@ class de extends ie {
3871
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) ?? {};
3872
3876
  }
3873
3877
  }
3874
- class xt {
3878
+ class kt {
3875
3879
  /**
3876
3880
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3877
3881
  *
@@ -4064,7 +4068,7 @@ class er extends H {
4064
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;
4065
4069
  }
4066
4070
  }
4067
- class et extends D {
4071
+ class rt extends D {
4068
4072
  /**
4069
4073
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4070
4074
  *
@@ -4100,7 +4104,7 @@ class et extends D {
4100
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)));
4101
4105
  }
4102
4106
  }
4103
- class rt {
4107
+ class tt {
4104
4108
  /**
4105
4109
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4106
4110
  *
@@ -4118,7 +4122,7 @@ class rt {
4118
4122
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4119
4123
  }
4120
4124
  }
4121
- class kt extends rt {
4125
+ class Nt extends tt {
4122
4126
  /**
4123
4127
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4124
4128
  *
@@ -4149,7 +4153,7 @@ class kt extends rt {
4149
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;
4150
4154
  }
4151
4155
  }
4152
- class Nt {
4156
+ class Ot {
4153
4157
  /**
4154
4158
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4155
4159
  *
@@ -4167,7 +4171,7 @@ class Nt {
4167
4171
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4168
4172
  }
4169
4173
  }
4170
- class Ot extends we {
4174
+ class qt extends we {
4171
4175
  /**
4172
4176
  * Возвращает данные об указанном клиенте.
4173
4177
  *
@@ -4217,7 +4221,7 @@ class Ot extends we {
4217
4221
  const s = r.map((i) => i.id);
4218
4222
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4219
4223
  let o = [];
4220
- 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;
4221
4225
  });
4222
4226
  }
4223
4227
  /**
@@ -4229,7 +4233,7 @@ class Ot extends we {
4229
4233
  getAllClientContacts(r) {
4230
4234
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4231
4235
  let s = [];
4232
- 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;
4233
4237
  });
4234
4238
  }
4235
4239
  /**
@@ -4894,7 +4898,7 @@ class Ot extends we {
4894
4898
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
4895
4899
  }
4896
4900
  }
4897
- class qt extends u {
4901
+ class Ut extends u {
4898
4902
  /**
4899
4903
  * Выполняет проверку занят ли указанный номер телефона.
4900
4904
  *
@@ -4908,7 +4912,7 @@ class qt extends u {
4908
4912
  });
4909
4913
  }
4910
4914
  }
4911
- class Ut extends u {
4915
+ class dt extends u {
4912
4916
  /**
4913
4917
  * Возвращает настройки указанного конфигуратора для указанной категории.
4914
4918
  *
@@ -4979,18 +4983,18 @@ class Ut extends u {
4979
4983
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
4980
4984
  }
4981
4985
  }
4982
- class dt {
4986
+ class Gt {
4983
4987
  /**
4984
4988
  * Возвращает диапазон дат по умолчанию.
4985
4989
  */
4986
4990
  static defaultDateRanges() {
4987
- const r = fr(/* @__PURE__ */ new Date(), 1);
4991
+ const r = yr(/* @__PURE__ */ new Date(), 1);
4988
4992
  return {
4989
4993
  // 'Следующий рабочий день' - это значение по-умолчанию
4990
- nextWorkingDay: { label: "Следующий рабочий день", from: Dr(r), to: Rr(r) },
4991
- today: { label: "Сегодня", from: Fe(), to: Pr() },
4992
- yesterday: { label: "Вчера", from: vr(), to: Cr() },
4993
- 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() }
4994
4998
  };
4995
4999
  }
4996
5000
  }
@@ -5035,7 +5039,7 @@ const E = class E {
5035
5039
  */
5036
5040
  t(E, "linearValues", ["пог.м.", "м.", "м2"]);
5037
5041
  let Ge = E;
5038
- class Gt {
5042
+ class Mt {
5039
5043
  /**
5040
5044
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5041
5045
  */
@@ -5051,7 +5055,7 @@ class Gt {
5051
5055
  return r.id === 0 && r.guid === "-undefined-";
5052
5056
  }
5053
5057
  }
5054
- class tt extends u {
5058
+ class st extends u {
5055
5059
  /**
5056
5060
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5057
5061
  */
@@ -5124,7 +5128,7 @@ class rr extends er {
5124
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;
5125
5129
  }
5126
5130
  }
5127
- class st extends H {
5131
+ class it extends H {
5128
5132
  /**
5129
5133
  * Инициализирует экземпляр класса {@link OrderProduct}.
5130
5134
  *
@@ -5207,7 +5211,7 @@ class st extends H {
5207
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;
5208
5212
  }
5209
5213
  }
5210
- class it extends rr {
5214
+ class nt extends rr {
5211
5215
  /**
5212
5216
  * Инициализирует экземпляр класса {@link Order}.
5213
5217
  *
@@ -5247,10 +5251,10 @@ class it extends rr {
5247
5251
  * Признак, что разрешена передача заказа в работу без оплаты.
5248
5252
  */
5249
5253
  t(this, "isAllowProcessingWithoutPayment");
5250
- 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;
5251
5255
  }
5252
5256
  }
5253
- class Mt extends we {
5257
+ class Ft extends we {
5254
5258
  /**
5255
5259
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5256
5260
  *
@@ -5281,10 +5285,10 @@ class Mt extends we {
5281
5285
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5282
5286
  */
5283
5287
  getOrder(r) {
5284
- return this.get(`/internal/orders/${r}`, {}, (e) => new it(e.data));
5288
+ return this.get(`/internal/orders/${r}`, {}, (e) => new nt(e.data));
5285
5289
  }
5286
5290
  }
5287
- class nt {
5291
+ class ot {
5288
5292
  /**
5289
5293
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5290
5294
  *
@@ -5338,10 +5342,10 @@ class Me {
5338
5342
  */
5339
5343
  t(this, "meta");
5340
5344
  var e;
5341
- 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))) ?? [];
5342
5346
  }
5343
5347
  }
5344
- class Ft extends u {
5348
+ class Ht extends u {
5345
5349
  /**
5346
5350
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5347
5351
  *
@@ -5448,7 +5452,7 @@ const P = ge("__references_private", () => {
5448
5452
  */
5449
5453
  priceCoefficientsReference: c
5450
5454
  };
5451
- }), Ht = ge("references", () => {
5455
+ }), zt = ge("references", () => {
5452
5456
  const n = v(() => {
5453
5457
  const c = P();
5454
5458
  return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
@@ -5516,7 +5520,7 @@ const P = ge("__references_private", () => {
5516
5520
  }).catch(y)), c.deliveryTypeReference;
5517
5521
  }), x = v(() => {
5518
5522
  const c = P();
5519
- 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) => {
5520
5524
  c.managersList = h;
5521
5525
  }).catch(y)), c.managersList;
5522
5526
  }), k = v(() => {
@@ -5605,7 +5609,7 @@ const P = ge("__references_private", () => {
5605
5609
  */
5606
5610
  priceCoefficientsReference: q
5607
5611
  };
5608
- }), ot = ge("__user_state_private", () => {
5612
+ }), ct = ge("__user_state_private", () => {
5609
5613
  const n = C({}), r = C(void 0);
5610
5614
  return {
5611
5615
  /**
@@ -5617,18 +5621,18 @@ const P = ge("__references_private", () => {
5617
5621
  */
5618
5622
  currentUser: r
5619
5623
  };
5620
- }), zt = ge("user_state", () => ({
5624
+ }), Bt = ge("user_state", () => ({
5621
5625
  /**
5622
5626
  * Данные о текущем пользователе.
5623
5627
  */
5624
5628
  currentUser: v(() => {
5625
- const r = ot();
5626
- 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) => {
5627
5631
  r.currentUser = e;
5628
5632
  }).catch(y).finally(y)), r.currentUser;
5629
5633
  })
5630
5634
  }));
5631
- class Bt extends u {
5635
+ class Wt extends u {
5632
5636
  /**
5633
5637
  * Возвращает подсказки по адресам.
5634
5638
  *
@@ -5675,7 +5679,7 @@ class Bt extends u {
5675
5679
  });
5676
5680
  }
5677
5681
  }
5678
- class Wt {
5682
+ class jt {
5679
5683
  /**
5680
5684
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5681
5685
  *
@@ -5699,93 +5703,93 @@ class Wt {
5699
5703
  }
5700
5704
  }
5701
5705
  export {
5702
- Fr as AnyReference,
5703
- ft as AppBaseConfig,
5706
+ Hr as AnyReference,
5707
+ yt as AppBaseConfig,
5704
5708
  T as AppConfigProvider,
5705
5709
  Te as BankAccount,
5706
5710
  we as BasePaginationProvider,
5707
- Nr as CalculationTypeEnum,
5711
+ Or as CalculationTypeEnum,
5708
5712
  ne as Cart,
5709
- Lr as CartItem,
5710
- Sr as CartItemBase,
5711
- yt as CartProvider,
5712
- Pt as CatalogProvider,
5713
+ ar as CartItem,
5714
+ Lr as CartItemBase,
5715
+ wt as CartProvider,
5716
+ Rt as CatalogProvider,
5713
5717
  He as CatalogableItem,
5714
5718
  U as Category,
5715
5719
  Oe as CategoryPricingRule,
5716
5720
  Ke as ChannelPrimaryInterest,
5717
- vt as City,
5721
+ Pt as City,
5718
5722
  le as CityWithRegionAndCountry,
5719
5723
  de as Client,
5720
- et as ClientAdditionalData,
5724
+ rt as ClientAdditionalData,
5721
5725
  ce as ClientCategory,
5722
- Ot as ClientDataProvider,
5723
- Rt as ClientPriceProvider,
5724
- Dt as ClientPriceTemplateProvider,
5726
+ qt as ClientDataProvider,
5727
+ Dt as ClientPriceProvider,
5728
+ At as ClientPriceTemplateProvider,
5725
5729
  J as ClientProduct,
5726
- Tt as ClientProductCategoryDataProvider,
5727
- bt as ClientProductDataProvider,
5730
+ bt as ClientProductCategoryDataProvider,
5731
+ _t as ClientProductDataProvider,
5728
5732
  ie as ClientShortInfo,
5729
- Qr as ClientsAdditionalDataRequestTypeEnum,
5730
- xt as ClientsListFilters,
5731
- Ut as ConfiguratorProvider,
5733
+ Yr as ClientsAdditionalDataRequestTypeEnum,
5734
+ kt as ClientsListFilters,
5735
+ dt as ConfiguratorProvider,
5732
5736
  be as Contact,
5733
- Gr as ContactLinks,
5737
+ Mr as ContactLinks,
5734
5738
  F as ContactPerson,
5735
- Zr as ContactPersonRelated,
5736
- Hr as ContactPosition,
5739
+ et as ContactPersonRelated,
5740
+ zr as ContactPosition,
5737
5741
  Re as ContactRelation,
5738
5742
  Ye as ContragentBase,
5739
5743
  ue as ContragentFactory,
5740
5744
  Xe as ContragentIc,
5741
- Yr as ContragentPerson,
5742
- Xr as ContragentUlNr,
5745
+ Xr as ContragentPerson,
5746
+ Zr as ContragentUlNr,
5743
5747
  Ze as ContragentUlR,
5744
5748
  Ie as CostSourceEnum,
5745
5749
  Q as Country,
5746
5750
  pe as Currency,
5747
- Bt as DataSuggestionProvider,
5748
- kt as DataTablePagination,
5749
- rt as DataTablePaginationRequestParams,
5750
- Nt as DataTableSortRequestParams,
5751
- dt as DateTimeProvider,
5752
- 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,
5753
5757
  he as DeliveryAddress,
5754
5758
  K as DeliveryType,
5755
- ar as DeviceTypeResolutionConfig,
5756
- dr as DiscountShortInfo,
5757
- Wt as FieldValidationResultData,
5759
+ Ir as DeviceTypeResolutionConfig,
5760
+ Gr as DiscountShortInfo,
5761
+ jt as FieldValidationResultData,
5758
5762
  te as FilterGroup,
5759
5763
  qe as FilterItem,
5760
5764
  xe as FilterOpEnum,
5761
5765
  Be as GeoCoordinates,
5762
- br as HiddenCatalogableItem,
5766
+ _r as HiddenCatalogableItem,
5763
5767
  $e as HttpBaseCachedRequester,
5764
5768
  Ae as HttpBaseRequester,
5765
- Ir as HttpParamsConfig,
5769
+ xr as HttpParamsConfig,
5766
5770
  u as HttpRequester,
5767
5771
  H as Identity,
5768
- _r as Image,
5772
+ Sr as Image,
5769
5773
  ye as Manager,
5770
5774
  ee as ManagerCommon,
5771
- Gt as ManagerDataFactory,
5772
- tt as ManagerDataProvider,
5773
- nt as MetaTagItem,
5775
+ Mt as ManagerDataFactory,
5776
+ st as ManagerDataProvider,
5777
+ ot as MetaTagItem,
5774
5778
  D as NamedIdentity,
5775
5779
  G as Opf,
5776
5780
  b as OpfEnum,
5777
- it as Order,
5781
+ nt as Order,
5778
5782
  rr as OrderInfo,
5779
- zr as OrderPaymentStatus,
5780
- st as OrderProduct,
5783
+ Br as OrderPaymentStatus,
5784
+ it as OrderProduct,
5781
5785
  er as OrderShortInfo,
5782
- Br as OrderStatus,
5783
- Mt as OrdersDataProvider,
5786
+ Wr as OrderStatus,
5787
+ Ft as OrdersDataProvider,
5784
5788
  M as PartnerGroup,
5785
- Wr as PaymentType,
5786
- wt as PreferencesStorageProvider,
5789
+ jr as PaymentType,
5790
+ Ct as PreferencesStorageProvider,
5787
5791
  Pe as PriceAnalyze,
5788
- It as PriceAnalyzeProvider,
5792
+ xt as PriceAnalyzeProvider,
5789
5793
  me as PriceCoefficient,
5790
5794
  ze as PriceCoefficientEnum,
5791
5795
  W as PriceTemplate,
@@ -5793,47 +5797,47 @@ export {
5793
5797
  Y as PriceTemplateClient,
5794
5798
  je as PriceTemplateICatalogableItem,
5795
5799
  ve as PriceTemplateProduct,
5796
- _t as PriceTemplateProvider,
5800
+ St as PriceTemplateProvider,
5797
5801
  Z as PricingRole,
5798
- St as PricingRoleProvider,
5802
+ Lt as PricingRoleProvider,
5799
5803
  De as PrimaryCatalogableItem,
5800
5804
  _ as Product,
5801
- At as ProductCategoryDataProvider,
5802
- $t as ProductDataProvider,
5803
- jr as ProductFileType,
5805
+ $t as ProductCategoryDataProvider,
5806
+ Tt as ProductDataProvider,
5807
+ Vr as ProductFileType,
5804
5808
  Le as ProductPriceCoefficient,
5805
- Jr as ProductPriceHistory,
5806
- Lt as PropertiesProvider,
5809
+ Qr as ProductPriceHistory,
5810
+ at as PropertiesProvider,
5807
5811
  X as Property,
5808
5812
  Ee as PropertyType,
5809
- Or as PropertyTypeEnum,
5813
+ qr as PropertyTypeEnum,
5810
5814
  z as PropertyValue,
5811
- at as RecommendationsDataProvider,
5815
+ It as RecommendationsDataProvider,
5812
5816
  Ne as RecommendationsList,
5813
5817
  w as Reference,
5814
5818
  R as ReferenceDataProvider,
5815
5819
  re as Region,
5816
5820
  Je as ResourceType,
5817
5821
  S as SalesDirection,
5818
- xr as SentryConfig,
5822
+ kr as SentryConfig,
5819
5823
  Me as Seo,
5820
- Ft as SeoDataProvider,
5824
+ Ht as SeoDataProvider,
5821
5825
  Qe as SourcePrimaryInterest,
5822
- Tr as StockCount,
5823
- Ct as TemplatesListFilters,
5826
+ br as StockCount,
5827
+ vt as TemplatesListFilters,
5824
5828
  ae as TypedInstanceFactory,
5825
5829
  Ge as UnitsHelper,
5826
- qt as UnknownClientDataProvider,
5830
+ Ut as UnknownClientDataProvider,
5827
5831
  We as UpdatableNamedIdentity,
5828
- Er as User,
5832
+ Kr as User,
5829
5833
  Ve as UserCommonInfo,
5830
- Kr as UserDataProvider,
5834
+ Jr as UserDataProvider,
5831
5835
  d as UserShortInfo,
5832
- Vr as UserTypeEnum,
5833
- kr as VersionConfig,
5836
+ Er as UserTypeEnum,
5837
+ Nr as VersionConfig,
5834
5838
  fe as Warehouse,
5835
- qr as WindowResolutionEnum,
5836
- Ht as useReferencesStore,
5837
- zt as useUserStateStore
5839
+ Ur as WindowResolutionEnum,
5840
+ zt as useReferencesStore,
5841
+ Bt as useUserStateStore
5838
5842
  };
5839
5843
  //# sourceMappingURL=sc-common-lib.js.map