@snabcentr/common-lib 1.71.6 → 1.72.0

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 me, isUndefined as vr, isNil as $, noop as C, mapValues as Pr, isArray as J, every as Rr, split as ar, toUpper as Ar, constant as Dr, isString as w, cloneDeep as $r, toLower as Tr, isFunction as Ne, map as ve, forEach as br, isDate as de, isEmpty as Pe, 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
- 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 Lr, startOfTomorrow as kr, endOfYesterday as xr, startOfYesterday as Nr, endOfToday as Or, endOfDay as qr, startOfDay as Ur } from "date-fns";
8
+ import { ref as y, markRaw as _r, computed as R } from "vue";
9
+ import { parseISO as v, format as q, isAfter as Sr, startOfToday as er, addSeconds as Ir, addBusinessDays as dr, endOfTomorrow as Lr, startOfTomorrow as kr, 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
  /**
@@ -99,7 +99,7 @@ class ie {
99
99
  * @inheritDoc
100
100
  */
101
101
  t(this, "email", "");
102
- xe(this, r);
102
+ me(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -143,7 +143,7 @@ class kt extends ie {
143
143
  * @inheritDoc
144
144
  */
145
145
  t(this, "address");
146
- xe(this, e);
146
+ me(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -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 = y(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = y(void 0), e = y(void 0), s = _r(/* @__PURE__ */ new Map());
197
197
  return {
198
198
  /**
199
199
  * {@link Promise<string>} для получения jwt-ключа доступа к системам.
@@ -212,14 +212,14 @@ const ee = Z("__auth_state_private", () => {
212
212
  */
213
213
  userPermissionsComputedRefs: s
214
214
  };
215
- }), De = Z("__auth_state", () => {
215
+ }), $e = Z("__auth_state", () => {
216
216
  const n = R(() => {
217
217
  const i = ee();
218
218
  if ($(i.jwtToken) && !$(i.jwtTokenUpdater)) {
219
219
  const o = i.jwtTokenUpdater();
220
220
  i.jwtToken = o, o.then((c) => {
221
221
  i.jwtToken = Promise.resolve(c);
222
- }).catch(w);
222
+ }).catch(C);
223
223
  }
224
224
  return i.jwtToken;
225
225
  });
@@ -232,22 +232,22 @@ const ee = Z("__auth_state_private", () => {
232
232
  function s(i) {
233
233
  const o = ee();
234
234
  !$(o.jwtToken) && $(o.userPermissions) && o.jwtToken.then((u) => {
235
- const m = ie.getJwtPayload(u);
236
- o.userPermissions = m.exp * 1e3 > Date.now() ? Pr(m.resourceAccess, (v) => (v == null ? void 0 : v.roles) ?? []) : void 0;
237
- }).catch(w);
235
+ const f = ie.getJwtPayload(u);
236
+ o.userPermissions = f.exp * 1e3 > Date.now() ? Pr(f.resourceAccess, (m) => (m == null ? void 0 : m.roles) ?? []) : void 0;
237
+ }).catch(C);
238
238
  const c = J(i) ? i.join(" && ") : i;
239
239
  if (o.userPermissionsComputedRefs.has(c))
240
240
  return o.userPermissionsComputedRefs.get(c);
241
241
  const p = R(() => {
242
- const u = (m) => {
242
+ const u = (f) => {
243
243
  var _;
244
- const v = Ar(m, ".");
245
- if (v.length < 2)
244
+ const m = ar(f, ".");
245
+ if (m.length < 2)
246
246
  return !1;
247
- const [S, I] = v, b = (_ = ee().userPermissions) == null ? void 0 : _[S];
247
+ const [S, I] = m, b = (_ = ee().userPermissions) == null ? void 0 : _[S];
248
248
  return J(b) && b.includes(I);
249
249
  };
250
- return J(i) ? Rr(i, (m) => u(m)) : u(i);
250
+ return J(i) ? Rr(i, (f) => u(f)) : u(i);
251
251
  });
252
252
  return o.userPermissionsComputedRefs.set(c, p), p;
253
253
  }
@@ -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 ue 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]) => [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 || {});
@@ -410,7 +410,7 @@ class P extends T {
410
410
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
411
411
  }
412
412
  }
413
- class Pe extends P {
413
+ class Re extends P {
414
414
  /**
415
415
  * Возвращает значение справочника коэффициента розничной цены.
416
416
  */
@@ -445,7 +445,7 @@ class qe {
445
445
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
446
446
  */
447
447
  t(this, "readOnly");
448
- this.coefficient = new Pe(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
448
+ this.coefficient = new Re(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
449
449
  }
450
450
  }
451
451
  class sr {
@@ -468,7 +468,7 @@ class sr {
468
468
  }
469
469
  class K extends P {
470
470
  }
471
- class Re extends P {
471
+ class ae extends P {
472
472
  /**
473
473
  * Инициализирует экземпляр класса {@link Warehouse}.
474
474
  *
@@ -515,7 +515,7 @@ class Fr {
515
515
  * Количество остатков товара на складе.
516
516
  */
517
517
  t(this, "count");
518
- this.warehouse = new Re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
518
+ this.warehouse = new ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
519
519
  }
520
520
  }
521
521
  class jr extends rr {
@@ -641,16 +641,16 @@ class k extends jr {
641
641
  * Список коэффициентов цен на продукт.
642
642
  */
643
643
  t(this, "priceCoefficients");
644
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = y(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((u) => new Fr(u))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
644
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = w(e == null ? void 0 : e.costDate) ? v(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 Fr(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 k(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && $r(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
721
+ this.product = new k(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ue(), 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 {
@@ -771,7 +771,7 @@ class Br extends Hr {
771
771
  this.currency = e.currency, this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
772
772
  }
773
773
  }
774
- class me {
774
+ class ge {
775
775
  /**
776
776
  * Инициализирует экземпляр класса {@link Cart}.
777
777
  *
@@ -824,7 +824,7 @@ const L = class L {
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
  *
@@ -832,7 +832,7 @@ const L = class L {
832
832
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
833
833
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
834
834
  */
835
- t(this, "errorResponseHandler", w);
835
+ t(this, "errorResponseHandler", C);
836
836
  /**
837
837
  * Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
838
838
  */
@@ -851,7 +851,7 @@ const L = class L {
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 $($e().jwtToken) || (e = await $e().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
855
855
  });
856
856
  /**
857
857
  * Перехватчик запроса для преобразования данных запроса.
@@ -868,7 +868,7 @@ const L = class L {
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) : ($e().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
872
872
  });
873
873
  /**
874
874
  * Перехватчик ответа для преобразования данных ответа на запрос.
@@ -877,10 +877,10 @@ const L = class L {
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 = L.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
  }
@@ -1014,7 +1014,7 @@ t(L, "instances", {}), /**
1014
1014
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1015
1015
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1016
1016
  */
1017
- t(L, "defaultErrorsResponseHandler", w);
1017
+ t(L, "defaultErrorsResponseHandler", C);
1018
1018
  let h = L;
1019
1019
  class xt extends h {
1020
1020
  /**
@@ -1025,7 +1025,7 @@ class xt extends h {
1025
1025
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
1026
1026
  */
1027
1027
  getCart(r) {
1028
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new me(e.data));
1028
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ge(e.data));
1029
1029
  }
1030
1030
  /**
1031
1031
  * Удаляет всё содержимое корзины.
@@ -1063,7 +1063,7 @@ class xt extends h {
1063
1063
  isAdditionalSale: e.isAdditionalSale,
1064
1064
  ...e.configuratorParams
1065
1065
  },
1066
- (i) => new me(i.data),
1066
+ (i) => new ge(i.data),
1067
1067
  s
1068
1068
  );
1069
1069
  }
@@ -1093,7 +1093,7 @@ class xt extends h {
1093
1093
  isAdditionalSale: e.isAdditionalSale,
1094
1094
  ...e.configuratorParams
1095
1095
  },
1096
- (i) => new me(i.data),
1096
+ (i) => new ge(i.data),
1097
1097
  s
1098
1098
  );
1099
1099
  }
@@ -1117,7 +1117,7 @@ class xt extends h {
1117
1117
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1118
1118
  */
1119
1119
  addCartItemFromCSV(r, e) {
1120
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new me(s.data));
1120
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new ge(s.data));
1121
1121
  }
1122
1122
  /**
1123
1123
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -1131,7 +1131,7 @@ class xt extends h {
1131
1131
  }
1132
1132
  }
1133
1133
  var zr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(zr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Wr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Wr || {});
1134
- class B extends he {
1134
+ class B extends ue {
1135
1135
  /**
1136
1136
  * Инициализирует экземпляр класса {@link Category}.
1137
1137
  *
@@ -1163,7 +1163,7 @@ class ir extends T {
1163
1163
  * Дата и время последнего изменения.
1164
1164
  */
1165
1165
  t(this, "updatedAt");
1166
- this.updatedAt = y(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1166
+ this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1167
1167
  }
1168
1168
  }
1169
1169
  class Er extends ir {
@@ -1178,7 +1178,7 @@ class Er extends ir {
1178
1178
  * Дата и время последнего удаления.
1179
1179
  */
1180
1180
  t(this, "deletedAt");
1181
- this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1181
+ this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1182
1182
  }
1183
1183
  }
1184
1184
  class Nt {
@@ -1192,7 +1192,7 @@ class Nt {
1192
1192
  if (e)
1193
1193
  try {
1194
1194
  const s = JSON.parse(e);
1195
- if (Sr(C(s.availableFor) || er(), /* @__PURE__ */ new Date()))
1195
+ if (Sr(v(s.availableFor) || er(), /* @__PURE__ */ new Date()))
1196
1196
  return s.data ?? {};
1197
1197
  } catch {
1198
1198
  localStorage.removeItem(r);
@@ -1266,7 +1266,7 @@ class Vr extends T {
1266
1266
  * Дата и время удаления.
1267
1267
  */
1268
1268
  t(this, "deletedAt");
1269
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = y(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new G(e == null ? void 0 : e.owner), this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1269
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = w(e == null ? void 0 : e.publishedAt) ? v(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new G(e == null ? void 0 : e.owner), this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1270
1270
  }
1271
1271
  }
1272
1272
  class z extends ir {
@@ -1285,7 +1285,7 @@ class z extends ir {
1285
1285
  * Дата и время создания шаблона.
1286
1286
  */
1287
1287
  t(this, "createdAt");
1288
- 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();
1288
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
1289
1289
  }
1290
1290
  }
1291
1291
  class Q extends k {
@@ -1432,7 +1432,7 @@ class Ae extends oe {
1432
1432
  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;
1433
1433
  }
1434
1434
  }
1435
- class Qr extends he {
1435
+ class Qr extends ue {
1436
1436
  /**
1437
1437
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1438
1438
  *
@@ -1498,10 +1498,10 @@ class nr {
1498
1498
  * Процент, который прибавляется к значению выбранного коэффициента.
1499
1499
  */
1500
1500
  t(this, "increasePercent");
1501
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1501
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1502
1502
  }
1503
1503
  }
1504
- class $e extends nr {
1504
+ class Te extends nr {
1505
1505
  /**
1506
1506
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1507
1507
  *
@@ -1513,7 +1513,7 @@ class $e extends nr {
1513
1513
  * Базовые данные о продукте.
1514
1514
  */
1515
1515
  t(this, "productCategory");
1516
- this.productCategory = new he(e == null ? void 0 : e.productCategory);
1516
+ this.productCategory = new ue(e == null ? void 0 : e.productCategory);
1517
1517
  }
1518
1518
  }
1519
1519
  class Y extends P {
@@ -1584,10 +1584,10 @@ class or extends T {
1584
1584
  * Признак активности учетной записи пользователя.
1585
1585
  */
1586
1586
  t(this, "isActive");
1587
- this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : void 0, this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = y(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1587
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : void 0, this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = w(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1588
1588
  }
1589
1589
  }
1590
- class ge extends or {
1590
+ class he extends or {
1591
1591
  /**
1592
1592
  * Инициализирует экземпляр класса {@link Client}.
1593
1593
  *
@@ -1656,10 +1656,10 @@ class re extends M {
1656
1656
  * Данные шаблона прайс-листа.
1657
1657
  */
1658
1658
  t(this, "priceTemplate");
1659
- this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new z(e == null ? void 0 : e.priceTemplate);
1659
+ this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new he(e == null ? void 0 : e.client), this.priceTemplate = new z(e == null ? void 0 : e.priceTemplate);
1660
1660
  }
1661
1661
  }
1662
- class Te extends nr {
1662
+ class be extends nr {
1663
1663
  /**
1664
1664
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1665
1665
  *
@@ -1733,7 +1733,7 @@ class O {
1733
1733
  * Окончание периода.
1734
1734
  */
1735
1735
  t(this, "to");
1736
- 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;
1736
+ this.from = w(r == null ? void 0 : r.from) ? v(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = w(r == null ? void 0 : r.to) ? v(r.to) : (r == null ? void 0 : r.to) ?? null;
1737
1737
  }
1738
1738
  }
1739
1739
  class Ot {
@@ -1796,7 +1796,7 @@ class Ot {
1796
1796
  return Object.keys(this).forEach((c) => {
1797
1797
  const p = this[c];
1798
1798
  // eslint-disable-next-line prettier/prettier
1799
- $(p) || y(p) && p.trim().length === 0 || Ne(p.isNewRec) && p.isNewRec() || (r[c] = p);
1799
+ $(p) || w(p) && p.trim().length === 0 || Ne(p.isNewRec) && p.isNewRec() || (r[c] = p);
1800
1800
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
1801
1801
  }
1802
1802
  }
@@ -1854,7 +1854,7 @@ class He {
1854
1854
  * Минимальный коэффициент цены.
1855
1855
  */
1856
1856
  t(this, "minCoefficient");
1857
- 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);
1857
+ this.role = new se(r == null ? void 0 : r.role), this.category = new ue(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
1858
1858
  }
1859
1859
  }
1860
1860
  class Yr {
@@ -1890,14 +1890,6 @@ class Xr {
1890
1890
  * @inheritDoc
1891
1891
  */
1892
1892
  t(this, "portalApiUrl");
1893
- /**
1894
- * @inheritDoc
1895
- */
1896
- t(this, "priceHistoryApiUrl");
1897
- /**
1898
- * @inheritDoc
1899
- */
1900
- t(this, "recommendationsApiUrl");
1901
1893
  /**
1902
1894
  * @inheritDoc
1903
1895
  */
@@ -1906,7 +1898,7 @@ class Xr {
1906
1898
  * @inheritDoc
1907
1899
  */
1908
1900
  t(this, "responseDataCacheTimeout");
1909
- 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;
1901
+ this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
1910
1902
  }
1911
1903
  }
1912
1904
  class Zr {
@@ -1973,7 +1965,7 @@ class et {
1973
1965
  * Текущая версия приложения.
1974
1966
  */
1975
1967
  t(this, "version");
1976
- 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";
1968
+ this.date = w(r == null ? void 0 : r.date) ? v(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";
1977
1969
  }
1978
1970
  }
1979
1971
  class rt {
@@ -2096,7 +2088,7 @@ class Ut extends h {
2096
2088
  */
2097
2089
  // eslint-disable-next-line class-methods-use-this
2098
2090
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2099
- let c = `${a.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2091
+ let c = `${D.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2100
2092
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2101
2093
  }
2102
2094
  }
@@ -2334,7 +2326,7 @@ class Ft extends h {
2334
2326
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2335
2327
  */
2336
2328
  attachTemplate(r, e, s) {
2337
- const i = a.getConfig().dateFormats.api;
2329
+ const i = D.getConfig().dateFormats.api;
2338
2330
  return this.post(
2339
2331
  `/internal/clients/${r}/price/templates/${e}`,
2340
2332
  s && {
@@ -2368,7 +2360,7 @@ class Ft extends h {
2368
2360
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2369
2361
  */
2370
2362
  changeTemplate(r, e, s, i) {
2371
- const o = a.getConfig().dateFormats.api;
2363
+ const o = D.getConfig().dateFormats.api;
2372
2364
  return this.patch(
2373
2365
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2374
2366
  i && {
@@ -2451,7 +2443,7 @@ class jt extends h {
2451
2443
  showHidden: s,
2452
2444
  withPriceCoefficients: e
2453
2445
  },
2454
- (i) => ue(i.data, (o) => new k(o))
2446
+ (i) => ve(i.data, (o) => new k(o))
2455
2447
  );
2456
2448
  }
2457
2449
  /**
@@ -2514,7 +2506,7 @@ class Mt extends h {
2514
2506
  return this.get(
2515
2507
  `/internal/catalog/products/${r}/coefficients`,
2516
2508
  {},
2517
- (e) => ue(e.data, (s) => new qe(s))
2509
+ (e) => ve(e.data, (s) => new qe(s))
2518
2510
  );
2519
2511
  }
2520
2512
  /**
@@ -2591,7 +2583,7 @@ class Ht extends h {
2591
2583
  showHidden: i,
2592
2584
  withPriceCoefficients: s
2593
2585
  },
2594
- (o) => ue(o.data, (c) => new Q(c))
2586
+ (o) => ve(o.data, (c) => new Q(c))
2595
2587
  );
2596
2588
  }
2597
2589
  }
@@ -2648,7 +2640,7 @@ class Be {
2648
2640
  field: this.field,
2649
2641
  op: this.op
2650
2642
  };
2651
- return r.value = Ie(this.value) ? q(this.value, a.getConfig().dateFormats.api) : this.value, r;
2643
+ return r.value = de(this.value) ? q(this.value, D.getConfig().dateFormats.api) : this.value, r;
2652
2644
  }
2653
2645
  }
2654
2646
  class le {
@@ -2686,7 +2678,7 @@ class le {
2686
2678
  };
2687
2679
  }
2688
2680
  }
2689
- class ae extends h {
2681
+ class De extends h {
2690
2682
  /**
2691
2683
  * Получает пагинированный список данных.
2692
2684
  *
@@ -2703,10 +2695,10 @@ class ae extends h {
2703
2695
  page: (i == null ? void 0 : i.page) ?? 1,
2704
2696
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2705
2697
  };
2706
- 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);
2698
+ return e && (u.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), Pe(s) || (u.sort = J(s) ? s : [s]), o && (u = { ...u, ...o }), this.get(r, u, c, p);
2707
2699
  }
2708
2700
  }
2709
- class zt extends ae {
2701
+ class zt extends De {
2710
2702
  /**
2711
2703
  * Возвращает список шаблонов прайс-листа.
2712
2704
  *
@@ -2778,7 +2770,7 @@ class zt extends ae {
2778
2770
  return this.get(
2779
2771
  `/internal/price/templates/${r}/products`,
2780
2772
  {},
2781
- (e) => e.data.map((s) => new Te(s))
2773
+ (e) => e.data.map((s) => new be(s))
2782
2774
  );
2783
2775
  }
2784
2776
  /**
@@ -2790,7 +2782,7 @@ class zt extends ae {
2790
2782
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
2791
2783
  */
2792
2784
  getProductTemplatePrice(r, e) {
2793
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Te(s.data));
2785
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new be(s.data));
2794
2786
  }
2795
2787
  /**
2796
2788
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -2809,7 +2801,7 @@ class zt extends ae {
2809
2801
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2810
2802
  increase_percent: s.value
2811
2803
  },
2812
- (o) => new Te(o.data)
2804
+ (o) => new be(o.data)
2813
2805
  );
2814
2806
  }
2815
2807
  /**
@@ -2834,7 +2826,7 @@ class zt extends ae {
2834
2826
  return this.get(
2835
2827
  `/internal/price/templates/${r}/categories`,
2836
2828
  {},
2837
- (e) => e.data.map((s) => new $e(s))
2829
+ (e) => e.data.map((s) => new Te(s))
2838
2830
  );
2839
2831
  }
2840
2832
  /**
@@ -2849,7 +2841,7 @@ class zt extends ae {
2849
2841
  return this.get(
2850
2842
  `/internal/price/templates/${r}/categories/${e}`,
2851
2843
  {},
2852
- (s) => new $e(s.data)
2844
+ (s) => new Te(s.data)
2853
2845
  );
2854
2846
  }
2855
2847
  /**
@@ -2875,7 +2867,7 @@ class zt extends ae {
2875
2867
  },
2876
2868
  params: i ? { recursively: !0 } : {}
2877
2869
  },
2878
- (c) => new $e(c.data)
2870
+ (c) => new Te(c.data)
2879
2871
  );
2880
2872
  }
2881
2873
  /**
@@ -2990,7 +2982,7 @@ class Wt extends h {
2990
2982
  );
2991
2983
  }
2992
2984
  }
2993
- class Et extends ae {
2985
+ class Et extends De {
2994
2986
  /**
2995
2987
  * Возвращает пагинированный список свойств.
2996
2988
  *
@@ -3447,7 +3439,7 @@ class pr extends P {
3447
3439
  }
3448
3440
  class ur extends P {
3449
3441
  }
3450
- class Le extends M {
3442
+ class ke extends M {
3451
3443
  /**
3452
3444
  * Инициализирует экземпляр класса {@link BankAccount}.
3453
3445
  *
@@ -3478,7 +3470,7 @@ class Le extends M {
3478
3470
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ye(e.currency));
3479
3471
  }
3480
3472
  }
3481
- class ke extends T {
3473
+ class xe extends T {
3482
3474
  /**
3483
3475
  * Инициализирует экземпляр класса {@link Contact}.
3484
3476
  *
@@ -3497,7 +3489,7 @@ class ke extends T {
3497
3489
  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;
3498
3490
  }
3499
3491
  }
3500
- class j extends ke {
3492
+ class j extends xe {
3501
3493
  /**
3502
3494
  * Инициализирует экземпляр класса {@link ContactPerson}.
3503
3495
  *
@@ -3529,7 +3521,7 @@ class j extends ke {
3529
3521
  * Дата и время последнего удаления.
3530
3522
  */
3531
3523
  t(this, "deletedAt");
3532
- this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3524
+ this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3533
3525
  }
3534
3526
  }
3535
3527
  class hr extends T {
@@ -3590,7 +3582,7 @@ class hr extends T {
3590
3582
  */
3591
3583
  t(this, "updater");
3592
3584
  if (e) {
3593
- if (this.opf = new F(e.opf), this.salesDirection = new x(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new G(e.creator) : void 0, this.updatedAt = y(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new X(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
3585
+ if (this.opf = new F(e.opf), this.salesDirection = new x(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e.createdAt, this.creator = e.creator ? new G(e.creator) : void 0, this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new X(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
3594
3586
  const s = [];
3595
3587
  e.contacts.forEach((i) => {
3596
3588
  s.push(new j(i));
@@ -3599,7 +3591,7 @@ class hr extends T {
3599
3591
  if (e.bankAccounts) {
3600
3592
  const s = [];
3601
3593
  e.bankAccounts.forEach((i) => {
3602
- s.push(new Le(i));
3594
+ s.push(new ke(i));
3603
3595
  }), this.bankAccounts = s;
3604
3596
  }
3605
3597
  }
@@ -3715,7 +3707,7 @@ class we {
3715
3707
  }
3716
3708
  }
3717
3709
  }
3718
- class be extends M {
3710
+ class _e extends M {
3719
3711
  /**
3720
3712
  * Инициализирует экземпляр класса {@link ContactRelation}.
3721
3713
  *
@@ -3755,7 +3747,7 @@ class ht extends j {
3755
3747
  */
3756
3748
  addresses: []
3757
3749
  });
3758
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new be(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new be(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new be(s))));
3750
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new _e(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new _e(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new _e(s))));
3759
3751
  }
3760
3752
  }
3761
3753
  class Ce extends Er {
@@ -3798,7 +3790,7 @@ class Ce extends Er {
3798
3790
  this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new sr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new j(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
3799
3791
  }
3800
3792
  }
3801
- class Ee extends ge {
3793
+ class Ee extends he {
3802
3794
  /**
3803
3795
  * Инициализирует экземпляр класса {@link Client}.
3804
3796
  *
@@ -3852,7 +3844,7 @@ class Ee extends ge {
3852
3844
  * Дополнительные данные о клиенте.
3853
3845
  */
3854
3846
  t(this, "extraData");
3855
- 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 j(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) ?? {};
3847
+ 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 j(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 ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3856
3848
  }
3857
3849
  }
3858
3850
  class Jt {
@@ -3951,7 +3943,7 @@ class Jt {
3951
3943
  */
3952
3944
  t(this, "lastOrder");
3953
3945
  var e, s, i, o, c, p;
3954
- 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 Fe(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 F(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 ke(r == null ? void 0 : r.contact), this.lastOrder = {
3946
+ 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 Fe(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 F(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 xe(r == null ? void 0 : r.contact), this.lastOrder = {
3955
3947
  createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
3956
3948
  creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
3957
3949
  isApproved: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.isApproved
@@ -4010,7 +4002,7 @@ class Jt {
4010
4002
  this.partnerGroups = [];
4011
4003
  break;
4012
4004
  case "contact":
4013
- this.contact = new ke();
4005
+ this.contact = new xe();
4014
4006
  break;
4015
4007
  }
4016
4008
  return this;
@@ -4025,7 +4017,7 @@ class Jt {
4025
4017
  return Object.keys(this).forEach((c) => {
4026
4018
  const p = this[c];
4027
4019
  // eslint-disable-next-line prettier/prettier
4028
- $(p) || y(p) && p.trim().length === 0 || Ne(p.isNewRec) && p.isNewRec() || (r[c] = p);
4020
+ $(p) || w(p) && p.trim().length === 0 || Ne(p.isNewRec) && p.isNewRec() || (r[c] = p);
4029
4021
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
4030
4022
  }
4031
4023
  }
@@ -4049,7 +4041,7 @@ class fr extends M {
4049
4041
  * Признак того, что заказ подтвержден в 1С.
4050
4042
  */
4051
4043
  t(this, "isApproved1c");
4052
- 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;
4044
+ this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(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;
4053
4045
  }
4054
4046
  }
4055
4047
  class gt extends T {
@@ -4155,7 +4147,7 @@ class Qt {
4155
4147
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4156
4148
  }
4157
4149
  }
4158
- class Yt extends ae {
4150
+ class Yt extends De {
4159
4151
  /**
4160
4152
  * Возвращает данные об указанном клиенте.
4161
4153
  *
@@ -4178,7 +4170,7 @@ class Yt extends ae {
4178
4170
  getClientsList(r, e, s, i) {
4179
4171
  return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
4180
4172
  const c = { ...o.data };
4181
- return c.data = c.data.map((p) => new ge(p)), c;
4173
+ return c.data = c.data.map((p) => new he(p)), c;
4182
4174
  });
4183
4175
  }
4184
4176
  /**
@@ -4357,7 +4349,7 @@ class Yt extends ae {
4357
4349
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
4358
4350
  */
4359
4351
  createContragentClientData(r, e, s = {}) {
4360
- var u, m, v, S, I, b, _, N;
4352
+ var u, f, m, S, I, b, _, N;
4361
4353
  let i;
4362
4354
  const o = e, c = e, p = e;
4363
4355
  switch (e.opf.slug) {
@@ -4367,7 +4359,7 @@ class Yt extends ae {
4367
4359
  name: o.name,
4368
4360
  alternative_name: o.alternativeName,
4369
4361
  partner_group_id: (u = o.partnerGroup) == null ? void 0 : u.id,
4370
- manager_id: (m = o.manager) == null ? void 0 : m.id,
4362
+ manager_id: (f = o.manager) == null ? void 0 : f.id,
4371
4363
  comment: o.comment,
4372
4364
  inn: o.inn,
4373
4365
  okpo: o.okpo,
@@ -4384,7 +4376,7 @@ class Yt extends ae {
4384
4376
  opf: c.opf.slug,
4385
4377
  name: c.name,
4386
4378
  alternative_name: c.alternativeName,
4387
- partner_group_id: (v = c.partnerGroup) == null ? void 0 : v.id,
4379
+ partner_group_id: (m = c.partnerGroup) == null ? void 0 : m.id,
4388
4380
  manager_id: (S = c.manager) == null ? void 0 : S.id,
4389
4381
  comment: c.comment,
4390
4382
  inn: c.inn,
@@ -4446,7 +4438,7 @@ class Yt extends ae {
4446
4438
  * @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
4447
4439
  */
4448
4440
  updateContragentClientData(r, e, s = {}) {
4449
- var u, m, v, S, I, b, _, N;
4441
+ var u, f, m, S, I, b, _, N;
4450
4442
  let i;
4451
4443
  const o = e, c = e, p = e;
4452
4444
  switch (e.opf.slug) {
@@ -4456,7 +4448,7 @@ class Yt extends ae {
4456
4448
  name: o.name,
4457
4449
  alternative_name: o.alternativeName,
4458
4450
  partner_group_id: (u = o.partnerGroup) == null ? void 0 : u.id,
4459
- manager_id: (m = o.manager) == null ? void 0 : m.id,
4451
+ manager_id: (f = o.manager) == null ? void 0 : f.id,
4460
4452
  comment: o.comment,
4461
4453
  inn: o.inn,
4462
4454
  okpo: o.okpo,
@@ -4473,7 +4465,7 @@ class Yt extends ae {
4473
4465
  opf: c.opf.slug,
4474
4466
  name: c.name,
4475
4467
  alternative_name: c.alternativeName,
4476
- partner_group_id: (v = c.partnerGroup) == null ? void 0 : v.id,
4468
+ partner_group_id: (m = c.partnerGroup) == null ? void 0 : m.id,
4477
4469
  manager_id: (S = c.manager) == null ? void 0 : S.id,
4478
4470
  comment: c.comment,
4479
4471
  inn: c.inn,
@@ -4623,7 +4615,7 @@ class Yt extends ae {
4623
4615
  correspondent_account: s.correspondentAccount,
4624
4616
  currency_id: s.currency.id
4625
4617
  },
4626
- (o) => new Le(o.data),
4618
+ (o) => new ke(o.data),
4627
4619
  i
4628
4620
  );
4629
4621
  }
@@ -4649,7 +4641,7 @@ class Yt extends ae {
4649
4641
  correspondent_account: s.correspondentAccount,
4650
4642
  currency_id: s.currency.id
4651
4643
  },
4652
- (o) => new Le(o.data),
4644
+ (o) => new ke(o.data),
4653
4645
  i
4654
4646
  );
4655
4647
  }
@@ -4892,7 +4884,7 @@ const E = class E extends h {
4892
4884
  * Время кэширования данных ответов на запросы (секунд).
4893
4885
  */
4894
4886
  t(this, "responseDataCacheTimeout");
4895
- this.responseDataCacheTimeout = a.getConfig().http.responseDataCacheTimeout;
4887
+ this.responseDataCacheTimeout = D.getConfig().http.responseDataCacheTimeout;
4896
4888
  }
4897
4889
  /**
4898
4890
  * Возвращает кэшированные данные.
@@ -4929,10 +4921,10 @@ const E = class E extends h {
4929
4921
  */
4930
4922
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
4931
4923
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
4932
- const c = s + (ve(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? E.getCachedResponse(c) : void 0;
4924
+ const c = s + (Pe(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? E.getCachedResponse(c) : void 0;
4933
4925
  return p ? Promise.resolve(p) : this.get(s, o).then((u) => {
4934
- const m = u.map((v) => Ue.instanceInitializer(e, v));
4935
- return i && m && this.cacheResponse(s, m), m;
4926
+ const f = u.map((m) => Ue.instanceInitializer(e, m));
4927
+ return i && f && this.cacheResponse(s, f), f;
4936
4928
  });
4937
4929
  }
4938
4930
  };
@@ -5117,7 +5109,7 @@ class yr extends fr {
5117
5109
  * @param data Данные для первоначальной инициализации.
5118
5110
  */
5119
5111
  constructor(e) {
5120
- var s, i, o, c, p, u, m, v;
5112
+ var s, i, o, c, p, u, f, m;
5121
5113
  super(e);
5122
5114
  /**
5123
5115
  * Краткие данные о клиенте.
@@ -5159,16 +5151,16 @@ class yr extends fr {
5159
5151
  * Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
5160
5152
  */
5161
5153
  t(this, "isNotInStock");
5162
- this.client = new ge(e == null ? void 0 : e.client), this.payment = {
5154
+ this.client = new he(e == null ? void 0 : e.client), this.payment = {
5163
5155
  type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
5164
5156
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5165
5157
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5166
5158
  }, this.delivery = {
5167
5159
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5168
- date: y((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? C(e.delivery.date) : ((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ?? /* @__PURE__ */ new Date(),
5169
- address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Ce(e.delivery.address) : void 0,
5170
- warehouse: (v = e == null ? void 0 : e.delivery) != null && v.warehouse ? new Re(e.delivery.warehouse) : void 0
5171
- }, 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;
5160
+ date: w((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? v(e.delivery.date) : ((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ?? /* @__PURE__ */ new Date(),
5161
+ address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new Ce(e.delivery.address) : void 0,
5162
+ warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new ae(e.delivery.warehouse) : void 0
5163
+ }, 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 = w(e == null ? void 0 : e.pendingAt) ? v(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = w(e == null ? void 0 : e.processedAt) ? v(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;
5172
5164
  }
5173
5165
  }
5174
5166
  class yt extends M {
@@ -5297,7 +5289,7 @@ class wt extends yr {
5297
5289
  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;
5298
5290
  }
5299
5291
  }
5300
- class ts extends ae {
5292
+ class ts extends De {
5301
5293
  /**
5302
5294
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5303
5295
  *
@@ -5331,7 +5323,7 @@ class ts extends ae {
5331
5323
  return this.get(`/internal/orders/${r}`, {}, (e) => new wt(e.data));
5332
5324
  }
5333
5325
  }
5334
- class _e {
5326
+ class Se {
5335
5327
  /**
5336
5328
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5337
5329
  *
@@ -5358,10 +5350,10 @@ class _e {
5358
5350
  * Источник клиентской цены.
5359
5351
  */
5360
5352
  t(this, "source");
5361
- this.client = new ge(r == null ? void 0 : r.client), this.product = new k(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;
5353
+ this.client = new he(r == null ? void 0 : r.client), this.product = new k(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;
5362
5354
  }
5363
5355
  }
5364
- const Se = (n) => {
5356
+ const Ie = (n) => {
5365
5357
  var r, e, s, i, o;
5366
5358
  return n ? Xe(
5367
5359
  {
@@ -5372,7 +5364,7 @@ const Se = (n) => {
5372
5364
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5373
5365
  hideNotActive: n.hideNotActive
5374
5366
  },
5375
- (c) => $(c) || (J(c) || Ze(c)) && ve(c)
5367
+ (c) => $(c) || (J(c) || Ze(c)) && Pe(c)
5376
5368
  ) : {};
5377
5369
  }, Je = (n) => {
5378
5370
  const r = {};
@@ -5393,9 +5385,9 @@ class ss extends h {
5393
5385
  `/internal/price/products/${r}/analyze`,
5394
5386
  {
5395
5387
  ...Je(e),
5396
- filters: Se(s)
5388
+ filters: Ie(s)
5397
5389
  },
5398
- (i) => i.data.map((o) => new _e(o))
5390
+ (i) => i.data.map((o) => new Se(o))
5399
5391
  );
5400
5392
  }
5401
5393
  /**
@@ -5412,9 +5404,9 @@ class ss extends h {
5412
5404
  `/internal/price/categories/${r}/analyze`,
5413
5405
  {
5414
5406
  ...Je(e),
5415
- filters: Se(s)
5407
+ filters: Ie(s)
5416
5408
  },
5417
- (i) => i.data.map((o) => new _e(o))
5409
+ (i) => i.data.map((o) => new Se(o))
5418
5410
  );
5419
5411
  }
5420
5412
  /**
@@ -5433,9 +5425,9 @@ class ss extends h {
5433
5425
  `/internal/price/categories/${r}/analyze/square`,
5434
5426
  {
5435
5427
  ...e,
5436
- filters: Se(s)
5428
+ filters: Ie(s)
5437
5429
  },
5438
- (i) => i.data.map((o) => new _e(o))
5430
+ (i) => i.data.map((o) => new Se(o))
5439
5431
  );
5440
5432
  }
5441
5433
  }
@@ -5486,7 +5478,7 @@ class Ct {
5486
5478
  * @inheritDoc
5487
5479
  */
5488
5480
  t(this, "currency");
5489
- 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;
5481
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = w(r.costDate) ? v(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;
5490
5482
  }
5491
5483
  }
5492
5484
  class vt extends ne {
@@ -5501,16 +5493,10 @@ class vt extends ne {
5501
5493
  * @inheritDoc
5502
5494
  */
5503
5495
  t(this, "history");
5504
- this.history = ue(e.history, (s) => new Ct(s));
5496
+ this.history = ve(e.history, (s) => new Ct(s));
5505
5497
  }
5506
5498
  }
5507
5499
  class is extends h {
5508
- /**
5509
- * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
5510
- */
5511
- constructor() {
5512
- super(), this.baseUrl = `${a.getConfig().http.priceHistoryApiUrl ?? ""}/api`;
5513
- }
5514
5500
  /**
5515
5501
  * Возвращает данные об истории изменения цен.
5516
5502
  *
@@ -5519,17 +5505,19 @@ class is extends h {
5519
5505
  * @see /docs/api#/operations/api_internal_price_history_get
5520
5506
  */
5521
5507
  getProductPriceHistory(r) {
5522
- var i, o, c, p;
5523
- const e = a.getConfig().dateFormats.api, s = Xe(
5524
- xe(r, {
5508
+ var o, c, p, u, f;
5509
+ const e = D.getConfig().dateFormats.api, s = Xe(
5510
+ me(r, {
5525
5511
  costDate: {
5526
- from: Ie((i = r.costDate) == null ? void 0 : i.from) ? q(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
5527
- to: Ie((c = r.costDate) == null ? void 0 : c.to) ? q(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
5512
+ from: de((o = r.costDate) == null ? void 0 : o.from) ? q(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
5513
+ to: de((p = r.costDate) == null ? void 0 : p.to) ? q(r.costDate.to, e) : (u = r.costDate) == null ? void 0 : u.to
5528
5514
  }
5529
5515
  }),
5530
- (u) => $(u) || (J(u) || Ze(u)) && ve(u)
5531
- );
5532
- return this.get("/internal/history", s, (u) => ue(u.data, (m) => new vt(m)));
5516
+ (m) => $(m) || (J(m) || Ze(m)) && Pe(m)
5517
+ ), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
5518
+ return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((m) => [
5519
+ new vt(me(m[0], { history: m }))
5520
+ ]);
5533
5521
  }
5534
5522
  }
5535
5523
  class Ke {
@@ -5551,12 +5539,6 @@ class Ke {
5551
5539
  }
5552
5540
  }
5553
5541
  class ns extends h {
5554
- /**
5555
- * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
5556
- */
5557
- constructor() {
5558
- super(), this.baseUrl = `${a.getConfig().http.recommendationsApiUrl ?? ""}/api`;
5559
- }
5560
5542
  /**
5561
5543
  * Возвращает данные о рекомендациях указанной категории продуктов.
5562
5544
  *
@@ -5564,7 +5546,7 @@ class ns extends h {
5564
5546
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
5565
5547
  */
5566
5548
  getProductCategoryRecommendations(r) {
5567
- return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new Ke(e.data));
5549
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Ke(e.data));
5568
5550
  }
5569
5551
  /**
5570
5552
  * Возвращает данные о рекомендациях указанного продукта.
@@ -5573,7 +5555,7 @@ class ns extends h {
5573
5555
  * @see /docs/api#/operations/api_internal_recommendations_product_get
5574
5556
  */
5575
5557
  getProductRecommendations(r) {
5576
- return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new Ke(e.data));
5558
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Ke(e.data));
5577
5559
  }
5578
5560
  /**
5579
5561
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -5583,7 +5565,7 @@ class ns extends h {
5583
5565
  * @see /docs/api#/operations/api_internal_recommendations_product_category_save
5584
5566
  */
5585
5567
  saveProductCategoryRecommendations(r, e) {
5586
- return this.post(`/internal/recommendations/categories/${r.id}`, {
5568
+ return this.post(`/internal/catalog/recommendations/categories/${r.id}`, {
5587
5569
  product_categories: e.productCategories.map((s) => s.id),
5588
5570
  products: e.products.map((s) => s.id)
5589
5571
  });
@@ -5596,13 +5578,13 @@ class ns extends h {
5596
5578
  * @see /docs/api#/operations/api_internal_recommendations_product_save
5597
5579
  */
5598
5580
  saveProductRecommendations(r, e) {
5599
- return this.post(`/internal/recommendations/products/${r.id}`, {
5581
+ return this.post(`/internal/catalog/recommendations/products/${r.id}`, {
5600
5582
  product_categories: e.productCategories.map((s) => s.id),
5601
5583
  products: e.products.map((s) => s.id)
5602
5584
  });
5603
5585
  }
5604
5586
  }
5605
- class D extends pe {
5587
+ class A extends pe {
5606
5588
  /**
5607
5589
  * Возвращает {@link Promise} для получения данных указанного справочника.
5608
5590
  *
@@ -5715,7 +5697,7 @@ class D extends pe {
5715
5697
  * Возвращает {@link Promise} для получения справочника складов.
5716
5698
  */
5717
5699
  getWarehouses() {
5718
- return this.getTypedDataArrayRequester(Re, "/public/references/warehouse", !0);
5700
+ return this.getTypedDataArrayRequester(ae, "/public/references/warehouse", !0);
5719
5701
  }
5720
5702
  /**
5721
5703
  * Возвращает {@link Promise} для получения справочника типов свойств.
@@ -5727,7 +5709,7 @@ class D extends pe {
5727
5709
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
5728
5710
  */
5729
5711
  getPriceCoefficients() {
5730
- return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
5712
+ return this.getTypedDataArrayRequester(Re, "/internal/references/price-coefficient", !0);
5731
5713
  }
5732
5714
  /**
5733
5715
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
@@ -5736,8 +5718,8 @@ class D extends pe {
5736
5718
  return this.getTypedDataArrayRequester(lt, "/public/references/product-file-type", !0);
5737
5719
  }
5738
5720
  }
5739
- const A = Z("__references_private", () => {
5740
- const n = f({}), r = f(void 0), e = f(void 0), s = f(void 0), i = f(void 0), o = f(void 0), c = f(void 0), p = f(void 0), u = f(void 0), m = f(void 0), v = f(void 0), S = f(void 0), I = f(void 0), b = f(void 0), _ = f(void 0), N = f(void 0), U = f(void 0), l = f(void 0);
5721
+ const a = Z("__references_private", () => {
5722
+ const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), p = y(void 0), u = y(void 0), f = y(void 0), m = y(void 0), S = y(void 0), I = y(void 0), b = y(void 0), _ = y(void 0), N = y(void 0), U = y(void 0), l = y(void 0);
5741
5723
  return {
5742
5724
  /**
5743
5725
  * Список загружаемых/загруженных на данный момент значений.
@@ -5778,11 +5760,11 @@ const A = Z("__references_private", () => {
5778
5760
  /**
5779
5761
  * Справочник типов оплаты заказов.
5780
5762
  */
5781
- paymentTypeReference: m,
5763
+ paymentTypeReference: f,
5782
5764
  /**
5783
5765
  * Справочник групп партнеров.
5784
5766
  */
5785
- partnerGroupReference: v,
5767
+ partnerGroupReference: m,
5786
5768
  /**
5787
5769
  * Справочник типов файлов продукктов/категорий.
5788
5770
  */
@@ -5814,90 +5796,90 @@ const A = Z("__references_private", () => {
5814
5796
  };
5815
5797
  }), os = Z("references", () => {
5816
5798
  const n = R(() => {
5817
- const l = A();
5818
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(D).getChannelPrimaryInterest().then((g) => {
5799
+ const l = a();
5800
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(A).getChannelPrimaryInterest().then((g) => {
5819
5801
  l.channelPrimaryInterestReference = g;
5820
- }).catch(w)), l.channelPrimaryInterestReference;
5802
+ }).catch(C)), l.channelPrimaryInterestReference;
5821
5803
  }), r = R(() => {
5822
- const l = A();
5823
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(D).getContactPositions().then((g) => {
5804
+ const l = a();
5805
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(A).getContactPositions().then((g) => {
5824
5806
  l.contactPositionsReference = g;
5825
- }).catch(w)), l.contactPositionsReference;
5807
+ }).catch(C)), l.contactPositionsReference;
5826
5808
  }), e = R(() => {
5827
- const l = A();
5828
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(D).getCurrency().then((g) => {
5809
+ const l = a();
5810
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(A).getCurrency().then((g) => {
5829
5811
  l.currencyReference = g;
5830
- }).catch(w)), l.currencyReference;
5812
+ }).catch(C)), l.currencyReference;
5831
5813
  }), s = R(() => {
5832
- const l = A();
5833
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(D).getOpf().then((g) => {
5814
+ const l = a();
5815
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(A).getOpf().then((g) => {
5834
5816
  l.opfReference = g;
5835
- }).catch(w)), l.opfReference;
5817
+ }).catch(C)), l.opfReference;
5836
5818
  }), i = R(() => {
5837
- const l = A();
5838
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(D).getOrderPaymentStatuses().then((g) => {
5819
+ const l = a();
5820
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(A).getOrderPaymentStatuses().then((g) => {
5839
5821
  l.orderPaymentStatusReference = g;
5840
- }).catch(w)), l.orderPaymentStatusReference;
5822
+ }).catch(C)), l.orderPaymentStatusReference;
5841
5823
  }), o = R(() => {
5842
- const l = A();
5843
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(D).getOrderStatuses().then((g) => {
5824
+ const l = a();
5825
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(A).getOrderStatuses().then((g) => {
5844
5826
  l.orderStatusReference = g;
5845
- }).catch(w)), l.orderStatusReference;
5827
+ }).catch(C)), l.orderStatusReference;
5846
5828
  }), c = R(() => {
5847
- const l = A();
5848
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(D).getPaymentTypes().then((g) => {
5829
+ const l = a();
5830
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(A).getPaymentTypes().then((g) => {
5849
5831
  l.paymentTypeReference = g;
5850
- }).catch(w)), l.paymentTypeReference;
5832
+ }).catch(C)), l.paymentTypeReference;
5851
5833
  }), p = R(() => {
5852
- const l = A();
5853
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(D).getPartnerGroup().then((g) => {
5834
+ const l = a();
5835
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(A).getPartnerGroup().then((g) => {
5854
5836
  l.partnerGroupReference = g;
5855
- }).catch(w)), l.partnerGroupReference;
5837
+ }).catch(C)), l.partnerGroupReference;
5856
5838
  }), u = R(() => {
5857
- const l = A();
5858
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(D).getProductFileType().then((g) => {
5839
+ const l = a();
5840
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(A).getProductFileType().then((g) => {
5859
5841
  l.productFileTypeReference = g;
5860
- }).catch(w)), l.productFileTypeReference;
5861
- }), m = R(() => {
5862
- const l = A();
5863
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(D).getResourceTypes().then((g) => {
5842
+ }).catch(C)), l.productFileTypeReference;
5843
+ }), f = R(() => {
5844
+ const l = a();
5845
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(A).getResourceTypes().then((g) => {
5864
5846
  l.resourceTypesReference = g;
5865
- }).catch(w)), l.resourceTypesReference;
5866
- }), v = R(() => {
5867
- const l = A();
5868
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(D).getSalesDirections().then((g) => {
5847
+ }).catch(C)), l.resourceTypesReference;
5848
+ }), m = R(() => {
5849
+ const l = a();
5850
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(A).getSalesDirections().then((g) => {
5869
5851
  l.salesDirectionsReference = g;
5870
- }).catch(w)), l.salesDirectionsReference;
5852
+ }).catch(C)), l.salesDirectionsReference;
5871
5853
  }), S = R(() => {
5872
- const l = A();
5873
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(D).getSourcePrimaryInterest().then((g) => {
5854
+ const l = a();
5855
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(A).getSourcePrimaryInterest().then((g) => {
5874
5856
  l.sourcePrimaryInterestReference = g;
5875
- }).catch(w)), l.sourcePrimaryInterestReference;
5857
+ }).catch(C)), l.sourcePrimaryInterestReference;
5876
5858
  }), I = R(() => {
5877
- const l = A();
5878
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(D).getDeliveryTypes().then((g) => {
5859
+ const l = a();
5860
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(A).getDeliveryTypes().then((g) => {
5879
5861
  l.deliveryTypeReference = g;
5880
- }).catch(w)), l.deliveryTypeReference;
5862
+ }).catch(C)), l.deliveryTypeReference;
5881
5863
  }), b = R(() => {
5882
- const l = A();
5864
+ const l = a();
5883
5865
  return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ft).getManagers().then((g) => {
5884
5866
  l.managersList = g;
5885
- }).catch(w)), l.managersList;
5867
+ }).catch(C)), l.managersList;
5886
5868
  }), _ = R(() => {
5887
- const l = A();
5888
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(D).getWarehouses().then((g) => {
5869
+ const l = a();
5870
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(A).getWarehouses().then((g) => {
5889
5871
  l.warehousesReference = g;
5890
- }).catch(w)), l.warehousesReference;
5872
+ }).catch(C)), l.warehousesReference;
5891
5873
  }), N = R(() => {
5892
- const l = A();
5893
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(D).getPropertyTypes().then((g) => {
5874
+ const l = a();
5875
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(A).getPropertyTypes().then((g) => {
5894
5876
  l.propertyTypesReference = g;
5895
- }).catch(w)), l.propertyTypesReference;
5877
+ }).catch(C)), l.propertyTypesReference;
5896
5878
  }), U = R(() => {
5897
- const l = A();
5898
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(D).getPriceCoefficients().then((g) => {
5879
+ const l = a();
5880
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(A).getPriceCoefficients().then((g) => {
5899
5881
  l.priceCoefficientsReference = g;
5900
- }).catch(w)), l.priceCoefficientsReference;
5882
+ }).catch(C)), l.priceCoefficientsReference;
5901
5883
  });
5902
5884
  return {
5903
5885
  /**
@@ -5939,11 +5921,11 @@ const A = Z("__references_private", () => {
5939
5921
  /**
5940
5922
  * Справочник типов ресурсов.
5941
5923
  */
5942
- resourceTypesReference: m,
5924
+ resourceTypesReference: f,
5943
5925
  /**
5944
5926
  * Справочник направлений продаж.
5945
5927
  */
5946
- salesDirectionsReference: v,
5928
+ salesDirectionsReference: m,
5947
5929
  /**
5948
5930
  * Справочник каналов первичного интереса.
5949
5931
  */
@@ -6106,7 +6088,7 @@ class ls extends h {
6106
6088
  }
6107
6089
  }
6108
6090
  var Rt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Rt || {});
6109
- class At extends or {
6091
+ class at extends or {
6110
6092
  /**
6111
6093
  * Инициализирует экземпляр класса {@link User}.
6112
6094
  *
@@ -6134,7 +6116,7 @@ class ps extends h {
6134
6116
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6135
6117
  */
6136
6118
  constructor() {
6137
- super(), this.baseUrl = `${a.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6119
+ super(), this.baseUrl = `${D.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6138
6120
  }
6139
6121
  /**
6140
6122
  * Функция для получения обновленных токенов доступа.
@@ -6145,17 +6127,17 @@ class ps extends h {
6145
6127
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6146
6128
  }
6147
6129
  }
6148
- class at extends h {
6130
+ class At extends h {
6149
6131
  /**
6150
6132
  * Возвращает данные о текущем пользователе.
6151
6133
  */
6152
6134
  // eslint-disable-next-line class-methods-use-this
6153
6135
  getCurrentUser() {
6154
- return this.get("/internal/users/info", {}, (r) => new At(r.data));
6136
+ return this.get("/internal/users/info", {}, (r) => new at(r.data));
6155
6137
  }
6156
6138
  }
6157
6139
  const Dt = Z("__user_state_private", () => {
6158
- const n = f({}), r = f(void 0);
6140
+ const n = y({}), r = y(void 0);
6159
6141
  return {
6160
6142
  /**
6161
6143
  * Список загружаемых/загруженных на данный момент значений.
@@ -6172,9 +6154,9 @@ const Dt = Z("__user_state_private", () => {
6172
6154
  */
6173
6155
  currentUser: R(() => {
6174
6156
  const r = Dt();
6175
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(at).getCurrentUser().then((e) => {
6157
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(At).getCurrentUser().then((e) => {
6176
6158
  r.currentUser = e;
6177
- }).catch(w).finally(() => {
6159
+ }).catch(C).finally(() => {
6178
6160
  r.dataLoaderList.currentUser = !1;
6179
6161
  })), r.currentUser;
6180
6162
  })
@@ -6205,11 +6187,11 @@ class hs {
6205
6187
  export {
6206
6188
  st as AnyReference,
6207
6189
  qt as AppBaseConfig,
6208
- a as AppConfigProvider,
6209
- Le as BankAccount,
6210
- ae as BasePaginationProvider,
6190
+ D as AppConfigProvider,
6191
+ ke as BankAccount,
6192
+ De as BasePaginationProvider,
6211
6193
  zr as CalculationTypeEnum,
6212
- me as Cart,
6194
+ ge as Cart,
6213
6195
  Br as CartItem,
6214
6196
  Hr as CartItemBase,
6215
6197
  xt as CartProvider,
@@ -6229,17 +6211,17 @@ export {
6229
6211
  Q as ClientProduct,
6230
6212
  Ht as ClientProductCategoryDataProvider,
6231
6213
  Bt as ClientProductDataProvider,
6232
- ge as ClientShortInfo,
6214
+ he as ClientShortInfo,
6233
6215
  tt as ClientsAdditionalDataRequestTypeEnum,
6234
6216
  Jt as ClientsListFilters,
6235
6217
  ne as CodedIdentity,
6236
6218
  Zt as ConfiguratorProvider,
6237
- ke as Contact,
6219
+ xe as Contact,
6238
6220
  Jr as ContactLinks,
6239
6221
  j as ContactPerson,
6240
6222
  ht as ContactPersonRelated,
6241
6223
  it as ContactPosition,
6242
- be as ContactRelation,
6224
+ _e as ContactRelation,
6243
6225
  hr as ContragentBase,
6244
6226
  we as ContragentFactory,
6245
6227
  gr as ContragentIc,
@@ -6290,21 +6272,21 @@ export {
6290
6272
  X as PartnerGroup,
6291
6273
  ct as PaymentType,
6292
6274
  Nt as PreferencesStorageProvider,
6293
- _e as PriceAnalyze,
6275
+ Se as PriceAnalyze,
6294
6276
  ss as PriceAnalyzeProvider,
6295
- Pe as PriceCoefficient,
6277
+ Re as PriceCoefficient,
6296
6278
  tr as PriceCoefficientEnum,
6297
6279
  is as PriceHistoryDataProvider,
6298
6280
  Ct as PriceHistoryItem,
6299
6281
  z as PriceTemplate,
6300
- $e as PriceTemplateCategory,
6282
+ Te as PriceTemplateCategory,
6301
6283
  re as PriceTemplateClient,
6302
6284
  nr as PriceTemplateICatalogableItem,
6303
- Te as PriceTemplateProduct,
6285
+ be as PriceTemplateProduct,
6304
6286
  zt as PriceTemplateProvider,
6305
6287
  se as PricingRole,
6306
6288
  Wt as PricingRoleProvider,
6307
- de as PrimaryCatalogableItem,
6289
+ Le as PrimaryCatalogableItem,
6308
6290
  k as Product,
6309
6291
  jt as ProductCategoryDataProvider,
6310
6292
  Mt as ProductDataProvider,
@@ -6319,7 +6301,7 @@ export {
6319
6301
  ns as RecommendationsDataProvider,
6320
6302
  Ke as RecommendationsList,
6321
6303
  P as Reference,
6322
- D as ReferenceDataProvider,
6304
+ A as ReferenceDataProvider,
6323
6305
  ce as Region,
6324
6306
  pr as ResourceType,
6325
6307
  x as SalesDirection,
@@ -6333,19 +6315,19 @@ export {
6333
6315
  Ve as UnitsHelper,
6334
6316
  Xt as UnknownClientDataProvider,
6335
6317
  ir as UpdatableNamedIdentity,
6336
- At as User,
6318
+ at as User,
6337
6319
  ps as UserAuthDataProvider,
6338
6320
  or as UserCommonInfo,
6339
- at as UserDataProvider,
6321
+ At as UserDataProvider,
6340
6322
  Kr as UserPricingRole,
6341
6323
  G as UserShortInfo,
6342
6324
  Rt as UserTypeEnum,
6343
6325
  et as VersionConfig,
6344
- Re as Warehouse,
6326
+ ae as Warehouse,
6345
6327
  rt as WebSocketConfig,
6346
6328
  ze as findCatalogItemByIdRecursive,
6347
6329
  We as flattenCatalogItems,
6348
- De as useAuthStateStore,
6330
+ $e as useAuthStateStore,
6349
6331
  os as useReferencesStore,
6350
6332
  us as useUserStateStore
6351
6333
  };