@snabcentr/common-lib 2.0.5 → 2.0.7

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,13 +2,13 @@ var Ar = Object.defineProperty;
2
2
  var Dr = (n, r, e) => r in n ? Ar(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
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 de, isUndefined as Tr, isNil as D, isEmpty as Y, noop as f, mapValues as sr, isArray as Q, every as $r, split as br, toUpper as ar, constant as Sr, isString as y, cloneDeep as Ir, toLower as Lr, isFunction as Ue, map as he, forEach as xr, isDate as ke, omitBy as ir, isObject as nr } from "lodash-es";
5
+ import { merge as Ue, isUndefined as Tr, isNil as D, isEmpty as Y, noop as f, mapValues as sr, isArray as Q, every as $r, split as br, toUpper as Sr, constant as ar, isString as y, cloneDeep as Ir, toLower as xr, isFunction as de, map as he, forEach as Lr, isDate as ke, omitBy as ir, isObject as nr } from "lodash-es";
6
6
  import { objectToCamel as Fe, objectToSnake as Ee } from "ts-case-convert";
7
- import { isAfter as ze, parseISO as w, startOfToday as _e, format as q, addSeconds as kr, addBusinessDays as _r, endOfTomorrow as Or, startOfTomorrow as qr, endOfYesterday as Nr, startOfYesterday as dr, endOfToday as Ur, endOfDay as Fr, startOfDay as Mr } from "date-fns";
7
+ import { isAfter as ze, parseISO as w, startOfToday as _e, format as q, addSeconds as kr, addBusinessDays as _r, endOfTomorrow as Or, startOfTomorrow as qr, endOfYesterday as Nr, startOfYesterday as Ur, endOfToday as dr, endOfDay as Fr, startOfDay as Mr } from "date-fns";
8
8
  import { defineStore as te } from "pinia";
9
9
  import { ref as m, markRaw as jr, computed as P } from "vue";
10
10
  import Gr from "axios";
11
- class d {
11
+ class U {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -99,7 +99,7 @@ class d {
99
99
  * @inheritDoc
100
100
  */
101
101
  t(this, "email", "");
102
- de(this, r);
102
+ Ue(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -107,11 +107,11 @@ class d {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = tr(r), s = new d(Fe(e));
110
+ const e = tr(r), s = new U(Fe(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class Nt extends d {
114
+ class Nt extends U {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -143,7 +143,7 @@ class Nt extends d {
143
143
  * @inheritDoc
144
144
  */
145
145
  t(this, "address");
146
- de(this, e);
146
+ Ue(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -151,7 +151,7 @@ class Nt extends d {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new d(Fe(tr(e)));
154
+ return new U(Fe(tr(e)));
155
155
  }
156
156
  }
157
157
  const J = class J {
@@ -302,7 +302,7 @@ class ye {
302
302
  }
303
303
  function We(n) {
304
304
  try {
305
- const r = d.getJwtPayload(n);
305
+ const r = U.getJwtPayload(n);
306
306
  return new Date(r.exp * 1e3);
307
307
  } catch {
308
308
  return;
@@ -324,7 +324,7 @@ const B = te("__auth_state_private", () => {
324
324
  ), r = m(void 0), e = m(void 0), s = jr(/* @__PURE__ */ new Map());
325
325
  function i() {
326
326
  e.value = void 0, D(n.value) || n.value.then((o) => {
327
- const c = d.getJwtPayload(o);
327
+ const c = U.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(f);
330
330
  }
@@ -375,8 +375,8 @@ const B = te("__auth_state_private", () => {
375
375
  function i(o) {
376
376
  const c = B();
377
377
  !D(c.jwtToken) && D(c.userPermissions) && c.jwtToken.then((v) => {
378
- const R = d.getJwtPayload(v);
379
- c.userPermissions = R.exp * 1e3 > Date.now() ? sr(R.resourceAccess, (a) => (a == null ? void 0 : a.roles) ?? []) : void 0;
378
+ const R = U.getJwtPayload(v);
379
+ c.userPermissions = R.exp * 1e3 > Date.now() ? sr(R.resourceAccess, (S) => (S == null ? void 0 : S.roles) ?? []) : void 0;
380
380
  }).catch(f);
381
381
  const u = Q(o) ? o.join(" && ") : o;
382
382
  if (c.userPermissionsComputedRefs.has(u))
@@ -384,10 +384,10 @@ const B = te("__auth_state_private", () => {
384
384
  const p = P(() => {
385
385
  const v = (R) => {
386
386
  var H;
387
- const a = br(R, ".");
388
- if (a.length < 2)
387
+ const S = br(R, ".");
388
+ if (S.length < 2)
389
389
  return !1;
390
- const [_, O] = a, G = (H = B().userPermissions) == null ? void 0 : H[_];
390
+ const [_, O] = S, G = (H = B().userPermissions) == null ? void 0 : H[_];
391
391
  return Q(G) && G.includes(O);
392
392
  };
393
393
  return Q(o) ? $r(o, (R) => v(R)) : v(o);
@@ -536,7 +536,7 @@ class ge 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]) => [ar(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 || {});
@@ -564,7 +564,7 @@ class Re extends C {
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 {
@@ -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
  */
@@ -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 = Ee(r.params)), ["put", "patch", "post"].includes(xr(r.method)) && r.data && (r.data = Ee(r.data))), r));
1012
1012
  /**
1013
1013
  * Перехватчик ошибок ответов на запрос.
1014
1014
  *
@@ -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 = T.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}, ${q(r.date, T.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 запроса в более упрощённую и часто используемую форму.
@@ -1156,16 +1156,16 @@ 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", f);
1167
- let h = S;
1168
- class dt extends h {
1166
+ t(a, "defaultErrorsResponseHandler", f);
1167
+ let h = a;
1168
+ class Ut extends h {
1169
1169
  /**
1170
1170
  * Возвращает содержимое корзины указанного клиента.
1171
1171
  *
@@ -1330,7 +1330,7 @@ class Kr extends ur {
1330
1330
  this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? w(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1331
1331
  }
1332
1332
  }
1333
- class U extends b {
1333
+ class d extends b {
1334
1334
  /**
1335
1335
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1336
1336
  *
@@ -1381,7 +1381,7 @@ class Qr extends b {
1381
1381
  * Дата и время удаления.
1382
1382
  */
1383
1383
  t(this, "deletedAt");
1384
- 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) ? w(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 U(e == null ? void 0 : e.owner), this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? w(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1384
+ 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) ? w(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 d(e == null ? void 0 : e.owner), this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? w(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1385
1385
  }
1386
1386
  }
1387
1387
  class W extends ur {
@@ -1460,7 +1460,7 @@ 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 C {
1463
+ class x extends C {
1464
1464
  }
1465
1465
  class ce extends b {
1466
1466
  /**
@@ -1490,7 +1490,7 @@ class ce extends b {
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
1496
  class Xr extends b {
@@ -1620,7 +1620,7 @@ class pr {
1620
1620
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1621
1621
  }
1622
1622
  }
1623
- class ae extends pr {
1623
+ class Se extends pr {
1624
1624
  /**
1625
1625
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1626
1626
  *
@@ -1703,7 +1703,7 @@ class hr extends b {
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 = y(e == null ? void 0 : e.createdAt) ? w(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = y(e == null ? void 0 : e.lastLoginAt) ? w(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 = y(e == null ? void 0 : e.createdAt) ? w(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = y(e == null ? void 0 : e.lastLoginAt) ? w(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
1707
1707
  }
1708
1708
  }
1709
1709
  class me extends hr {
@@ -1748,7 +1748,7 @@ class me 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 He(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 He(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 {
@@ -1778,7 +1778,7 @@ class se extends j {
1778
1778
  this.createdAt = y(e == null ? void 0 : e.createdAt) ? w(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? w(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new me(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
1779
1779
  }
1780
1780
  }
1781
- class Se extends pr {
1781
+ class ae extends pr {
1782
1782
  /**
1783
1783
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1784
1784
  *
@@ -1855,7 +1855,7 @@ class k {
1855
1855
  this.from = y(r == null ? void 0 : r.from) ? w(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = y(r == null ? void 0 : r.to) ? w(r.to) : (r == null ? void 0 : r.to) ?? null;
1856
1856
  }
1857
1857
  }
1858
- class Ut {
1858
+ class dt {
1859
1859
  /**
1860
1860
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
1861
1861
  *
@@ -1915,7 +1915,7 @@ 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
- D(u) || y(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
1918
+ D(u) || y(u) && u.trim().length === 0 || de(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
  }
@@ -2161,6 +2161,10 @@ class Ft {
2161
2161
  * @inheritDoc
2162
2162
  */
2163
2163
  t(this, "sentry");
2164
+ /**
2165
+ * @inheritDoc
2166
+ */
2167
+ t(this, "tableDefaultHeightCoefficient");
2164
2168
  /**
2165
2169
  * @inheritDoc
2166
2170
  */
@@ -2181,7 +2185,7 @@ class Ft {
2181
2185
  this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new rt(r == null ? void 0 : r.http), this.deviceTypeByResolution = new et(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new tt({
2182
2186
  environment: this.environment,
2183
2187
  ...r == null ? void 0 : r.sentry
2184
- }), this.urls = r == null ? void 0 : r.urls, this.version = new st(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new it(r.websocket) : void 0, this.dateFormats = {
2188
+ }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new st(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new it(r.websocket) : void 0, this.dateFormats = {
2185
2189
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
2186
2190
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
2187
2191
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
@@ -2583,7 +2587,7 @@ class Ht extends h {
2583
2587
  getCategoryProductsCoefficients(r) {
2584
2588
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2585
2589
  const { data: s } = e;
2586
- return xr(s, (i) => i.map((o) => new Me(o))), s;
2590
+ return Lr(s, (i) => i.map((o) => new Me(o))), s;
2587
2591
  });
2588
2592
  }
2589
2593
  /**
@@ -2800,7 +2804,7 @@ class ue {
2800
2804
  toPrimitive() {
2801
2805
  return {
2802
2806
  groupOp: this.groupOp,
2803
- filters: this.filters.map((r) => r instanceof Ve && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2807
+ filters: this.filters.map((r) => r instanceof Ve && de(r.toPrimitive) ? r.toPrimitive() : r),
2804
2808
  groups: this.groups.map((r) => r instanceof ue ? r.toPrimitive() : r)
2805
2809
  };
2806
2810
  }
@@ -2897,7 +2901,7 @@ class Wt extends Te {
2897
2901
  return this.get(
2898
2902
  `/internal/price/templates/${r}/products`,
2899
2903
  {},
2900
- (e) => e.data.map((s) => new Se(s))
2904
+ (e) => e.data.map((s) => new ae(s))
2901
2905
  );
2902
2906
  }
2903
2907
  /**
@@ -2909,7 +2913,7 @@ class Wt extends Te {
2909
2913
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
2910
2914
  */
2911
2915
  getProductTemplatePrice(r, e) {
2912
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Se(s.data));
2916
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new ae(s.data));
2913
2917
  }
2914
2918
  /**
2915
2919
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -2928,7 +2932,7 @@ class Wt extends Te {
2928
2932
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2929
2933
  increase_percent: s.value
2930
2934
  },
2931
- (o) => new Se(o.data)
2935
+ (o) => new ae(o.data)
2932
2936
  );
2933
2937
  }
2934
2938
  /**
@@ -2953,7 +2957,7 @@ class Wt extends Te {
2953
2957
  return this.get(
2954
2958
  `/internal/price/templates/${r}/categories`,
2955
2959
  {},
2956
- (e) => e.data.map((s) => new ae(s))
2960
+ (e) => e.data.map((s) => new Se(s))
2957
2961
  );
2958
2962
  }
2959
2963
  /**
@@ -2968,7 +2972,7 @@ class Wt extends Te {
2968
2972
  return this.get(
2969
2973
  `/internal/price/templates/${r}/categories/${e}`,
2970
2974
  {},
2971
- (s) => new ae(s.data)
2975
+ (s) => new Se(s.data)
2972
2976
  );
2973
2977
  }
2974
2978
  /**
@@ -2994,7 +2998,7 @@ class Wt extends Te {
2994
2998
  },
2995
2999
  params: i ? { recursively: !0 } : {}
2996
3000
  },
2997
- (c) => new ae(c.data)
3001
+ (c) => new Se(c.data)
2998
3002
  );
2999
3003
  }
3000
3004
  /**
@@ -3671,7 +3675,7 @@ class wr extends b {
3671
3675
  /**
3672
3676
  * Направление продаж.
3673
3677
  */
3674
- t(this, "salesDirection", new L());
3678
+ t(this, "salesDirection", new x());
3675
3679
  /**
3676
3680
  * Группа партнеров (направление деятельности).
3677
3681
  */
@@ -3709,7 +3713,7 @@ class wr extends b {
3709
3713
  */
3710
3714
  t(this, "updater");
3711
3715
  if (e) {
3712
- if (this.opf = new F(e.opf), this.salesDirection = new L(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = y(e == null ? void 0 : e.createdAt) ? w(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = y(e == null ? void 0 : e.updatedAt) ? w(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) {
3716
+ 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) ? w(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = y(e == null ? void 0 : e.updatedAt) ? w(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.manager && (this.manager = new ce(e.manager)), e.contacts) {
3713
3717
  const s = [];
3714
3718
  e.contacts.forEach((i) => {
3715
3719
  s.push(new M(i));
@@ -3986,99 +3990,103 @@ class Qt {
3986
3990
  */
3987
3991
  constructor(r) {
3988
3992
  /**
3989
- * Идентификатор клиента.
3993
+ * @inheritDoc
3990
3994
  */
3991
3995
  t(this, "id");
3992
3996
  /**
3993
- * Название клиента.
3997
+ * @inheritDoc
3994
3998
  */
3995
3999
  t(this, "name");
3996
4000
  /**
3997
- * Альтернативное название клиента.
4001
+ * @inheritDoc
3998
4002
  */
3999
4003
  t(this, "alternativeName");
4000
4004
  /**
4001
- * Строка запроса для поиска клиентов.
4005
+ * @inheritDoc
4002
4006
  */
4003
4007
  t(this, "searchTerm");
4004
4008
  /**
4005
- * Данные о городах.
4009
+ * @inheritDoc
4006
4010
  */
4007
4011
  t(this, "cities");
4008
4012
  /**
4009
- * Данные о регионе.
4013
+ * @inheritDoc
4010
4014
  */
4011
4015
  t(this, "region");
4012
4016
  /**
4013
- * Данные о стране.
4017
+ * @inheritDoc
4014
4018
  */
4015
4019
  t(this, "country");
4016
4020
  /**
4017
- * Номер телефона.
4021
+ * @inheritDoc
4018
4022
  */
4019
4023
  t(this, "phone");
4020
4024
  /**
4021
- * Адрес электронной почты.
4025
+ * @inheritDoc
4022
4026
  */
4023
4027
  t(this, "email");
4024
4028
  /**
4025
- * Признак необходимости отображения скрытых/деактивированных клиентов.
4029
+ * @inheritDoc
4026
4030
  */
4027
4031
  t(this, "isActive");
4028
4032
  /**
4029
- * Период регистрации.
4033
+ * @inheritDoc
4030
4034
  */
4031
4035
  t(this, "createdAt", new k());
4032
4036
  /**
4033
- * Период последнего входа.
4037
+ * @inheritDoc
4034
4038
  */
4035
4039
  t(this, "lastLoginDate", new k());
4036
4040
  /**
4037
- * Признак того, что в указанный период последнего входа, клиентом был сделан заказ.
4041
+ * @inheritDoc
4038
4042
  */
4039
4043
  t(this, "lastLoginDateHasOrder");
4040
4044
  /**
4041
- * Данные о менеджерах клиентов.
4045
+ * @inheritDoc
4042
4046
  */
4043
4047
  t(this, "managers");
4044
4048
  /**
4045
- * Признак того, что наличие менеджера у клиента является обязательным.
4049
+ * @inheritDoc
4046
4050
  */
4047
4051
  t(this, "isManagerRequired");
4048
4052
  /**
4049
- * Направления продаж.
4053
+ * @inheritDoc
4050
4054
  */
4051
4055
  t(this, "salesDirections");
4052
4056
  /**
4053
- * ИНН контрагента.
4057
+ * @inheritDoc
4054
4058
  */
4055
4059
  t(this, "contragentInn");
4056
4060
  /**
4057
- * Тип организационно-правовой формы контрагента.
4061
+ * @inheritDoc
4058
4062
  */
4059
4063
  t(this, "contragentType");
4060
4064
  /**
4061
- * Предпочитаемый тип доставки.
4065
+ * @inheritDoc
4062
4066
  */
4063
4067
  t(this, "preferredDeliveryType");
4064
4068
  /**
4065
- * Группы партнеров (направление деятельности).
4069
+ * @inheritDoc
4066
4070
  */
4067
4071
  t(this, "partnerGroups");
4068
4072
  /**
4069
- * Данные контактного лица.
4073
+ * @inheritDoc
4070
4074
  */
4071
4075
  t(this, "contact");
4072
4076
  /**
4073
- * Данные о параметрах поиска последнего заказа который сделал пользователь.
4077
+ * @inheritDoc
4074
4078
  */
4075
4079
  t(this, "lastOrder");
4080
+ /**
4081
+ * @inheritDoc
4082
+ */
4083
+ t(this, "isExcludedFromMsCallsToClients");
4076
4084
  var e, s, i, o, c, u;
4077
- 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 He(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 De(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 = {
4085
+ 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 He(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 De(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 = {
4078
4086
  createdAt: new k((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
4079
4087
  creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
4080
4088
  isApproved: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.isApproved
4081
- };
4089
+ }, this.isExcludedFromMsCallsToClients = r == null ? void 0 : r.isExcludedFromMsCallsToClients;
4082
4090
  }
4083
4091
  /**
4084
4092
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -4087,15 +4095,6 @@ class Qt {
4087
4095
  */
4088
4096
  resetFilterValue(r) {
4089
4097
  switch (r) {
4090
- case "id":
4091
- case "phone":
4092
- case "email":
4093
- case "name":
4094
- case "alternativeName":
4095
- case "searchTerm":
4096
- case "contragentInn":
4097
- this[r] = void 0;
4098
- break;
4099
4098
  case "cities":
4100
4099
  this.cities = [];
4101
4100
  break;
@@ -4111,9 +4110,6 @@ class Qt {
4111
4110
  case "lastLoginDate":
4112
4111
  this.lastLoginDate.from = null, this.lastLoginDate.to = null;
4113
4112
  break;
4114
- case "lastLoginDateHasOrder":
4115
- this.lastLoginDateHasOrder = void 0;
4116
- break;
4117
4113
  case "lastOrder":
4118
4114
  this.lastOrder = {};
4119
4115
  break;
@@ -4135,6 +4131,9 @@ class Qt {
4135
4131
  case "contact":
4136
4132
  this.contact = new Ne();
4137
4133
  break;
4134
+ default:
4135
+ this[r] = void 0;
4136
+ break;
4138
4137
  }
4139
4138
  return this;
4140
4139
  }
@@ -4148,7 +4147,7 @@ class Qt {
4148
4147
  return Object.keys(this).forEach((c) => {
4149
4148
  const u = this[c];
4150
4149
  // eslint-disable-next-line prettier/prettier
4151
- D(u) || y(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
4150
+ D(u) || y(u) && u.trim().length === 0 || de(u.isNewRec) && u.isNewRec() || (r[c] = u);
4152
4151
  }), !((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;
4153
4152
  }
4154
4153
  }
@@ -4172,7 +4171,7 @@ class Pr extends j {
4172
4171
  * Признак того, что заказ подтвержден в 1С.
4173
4172
  */
4174
4173
  t(this, "isApproved1c");
4175
- this.createdAt = y(e == null ? void 0 : e.createdAt) ? w(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;
4174
+ this.createdAt = y(e == null ? void 0 : e.createdAt) ? w(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4176
4175
  }
4177
4176
  }
4178
4177
  class yt extends b {
@@ -4208,7 +4207,7 @@ class yt extends b {
4208
4207
  * Список менеджеров.
4209
4208
  */
4210
4209
  t(this, "managers");
4211
- (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)));
4210
+ (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)));
4212
4211
  }
4213
4212
  }
4214
4213
  class wt {
@@ -4278,7 +4277,7 @@ class Xt {
4278
4277
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4279
4278
  }
4280
4279
  }
4281
- class x extends Te {
4280
+ class L extends Te {
4282
4281
  /**
4283
4282
  * Преобразует данные о клиенте в данные требуемые для запроса.
4284
4283
  *
@@ -4308,7 +4307,7 @@ class x extends Te {
4308
4307
  * @param contragent Данные о контрагенте клиента.
4309
4308
  */
4310
4309
  static transformContragentClientDataToRequest(r) {
4311
- var c, u, p, v, R, a, _, O;
4310
+ var c, u, p, v, R, S, _, O;
4312
4311
  let e;
4313
4312
  const s = r, i = r, o = r;
4314
4313
  switch (r.opf.slug) {
@@ -4355,7 +4354,7 @@ class x extends Te {
4355
4354
  name: o.name,
4356
4355
  alternative_name: o.alternativeName,
4357
4356
  partner_group_id: (R = o.partnerGroup) == null ? void 0 : R.id,
4358
- manager_id: (a = o.manager) == null ? void 0 : a.id,
4357
+ manager_id: (S = o.manager) == null ? void 0 : S.id,
4359
4358
  comment: o.comment,
4360
4359
  director_name: o.directorName,
4361
4360
  director_position: o.directorPosition,
@@ -4488,7 +4487,7 @@ class x extends Te {
4488
4487
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4489
4488
  */
4490
4489
  createClientCommonData(r, e = {}) {
4491
- return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new Ye(s.data), e);
4490
+ return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new Ye(s.data), e);
4492
4491
  }
4493
4492
  /**
4494
4493
  * Обновляет данные указанного клиента.
@@ -4498,7 +4497,7 @@ class x extends Te {
4498
4497
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4499
4498
  */
4500
4499
  updateClientCommonData(r, e = {}) {
4501
- return this.patch(`/internal/clients/${r.id}`, x.transformClientDataToRequest(r), void 0, e);
4500
+ return this.patch(`/internal/clients/${r.id}`, L.transformClientDataToRequest(r), void 0, e);
4502
4501
  }
4503
4502
  /**
4504
4503
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -4587,7 +4586,7 @@ class x extends Te {
4587
4586
  createContragentClientData(r, e, s = {}) {
4588
4587
  return this.post(
4589
4588
  `/internal/clients/${r}/contragents`,
4590
- x.transformContragentClientDataToRequest(e),
4589
+ L.transformContragentClientDataToRequest(e),
4591
4590
  (i) => ve.createInstance(i.data),
4592
4591
  s
4593
4592
  );
@@ -4603,7 +4602,7 @@ class x extends Te {
4603
4602
  updateContragentClientData(r, e, s = {}) {
4604
4603
  return this.patch(
4605
4604
  `/internal/clients/${r}/contragents/${e.id}`,
4606
- x.transformContragentClientDataToRequest(e),
4605
+ L.transformContragentClientDataToRequest(e),
4607
4606
  (i) => ve.createInstance(i.data),
4608
4607
  s
4609
4608
  );
@@ -4629,7 +4628,7 @@ class x extends Te {
4629
4628
  createClientDeliveryAddress(r, e, s = {}) {
4630
4629
  return this.post(
4631
4630
  `/internal/clients/${r}/delivery-addresses`,
4632
- x.transformClientDeliveryAddressToRequest(e),
4631
+ L.transformClientDeliveryAddressToRequest(e),
4633
4632
  (i) => new Pe(i.data),
4634
4633
  s
4635
4634
  );
@@ -4645,7 +4644,7 @@ class x extends Te {
4645
4644
  updateClientDeliveryAddress(r, e, s = {}) {
4646
4645
  return this.patch(
4647
4646
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4648
- x.transformClientDeliveryAddressToRequest(e),
4647
+ L.transformClientDeliveryAddressToRequest(e),
4649
4648
  (i) => new Pe(i.data),
4650
4649
  s
4651
4650
  );
@@ -4672,7 +4671,7 @@ class x extends Te {
4672
4671
  createContragentBankAccount(r, e, s, i = {}) {
4673
4672
  return this.post(
4674
4673
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4675
- x.transformClientContragentBankAccountToRequest(s),
4674
+ L.transformClientContragentBankAccountToRequest(s),
4676
4675
  (o) => new qe(o.data),
4677
4676
  i
4678
4677
  );
@@ -4689,7 +4688,7 @@ class x extends Te {
4689
4688
  updateContragentBankAccount(r, e, s, i = {}) {
4690
4689
  return this.patch(
4691
4690
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4692
- x.transformClientContragentBankAccountToRequest(s),
4691
+ L.transformClientContragentBankAccountToRequest(s),
4693
4692
  (o) => new qe(o.data),
4694
4693
  i
4695
4694
  );
@@ -5065,8 +5064,8 @@ class rs {
5065
5064
  return {
5066
5065
  // 'Следующий рабочий день' - это значение по-умолчанию
5067
5066
  nextWorkingDay: { label: "Следующий рабочий день", from: Mr(r), to: Fr(r) },
5068
- today: { label: "Сегодня", from: _e(), to: Ur() },
5069
- yesterday: { label: "Вчера", from: dr(), to: Nr() },
5067
+ today: { label: "Сегодня", from: _e(), to: dr() },
5068
+ yesterday: { label: "Вчера", from: Ur(), to: Nr() },
5070
5069
  tomorrow: { label: "Завтра", from: qr(), to: Or() }
5071
5070
  };
5072
5071
  }
@@ -5198,7 +5197,7 @@ class Rr extends Pr {
5198
5197
  date: y((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? w(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5199
5198
  address: (v = e == null ? void 0 : e.delivery) != null && v.address ? new Pe(e.delivery.address) : void 0,
5200
5199
  warehouse: (R = e == null ? void 0 : e.delivery) != null && R.warehouse ? new Ae(e.delivery.warehouse) : void 0
5201
- }, 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 = y(e == null ? void 0 : e.pendingAt) ? w(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = y(e == null ? void 0 : e.processedAt) ? w(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;
5200
+ }, this.attachedUser = new d(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) ? w(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = y(e == null ? void 0 : e.processedAt) ? w(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;
5202
5201
  }
5203
5202
  }
5204
5203
  class vt extends j {
@@ -5361,7 +5360,7 @@ class ss extends Te {
5361
5360
  return this.get(`/internal/orders/${r}`, {}, (e) => new Pt(e.data));
5362
5361
  }
5363
5362
  }
5364
- class Le {
5363
+ class xe {
5365
5364
  /**
5366
5365
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5367
5366
  *
@@ -5391,7 +5390,7 @@ class Le {
5391
5390
  this.client = new me(r == null ? void 0 : r.client), this.product = new I(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;
5392
5391
  }
5393
5392
  }
5394
- const xe = (n) => {
5393
+ const Le = (n) => {
5395
5394
  var r, e, s, i, o;
5396
5395
  return n ? ir(
5397
5396
  {
@@ -5423,9 +5422,9 @@ class is extends h {
5423
5422
  `/internal/price/products/${r}/analyze`,
5424
5423
  {
5425
5424
  ...Ze(e),
5426
- filters: xe(s)
5425
+ filters: Le(s)
5427
5426
  },
5428
- (i) => i.data.map((o) => new Le(o))
5427
+ (i) => i.data.map((o) => new xe(o))
5429
5428
  );
5430
5429
  }
5431
5430
  /**
@@ -5442,9 +5441,9 @@ class is extends h {
5442
5441
  `/internal/price/categories/${r}/analyze`,
5443
5442
  {
5444
5443
  ...Ze(e),
5445
- filters: xe(s)
5444
+ filters: Le(s)
5446
5445
  },
5447
- (i) => i.data.map((o) => new Le(o))
5446
+ (i) => i.data.map((o) => new xe(o))
5448
5447
  );
5449
5448
  }
5450
5449
  /**
@@ -5463,9 +5462,9 @@ class is extends h {
5463
5462
  `/internal/price/categories/${r}/analyze/square`,
5464
5463
  {
5465
5464
  ...e,
5466
- filters: xe(s)
5465
+ filters: Le(s)
5467
5466
  },
5468
- (i) => i.data.map((o) => new Le(o))
5467
+ (i) => i.data.map((o) => new xe(o))
5469
5468
  );
5470
5469
  }
5471
5470
  }
@@ -5516,7 +5515,7 @@ class Rt {
5516
5515
  * @inheritDoc
5517
5516
  */
5518
5517
  t(this, "currency");
5519
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = y(r.costDate) ? w(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;
5518
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = y(r.costDate) ? w(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 d(r.client) : void 0, this.executor = r.executor ? new d(r.executor) : void 0, this.currency = r.currency ? new Ce(r.currency) : void 0;
5520
5519
  }
5521
5520
  }
5522
5521
  class At extends oe {
@@ -5551,7 +5550,7 @@ class ns extends h {
5551
5550
  getProductPriceHistory(r) {
5552
5551
  var i, o, c, u;
5553
5552
  const e = T.getConfig().dateFormats.api, s = ir(
5554
- de(r, {
5553
+ Ue(r, {
5555
5554
  costDate: {
5556
5555
  from: ke((i = r.costDate) == null ? void 0 : i.from) ? q(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
5557
5556
  to: ke((c = r.costDate) == null ? void 0 : c.to) ? q(r.costDate.to, e) : (u = r.costDate) == null ? void 0 : u.to
@@ -5703,7 +5702,7 @@ class $ extends pe {
5703
5702
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
5704
5703
  */
5705
5704
  getSalesDirections() {
5706
- return this.getTypedDataArrayRequester(L, "/public/references/sales-direction", !0);
5705
+ return this.getTypedDataArrayRequester(x, "/public/references/sales-direction", !0);
5707
5706
  }
5708
5707
  /**
5709
5708
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
@@ -5767,7 +5766,7 @@ class $ extends pe {
5767
5766
  }
5768
5767
  }
5769
5768
  const A = te("__references_private", () => {
5770
- const n = m({}), r = m(void 0), e = m(void 0), s = m(void 0), i = m(void 0), o = m(void 0), c = m(void 0), u = m(void 0), p = m(void 0), v = m(void 0), R = m(void 0), a = m(void 0), _ = m(void 0), O = m(void 0), G = m(void 0), H = m(void 0), $e = m(void 0), l = m(void 0);
5769
+ const n = m({}), r = m(void 0), e = m(void 0), s = m(void 0), i = m(void 0), o = m(void 0), c = m(void 0), u = m(void 0), p = m(void 0), v = m(void 0), R = m(void 0), S = m(void 0), _ = m(void 0), O = m(void 0), G = m(void 0), H = m(void 0), $e = m(void 0), l = m(void 0);
5771
5770
  return {
5772
5771
  /**
5773
5772
  * Список загружаемых/загруженных на данный момент значений.
@@ -5816,7 +5815,7 @@ const A = te("__references_private", () => {
5816
5815
  /**
5817
5816
  * Справочник типов файлов продукктов/категорий.
5818
5817
  */
5819
- productFileTypeReference: a,
5818
+ productFileTypeReference: S,
5820
5819
  /**
5821
5820
  * Справочник типов ресурсов.
5822
5821
  */
@@ -5898,7 +5897,7 @@ const A = te("__references_private", () => {
5898
5897
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance($).getSalesDirections().then((g) => {
5899
5898
  l.salesDirectionsReference = g;
5900
5899
  }).catch(f)), l.salesDirectionsReference;
5901
- }), a = P(() => {
5900
+ }), S = P(() => {
5902
5901
  const l = A();
5903
5902
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance($).getSourcePrimaryInterest().then((g) => {
5904
5903
  l.sourcePrimaryInterestReference = g;
@@ -5977,7 +5976,7 @@ const A = te("__references_private", () => {
5977
5976
  /**
5978
5977
  * Справочник каналов первичного интереса.
5979
5978
  */
5980
- sourcePrimaryInterestsReference: a,
5979
+ sourcePrimaryInterestsReference: S,
5981
5980
  /**
5982
5981
  * Справочник типов доставки.
5983
5982
  */
@@ -6184,7 +6183,7 @@ class bt extends h {
6184
6183
  return this.get("/internal/users/info", {}, (r) => new $t(r.data));
6185
6184
  }
6186
6185
  }
6187
- const at = te("__user_state_private", () => {
6186
+ const St = te("__user_state_private", () => {
6188
6187
  const n = m({}), r = m(void 0);
6189
6188
  return {
6190
6189
  /**
@@ -6201,7 +6200,7 @@ const at = te("__user_state_private", () => {
6201
6200
  * Данные о текущем пользователе.
6202
6201
  */
6203
6202
  currentUser: P(() => {
6204
- const r = at();
6203
+ const r = St();
6205
6204
  return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(bt).getCurrentUser().then((e) => {
6206
6205
  r.currentUser = e;
6207
6206
  }).catch(f).finally(() => {
@@ -6242,7 +6241,7 @@ export {
6242
6241
  fe as Cart,
6243
6242
  Wr as CartItem,
6244
6243
  zr as CartItemBase,
6245
- dt as CartProvider,
6244
+ Ut as CartProvider,
6246
6245
  Mt as CatalogProvider,
6247
6246
  or as CatalogableItem,
6248
6247
  z as Category,
@@ -6253,7 +6252,7 @@ export {
6253
6252
  Ye as Client,
6254
6253
  yt as ClientAdditionalData,
6255
6254
  we as ClientCategory,
6256
- x as ClientDataProvider,
6255
+ L as ClientDataProvider,
6257
6256
  jt as ClientPriceProvider,
6258
6257
  Gt as ClientPriceTemplateProvider,
6259
6258
  Z as ClientProduct,
@@ -6301,7 +6300,7 @@ export {
6301
6300
  h as HttpRequester,
6302
6301
  j as Identity,
6303
6302
  Er as Image,
6304
- d as JwtPayload,
6303
+ U as JwtPayload,
6305
6304
  De as Manager,
6306
6305
  ce as ManagerCommon,
6307
6306
  ts as ManagerDataFactory,
@@ -6320,17 +6319,17 @@ export {
6320
6319
  re as PartnerGroup,
6321
6320
  pt as PaymentType,
6322
6321
  ye as PreferencesStorageProvider,
6323
- Le as PriceAnalyze,
6322
+ xe as PriceAnalyze,
6324
6323
  is as PriceAnalyzeProvider,
6325
6324
  Re as PriceCoefficient,
6326
6325
  cr as PriceCoefficientEnum,
6327
6326
  ns as PriceHistoryDataProvider,
6328
6327
  Rt as PriceHistoryItem,
6329
6328
  W as PriceTemplate,
6330
- ae as PriceTemplateCategory,
6329
+ Se as PriceTemplateCategory,
6331
6330
  se as PriceTemplateClient,
6332
6331
  pr as PriceTemplateICatalogableItem,
6333
- Se as PriceTemplateProduct,
6332
+ ae as PriceTemplateProduct,
6334
6333
  Wt as PriceTemplateProvider,
6335
6334
  ne as PricingRole,
6336
6335
  Jt as PricingRoleProvider,
@@ -6352,13 +6351,13 @@ export {
6352
6351
  $ as ReferenceDataProvider,
6353
6352
  le as Region,
6354
6353
  fr as ResourceType,
6355
- L as SalesDirection,
6354
+ x as SalesDirection,
6356
6355
  tt as SentryConfig,
6357
6356
  rr as Seo,
6358
6357
  ls as SeoDataProvider,
6359
6358
  yr as SourcePrimaryInterest,
6360
6359
  Hr as StockCount,
6361
- Ut as TemplatesListFilters,
6360
+ dt as TemplatesListFilters,
6362
6361
  je as TypedInstanceFactory,
6363
6362
  Xe as UnitsHelper,
6364
6363
  Zt as UnknownClientDataProvider,
@@ -6368,7 +6367,7 @@ export {
6368
6367
  hr as UserCommonInfo,
6369
6368
  bt as UserDataProvider,
6370
6369
  Xr as UserPricingRole,
6371
- U as UserShortInfo,
6370
+ d as UserShortInfo,
6372
6371
  Tt as UserTypeEnum,
6373
6372
  st as VersionConfig,
6374
6373
  Ae as Warehouse,