@snabcentr/common-lib 1.70.1 → 1.70.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.
@@ -5,9 +5,9 @@ import { jwtDecode as Qe } from "jwt-decode";
5
5
  import { merge as xe, isUndefined as Cr, isNil as $, noop as w, mapValues as vr, isArray as J, every as Pr, split as Rr, toUpper as Ar, constant as Dr, isString as y, cloneDeep as ar, toLower as $r, isFunction as Ne, map as ue, forEach as Tr, isDate as Ie, isEmpty as ve, omitBy as Ye, isObject as Xe } from "lodash-es";
6
6
  import { objectToCamel as Oe, objectToSnake as Me } from "ts-case-convert";
7
7
  import { defineStore as Z } from "pinia";
8
- import { ref as f, computed as R } from "vue";
9
- import { parseISO as C, format as q, isAfter as br, startOfToday as Ze, addSeconds as _r, addBusinessDays as Sr, endOfTomorrow as Ir, startOfTomorrow as dr, endOfYesterday as Lr, startOfYesterday as kr, endOfToday as xr, endOfDay as Nr, startOfDay as Or } from "date-fns";
10
- import qr from "axios";
8
+ import { ref as f, markRaw as br, computed as R } from "vue";
9
+ import { parseISO as C, format as q, isAfter as _r, startOfToday as Ze, addSeconds as Sr, addBusinessDays as Ir, endOfTomorrow as dr, startOfTomorrow as Lr, endOfYesterday as kr, startOfYesterday as xr, endOfToday as Nr, endOfDay as Or, startOfDay as qr } from "date-fns";
10
+ import Ur from "axios";
11
11
  class ie {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
@@ -111,7 +111,7 @@ class ie {
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class St extends ie {
114
+ class It extends ie {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -193,7 +193,7 @@ t(W, "config");
193
193
  let D = W;
194
194
  const ee = Z("__auth_state_private", () => {
195
195
  var i;
196
- const n = f(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = f(void 0), e = f(void 0), s = f({});
196
+ const n = f(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = f(void 0), e = f(void 0), s = br(/* @__PURE__ */ new Map());
197
197
  return {
198
198
  /**
199
199
  * {@link Promise<string>} для получения jwt-ключа доступа к системам.
@@ -236,8 +236,8 @@ const ee = Z("__auth_state_private", () => {
236
236
  o.userPermissions = m.exp * 1e3 > Date.now() ? vr(m.resourceAccess, (v) => (v == null ? void 0 : v.roles) ?? []) : void 0;
237
237
  }).catch(w);
238
238
  const c = J(i) ? i.join(" && ") : i;
239
- if (!$(o.userPermissionsComputedRefs[c]))
240
- return o.userPermissionsComputedRefs[c];
239
+ if (o.userPermissionsComputedRefs.has(c))
240
+ return o.userPermissionsComputedRefs.get(c);
241
241
  const p = R(() => {
242
242
  const u = (m) => {
243
243
  var _;
@@ -249,7 +249,7 @@ const ee = Z("__auth_state_private", () => {
249
249
  };
250
250
  return J(i) ? Pr(i, (m) => u(m)) : u(i);
251
251
  });
252
- return o.userPermissionsComputedRefs[c] = p, p;
252
+ return o.userPermissionsComputedRefs.set(c, p), p;
253
253
  }
254
254
  return {
255
255
  /**
@@ -500,7 +500,7 @@ class Re extends P {
500
500
  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 tr(e == null ? void 0 : e.coordinates);
501
501
  }
502
502
  }
503
- class Ur {
503
+ class Gr {
504
504
  /**
505
505
  * Инициализирует экземпляр класса {@link StockCount}.
506
506
  *
@@ -518,7 +518,7 @@ class Ur {
518
518
  this.warehouse = new Re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
519
519
  }
520
520
  }
521
- class Gr extends er {
521
+ class jr extends er {
522
522
  /**
523
523
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
524
524
  *
@@ -533,7 +533,7 @@ class Gr extends er {
533
533
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
534
534
  }
535
535
  }
536
- class jr {
536
+ class Fr {
537
537
  /**
538
538
  * Инициализирует экземпляр класса {@link Image}.
539
539
  *
@@ -556,7 +556,7 @@ class jr {
556
556
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
557
557
  }
558
558
  }
559
- class k extends Gr {
559
+ class k extends jr {
560
560
  /**
561
561
  * Инициализирует экземпляр класса {@link Product}.
562
562
  *
@@ -641,9 +641,9 @@ class k extends Gr {
641
641
  * Список коэффициентов цен на продукт.
642
642
  */
643
643
  t(this, "priceCoefficients");
644
- 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 = y(e == null ? void 0 : e.costDate) ? C(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((u) => new Ur(u))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
644
+ 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 = y(e == null ? void 0 : e.costDate) ? C(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((u) => new Gr(u))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
645
645
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((u) => u.isPrimary));
646
- s && (this.category = new de({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new de(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new jr(u, D.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((u) => new qe(u))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
646
+ s && (this.category = new de({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new de(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new Fr(u, D.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((u) => new qe(u))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
647
647
  }
648
648
  /**
649
649
  * Возвращает признак, что это измеряемый товар.
@@ -666,7 +666,7 @@ class k extends Gr {
666
666
  return this.retailCostRub ?? this.costRub;
667
667
  }
668
668
  }
669
- class Fr extends M {
669
+ class Mr extends M {
670
670
  /**
671
671
  * Инициализирует экземпляр класса {@link CartItemBase}.
672
672
  *
@@ -721,7 +721,7 @@ class Fr extends M {
721
721
  this.product = new k(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && ar(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
722
722
  }
723
723
  }
724
- class Mr extends Fr {
724
+ class Hr extends Mr {
725
725
  /**
726
726
  * Инициализирует экземпляр класса {@link CartItem}.
727
727
  *
@@ -790,7 +790,7 @@ class me {
790
790
  * Список итоговых сумм по направлениям продаж.
791
791
  */
792
792
  t(this, "directionsSum");
793
- this.items = r.items.map((e) => new Mr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
793
+ this.items = r.items.map((e) => new Hr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
794
794
  }
795
795
  }
796
796
  class Ue {
@@ -878,7 +878,7 @@ const L = class L {
878
878
  // eslint-disable-next-line class-methods-use-this
879
879
  t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Oe(r.data)), r));
880
880
  const r = D.getConfig().version;
881
- this.errorResponseHandler = L.defaultErrorsResponseHandler, this.httpClient = qr.create({
881
+ this.errorResponseHandler = L.defaultErrorsResponseHandler, this.httpClient = Ur.create({
882
882
  headers: {
883
883
  "APP-VERSION": `${r.name} (${r.version}, ${q(r.date, D.getConfig().dateFormats.uiDate)})`,
884
884
  Accept: "application/json",
@@ -1016,7 +1016,7 @@ t(L, "instances", {}), /**
1016
1016
  */
1017
1017
  t(L, "defaultErrorsResponseHandler", w);
1018
1018
  let h = L;
1019
- class It extends h {
1019
+ class dt extends h {
1020
1020
  /**
1021
1021
  * Возвращает содержимое корзины указанного клиента.
1022
1022
  *
@@ -1119,7 +1119,7 @@ class It extends h {
1119
1119
  return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new me(e.data));
1120
1120
  }
1121
1121
  }
1122
- var Hr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Hr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Br = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Br || {});
1122
+ var Br = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Br || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), zr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(zr || {});
1123
1123
  class B extends he {
1124
1124
  /**
1125
1125
  * Инициализирует экземпляр класса {@link Category}.
@@ -1155,7 +1155,7 @@ class sr extends T {
1155
1155
  this.updatedAt = y(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1156
1156
  }
1157
1157
  }
1158
- class zr extends sr {
1158
+ class Wr extends sr {
1159
1159
  /**
1160
1160
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1161
1161
  *
@@ -1170,7 +1170,7 @@ class zr extends sr {
1170
1170
  this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1171
1171
  }
1172
1172
  }
1173
- class dt {
1173
+ class Lt {
1174
1174
  /**
1175
1175
  * Возвращает актуальные и не просроченные данные из хранилища.
1176
1176
  *
@@ -1181,7 +1181,7 @@ class dt {
1181
1181
  if (e)
1182
1182
  try {
1183
1183
  const s = JSON.parse(e);
1184
- if (br(C(s.availableFor) || Ze(), /* @__PURE__ */ new Date()))
1184
+ if (_r(C(s.availableFor) || Ze(), /* @__PURE__ */ new Date()))
1185
1185
  return s.data ?? {};
1186
1186
  } catch {
1187
1187
  localStorage.removeItem(r);
@@ -1219,7 +1219,7 @@ class G extends T {
1219
1219
  this.type = e == null ? void 0 : e.type;
1220
1220
  }
1221
1221
  }
1222
- class Wr extends T {
1222
+ class Vr extends T {
1223
1223
  /**
1224
1224
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1225
1225
  *
@@ -1313,10 +1313,10 @@ class Q extends k {
1313
1313
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1314
1314
  */
1315
1315
  t(this, "isFavorite");
1316
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new Wr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new z(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;
1316
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new Vr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new z(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;
1317
1317
  }
1318
1318
  }
1319
- class Vr {
1319
+ class Er {
1320
1320
  /**
1321
1321
  * Инициализирует экземпляр класса {@link ContactLinks}.
1322
1322
  *
@@ -1360,7 +1360,7 @@ class oe extends T {
1360
1360
  * Признак того, что менеджер является основным для клиента.
1361
1361
  */
1362
1362
  t(this, "isDefault");
1363
- e && (this.salesDirection = new x(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Vr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1363
+ e && (this.salesDirection = new x(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Er(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1364
1364
  }
1365
1365
  }
1366
1366
  class Ae extends oe {
@@ -1394,7 +1394,7 @@ class Ae extends oe {
1394
1394
  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;
1395
1395
  }
1396
1396
  }
1397
- class Er extends he {
1397
+ class Jr extends he {
1398
1398
  /**
1399
1399
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1400
1400
  *
@@ -1425,7 +1425,7 @@ class Er extends he {
1425
1425
  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 Ae(e.manager) : void 0;
1426
1426
  }
1427
1427
  }
1428
- class fe extends Er {
1428
+ class fe extends Jr {
1429
1429
  /**
1430
1430
  * Инициализирует экземпляр класса {@link ClientCategory}.
1431
1431
  *
@@ -1698,7 +1698,7 @@ class O {
1698
1698
  this.from = y(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = y(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
1699
1699
  }
1700
1700
  }
1701
- class Lt {
1701
+ class kt {
1702
1702
  /**
1703
1703
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
1704
1704
  *
@@ -1819,7 +1819,7 @@ class He {
1819
1819
  this.role = new se(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
1820
1820
  }
1821
1821
  }
1822
- class Jr {
1822
+ class Kr {
1823
1823
  /**
1824
1824
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
1825
1825
  *
@@ -1841,7 +1841,7 @@ class Jr {
1841
1841
  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;
1842
1842
  }
1843
1843
  }
1844
- class Kr {
1844
+ class Qr {
1845
1845
  /**
1846
1846
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
1847
1847
  *
@@ -1871,7 +1871,7 @@ class Kr {
1871
1871
  this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.priceHistoryApiUrl = (r == null ? void 0 : r.priceHistoryApiUrl) ?? "", this.recommendationsApiUrl = (r == null ? void 0 : r.recommendationsApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
1872
1872
  }
1873
1873
  }
1874
- class Qr {
1874
+ class Yr {
1875
1875
  /**
1876
1876
  * Инициализирует экземпляр класса {@link SentryConfig}.
1877
1877
  *
@@ -1916,7 +1916,7 @@ class Qr {
1916
1916
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
1917
1917
  }
1918
1918
  }
1919
- class Yr {
1919
+ class Xr {
1920
1920
  /**
1921
1921
  * Инициализирует экземпляр класса {@link VersionConfig}.
1922
1922
  *
@@ -1938,7 +1938,7 @@ class Yr {
1938
1938
  this.date = y(r == null ? void 0 : r.date) ? C(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";
1939
1939
  }
1940
1940
  }
1941
- class kt {
1941
+ class xt {
1942
1942
  /**
1943
1943
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
1944
1944
  *
@@ -1978,17 +1978,17 @@ class kt {
1978
1978
  */
1979
1979
  t(this, "dateFormats");
1980
1980
  var e, s, i;
1981
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Kr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Jr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Qr({
1981
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Qr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Kr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Yr({
1982
1982
  environment: this.environment,
1983
1983
  ...r == null ? void 0 : r.sentry
1984
- }), this.urls = r == null ? void 0 : r.urls, this.version = new Yr(r == null ? void 0 : r.version), this.dateFormats = {
1984
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new Xr(r == null ? void 0 : r.version), this.dateFormats = {
1985
1985
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
1986
1986
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
1987
1987
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
1988
1988
  };
1989
1989
  }
1990
1990
  }
1991
- class xt extends h {
1991
+ class Nt extends h {
1992
1992
  /**
1993
1993
  * Возвращает данные о результатах поиска категорий и товаров.
1994
1994
  *
@@ -2019,7 +2019,7 @@ class xt extends h {
2019
2019
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2020
2020
  }
2021
2021
  }
2022
- class Nt extends h {
2022
+ class Ot extends h {
2023
2023
  /**
2024
2024
  * Импортирует цены клиента из CSV файла.
2025
2025
  *
@@ -2218,7 +2218,7 @@ class Nt extends h {
2218
2218
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2219
2219
  }
2220
2220
  }
2221
- class Ot extends h {
2221
+ class qt extends h {
2222
2222
  /**
2223
2223
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2224
2224
  *
@@ -2310,7 +2310,7 @@ class Ot extends h {
2310
2310
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2311
2311
  }
2312
2312
  }
2313
- class qt extends h {
2313
+ class Ut extends h {
2314
2314
  /**
2315
2315
  * Возвращает список данных о корневых категориях.
2316
2316
  *
@@ -2402,7 +2402,7 @@ class qt extends h {
2402
2402
  });
2403
2403
  }
2404
2404
  }
2405
- class Ut extends h {
2405
+ class Gt extends h {
2406
2406
  /**
2407
2407
  * Возвращает данные об указанном продукте.
2408
2408
  *
@@ -2452,7 +2452,7 @@ class Ut extends h {
2452
2452
  });
2453
2453
  }
2454
2454
  }
2455
- class Gt extends h {
2455
+ class jt extends h {
2456
2456
  /**
2457
2457
  * Возвращает список данных о корневых категориях указанного клиента.
2458
2458
  *
@@ -2514,7 +2514,7 @@ class Gt extends h {
2514
2514
  );
2515
2515
  }
2516
2516
  }
2517
- class jt extends h {
2517
+ class Ft extends h {
2518
2518
  /**
2519
2519
  * Возвращает данные об указанном продукте для указанного клиента.
2520
2520
  *
@@ -2625,7 +2625,7 @@ class De extends h {
2625
2625
  return e && (u.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), ve(s) || (u.sort = J(s) ? s : [s]), o && (u = { ...u, ...o }), this.get(r, u, c, p);
2626
2626
  }
2627
2627
  }
2628
- class Ft extends De {
2628
+ class Mt extends De {
2629
2629
  /**
2630
2630
  * Возвращает список шаблонов прайс-листа.
2631
2631
  *
@@ -2829,7 +2829,7 @@ class Ft extends De {
2829
2829
  );
2830
2830
  }
2831
2831
  }
2832
- class Mt extends h {
2832
+ class Ht extends h {
2833
2833
  /**
2834
2834
  * Возвращает список ролей ценообразования.
2835
2835
  *
@@ -2909,7 +2909,7 @@ class Mt extends h {
2909
2909
  );
2910
2910
  }
2911
2911
  }
2912
- class Ht extends De {
2912
+ class Bt extends De {
2913
2913
  /**
2914
2914
  * Возвращает пагинированный список свойств.
2915
2915
  *
@@ -3302,14 +3302,14 @@ function ze(n, r, e) {
3302
3302
  return !1;
3303
3303
  }), s;
3304
3304
  }
3305
- var Xr = /* @__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))(Xr || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
3306
- class Zr extends P {
3305
+ var Zr = /* @__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))(Zr || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
3306
+ class et extends P {
3307
3307
  }
3308
3308
  class cr extends P {
3309
3309
  }
3310
- class Bt extends P {
3310
+ class zt extends P {
3311
3311
  }
3312
- class et extends P {
3312
+ class rt extends P {
3313
3313
  }
3314
3314
  class ye extends T {
3315
3315
  /**
@@ -3343,16 +3343,16 @@ class j extends P {
3343
3343
  });
3344
3344
  }
3345
3345
  }
3346
- class rt extends P {
3347
- }
3348
3346
  class tt extends P {
3349
3347
  }
3350
- class X extends P {
3351
- }
3352
3348
  class st extends P {
3353
3349
  }
3350
+ class X extends P {
3351
+ }
3354
3352
  class it extends P {
3355
3353
  }
3354
+ class nt extends P {
3355
+ }
3356
3356
  class lr extends P {
3357
3357
  }
3358
3358
  class pr extends P {
@@ -3515,7 +3515,7 @@ class ur extends T {
3515
3515
  }
3516
3516
  }
3517
3517
  }
3518
- class nt extends ur {
3518
+ class ot extends ur {
3519
3519
  /**
3520
3520
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3521
3521
  *
@@ -3583,7 +3583,7 @@ class gr extends hr {
3583
3583
  e && (this.kpp = e.kpp ?? "");
3584
3584
  }
3585
3585
  }
3586
- class ot extends gr {
3586
+ class ct extends gr {
3587
3587
  /**
3588
3588
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3589
3589
  *
@@ -3619,9 +3619,9 @@ class we {
3619
3619
  case d.UlR:
3620
3620
  return new gr(r);
3621
3621
  case d.UlNr:
3622
- return new ot(r);
3622
+ return new ct(r);
3623
3623
  default:
3624
- return new nt(r);
3624
+ return new ot(r);
3625
3625
  }
3626
3626
  }
3627
3627
  }
@@ -3640,7 +3640,7 @@ class be extends M {
3640
3640
  this.isPrimary = e.isPrimary;
3641
3641
  }
3642
3642
  }
3643
- class ct extends F {
3643
+ class lt extends F {
3644
3644
  /**
3645
3645
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3646
3646
  *
@@ -3668,7 +3668,7 @@ class ct extends F {
3668
3668
  e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new be(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new be(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new be(s))));
3669
3669
  }
3670
3670
  }
3671
- class Ce extends zr {
3671
+ class Ce extends Wr {
3672
3672
  /**
3673
3673
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
3674
3674
  *
@@ -3765,7 +3765,7 @@ class We extends ge {
3765
3765
  this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => we.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new X(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new Ce(p))) ?? [], this.channelPrimaryInterest = new cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new pr(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 Re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3766
3766
  }
3767
3767
  }
3768
- class zt {
3768
+ class Wt {
3769
3769
  /**
3770
3770
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3771
3771
  *
@@ -3962,7 +3962,7 @@ class mr extends M {
3962
3962
  this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new G(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
3963
3963
  }
3964
3964
  }
3965
- class lt extends T {
3965
+ class pt extends T {
3966
3966
  /**
3967
3967
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
3968
3968
  *
@@ -3998,7 +3998,7 @@ class lt extends T {
3998
3998
  (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new mr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new X(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new x(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new oe(o)));
3999
3999
  }
4000
4000
  }
4001
- class pt {
4001
+ class ut {
4002
4002
  /**
4003
4003
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4004
4004
  *
@@ -4016,7 +4016,7 @@ class pt {
4016
4016
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4017
4017
  }
4018
4018
  }
4019
- class Wt extends pt {
4019
+ class Vt extends ut {
4020
4020
  /**
4021
4021
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4022
4022
  *
@@ -4047,7 +4047,7 @@ class Wt extends pt {
4047
4047
  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;
4048
4048
  }
4049
4049
  }
4050
- class Vt {
4050
+ class Et {
4051
4051
  /**
4052
4052
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4053
4053
  *
@@ -4065,7 +4065,7 @@ class Vt {
4065
4065
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4066
4066
  }
4067
4067
  }
4068
- class Et extends De {
4068
+ class Jt extends De {
4069
4069
  /**
4070
4070
  * Возвращает данные об указанном клиенте.
4071
4071
  *
@@ -4115,7 +4115,7 @@ class Et extends De {
4115
4115
  const s = r.map((i) => i.id);
4116
4116
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4117
4117
  let o = [];
4118
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new lt(c))), o;
4118
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new pt(c))), o;
4119
4119
  });
4120
4120
  }
4121
4121
  /**
@@ -4127,7 +4127,7 @@ class Et extends De {
4127
4127
  getAllClientContacts(r) {
4128
4128
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4129
4129
  let s = [];
4130
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ct(i))), s;
4130
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new lt(i))), s;
4131
4131
  });
4132
4132
  }
4133
4133
  /**
@@ -4824,7 +4824,7 @@ const V = class V extends h {
4824
4824
  */
4825
4825
  cacheResponse(e, s) {
4826
4826
  V.responseDataCache.set(e, {
4827
- validTo: _r(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
4827
+ validTo: Sr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
4828
4828
  val: s
4829
4829
  });
4830
4830
  }
@@ -4851,7 +4851,7 @@ const V = class V extends h {
4851
4851
  */
4852
4852
  t(V, "responseDataCache", /* @__PURE__ */ new Map());
4853
4853
  let pe = V;
4854
- class Jt extends h {
4854
+ class Kt extends h {
4855
4855
  /**
4856
4856
  * Выполняет проверку занят ли указанный номер телефона.
4857
4857
  *
@@ -4865,7 +4865,7 @@ class Jt extends h {
4865
4865
  });
4866
4866
  }
4867
4867
  }
4868
- class Kt extends h {
4868
+ class Qt extends h {
4869
4869
  /**
4870
4870
  * Возвращает настройки указанного конфигуратора для указанной категории.
4871
4871
  *
@@ -4936,18 +4936,18 @@ class Kt extends h {
4936
4936
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
4937
4937
  }
4938
4938
  }
4939
- class Qt {
4939
+ class Yt {
4940
4940
  /**
4941
4941
  * Возвращает диапазон дат по умолчанию.
4942
4942
  */
4943
4943
  static defaultDateRanges() {
4944
- const r = Sr(/* @__PURE__ */ new Date(), 1);
4944
+ const r = Ir(/* @__PURE__ */ new Date(), 1);
4945
4945
  return {
4946
4946
  // 'Следующий рабочий день' - это значение по-умолчанию
4947
- nextWorkingDay: { label: "Следующий рабочий день", from: Or(r), to: Nr(r) },
4948
- today: { label: "Сегодня", from: Ze(), to: xr() },
4949
- yesterday: { label: "Вчера", from: kr(), to: Lr() },
4950
- tomorrow: { label: "Завтра", from: dr(), to: Ir() }
4947
+ nextWorkingDay: { label: "Следующий рабочий день", from: qr(r), to: Or(r) },
4948
+ today: { label: "Сегодня", from: Ze(), to: Nr() },
4949
+ yesterday: { label: "Вчера", from: xr(), to: kr() },
4950
+ tomorrow: { label: "Завтра", from: Lr(), to: dr() }
4951
4951
  };
4952
4952
  }
4953
4953
  }
@@ -4992,7 +4992,7 @@ const E = class E {
4992
4992
  */
4993
4993
  t(E, "linearValues", ["пог.м.", "м.", "м2"]);
4994
4994
  let Ve = E;
4995
- class Yt {
4995
+ class Xt {
4996
4996
  /**
4997
4997
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
4998
4998
  */
@@ -5008,7 +5008,7 @@ class Yt {
5008
5008
  return r.id === 0 && r.guid === "-undefined-";
5009
5009
  }
5010
5010
  }
5011
- class ut extends pe {
5011
+ class ht extends pe {
5012
5012
  /**
5013
5013
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5014
5014
  */
@@ -5081,7 +5081,7 @@ class fr extends mr {
5081
5081
  }, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt = y(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = y(e == null ? void 0 : e.processedAt) ? C(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;
5082
5082
  }
5083
5083
  }
5084
- class ht extends M {
5084
+ class gt extends M {
5085
5085
  /**
5086
5086
  * Инициализирует экземпляр класса {@link OrderProduct}.
5087
5087
  *
@@ -5164,7 +5164,7 @@ class ht extends M {
5164
5164
  this.product = new Q(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;
5165
5165
  }
5166
5166
  }
5167
- class gt extends fr {
5167
+ class mt extends fr {
5168
5168
  /**
5169
5169
  * Инициализирует экземпляр класса {@link Order}.
5170
5170
  *
@@ -5204,10 +5204,10 @@ class gt extends fr {
5204
5204
  * Признак, что разрешена передача заказа в работу без оплаты.
5205
5205
  */
5206
5206
  t(this, "isAllowProcessingWithoutPayment");
5207
- this.products = (e.products ?? []).map((s) => new ht(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? we.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5207
+ this.products = (e.products ?? []).map((s) => new gt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? we.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5208
5208
  }
5209
5209
  }
5210
- class Xt extends De {
5210
+ class Zt extends De {
5211
5211
  /**
5212
5212
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5213
5213
  *
@@ -5238,7 +5238,7 @@ class Xt extends De {
5238
5238
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5239
5239
  */
5240
5240
  getOrder(r) {
5241
- return this.get(`/internal/orders/${r}`, {}, (e) => new gt(e.data));
5241
+ return this.get(`/internal/orders/${r}`, {}, (e) => new mt(e.data));
5242
5242
  }
5243
5243
  }
5244
5244
  class _e {
@@ -5288,7 +5288,7 @@ const Se = (n) => {
5288
5288
  const r = {};
5289
5289
  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;
5290
5290
  };
5291
- class Zt extends h {
5291
+ class es extends h {
5292
5292
  /**
5293
5293
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5294
5294
  *
@@ -5349,7 +5349,7 @@ class Zt extends h {
5349
5349
  );
5350
5350
  }
5351
5351
  }
5352
- class mt {
5352
+ class ft {
5353
5353
  /**
5354
5354
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
5355
5355
  *
@@ -5399,7 +5399,7 @@ class mt {
5399
5399
  this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = y(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ne(r.product) : void 0, this.client = r.client ? new G(r.client) : void 0, this.executor = r.executor ? new G(r.executor) : void 0, this.currency = r.currency ? new ye(r.currency) : void 0;
5400
5400
  }
5401
5401
  }
5402
- class ft extends ne {
5402
+ class yt extends ne {
5403
5403
  /**
5404
5404
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
5405
5405
  *
@@ -5411,10 +5411,10 @@ class ft extends ne {
5411
5411
  * @inheritDoc
5412
5412
  */
5413
5413
  t(this, "history");
5414
- this.history = ue(e.history, (s) => new mt(s));
5414
+ this.history = ue(e.history, (s) => new ft(s));
5415
5415
  }
5416
5416
  }
5417
- class es extends h {
5417
+ class rs extends h {
5418
5418
  /**
5419
5419
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
5420
5420
  */
@@ -5439,7 +5439,7 @@ class es extends h {
5439
5439
  }),
5440
5440
  (u) => $(u) || (J(u) || Xe(u)) && ve(u)
5441
5441
  );
5442
- return this.get("/internal/history", s, (u) => ue(u.data, (m) => new ft(m)));
5442
+ return this.get("/internal/history", s, (u) => ue(u.data, (m) => new yt(m)));
5443
5443
  }
5444
5444
  }
5445
5445
  class Je {
@@ -5460,7 +5460,7 @@ class Je {
5460
5460
  r != null && r.products && (this.products = r.products.map((e) => new ne(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ne(e)));
5461
5461
  }
5462
5462
  }
5463
- class rs extends h {
5463
+ class ts extends h {
5464
5464
  /**
5465
5465
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
5466
5466
  */
@@ -5521,7 +5521,7 @@ class a extends pe {
5521
5521
  * и использовать в случае аналогичных запросов.
5522
5522
  */
5523
5523
  getReference(r, e = !1) {
5524
- return this.getTypedDataArrayRequester(Zr, `/internal/references/${r}`, e);
5524
+ return this.getTypedDataArrayRequester(et, `/internal/references/${r}`, e);
5525
5525
  }
5526
5526
  /**
5527
5527
  * Возвращает {@link Promise} для получения справочника данных о канале
@@ -5534,7 +5534,7 @@ class a extends pe {
5534
5534
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
5535
5535
  */
5536
5536
  getContactPositions() {
5537
- return this.getTypedDataArrayRequester(et, "/internal/references/contact-position", !0);
5537
+ return this.getTypedDataArrayRequester(rt, "/internal/references/contact-position", !0);
5538
5538
  }
5539
5539
  /**
5540
5540
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -5559,19 +5559,19 @@ class a extends pe {
5559
5559
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
5560
5560
  */
5561
5561
  getOrderPaymentStatuses() {
5562
- return this.getTypedDataArrayRequester(rt, "/public/references/order-payment-status", !0);
5562
+ return this.getTypedDataArrayRequester(tt, "/public/references/order-payment-status", !0);
5563
5563
  }
5564
5564
  /**
5565
5565
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
5566
5566
  */
5567
5567
  getOrderStatuses() {
5568
- return this.getTypedDataArrayRequester(tt, "/public/references/order-status", !0);
5568
+ return this.getTypedDataArrayRequester(st, "/public/references/order-status", !0);
5569
5569
  }
5570
5570
  /**
5571
5571
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5572
5572
  */
5573
5573
  getPaymentTypes() {
5574
- return this.getTypedDataArrayRequester(st, "/public/references/payment-type", !0);
5574
+ return this.getTypedDataArrayRequester(it, "/public/references/payment-type", !0);
5575
5575
  }
5576
5576
  /**
5577
5577
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
@@ -5643,7 +5643,7 @@ class a extends pe {
5643
5643
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
5644
5644
  */
5645
5645
  getProductFileType() {
5646
- return this.getTypedDataArrayRequester(it, "/public/references/product-file-type", !0);
5646
+ return this.getTypedDataArrayRequester(nt, "/public/references/product-file-type", !0);
5647
5647
  }
5648
5648
  }
5649
5649
  const A = Z("__references_private", () => {
@@ -5722,7 +5722,7 @@ const A = Z("__references_private", () => {
5722
5722
  */
5723
5723
  priceCoefficientsReference: l
5724
5724
  };
5725
- }), ts = Z("references", () => {
5725
+ }), ss = Z("references", () => {
5726
5726
  const n = R(() => {
5727
5727
  const l = A();
5728
5728
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(a).getChannelPrimaryInterest().then((g) => {
@@ -5790,7 +5790,7 @@ const A = Z("__references_private", () => {
5790
5790
  }).catch(w)), l.deliveryTypeReference;
5791
5791
  }), b = R(() => {
5792
5792
  const l = A();
5793
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ut).getManagers().then((g) => {
5793
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ht).getManagers().then((g) => {
5794
5794
  l.managersList = g;
5795
5795
  }).catch(w)), l.managersList;
5796
5796
  }), _ = R(() => {
@@ -5880,7 +5880,7 @@ const A = Z("__references_private", () => {
5880
5880
  priceCoefficientsReference: U
5881
5881
  };
5882
5882
  });
5883
- class yt {
5883
+ class wt {
5884
5884
  /**
5885
5885
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5886
5886
  *
@@ -5934,10 +5934,10 @@ class Ke {
5934
5934
  */
5935
5935
  t(this, "meta");
5936
5936
  var e;
5937
- this.resourceType = new lr(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 yt(s))) ?? [];
5937
+ this.resourceType = new lr(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 wt(s))) ?? [];
5938
5938
  }
5939
5939
  }
5940
- class ss extends h {
5940
+ class is extends h {
5941
5941
  /**
5942
5942
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5943
5943
  *
@@ -5968,7 +5968,7 @@ class ss extends h {
5968
5968
  return this.delete(`/internal/seo/${r.slug}/${e}`);
5969
5969
  }
5970
5970
  }
5971
- class is extends h {
5971
+ class ns extends h {
5972
5972
  /**
5973
5973
  * Возвращает подсказки по адресам.
5974
5974
  *
@@ -6015,8 +6015,8 @@ class is extends h {
6015
6015
  });
6016
6016
  }
6017
6017
  }
6018
- var wt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(wt || {});
6019
- class Ct extends nr {
6018
+ var Ct = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Ct || {});
6019
+ class vt extends nr {
6020
6020
  /**
6021
6021
  * Инициализирует экземпляр класса {@link User}.
6022
6022
  *
@@ -6039,7 +6039,7 @@ class Ct extends nr {
6039
6039
  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;
6040
6040
  }
6041
6041
  }
6042
- class ns extends h {
6042
+ class os extends h {
6043
6043
  /**
6044
6044
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6045
6045
  */
@@ -6055,16 +6055,16 @@ class ns extends h {
6055
6055
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6056
6056
  }
6057
6057
  }
6058
- class vt extends h {
6058
+ class Pt extends h {
6059
6059
  /**
6060
6060
  * Возвращает данные о текущем пользователе.
6061
6061
  */
6062
6062
  // eslint-disable-next-line class-methods-use-this
6063
6063
  getCurrentUser() {
6064
- return this.get("/internal/users/info", {}, (r) => new Ct(r.data));
6064
+ return this.get("/internal/users/info", {}, (r) => new vt(r.data));
6065
6065
  }
6066
6066
  }
6067
- const Pt = Z("__user_state_private", () => {
6067
+ const Rt = Z("__user_state_private", () => {
6068
6068
  const n = f({}), r = f(void 0);
6069
6069
  return {
6070
6070
  /**
@@ -6076,20 +6076,20 @@ const Pt = Z("__user_state_private", () => {
6076
6076
  */
6077
6077
  currentUser: r
6078
6078
  };
6079
- }), os = Z("user_state", () => ({
6079
+ }), cs = Z("user_state", () => ({
6080
6080
  /**
6081
6081
  * Данные о текущем пользователе.
6082
6082
  */
6083
6083
  currentUser: R(() => {
6084
- const r = Pt();
6085
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(vt).getCurrentUser().then((e) => {
6084
+ const r = Rt();
6085
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Pt).getCurrentUser().then((e) => {
6086
6086
  r.currentUser = e;
6087
6087
  }).catch(w).finally(() => {
6088
6088
  r.dataLoaderList.currentUser = !1;
6089
6089
  })), r.currentUser;
6090
6090
  })
6091
6091
  }));
6092
- class cs {
6092
+ class ls {
6093
6093
  /**
6094
6094
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
6095
6095
  *
@@ -6113,147 +6113,147 @@ class cs {
6113
6113
  }
6114
6114
  }
6115
6115
  export {
6116
- Zr as AnyReference,
6117
- kt as AppBaseConfig,
6116
+ et as AnyReference,
6117
+ xt as AppBaseConfig,
6118
6118
  D as AppConfigProvider,
6119
6119
  Le as BankAccount,
6120
6120
  De as BasePaginationProvider,
6121
- Hr as CalculationTypeEnum,
6121
+ Br as CalculationTypeEnum,
6122
6122
  me as Cart,
6123
- Mr as CartItem,
6124
- Fr as CartItemBase,
6125
- It as CartProvider,
6126
- xt as CatalogProvider,
6123
+ Hr as CartItem,
6124
+ Mr as CartItemBase,
6125
+ dt as CartProvider,
6126
+ Nt as CatalogProvider,
6127
6127
  er as CatalogableItem,
6128
6128
  B as Category,
6129
6129
  He as CategoryPricingRule,
6130
6130
  cr as ChannelPrimaryInterest,
6131
- Bt as City,
6131
+ zt as City,
6132
6132
  je as CityWithRegionAndCountry,
6133
6133
  We as Client,
6134
- lt as ClientAdditionalData,
6134
+ pt as ClientAdditionalData,
6135
6135
  fe as ClientCategory,
6136
- Et as ClientDataProvider,
6137
- Nt as ClientPriceProvider,
6138
- Ot as ClientPriceTemplateProvider,
6136
+ Jt as ClientDataProvider,
6137
+ Ot as ClientPriceProvider,
6138
+ qt as ClientPriceTemplateProvider,
6139
6139
  Q as ClientProduct,
6140
- Gt as ClientProductCategoryDataProvider,
6141
- jt as ClientProductDataProvider,
6140
+ jt as ClientProductCategoryDataProvider,
6141
+ Ft as ClientProductDataProvider,
6142
6142
  ge as ClientShortInfo,
6143
- Xr as ClientsAdditionalDataRequestTypeEnum,
6144
- zt as ClientsListFilters,
6143
+ Zr as ClientsAdditionalDataRequestTypeEnum,
6144
+ Wt as ClientsListFilters,
6145
6145
  ne as CodedIdentity,
6146
- Kt as ConfiguratorProvider,
6146
+ Qt as ConfiguratorProvider,
6147
6147
  ke as Contact,
6148
- Vr as ContactLinks,
6148
+ Er as ContactLinks,
6149
6149
  F as ContactPerson,
6150
- ct as ContactPersonRelated,
6151
- et as ContactPosition,
6150
+ lt as ContactPersonRelated,
6151
+ rt as ContactPosition,
6152
6152
  be as ContactRelation,
6153
6153
  ur as ContragentBase,
6154
6154
  we as ContragentFactory,
6155
6155
  hr as ContragentIc,
6156
- nt as ContragentPerson,
6157
- ot as ContragentUlNr,
6156
+ ot as ContragentPerson,
6157
+ ct as ContragentUlNr,
6158
6158
  gr as ContragentUlR,
6159
6159
  Ge as CostSourceEnum,
6160
6160
  Y as Country,
6161
6161
  ye as Currency,
6162
- is as DataSuggestionProvider,
6163
- Wt as DataTablePagination,
6164
- pt as DataTablePaginationRequestParams,
6165
- Vt as DataTableSortRequestParams,
6166
- Qt as DateTimeProvider,
6167
- zr as DeletableNamedIdentity,
6162
+ ns as DataSuggestionProvider,
6163
+ Vt as DataTablePagination,
6164
+ ut as DataTablePaginationRequestParams,
6165
+ Et as DataTableSortRequestParams,
6166
+ Yt as DateTimeProvider,
6167
+ Wr as DeletableNamedIdentity,
6168
6168
  Ce as DeliveryAddress,
6169
6169
  K as DeliveryType,
6170
- St as DetailedJwtPayload,
6171
- Jr as DeviceTypeResolutionConfig,
6172
- Wr as DiscountShortInfo,
6173
- cs as FieldValidationResultData,
6170
+ It as DetailedJwtPayload,
6171
+ Kr as DeviceTypeResolutionConfig,
6172
+ Vr as DiscountShortInfo,
6173
+ ls as FieldValidationResultData,
6174
6174
  le as FilterGroup,
6175
6175
  Be as FilterItem,
6176
6176
  Fe as FilterOpEnum,
6177
6177
  tr as GeoCoordinates,
6178
- Gr as HiddenCatalogableItem,
6178
+ jr as HiddenCatalogableItem,
6179
6179
  pe as HttpCachedRequester,
6180
- Kr as HttpParamsConfig,
6180
+ Qr as HttpParamsConfig,
6181
6181
  h as HttpRequester,
6182
6182
  M as Identity,
6183
- jr as Image,
6183
+ Fr as Image,
6184
6184
  ie as JwtPayload,
6185
6185
  Ae as Manager,
6186
6186
  oe as ManagerCommon,
6187
- Yt as ManagerDataFactory,
6188
- ut as ManagerDataProvider,
6189
- yt as MetaTagItem,
6187
+ Xt as ManagerDataFactory,
6188
+ ht as ManagerDataProvider,
6189
+ wt as MetaTagItem,
6190
6190
  T as NamedIdentity,
6191
6191
  j as Opf,
6192
6192
  d as OpfEnum,
6193
- gt as Order,
6193
+ mt as Order,
6194
6194
  fr as OrderInfo,
6195
- rt as OrderPaymentStatus,
6196
- ht as OrderProduct,
6195
+ tt as OrderPaymentStatus,
6196
+ gt as OrderProduct,
6197
6197
  mr as OrderShortInfo,
6198
- tt as OrderStatus,
6199
- Xt as OrdersDataProvider,
6198
+ st as OrderStatus,
6199
+ Zt as OrdersDataProvider,
6200
6200
  X as PartnerGroup,
6201
- st as PaymentType,
6202
- dt as PreferencesStorageProvider,
6201
+ it as PaymentType,
6202
+ Lt as PreferencesStorageProvider,
6203
6203
  _e as PriceAnalyze,
6204
- Zt as PriceAnalyzeProvider,
6204
+ es as PriceAnalyzeProvider,
6205
6205
  Pe as PriceCoefficient,
6206
6206
  rr as PriceCoefficientEnum,
6207
- es as PriceHistoryDataProvider,
6208
- mt as PriceHistoryItem,
6207
+ rs as PriceHistoryDataProvider,
6208
+ ft as PriceHistoryItem,
6209
6209
  z as PriceTemplate,
6210
6210
  $e as PriceTemplateCategory,
6211
6211
  re as PriceTemplateClient,
6212
6212
  ir as PriceTemplateICatalogableItem,
6213
6213
  Te as PriceTemplateProduct,
6214
- Ft as PriceTemplateProvider,
6214
+ Mt as PriceTemplateProvider,
6215
6215
  se as PricingRole,
6216
- Mt as PricingRoleProvider,
6216
+ Ht as PricingRoleProvider,
6217
6217
  de as PrimaryCatalogableItem,
6218
6218
  k as Product,
6219
- qt as ProductCategoryDataProvider,
6220
- Ut as ProductDataProvider,
6221
- it as ProductFileType,
6219
+ Ut as ProductCategoryDataProvider,
6220
+ Gt as ProductDataProvider,
6221
+ nt as ProductFileType,
6222
6222
  qe as ProductPriceCoefficient,
6223
- ft as ProductPriceHistory,
6224
- Ht as PropertiesProvider,
6223
+ yt as ProductPriceHistory,
6224
+ Bt as PropertiesProvider,
6225
6225
  te as Property,
6226
6226
  or as PropertyType,
6227
- Br as PropertyTypeEnum,
6227
+ zr as PropertyTypeEnum,
6228
6228
  H as PropertyValue,
6229
- rs as RecommendationsDataProvider,
6229
+ ts as RecommendationsDataProvider,
6230
6230
  Je as RecommendationsList,
6231
6231
  P as Reference,
6232
6232
  a as ReferenceDataProvider,
6233
6233
  ce as Region,
6234
6234
  lr as ResourceType,
6235
6235
  x as SalesDirection,
6236
- Qr as SentryConfig,
6236
+ Yr as SentryConfig,
6237
6237
  Ke as Seo,
6238
- ss as SeoDataProvider,
6238
+ is as SeoDataProvider,
6239
6239
  pr as SourcePrimaryInterest,
6240
- Ur as StockCount,
6241
- Lt as TemplatesListFilters,
6240
+ Gr as StockCount,
6241
+ kt as TemplatesListFilters,
6242
6242
  Ue as TypedInstanceFactory,
6243
6243
  Ve as UnitsHelper,
6244
- Jt as UnknownClientDataProvider,
6244
+ Kt as UnknownClientDataProvider,
6245
6245
  sr as UpdatableNamedIdentity,
6246
- Ct as User,
6247
- ns as UserAuthDataProvider,
6246
+ vt as User,
6247
+ os as UserAuthDataProvider,
6248
6248
  nr as UserCommonInfo,
6249
- vt as UserDataProvider,
6249
+ Pt as UserDataProvider,
6250
6250
  G as UserShortInfo,
6251
- wt as UserTypeEnum,
6252
- Yr as VersionConfig,
6251
+ Ct as UserTypeEnum,
6252
+ Xr as VersionConfig,
6253
6253
  Re as Warehouse,
6254
6254
  ze as findCatalogItemByIdRecursive,
6255
6255
  ae as useAuthStateStore,
6256
- ts as useReferencesStore,
6257
- os as useUserStateStore
6256
+ ss as useReferencesStore,
6257
+ cs as useUserStateStore
6258
6258
  };
6259
6259
  //# sourceMappingURL=sc-common-lib.js.map