@snabcentr/common-lib 1.71.1 → 1.71.3

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.
@@ -4,6 +4,6 @@
4
4
  "name": "public-api",
5
5
  "src": "src/public-api.ts",
6
6
  "isEntry": true,
7
- "integrity": "sha384-L5m59MV9teKdpCFEj8JdUcpWy0Rasjdm4/0u+Gm406fqkFrr3zNsGyipdcIAl30i"
7
+ "integrity": "sha384-ktmpPFYwLLLqBuweqFK8bSlPxoGrIYd/f4fhP60ypTU40yETsxZ4BK1K4EGDyACn"
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
- ## 1.71.1 (2025-09-09)
1
+ ## 1.71.3 (2025-09-25)
2
2
 
3
- ### added (1 change)
3
+ ### changed (1 change)
4
4
 
5
- - [#12167: Добавлена функция для преобразования иерархической структуры каталога...](web_soft/libs/ts/snabcentr-common-lib@03c32600dbc10874d0069558a6ce48ad30a4a690) ([merge request](web_soft/libs/ts/snabcentr-common-lib!133))
5
+ - [#12172: Изменено название свойства 'editor' на 'configurator' в интерфейсе...](web_soft/libs/ts/snabcentr-common-lib@d15a8c1920837e1934d5250b961d5a478bffa088) ([merge request](web_soft/libs/ts/snabcentr-common-lib!135))
6
6
 
@@ -2,7 +2,7 @@ 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 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";
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";
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";
@@ -190,10 +190,10 @@ const W = class W {
190
190
  * Конфигурация приложения.
191
191
  */
192
192
  t(W, "config");
193
- let D = W;
193
+ let a = 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 = _r(/* @__PURE__ */ new Map());
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());
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
- }), ae = Z("__auth_state", () => {
215
+ }), De = Z("__auth_state", () => {
216
216
  const n = R(() => {
217
217
  const i = ee();
218
218
  if ($(i.jwtToken) && !$(i.jwtTokenUpdater)) {
@@ -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]) => [Dr(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]) => [ar(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: ar(!0) };
418
+ return { id: -2, slug: tr.Retail, name: "Розн. цена", guid: "", isNewRec: Dr(!0) };
419
419
  }
420
420
  }
421
421
  class qe {
@@ -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, 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 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);
647
647
  }
648
648
  /**
649
649
  * Возвращает признак, что это измеряемый товар.
650
650
  */
651
651
  getIsMeasurable() {
652
652
  var s;
653
- const e = (s = D.getConfig().catalog) == null ? void 0 : s.products.units;
653
+ const e = (s = a.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
  /**
@@ -824,7 +824,7 @@ const k = class k {
824
824
  /**
825
825
  * Базовый URL путь для выполнения запросов.
826
826
  */
827
- t(this, "baseUrl", `${D.getConfig().http.portalApiUrl}/api`);
827
+ t(this, "baseUrl", `${a.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 $(ae().jwtToken) || (e = await ae().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
854
+ return $(De().jwtToken) || (e = await De().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) : (ae().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
871
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (De().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 = D.getConfig().version;
880
+ const r = a.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, D.getConfig().dateFormats.uiDate)})`,
883
+ "APP-VERSION": `${r.name} (${r.version}, ${q(r.date, a.getConfig().dateFormats.uiDate)})`,
884
884
  Accept: "application/json",
885
885
  "Content-Type": "application/json"
886
886
  }
@@ -2058,7 +2058,7 @@ class qt extends h {
2058
2058
  */
2059
2059
  // eslint-disable-next-line class-methods-use-this
2060
2060
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2061
- let c = `${D.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2061
+ let c = `${a.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2062
2062
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2063
2063
  }
2064
2064
  }
@@ -2296,7 +2296,7 @@ class Gt extends h {
2296
2296
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2297
2297
  */
2298
2298
  attachTemplate(r, e, s) {
2299
- const i = D.getConfig().dateFormats.api;
2299
+ const i = a.getConfig().dateFormats.api;
2300
2300
  return this.post(
2301
2301
  `/internal/clients/${r}/price/templates/${e}`,
2302
2302
  s && {
@@ -2330,7 +2330,7 @@ class Gt extends h {
2330
2330
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2331
2331
  */
2332
2332
  changeTemplate(r, e, s, i) {
2333
- const o = D.getConfig().dateFormats.api;
2333
+ const o = a.getConfig().dateFormats.api;
2334
2334
  return this.patch(
2335
2335
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2336
2336
  i && {
@@ -2610,7 +2610,7 @@ class Be {
2610
2610
  field: this.field,
2611
2611
  op: this.op
2612
2612
  };
2613
- return r.value = Ie(this.value) ? q(this.value, D.getConfig().dateFormats.api) : this.value, r;
2613
+ return r.value = Ie(this.value) ? q(this.value, a.getConfig().dateFormats.api) : this.value, r;
2614
2614
  }
2615
2615
  }
2616
2616
  class le {
@@ -2648,7 +2648,7 @@ class le {
2648
2648
  };
2649
2649
  }
2650
2650
  }
2651
- class De extends h {
2651
+ class ae extends h {
2652
2652
  /**
2653
2653
  * Получает пагинированный список данных.
2654
2654
  *
@@ -2668,7 +2668,7 @@ class De extends h {
2668
2668
  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
2669
  }
2670
2670
  }
2671
- class Bt extends De {
2671
+ class Bt extends ae {
2672
2672
  /**
2673
2673
  * Возвращает список шаблонов прайс-листа.
2674
2674
  *
@@ -2952,7 +2952,7 @@ class zt extends h {
2952
2952
  );
2953
2953
  }
2954
2954
  }
2955
- class Wt extends De {
2955
+ class Wt extends ae {
2956
2956
  /**
2957
2957
  * Возвращает пагинированный список свойств.
2958
2958
  *
@@ -4117,7 +4117,7 @@ class Kt {
4117
4117
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4118
4118
  }
4119
4119
  }
4120
- class Qt extends De {
4120
+ class Qt extends ae {
4121
4121
  /**
4122
4122
  * Возвращает данные об указанном клиенте.
4123
4123
  *
@@ -4854,7 +4854,7 @@ const E = class E extends h {
4854
4854
  * Время кэширования данных ответов на запросы (секунд).
4855
4855
  */
4856
4856
  t(this, "responseDataCacheTimeout");
4857
- this.responseDataCacheTimeout = D.getConfig().http.responseDataCacheTimeout;
4857
+ this.responseDataCacheTimeout = a.getConfig().http.responseDataCacheTimeout;
4858
4858
  }
4859
4859
  /**
4860
4860
  * Возвращает кэшированные данные.
@@ -4927,7 +4927,7 @@ class Xt extends h {
4927
4927
  */
4928
4928
  getConfiguratorSettings(r) {
4929
4929
  var e;
4930
- return this.get(`internal/catalog/categories/${r.id}/configurators/${(e = r.properties) == null ? void 0 : e.editor}/settings`);
4930
+ return this.get(`internal/catalog/categories/${r.id}/configurators/${(e = r.properties) == null ? void 0 : e.configurator}/settings`);
4931
4931
  }
4932
4932
  /**
4933
4933
  * Возвращает данные о продукте, который соответствует указанной в запросе конфигурации для указанного конфигуратора.
@@ -4943,7 +4943,7 @@ class Xt extends h {
4943
4943
  searchProduct(r, e, s = {}) {
4944
4944
  var o;
4945
4945
  const i = this.get(
4946
- `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
4946
+ `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/product`,
4947
4947
  { params: e },
4948
4948
  (c) => new L(c.data)
4949
4949
  );
@@ -4966,7 +4966,7 @@ class Xt extends h {
4966
4966
  createTemplate(r, e, s = {}) {
4967
4967
  var i;
4968
4968
  return this.post(
4969
- `internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.editor}/template`,
4969
+ `internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/template`,
4970
4970
  { ...e },
4971
4971
  // eslint-disable-next-line lodash/prefer-noop, @typescript-eslint/no-empty-function
4972
4972
  () => {
@@ -4985,7 +4985,7 @@ class Xt extends h {
4985
4985
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
4986
4986
  removeTemplate(r, e) {
4987
4987
  var s;
4988
- return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
4988
+ return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.configurator}/template/${e}`);
4989
4989
  }
4990
4990
  }
4991
4991
  class Zt {
@@ -5259,7 +5259,7 @@ class yt extends yr {
5259
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;
5260
5260
  }
5261
5261
  }
5262
- class rs extends De {
5262
+ class rs extends ae {
5263
5263
  /**
5264
5264
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5265
5265
  *
@@ -5471,7 +5471,7 @@ class ss extends h {
5471
5471
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
5472
5472
  */
5473
5473
  constructor() {
5474
- super(), this.baseUrl = `${D.getConfig().http.priceHistoryApiUrl ?? ""}/api`;
5474
+ super(), this.baseUrl = `${a.getConfig().http.priceHistoryApiUrl ?? ""}/api`;
5475
5475
  }
5476
5476
  /**
5477
5477
  * Возвращает данные об истории изменения цен.
@@ -5482,7 +5482,7 @@ class ss extends h {
5482
5482
  */
5483
5483
  getProductPriceHistory(r) {
5484
5484
  var i, o, c, p;
5485
- const e = D.getConfig().dateFormats.api, s = Xe(
5485
+ const e = a.getConfig().dateFormats.api, s = Xe(
5486
5486
  xe(r, {
5487
5487
  costDate: {
5488
5488
  from: Ie((i = r.costDate) == null ? void 0 : i.from) ? q(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
@@ -5517,7 +5517,7 @@ class is extends h {
5517
5517
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
5518
5518
  */
5519
5519
  constructor() {
5520
- super(), this.baseUrl = `${D.getConfig().http.recommendationsApiUrl ?? ""}/api`;
5520
+ super(), this.baseUrl = `${a.getConfig().http.recommendationsApiUrl ?? ""}/api`;
5521
5521
  }
5522
5522
  /**
5523
5523
  * Возвращает данные о рекомендациях указанной категории продуктов.
@@ -5564,7 +5564,7 @@ class is extends h {
5564
5564
  });
5565
5565
  }
5566
5566
  }
5567
- class a extends pe {
5567
+ class D extends pe {
5568
5568
  /**
5569
5569
  * Возвращает {@link Promise} для получения данных указанного справочника.
5570
5570
  *
@@ -5777,67 +5777,67 @@ const A = Z("__references_private", () => {
5777
5777
  }), ns = Z("references", () => {
5778
5778
  const n = R(() => {
5779
5779
  const l = A();
5780
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(a).getChannelPrimaryInterest().then((g) => {
5780
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(D).getChannelPrimaryInterest().then((g) => {
5781
5781
  l.channelPrimaryInterestReference = g;
5782
5782
  }).catch(w)), l.channelPrimaryInterestReference;
5783
5783
  }), r = R(() => {
5784
5784
  const l = A();
5785
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(a).getContactPositions().then((g) => {
5785
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(D).getContactPositions().then((g) => {
5786
5786
  l.contactPositionsReference = g;
5787
5787
  }).catch(w)), l.contactPositionsReference;
5788
5788
  }), e = R(() => {
5789
5789
  const l = A();
5790
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(a).getCurrency().then((g) => {
5790
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(D).getCurrency().then((g) => {
5791
5791
  l.currencyReference = g;
5792
5792
  }).catch(w)), l.currencyReference;
5793
5793
  }), s = R(() => {
5794
5794
  const l = A();
5795
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(a).getOpf().then((g) => {
5795
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(D).getOpf().then((g) => {
5796
5796
  l.opfReference = g;
5797
5797
  }).catch(w)), l.opfReference;
5798
5798
  }), i = R(() => {
5799
5799
  const l = A();
5800
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(a).getOrderPaymentStatuses().then((g) => {
5800
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(D).getOrderPaymentStatuses().then((g) => {
5801
5801
  l.orderPaymentStatusReference = g;
5802
5802
  }).catch(w)), l.orderPaymentStatusReference;
5803
5803
  }), o = R(() => {
5804
5804
  const l = A();
5805
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(a).getOrderStatuses().then((g) => {
5805
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(D).getOrderStatuses().then((g) => {
5806
5806
  l.orderStatusReference = g;
5807
5807
  }).catch(w)), l.orderStatusReference;
5808
5808
  }), c = R(() => {
5809
5809
  const l = A();
5810
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(a).getPaymentTypes().then((g) => {
5810
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(D).getPaymentTypes().then((g) => {
5811
5811
  l.paymentTypeReference = g;
5812
5812
  }).catch(w)), l.paymentTypeReference;
5813
5813
  }), p = R(() => {
5814
5814
  const l = A();
5815
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(a).getPartnerGroup().then((g) => {
5815
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(D).getPartnerGroup().then((g) => {
5816
5816
  l.partnerGroupReference = g;
5817
5817
  }).catch(w)), l.partnerGroupReference;
5818
5818
  }), u = R(() => {
5819
5819
  const l = A();
5820
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(a).getProductFileType().then((g) => {
5820
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(D).getProductFileType().then((g) => {
5821
5821
  l.productFileTypeReference = g;
5822
5822
  }).catch(w)), l.productFileTypeReference;
5823
5823
  }), m = R(() => {
5824
5824
  const l = A();
5825
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(a).getResourceTypes().then((g) => {
5825
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(D).getResourceTypes().then((g) => {
5826
5826
  l.resourceTypesReference = g;
5827
5827
  }).catch(w)), l.resourceTypesReference;
5828
5828
  }), v = R(() => {
5829
5829
  const l = A();
5830
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(a).getSalesDirections().then((g) => {
5830
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(D).getSalesDirections().then((g) => {
5831
5831
  l.salesDirectionsReference = g;
5832
5832
  }).catch(w)), l.salesDirectionsReference;
5833
5833
  }), S = R(() => {
5834
5834
  const l = A();
5835
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(a).getSourcePrimaryInterest().then((g) => {
5835
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(D).getSourcePrimaryInterest().then((g) => {
5836
5836
  l.sourcePrimaryInterestReference = g;
5837
5837
  }).catch(w)), l.sourcePrimaryInterestReference;
5838
5838
  }), I = R(() => {
5839
5839
  const l = A();
5840
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(a).getDeliveryTypes().then((g) => {
5840
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(D).getDeliveryTypes().then((g) => {
5841
5841
  l.deliveryTypeReference = g;
5842
5842
  }).catch(w)), l.deliveryTypeReference;
5843
5843
  }), b = R(() => {
@@ -5847,17 +5847,17 @@ const A = Z("__references_private", () => {
5847
5847
  }).catch(w)), l.managersList;
5848
5848
  }), _ = R(() => {
5849
5849
  const l = A();
5850
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(a).getWarehouses().then((g) => {
5850
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(D).getWarehouses().then((g) => {
5851
5851
  l.warehousesReference = g;
5852
5852
  }).catch(w)), l.warehousesReference;
5853
5853
  }), N = R(() => {
5854
5854
  const l = A();
5855
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(a).getPropertyTypes().then((g) => {
5855
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(D).getPropertyTypes().then((g) => {
5856
5856
  l.propertyTypesReference = g;
5857
5857
  }).catch(w)), l.propertyTypesReference;
5858
5858
  }), U = R(() => {
5859
5859
  const l = A();
5860
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(a).getPriceCoefficients().then((g) => {
5860
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(D).getPriceCoefficients().then((g) => {
5861
5861
  l.priceCoefficientsReference = g;
5862
5862
  }).catch(w)), l.priceCoefficientsReference;
5863
5863
  });
@@ -6096,7 +6096,7 @@ class ls extends h {
6096
6096
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6097
6097
  */
6098
6098
  constructor() {
6099
- super(), this.baseUrl = `${D.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6099
+ super(), this.baseUrl = `${a.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6100
6100
  }
6101
6101
  /**
6102
6102
  * Функция для получения обновленных токенов доступа.
@@ -6116,7 +6116,7 @@ class At extends h {
6116
6116
  return this.get("/internal/users/info", {}, (r) => new Rt(r.data));
6117
6117
  }
6118
6118
  }
6119
- const Dt = Z("__user_state_private", () => {
6119
+ const at = Z("__user_state_private", () => {
6120
6120
  const n = f({}), r = f(void 0);
6121
6121
  return {
6122
6122
  /**
@@ -6133,7 +6133,7 @@ const Dt = Z("__user_state_private", () => {
6133
6133
  * Данные о текущем пользователе.
6134
6134
  */
6135
6135
  currentUser: R(() => {
6136
- const r = Dt();
6136
+ const r = at();
6137
6137
  return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(At).getCurrentUser().then((e) => {
6138
6138
  r.currentUser = e;
6139
6139
  }).catch(w).finally(() => {
@@ -6167,9 +6167,9 @@ class us {
6167
6167
  export {
6168
6168
  tt as AnyReference,
6169
6169
  Ot as AppBaseConfig,
6170
- D as AppConfigProvider,
6170
+ a as AppConfigProvider,
6171
6171
  ke as BankAccount,
6172
- De as BasePaginationProvider,
6172
+ ae as BasePaginationProvider,
6173
6173
  zr as CalculationTypeEnum,
6174
6174
  me as Cart,
6175
6175
  Br as CartItem,
@@ -6281,7 +6281,7 @@ export {
6281
6281
  is as RecommendationsDataProvider,
6282
6282
  Ke as RecommendationsList,
6283
6283
  P as Reference,
6284
- a as ReferenceDataProvider,
6284
+ D as ReferenceDataProvider,
6285
6285
  ce as Region,
6286
6286
  pr as ResourceType,
6287
6287
  x as SalesDirection,
@@ -6306,7 +6306,7 @@ export {
6306
6306
  et as WebSocketConfig,
6307
6307
  ze as findCatalogItemByIdRecursive,
6308
6308
  We as flattenCatalogItems,
6309
- ae as useAuthStateStore,
6309
+ De as useAuthStateStore,
6310
6310
  ns as useReferencesStore,
6311
6311
  ps as useUserStateStore
6312
6312
  };