@snabcentr/common-lib 1.72.4 → 1.72.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- var Dr = Object.defineProperty;
2
- var Ar = (n, r, e) => r in n ? Dr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => Ar(n, typeof r != "symbol" ? r + "" : r, e);
1
+ var Ar = Object.defineProperty;
2
+ var Dr = (n, r, e) => r in n ? Ar(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => Dr(n, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as tr } from "jwt-decode";
5
- import { merge as ye, isUndefined as Tr, isNil as A, isEmpty as Y, noop as y, mapValues as sr, isArray as Q, every as $r, split as ar, toUpper as br, constant as Sr, isString as w, cloneDeep as Ir, toLower as Lr, isFunction as Ue, map as Re, forEach as xr, isDate as _e, omitBy as ir, isObject as nr } from "lodash-es";
6
- import { objectToCamel as Fe, objectToSnake as Ee } from "ts-case-convert";
5
+ import { merge as ye, isUndefined as Tr, isNil as D, isEmpty as Y, noop as y, mapValues as sr, isArray as Q, every as $r, split as br, toUpper as Sr, constant as ar, isString as w, cloneDeep as Ir, toLower as xr, isFunction as Ue, map as Re, forEach as Lr, isDate as _e, omitBy as ir, isObject as nr } from "lodash-es";
6
+ import { objectToCamel as Fe, objectToSnake as He } from "ts-case-convert";
7
7
  import { isAfter as ze, parseISO as C, startOfToday as de, format as O, addSeconds as kr, addBusinessDays as _r, endOfTomorrow as dr, startOfTomorrow as Or, endOfYesterday as qr, startOfYesterday as Nr, endOfToday as Ur, endOfDay as Fr, startOfDay as Mr } from "date-fns";
8
8
  import { defineStore as te } from "pinia";
9
9
  import { ref as f, markRaw as jr, computed as R } from "vue";
@@ -211,7 +211,7 @@ class fe {
211
211
  try {
212
212
  const s = JSON.parse(e);
213
213
  if (!s.availableFor || ze(C(s.availableFor) || de(), /* @__PURE__ */ new Date())) {
214
- if (A(s.data) || Y(s.data))
214
+ if (D(s.data) || Y(s.data))
215
215
  throw new Error("Data is empty");
216
216
  return s.data;
217
217
  }
@@ -233,7 +233,7 @@ class fe {
233
233
  static saveActualDataToStorage(r, e, s) {
234
234
  if (this.isLocalStorageAvailable())
235
235
  try {
236
- if (A(e) || Y(e))
236
+ if (D(e) || Y(e))
237
237
  throw new Error("Data is empty");
238
238
  const i = JSON.stringify({
239
239
  availableFor: s,
@@ -308,7 +308,7 @@ function We(n) {
308
308
  return;
309
309
  }
310
310
  }
311
- const H = te("__auth_state_private", () => {
311
+ const E = te("__auth_state_private", () => {
312
312
  const n = f(
313
313
  (() => {
314
314
  var u;
@@ -323,7 +323,7 @@ const H = te("__auth_state_private", () => {
323
323
  })()
324
324
  ), r = f(void 0), e = f(void 0), s = jr(/* @__PURE__ */ new Map());
325
325
  function i() {
326
- e.value = void 0, A(n.value) || n.value.then((o) => {
326
+ e.value = void 0, D(n.value) || n.value.then((o) => {
327
327
  const c = N.getJwtPayload(o);
328
328
  e.value = c.exp * 1e3 > Date.now() ? sr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
329
329
  }).catch(y);
@@ -350,10 +350,10 @@ const H = te("__auth_state_private", () => {
350
350
  */
351
351
  recalculateUserPermissions: i
352
352
  };
353
- }), be = te("__auth_state", () => {
353
+ }), Se = te("__auth_state", () => {
354
354
  const n = R(() => {
355
- const o = H();
356
- if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
355
+ const o = E();
356
+ if (D(o.jwtToken) && !D(o.jwtTokenUpdater)) {
357
357
  const c = o.jwtTokenUpdater();
358
358
  o.jwtToken = c, c.then((u) => {
359
359
  o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, We(u)), o.recalculateUserPermissions();
@@ -362,21 +362,21 @@ const H = te("__auth_state_private", () => {
362
362
  return o.jwtToken;
363
363
  });
364
364
  function r(o) {
365
- H().jwtTokenUpdater = o;
365
+ E().jwtTokenUpdater = o;
366
366
  }
367
367
  function e(o) {
368
- const c = H();
368
+ const c = E();
369
369
  c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, We(o)), c.recalculateUserPermissions();
370
370
  }
371
371
  function s() {
372
- const o = H();
372
+ const o = E();
373
373
  o.jwtToken = void 0, o.userPermissions = void 0, fe.saveActualDataToStorage("sc.token", void 0);
374
374
  }
375
375
  function i(o) {
376
- const c = H();
377
- !A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((v) => {
376
+ const c = E();
377
+ !D(c.jwtToken) && D(c.userPermissions) && c.jwtToken.then((v) => {
378
378
  const m = N.getJwtPayload(v);
379
- c.userPermissions = m.exp * 1e3 > Date.now() ? sr(m.resourceAccess, (b) => (b == null ? void 0 : b.roles) ?? []) : void 0;
379
+ c.userPermissions = m.exp * 1e3 > Date.now() ? sr(m.resourceAccess, (S) => (S == null ? void 0 : S.roles) ?? []) : void 0;
380
380
  }).catch(y);
381
381
  const u = Q(o) ? o.join(" && ") : o;
382
382
  if (c.userPermissionsComputedRefs.has(u))
@@ -384,10 +384,10 @@ const H = te("__auth_state_private", () => {
384
384
  const p = R(() => {
385
385
  const v = (m) => {
386
386
  var B;
387
- const b = ar(m, ".");
388
- if (b.length < 2)
387
+ const S = br(m, ".");
388
+ if (S.length < 2)
389
389
  return !1;
390
- const [_, d] = b, G = (B = H().userPermissions) == null ? void 0 : B[_];
390
+ const [_, d] = S, G = (B = E().userPermissions) == null ? void 0 : B[_];
391
391
  return Q(G) && G.includes(d);
392
392
  };
393
393
  return Q(o) ? $r(o, (m) => v(m)) : v(o);
@@ -439,16 +439,16 @@ class j {
439
439
  * @inheritDoc
440
440
  */
441
441
  t(this, "guid");
442
- this.id = r == null ? void 0 : r.id, A(this.id) && (A(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
442
+ this.id = r == null ? void 0 : r.id, D(this.id) && (D(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
443
443
  }
444
444
  /**
445
445
  * Возвращает признак, что это новая запись.
446
446
  */
447
447
  isNewRec() {
448
- return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : A(this.id);
448
+ return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : D(this.id);
449
449
  }
450
450
  }
451
- class a extends j {
451
+ class b extends j {
452
452
  /**
453
453
  * Инициализирует экземпляр класса {@link NamedIdentity}.
454
454
  *
@@ -463,7 +463,7 @@ class a extends j {
463
463
  this.name = (e == null ? void 0 : e.name) ?? "";
464
464
  }
465
465
  }
466
- class oe extends a {
466
+ class oe extends b {
467
467
  /**
468
468
  * Инициализирует экземпляр класса {@link NamedIdentity}.
469
469
  *
@@ -536,11 +536,11 @@ class he extends Oe {
536
536
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
537
537
  */
538
538
  t(this, "currencyRates");
539
- 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]) => [br(s), i])) : void 0;
539
+ 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]) => [Sr(s), i])) : void 0;
540
540
  }
541
541
  }
542
542
  var cr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(cr || {});
543
- class P extends a {
543
+ class P extends b {
544
544
  /**
545
545
  * Инициализирует экземпляр класса {@link Reference}.
546
546
  *
@@ -559,12 +559,12 @@ class P extends a {
559
559
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
560
560
  }
561
561
  }
562
- class De extends P {
562
+ class Ae extends P {
563
563
  /**
564
564
  * Возвращает значение справочника коэффициента розничной цены.
565
565
  */
566
566
  static getRetailPriceCoefficient() {
567
- return { id: -2, slug: cr.Retail, name: "Розн. цена", guid: "", isNewRec: Sr(!0) };
567
+ return { id: -2, slug: cr.Retail, name: "Розн. цена", guid: "", isNewRec: ar(!0) };
568
568
  }
569
569
  }
570
570
  class Me {
@@ -594,7 +594,7 @@ class Me {
594
594
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
595
595
  */
596
596
  t(this, "readOnly");
597
- this.coefficient = new De(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;
597
+ this.coefficient = new Ae(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;
598
598
  }
599
599
  }
600
600
  class lr {
@@ -617,7 +617,7 @@ class lr {
617
617
  }
618
618
  class X extends P {
619
619
  }
620
- class Ae extends P {
620
+ class De extends P {
621
621
  /**
622
622
  * Инициализирует экземпляр класса {@link Warehouse}.
623
623
  *
@@ -664,10 +664,10 @@ class Br {
664
664
  * Количество остатков товара на складе.
665
665
  */
666
666
  t(this, "count");
667
- this.warehouse = new Ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
667
+ this.warehouse = new De(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
668
668
  }
669
669
  }
670
- class Hr extends or {
670
+ class Er extends or {
671
671
  /**
672
672
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
673
673
  *
@@ -682,7 +682,7 @@ class Hr extends or {
682
682
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
683
683
  }
684
684
  }
685
- class Er {
685
+ class Hr {
686
686
  /**
687
687
  * Инициализирует экземпляр класса {@link Image}.
688
688
  *
@@ -705,7 +705,7 @@ class Er {
705
705
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
706
706
  }
707
707
  }
708
- class I extends Hr {
708
+ class I extends Er {
709
709
  /**
710
710
  * Инициализирует экземпляр класса {@link Product}.
711
711
  *
@@ -792,7 +792,7 @@ class I extends Hr {
792
792
  t(this, "priceCoefficients");
793
793
  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) ? 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((p) => new Br(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
794
794
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
795
- s && (this.category = new Oe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Oe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Er(p, $.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 = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Me(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
795
+ s && (this.category = new Oe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Oe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Hr(p, $.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 = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Me(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
796
796
  }
797
797
  /**
798
798
  * Возвращает признак, что это измеряемый товар.
@@ -961,7 +961,7 @@ class je {
961
961
  return new r(e);
962
962
  }
963
963
  }
964
- const S = class S {
964
+ const a = class a {
965
965
  /**
966
966
  * Инициализирует экземпляр класса {@link HttpRequester}.
967
967
  */
@@ -1000,7 +1000,7 @@ const S = class S {
1000
1000
  // eslint-disable-next-line class-methods-use-this
1001
1001
  t(this, "authRequestInterceptor", async (r) => {
1002
1002
  let e;
1003
- return A(be().jwtToken) || (e = await be().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1003
+ return D(Se().jwtToken) || (e = await Se().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1004
1004
  });
1005
1005
  /**
1006
1006
  * Перехватчик запроса для преобразования данных запроса.
@@ -1008,7 +1008,7 @@ const S = class S {
1008
1008
  * @param request Данные запроса.
1009
1009
  */
1010
1010
  // eslint-disable-next-line class-methods-use-this
1011
- t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ee(r.params)), ["put", "patch", "post"].includes(Lr(r.method)) && r.data && (r.data = Ee(r.data))), r));
1011
+ t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = He(r.params)), ["put", "patch", "post"].includes(xr(r.method)) && r.data && (r.data = He(r.data))), r));
1012
1012
  /**
1013
1013
  * Перехватчик ошибок ответов на запрос.
1014
1014
  *
@@ -1017,7 +1017,7 @@ const S = class S {
1017
1017
  t(this, "authErrorsResponseInterceptors", (r) => {
1018
1018
  var s;
1019
1019
  const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
1020
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (be().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1020
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Se().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1021
1021
  });
1022
1022
  /**
1023
1023
  * Перехватчик ответа для преобразования данных ответа на запрос.
@@ -1027,7 +1027,7 @@ const S = class S {
1027
1027
  // eslint-disable-next-line class-methods-use-this
1028
1028
  t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
1029
1029
  const r = $.getConfig().version;
1030
- this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient = Gr.create({
1030
+ this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient = Gr.create({
1031
1031
  headers: {
1032
1032
  "APP-VERSION": `${r.name} (${r.version}, ${O(r.date, $.getConfig().dateFormats.uiDate)})`,
1033
1033
  Accept: "application/json",
@@ -1038,7 +1038,7 @@ const S = class S {
1038
1038
  (e) => Promise.reject(e)
1039
1039
  ), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
1040
1040
  (e) => e,
1041
- (e) => S.convertHttpErrorResponse(e)
1041
+ (e) => a.convertHttpErrorResponse(e)
1042
1042
  ), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((e) => e, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
1043
1043
  this.dataConverterResponseInterceptor,
1044
1044
  (e) => Promise.reject(e)
@@ -1050,7 +1050,7 @@ const S = class S {
1050
1050
  * @param handler Ссылка на функцию-обработчик ошибок.
1051
1051
  */
1052
1052
  static setDefaultErrorsResponseHandler(r) {
1053
- S.defaultErrorsResponseHandler = r;
1053
+ a.defaultErrorsResponseHandler = r;
1054
1054
  }
1055
1055
  /**
1056
1056
  * Возвращает экземпляр объекта текущего класса.
@@ -1058,7 +1058,7 @@ const S = class S {
1058
1058
  * @param type Тип данных, которыми оперирует метод.
1059
1059
  */
1060
1060
  static getInstance(r) {
1061
- return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] = je.simpleInstanceInitializer(r)), S.instances[r.name];
1061
+ return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = je.simpleInstanceInitializer(r)), a.instances[r.name];
1062
1062
  }
1063
1063
  /**
1064
1064
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1067,7 +1067,7 @@ const S = class S {
1067
1067
  */
1068
1068
  static convertHttpErrorResponse(r) {
1069
1069
  var e, s;
1070
- if (!A(r.request) || !A(r.response)) {
1070
+ if (!D(r.request) || !D(r.response)) {
1071
1071
  const i = r == null ? void 0 : r.response;
1072
1072
  return Promise.reject({
1073
1073
  status: (i == null ? void 0 : i.status) ?? 0,
@@ -1156,15 +1156,15 @@ const S = class S {
1156
1156
  * Экземпляр объекта текущего класса.
1157
1157
  */
1158
1158
  // eslint-disable-next-line no-use-before-define
1159
- t(S, "instances", {}), /**
1159
+ t(a, "instances", {}), /**
1160
1160
  * Базовый обработчик ошибок выполнения запросов.
1161
1161
  *
1162
1162
  * @param error Данные об ошибке.
1163
1163
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1164
1164
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1165
1165
  */
1166
- t(S, "defaultErrorsResponseHandler", y);
1167
- let h = S;
1166
+ t(a, "defaultErrorsResponseHandler", y);
1167
+ let h = a;
1168
1168
  class Nt extends h {
1169
1169
  /**
1170
1170
  * Возвращает содержимое корзины указанного клиента.
@@ -1300,7 +1300,7 @@ class z extends he {
1300
1300
  this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1301
1301
  }
1302
1302
  }
1303
- class ur extends a {
1303
+ class ur extends b {
1304
1304
  /**
1305
1305
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1306
1306
  *
@@ -1330,7 +1330,7 @@ class Kr extends ur {
1330
1330
  this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1331
1331
  }
1332
1332
  }
1333
- class U extends a {
1333
+ class U extends b {
1334
1334
  /**
1335
1335
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1336
1336
  *
@@ -1345,7 +1345,7 @@ class U extends a {
1345
1345
  this.type = e == null ? void 0 : e.type;
1346
1346
  }
1347
1347
  }
1348
- class Qr extends a {
1348
+ class Qr extends b {
1349
1349
  /**
1350
1350
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1351
1351
  *
@@ -1460,9 +1460,9 @@ class Yr {
1460
1460
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1461
1461
  }
1462
1462
  }
1463
- class L extends P {
1463
+ class x extends P {
1464
1464
  }
1465
- class ce extends a {
1465
+ class ce extends b {
1466
1466
  /**
1467
1467
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1468
1468
  *
@@ -1490,10 +1490,10 @@ class ce extends a {
1490
1490
  * @inheritDoc
1491
1491
  */
1492
1492
  t(this, "isRegionalDirector");
1493
- this.salesDirection = e != null && e.salesDirection ? new L(e.salesDirection) : new L(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new Yr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1493
+ this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : new x(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new Yr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1494
1494
  }
1495
1495
  }
1496
- class Xr extends a {
1496
+ class Xr extends b {
1497
1497
  /**
1498
1498
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1499
1499
  *
@@ -1617,10 +1617,10 @@ class pr {
1617
1617
  * Процент, который прибавляется к значению выбранного коэффициента.
1618
1618
  */
1619
1619
  t(this, "increasePercent");
1620
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new De(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1620
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Ae(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1621
1621
  }
1622
1622
  }
1623
- class Se extends pr {
1623
+ class ae extends pr {
1624
1624
  /**
1625
1625
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1626
1626
  *
@@ -1667,7 +1667,7 @@ class Be extends P {
1667
1667
  e && (this.region = new le(e.region));
1668
1668
  }
1669
1669
  }
1670
- class hr extends a {
1670
+ class hr extends b {
1671
1671
  /**
1672
1672
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1673
1673
  *
@@ -1703,7 +1703,7 @@ class hr extends a {
1703
1703
  * Признак активности учетной записи пользователя.
1704
1704
  */
1705
1705
  t(this, "isActive");
1706
- 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 L(e.salesDirection) : void 0, this.createdAt = w(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = w(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1706
+ 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) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = w(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1707
1707
  }
1708
1708
  }
1709
1709
  class ge extends hr {
@@ -1748,7 +1748,7 @@ class ge extends hr {
1748
1748
  * Список менеджеров клиента.
1749
1749
  */
1750
1750
  t(this, "managers");
1751
- this.salesDirection = new L(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Be(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new ce(i))) ?? [];
1751
+ this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new Be(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new ce(i))) ?? [];
1752
1752
  }
1753
1753
  }
1754
1754
  class se extends j {
@@ -1795,7 +1795,7 @@ class Ie extends pr {
1795
1795
  }
1796
1796
  class gr extends P {
1797
1797
  }
1798
- class ie extends a {
1798
+ class ie extends b {
1799
1799
  /**
1800
1800
  * Инициализирует экземпляр класса {@link Property}.
1801
1801
  *
@@ -1818,7 +1818,7 @@ class ie extends a {
1818
1818
  this.type = new gr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
1819
1819
  }
1820
1820
  }
1821
- class E {
1821
+ class H {
1822
1822
  /**
1823
1823
  * Инициализирует экземпляр класса {@link PropertyValue}.
1824
1824
  *
@@ -1915,11 +1915,11 @@ class Ut {
1915
1915
  return Object.keys(this).forEach((c) => {
1916
1916
  const u = this[c];
1917
1917
  // eslint-disable-next-line prettier/prettier
1918
- A(u) || w(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
1918
+ D(u) || w(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
1919
1919
  }), !((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;
1920
1920
  }
1921
1921
  }
1922
- class ne extends a {
1922
+ class ne extends b {
1923
1923
  /**
1924
1924
  * Инициализирует экземпляр класса {@link PricingRole}.
1925
1925
  *
@@ -1973,7 +1973,7 @@ class Je {
1973
1973
  * Минимальный коэффициент цены.
1974
1974
  */
1975
1975
  t(this, "minCoefficient");
1976
- this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new De(r == null ? void 0 : r.minCoefficient);
1976
+ this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Ae(r == null ? void 0 : r.minCoefficient);
1977
1977
  }
1978
1978
  }
1979
1979
  class et {
@@ -2575,7 +2575,7 @@ class Bt extends h {
2575
2575
  getCategoryProductsCoefficients(r) {
2576
2576
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2577
2577
  const { data: s } = e;
2578
- return xr(s, (i) => i.map((o) => new Me(o))), s;
2578
+ return Lr(s, (i) => i.map((o) => new Me(o))), s;
2579
2579
  });
2580
2580
  }
2581
2581
  /**
@@ -2594,7 +2594,7 @@ class Bt extends h {
2594
2594
  });
2595
2595
  }
2596
2596
  }
2597
- class Ht extends h {
2597
+ class Et extends h {
2598
2598
  /**
2599
2599
  * Возвращает данные об указанном продукте.
2600
2600
  *
@@ -2644,7 +2644,7 @@ class Ht extends h {
2644
2644
  });
2645
2645
  }
2646
2646
  }
2647
- class Et extends h {
2647
+ class Ht extends h {
2648
2648
  /**
2649
2649
  * Возвращает список данных о корневых категориях указанного клиента.
2650
2650
  *
@@ -2727,7 +2727,7 @@ class zt extends h {
2727
2727
  );
2728
2728
  }
2729
2729
  }
2730
- var He = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(He || {});
2730
+ var Ee = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Ee || {});
2731
2731
  class Ve {
2732
2732
  /**
2733
2733
  * Инициализирует экземпляр класса {@link FilterItem}.
@@ -2747,7 +2747,7 @@ class Ve {
2747
2747
  * Значение с которым сравнивается поле.
2748
2748
  */
2749
2749
  t(this, "value");
2750
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? He.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2750
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Ee.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2751
2751
  }
2752
2752
  /**
2753
2753
  * Преобразует фильтр в примитивное представление для API.
@@ -2945,7 +2945,7 @@ class Wt extends $e {
2945
2945
  return this.get(
2946
2946
  `/internal/price/templates/${r}/categories`,
2947
2947
  {},
2948
- (e) => e.data.map((s) => new Se(s))
2948
+ (e) => e.data.map((s) => new ae(s))
2949
2949
  );
2950
2950
  }
2951
2951
  /**
@@ -2960,7 +2960,7 @@ class Wt extends $e {
2960
2960
  return this.get(
2961
2961
  `/internal/price/templates/${r}/categories/${e}`,
2962
2962
  {},
2963
- (s) => new Se(s.data)
2963
+ (s) => new ae(s.data)
2964
2964
  );
2965
2965
  }
2966
2966
  /**
@@ -2986,7 +2986,7 @@ class Wt extends $e {
2986
2986
  },
2987
2987
  params: i ? { recursively: !0 } : {}
2988
2988
  },
2989
- (c) => new Se(c.data)
2989
+ (c) => new ae(c.data)
2990
2990
  );
2991
2991
  }
2992
2992
  /**
@@ -3177,7 +3177,7 @@ class Vt extends $e {
3177
3177
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3178
3178
  */
3179
3179
  getProductProperties(r) {
3180
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new E(s)));
3180
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3181
3181
  }
3182
3182
  /**
3183
3183
  * Возвращает значение свойства продукта.
@@ -3187,7 +3187,7 @@ class Vt extends $e {
3187
3187
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3188
3188
  */
3189
3189
  getProductProperty(r, e) {
3190
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new E(s.data));
3190
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
3191
3191
  }
3192
3192
  /**
3193
3193
  * Обновляет значение свойства продукта.
@@ -3198,7 +3198,7 @@ class Vt extends $e {
3198
3198
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3199
3199
  */
3200
3200
  updateProductProperty(r, e, s) {
3201
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new E(i.data));
3201
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3202
3202
  }
3203
3203
  /**
3204
3204
  * Удаляет значение свойства продукта.
@@ -3323,7 +3323,7 @@ class Vt extends $e {
3323
3323
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3324
3324
  */
3325
3325
  getCategoryProperties(r) {
3326
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new E(s)));
3326
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
3327
3327
  }
3328
3328
  /**
3329
3329
  * Возвращает значение свойства категории.
@@ -3333,7 +3333,7 @@ class Vt extends $e {
3333
3333
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3334
3334
  */
3335
3335
  getCategoryProperty(r, e) {
3336
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new E(s.data));
3336
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
3337
3337
  }
3338
3338
  /**
3339
3339
  * Обновляет значение свойства категории.
@@ -3344,7 +3344,7 @@ class Vt extends $e {
3344
3344
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3345
3345
  */
3346
3346
  updateCategoryProperty(r, e, s) {
3347
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new E(i.data));
3347
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
3348
3348
  }
3349
3349
  /**
3350
3350
  * Удаляет значение свойства категории.
@@ -3512,7 +3512,7 @@ class Kt extends P {
3512
3512
  }
3513
3513
  class ct extends P {
3514
3514
  }
3515
- class Ce extends a {
3515
+ class Ce extends b {
3516
3516
  /**
3517
3517
  * Инициализирует экземпляр класса {@link Currency}.
3518
3518
  *
@@ -3589,7 +3589,7 @@ class qe extends j {
3589
3589
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new Ce(e.currency));
3590
3590
  }
3591
3591
  }
3592
- class Ne extends a {
3592
+ class Ne extends b {
3593
3593
  /**
3594
3594
  * Инициализирует экземпляр класса {@link Contact}.
3595
3595
  *
@@ -3643,7 +3643,7 @@ class M extends Ne {
3643
3643
  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) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3644
3644
  }
3645
3645
  }
3646
- class wr extends a {
3646
+ class wr extends b {
3647
3647
  /**
3648
3648
  * Инициализирует экземпляр класса {@link ContragentBase}.
3649
3649
  *
@@ -3663,7 +3663,7 @@ class wr extends a {
3663
3663
  /**
3664
3664
  * Направление продаж.
3665
3665
  */
3666
- t(this, "salesDirection", new L());
3666
+ t(this, "salesDirection", new x());
3667
3667
  /**
3668
3668
  * Группа партнеров (направление деятельности).
3669
3669
  */
@@ -3701,7 +3701,7 @@ class wr extends a {
3701
3701
  */
3702
3702
  t(this, "updater");
3703
3703
  if (e) {
3704
- if (this.opf = new F(e.opf), this.salesDirection = new L(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = w(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.manager && (this.manager = new ce(e.manager)), e.contacts) {
3704
+ 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) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.manager && (this.manager = new ce(e.manager)), e.contacts) {
3705
3705
  const s = [];
3706
3706
  e.contacts.forEach((i) => {
3707
3707
  s.push(new M(i));
@@ -3826,7 +3826,7 @@ class ve {
3826
3826
  }
3827
3827
  }
3828
3828
  }
3829
- class Le extends j {
3829
+ class xe extends j {
3830
3830
  /**
3831
3831
  * Инициализирует экземпляр класса {@link ContactRelation}.
3832
3832
  *
@@ -3866,7 +3866,7 @@ class ft extends M {
3866
3866
  */
3867
3867
  addresses: []
3868
3868
  });
3869
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Le(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Le(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Le(s))));
3869
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new xe(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new xe(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new xe(s))));
3870
3870
  }
3871
3871
  }
3872
3872
  class Pe extends Kr {
@@ -3967,7 +3967,7 @@ class Ye extends ge {
3967
3967
  * @inheritDoc
3968
3968
  */
3969
3969
  t(this, "extraData");
3970
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new mr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new yr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.reasonExcludedFromMsCallsToClients = e == null ? void 0 : e.reasonExcludedFromMsCallsToClients, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3970
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new mr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new yr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.reasonExcludedFromMsCallsToClients = e == null ? void 0 : e.reasonExcludedFromMsCallsToClients, this.preferredWarehouse = e != null && e.preferredWarehouse ? new De(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
3971
3971
  }
3972
3972
  }
3973
3973
  class Qt {
@@ -3978,99 +3978,103 @@ class Qt {
3978
3978
  */
3979
3979
  constructor(r) {
3980
3980
  /**
3981
- * Идентификатор клиента.
3981
+ * @inheritDoc
3982
3982
  */
3983
3983
  t(this, "id");
3984
3984
  /**
3985
- * Название клиента.
3985
+ * @inheritDoc
3986
3986
  */
3987
3987
  t(this, "name");
3988
3988
  /**
3989
- * Альтернативное название клиента.
3989
+ * @inheritDoc
3990
3990
  */
3991
3991
  t(this, "alternativeName");
3992
3992
  /**
3993
- * Строка запроса для поиска клиентов.
3993
+ * @inheritDoc
3994
3994
  */
3995
3995
  t(this, "searchTerm");
3996
3996
  /**
3997
- * Данные о городах.
3997
+ * @inheritDoc
3998
3998
  */
3999
3999
  t(this, "cities");
4000
4000
  /**
4001
- * Данные о регионе.
4001
+ * @inheritDoc
4002
4002
  */
4003
4003
  t(this, "region");
4004
4004
  /**
4005
- * Данные о стране.
4005
+ * @inheritDoc
4006
4006
  */
4007
4007
  t(this, "country");
4008
4008
  /**
4009
- * Номер телефона.
4009
+ * @inheritDoc
4010
4010
  */
4011
4011
  t(this, "phone");
4012
4012
  /**
4013
- * Адрес электронной почты.
4013
+ * @inheritDoc
4014
4014
  */
4015
4015
  t(this, "email");
4016
4016
  /**
4017
- * Признак необходимости отображения скрытых/деактивированных клиентов.
4017
+ * @inheritDoc
4018
4018
  */
4019
4019
  t(this, "isActive");
4020
4020
  /**
4021
- * Период регистрации.
4021
+ * @inheritDoc
4022
4022
  */
4023
4023
  t(this, "createdAt", new k());
4024
4024
  /**
4025
- * Период последнего входа.
4025
+ * @inheritDoc
4026
4026
  */
4027
4027
  t(this, "lastLoginDate", new k());
4028
4028
  /**
4029
- * Признак того, что в указанный период последнего входа, клиентом был сделан заказ.
4029
+ * @inheritDoc
4030
4030
  */
4031
4031
  t(this, "lastLoginDateHasOrder");
4032
4032
  /**
4033
- * Данные о менеджерах клиентов.
4033
+ * @inheritDoc
4034
4034
  */
4035
4035
  t(this, "managers");
4036
4036
  /**
4037
- * Признак того, что наличие менеджера у клиента является обязательным.
4037
+ * @inheritDoc
4038
4038
  */
4039
4039
  t(this, "isManagerRequired");
4040
4040
  /**
4041
- * Направления продаж.
4041
+ * @inheritDoc
4042
4042
  */
4043
4043
  t(this, "salesDirections");
4044
4044
  /**
4045
- * ИНН контрагента.
4045
+ * @inheritDoc
4046
4046
  */
4047
4047
  t(this, "contragentInn");
4048
4048
  /**
4049
- * Тип организационно-правовой формы контрагента.
4049
+ * @inheritDoc
4050
4050
  */
4051
4051
  t(this, "contragentType");
4052
4052
  /**
4053
- * Предпочитаемый тип доставки.
4053
+ * @inheritDoc
4054
4054
  */
4055
4055
  t(this, "preferredDeliveryType");
4056
4056
  /**
4057
- * Группы партнеров (направление деятельности).
4057
+ * @inheritDoc
4058
4058
  */
4059
4059
  t(this, "partnerGroups");
4060
4060
  /**
4061
- * Данные контактного лица.
4061
+ * @inheritDoc
4062
4062
  */
4063
4063
  t(this, "contact");
4064
4064
  /**
4065
- * Данные о параметрах поиска последнего заказа который сделал пользователь.
4065
+ * @inheritDoc
4066
4066
  */
4067
4067
  t(this, "lastOrder");
4068
+ /**
4069
+ * @inheritDoc
4070
+ */
4071
+ t(this, "isExcludedFromMsCallsToClients");
4068
4072
  var e, s, i, o, c, u;
4069
- 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((p) => new Be(p)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(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 k(r == null ? void 0 : r.createdAt), this.lastLoginDate = new k(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((p) => new Te(p)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((p) => new L(p)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new F(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new X(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((p) => new re(p)), this.contact = new Ne(r == null ? void 0 : r.contact), this.lastOrder = {
4073
+ 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((p) => new Be(p)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(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 k(r == null ? void 0 : r.createdAt), this.lastLoginDate = new k(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((p) => new Te(p)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((p) => new x(p)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new F(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new X(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((p) => new re(p)), this.contact = new Ne(r == null ? void 0 : r.contact), this.lastOrder = {
4070
4074
  createdAt: new k((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
4071
4075
  creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
4072
4076
  isApproved: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.isApproved
4073
- };
4077
+ }, this.isExcludedFromMsCallsToClients = r == null ? void 0 : r.isExcludedFromMsCallsToClients;
4074
4078
  }
4075
4079
  /**
4076
4080
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -4079,15 +4083,6 @@ class Qt {
4079
4083
  */
4080
4084
  resetFilterValue(r) {
4081
4085
  switch (r) {
4082
- case "id":
4083
- case "phone":
4084
- case "email":
4085
- case "name":
4086
- case "alternativeName":
4087
- case "searchTerm":
4088
- case "contragentInn":
4089
- this[r] = void 0;
4090
- break;
4091
4086
  case "cities":
4092
4087
  this.cities = [];
4093
4088
  break;
@@ -4103,9 +4098,6 @@ class Qt {
4103
4098
  case "lastLoginDate":
4104
4099
  this.lastLoginDate.from = null, this.lastLoginDate.to = null;
4105
4100
  break;
4106
- case "lastLoginDateHasOrder":
4107
- this.lastLoginDateHasOrder = void 0;
4108
- break;
4109
4101
  case "lastOrder":
4110
4102
  this.lastOrder = {};
4111
4103
  break;
@@ -4127,6 +4119,9 @@ class Qt {
4127
4119
  case "contact":
4128
4120
  this.contact = new Ne();
4129
4121
  break;
4122
+ default:
4123
+ this[r] = void 0;
4124
+ break;
4130
4125
  }
4131
4126
  return this;
4132
4127
  }
@@ -4140,7 +4135,7 @@ class Qt {
4140
4135
  return Object.keys(this).forEach((c) => {
4141
4136
  const u = this[c];
4142
4137
  // eslint-disable-next-line prettier/prettier
4143
- A(u) || w(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
4138
+ D(u) || w(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
4144
4139
  }), !((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;
4145
4140
  }
4146
4141
  }
@@ -4167,7 +4162,7 @@ class Pr extends j {
4167
4162
  this.createdAt = w(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4168
4163
  }
4169
4164
  }
4170
- class yt extends a {
4165
+ class yt extends b {
4171
4166
  /**
4172
4167
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4173
4168
  *
@@ -4200,7 +4195,7 @@ class yt extends a {
4200
4195
  * Список менеджеров.
4201
4196
  */
4202
4197
  t(this, "managers");
4203
- (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new Pr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new re(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new X(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new L(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ce(o)));
4198
+ (s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new Pr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new re(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new X(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new x(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ce(o)));
4204
4199
  }
4205
4200
  }
4206
4201
  class wt {
@@ -4270,7 +4265,7 @@ class Xt {
4270
4265
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4271
4266
  }
4272
4267
  }
4273
- class x extends $e {
4268
+ class L extends $e {
4274
4269
  /**
4275
4270
  * Преобразует данные о клиенте в данные требуемые для запроса.
4276
4271
  *
@@ -4300,7 +4295,7 @@ class x extends $e {
4300
4295
  * @param contragent Данные о контрагенте клиента.
4301
4296
  */
4302
4297
  static transformContragentClientDataToRequest(r) {
4303
- var c, u, p, v, m, b, _, d;
4298
+ var c, u, p, v, m, S, _, d;
4304
4299
  let e;
4305
4300
  const s = r, i = r, o = r;
4306
4301
  switch (r.opf.slug) {
@@ -4347,7 +4342,7 @@ class x extends $e {
4347
4342
  name: o.name,
4348
4343
  alternative_name: o.alternativeName,
4349
4344
  partner_group_id: (m = o.partnerGroup) == null ? void 0 : m.id,
4350
- manager_id: (b = o.manager) == null ? void 0 : b.id,
4345
+ manager_id: (S = o.manager) == null ? void 0 : S.id,
4351
4346
  comment: o.comment,
4352
4347
  director_name: o.directorName,
4353
4348
  director_position: o.directorPosition,
@@ -4443,7 +4438,7 @@ class x extends $e {
4443
4438
  return this.getClientsList({
4444
4439
  groupOp: "and",
4445
4440
  groups: [],
4446
- filters: [{ field: "phone", op: He.Contains, value: r }]
4441
+ filters: [{ field: "phone", op: Ee.Contains, value: r }]
4447
4442
  });
4448
4443
  }
4449
4444
  /**
@@ -4480,7 +4475,7 @@ class x extends $e {
4480
4475
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4481
4476
  */
4482
4477
  createClientCommonData(r, e = {}) {
4483
- return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new Ye(s.data), e);
4478
+ return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new Ye(s.data), e);
4484
4479
  }
4485
4480
  /**
4486
4481
  * Обновляет данные указанного клиента.
@@ -4490,7 +4485,7 @@ class x extends $e {
4490
4485
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4491
4486
  */
4492
4487
  updateClientCommonData(r, e = {}) {
4493
- return this.patch(`/internal/clients/${r.id}`, x.transformClientDataToRequest(r), void 0, e);
4488
+ return this.patch(`/internal/clients/${r.id}`, L.transformClientDataToRequest(r), void 0, e);
4494
4489
  }
4495
4490
  /**
4496
4491
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -4579,7 +4574,7 @@ class x extends $e {
4579
4574
  createContragentClientData(r, e, s = {}) {
4580
4575
  return this.post(
4581
4576
  `/internal/clients/${r}/contragents`,
4582
- x.transformContragentClientDataToRequest(e),
4577
+ L.transformContragentClientDataToRequest(e),
4583
4578
  (i) => ve.createInstance(i.data),
4584
4579
  s
4585
4580
  );
@@ -4595,7 +4590,7 @@ class x extends $e {
4595
4590
  updateContragentClientData(r, e, s = {}) {
4596
4591
  return this.patch(
4597
4592
  `/internal/clients/${r}/contragents/${e.id}`,
4598
- x.transformContragentClientDataToRequest(e),
4593
+ L.transformContragentClientDataToRequest(e),
4599
4594
  (i) => ve.createInstance(i.data),
4600
4595
  s
4601
4596
  );
@@ -4621,7 +4616,7 @@ class x extends $e {
4621
4616
  createClientDeliveryAddress(r, e, s = {}) {
4622
4617
  return this.post(
4623
4618
  `/internal/clients/${r}/delivery-addresses`,
4624
- x.transformClientDeliveryAddressToRequest(e),
4619
+ L.transformClientDeliveryAddressToRequest(e),
4625
4620
  (i) => new Pe(i.data),
4626
4621
  s
4627
4622
  );
@@ -4637,7 +4632,7 @@ class x extends $e {
4637
4632
  updateClientDeliveryAddress(r, e, s = {}) {
4638
4633
  return this.patch(
4639
4634
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4640
- x.transformClientDeliveryAddressToRequest(e),
4635
+ L.transformClientDeliveryAddressToRequest(e),
4641
4636
  (i) => new Pe(i.data),
4642
4637
  s
4643
4638
  );
@@ -4664,7 +4659,7 @@ class x extends $e {
4664
4659
  createContragentBankAccount(r, e, s, i = {}) {
4665
4660
  return this.post(
4666
4661
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4667
- x.transformClientContragentBankAccountToRequest(s),
4662
+ L.transformClientContragentBankAccountToRequest(s),
4668
4663
  (o) => new qe(o.data),
4669
4664
  i
4670
4665
  );
@@ -4681,7 +4676,7 @@ class x extends $e {
4681
4676
  updateContragentBankAccount(r, e, s, i = {}) {
4682
4677
  return this.patch(
4683
4678
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4684
- x.transformClientContragentBankAccountToRequest(s),
4679
+ L.transformClientContragentBankAccountToRequest(s),
4685
4680
  (o) => new qe(o.data),
4686
4681
  i
4687
4682
  );
@@ -5189,8 +5184,8 @@ class Rr extends Pr {
5189
5184
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5190
5185
  date: w((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5191
5186
  address: (v = e == null ? void 0 : e.delivery) != null && v.address ? new Pe(e.delivery.address) : void 0,
5192
- warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new Ae(e.delivery.warehouse) : void 0
5193
- }, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new L(e == null ? void 0 : e.salesDirection), this.pendingAt = w(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = w(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;
5187
+ warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new De(e.delivery.warehouse) : void 0
5188
+ }, this.attachedUser = new U(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) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = w(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;
5194
5189
  }
5195
5190
  }
5196
5191
  class vt extends j {
@@ -5353,7 +5348,7 @@ class ss extends $e {
5353
5348
  return this.get(`/internal/orders/${r}`, {}, (e) => new Pt(e.data));
5354
5349
  }
5355
5350
  }
5356
- class xe {
5351
+ class Le {
5357
5352
  /**
5358
5353
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5359
5354
  *
@@ -5394,7 +5389,7 @@ const ke = (n) => {
5394
5389
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5395
5390
  hideNotActive: n.hideNotActive
5396
5391
  },
5397
- (c) => A(c) || (Q(c) || nr(c)) && Y(c)
5392
+ (c) => D(c) || (Q(c) || nr(c)) && Y(c)
5398
5393
  ) : {};
5399
5394
  }, Ze = (n) => {
5400
5395
  const r = {};
@@ -5417,7 +5412,7 @@ class is extends h {
5417
5412
  ...Ze(e),
5418
5413
  filters: ke(s)
5419
5414
  },
5420
- (i) => i.data.map((o) => new xe(o))
5415
+ (i) => i.data.map((o) => new Le(o))
5421
5416
  );
5422
5417
  }
5423
5418
  /**
@@ -5436,7 +5431,7 @@ class is extends h {
5436
5431
  ...Ze(e),
5437
5432
  filters: ke(s)
5438
5433
  },
5439
- (i) => i.data.map((o) => new xe(o))
5434
+ (i) => i.data.map((o) => new Le(o))
5440
5435
  );
5441
5436
  }
5442
5437
  /**
@@ -5457,7 +5452,7 @@ class is extends h {
5457
5452
  ...e,
5458
5453
  filters: ke(s)
5459
5454
  },
5460
- (i) => i.data.map((o) => new xe(o))
5455
+ (i) => i.data.map((o) => new Le(o))
5461
5456
  );
5462
5457
  }
5463
5458
  }
@@ -5511,7 +5506,7 @@ class Rt {
5511
5506
  this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = w(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new oe(r.product) : void 0, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new Ce(r.currency) : void 0;
5512
5507
  }
5513
5508
  }
5514
- class Dt extends oe {
5509
+ class At extends oe {
5515
5510
  /**
5516
5511
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
5517
5512
  *
@@ -5543,10 +5538,10 @@ class ns extends h {
5543
5538
  to: _e((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
5544
5539
  }
5545
5540
  }),
5546
- (m) => A(m) || (Q(m) || nr(m)) && Y(m)
5541
+ (m) => D(m) || (Q(m) || nr(m)) && Y(m)
5547
5542
  ), i = ((v = r.product) == null ? void 0 : v[0]) ?? 0;
5548
5543
  return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((m) => [
5549
- new Dt(ye(m[0], { history: m }))
5544
+ new At(ye(m[0], { history: m }))
5550
5545
  ]);
5551
5546
  }
5552
5547
  }
@@ -5685,7 +5680,7 @@ class T extends pe {
5685
5680
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
5686
5681
  */
5687
5682
  getSalesDirections() {
5688
- return this.getTypedDataArrayRequester(L, "/public/references/sales-direction", !0);
5683
+ return this.getTypedDataArrayRequester(x, "/public/references/sales-direction", !0);
5689
5684
  }
5690
5685
  /**
5691
5686
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
@@ -5727,7 +5722,7 @@ class T extends pe {
5727
5722
  * Возвращает {@link Promise} для получения справочника складов.
5728
5723
  */
5729
5724
  getWarehouses() {
5730
- return this.getTypedDataArrayRequester(Ae, "/public/references/warehouse", !0);
5725
+ return this.getTypedDataArrayRequester(De, "/public/references/warehouse", !0);
5731
5726
  }
5732
5727
  /**
5733
5728
  * Возвращает {@link Promise} для получения справочника типов свойств.
@@ -5739,7 +5734,7 @@ class T extends pe {
5739
5734
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
5740
5735
  */
5741
5736
  getPriceCoefficients() {
5742
- return this.getTypedDataArrayRequester(De, "/internal/references/price-coefficient", !0);
5737
+ return this.getTypedDataArrayRequester(Ae, "/internal/references/price-coefficient", !0);
5743
5738
  }
5744
5739
  /**
5745
5740
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
@@ -5748,8 +5743,8 @@ class T extends pe {
5748
5743
  return this.getTypedDataArrayRequester(ht, "/public/references/product-file-type", !0);
5749
5744
  }
5750
5745
  }
5751
- const D = te("__references_private", () => {
5752
- 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), u = f(void 0), p = f(void 0), v = f(void 0), m = f(void 0), b = f(void 0), _ = f(void 0), d = f(void 0), G = f(void 0), B = f(void 0), ae = f(void 0), l = f(void 0);
5746
+ const A = te("__references_private", () => {
5747
+ 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), u = f(void 0), p = f(void 0), v = f(void 0), m = f(void 0), S = f(void 0), _ = f(void 0), d = f(void 0), G = f(void 0), B = f(void 0), be = f(void 0), l = f(void 0);
5753
5748
  return {
5754
5749
  /**
5755
5750
  * Список загружаемых/загруженных на данный момент значений.
@@ -5798,7 +5793,7 @@ const D = te("__references_private", () => {
5798
5793
  /**
5799
5794
  * Справочник типов файлов продукктов/категорий.
5800
5795
  */
5801
- productFileTypeReference: b,
5796
+ productFileTypeReference: S,
5802
5797
  /**
5803
5798
  * Справочник типов ресурсов.
5804
5799
  */
@@ -5818,7 +5813,7 @@ const D = te("__references_private", () => {
5818
5813
  /**
5819
5814
  * Справочник типов свойств.
5820
5815
  */
5821
- propertyTypesReference: ae,
5816
+ propertyTypesReference: be,
5822
5817
  /**
5823
5818
  * Справочник коэффициентов цен.
5824
5819
  */
@@ -5826,87 +5821,87 @@ const D = te("__references_private", () => {
5826
5821
  };
5827
5822
  }), cs = te("references", () => {
5828
5823
  const n = R(() => {
5829
- const l = D();
5824
+ const l = A();
5830
5825
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
5831
5826
  l.channelPrimaryInterestReference = g;
5832
5827
  }).catch(y)), l.channelPrimaryInterestReference;
5833
5828
  }), r = R(() => {
5834
- const l = D();
5829
+ const l = A();
5835
5830
  return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
5836
5831
  l.contactPositionsReference = g;
5837
5832
  }).catch(y)), l.contactPositionsReference;
5838
5833
  }), e = R(() => {
5839
- const l = D();
5834
+ const l = A();
5840
5835
  return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
5841
5836
  l.currencyReference = g;
5842
5837
  }).catch(y)), l.currencyReference;
5843
5838
  }), s = R(() => {
5844
- const l = D();
5839
+ const l = A();
5845
5840
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
5846
5841
  l.opfReference = g;
5847
5842
  }).catch(y)), l.opfReference;
5848
5843
  }), i = R(() => {
5849
- const l = D();
5844
+ const l = A();
5850
5845
  return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
5851
5846
  l.orderPaymentStatusReference = g;
5852
5847
  }).catch(y)), l.orderPaymentStatusReference;
5853
5848
  }), o = R(() => {
5854
- const l = D();
5849
+ const l = A();
5855
5850
  return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
5856
5851
  l.orderStatusReference = g;
5857
5852
  }).catch(y)), l.orderStatusReference;
5858
5853
  }), c = R(() => {
5859
- const l = D();
5854
+ const l = A();
5860
5855
  return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
5861
5856
  l.paymentTypeReference = g;
5862
5857
  }).catch(y)), l.paymentTypeReference;
5863
5858
  }), u = R(() => {
5864
- const l = D();
5859
+ const l = A();
5865
5860
  return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
5866
5861
  l.partnerGroupReference = g;
5867
5862
  }).catch(y)), l.partnerGroupReference;
5868
5863
  }), p = R(() => {
5869
- const l = D();
5864
+ const l = A();
5870
5865
  return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
5871
5866
  l.productFileTypeReference = g;
5872
5867
  }).catch(y)), l.productFileTypeReference;
5873
5868
  }), v = R(() => {
5874
- const l = D();
5869
+ const l = A();
5875
5870
  return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
5876
5871
  l.resourceTypesReference = g;
5877
5872
  }).catch(y)), l.resourceTypesReference;
5878
5873
  }), m = R(() => {
5879
- const l = D();
5874
+ const l = A();
5880
5875
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
5881
5876
  l.salesDirectionsReference = g;
5882
5877
  }).catch(y)), l.salesDirectionsReference;
5883
- }), b = R(() => {
5884
- const l = D();
5878
+ }), S = R(() => {
5879
+ const l = A();
5885
5880
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
5886
5881
  l.sourcePrimaryInterestReference = g;
5887
5882
  }).catch(y)), l.sourcePrimaryInterestReference;
5888
5883
  }), _ = R(() => {
5889
- const l = D();
5884
+ const l = A();
5890
5885
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
5891
5886
  l.deliveryTypeReference = g;
5892
5887
  }).catch(y)), l.deliveryTypeReference;
5893
5888
  }), d = R(() => {
5894
- const l = D();
5889
+ const l = A();
5895
5890
  return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Ct).getManagers().then((g) => {
5896
5891
  l.managersList = g;
5897
5892
  }).catch(y)), l.managersList;
5898
5893
  }), G = R(() => {
5899
- const l = D();
5894
+ const l = A();
5900
5895
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
5901
5896
  l.warehousesReference = g;
5902
5897
  }).catch(y)), l.warehousesReference;
5903
5898
  }), B = R(() => {
5904
- const l = D();
5899
+ const l = A();
5905
5900
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
5906
5901
  l.propertyTypesReference = g;
5907
5902
  }).catch(y)), l.propertyTypesReference;
5908
- }), ae = R(() => {
5909
- const l = D();
5903
+ }), be = R(() => {
5904
+ const l = A();
5910
5905
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
5911
5906
  l.priceCoefficientsReference = g;
5912
5907
  }).catch(y)), l.priceCoefficientsReference;
@@ -5959,7 +5954,7 @@ const D = te("__references_private", () => {
5959
5954
  /**
5960
5955
  * Справочник каналов первичного интереса.
5961
5956
  */
5962
- sourcePrimaryInterestsReference: b,
5957
+ sourcePrimaryInterestsReference: S,
5963
5958
  /**
5964
5959
  * Справочник типов доставки.
5965
5960
  */
@@ -5979,10 +5974,10 @@ const D = te("__references_private", () => {
5979
5974
  /**
5980
5975
  * Справочник коэффициентов цен.
5981
5976
  */
5982
- priceCoefficientsReference: ae
5977
+ priceCoefficientsReference: be
5983
5978
  };
5984
5979
  });
5985
- class At {
5980
+ class Dt {
5986
5981
  /**
5987
5982
  * Инициализирует экземпляр класса {@link MetaTagItem}.
5988
5983
  *
@@ -6036,7 +6031,7 @@ class rr {
6036
6031
  */
6037
6032
  t(this, "meta");
6038
6033
  var e;
6039
- this.resourceType = new fr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new At(s))) ?? [];
6034
+ this.resourceType = new fr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new Dt(s))) ?? [];
6040
6035
  }
6041
6036
  }
6042
6037
  class ls extends h {
@@ -6157,7 +6152,7 @@ class ps extends h {
6157
6152
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6158
6153
  }
6159
6154
  }
6160
- class at extends h {
6155
+ class bt extends h {
6161
6156
  /**
6162
6157
  * Возвращает данные о текущем пользователе.
6163
6158
  */
@@ -6166,7 +6161,7 @@ class at extends h {
6166
6161
  return this.get("/internal/users/info", {}, (r) => new $t(r.data));
6167
6162
  }
6168
6163
  }
6169
- const bt = te("__user_state_private", () => {
6164
+ const St = te("__user_state_private", () => {
6170
6165
  const n = f({}), r = f(void 0);
6171
6166
  return {
6172
6167
  /**
@@ -6183,8 +6178,8 @@ const bt = te("__user_state_private", () => {
6183
6178
  * Данные о текущем пользователе.
6184
6179
  */
6185
6180
  currentUser: R(() => {
6186
- const r = bt();
6187
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(at).getCurrentUser().then((e) => {
6181
+ const r = St();
6182
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(bt).getCurrentUser().then((e) => {
6188
6183
  r.currentUser = e;
6189
6184
  }).catch(y).finally(() => {
6190
6185
  r.dataLoaderList.currentUser = !1;
@@ -6235,11 +6230,11 @@ export {
6235
6230
  Ye as Client,
6236
6231
  yt as ClientAdditionalData,
6237
6232
  we as ClientCategory,
6238
- x as ClientDataProvider,
6233
+ L as ClientDataProvider,
6239
6234
  jt as ClientPriceProvider,
6240
6235
  Gt as ClientPriceTemplateProvider,
6241
6236
  Z as ClientProduct,
6242
- Et as ClientProductCategoryDataProvider,
6237
+ Ht as ClientProductCategoryDataProvider,
6243
6238
  zt as ClientProductDataProvider,
6244
6239
  ge as ClientShortInfo,
6245
6240
  nt as ClientsAdditionalDataRequestTypeEnum,
@@ -6251,7 +6246,7 @@ export {
6251
6246
  M as ContactPerson,
6252
6247
  ft as ContactPersonRelated,
6253
6248
  ct as ContactPosition,
6254
- Le as ContactRelation,
6249
+ xe as ContactRelation,
6255
6250
  wr as ContragentBase,
6256
6251
  ve as ContragentFactory,
6257
6252
  Cr as ContragentIc,
@@ -6275,21 +6270,21 @@ export {
6275
6270
  gs as FieldValidationResultData,
6276
6271
  ue as FilterGroup,
6277
6272
  Ve as FilterItem,
6278
- He as FilterOpEnum,
6273
+ Ee as FilterOpEnum,
6279
6274
  lr as GeoCoordinates,
6280
- Hr as HiddenCatalogableItem,
6275
+ Er as HiddenCatalogableItem,
6281
6276
  pe as HttpCachedRequester,
6282
6277
  rt as HttpParamsConfig,
6283
6278
  h as HttpRequester,
6284
6279
  j as Identity,
6285
- Er as Image,
6280
+ Hr as Image,
6286
6281
  N as JwtPayload,
6287
6282
  Te as Manager,
6288
6283
  ce as ManagerCommon,
6289
6284
  ts as ManagerDataFactory,
6290
6285
  Ct as ManagerDataProvider,
6291
- At as MetaTagItem,
6292
- a as NamedIdentity,
6286
+ Dt as MetaTagItem,
6287
+ b as NamedIdentity,
6293
6288
  F as Opf,
6294
6289
  q as OpfEnum,
6295
6290
  Pt as Order,
@@ -6302,14 +6297,14 @@ export {
6302
6297
  re as PartnerGroup,
6303
6298
  pt as PaymentType,
6304
6299
  fe as PreferencesStorageProvider,
6305
- xe as PriceAnalyze,
6300
+ Le as PriceAnalyze,
6306
6301
  is as PriceAnalyzeProvider,
6307
- De as PriceCoefficient,
6302
+ Ae as PriceCoefficient,
6308
6303
  cr as PriceCoefficientEnum,
6309
6304
  ns as PriceHistoryDataProvider,
6310
6305
  Rt as PriceHistoryItem,
6311
6306
  W as PriceTemplate,
6312
- Se as PriceTemplateCategory,
6307
+ ae as PriceTemplateCategory,
6313
6308
  se as PriceTemplateClient,
6314
6309
  pr as PriceTemplateICatalogableItem,
6315
6310
  Ie as PriceTemplateProduct,
@@ -6319,22 +6314,22 @@ export {
6319
6314
  Oe as PrimaryCatalogableItem,
6320
6315
  I as Product,
6321
6316
  Bt as ProductCategoryDataProvider,
6322
- Ht as ProductDataProvider,
6317
+ Et as ProductDataProvider,
6323
6318
  ht as ProductFileType,
6324
6319
  Me as ProductPriceCoefficient,
6325
- Dt as ProductPriceHistory,
6320
+ At as ProductPriceHistory,
6326
6321
  Vt as PropertiesProvider,
6327
6322
  ie as Property,
6328
6323
  gr as PropertyType,
6329
6324
  Vr as PropertyTypeEnum,
6330
- E as PropertyValue,
6325
+ H as PropertyValue,
6331
6326
  os as RecommendationsDataProvider,
6332
6327
  er as RecommendationsList,
6333
6328
  P as Reference,
6334
6329
  T as ReferenceDataProvider,
6335
6330
  le as Region,
6336
6331
  fr as ResourceType,
6337
- L as SalesDirection,
6332
+ x as SalesDirection,
6338
6333
  tt as SentryConfig,
6339
6334
  rr as Seo,
6340
6335
  ls as SeoDataProvider,
@@ -6348,16 +6343,16 @@ export {
6348
6343
  $t as User,
6349
6344
  ps as UserAuthDataProvider,
6350
6345
  hr as UserCommonInfo,
6351
- at as UserDataProvider,
6346
+ bt as UserDataProvider,
6352
6347
  Xr as UserPricingRole,
6353
6348
  U as UserShortInfo,
6354
6349
  Tt as UserTypeEnum,
6355
6350
  st as VersionConfig,
6356
- Ae as Warehouse,
6351
+ De as Warehouse,
6357
6352
  it as WebSocketConfig,
6358
6353
  Ke as findCatalogItemByIdRecursive,
6359
6354
  Qe as flattenCatalogItems,
6360
- be as useAuthStateStore,
6355
+ Se as useAuthStateStore,
6361
6356
  cs as useReferencesStore,
6362
6357
  hs as useUserStateStore
6363
6358
  };