@snabcentr/common-lib 1.71.3 → 1.71.4

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.
@@ -2,11 +2,11 @@ var wr = Object.defineProperty;
2
2
  var Cr = (n, r, e) => r in n ? wr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var t = (n, r, e) => Cr(n, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as Ye } from "jwt-decode";
5
- import { merge as xe, isUndefined as vr, isNil as $, noop as w, mapValues as Pr, isArray as J, every as Rr, split as Ar, toUpper as ar, constant as Dr, isString as y, cloneDeep as $r, toLower as Tr, isFunction as Ne, map as ue, forEach as br, isDate as Ie, isEmpty as ve, omitBy as Xe, isObject as Ze } from "lodash-es";
5
+ import { merge as xe, isUndefined as vr, isNil as $, noop as w, mapValues as Pr, isArray as J, every as Rr, split as Ar, toUpper as Dr, constant as ar, isString as y, cloneDeep as $r, toLower as Tr, isFunction as Ne, map as ue, forEach as br, isDate as Ie, isEmpty as ve, omitBy as Xe, isObject as Ze } 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
8
  import { ref as f, markRaw as _r, computed as R } from "vue";
9
- import { parseISO as C, format as q, isAfter as Sr, startOfToday as er, addSeconds as Ir, addBusinessDays as dr, endOfTomorrow as kr, startOfTomorrow as Lr, endOfYesterday as xr, startOfYesterday as Nr, endOfToday as Or, endOfDay as qr, startOfDay as Ur } from "date-fns";
9
+ import { parseISO as C, format as q, isAfter as Sr, startOfToday as er, addSeconds as Ir, addBusinessDays as Lr, endOfTomorrow as kr, startOfTomorrow as dr, endOfYesterday as xr, startOfYesterday as Nr, endOfToday as Or, endOfDay as qr, startOfDay as Ur } from "date-fns";
10
10
  import Gr from "axios";
11
11
  class ie {
12
12
  /**
@@ -111,7 +111,7 @@ class ie {
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class kt extends ie {
114
+ class dt extends ie {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -190,10 +190,10 @@ const W = class W {
190
190
  * Конфигурация приложения.
191
191
  */
192
192
  t(W, "config");
193
- let a = W;
193
+ let D = W;
194
194
  const ee = Z("__auth_state_private", () => {
195
195
  var i;
196
- const n = f(Promise.resolve((i = a.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = f(void 0), e = f(void 0), s = _r(/* @__PURE__ */ new Map());
196
+ const n = f(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = f(void 0), e = f(void 0), s = _r(/* @__PURE__ */ new Map());
197
197
  return {
198
198
  /**
199
199
  * {@link Promise<string>} для получения jwt-ключа доступа к системам.
@@ -212,7 +212,7 @@ const ee = Z("__auth_state_private", () => {
212
212
  */
213
213
  userPermissionsComputedRefs: s
214
214
  };
215
- }), De = Z("__auth_state", () => {
215
+ }), ae = Z("__auth_state", () => {
216
216
  const n = R(() => {
217
217
  const i = ee();
218
218
  if ($(i.jwtToken) && !$(i.jwtTokenUpdater)) {
@@ -348,7 +348,7 @@ class rr extends ne {
348
348
  this.slug = (e == null ? void 0 : e.slug) ?? "";
349
349
  }
350
350
  }
351
- class de extends rr {
351
+ class Le extends rr {
352
352
  /**
353
353
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
354
354
  *
@@ -363,7 +363,7 @@ class de extends rr {
363
363
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
364
364
  }
365
365
  }
366
- class he extends de {
366
+ class he extends Le {
367
367
  /**
368
368
  * Инициализирует экземпляр класса {@link BaseCategory}.
369
369
  *
@@ -387,7 +387,7 @@ class he extends de {
387
387
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
388
388
  */
389
389
  t(this, "currencyRates");
390
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [ar(s), i])) : void 0;
390
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [Dr(s), i])) : void 0;
391
391
  }
392
392
  }
393
393
  var tr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(tr || {});
@@ -415,7 +415,7 @@ class Pe extends P {
415
415
  * Возвращает значение справочника коэффициента розничной цены.
416
416
  */
417
417
  static getRetailPriceCoefficient() {
418
- return { id: -2, slug: tr.Retail, name: "Розн. цена", guid: "", isNewRec: Dr(!0) };
418
+ return { id: -2, slug: tr.Retail, name: "Розн. цена", guid: "", isNewRec: ar(!0) };
419
419
  }
420
420
  }
421
421
  class qe {
@@ -556,7 +556,7 @@ class Mr {
556
556
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
557
557
  }
558
558
  }
559
- class L extends Fr {
559
+ class d extends Fr {
560
560
  /**
561
561
  * Инициализирует экземпляр класса {@link Product}.
562
562
  *
@@ -643,14 +643,14 @@ class L extends Fr {
643
643
  t(this, "priceCoefficients");
644
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 jr(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 Mr(u, a.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((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 Le({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new Le(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new Mr(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
  * Возвращает признак, что это измеряемый товар.
650
650
  */
651
651
  getIsMeasurable() {
652
652
  var s;
653
- const e = (s = a.getConfig().catalog) == null ? void 0 : s.products.units;
653
+ const e = (s = D.getConfig().catalog) == null ? void 0 : s.products.units;
654
654
  return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
655
655
  }
656
656
  /**
@@ -718,7 +718,7 @@ class Hr extends M {
718
718
  * Признак того, что позиция является дополнительной продажей.
719
719
  */
720
720
  t(this, "isAdditionalSale");
721
- this.product = new L(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 && $r(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
721
+ this.product = new d(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 && $r(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
722
722
  }
723
723
  }
724
724
  class Br extends Hr {
@@ -824,7 +824,7 @@ const k = class k {
824
824
  /**
825
825
  * Базовый URL путь для выполнения запросов.
826
826
  */
827
- t(this, "baseUrl", `${a.getConfig().http.portalApiUrl}/api`);
827
+ t(this, "baseUrl", `${D.getConfig().http.portalApiUrl}/api`);
828
828
  /**
829
829
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
830
830
  *
@@ -851,7 +851,7 @@ const k = class k {
851
851
  // eslint-disable-next-line class-methods-use-this
852
852
  t(this, "authRequestInterceptor", async (r) => {
853
853
  let e;
854
- return $(De().jwtToken) || (e = await De().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
854
+ return $(ae().jwtToken) || (e = await ae().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
855
855
  });
856
856
  /**
857
857
  * Перехватчик запроса для преобразования данных запроса.
@@ -868,7 +868,7 @@ const k = class k {
868
868
  t(this, "authErrorsResponseInterceptors", (r) => {
869
869
  var s;
870
870
  const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
871
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (De().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
871
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (ae().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
872
872
  });
873
873
  /**
874
874
  * Перехватчик ответа для преобразования данных ответа на запрос.
@@ -877,10 +877,10 @@ const k = class k {
877
877
  */
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
- const r = a.getConfig().version;
880
+ const r = D.getConfig().version;
881
881
  this.errorResponseHandler = k.defaultErrorsResponseHandler, this.httpClient = Gr.create({
882
882
  headers: {
883
- "APP-VERSION": `${r.name} (${r.version}, ${q(r.date, a.getConfig().dateFormats.uiDate)})`,
883
+ "APP-VERSION": `${r.name} (${r.version}, ${q(r.date, D.getConfig().dateFormats.uiDate)})`,
884
884
  Accept: "application/json",
885
885
  "Content-Type": "application/json"
886
886
  }
@@ -1016,7 +1016,7 @@ t(k, "instances", {}), /**
1016
1016
  */
1017
1017
  t(k, "defaultErrorsResponseHandler", w);
1018
1018
  let h = k;
1019
- class Lt extends h {
1019
+ class xt extends h {
1020
1020
  /**
1021
1021
  * Возвращает содержимое корзины указанного клиента.
1022
1022
  *
@@ -1137,7 +1137,7 @@ class B extends he {
1137
1137
  * Список продуктов категории.
1138
1138
  */
1139
1139
  t(this, "products");
1140
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new B(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new L(o));
1140
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new B(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new d(o));
1141
1141
  }
1142
1142
  }
1143
1143
  class ir extends T {
@@ -1170,7 +1170,7 @@ class Er extends ir {
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 xt {
1173
+ class Nt {
1174
1174
  /**
1175
1175
  * Возвращает актуальные и не просроченные данные из хранилища.
1176
1176
  *
@@ -1277,7 +1277,7 @@ class z extends ir {
1277
1277
  this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1278
1278
  }
1279
1279
  }
1280
- class Q extends L {
1280
+ class Q extends d {
1281
1281
  /**
1282
1282
  * Инициализирует экземпляр класса {@link ClientProduct}.
1283
1283
  *
@@ -1363,6 +1363,29 @@ class oe extends T {
1363
1363
  e && (this.salesDirection = new x(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Jr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
1364
1364
  }
1365
1365
  }
1366
+ class Kr extends T {
1367
+ /**
1368
+ * Инициализирует экземпляр класса {@link IUserPricingRole}.
1369
+ *
1370
+ * @param data Данные для первоначальной инициализации.
1371
+ */
1372
+ constructor(e) {
1373
+ super(e);
1374
+ /**
1375
+ * @inheritDoc
1376
+ */
1377
+ t(this, "description");
1378
+ /**
1379
+ * @inheritDoc
1380
+ */
1381
+ t(this, "canChangeLowCost");
1382
+ /**
1383
+ * @inheritDoc
1384
+ */
1385
+ t(this, "parentRoleId");
1386
+ this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1387
+ }
1388
+ }
1366
1389
  class Ae extends oe {
1367
1390
  /**
1368
1391
  * Инициализирует экземпляр класса {@link Manager}.
@@ -1391,10 +1414,14 @@ class Ae extends oe {
1391
1414
  * Идентификатор супервайзера.
1392
1415
  */
1393
1416
  t(this, "supervisorId");
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;
1417
+ /**
1418
+ * Данные роли ценообразования менеджера.
1419
+ */
1420
+ t(this, "pricingRole");
1421
+ 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, this.pricingRole = e != null && e.pricingRole ? new Kr(e.pricingRole) : void 0;
1395
1422
  }
1396
1423
  }
1397
- class Kr extends he {
1424
+ class Qr extends he {
1398
1425
  /**
1399
1426
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1400
1427
  *
@@ -1425,7 +1452,7 @@ class Kr extends he {
1425
1452
  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
1453
  }
1427
1454
  }
1428
- class fe extends Kr {
1455
+ class fe extends Qr {
1429
1456
  /**
1430
1457
  * Инициализирует экземпляр класса {@link ClientCategory}.
1431
1458
  *
@@ -1633,7 +1660,7 @@ class Te extends nr {
1633
1660
  * Базовые данные о продукте.
1634
1661
  */
1635
1662
  t(this, "product");
1636
- this.product = new L(e == null ? void 0 : e.product);
1663
+ this.product = new d(e == null ? void 0 : e.product);
1637
1664
  }
1638
1665
  }
1639
1666
  class cr extends P {
@@ -1698,7 +1725,7 @@ class O {
1698
1725
  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
1726
  }
1700
1727
  }
1701
- class Nt {
1728
+ class Ot {
1702
1729
  /**
1703
1730
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
1704
1731
  *
@@ -1819,7 +1846,7 @@ class He {
1819
1846
  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
1847
  }
1821
1848
  }
1822
- class Qr {
1849
+ class Yr {
1823
1850
  /**
1824
1851
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
1825
1852
  *
@@ -1841,7 +1868,7 @@ class Qr {
1841
1868
  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
1869
  }
1843
1870
  }
1844
- class Yr {
1871
+ class Xr {
1845
1872
  /**
1846
1873
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
1847
1874
  *
@@ -1871,7 +1898,7 @@ class Yr {
1871
1898
  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
1899
  }
1873
1900
  }
1874
- class Xr {
1901
+ class Zr {
1875
1902
  /**
1876
1903
  * Инициализирует экземпляр класса {@link SentryConfig}.
1877
1904
  *
@@ -1916,7 +1943,7 @@ class Xr {
1916
1943
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
1917
1944
  }
1918
1945
  }
1919
- class Zr {
1946
+ class et {
1920
1947
  /**
1921
1948
  * Инициализирует экземпляр класса {@link VersionConfig}.
1922
1949
  *
@@ -1938,7 +1965,7 @@ class Zr {
1938
1965
  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
1966
  }
1940
1967
  }
1941
- class et {
1968
+ class rt {
1942
1969
  /**
1943
1970
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
1944
1971
  *
@@ -1977,7 +2004,7 @@ class et {
1977
2004
  this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
1978
2005
  }
1979
2006
  }
1980
- class Ot {
2007
+ class qt {
1981
2008
  /**
1982
2009
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
1983
2010
  *
@@ -2021,17 +2048,17 @@ class Ot {
2021
2048
  */
2022
2049
  t(this, "dateFormats");
2023
2050
  var e, s, i;
2024
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Yr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Qr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Xr({
2051
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Yr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Zr({
2025
2052
  environment: this.environment,
2026
2053
  ...r == null ? void 0 : r.sentry
2027
- }), this.urls = r == null ? void 0 : r.urls, this.version = new Zr(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new et(r.websocket) : void 0, this.dateFormats = {
2054
+ }), this.urls = r == null ? void 0 : r.urls, this.version = new et(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new rt(r.websocket) : void 0, this.dateFormats = {
2028
2055
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
2029
2056
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
2030
2057
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
2031
2058
  };
2032
2059
  }
2033
2060
  }
2034
- class qt extends h {
2061
+ class Ut extends h {
2035
2062
  /**
2036
2063
  * Возвращает данные о результатах поиска категорий и товаров.
2037
2064
  *
@@ -2058,11 +2085,11 @@ class qt extends h {
2058
2085
  */
2059
2086
  // eslint-disable-next-line class-methods-use-this
2060
2087
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2061
- let c = `${a.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2088
+ let c = `${D.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2062
2089
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2063
2090
  }
2064
2091
  }
2065
- class Ut extends h {
2092
+ class Gt extends h {
2066
2093
  /**
2067
2094
  * Импортирует цены клиента из CSV файла.
2068
2095
  *
@@ -2261,7 +2288,7 @@ class Ut extends h {
2261
2288
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2262
2289
  }
2263
2290
  }
2264
- class Gt extends h {
2291
+ class jt extends h {
2265
2292
  /**
2266
2293
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2267
2294
  *
@@ -2296,7 +2323,7 @@ class Gt extends h {
2296
2323
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2297
2324
  */
2298
2325
  attachTemplate(r, e, s) {
2299
- const i = a.getConfig().dateFormats.api;
2326
+ const i = D.getConfig().dateFormats.api;
2300
2327
  return this.post(
2301
2328
  `/internal/clients/${r}/price/templates/${e}`,
2302
2329
  s && {
@@ -2330,7 +2357,7 @@ class Gt extends h {
2330
2357
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2331
2358
  */
2332
2359
  changeTemplate(r, e, s, i) {
2333
- const o = a.getConfig().dateFormats.api;
2360
+ const o = D.getConfig().dateFormats.api;
2334
2361
  return this.patch(
2335
2362
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2336
2363
  i && {
@@ -2353,7 +2380,7 @@ class Gt extends h {
2353
2380
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2354
2381
  }
2355
2382
  }
2356
- class jt extends h {
2383
+ class Ft extends h {
2357
2384
  /**
2358
2385
  * Возвращает список данных о корневых категориях.
2359
2386
  *
@@ -2413,7 +2440,7 @@ class jt extends h {
2413
2440
  showHidden: s,
2414
2441
  withPriceCoefficients: e
2415
2442
  },
2416
- (i) => ue(i.data, (o) => new L(o))
2443
+ (i) => ue(i.data, (o) => new d(o))
2417
2444
  );
2418
2445
  }
2419
2446
  /**
@@ -2445,7 +2472,7 @@ class jt extends h {
2445
2472
  });
2446
2473
  }
2447
2474
  }
2448
- class Ft extends h {
2475
+ class Mt extends h {
2449
2476
  /**
2450
2477
  * Возвращает данные об указанном продукте.
2451
2478
  *
@@ -2455,7 +2482,7 @@ class Ft extends h {
2455
2482
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2456
2483
  */
2457
2484
  getProductData(r, e = !1) {
2458
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new L(s.data));
2485
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new d(s.data));
2459
2486
  }
2460
2487
  /**
2461
2488
  * Возвращает публичные данные об указанном продукте.
@@ -2463,7 +2490,7 @@ class Ft extends h {
2463
2490
  * @param productId Идентификатор продукта.
2464
2491
  */
2465
2492
  getPublicProductData(r) {
2466
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new L(e.data));
2493
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new d(e.data));
2467
2494
  }
2468
2495
  /**
2469
2496
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2488,14 +2515,14 @@ class Ft extends h {
2488
2515
  publicSimpleSearch(r, e = 10) {
2489
2516
  return new Promise((s, i) => {
2490
2517
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2491
- s(o.products.map((c) => new L(c)));
2518
+ s(o.products.map((c) => new d(c)));
2492
2519
  }).catch((o) => {
2493
2520
  i(o);
2494
2521
  });
2495
2522
  });
2496
2523
  }
2497
2524
  }
2498
- class Mt extends h {
2525
+ class Ht extends h {
2499
2526
  /**
2500
2527
  * Возвращает список данных о корневых категориях указанного клиента.
2501
2528
  *
@@ -2557,7 +2584,7 @@ class Mt extends h {
2557
2584
  );
2558
2585
  }
2559
2586
  }
2560
- class Ht extends h {
2587
+ class Bt extends h {
2561
2588
  /**
2562
2589
  * Возвращает данные об указанном продукте для указанного клиента.
2563
2590
  *
@@ -2610,7 +2637,7 @@ class Be {
2610
2637
  field: this.field,
2611
2638
  op: this.op
2612
2639
  };
2613
- return r.value = Ie(this.value) ? q(this.value, a.getConfig().dateFormats.api) : this.value, r;
2640
+ return r.value = Ie(this.value) ? q(this.value, D.getConfig().dateFormats.api) : this.value, r;
2614
2641
  }
2615
2642
  }
2616
2643
  class le {
@@ -2648,7 +2675,7 @@ class le {
2648
2675
  };
2649
2676
  }
2650
2677
  }
2651
- class ae extends h {
2678
+ class De extends h {
2652
2679
  /**
2653
2680
  * Получает пагинированный список данных.
2654
2681
  *
@@ -2668,7 +2695,7 @@ class ae extends h {
2668
2695
  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);
2669
2696
  }
2670
2697
  }
2671
- class Bt extends ae {
2698
+ class zt extends De {
2672
2699
  /**
2673
2700
  * Возвращает список шаблонов прайс-листа.
2674
2701
  *
@@ -2872,7 +2899,7 @@ class Bt extends ae {
2872
2899
  );
2873
2900
  }
2874
2901
  }
2875
- class zt extends h {
2902
+ class Wt extends h {
2876
2903
  /**
2877
2904
  * Возвращает список ролей ценообразования.
2878
2905
  *
@@ -2952,7 +2979,7 @@ class zt extends h {
2952
2979
  );
2953
2980
  }
2954
2981
  }
2955
- class Wt extends ae {
2982
+ class Et extends De {
2956
2983
  /**
2957
2984
  * Возвращает пагинированный список свойств.
2958
2985
  *
@@ -3354,14 +3381,14 @@ function We(n) {
3354
3381
  }
3355
3382
  }), r;
3356
3383
  }
3357
- var rt = /* @__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))(rt || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
3358
- class tt extends P {
3384
+ var tt = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(tt || {}), L = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(L || {});
3385
+ class st extends P {
3359
3386
  }
3360
3387
  class lr extends P {
3361
3388
  }
3362
- class Et extends P {
3389
+ class Vt extends P {
3363
3390
  }
3364
- class st extends P {
3391
+ class it extends P {
3365
3392
  }
3366
3393
  class ye extends T {
3367
3394
  /**
@@ -3390,21 +3417,21 @@ class j extends P {
3390
3417
  return new j({
3391
3418
  id: 1,
3392
3419
  guid: "",
3393
- slug: d.Person,
3420
+ slug: L.Person,
3394
3421
  name: ""
3395
3422
  });
3396
3423
  }
3397
3424
  }
3398
- class it extends P {
3399
- }
3400
3425
  class nt extends P {
3401
3426
  }
3402
- class X extends P {
3403
- }
3404
3427
  class ot extends P {
3405
3428
  }
3429
+ class X extends P {
3430
+ }
3406
3431
  class ct extends P {
3407
3432
  }
3433
+ class lt extends P {
3434
+ }
3408
3435
  class pr extends P {
3409
3436
  }
3410
3437
  class ur extends P {
@@ -3440,7 +3467,7 @@ class ke extends M {
3440
3467
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ye(e.currency));
3441
3468
  }
3442
3469
  }
3443
- class Le extends T {
3470
+ class de extends T {
3444
3471
  /**
3445
3472
  * Инициализирует экземпляр класса {@link Contact}.
3446
3473
  *
@@ -3459,7 +3486,7 @@ class Le extends T {
3459
3486
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
3460
3487
  }
3461
3488
  }
3462
- class F extends Le {
3489
+ class F extends de {
3463
3490
  /**
3464
3491
  * Инициализирует экземпляр класса {@link ContactPerson}.
3465
3492
  *
@@ -3567,7 +3594,7 @@ class hr extends T {
3567
3594
  }
3568
3595
  }
3569
3596
  }
3570
- class lt extends hr {
3597
+ class pt extends hr {
3571
3598
  /**
3572
3599
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3573
3600
  *
@@ -3635,7 +3662,7 @@ class mr extends gr {
3635
3662
  e && (this.kpp = e.kpp ?? "");
3636
3663
  }
3637
3664
  }
3638
- class pt extends mr {
3665
+ class ut extends mr {
3639
3666
  /**
3640
3667
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3641
3668
  *
@@ -3666,14 +3693,14 @@ class we {
3666
3693
  */
3667
3694
  static createInstance(r) {
3668
3695
  switch (r.opf.slug) {
3669
- case d.Ic:
3696
+ case L.Ic:
3670
3697
  return new gr(r);
3671
- case d.UlR:
3698
+ case L.UlR:
3672
3699
  return new mr(r);
3673
- case d.UlNr:
3674
- return new pt(r);
3700
+ case L.UlNr:
3701
+ return new ut(r);
3675
3702
  default:
3676
- return new lt(r);
3703
+ return new pt(r);
3677
3704
  }
3678
3705
  }
3679
3706
  }
@@ -3692,7 +3719,7 @@ class be extends M {
3692
3719
  this.isPrimary = e.isPrimary;
3693
3720
  }
3694
3721
  }
3695
- class ut extends F {
3722
+ class ht extends F {
3696
3723
  /**
3697
3724
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
3698
3725
  *
@@ -3817,7 +3844,7 @@ class Ee extends ge {
3817
3844
  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 lr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new ur(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) ?? {};
3818
3845
  }
3819
3846
  }
3820
- class Vt {
3847
+ class Jt {
3821
3848
  /**
3822
3849
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
3823
3850
  *
@@ -3913,7 +3940,7 @@ class Vt {
3913
3940
  */
3914
3941
  t(this, "lastOrder");
3915
3942
  var e, s, i, o, c, p;
3916
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((u) => new je(u)), this.region = new ce(r == null ? void 0 : r.region), this.country = new Y(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((u) => new Ae(u)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((u) => new x(u)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new j(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((u) => new X(u)), this.contact = new Le(r == null ? void 0 : r.contact), this.lastOrder = {
3943
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((u) => new je(u)), this.region = new ce(r == null ? void 0 : r.region), this.country = new Y(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((u) => new Ae(u)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((u) => new x(u)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new j(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((u) => new X(u)), this.contact = new de(r == null ? void 0 : r.contact), this.lastOrder = {
3917
3944
  createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
3918
3945
  creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
3919
3946
  isApproved: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.isApproved
@@ -3972,7 +3999,7 @@ class Vt {
3972
3999
  this.partnerGroups = [];
3973
4000
  break;
3974
4001
  case "contact":
3975
- this.contact = new Le();
4002
+ this.contact = new de();
3976
4003
  break;
3977
4004
  }
3978
4005
  return this;
@@ -4014,7 +4041,7 @@ class fr extends M {
4014
4041
  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;
4015
4042
  }
4016
4043
  }
4017
- class ht extends T {
4044
+ class gt extends T {
4018
4045
  /**
4019
4046
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4020
4047
  *
@@ -4050,7 +4077,7 @@ class ht extends T {
4050
4077
  (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new fr(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)));
4051
4078
  }
4052
4079
  }
4053
- class gt {
4080
+ class mt {
4054
4081
  /**
4055
4082
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4056
4083
  *
@@ -4068,7 +4095,7 @@ class gt {
4068
4095
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4069
4096
  }
4070
4097
  }
4071
- class Jt extends gt {
4098
+ class Kt extends mt {
4072
4099
  /**
4073
4100
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4074
4101
  *
@@ -4099,7 +4126,7 @@ class Jt extends gt {
4099
4126
  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;
4100
4127
  }
4101
4128
  }
4102
- class Kt {
4129
+ class Qt {
4103
4130
  /**
4104
4131
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4105
4132
  *
@@ -4117,7 +4144,7 @@ class Kt {
4117
4144
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4118
4145
  }
4119
4146
  }
4120
- class Qt extends ae {
4147
+ class Yt extends De {
4121
4148
  /**
4122
4149
  * Возвращает данные об указанном клиенте.
4123
4150
  *
@@ -4167,7 +4194,7 @@ class Qt extends ae {
4167
4194
  const s = r.map((i) => i.id);
4168
4195
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4169
4196
  let o = [];
4170
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new ht(c))), o;
4197
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new gt(c))), o;
4171
4198
  });
4172
4199
  }
4173
4200
  /**
@@ -4179,7 +4206,7 @@ class Qt extends ae {
4179
4206
  getAllClientContacts(r) {
4180
4207
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4181
4208
  let s = [];
4182
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ut(i))), s;
4209
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ht(i))), s;
4183
4210
  });
4184
4211
  }
4185
4212
  /**
@@ -4323,7 +4350,7 @@ class Qt extends ae {
4323
4350
  let i;
4324
4351
  const o = e, c = e, p = e;
4325
4352
  switch (e.opf.slug) {
4326
- case d.Ic:
4353
+ case L.Ic:
4327
4354
  i = {
4328
4355
  opf: o.opf.slug,
4329
4356
  name: o.name,
@@ -4341,7 +4368,7 @@ class Qt extends ae {
4341
4368
  actual_address: o.actualAddress
4342
4369
  };
4343
4370
  break;
4344
- case d.UlR:
4371
+ case L.UlR:
4345
4372
  i = {
4346
4373
  opf: c.opf.slug,
4347
4374
  name: c.name,
@@ -4360,7 +4387,7 @@ class Qt extends ae {
4360
4387
  actual_address: c.actualAddress
4361
4388
  };
4362
4389
  break;
4363
- case d.UlNr:
4390
+ case L.UlNr:
4364
4391
  i = {
4365
4392
  opf: p.opf.slug,
4366
4393
  name: p.name,
@@ -4412,7 +4439,7 @@ class Qt extends ae {
4412
4439
  let i;
4413
4440
  const o = e, c = e, p = e;
4414
4441
  switch (e.opf.slug) {
4415
- case d.Ic:
4442
+ case L.Ic:
4416
4443
  i = {
4417
4444
  opf: o.opf.slug,
4418
4445
  name: o.name,
@@ -4430,7 +4457,7 @@ class Qt extends ae {
4430
4457
  actual_address: o.actualAddress
4431
4458
  };
4432
4459
  break;
4433
- case d.UlR:
4460
+ case L.UlR:
4434
4461
  i = {
4435
4462
  opf: c.opf.slug,
4436
4463
  name: c.name,
@@ -4449,7 +4476,7 @@ class Qt extends ae {
4449
4476
  actual_address: c.actualAddress
4450
4477
  };
4451
4478
  break;
4452
- case d.UlNr:
4479
+ case L.UlNr:
4453
4480
  i = {
4454
4481
  opf: p.opf.slug,
4455
4482
  name: p.name,
@@ -4854,7 +4881,7 @@ const E = class E extends h {
4854
4881
  * Время кэширования данных ответов на запросы (секунд).
4855
4882
  */
4856
4883
  t(this, "responseDataCacheTimeout");
4857
- this.responseDataCacheTimeout = a.getConfig().http.responseDataCacheTimeout;
4884
+ this.responseDataCacheTimeout = D.getConfig().http.responseDataCacheTimeout;
4858
4885
  }
4859
4886
  /**
4860
4887
  * Возвращает кэшированные данные.
@@ -4903,7 +4930,7 @@ const E = class E extends h {
4903
4930
  */
4904
4931
  t(E, "responseDataCache", /* @__PURE__ */ new Map());
4905
4932
  let pe = E;
4906
- class Yt extends h {
4933
+ class Xt extends h {
4907
4934
  /**
4908
4935
  * Выполняет проверку занят ли указанный номер телефона.
4909
4936
  *
@@ -4917,7 +4944,7 @@ class Yt extends h {
4917
4944
  });
4918
4945
  }
4919
4946
  }
4920
- class Xt extends h {
4947
+ class Zt extends h {
4921
4948
  /**
4922
4949
  * Возвращает настройки указанного конфигуратора для указанной категории.
4923
4950
  *
@@ -4945,7 +4972,7 @@ class Xt extends h {
4945
4972
  const i = this.get(
4946
4973
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/product`,
4947
4974
  { params: e },
4948
- (c) => new L(c.data)
4975
+ (c) => new d(c.data)
4949
4976
  );
4950
4977
  return i.catch((c) => {
4951
4978
  this.errorResponseHandler(c, s);
@@ -4988,18 +5015,18 @@ class Xt extends h {
4988
5015
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.configurator}/template/${e}`);
4989
5016
  }
4990
5017
  }
4991
- class Zt {
5018
+ class es {
4992
5019
  /**
4993
5020
  * Возвращает диапазон дат по умолчанию.
4994
5021
  */
4995
5022
  static defaultDateRanges() {
4996
- const r = dr(/* @__PURE__ */ new Date(), 1);
5023
+ const r = Lr(/* @__PURE__ */ new Date(), 1);
4997
5024
  return {
4998
5025
  // 'Следующий рабочий день' - это значение по-умолчанию
4999
5026
  nextWorkingDay: { label: "Следующий рабочий день", from: Ur(r), to: qr(r) },
5000
5027
  today: { label: "Сегодня", from: er(), to: Or() },
5001
5028
  yesterday: { label: "Вчера", from: Nr(), to: xr() },
5002
- tomorrow: { label: "Завтра", from: Lr(), to: kr() }
5029
+ tomorrow: { label: "Завтра", from: dr(), to: kr() }
5003
5030
  };
5004
5031
  }
5005
5032
  }
@@ -5044,7 +5071,7 @@ const V = class V {
5044
5071
  */
5045
5072
  t(V, "linearValues", ["пог.м.", "м.", "м2"]);
5046
5073
  let Ve = V;
5047
- class es {
5074
+ class rs {
5048
5075
  /**
5049
5076
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5050
5077
  */
@@ -5060,7 +5087,7 @@ class es {
5060
5087
  return r.id === 0 && r.guid === "-undefined-";
5061
5088
  }
5062
5089
  }
5063
- class mt extends pe {
5090
+ class ft extends pe {
5064
5091
  /**
5065
5092
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5066
5093
  */
@@ -5133,7 +5160,7 @@ class yr extends fr {
5133
5160
  }, 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;
5134
5161
  }
5135
5162
  }
5136
- class ft extends M {
5163
+ class yt extends M {
5137
5164
  /**
5138
5165
  * Инициализирует экземпляр класса {@link OrderProduct}.
5139
5166
  *
@@ -5216,7 +5243,7 @@ class ft extends M {
5216
5243
  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;
5217
5244
  }
5218
5245
  }
5219
- class yt extends yr {
5246
+ class wt extends yr {
5220
5247
  /**
5221
5248
  * Инициализирует экземпляр класса {@link Order}.
5222
5249
  *
@@ -5256,10 +5283,10 @@ class yt extends yr {
5256
5283
  * Признак, что разрешена передача заказа в работу без оплаты.
5257
5284
  */
5258
5285
  t(this, "isAllowProcessingWithoutPayment");
5259
- this.products = (e.products ?? []).map((s) => new ft(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;
5286
+ this.products = (e.products ?? []).map((s) => new yt(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;
5260
5287
  }
5261
5288
  }
5262
- class rs extends ae {
5289
+ class ts extends De {
5263
5290
  /**
5264
5291
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5265
5292
  *
@@ -5290,7 +5317,7 @@ class rs extends ae {
5290
5317
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5291
5318
  */
5292
5319
  getOrder(r) {
5293
- return this.get(`/internal/orders/${r}`, {}, (e) => new yt(e.data));
5320
+ return this.get(`/internal/orders/${r}`, {}, (e) => new wt(e.data));
5294
5321
  }
5295
5322
  }
5296
5323
  class _e {
@@ -5320,7 +5347,7 @@ class _e {
5320
5347
  * Источник клиентской цены.
5321
5348
  */
5322
5349
  t(this, "source");
5323
- this.client = new ge(r == null ? void 0 : r.client), this.product = new L(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) ?? Ge.Product;
5350
+ this.client = new ge(r == null ? void 0 : r.client), this.product = new d(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) ?? Ge.Product;
5324
5351
  }
5325
5352
  }
5326
5353
  const Se = (n) => {
@@ -5340,7 +5367,7 @@ const Se = (n) => {
5340
5367
  const r = {};
5341
5368
  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;
5342
5369
  };
5343
- class ts extends h {
5370
+ class ss extends h {
5344
5371
  /**
5345
5372
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5346
5373
  *
@@ -5401,7 +5428,7 @@ class ts extends h {
5401
5428
  );
5402
5429
  }
5403
5430
  }
5404
- class wt {
5431
+ class Ct {
5405
5432
  /**
5406
5433
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
5407
5434
  *
@@ -5451,7 +5478,7 @@ class wt {
5451
5478
  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;
5452
5479
  }
5453
5480
  }
5454
- class Ct extends ne {
5481
+ class vt extends ne {
5455
5482
  /**
5456
5483
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
5457
5484
  *
@@ -5463,15 +5490,15 @@ class Ct extends ne {
5463
5490
  * @inheritDoc
5464
5491
  */
5465
5492
  t(this, "history");
5466
- this.history = ue(e.history, (s) => new wt(s));
5493
+ this.history = ue(e.history, (s) => new Ct(s));
5467
5494
  }
5468
5495
  }
5469
- class ss extends h {
5496
+ class is extends h {
5470
5497
  /**
5471
5498
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
5472
5499
  */
5473
5500
  constructor() {
5474
- super(), this.baseUrl = `${a.getConfig().http.priceHistoryApiUrl ?? ""}/api`;
5501
+ super(), this.baseUrl = `${D.getConfig().http.priceHistoryApiUrl ?? ""}/api`;
5475
5502
  }
5476
5503
  /**
5477
5504
  * Возвращает данные об истории изменения цен.
@@ -5482,7 +5509,7 @@ class ss extends h {
5482
5509
  */
5483
5510
  getProductPriceHistory(r) {
5484
5511
  var i, o, c, p;
5485
- const e = a.getConfig().dateFormats.api, s = Xe(
5512
+ const e = D.getConfig().dateFormats.api, s = Xe(
5486
5513
  xe(r, {
5487
5514
  costDate: {
5488
5515
  from: Ie((i = r.costDate) == null ? void 0 : i.from) ? q(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
@@ -5491,7 +5518,7 @@ class ss extends h {
5491
5518
  }),
5492
5519
  (u) => $(u) || (J(u) || Ze(u)) && ve(u)
5493
5520
  );
5494
- return this.get("/internal/history", s, (u) => ue(u.data, (m) => new Ct(m)));
5521
+ return this.get("/internal/history", s, (u) => ue(u.data, (m) => new vt(m)));
5495
5522
  }
5496
5523
  }
5497
5524
  class Ke {
@@ -5512,12 +5539,12 @@ class Ke {
5512
5539
  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)));
5513
5540
  }
5514
5541
  }
5515
- class is extends h {
5542
+ class ns extends h {
5516
5543
  /**
5517
5544
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
5518
5545
  */
5519
5546
  constructor() {
5520
- super(), this.baseUrl = `${a.getConfig().http.recommendationsApiUrl ?? ""}/api`;
5547
+ super(), this.baseUrl = `${D.getConfig().http.recommendationsApiUrl ?? ""}/api`;
5521
5548
  }
5522
5549
  /**
5523
5550
  * Возвращает данные о рекомендациях указанной категории продуктов.
@@ -5564,7 +5591,7 @@ class is extends h {
5564
5591
  });
5565
5592
  }
5566
5593
  }
5567
- class D extends pe {
5594
+ class a extends pe {
5568
5595
  /**
5569
5596
  * Возвращает {@link Promise} для получения данных указанного справочника.
5570
5597
  *
@@ -5573,7 +5600,7 @@ class D extends pe {
5573
5600
  * и использовать в случае аналогичных запросов.
5574
5601
  */
5575
5602
  getReference(r, e = !1) {
5576
- return this.getTypedDataArrayRequester(tt, `/internal/references/${r}`, e);
5603
+ return this.getTypedDataArrayRequester(st, `/internal/references/${r}`, e);
5577
5604
  }
5578
5605
  /**
5579
5606
  * Возвращает {@link Promise} для получения справочника данных о канале
@@ -5586,7 +5613,7 @@ class D extends pe {
5586
5613
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
5587
5614
  */
5588
5615
  getContactPositions() {
5589
- return this.getTypedDataArrayRequester(st, "/internal/references/contact-position", !0);
5616
+ return this.getTypedDataArrayRequester(it, "/internal/references/contact-position", !0);
5590
5617
  }
5591
5618
  /**
5592
5619
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -5611,19 +5638,19 @@ class D extends pe {
5611
5638
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
5612
5639
  */
5613
5640
  getOrderPaymentStatuses() {
5614
- return this.getTypedDataArrayRequester(it, "/public/references/order-payment-status", !0);
5641
+ return this.getTypedDataArrayRequester(nt, "/public/references/order-payment-status", !0);
5615
5642
  }
5616
5643
  /**
5617
5644
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
5618
5645
  */
5619
5646
  getOrderStatuses() {
5620
- return this.getTypedDataArrayRequester(nt, "/public/references/order-status", !0);
5647
+ return this.getTypedDataArrayRequester(ot, "/public/references/order-status", !0);
5621
5648
  }
5622
5649
  /**
5623
5650
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5624
5651
  */
5625
5652
  getPaymentTypes() {
5626
- return this.getTypedDataArrayRequester(ot, "/public/references/payment-type", !0);
5653
+ return this.getTypedDataArrayRequester(ct, "/public/references/payment-type", !0);
5627
5654
  }
5628
5655
  /**
5629
5656
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
@@ -5695,7 +5722,7 @@ class D extends pe {
5695
5722
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
5696
5723
  */
5697
5724
  getProductFileType() {
5698
- return this.getTypedDataArrayRequester(ct, "/public/references/product-file-type", !0);
5725
+ return this.getTypedDataArrayRequester(lt, "/public/references/product-file-type", !0);
5699
5726
  }
5700
5727
  }
5701
5728
  const A = Z("__references_private", () => {
@@ -5774,90 +5801,90 @@ const A = Z("__references_private", () => {
5774
5801
  */
5775
5802
  priceCoefficientsReference: l
5776
5803
  };
5777
- }), ns = Z("references", () => {
5804
+ }), os = Z("references", () => {
5778
5805
  const n = R(() => {
5779
5806
  const l = A();
5780
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(D).getChannelPrimaryInterest().then((g) => {
5807
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(a).getChannelPrimaryInterest().then((g) => {
5781
5808
  l.channelPrimaryInterestReference = g;
5782
5809
  }).catch(w)), l.channelPrimaryInterestReference;
5783
5810
  }), r = R(() => {
5784
5811
  const l = A();
5785
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(D).getContactPositions().then((g) => {
5812
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(a).getContactPositions().then((g) => {
5786
5813
  l.contactPositionsReference = g;
5787
5814
  }).catch(w)), l.contactPositionsReference;
5788
5815
  }), e = R(() => {
5789
5816
  const l = A();
5790
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(D).getCurrency().then((g) => {
5817
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(a).getCurrency().then((g) => {
5791
5818
  l.currencyReference = g;
5792
5819
  }).catch(w)), l.currencyReference;
5793
5820
  }), s = R(() => {
5794
5821
  const l = A();
5795
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(D).getOpf().then((g) => {
5822
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(a).getOpf().then((g) => {
5796
5823
  l.opfReference = g;
5797
5824
  }).catch(w)), l.opfReference;
5798
5825
  }), i = R(() => {
5799
5826
  const l = A();
5800
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(D).getOrderPaymentStatuses().then((g) => {
5827
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(a).getOrderPaymentStatuses().then((g) => {
5801
5828
  l.orderPaymentStatusReference = g;
5802
5829
  }).catch(w)), l.orderPaymentStatusReference;
5803
5830
  }), o = R(() => {
5804
5831
  const l = A();
5805
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(D).getOrderStatuses().then((g) => {
5832
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(a).getOrderStatuses().then((g) => {
5806
5833
  l.orderStatusReference = g;
5807
5834
  }).catch(w)), l.orderStatusReference;
5808
5835
  }), c = R(() => {
5809
5836
  const l = A();
5810
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(D).getPaymentTypes().then((g) => {
5837
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(a).getPaymentTypes().then((g) => {
5811
5838
  l.paymentTypeReference = g;
5812
5839
  }).catch(w)), l.paymentTypeReference;
5813
5840
  }), p = R(() => {
5814
5841
  const l = A();
5815
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(D).getPartnerGroup().then((g) => {
5842
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(a).getPartnerGroup().then((g) => {
5816
5843
  l.partnerGroupReference = g;
5817
5844
  }).catch(w)), l.partnerGroupReference;
5818
5845
  }), u = R(() => {
5819
5846
  const l = A();
5820
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(D).getProductFileType().then((g) => {
5847
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(a).getProductFileType().then((g) => {
5821
5848
  l.productFileTypeReference = g;
5822
5849
  }).catch(w)), l.productFileTypeReference;
5823
5850
  }), m = R(() => {
5824
5851
  const l = A();
5825
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(D).getResourceTypes().then((g) => {
5852
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(a).getResourceTypes().then((g) => {
5826
5853
  l.resourceTypesReference = g;
5827
5854
  }).catch(w)), l.resourceTypesReference;
5828
5855
  }), v = R(() => {
5829
5856
  const l = A();
5830
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(D).getSalesDirections().then((g) => {
5857
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(a).getSalesDirections().then((g) => {
5831
5858
  l.salesDirectionsReference = g;
5832
5859
  }).catch(w)), l.salesDirectionsReference;
5833
5860
  }), S = R(() => {
5834
5861
  const l = A();
5835
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(D).getSourcePrimaryInterest().then((g) => {
5862
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(a).getSourcePrimaryInterest().then((g) => {
5836
5863
  l.sourcePrimaryInterestReference = g;
5837
5864
  }).catch(w)), l.sourcePrimaryInterestReference;
5838
5865
  }), I = R(() => {
5839
5866
  const l = A();
5840
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(D).getDeliveryTypes().then((g) => {
5867
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(a).getDeliveryTypes().then((g) => {
5841
5868
  l.deliveryTypeReference = g;
5842
5869
  }).catch(w)), l.deliveryTypeReference;
5843
5870
  }), b = R(() => {
5844
5871
  const l = A();
5845
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(mt).getManagers().then((g) => {
5872
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ft).getManagers().then((g) => {
5846
5873
  l.managersList = g;
5847
5874
  }).catch(w)), l.managersList;
5848
5875
  }), _ = R(() => {
5849
5876
  const l = A();
5850
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(D).getWarehouses().then((g) => {
5877
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(a).getWarehouses().then((g) => {
5851
5878
  l.warehousesReference = g;
5852
5879
  }).catch(w)), l.warehousesReference;
5853
5880
  }), N = R(() => {
5854
5881
  const l = A();
5855
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(D).getPropertyTypes().then((g) => {
5882
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(a).getPropertyTypes().then((g) => {
5856
5883
  l.propertyTypesReference = g;
5857
5884
  }).catch(w)), l.propertyTypesReference;
5858
5885
  }), U = R(() => {
5859
5886
  const l = A();
5860
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(D).getPriceCoefficients().then((g) => {
5887
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(a).getPriceCoefficients().then((g) => {
5861
5888
  l.priceCoefficientsReference = g;
5862
5889
  }).catch(w)), l.priceCoefficientsReference;
5863
5890
  });
@@ -5932,7 +5959,7 @@ const A = Z("__references_private", () => {
5932
5959
  priceCoefficientsReference: U
5933
5960
  };
5934
5961
  });
5935
- class vt {
5962
+ class Pt {
5936
5963
  /**
5937
5964
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5938
5965
  *
@@ -5986,10 +6013,10 @@ class Qe {
5986
6013
  */
5987
6014
  t(this, "meta");
5988
6015
  var e;
5989
- this.resourceType = new pr(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 vt(s))) ?? [];
6016
+ this.resourceType = new pr(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 Pt(s))) ?? [];
5990
6017
  }
5991
6018
  }
5992
- class os extends h {
6019
+ class cs extends h {
5993
6020
  /**
5994
6021
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5995
6022
  *
@@ -6020,7 +6047,7 @@ class os extends h {
6020
6047
  return this.delete(`/internal/seo/${r.slug}/${e}`);
6021
6048
  }
6022
6049
  }
6023
- class cs extends h {
6050
+ class ls extends h {
6024
6051
  /**
6025
6052
  * Возвращает подсказки по адресам.
6026
6053
  *
@@ -6067,8 +6094,8 @@ class cs extends h {
6067
6094
  });
6068
6095
  }
6069
6096
  }
6070
- var Pt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Pt || {});
6071
- class Rt extends or {
6097
+ var Rt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Rt || {});
6098
+ class At extends or {
6072
6099
  /**
6073
6100
  * Инициализирует экземпляр класса {@link User}.
6074
6101
  *
@@ -6091,12 +6118,12 @@ class Rt extends or {
6091
6118
  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;
6092
6119
  }
6093
6120
  }
6094
- class ls extends h {
6121
+ class ps extends h {
6095
6122
  /**
6096
6123
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6097
6124
  */
6098
6125
  constructor() {
6099
- super(), this.baseUrl = `${a.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6126
+ super(), this.baseUrl = `${D.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6100
6127
  }
6101
6128
  /**
6102
6129
  * Функция для получения обновленных токенов доступа.
@@ -6107,13 +6134,13 @@ class ls extends h {
6107
6134
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6108
6135
  }
6109
6136
  }
6110
- class At extends h {
6137
+ class Dt extends h {
6111
6138
  /**
6112
6139
  * Возвращает данные о текущем пользователе.
6113
6140
  */
6114
6141
  // eslint-disable-next-line class-methods-use-this
6115
6142
  getCurrentUser() {
6116
- return this.get("/internal/users/info", {}, (r) => new Rt(r.data));
6143
+ return this.get("/internal/users/info", {}, (r) => new At(r.data));
6117
6144
  }
6118
6145
  }
6119
6146
  const at = Z("__user_state_private", () => {
@@ -6128,20 +6155,20 @@ const at = Z("__user_state_private", () => {
6128
6155
  */
6129
6156
  currentUser: r
6130
6157
  };
6131
- }), ps = Z("user_state", () => ({
6158
+ }), us = Z("user_state", () => ({
6132
6159
  /**
6133
6160
  * Данные о текущем пользователе.
6134
6161
  */
6135
6162
  currentUser: R(() => {
6136
6163
  const r = at();
6137
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(At).getCurrentUser().then((e) => {
6164
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Dt).getCurrentUser().then((e) => {
6138
6165
  r.currentUser = e;
6139
6166
  }).catch(w).finally(() => {
6140
6167
  r.dataLoaderList.currentUser = !1;
6141
6168
  })), r.currentUser;
6142
6169
  })
6143
6170
  }));
6144
- class us {
6171
+ class hs {
6145
6172
  /**
6146
6173
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
6147
6174
  *
@@ -6165,149 +6192,150 @@ class us {
6165
6192
  }
6166
6193
  }
6167
6194
  export {
6168
- tt as AnyReference,
6169
- Ot as AppBaseConfig,
6170
- a as AppConfigProvider,
6195
+ st as AnyReference,
6196
+ qt as AppBaseConfig,
6197
+ D as AppConfigProvider,
6171
6198
  ke as BankAccount,
6172
- ae as BasePaginationProvider,
6199
+ De as BasePaginationProvider,
6173
6200
  zr as CalculationTypeEnum,
6174
6201
  me as Cart,
6175
6202
  Br as CartItem,
6176
6203
  Hr as CartItemBase,
6177
- Lt as CartProvider,
6178
- qt as CatalogProvider,
6204
+ xt as CartProvider,
6205
+ Ut as CatalogProvider,
6179
6206
  rr as CatalogableItem,
6180
6207
  B as Category,
6181
6208
  He as CategoryPricingRule,
6182
6209
  lr as ChannelPrimaryInterest,
6183
- Et as City,
6210
+ Vt as City,
6184
6211
  je as CityWithRegionAndCountry,
6185
6212
  Ee as Client,
6186
- ht as ClientAdditionalData,
6213
+ gt as ClientAdditionalData,
6187
6214
  fe as ClientCategory,
6188
- Qt as ClientDataProvider,
6189
- Ut as ClientPriceProvider,
6190
- Gt as ClientPriceTemplateProvider,
6215
+ Yt as ClientDataProvider,
6216
+ Gt as ClientPriceProvider,
6217
+ jt as ClientPriceTemplateProvider,
6191
6218
  Q as ClientProduct,
6192
- Mt as ClientProductCategoryDataProvider,
6193
- Ht as ClientProductDataProvider,
6219
+ Ht as ClientProductCategoryDataProvider,
6220
+ Bt as ClientProductDataProvider,
6194
6221
  ge as ClientShortInfo,
6195
- rt as ClientsAdditionalDataRequestTypeEnum,
6196
- Vt as ClientsListFilters,
6222
+ tt as ClientsAdditionalDataRequestTypeEnum,
6223
+ Jt as ClientsListFilters,
6197
6224
  ne as CodedIdentity,
6198
- Xt as ConfiguratorProvider,
6199
- Le as Contact,
6225
+ Zt as ConfiguratorProvider,
6226
+ de as Contact,
6200
6227
  Jr as ContactLinks,
6201
6228
  F as ContactPerson,
6202
- ut as ContactPersonRelated,
6203
- st as ContactPosition,
6229
+ ht as ContactPersonRelated,
6230
+ it as ContactPosition,
6204
6231
  be as ContactRelation,
6205
6232
  hr as ContragentBase,
6206
6233
  we as ContragentFactory,
6207
6234
  gr as ContragentIc,
6208
- lt as ContragentPerson,
6209
- pt as ContragentUlNr,
6235
+ pt as ContragentPerson,
6236
+ ut as ContragentUlNr,
6210
6237
  mr as ContragentUlR,
6211
6238
  Ge as CostSourceEnum,
6212
6239
  Y as Country,
6213
6240
  ye as Currency,
6214
- cs as DataSuggestionProvider,
6215
- Jt as DataTablePagination,
6216
- gt as DataTablePaginationRequestParams,
6217
- Kt as DataTableSortRequestParams,
6218
- Zt as DateTimeProvider,
6241
+ ls as DataSuggestionProvider,
6242
+ Kt as DataTablePagination,
6243
+ mt as DataTablePaginationRequestParams,
6244
+ Qt as DataTableSortRequestParams,
6245
+ es as DateTimeProvider,
6219
6246
  Er as DeletableNamedIdentity,
6220
6247
  Ce as DeliveryAddress,
6221
6248
  K as DeliveryType,
6222
- kt as DetailedJwtPayload,
6223
- Qr as DeviceTypeResolutionConfig,
6249
+ dt as DetailedJwtPayload,
6250
+ Yr as DeviceTypeResolutionConfig,
6224
6251
  Vr as DiscountShortInfo,
6225
- us as FieldValidationResultData,
6252
+ hs as FieldValidationResultData,
6226
6253
  le as FilterGroup,
6227
6254
  Be as FilterItem,
6228
6255
  Fe as FilterOpEnum,
6229
6256
  sr as GeoCoordinates,
6230
6257
  Fr as HiddenCatalogableItem,
6231
6258
  pe as HttpCachedRequester,
6232
- Yr as HttpParamsConfig,
6259
+ Xr as HttpParamsConfig,
6233
6260
  h as HttpRequester,
6234
6261
  M as Identity,
6235
6262
  Mr as Image,
6236
6263
  ie as JwtPayload,
6237
6264
  Ae as Manager,
6238
6265
  oe as ManagerCommon,
6239
- es as ManagerDataFactory,
6240
- mt as ManagerDataProvider,
6241
- vt as MetaTagItem,
6266
+ rs as ManagerDataFactory,
6267
+ ft as ManagerDataProvider,
6268
+ Pt as MetaTagItem,
6242
6269
  T as NamedIdentity,
6243
6270
  j as Opf,
6244
- d as OpfEnum,
6245
- yt as Order,
6271
+ L as OpfEnum,
6272
+ wt as Order,
6246
6273
  yr as OrderInfo,
6247
- it as OrderPaymentStatus,
6248
- ft as OrderProduct,
6274
+ nt as OrderPaymentStatus,
6275
+ yt as OrderProduct,
6249
6276
  fr as OrderShortInfo,
6250
- nt as OrderStatus,
6251
- rs as OrdersDataProvider,
6277
+ ot as OrderStatus,
6278
+ ts as OrdersDataProvider,
6252
6279
  X as PartnerGroup,
6253
- ot as PaymentType,
6254
- xt as PreferencesStorageProvider,
6280
+ ct as PaymentType,
6281
+ Nt as PreferencesStorageProvider,
6255
6282
  _e as PriceAnalyze,
6256
- ts as PriceAnalyzeProvider,
6283
+ ss as PriceAnalyzeProvider,
6257
6284
  Pe as PriceCoefficient,
6258
6285
  tr as PriceCoefficientEnum,
6259
- ss as PriceHistoryDataProvider,
6260
- wt as PriceHistoryItem,
6286
+ is as PriceHistoryDataProvider,
6287
+ Ct as PriceHistoryItem,
6261
6288
  z as PriceTemplate,
6262
6289
  $e as PriceTemplateCategory,
6263
6290
  re as PriceTemplateClient,
6264
6291
  nr as PriceTemplateICatalogableItem,
6265
6292
  Te as PriceTemplateProduct,
6266
- Bt as PriceTemplateProvider,
6293
+ zt as PriceTemplateProvider,
6267
6294
  se as PricingRole,
6268
- zt as PricingRoleProvider,
6269
- de as PrimaryCatalogableItem,
6270
- L as Product,
6271
- jt as ProductCategoryDataProvider,
6272
- Ft as ProductDataProvider,
6273
- ct as ProductFileType,
6295
+ Wt as PricingRoleProvider,
6296
+ Le as PrimaryCatalogableItem,
6297
+ d as Product,
6298
+ Ft as ProductCategoryDataProvider,
6299
+ Mt as ProductDataProvider,
6300
+ lt as ProductFileType,
6274
6301
  qe as ProductPriceCoefficient,
6275
- Ct as ProductPriceHistory,
6276
- Wt as PropertiesProvider,
6302
+ vt as ProductPriceHistory,
6303
+ Et as PropertiesProvider,
6277
6304
  te as Property,
6278
6305
  cr as PropertyType,
6279
6306
  Wr as PropertyTypeEnum,
6280
6307
  H as PropertyValue,
6281
- is as RecommendationsDataProvider,
6308
+ ns as RecommendationsDataProvider,
6282
6309
  Ke as RecommendationsList,
6283
6310
  P as Reference,
6284
- D as ReferenceDataProvider,
6311
+ a as ReferenceDataProvider,
6285
6312
  ce as Region,
6286
6313
  pr as ResourceType,
6287
6314
  x as SalesDirection,
6288
- Xr as SentryConfig,
6315
+ Zr as SentryConfig,
6289
6316
  Qe as Seo,
6290
- os as SeoDataProvider,
6317
+ cs as SeoDataProvider,
6291
6318
  ur as SourcePrimaryInterest,
6292
6319
  jr as StockCount,
6293
- Nt as TemplatesListFilters,
6320
+ Ot as TemplatesListFilters,
6294
6321
  Ue as TypedInstanceFactory,
6295
6322
  Ve as UnitsHelper,
6296
- Yt as UnknownClientDataProvider,
6323
+ Xt as UnknownClientDataProvider,
6297
6324
  ir as UpdatableNamedIdentity,
6298
- Rt as User,
6299
- ls as UserAuthDataProvider,
6325
+ At as User,
6326
+ ps as UserAuthDataProvider,
6300
6327
  or as UserCommonInfo,
6301
- At as UserDataProvider,
6328
+ Dt as UserDataProvider,
6329
+ Kr as UserPricingRole,
6302
6330
  G as UserShortInfo,
6303
- Pt as UserTypeEnum,
6304
- Zr as VersionConfig,
6331
+ Rt as UserTypeEnum,
6332
+ et as VersionConfig,
6305
6333
  Re as Warehouse,
6306
- et as WebSocketConfig,
6334
+ rt as WebSocketConfig,
6307
6335
  ze as findCatalogItemByIdRecursive,
6308
6336
  We as flattenCatalogItems,
6309
- De as useAuthStateStore,
6310
- ns as useReferencesStore,
6311
- ps as useUserStateStore
6337
+ ae as useAuthStateStore,
6338
+ os as useReferencesStore,
6339
+ us as useUserStateStore
6312
6340
  };
6313
6341
  //# sourceMappingURL=sc-common-lib.js.map