@snabcentr/common-lib 2.25.2 → 2.52.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- var $t = Object.defineProperty;
2
- var kt = (n, r, e) => r in n ? $t(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var s = (n, r, e) => kt(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as Kr } from "jwt-decode";
5
- import { merge as Ne, isNil as m, isEmpty as J, noop as T, mapValues as Xr, isArray as W, every as Ot, split as Lt, startsWith as Zr, endsWith as It, includes as xt, isString as R, isFunction as br, map as De, isObject as Ve, isDate as Je, isError as _r, toLower as _t, isPlainObject as Nt, isUndefined as He, constant as qt, toUpper as Et, cloneDeep as Ut, forEach as Ft, round as Mt, omitBy as et } from "lodash-es";
6
- import { objectToCamel as Sr, objectToSnake as Ht } from "ts-case-convert";
1
+ var kt = Object.defineProperty;
2
+ var Ot = (n, r, e) => r in n ? kt(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var s = (n, r, e) => Ot(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as Xr } from "jwt-decode";
5
+ import { merge as Ne, isNil as m, isEmpty as J, noop as T, mapValues as Zr, isArray as W, every as Lt, split as It, startsWith as et, endsWith as xt, includes as _t, isString as R, isFunction as br, map as De, isObject as Ve, isDate as Je, isError as _r, assign as Nr, toLower as Nt, isPlainObject as qt, isUndefined as He, constant as Et, toUpper as Ut, cloneDeep as Ft, forEach as Mt, round as Ht, omitBy as rt } from "lodash-es";
6
+ import { objectToCamel as Sr, objectToSnake as Bt } from "ts-case-convert";
7
7
  import { defineStore as ne } from "pinia";
8
- import { ref as w, markRaw as Bt, computed as A } from "vue";
9
- import { isAfter as Nr, parseISO as C, startOfToday as qe, format as k, endOfMonth as x, addMonths as $, differenceInCalendarMonths as zt, startOfMonth as E, getDate as qr, getDaysInMonth as Wt, endOfDay as z, startOfDay as ge, setDate as jt, startOfWeek as ee, addWeeks as ar, differenceInCalendarDays as We, addDays as re, isValid as Gt, subDays as je, addBusinessDays as Yt, startOfYear as ue, endOfYear as de, endOfWeek as $e, endOfTomorrow as Qt, startOfTomorrow as Vt, endOfYesterday as Jt, startOfYesterday as Kt, endOfToday as Xt, startOfQuarter as ke, endOfQuarter as Be, addYears as ir, addQuarters as nr, subYears as or, subQuarters as cr, subMonths as lr, subWeeks as Er, addSeconds as Zt } from "date-fns";
10
- import es, { CanceledError as rs } from "axios";
8
+ import { ref as v, markRaw as zt, computed as A } from "vue";
9
+ import { isAfter as qr, parseISO as C, startOfToday as qe, format as k, endOfMonth as x, addMonths as $, differenceInCalendarMonths as Wt, startOfMonth as E, getDate as Er, getDaysInMonth as jt, endOfDay as z, startOfDay as ge, setDate as Gt, startOfWeek as ee, addWeeks as ar, differenceInCalendarDays as We, addDays as re, isValid as Yt, subDays as je, addBusinessDays as Qt, startOfYear as ue, endOfYear as de, endOfWeek as $e, endOfTomorrow as Vt, startOfTomorrow as Jt, endOfYesterday as Kt, startOfYesterday as Xt, endOfToday as Zt, startOfQuarter as ke, endOfQuarter as Be, addYears as ir, addQuarters as nr, subYears as or, subQuarters as cr, subMonths as lr, subWeeks as Ur, addSeconds as es } from "date-fns";
10
+ import rs, { CanceledError as ts } from "axios";
11
11
  class Te {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
@@ -107,11 +107,11 @@ class Te {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = Kr(r), t = new Te(Sr(e));
110
+ const e = Xr(r), t = new Te(Sr(e));
111
111
  return t.resourceAccess = e.resource_access, t;
112
112
  }
113
113
  }
114
- class rt extends Te {
114
+ class tt extends Te {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -151,11 +151,11 @@ class rt extends Te {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- const t = Kr(e), i = new rt(Sr(t));
154
+ const t = Xr(e), i = new tt(Sr(t));
155
155
  return i.resourceAccess = t.resource_access, i;
156
156
  }
157
157
  }
158
- class ts {
158
+ class ss {
159
159
  /**
160
160
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
161
161
  *
@@ -177,7 +177,7 @@ class ts {
177
177
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
178
178
  }
179
179
  }
180
- class ss {
180
+ class is {
181
181
  /**
182
182
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
183
183
  *
@@ -199,7 +199,7 @@ class ss {
199
199
  this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
200
200
  }
201
201
  }
202
- class is {
202
+ class ns {
203
203
  /**
204
204
  * Инициализирует экземпляр класса {@link SentryConfig}.
205
205
  *
@@ -244,7 +244,7 @@ class is {
244
244
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
245
245
  }
246
246
  }
247
- class ns {
247
+ class os {
248
248
  /**
249
249
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
250
250
  *
@@ -283,7 +283,7 @@ class ns {
283
283
  this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
284
284
  }
285
285
  }
286
- class os {
286
+ class cs {
287
287
  /**
288
288
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
289
289
  *
@@ -327,10 +327,10 @@ class os {
327
327
  */
328
328
  s(this, "dateFormats");
329
329
  var e, t, i;
330
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new ss(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ts(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new is({
330
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new is(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ss(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new ns({
331
331
  environment: this.environment,
332
332
  ...r == null ? void 0 : r.sentry
333
- }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new ns(r.websocket) : void 0, this.dateFormats = {
333
+ }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new os(r.websocket) : void 0, this.dateFormats = {
334
334
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
335
335
  uiDate: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
336
336
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
@@ -338,7 +338,7 @@ class os {
338
338
  }
339
339
  }
340
340
  const O = ne("common.config", () => {
341
- const n = w(new os());
341
+ const n = v(new cs());
342
342
  return {
343
343
  /**
344
344
  * Конфигурационные данные приложения.
@@ -379,7 +379,7 @@ class Ge {
379
379
  if (e)
380
380
  try {
381
381
  const t = JSON.parse(e);
382
- if (!t.availableFor || Nr(C(t.availableFor) || qe(), /* @__PURE__ */ new Date())) {
382
+ if (!t.availableFor || qr(C(t.availableFor) || qe(), /* @__PURE__ */ new Date())) {
383
383
  if (m(t.data) || J(t.data))
384
384
  throw new Error("Data is empty");
385
385
  return t.data;
@@ -454,7 +454,7 @@ class Ge {
454
454
  const i = localStorage.getItem(t);
455
455
  if (i) {
456
456
  const o = JSON.parse(i);
457
- o.availableFor && !Nr(C(o.availableFor) || qe(), /* @__PURE__ */ new Date()) && r.push(t);
457
+ o.availableFor && !qr(C(o.availableFor) || qe(), /* @__PURE__ */ new Date()) && r.push(t);
458
458
  }
459
459
  } catch {
460
460
  r.push(t);
@@ -470,7 +470,7 @@ class Ge {
470
470
  }
471
471
  }
472
472
  }
473
- function Ur(n) {
473
+ function Fr(n) {
474
474
  try {
475
475
  const r = Te.getJwtPayload(n);
476
476
  return new Date(r.exp * 1e3);
@@ -479,7 +479,7 @@ function Ur(n) {
479
479
  }
480
480
  }
481
481
  const pe = ne("common.auth_state_private", () => {
482
- const n = w(
482
+ const n = v(
483
483
  (() => {
484
484
  var u;
485
485
  const o = Ge.getActualDataFromStorage(
@@ -491,11 +491,11 @@ const pe = ne("common.auth_state_private", () => {
491
491
  const c = (u = O().config.devMode) == null ? void 0 : u.initAuthBearerToken;
492
492
  return c ? Promise.resolve(c) : void 0;
493
493
  })()
494
- ), r = w(void 0), e = w(void 0), t = Bt(/* @__PURE__ */ new Map());
494
+ ), r = v(void 0), e = v(void 0), t = zt(/* @__PURE__ */ new Map());
495
495
  function i() {
496
496
  e.value = void 0, m(n.value) || n.value.then((o) => {
497
497
  const c = Te.getJwtPayload(o);
498
- e.value = c.exp * 1e3 > Date.now() ? Xr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
498
+ e.value = c.exp * 1e3 > Date.now() ? Zr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
499
499
  }).catch(T);
500
500
  }
501
501
  return {
@@ -526,7 +526,7 @@ const pe = ne("common.auth_state_private", () => {
526
526
  if (m(o.jwtToken) && !m(o.jwtTokenUpdater)) {
527
527
  const c = o.jwtTokenUpdater();
528
528
  o.jwtToken = c, c.then((u) => {
529
- o.jwtToken = Promise.resolve(u), Ge.saveActualDataToStorage("sc.token", u, Ur(u)), o.recalculateUserPermissions();
529
+ o.jwtToken = Promise.resolve(u), Ge.saveActualDataToStorage("sc.token", u, Fr(u)), o.recalculateUserPermissions();
530
530
  }).catch(T);
531
531
  }
532
532
  return o.jwtToken;
@@ -536,7 +536,7 @@ const pe = ne("common.auth_state_private", () => {
536
536
  }
537
537
  function e(o) {
538
538
  const c = pe();
539
- c.jwtToken = Promise.resolve(o), Ge.saveActualDataToStorage("sc.token", o, Ur(o)), c.recalculateUserPermissions();
539
+ c.jwtToken = Promise.resolve(o), Ge.saveActualDataToStorage("sc.token", o, Fr(o)), c.recalculateUserPermissions();
540
540
  }
541
541
  function t() {
542
542
  const o = pe();
@@ -546,7 +546,7 @@ const pe = ne("common.auth_state_private", () => {
546
546
  const c = pe();
547
547
  !m(c.jwtToken) && m(c.userPermissions) && c.jwtToken.then((g) => {
548
548
  const a = Te.getJwtPayload(g);
549
- c.userPermissions = a.exp * 1e3 > Date.now() ? Xr(a.resourceAccess, (P) => (P == null ? void 0 : P.roles) ?? []) : void 0;
549
+ c.userPermissions = a.exp * 1e3 > Date.now() ? Zr(a.resourceAccess, (P) => (P == null ? void 0 : P.roles) ?? []) : void 0;
550
550
  }).catch(T);
551
551
  const u = W(o) ? o.join(" && ") : o;
552
552
  if (c.userPermissionsComputedRefs.has(u))
@@ -554,13 +554,13 @@ const pe = ne("common.auth_state_private", () => {
554
554
  const p = A(() => {
555
555
  const g = (a) => {
556
556
  var le;
557
- const P = Lt(a, ".");
557
+ const P = It(a, ".");
558
558
  if (P.length < 2)
559
559
  return !1;
560
560
  const [be, Se] = P, ce = (le = pe().userPermissions) == null ? void 0 : le[be];
561
561
  return W(ce) && ce.includes(Se);
562
562
  };
563
- return W(o) ? Ot(o, (a) => g(a)) : g(o);
563
+ return W(o) ? Lt(o, (a) => g(a)) : g(o);
564
564
  });
565
565
  return c.userPermissionsComputedRefs.set(u, p), p;
566
566
  }
@@ -619,7 +619,7 @@ class G {
619
619
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : m(this.id);
620
620
  }
621
621
  }
622
- class vr extends G {
622
+ class wr extends G {
623
623
  /**
624
624
  * Инициализирует экземпляр класса {@link BlogPostMediaFile}.
625
625
  *
@@ -707,7 +707,7 @@ class ae extends G {
707
707
  * @param slug Символьное обозначение статьи.
708
708
  */
709
709
  static getSlugError(e) {
710
- return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : Zr(e, "-") || It(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : xt(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
710
+ return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : et(e, "-") || xt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : _t(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
711
711
  }
712
712
  /**
713
713
  * Преобразует значение даты, полученное из API, в объект {@link Date}.
@@ -740,7 +740,7 @@ class ur extends ae {
740
740
  * @inheritDoc
741
741
  */
742
742
  s(this, "media");
743
- this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new vr(t));
743
+ this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new wr(t));
744
744
  }
745
745
  /**
746
746
  * Возвращает данные статьи для отправки на портал.
@@ -803,7 +803,7 @@ class b {
803
803
  this.from = R(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = R(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
804
804
  }
805
805
  }
806
- class Ks extends Fe {
806
+ class Xs extends Fe {
807
807
  /**
808
808
  * Инициализирует экземпляр класса {@link BlogPostsListFilters}.
809
809
  *
@@ -911,7 +911,7 @@ class _ {
911
911
  return De(e, (t) => _.instanceInitializer(r, t));
912
912
  }
913
913
  }
914
- const v = class v {
914
+ const w = class w {
915
915
  /**
916
916
  * Инициализирует экземпляр класса {@link HttpRequester}.
917
917
  */
@@ -950,7 +950,7 @@ const v = class v {
950
950
  * @param request Данные запроса.
951
951
  */
952
952
  // eslint-disable-next-line class-methods-use-this
953
- s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && !m(r.params) && (r.params = v.toSnakeCaseData(r.params)), ["put", "patch", "post"].includes(_t(r.method)) && !m(r.data) && (r.data = v.toSnakeCaseData(r.data))), r));
953
+ s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && !m(r.params) && (r.params = w.toSnakeCaseData(r.params)), ["put", "patch", "post"].includes(Nt(r.method)) && !m(r.data) && (r.data = w.toSnakeCaseData(r.data))), r));
954
954
  /**
955
955
  * Перехватчик ошибок ответов на запрос.
956
956
  *
@@ -964,7 +964,7 @@ const v = class v {
964
964
  return Promise.reject(r);
965
965
  e.__isRetryRequest = !0;
966
966
  try {
967
- await v.isStaleUnauthorizedRequest(e) || await v.refreshAccessToken();
967
+ await w.isStaleUnauthorizedRequest(e) || await w.refreshAccessToken();
968
968
  } catch {
969
969
  return Promise.reject(r);
970
970
  }
@@ -981,7 +981,7 @@ const v = class v {
981
981
  s(this, "canceledResponseInterceptor", (r) => {
982
982
  const e = r.rawError ?? r;
983
983
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
984
- throw new rs("Request canceled");
984
+ throw new ts("Request canceled");
985
985
  return Promise.reject(r);
986
986
  });
987
987
  /**
@@ -990,8 +990,8 @@ const v = class v {
990
990
  * @param response Данные ответа на запрос.
991
991
  */
992
992
  // eslint-disable-next-line class-methods-use-this
993
- s(this, "dataConverterResponseInterceptor", (r) => (r.data = v.toCamelCaseData(r.data), r));
994
- this.httpClient = es.create({
993
+ s(this, "dataConverterResponseInterceptor", (r) => (r.data = w.toCamelCaseData(r.data), r));
994
+ this.httpClient = rs.create({
995
995
  headers: {
996
996
  Accept: "application/json",
997
997
  "Content-Type": "application/json"
@@ -1003,14 +1003,14 @@ const v = class v {
1003
1003
  this.authRequestInterceptor,
1004
1004
  (r) => Promise.reject(r)
1005
1005
  ), this.interceptorIds.request[M.DEFAULT_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
1006
- (r) => v.applyDefaultRequestHook(r),
1006
+ (r) => w.applyDefaultRequestHook(r),
1007
1007
  (r) => Promise.reject(r)
1008
1008
  ), this.interceptorIds.request[M.BASE_URL_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
1009
1009
  this.setBaseUrlRequestInterceptor,
1010
1010
  (r) => Promise.reject(r)
1011
1011
  ), this.interceptorIds.response[M.CONVERT_HTTP_ERROR_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
1012
1012
  (r) => r,
1013
- (r) => v.convertHttpErrorResponse(r)
1013
+ (r) => w.convertHttpErrorResponse(r)
1014
1014
  ), this.interceptorIds.response[M.CANCELED_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
1015
1015
  (r) => r,
1016
1016
  this.canceledResponseInterceptor
@@ -1028,7 +1028,7 @@ const v = class v {
1028
1028
  * @param handler Ссылка на функцию-обработчик ошибок.
1029
1029
  */
1030
1030
  static setDefaultErrorsResponseHandler(r) {
1031
- v.defaultErrorsResponseHandler = r;
1031
+ w.defaultErrorsResponseHandler = r;
1032
1032
  }
1033
1033
  /**
1034
1034
  * Устанавливает базовый хук для запросов.
@@ -1036,7 +1036,7 @@ const v = class v {
1036
1036
  * @param hook Ссылка на функцию-хук.
1037
1037
  */
1038
1038
  static setDefaultRequestHook(r) {
1039
- v.defaultRequestHook = r;
1039
+ w.defaultRequestHook = r;
1040
1040
  }
1041
1041
  /**
1042
1042
  * Проверяет, что значение можно безопасно пропустить через конвертер ключей.
@@ -1054,7 +1054,7 @@ const v = class v {
1054
1054
  * @param data Исходные данные.
1055
1055
  */
1056
1056
  static toCamelCaseData(r) {
1057
- return v.canConvertCaseKeys(r) ? Sr(r) : r;
1057
+ return w.canConvertCaseKeys(r) ? Sr(r) : r;
1058
1058
  }
1059
1059
  /**
1060
1060
  * Приводит ключи данных к snake_case, если значение является обычным объектом или массивом.
@@ -1062,7 +1062,7 @@ const v = class v {
1062
1062
  * @param data Исходные данные.
1063
1063
  */
1064
1064
  static toSnakeCaseData(r) {
1065
- return v.canConvertCaseKeys(r) ? Ht(r) : r;
1065
+ return w.canConvertCaseKeys(r) ? Bt(r) : r;
1066
1066
  }
1067
1067
  /**
1068
1068
  * Возвращает токен доступа из заголовка Authorization исходного запроса.
@@ -1071,7 +1071,7 @@ const v = class v {
1071
1071
  */
1072
1072
  static getRequestAccessToken(r) {
1073
1073
  const e = r.headers.get("Authorization"), t = R(e) ? e : void 0, i = "Bearer ";
1074
- if (m(t) || !Zr(t, i))
1074
+ if (m(t) || !et(t, i))
1075
1075
  return;
1076
1076
  const o = t.slice(i.length);
1077
1077
  return o === "" ? void 0 : o;
@@ -1084,7 +1084,7 @@ const v = class v {
1084
1084
  * @param request Данные запроса.
1085
1085
  */
1086
1086
  static async isStaleUnauthorizedRequest(r) {
1087
- const e = v.getRequestAccessToken(r);
1087
+ const e = w.getRequestAccessToken(r);
1088
1088
  if (m(e))
1089
1089
  return !1;
1090
1090
  const t = ze().jwtToken;
@@ -1100,13 +1100,13 @@ const v = class v {
1100
1100
  * Сбрасывает токен и запускает одно обновление на все параллельные ответы 401.
1101
1101
  */
1102
1102
  static refreshAccessToken() {
1103
- if (!m(v.tokenRefreshPromise))
1104
- return v.tokenRefreshPromise;
1103
+ if (!m(w.tokenRefreshPromise))
1104
+ return w.tokenRefreshPromise;
1105
1105
  ze().invalidateJwtToken();
1106
1106
  const e = ze().jwtToken ?? Promise.resolve();
1107
- return v.tokenRefreshPromise = e.finally(() => {
1108
- v.tokenRefreshPromise = void 0;
1109
- }), v.tokenRefreshPromise;
1107
+ return w.tokenRefreshPromise = e.finally(() => {
1108
+ w.tokenRefreshPromise = void 0;
1109
+ }), w.tokenRefreshPromise;
1110
1110
  }
1111
1111
  /**
1112
1112
  * Вызывает базовый хук запроса.
@@ -1116,7 +1116,7 @@ const v = class v {
1116
1116
  * @param request Данные запроса.
1117
1117
  */
1118
1118
  static applyDefaultRequestHook(r) {
1119
- return m(v.defaultRequestHook) ? r : v.defaultRequestHook(r);
1119
+ return m(w.defaultRequestHook) ? r : w.defaultRequestHook(r);
1120
1120
  }
1121
1121
  /**
1122
1122
  * Возвращает экземпляр объекта текущего класса.
@@ -1124,7 +1124,7 @@ const v = class v {
1124
1124
  * @param type Тип данных, которыми оперирует метод.
1125
1125
  */
1126
1126
  static getInstance(r) {
1127
- return Object.prototype.hasOwnProperty.call(v.instances, r.name) || (v.instances[r.name] = _.simpleInstanceInitializer(r)), v.instances[r.name];
1127
+ return Object.prototype.hasOwnProperty.call(w.instances, r.name) || (w.instances[r.name] = _.simpleInstanceInitializer(r)), w.instances[r.name];
1128
1128
  }
1129
1129
  /**
1130
1130
  * Приводит данные об ошибке к форме ошибки HTTP запроса.
@@ -1135,13 +1135,16 @@ const v = class v {
1135
1135
  * @param error Данные об ошибке.
1136
1136
  */
1137
1137
  static toHttpResponseError(r) {
1138
- return Ve(r) && "status" in r ? r : {
1138
+ if (Ve(r) && "status" in r)
1139
+ return r;
1140
+ const e = _r(r) ? r.message : "Не удалось обработать данные ответа сервера.";
1141
+ return Nr(new Error(e), {
1142
+ name: "HttpResponseError",
1139
1143
  status: 0,
1140
1144
  statusText: "Invalid response data",
1141
- message: _r(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1142
1145
  headers: {},
1143
1146
  rawError: _r(r) ? r : new Error(String(r))
1144
- };
1147
+ });
1145
1148
  }
1146
1149
  /**
1147
1150
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1152,15 +1155,17 @@ const v = class v {
1152
1155
  var e, t;
1153
1156
  if (m(r) || !m(r.request) || !m(r.response)) {
1154
1157
  const i = m(r) ? {} : r == null ? void 0 : r.response;
1155
- return Promise.reject({
1156
- status: (i == null ? void 0 : i.status) ?? 0,
1157
- statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
1158
- message: ((e = i == null ? void 0 : i.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error.",
1159
- errors: (t = i == null ? void 0 : i.data) == null ? void 0 : t.errors,
1160
- headers: (i == null ? void 0 : i.headers) ?? {},
1161
- data: i == null ? void 0 : i.data,
1162
- rawError: r
1163
- });
1158
+ return Promise.reject(
1159
+ Nr(new Error(((e = i == null ? void 0 : i.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error."), {
1160
+ name: "HttpResponseError",
1161
+ status: (i == null ? void 0 : i.status) ?? 0,
1162
+ statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
1163
+ errors: (t = i == null ? void 0 : i.data) == null ? void 0 : t.errors,
1164
+ headers: (i == null ? void 0 : i.headers) ?? {},
1165
+ data: i == null ? void 0 : i.data,
1166
+ rawError: r
1167
+ })
1168
+ );
1164
1169
  }
1165
1170
  return Promise.reject(r);
1166
1171
  }
@@ -1175,7 +1180,7 @@ const v = class v {
1175
1180
  request(r, e = void 0, t = {}, i = !1) {
1176
1181
  const o = this.httpClient.request(r).then((c) => e ? e(c) : c.data);
1177
1182
  return o.catch((c) => {
1178
- (c == null ? void 0 : c.name) !== "CanceledError" && v.defaultErrorsResponseHandler(v.toHttpResponseError(c), t, i);
1183
+ (c == null ? void 0 : c.name) !== "CanceledError" && w.defaultErrorsResponseHandler(w.toHttpResponseError(c), t, i);
1179
1184
  }), o;
1180
1185
  }
1181
1186
  /**
@@ -1263,23 +1268,23 @@ const v = class v {
1263
1268
  * Экземпляр объекта текущего класса.
1264
1269
  */
1265
1270
  // eslint-disable-next-line no-use-before-define
1266
- s(v, "instances", {}), /**
1271
+ s(w, "instances", {}), /**
1267
1272
  * Базовый обработчик ошибок выполнения запросов.
1268
1273
  *
1269
1274
  * @param error Данные об ошибке.
1270
1275
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1271
1276
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1272
1277
  */
1273
- s(v, "defaultErrorsResponseHandler", T), /**
1278
+ s(w, "defaultErrorsResponseHandler", T), /**
1274
1279
  * Базовый хук для запросов.
1275
1280
  */
1276
- s(v, "defaultRequestHook"), /**
1281
+ s(w, "defaultRequestHook"), /**
1277
1282
  * Общий Promise обновления токена для параллельных ответов 401.
1278
1283
  */
1279
- s(v, "tokenRefreshPromise");
1280
- let h = v;
1284
+ s(w, "tokenRefreshPromise");
1285
+ let h = w;
1281
1286
  var dr = /* @__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))(dr || {});
1282
- class Fr {
1287
+ class Mr {
1283
1288
  /**
1284
1289
  * Инициализирует экземпляр класса {@link FilterItem}.
1285
1290
  *
@@ -1312,7 +1317,7 @@ class Fr {
1312
1317
  };
1313
1318
  if (Je(this.value))
1314
1319
  e.value = k(this.value, r);
1315
- else if (Nt(this.value)) {
1320
+ else if (qt(this.value)) {
1316
1321
  const t = this.value;
1317
1322
  e.value = {
1318
1323
  from: t.from ? k(t.from, r) : null,
@@ -1343,7 +1348,7 @@ class te {
1343
1348
  */
1344
1349
  s(this, "groups");
1345
1350
  var e, t;
1346
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Fr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new te(i))) ?? [];
1351
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Mr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new te(i))) ?? [];
1347
1352
  }
1348
1353
  /**
1349
1354
  * Преобразует группу фильтров в примитивное представление для API.
@@ -1353,7 +1358,7 @@ class te {
1353
1358
  toPrimitive() {
1354
1359
  return {
1355
1360
  groupOp: this.groupOp,
1356
- filters: this.filters.map((r) => r instanceof Fr && br(r.toPrimitive) ? r.toPrimitive() : r),
1361
+ filters: this.filters.map((r) => r instanceof Mr && br(r.toPrimitive) ? r.toPrimitive() : r),
1357
1362
  groups: this.groups.map((r) => r instanceof te ? r.toPrimitive() : r)
1358
1363
  };
1359
1364
  }
@@ -1406,7 +1411,7 @@ class Y extends h {
1406
1411
  );
1407
1412
  }
1408
1413
  }
1409
- class wr extends Y {
1414
+ class vr extends Y {
1410
1415
  /**
1411
1416
  * Возвращает данные статьи блога, подготовленные для отправки на портал.
1412
1417
  *
@@ -1463,7 +1468,7 @@ class wr extends Y {
1463
1468
  * @see /doc/api/internal#/operations/api_internal_blog_create
1464
1469
  */
1465
1470
  createPost(r, e = {}) {
1466
- return this.post("/internal/blog", wr.preparePostSaveData(r), (t) => new ur(t.data), e);
1471
+ return this.post("/internal/blog", vr.preparePostSaveData(r), (t) => new ur(t.data), e);
1467
1472
  }
1468
1473
  /**
1469
1474
  * Изменяет данные о статье блога.
@@ -1477,7 +1482,7 @@ class wr extends Y {
1477
1482
  * @see /doc/api/internal#/operations/api_internal_blog_update
1478
1483
  */
1479
1484
  updatePost(r, e, t = {}) {
1480
- return this.patch(`/internal/blog/${r}`, wr.preparePostSaveData(e), (i) => new ur(i.data), t);
1485
+ return this.patch(`/internal/blog/${r}`, vr.preparePostSaveData(e), (i) => new ur(i.data), t);
1481
1486
  }
1482
1487
  /**
1483
1488
  * Удаляет статью блога.
@@ -1512,7 +1517,7 @@ class wr extends Y {
1512
1517
  i && i(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1513
1518
  }
1514
1519
  },
1515
- (c) => new vr(c.data),
1520
+ (c) => new wr(c.data),
1516
1521
  o
1517
1522
  );
1518
1523
  }
@@ -1532,7 +1537,7 @@ class wr extends Y {
1532
1537
  return this.patch(
1533
1538
  `/internal/blog/${r}/media/${e}`,
1534
1539
  { isCover: t },
1535
- (o) => new vr(o.data),
1540
+ (o) => new wr(o.data),
1536
1541
  i
1537
1542
  );
1538
1543
  }
@@ -1590,7 +1595,7 @@ class N extends L {
1590
1595
  this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
1591
1596
  }
1592
1597
  }
1593
- class cs extends L {
1598
+ class ls extends L {
1594
1599
  /**
1595
1600
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1596
1601
  *
@@ -1629,7 +1634,7 @@ class cs extends L {
1629
1634
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = R(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new N(e == null ? void 0 : e.owner), this.deletedAt = R(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1630
1635
  }
1631
1636
  }
1632
- class tt extends L {
1637
+ class st extends L {
1633
1638
  /**
1634
1639
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1635
1640
  *
@@ -1644,7 +1649,7 @@ class tt extends L {
1644
1649
  this.updatedAt = R(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1645
1650
  }
1646
1651
  }
1647
- class fe extends tt {
1652
+ class fe extends st {
1648
1653
  /**
1649
1654
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1650
1655
  *
@@ -1667,7 +1672,7 @@ class fe extends tt {
1667
1672
  this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.owner = e != null && e.owner ? new N(e.owner) : void 0;
1668
1673
  }
1669
1674
  }
1670
- var st = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(st || {});
1675
+ var it = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(it || {});
1671
1676
  class D extends L {
1672
1677
  /**
1673
1678
  * Инициализирует экземпляр класса {@link Reference}.
@@ -1694,11 +1699,11 @@ class Pe extends D {
1694
1699
  static getRetailPriceCoefficient() {
1695
1700
  const r = new Pe({
1696
1701
  id: -2,
1697
- slug: st.Retail,
1702
+ slug: it.Retail,
1698
1703
  name: "Розн. цена",
1699
1704
  guid: ""
1700
1705
  });
1701
- return r.isNewRec = qt(!0), r;
1706
+ return r.isNewRec = Et(!0), r;
1702
1707
  }
1703
1708
  }
1704
1709
  class $r {
@@ -1731,7 +1736,7 @@ class $r {
1731
1736
  this.coefficient = new Pe(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
1732
1737
  }
1733
1738
  }
1734
- class it {
1739
+ class nt {
1735
1740
  /**
1736
1741
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
1737
1742
  *
@@ -1780,10 +1785,10 @@ class Me extends D {
1780
1785
  * Координаты склада.
1781
1786
  */
1782
1787
  s(this, "coordinates");
1783
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new it(e == null ? void 0 : e.coordinates);
1788
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new nt(e == null ? void 0 : e.coordinates);
1784
1789
  }
1785
1790
  }
1786
- class ls {
1791
+ class us {
1787
1792
  /**
1788
1793
  * Инициализирует экземпляр класса {@link StockCount}.
1789
1794
  *
@@ -1828,7 +1833,7 @@ class j extends L {
1828
1833
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
1829
1834
  }
1830
1835
  }
1831
- class Mr extends L {
1836
+ class Hr extends L {
1832
1837
  /**
1833
1838
  * Инициализирует экземпляр класса {@link ProductUnit}.
1834
1839
  *
@@ -1870,7 +1875,7 @@ class Ee extends L {
1870
1875
  this.code = (e == null ? void 0 : e.code) ?? "";
1871
1876
  }
1872
1877
  }
1873
- class nt extends Ee {
1878
+ class ot extends Ee {
1874
1879
  /**
1875
1880
  * Инициализирует экземпляр класса {@link CatalogableItem}.
1876
1881
  *
@@ -1889,7 +1894,7 @@ class nt extends Ee {
1889
1894
  this.slug = (e == null ? void 0 : e.slug) ?? "";
1890
1895
  }
1891
1896
  }
1892
- class us extends nt {
1897
+ class ps extends ot {
1893
1898
  /**
1894
1899
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
1895
1900
  *
@@ -1904,7 +1909,7 @@ class us extends nt {
1904
1909
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
1905
1910
  }
1906
1911
  }
1907
- class ps {
1912
+ class hs {
1908
1913
  /**
1909
1914
  * Инициализирует экземпляр класса {@link Image}.
1910
1915
  *
@@ -1927,7 +1932,7 @@ class ps {
1927
1932
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
1928
1933
  }
1929
1934
  }
1930
- class Rr extends nt {
1935
+ class Rr extends ot {
1931
1936
  /**
1932
1937
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
1933
1938
  *
@@ -1942,7 +1947,7 @@ class Rr extends nt {
1942
1947
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
1943
1948
  }
1944
1949
  }
1945
- class q extends us {
1950
+ class q extends ps {
1946
1951
  /**
1947
1952
  * Инициализирует экземпляр класса {@link Product}.
1948
1953
  *
@@ -2019,9 +2024,9 @@ class q extends us {
2019
2024
  * Список коэффициентов цен на продукт.
2020
2025
  */
2021
2026
  s(this, "priceCoefficients");
2022
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Mr(e.unit) : new Mr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new j(e.currency) : new j(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = R(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 ls(p))) ?? [], this.type = "product";
2027
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Hr(e.unit) : new Hr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new j(e.currency) : new j(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = R(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 us(p))) ?? [], this.type = "product";
2023
2028
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
2024
- t && (this.category = new Rr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Rr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new ps(p, O().config.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 $r(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
2029
+ t && (this.category = new Rr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Rr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new hs(p, O().config.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 $r(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
2025
2030
  }
2026
2031
  /**
2027
2032
  * Возвращает признак, что это измеряемый товар.
@@ -2079,7 +2084,7 @@ class X extends q {
2079
2084
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
2080
2085
  */
2081
2086
  s(this, "isFavorite");
2082
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? kr.Product, this.discount = e != null && e.discount ? new cs(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new fe(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2087
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? kr.Product, this.discount = e != null && e.discount ? new ls(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new fe(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2083
2088
  }
2084
2089
  }
2085
2090
  class Ae extends Rr {
@@ -2106,10 +2111,10 @@ class Ae extends Rr {
2106
2111
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
2107
2112
  */
2108
2113
  s(this, "currencyRates");
2109
- 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(([t, i]) => [Et(t), i])) : void 0;
2114
+ 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(([t, i]) => [Ut(t), i])) : void 0;
2110
2115
  }
2111
2116
  }
2112
- class ot extends G {
2117
+ class ct extends G {
2113
2118
  /**
2114
2119
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2115
2120
  *
@@ -2185,10 +2190,10 @@ class ot extends G {
2185
2190
  * @inheritDoc
2186
2191
  */
2187
2192
  s(this, "replacementId");
2188
- this.product = new X(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new Ae(), this.currency = e.currency ? new j(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ut(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new N(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2193
+ this.product = new X(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new Ae(), this.currency = e.currency ? new j(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ft(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new N(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2189
2194
  }
2190
2195
  }
2191
- let Or = class extends ot {
2196
+ let Or = class extends ct {
2192
2197
  /**
2193
2198
  * Инициализирует экземпляр класса {@link OrderItem}.
2194
2199
  *
@@ -2257,7 +2262,7 @@ class Oe {
2257
2262
  this.items = r.items.map((e) => new Or(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2258
2263
  }
2259
2264
  }
2260
- class Zs extends h {
2265
+ class ei extends h {
2261
2266
  /**
2262
2267
  * Возвращает содержимое корзины указанного клиента.
2263
2268
  *
@@ -2371,7 +2376,7 @@ class Zs extends h {
2371
2376
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
2372
2377
  }
2373
2378
  }
2374
- var hs = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(hs || {}), gs = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(gs || {}), ct = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(ct || {});
2379
+ var gs = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(gs || {}), fs = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(fs || {}), lt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(lt || {});
2375
2380
  class Q extends Ae {
2376
2381
  /**
2377
2382
  * Инициализирует экземпляр класса {@link Category}.
@@ -2392,7 +2397,7 @@ class Q extends Ae {
2392
2397
  this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new q(o));
2393
2398
  }
2394
2399
  }
2395
- class lt {
2400
+ class ut {
2396
2401
  /**
2397
2402
  * Инициализирует экземпляр класса {@link ContactLinks}.
2398
2403
  *
@@ -2440,12 +2445,12 @@ class Lr extends L {
2440
2445
  * @inheritDoc
2441
2446
  */
2442
2447
  s(this, "isRegionalDirector");
2443
- this.salesDirection = e != null && e.salesDirection ? new U(e.salesDirection) : new U(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new lt(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2448
+ this.salesDirection = e != null && e.salesDirection ? new U(e.salesDirection) : new U(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new ut(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2444
2449
  }
2445
2450
  }
2446
2451
  class Ir extends D {
2447
2452
  }
2448
- class ut extends L {
2453
+ class pt extends L {
2449
2454
  /**
2450
2455
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
2451
2456
  *
@@ -2540,10 +2545,10 @@ class Z extends Lr {
2540
2545
  * Дата и время последнего входа в систему.
2541
2546
  */
2542
2547
  s(this, "lastLoginAt");
2543
- this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new ut(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Ir(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (i = e == null ? void 0 : e.managerRegions) == null ? void 0 : i.map((c) => new Ze(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new Z(c)), this.lastLoginAt = R(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2548
+ this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new pt(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Ir(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (i = e == null ? void 0 : e.managerRegions) == null ? void 0 : i.map((c) => new Ze(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new Z(c)), this.lastLoginAt = R(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2544
2549
  }
2545
2550
  }
2546
- class fs extends Ae {
2551
+ class ms extends Ae {
2547
2552
  /**
2548
2553
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
2549
2554
  *
@@ -2574,7 +2579,7 @@ class fs extends Ae {
2574
2579
  this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new Z(e.manager) : void 0;
2575
2580
  }
2576
2581
  }
2577
- class Ke extends fs {
2582
+ class Ke extends ms {
2578
2583
  /**
2579
2584
  * Инициализирует экземпляр класса {@link ClientCategory}.
2580
2585
  *
@@ -2594,7 +2599,7 @@ class Ke extends fs {
2594
2599
  this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Ke(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new X(o));
2595
2600
  }
2596
2601
  }
2597
- class pt {
2602
+ class ht {
2598
2603
  /**
2599
2604
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
2600
2605
  *
@@ -2612,7 +2617,7 @@ class pt {
2612
2617
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2613
2618
  }
2614
2619
  }
2615
- class pr extends pt {
2620
+ class pr extends ht {
2616
2621
  /**
2617
2622
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2618
2623
  *
@@ -2647,12 +2652,12 @@ class xr extends L {
2647
2652
  * @inheritDoc
2648
2653
  */
2649
2654
  s(this, "curatedDirection");
2650
- this.photo = e.photo, this.contacts = new lt(e.contacts), this.curatedDirection = new Ir(e.curatedDirection);
2655
+ this.photo = e.photo, this.contacts = new ut(e.contacts), this.curatedDirection = new Ir(e.curatedDirection);
2651
2656
  }
2652
2657
  }
2653
- class ve extends D {
2654
- }
2655
2658
  class we extends D {
2659
+ }
2660
+ class ve extends D {
2656
2661
  /**
2657
2662
  * Инициализирует экземпляр класса {@link Region}.
2658
2663
  *
@@ -2663,8 +2668,8 @@ class we extends D {
2663
2668
  /**
2664
2669
  * Данные о стране, в которой расположен регион.
2665
2670
  */
2666
- s(this, "country", new ve());
2667
- e && (this.country = new ve(e.country));
2671
+ s(this, "country", new we());
2672
+ e && (this.country = new we(e.country));
2668
2673
  }
2669
2674
  }
2670
2675
  class Re extends D {
@@ -2678,11 +2683,11 @@ class Re extends D {
2678
2683
  /**
2679
2684
  * Данные о регионе, в котором расположен город.
2680
2685
  */
2681
- s(this, "region", new we());
2682
- e && (this.region = new we(e.region));
2686
+ s(this, "region", new ve());
2687
+ e && (this.region = new ve(e.region));
2683
2688
  }
2684
2689
  }
2685
- class ht extends L {
2690
+ class gt extends L {
2686
2691
  /**
2687
2692
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2688
2693
  *
@@ -2721,7 +2726,7 @@ class ht extends L {
2721
2726
  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 U(e.salesDirection) : void 0, this.createdAt = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = R(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2722
2727
  }
2723
2728
  }
2724
- class oe extends ht {
2729
+ class oe extends gt {
2725
2730
  /**
2726
2731
  * Инициализирует экземпляр класса {@link Client}.
2727
2732
  *
@@ -2797,7 +2802,7 @@ class Le extends G {
2797
2802
  this.createdAt = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = R(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new oe(e == null ? void 0 : e.client), this.priceTemplate = new fe(e == null ? void 0 : e.priceTemplate);
2798
2803
  }
2799
2804
  }
2800
- class hr extends pt {
2805
+ class hr extends ht {
2801
2806
  /**
2802
2807
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2803
2808
  *
@@ -2812,7 +2817,7 @@ class hr extends pt {
2812
2817
  this.product = new q(e == null ? void 0 : e.product);
2813
2818
  }
2814
2819
  }
2815
- class gt extends D {
2820
+ class ft extends D {
2816
2821
  }
2817
2822
  class me extends L {
2818
2823
  /**
@@ -2838,7 +2843,7 @@ class me extends L {
2838
2843
  * Признак того, что по свойству может производиться фильтрация в каталоге.
2839
2844
  */
2840
2845
  s(this, "isFilterable");
2841
- this.type = new gt(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata, this.isFilterable = e == null ? void 0 : e.isFilterable;
2846
+ this.type = new ft(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata, this.isFilterable = e == null ? void 0 : e.isFilterable;
2842
2847
  }
2843
2848
  }
2844
2849
  class he {
@@ -2860,7 +2865,7 @@ class he {
2860
2865
  this.property = new me(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2861
2866
  }
2862
2867
  }
2863
- class ei {
2868
+ class ri {
2864
2869
  /**
2865
2870
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2866
2871
  *
@@ -2964,7 +2969,7 @@ class Ie extends L {
2964
2969
  this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
2965
2970
  }
2966
2971
  }
2967
- class Hr {
2972
+ class Br {
2968
2973
  /**
2969
2974
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2970
2975
  *
@@ -2986,7 +2991,7 @@ class Hr {
2986
2991
  this.role = new Ie(r == null ? void 0 : r.role), this.category = new Ae(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
2987
2992
  }
2988
2993
  }
2989
- class ms {
2994
+ class ys {
2990
2995
  /**
2991
2996
  * Инициализирует экземпляр класса {@link FilterSettings}.
2992
2997
  *
@@ -3019,7 +3024,7 @@ class ms {
3019
3024
  this.isFake = (r == null ? void 0 : r.isFake) ?? !1, this.isHidden = (r == null ? void 0 : r.isHidden) ?? !1, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.type = (r == null ? void 0 : r.type) ?? null, this.ord = (r == null ? void 0 : r.ord) ?? 0;
3020
3025
  }
3021
3026
  }
3022
- class Br {
3027
+ class zr {
3023
3028
  /**
3024
3029
  * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
3025
3030
  *
@@ -3038,10 +3043,10 @@ class Br {
3038
3043
  * @inheritDoc
3039
3044
  */
3040
3045
  s(this, "settings");
3041
- this.category = new Ae(r == null ? void 0 : r.category), this.property = new me(r == null ? void 0 : r.property), this.settings = new ms(r == null ? void 0 : r.settings);
3046
+ this.category = new Ae(r == null ? void 0 : r.category), this.property = new me(r == null ? void 0 : r.property), this.settings = new ys(r == null ? void 0 : r.settings);
3042
3047
  }
3043
3048
  }
3044
- class ys {
3049
+ class as {
3045
3050
  /**
3046
3051
  * Инициализирует экземпляр класса {@link CategoryFilterValue}.
3047
3052
  *
@@ -3059,7 +3064,7 @@ class ys {
3059
3064
  this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
3060
3065
  }
3061
3066
  }
3062
- class as {
3067
+ class ws {
3063
3068
  /**
3064
3069
  * Инициализирует экземпляр класса {@link CategoryFilter}.
3065
3070
  *
@@ -3102,10 +3107,10 @@ class as {
3102
3107
  */
3103
3108
  s(this, "max");
3104
3109
  var e;
3105
- this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? ct.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new ys(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3110
+ this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? lt.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new as(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3106
3111
  }
3107
3112
  }
3108
- class ri extends h {
3113
+ class ti extends h {
3109
3114
  /**
3110
3115
  * Возвращает данные о результатах поиска категорий и товаров.
3111
3116
  *
@@ -3136,7 +3141,7 @@ class ri extends h {
3136
3141
  return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
3137
3142
  }
3138
3143
  }
3139
- class ti extends h {
3144
+ class si extends h {
3140
3145
  /**
3141
3146
  * Импортирует цены клиента из CSV файла.
3142
3147
  *
@@ -3335,7 +3340,7 @@ class ti extends h {
3335
3340
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3336
3341
  }
3337
3342
  }
3338
- class si extends h {
3343
+ class ii extends h {
3339
3344
  /**
3340
3345
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3341
3346
  *
@@ -3423,7 +3428,7 @@ class si extends h {
3423
3428
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
3424
3429
  }
3425
3430
  }
3426
- class ii extends h {
3431
+ class ni extends h {
3427
3432
  /**
3428
3433
  * Возвращает список данных о корневых категориях.
3429
3434
  *
@@ -3492,7 +3497,7 @@ class ii extends h {
3492
3497
  getCategoryProductsCoefficients(r) {
3493
3498
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
3494
3499
  const { data: t } = e;
3495
- return Ft(t, (i) => i.map((o) => new $r(o))), t;
3500
+ return Mt(t, (i) => i.map((o) => new $r(o))), t;
3496
3501
  });
3497
3502
  }
3498
3503
  /**
@@ -3511,7 +3516,7 @@ class ii extends h {
3511
3516
  });
3512
3517
  }
3513
3518
  }
3514
- class ni extends Y {
3519
+ class oi extends Y {
3515
3520
  /**
3516
3521
  * Возвращает данные об указанном продукте.
3517
3522
  *
@@ -3577,7 +3582,7 @@ class ni extends Y {
3577
3582
  });
3578
3583
  }
3579
3584
  }
3580
- class oi extends h {
3585
+ class ci extends h {
3581
3586
  /**
3582
3587
  * Возвращает список данных о корневых категориях указанного клиента.
3583
3588
  *
@@ -3635,7 +3640,7 @@ class oi extends h {
3635
3640
  );
3636
3641
  }
3637
3642
  }
3638
- class ci extends Y {
3643
+ class li extends Y {
3639
3644
  /**
3640
3645
  * Возвращает данные об указанном продукте для указанного клиента.
3641
3646
  *
@@ -3674,7 +3679,7 @@ class ci extends Y {
3674
3679
  });
3675
3680
  }
3676
3681
  }
3677
- class li extends Y {
3682
+ class ui extends Y {
3678
3683
  /**
3679
3684
  * Возвращает список шаблонов прайс-листа.
3680
3685
  *
@@ -3863,7 +3868,7 @@ class li extends Y {
3863
3868
  return this.getTypedList(Le, `/internal/price/templates/${r}/clients`);
3864
3869
  }
3865
3870
  }
3866
- class ui extends h {
3871
+ class pi extends h {
3867
3872
  /**
3868
3873
  * Возвращает список ролей ценообразования.
3869
3874
  *
@@ -3921,7 +3926,7 @@ class ui extends h {
3921
3926
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
3922
3927
  */
3923
3928
  getCategoryRules(r) {
3924
- return this.getTypedList(Hr, `/internal/price/roles/rules/categories/${r}`);
3929
+ return this.getTypedList(Br, `/internal/price/roles/rules/categories/${r}`);
3925
3930
  }
3926
3931
  /**
3927
3932
  * Обновляет правила для роли ценообразования по указанной категории.
@@ -3935,11 +3940,11 @@ class ui extends h {
3935
3940
  return this.patch(
3936
3941
  `/internal/price/roles/rules/categories/${r}`,
3937
3942
  e,
3938
- (t) => _.instanceListInitializer(Hr, t.data)
3943
+ (t) => _.instanceListInitializer(Br, t.data)
3939
3944
  );
3940
3945
  }
3941
3946
  }
3942
- class pi extends Y {
3947
+ class hi extends Y {
3943
3948
  /**
3944
3949
  * Возвращает пагинированный список свойств.
3945
3950
  *
@@ -4318,7 +4323,7 @@ class pi extends Y {
4318
4323
  return this.get(
4319
4324
  `/internal/catalog/categories/${r}/filters`,
4320
4325
  { recursively: e },
4321
- (t) => t.data.map((i) => new as(i))
4326
+ (t) => t.data.map((i) => new ws(i))
4322
4327
  );
4323
4328
  }
4324
4329
  /**
@@ -4328,7 +4333,7 @@ class pi extends Y {
4328
4333
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
4329
4334
  */
4330
4335
  getCategoryFilterSettings(r) {
4331
- return this.getTypedList(Br, `/internal/catalog/categories/${r}/filter-settings`);
4336
+ return this.getTypedList(zr, `/internal/catalog/categories/${r}/filter-settings`);
4332
4337
  }
4333
4338
  /**
4334
4339
  * Сохраняет настройки фильтра в категории.
@@ -4342,7 +4347,7 @@ class pi extends Y {
4342
4347
  return this.patch(
4343
4348
  `/internal/catalog/categories/${r}/filter-settings/${e}`,
4344
4349
  t,
4345
- (i) => new Br(i.data)
4350
+ (i) => new zr(i.data)
4346
4351
  );
4347
4352
  }
4348
4353
  /**
@@ -4356,7 +4361,7 @@ class pi extends Y {
4356
4361
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
4357
4362
  }
4358
4363
  }
4359
- class hi extends h {
4364
+ class gi extends h {
4360
4365
  /**
4361
4366
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4362
4367
  *
@@ -4414,7 +4419,7 @@ class hi extends h {
4414
4419
  );
4415
4420
  }
4416
4421
  }
4417
- function zr(n, r, e) {
4422
+ function Wr(n, r, e) {
4418
4423
  let t;
4419
4424
  return n.some((i) => {
4420
4425
  if (i.type === e && i.id === r)
@@ -4423,24 +4428,24 @@ function zr(n, r, e) {
4423
4428
  return !1;
4424
4429
  const o = i;
4425
4430
  if (o.products && o.products.length > 0) {
4426
- const c = zr(o.products, r, e);
4431
+ const c = Wr(o.products, r, e);
4427
4432
  if (c)
4428
4433
  return t = c, !0;
4429
4434
  }
4430
4435
  if (o.categories && o.categories.length > 0) {
4431
- const c = zr(o.categories, r, e);
4436
+ const c = Wr(o.categories, r, e);
4432
4437
  if (c)
4433
4438
  return t = c, !0;
4434
4439
  }
4435
4440
  return !1;
4436
4441
  }), t;
4437
4442
  }
4438
- function Wr(n) {
4443
+ function jr(n) {
4439
4444
  const r = [];
4440
4445
  return n.forEach((e) => {
4441
4446
  if (r.push(e), e.type === "category") {
4442
4447
  const t = e;
4443
- t.products && t.products.length > 0 && r.push(...Wr(t.products)), t.categories && t.categories.length > 0 && r.push(...Wr(t.categories));
4448
+ t.products && t.products.length > 0 && r.push(...jr(t.products)), t.categories && t.categories.length > 0 && r.push(...jr(t.categories));
4444
4449
  }
4445
4450
  }), r;
4446
4451
  }
@@ -4545,7 +4550,7 @@ class ie extends D {
4545
4550
  }
4546
4551
  class Ce extends D {
4547
4552
  }
4548
- class ft extends tt {
4553
+ class mt extends st {
4549
4554
  /**
4550
4555
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
4551
4556
  *
@@ -4560,7 +4565,7 @@ class ft extends tt {
4560
4565
  this.deletedAt = R(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4561
4566
  }
4562
4567
  }
4563
- class mt extends ft {
4568
+ class yt extends mt {
4564
4569
  /**
4565
4570
  * Инициализирует экземпляр класса {@link ContragentBase}.
4566
4571
  *
@@ -4621,7 +4626,7 @@ class mt extends ft {
4621
4626
  }
4622
4627
  }
4623
4628
  }
4624
- class ws extends mt {
4629
+ class Rs extends yt {
4625
4630
  /**
4626
4631
  * Инициализирует экземпляр класса {@link ContragentPerson}.
4627
4632
  *
@@ -4631,7 +4636,7 @@ class ws extends mt {
4631
4636
  super(r);
4632
4637
  }
4633
4638
  }
4634
- class yt extends mt {
4639
+ class at extends yt {
4635
4640
  /**
4636
4641
  * Инициализирует экземпляр класса {@link ContragentIc}.
4637
4642
  *
@@ -4678,7 +4683,7 @@ class yt extends mt {
4678
4683
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.ogrn = e.ogrn ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
4679
4684
  }
4680
4685
  }
4681
- class at extends yt {
4686
+ class wt extends at {
4682
4687
  /**
4683
4688
  * Инициализирует экземпляр класса {@link ContragentUlR}.
4684
4689
  *
@@ -4693,7 +4698,7 @@ class at extends yt {
4693
4698
  e && (this.kpp = e.kpp ?? "");
4694
4699
  }
4695
4700
  }
4696
- class Rs extends at {
4701
+ class Cs extends wt {
4697
4702
  /**
4698
4703
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
4699
4704
  *
@@ -4704,7 +4709,7 @@ class Rs extends at {
4704
4709
  /**
4705
4710
  * Страна регистрации юридического лица нерезидента.
4706
4711
  */
4707
- s(this, "registrationCountry", new ve());
4712
+ s(this, "registrationCountry", new we());
4708
4713
  /**
4709
4714
  * Регистрационный номер юридического лица нерезидента.
4710
4715
  */
@@ -4713,7 +4718,7 @@ class Rs extends at {
4713
4718
  * Налоговый номер юридического лица нерезидента.
4714
4719
  */
4715
4720
  s(this, "taxNumber", "");
4716
- e && (this.registrationCountry = new ve(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4721
+ e && (this.registrationCountry = new we(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4717
4722
  }
4718
4723
  }
4719
4724
  class Xe {
@@ -4725,17 +4730,17 @@ class Xe {
4725
4730
  static createInstance(r) {
4726
4731
  switch (r.opf.slug) {
4727
4732
  case V.Ic:
4728
- return new yt(r);
4729
- case V.UlR:
4730
4733
  return new at(r);
4734
+ case V.UlR:
4735
+ return new wt(r);
4731
4736
  case V.UlNr:
4732
- return new Rs(r);
4737
+ return new Cs(r);
4733
4738
  default:
4734
- return new ws(r);
4739
+ return new Rs(r);
4735
4740
  }
4736
4741
  }
4737
4742
  }
4738
- class _e extends ft {
4743
+ class _e extends mt {
4739
4744
  /**
4740
4745
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4741
4746
  *
@@ -4772,14 +4777,14 @@ class _e extends ft {
4772
4777
  * Признак того, что указанный адрес является адресом транспортной компании.
4773
4778
  */
4774
4779
  s(this, "isTransportCompanyAddress");
4775
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new it(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new se(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4780
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new nt(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new se(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4776
4781
  }
4777
4782
  }
4778
4783
  class vt extends D {
4779
4784
  }
4780
- class wt extends D {
4785
+ class Rt extends D {
4781
4786
  }
4782
- class jr extends oe {
4787
+ class Gr extends oe {
4783
4788
  /**
4784
4789
  * Инициализирует экземпляр класса {@link Client}.
4785
4790
  *
@@ -4829,10 +4834,10 @@ class jr extends oe {
4829
4834
  * @inheritDoc
4830
4835
  */
4831
4836
  s(this, "extraData");
4832
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => Xe.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new se(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new _e(u))) ?? [], this.channelPrimaryInterest = new vt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new wt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4837
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => Xe.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new se(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new _e(u))) ?? [], this.channelPrimaryInterest = new vt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Rt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4833
4838
  }
4834
4839
  }
4835
- class gi extends Fe {
4840
+ class fi extends Fe {
4836
4841
  /**
4837
4842
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4838
4843
  *
@@ -4945,7 +4950,7 @@ class gi extends Fe {
4945
4950
  * @inheritDoc
4946
4951
  */
4947
4952
  s(this, "noOrdersPeriod", new b());
4948
- this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((P) => new Re(P)), this.region = new we(e == null ? void 0 : e.region), this.country = new ve(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.lastLoginDate = new b(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((P) => new Z(P))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((P) => new xr(P))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((P) => new U(P)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new ie(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new K(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((P) => new Ce(P)), this.contact = new Dr(e == null ? void 0 : e.contact), this.lastOrder = {
4953
+ this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((P) => new Re(P)), this.region = new ve(e == null ? void 0 : e.region), this.country = new we(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.lastLoginDate = new b(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((P) => new Z(P))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((P) => new xr(P))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((P) => new U(P)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new ie(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new K(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((P) => new Ce(P)), this.contact = new Dr(e == null ? void 0 : e.contact), this.lastOrder = {
4949
4954
  createdAt: new b((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4950
4955
  creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
4951
4956
  isApproved: (a = e == null ? void 0 : e.lastOrder) == null ? void 0 : a.isApproved
@@ -4960,7 +4965,7 @@ class gi extends Fe {
4960
4965
  this.cities = [];
4961
4966
  break;
4962
4967
  case "region":
4963
- this.region = new we();
4968
+ this.region = new ve();
4964
4969
  break;
4965
4970
  case "isActive":
4966
4971
  this.isActive = !0;
@@ -5013,7 +5018,7 @@ class gi extends Fe {
5013
5018
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
5014
5019
  }
5015
5020
  }
5016
- class Rt extends G {
5021
+ class Ct extends G {
5017
5022
  /**
5018
5023
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
5019
5024
  *
@@ -5032,7 +5037,7 @@ class Rt extends G {
5032
5037
  this.createdAt = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new N(e == null ? void 0 : e.creator);
5033
5038
  }
5034
5039
  }
5035
- class Cs extends L {
5040
+ class Ds extends L {
5036
5041
  /**
5037
5042
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
5038
5043
  *
@@ -5069,7 +5074,7 @@ class Cs extends L {
5069
5074
  * @inheritDoc
5070
5075
  */
5071
5076
  s(this, "curators");
5072
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new se(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Rt(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new K(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new U(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Lr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new xr(u))) ?? void 0;
5077
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new se(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Ct(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new K(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new U(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Lr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new xr(u))) ?? void 0;
5073
5078
  }
5074
5079
  }
5075
5080
  class gr extends G {
@@ -5087,7 +5092,7 @@ class gr extends G {
5087
5092
  this.isPrimary = e.isPrimary;
5088
5093
  }
5089
5094
  }
5090
- class Ds extends se {
5095
+ class Ts extends se {
5091
5096
  /**
5092
5097
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
5093
5098
  *
@@ -5256,7 +5261,7 @@ class H extends Y {
5256
5261
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
5257
5262
  */
5258
5263
  getClient(r) {
5259
- return this.get(`/internal/clients/${r}`, {}, (e) => new jr(e.data));
5264
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Gr(e.data));
5260
5265
  }
5261
5266
  /**
5262
5267
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -5307,7 +5312,7 @@ class H extends Y {
5307
5312
  return this.post(
5308
5313
  "/internal/clients/additional-data",
5309
5314
  { clients: t, requested_data_types: e },
5310
- (i) => _.instanceListInitializer(Cs, i.data)
5315
+ (i) => _.instanceListInitializer(Ds, i.data)
5311
5316
  );
5312
5317
  }
5313
5318
  /**
@@ -5317,7 +5322,7 @@ class H extends Y {
5317
5322
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_get_all_contact_list
5318
5323
  */
5319
5324
  getAllClientContacts(r) {
5320
- return this.getTypedList(Ds, `/internal/clients/${r}/contacts/all`);
5325
+ return this.getTypedList(Ts, `/internal/clients/${r}/contacts/all`);
5321
5326
  }
5322
5327
  /**
5323
5328
  * Создаёт нового клиента на основе указанных данных.
@@ -5327,7 +5332,7 @@ class H extends Y {
5327
5332
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
5328
5333
  */
5329
5334
  createClientCommonData(r, e = {}) {
5330
- return this.post("/internal/clients", H.transformClientDataToRequest(r), (t) => new jr(t.data), e);
5335
+ return this.post("/internal/clients", H.transformClientDataToRequest(r), (t) => new Gr(t.data), e);
5331
5336
  }
5332
5337
  /**
5333
5338
  * Обновляет данные указанного клиента.
@@ -5800,7 +5805,7 @@ class H extends Y {
5800
5805
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5801
5806
  }
5802
5807
  }
5803
- class fi extends h {
5808
+ class mi extends h {
5804
5809
  /**
5805
5810
  * Выполняет проверку занят ли указанный номер телефона.
5806
5811
  *
@@ -5814,7 +5819,7 @@ class fi extends h {
5814
5819
  });
5815
5820
  }
5816
5821
  }
5817
- class mi {
5822
+ class yi {
5818
5823
  /**
5819
5824
  * Инициализирует экземпляр класса {@link VersionConfig}.
5820
5825
  *
@@ -5836,8 +5841,8 @@ class mi {
5836
5841
  this.date = R(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5837
5842
  }
5838
5843
  }
5839
- var Ts = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Ts || {});
5840
- class yi extends h {
5844
+ var Ps = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Ps || {});
5845
+ class ai extends h {
5841
5846
  /**
5842
5847
  * Возвращает настройки указанного конфигуратора для указанной категории.
5843
5848
  *
@@ -5929,7 +5934,7 @@ class yi extends h {
5929
5934
  });
5930
5935
  }
5931
5936
  }
5932
- class Ps {
5937
+ class As {
5933
5938
  /**
5934
5939
  * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5935
5940
  *
@@ -5947,7 +5952,7 @@ class Ps {
5947
5952
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
5948
5953
  }
5949
5954
  }
5950
- class ai extends Ps {
5955
+ class wi extends As {
5951
5956
  /**
5952
5957
  * Инициализирует экземпляр класса {@link TableDataPagination}.
5953
5958
  *
@@ -6051,8 +6056,8 @@ class y {
6051
6056
  * @param date Опорная дата.
6052
6057
  */
6053
6058
  static intervalTillSameDate(r, e, t) {
6054
- const i = zt(E(t), E(r)), o = E($(e, i)), c = Math.min(qr(t), Wt(o));
6055
- return { from: ge(e), to: z(jt(o, c)) };
6059
+ const i = Wt(E(t), E(r)), o = E($(e, i)), c = Math.min(Er(t), jt(o));
6060
+ return { from: ge(e), to: z(Gt(o, c)) };
6056
6061
  }
6057
6062
  /**
6058
6063
  * Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
@@ -6082,7 +6087,7 @@ class y {
6082
6087
  * @param shift Смещение в декадах, может быть отрицательным.
6083
6088
  */
6084
6089
  static shiftedDecadeBounds(r, e) {
6085
- const t = qr(r);
6090
+ const t = Er(r);
6086
6091
  let i = 2;
6087
6092
  t <= 10 ? i = 0 : t <= 20 && (i = 1);
6088
6093
  const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = E($(r, c)), g = re(p, u * 10), a = u === 2 ? x(p) : z(re(g, 9));
@@ -6100,17 +6105,17 @@ class Tr {
6100
6105
  if (m(r))
6101
6106
  return;
6102
6107
  const e = R(r) ? C(r) : r;
6103
- return Gt(e) ? e : void 0;
6108
+ return Yt(e) ? e : void 0;
6104
6109
  }
6105
6110
  }
6106
- function wi(n) {
6111
+ function Ri(n) {
6107
6112
  return k(je(qe(), n), "yyyy-MM-dd");
6108
6113
  }
6109
- function As(n, r) {
6114
+ function bs(n, r) {
6110
6115
  const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6111
6116
  return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6112
6117
  }
6113
- function Ri(n) {
6118
+ function Ci(n) {
6114
6119
  const r = C(n), e = We(qe(), r);
6115
6120
  switch (!0) {
6116
6121
  case e === 0:
@@ -6120,23 +6125,23 @@ function Ri(n) {
6120
6125
  case e < 0:
6121
6126
  return n;
6122
6127
  default:
6123
- return `${e} ${As(e, ["день", "дня", "дней"])} назад`;
6128
+ return `${e} ${bs(e, ["день", "дня", "дней"])} назад`;
6124
6129
  }
6125
6130
  }
6126
- class Ci {
6131
+ class Di {
6127
6132
  /**
6128
6133
  * Возвращает предустановленные диапазоны дат.
6129
6134
  *
6130
6135
  * @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
6131
6136
  */
6132
6137
  static defaultDateRanges(r) {
6133
- const e = Yt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = ue(r === void 0 ? t : new Date(r, 0, 1)), o = de(i);
6138
+ const e = Qt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = ue(r === void 0 ? t : new Date(r, 0, 1)), o = de(i);
6134
6139
  return {
6135
6140
  // 'Следующий рабочий день' - это значение по-умолчанию
6136
6141
  nextWorkingDay: { label: "Следующий рабочий день", from: ge(e), to: z(e) },
6137
- today: { label: "Сегодня", from: qe(), to: Xt() },
6138
- yesterday: { label: "Вчера", from: Kt(), to: Jt() },
6139
- tomorrow: { label: "Завтра", from: Vt(), to: Qt() },
6142
+ today: { label: "Сегодня", from: qe(), to: Zt() },
6143
+ yesterday: { label: "Вчера", from: Xt(), to: Kt() },
6144
+ tomorrow: { label: "Завтра", from: Jt(), to: Vt() },
6140
6145
  currentWeek: { label: "Неделя", from: ee(t, { weekStartsOn: 1 }), to: $e(t, { weekStartsOn: 1 }) },
6141
6146
  currentMonth: { label: "Месяц", from: E(t), to: x(t) },
6142
6147
  oneMonth: { label: "1 месяц", from: i, to: x(i) },
@@ -6164,7 +6169,7 @@ class Ci {
6164
6169
  yesterday: { label: "Вчера", group: "day", from: ge(je(r, 1)), to: z(je(r, 1)) },
6165
6170
  today: { label: "Сегодня", group: "day", from: t, to: i },
6166
6171
  tomorrow: { label: "Завтра", group: "day", from: ge(re(r, 1)), to: z(re(r, 1)) },
6167
- lastWeek: { label: "Прошлая неделя", group: "week", from: ee(Er(r, 1), e), to: $e(Er(r, 1), e) },
6172
+ lastWeek: { label: "Прошлая неделя", group: "week", from: ee(Ur(r, 1), e), to: $e(Ur(r, 1), e) },
6168
6173
  thisWeek: { label: "Эта неделя", group: "week", from: ee(r, e), to: $e(r, e) },
6169
6174
  nextWeek: { label: "Следующая неделя", group: "week", from: ee(ar(r, 1), e), to: $e(ar(r, 1), e) },
6170
6175
  lastTenDays: { label: "Прошлая декада", group: "decade", ...y.shiftDecadeInterval(r, -1) },
@@ -6266,7 +6271,7 @@ class Ci {
6266
6271
  };
6267
6272
  }
6268
6273
  }
6269
- const Di = [
6274
+ const Ti = [
6270
6275
  { key: "day", label: "День" },
6271
6276
  { key: "week", label: "Неделя" },
6272
6277
  { key: "decade", label: "Декада" },
@@ -6275,18 +6280,18 @@ const Di = [
6275
6280
  { key: "halfYear", label: "Полугодие" },
6276
6281
  { key: "year", label: "Год" },
6277
6282
  { key: "other", label: "Прочее" }
6278
- ], Ti = [
6283
+ ], Pi = [
6279
6284
  { key: "fromBeginning", label: "С начала периода" },
6280
6285
  { key: "tillEnd", label: "До конца периода" },
6281
6286
  { key: "lastTillSame", label: "Прошлые, до такой же даты" },
6282
6287
  { key: "nextTillSame", label: "Следующие, до такой же даты" },
6283
6288
  { key: "rollingDays", label: "7 дней" }
6284
6289
  ];
6285
- function Pi(n) {
6286
- const r = Mt(n * 100);
6290
+ function Ai(n) {
6291
+ const r = Ht(n * 100);
6287
6292
  return `${r >= 0 ? "+" : ""}${r}%`;
6288
6293
  }
6289
- class Ct {
6294
+ class Dt {
6290
6295
  /**
6291
6296
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
6292
6297
  *
@@ -6302,7 +6307,7 @@ class Ct {
6302
6307
  */
6303
6308
  static getProductMultiplicity(r) {
6304
6309
  var e, t;
6305
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Ct.productIsMeasurable(r) ? r.properties.minCount : 1;
6310
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Dt.productIsMeasurable(r) ? r.properties.minCount : 1;
6306
6311
  }
6307
6312
  /**
6308
6313
  * Возвращает кратность длины для указанного товара.
@@ -6346,7 +6351,7 @@ const ye = class ye extends h {
6346
6351
  */
6347
6352
  cacheResponse(e, t) {
6348
6353
  ye.responseDataCache.set(e, {
6349
- validTo: Zt(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6354
+ validTo: es(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6350
6355
  val: t
6351
6356
  });
6352
6357
  }
@@ -6371,7 +6376,7 @@ const ye = class ye extends h {
6371
6376
  */
6372
6377
  s(ye, "responseDataCache", /* @__PURE__ */ new Map());
6373
6378
  let Ue = ye;
6374
- class Ai {
6379
+ class bi {
6375
6380
  /**
6376
6381
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
6377
6382
  */
@@ -6387,7 +6392,7 @@ class Ai {
6387
6392
  return r.id === 0 && r.guid === "-undefined-";
6388
6393
  }
6389
6394
  }
6390
- class Dt extends Ue {
6395
+ class Tt extends Ue {
6391
6396
  /**
6392
6397
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
6393
6398
  */
@@ -6410,7 +6415,7 @@ class Dt extends Ue {
6410
6415
  }
6411
6416
  }
6412
6417
  var xe = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(xe || {});
6413
- class bs {
6418
+ class Ss {
6414
6419
  /**
6415
6420
  * Инициализирует экземпляр класса {@link OfferActualization}.
6416
6421
  *
@@ -6466,7 +6471,7 @@ class bs {
6466
6471
  return this.status === xe.Completed && !this.isOutdatedAt(r);
6467
6472
  }
6468
6473
  }
6469
- class Tt extends G {
6474
+ class Pt extends G {
6470
6475
  /**
6471
6476
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
6472
6477
  *
@@ -6502,10 +6507,10 @@ class Tt extends G {
6502
6507
  * @inheritDoc
6503
6508
  */
6504
6509
  s(this, "file");
6505
- this.name = e == null ? void 0 : e.name, this.createdAt = Tr.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new oe(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum, this.isProfstroy = e == null ? void 0 : e.isProfstroy, this.actualization = (e == null ? void 0 : e.actualization) && new bs(e.actualization), this.file = e == null ? void 0 : e.file;
6510
+ this.name = e == null ? void 0 : e.name, this.createdAt = Tr.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new oe(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum, this.isProfstroy = e == null ? void 0 : e.isProfstroy, this.actualization = (e == null ? void 0 : e.actualization) && new Ss(e.actualization), this.file = e == null ? void 0 : e.file;
6506
6511
  }
6507
6512
  }
6508
- class Ss extends Or {
6513
+ class ds extends Or {
6509
6514
  /**
6510
6515
  * Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
6511
6516
  *
@@ -6544,7 +6549,7 @@ class Ss extends Or {
6544
6549
  return !this.isProductStub && !this.isIgnored && J(this.lineError);
6545
6550
  }
6546
6551
  }
6547
- class F extends Tt {
6552
+ class F extends Pt {
6548
6553
  /**
6549
6554
  * Инициализирует экземпляр класса {@link Offer}.
6550
6555
  *
@@ -6561,11 +6566,11 @@ class F extends Tt {
6561
6566
  */
6562
6567
  s(this, "products");
6563
6568
  this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
6564
- (t) => e.isProfstroy ? new Ss(t) : new Or(t)
6569
+ (t) => e.isProfstroy ? new ds(t) : new Or(t)
6565
6570
  );
6566
6571
  }
6567
6572
  }
6568
- class bi extends Fe {
6573
+ class Si extends Fe {
6569
6574
  /**
6570
6575
  * Инициализирует экземпляр класса {@link OffersListFilters}.
6571
6576
  *
@@ -6608,7 +6613,7 @@ class bi extends Fe {
6608
6613
  }
6609
6614
  class er extends D {
6610
6615
  }
6611
- class Pt extends Rt {
6616
+ class At extends Ct {
6612
6617
  /**
6613
6618
  * Инициализирует экземпляр класса {@link OrderInfo}.
6614
6619
  *
@@ -6681,7 +6686,7 @@ class Pt extends Rt {
6681
6686
  }, this.attachedUser = e != null && e.attachedUser ? new N(e == null ? void 0 : e.attachedUser) : void 0, this.status = new er(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new D(e.statusDetail) : void 0, this.salesDirection = new U(e == null ? void 0 : e.salesDirection), this.attachedAt = R(e == null ? void 0 : e.attachedAt) ? C(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isProfstroy = (e == null ? void 0 : e.isProfstroy) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
6682
6687
  }
6683
6688
  }
6684
- class ds extends ot {
6689
+ class $s extends ct {
6685
6690
  /**
6686
6691
  * Инициализирует экземпляр класса {@link OrderItem}.
6687
6692
  *
@@ -6741,7 +6746,7 @@ class ds extends ot {
6741
6746
  this.product = new X(e.product), this.currency = new j(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
6742
6747
  }
6743
6748
  }
6744
- class I extends Pt {
6749
+ class I extends At {
6745
6750
  /**
6746
6751
  * Инициализирует экземпляр класса {@link Order}.
6747
6752
  *
@@ -6809,11 +6814,11 @@ class I extends Pt {
6809
6814
  this.products = (e.products ?? []).map((i) => {
6810
6815
  var c;
6811
6816
  const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
6812
- return new ds(i, o);
6817
+ return new $s(i, o);
6813
6818
  }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Xe.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new D(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new er(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
6814
6819
  }
6815
6820
  }
6816
- class Si extends Y {
6821
+ class di extends Y {
6817
6822
  /**
6818
6823
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
6819
6824
  *
@@ -6825,7 +6830,7 @@ class Si extends Y {
6825
6830
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
6826
6831
  */
6827
6832
  getOffers(r, e, t, i = void 0) {
6828
- return this.getTypedPaginated(Tt, "/internal/orders/offers", r, e, t, {}, void 0, i);
6833
+ return this.getTypedPaginated(Pt, "/internal/orders/offers", r, e, t, {}, void 0, i);
6829
6834
  }
6830
6835
  /**
6831
6836
  * Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
@@ -7049,7 +7054,7 @@ class Si extends Y {
7049
7054
  return this.post(`/internal/orders/offers/${r}/send`, e);
7050
7055
  }
7051
7056
  }
7052
- class di {
7057
+ class $i {
7053
7058
  /**
7054
7059
  * Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
7055
7060
  *
@@ -7068,8 +7073,8 @@ class di {
7068
7073
  return !m(r) && r.isProfstroy === !0 && !m(r.actualization);
7069
7074
  }
7070
7075
  }
7071
- var $s = /* @__PURE__ */ ((n) => (n.View = "view", n.Share = "share", n.EditTags = "edit_tags", n.SaveOrderIgnoredProducts = "save_order_ignored_products", n.ChangeStatus = "change_status", n.ChangeProducts = "change_products", n.ChangeOrderParameters = "change_order_parameters", n.Recalculate = "recalculate", n.AttachOrder = "attach_order", n.DetachOrder = "detach_order", n.ChangeAttachedOperator = "change_attached_operator", n.SendOnlinePaymentLink = "send_online_payment_link", n.ConfirmOnlineFullPayment = "confirm_online_full_payment", n.MergeOrders = "merge_orders", n.GetHistory = "get_history", n.CloneOrder = "clone_order", n.DeleteAttachedFile = "delete_attached_file", n))($s || {});
7072
- class $i {
7076
+ var ks = /* @__PURE__ */ ((n) => (n.View = "view", n.Share = "share", n.EditTags = "edit_tags", n.SaveOrderIgnoredProducts = "save_order_ignored_products", n.ChangeStatus = "change_status", n.ChangeProducts = "change_products", n.ChangeOrderParameters = "change_order_parameters", n.Recalculate = "recalculate", n.AttachOrder = "attach_order", n.DetachOrder = "detach_order", n.ChangeAttachedOperator = "change_attached_operator", n.SendOnlinePaymentLink = "send_online_payment_link", n.ConfirmOnlineFullPayment = "confirm_online_full_payment", n.MergeOrders = "merge_orders", n.GetHistory = "get_history", n.CloneOrder = "clone_order", n.DeleteAttachedFile = "delete_attached_file", n))(ks || {});
7077
+ class ki {
7073
7078
  /**
7074
7079
  * Инициализирует экземпляр класса {@link OrderEditorData}.
7075
7080
  *
@@ -7136,11 +7141,11 @@ class $i {
7136
7141
  this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (t = r == null ? void 0 : r.delivery.address) == null ? void 0 : t.id, this.warehouseId = (i = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : i.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
7137
7142
  }
7138
7143
  }
7139
- class At extends D {
7140
- }
7141
7144
  class bt extends D {
7142
7145
  }
7143
- class ki extends Fe {
7146
+ class St extends D {
7147
+ }
7148
+ class Oi extends Fe {
7144
7149
  /**
7145
7150
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
7146
7151
  *
@@ -7241,7 +7246,7 @@ class ki extends Fe {
7241
7246
  * @inheritDoc
7242
7247
  */
7243
7248
  s(this, "onlyMyRegions");
7244
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new At(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new oe(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new N(e.creator) : void 0, this.deliveryDate = new b(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new Re(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new b(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new U(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new K(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new bt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Me(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7249
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new bt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new oe(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new N(e.creator) : void 0, this.deliveryDate = new b(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new Re(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new b(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new U(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new K(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new St(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Me(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7245
7250
  }
7246
7251
  /**
7247
7252
  * @inheritDoc
@@ -7292,7 +7297,7 @@ class ki extends Fe {
7292
7297
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((p = e == null ? void 0 : e.attachedAt) != null && p.to) && delete e.attachedAt, e;
7293
7298
  }
7294
7299
  }
7295
- class ks {
7300
+ class Os {
7296
7301
  /**
7297
7302
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
7298
7303
  *
@@ -7318,7 +7323,7 @@ class ks {
7318
7323
  this.user = new N(r == null ? void 0 : r.user), this.status = new er(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new D(r.statusDetail) : void 0, this.createdAt = R(r == null ? void 0 : r.createdAt) ? C(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
7319
7324
  }
7320
7325
  }
7321
- class Oi extends Y {
7326
+ class Li extends Y {
7322
7327
  /**
7323
7328
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
7324
7329
  *
@@ -7330,7 +7335,7 @@ class Oi extends Y {
7330
7335
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
7331
7336
  */
7332
7337
  getOrders(r, e, t, i = void 0) {
7333
- return this.getTypedPaginated(Pt, "/internal/orders", r, e, t, {}, void 0, i);
7338
+ return this.getTypedPaginated(At, "/internal/orders", r, e, t, {}, void 0, i);
7334
7339
  }
7335
7340
  /**
7336
7341
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -7543,7 +7548,7 @@ class Oi extends Y {
7543
7548
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
7544
7549
  */
7545
7550
  getOrderStatusHistory(r) {
7546
- return this.getTypedList(ks, `/internal/orders/${r}/history`);
7551
+ return this.getTypedList(Os, `/internal/orders/${r}/history`);
7547
7552
  }
7548
7553
  /**
7549
7554
  * Возвращает содержимое печатной формы заказа в формате HTML.
@@ -7685,7 +7690,7 @@ class Oi extends Y {
7685
7690
  );
7686
7691
  }
7687
7692
  }
7688
- const Li = Symbol("currentOrder");
7693
+ const Ii = Symbol("currentOrder");
7689
7694
  class fr {
7690
7695
  /**
7691
7696
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
@@ -7718,7 +7723,7 @@ class fr {
7718
7723
  }
7719
7724
  const mr = (n) => {
7720
7725
  var r, e, t, i, o;
7721
- return n ? et(
7726
+ return n ? rt(
7722
7727
  {
7723
7728
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
7724
7729
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -7729,11 +7734,11 @@ const mr = (n) => {
7729
7734
  },
7730
7735
  (c) => m(c) || (W(c) || Ve(c)) && J(c)
7731
7736
  ) : {};
7732
- }, Gr = (n) => {
7737
+ }, Yr = (n) => {
7733
7738
  const r = {};
7734
7739
  return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
7735
7740
  };
7736
- class Ii extends h {
7741
+ class xi extends h {
7737
7742
  /**
7738
7743
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
7739
7744
  *
@@ -7747,7 +7752,7 @@ class Ii extends h {
7747
7752
  return this.get(
7748
7753
  `/internal/price/products/${r}/analyze`,
7749
7754
  {
7750
- ...Gr(e),
7755
+ ...Yr(e),
7751
7756
  filters: mr(t)
7752
7757
  },
7753
7758
  (i) => _.instanceListInitializer(fr, i.data)
@@ -7766,7 +7771,7 @@ class Ii extends h {
7766
7771
  return this.get(
7767
7772
  `/internal/price/categories/${r}/analyze`,
7768
7773
  {
7769
- ...Gr(e),
7774
+ ...Yr(e),
7770
7775
  filters: mr(t)
7771
7776
  },
7772
7777
  (i) => _.instanceListInitializer(fr, i.data)
@@ -7794,7 +7799,7 @@ class Ii extends h {
7794
7799
  );
7795
7800
  }
7796
7801
  }
7797
- class Os {
7802
+ class Ls {
7798
7803
  /**
7799
7804
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
7800
7805
  *
@@ -7844,7 +7849,7 @@ class Os {
7844
7849
  this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = R(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Ee(r.product) : void 0, this.client = r.client ? new N(r.client) : void 0, this.executor = r.executor ? new N(r.executor) : void 0, this.currency = r.currency ? new j(r.currency) : void 0;
7845
7850
  }
7846
7851
  }
7847
- class Ls extends Ee {
7852
+ class Is extends Ee {
7848
7853
  /**
7849
7854
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
7850
7855
  *
@@ -7856,10 +7861,10 @@ class Ls extends Ee {
7856
7861
  * @inheritDoc
7857
7862
  */
7858
7863
  s(this, "history");
7859
- this.history = De(e.history, (t) => new Os(t));
7864
+ this.history = De(e.history, (t) => new Ls(t));
7860
7865
  }
7861
7866
  }
7862
- class xi extends h {
7867
+ class _i extends h {
7863
7868
  /**
7864
7869
  * Возвращает данные об истории изменения цен.
7865
7870
  *
@@ -7869,7 +7874,7 @@ class xi extends h {
7869
7874
  */
7870
7875
  getProductPriceHistory(r) {
7871
7876
  var o, c, u, p, g;
7872
- const e = O().config.dateFormats.api, t = et(
7877
+ const e = O().config.dateFormats.api, t = rt(
7873
7878
  Ne(r, {
7874
7879
  costDate: {
7875
7880
  from: Je((o = r.costDate) == null ? void 0 : o.from) ? k(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
@@ -7879,11 +7884,11 @@ class xi extends h {
7879
7884
  (a) => m(a) || (W(a) || Ve(a)) && J(a)
7880
7885
  ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
7881
7886
  return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((a) => [
7882
- new Ls(Ne(a[0], { history: a }))
7887
+ new Is(Ne(a[0], { history: a }))
7883
7888
  ]);
7884
7889
  }
7885
7890
  }
7886
- class Yr {
7891
+ class Qr {
7887
7892
  /**
7888
7893
  * Инициализирует экземпляр класса {@link RecommendationsList}.
7889
7894
  *
@@ -7901,7 +7906,7 @@ class Yr {
7901
7906
  r != null && r.products && (this.products = r.products.map((e) => new Ee(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Ee(e)));
7902
7907
  }
7903
7908
  }
7904
- class _i extends h {
7909
+ class Ni extends h {
7905
7910
  /**
7906
7911
  * Возвращает данные о рекомендациях указанной категории продуктов.
7907
7912
  *
@@ -7909,7 +7914,7 @@ class _i extends h {
7909
7914
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
7910
7915
  */
7911
7916
  getProductCategoryRecommendations(r) {
7912
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Yr(e.data));
7917
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Qr(e.data));
7913
7918
  }
7914
7919
  /**
7915
7920
  * Возвращает данные о рекомендациях указанного продукта.
@@ -7918,7 +7923,7 @@ class _i extends h {
7918
7923
  * @see /docs/api#/operations/api_internal_recommendations_product_get
7919
7924
  */
7920
7925
  getProductRecommendations(r) {
7921
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Yr(e.data));
7926
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Qr(e.data));
7922
7927
  }
7923
7928
  /**
7924
7929
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -7947,12 +7952,12 @@ class _i extends h {
7947
7952
  });
7948
7953
  }
7949
7954
  }
7950
- var Is = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(Is || {}), xs = /* @__PURE__ */ ((n) => (n.CanceledBy1c = "canceled_by1c", n.CanceledByClient = "canceled_by_client", n.FinishedNotApproved = "finished_not_approved", n.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", n.WillWaiting = "will_waiting", n))(xs || {});
7951
- class _s extends D {
7952
- }
7955
+ var xs = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(xs || {}), _s = /* @__PURE__ */ ((n) => (n.CanceledBy1c = "canceled_by1c", n.CanceledByClient = "canceled_by_client", n.FinishedNotApproved = "finished_not_approved", n.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", n.WillWaiting = "will_waiting", n))(_s || {});
7953
7956
  class Ns extends D {
7954
7957
  }
7955
- class Qr extends D {
7958
+ class qs extends D {
7959
+ }
7960
+ class Vr extends D {
7956
7961
  /**
7957
7962
  * Инициализирует экземпляр класса {@link CityWithUserRegion}.
7958
7963
  *
@@ -7968,15 +7973,15 @@ class Qr extends D {
7968
7973
  this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new Ze(i))) ?? [];
7969
7974
  }
7970
7975
  }
7971
- class qs extends D {
7972
- }
7973
7976
  class Es extends D {
7974
7977
  }
7975
7978
  class Us extends D {
7976
7979
  }
7977
7980
  class Fs extends D {
7978
7981
  }
7979
- class Ni {
7982
+ class Ms extends D {
7983
+ }
7984
+ class qi {
7980
7985
  /**
7981
7986
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
7982
7987
  *
@@ -7995,7 +8000,7 @@ class Ni {
7995
8000
  return r.id === 0 && r.slug === "-undefined-";
7996
8001
  }
7997
8002
  }
7998
- class St extends D {
8003
+ class dt extends D {
7999
8004
  }
8000
8005
  const B = class B extends Ue {
8001
8006
  /**
@@ -8015,7 +8020,7 @@ const B = class B extends Ue {
8015
8020
  * и использовать в случае аналогичных запросов.
8016
8021
  */
8017
8022
  getReference(r, e = !1) {
8018
- return this.getTypedDataArrayRequester(_s, `/internal/references/${r}`, e);
8023
+ return this.getTypedDataArrayRequester(Ns, `/internal/references/${r}`, e);
8019
8024
  }
8020
8025
  /**
8021
8026
  * Возвращает {@link Promise} для получения справочника данных о канале
@@ -8028,7 +8033,7 @@ const B = class B extends Ue {
8028
8033
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
8029
8034
  */
8030
8035
  getContactPositions() {
8031
- return this.getTypedDataArrayRequester(qs, "/internal/references/contact-position", !0);
8036
+ return this.getTypedDataArrayRequester(Es, "/internal/references/contact-position", !0);
8032
8037
  }
8033
8038
  /**
8034
8039
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
@@ -8059,13 +8064,13 @@ const B = class B extends Ue {
8059
8064
  * Возвращает {@link Promise} для получения справочника операторов.
8060
8065
  */
8061
8066
  getOperators() {
8062
- return this.getTypedDataArrayRequester(At, "/internal/references/operator", !0);
8067
+ return this.getTypedDataArrayRequester(bt, "/internal/references/operator", !0);
8063
8068
  }
8064
8069
  /**
8065
8070
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
8066
8071
  */
8067
8072
  getOrderPaymentStatuses() {
8068
- return this.getTypedDataArrayRequester(Es, "/public/references/order-payment-status", !0);
8073
+ return this.getTypedDataArrayRequester(Us, "/public/references/order-payment-status", !0);
8069
8074
  }
8070
8075
  /**
8071
8076
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
@@ -8077,19 +8082,19 @@ const B = class B extends Ue {
8077
8082
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
8078
8083
  */
8079
8084
  getOrderStatusDetails() {
8080
- return this.getTypedDataArrayRequester(Us, "/internal/references/order-status-detail", !0);
8085
+ return this.getTypedDataArrayRequester(Fs, "/internal/references/order-status-detail", !0);
8081
8086
  }
8082
8087
  /**
8083
8088
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
8084
8089
  */
8085
8090
  getPaymentTypes() {
8086
- return this.getTypedDataArrayRequester(bt, "/public/references/payment-type", !0);
8091
+ return this.getTypedDataArrayRequester(St, "/public/references/payment-type", !0);
8087
8092
  }
8088
8093
  /**
8089
8094
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
8090
8095
  */
8091
8096
  getResourceTypes() {
8092
- return this.getTypedDataArrayRequester(St, "/internal/references/resource-type", !0);
8097
+ return this.getTypedDataArrayRequester(dt, "/internal/references/resource-type", !0);
8093
8098
  }
8094
8099
  /**
8095
8100
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -8101,7 +8106,7 @@ const B = class B extends Ue {
8101
8106
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
8102
8107
  */
8103
8108
  getSourcePrimaryInterest() {
8104
- return this.getTypedDataArrayRequester(wt, "/internal/references/source-primary-interest", !0);
8109
+ return this.getTypedDataArrayRequester(Rt, "/internal/references/source-primary-interest", !0);
8105
8110
  }
8106
8111
  /**
8107
8112
  * Выполняет поиск данных о городах по терму в названии.
@@ -8117,7 +8122,7 @@ const B = class B extends Ue {
8117
8122
  * @param term Терм поиска.
8118
8123
  */
8119
8124
  searchRegion(r) {
8120
- return this.getTypedDataArrayRequester(we, `/internal/references/region-with-country/search?term=${r}`);
8125
+ return this.getTypedDataArrayRequester(ve, `/internal/references/region-with-country/search?term=${r}`);
8121
8126
  }
8122
8127
  /**
8123
8128
  * Возвращает {@link Promise} для получения справочника регионов указанной страны.
@@ -8127,7 +8132,7 @@ const B = class B extends Ue {
8127
8132
  * @param countryId Идентификатор страны.
8128
8133
  */
8129
8134
  getRegionsByCountry(r) {
8130
- return this.getTypedDataArrayRequester(we, "/internal/references/region", !1, { params: { countryId: r } }).then(
8135
+ return this.getTypedDataArrayRequester(ve, "/internal/references/region", !1, { params: { countryId: r } }).then(
8131
8136
  (e) => B.withoutUnknownLocation(e)
8132
8137
  );
8133
8138
  }
@@ -8139,7 +8144,7 @@ const B = class B extends Ue {
8139
8144
  * @param regionId Идентификатор региона.
8140
8145
  */
8141
8146
  getCitiesByRegion(r) {
8142
- return this.getTypedDataArrayRequester(Ns, "/internal/references/city", !1, { params: { regionId: r } }).then(
8147
+ return this.getTypedDataArrayRequester(qs, "/internal/references/city", !1, { params: { regionId: r } }).then(
8143
8148
  (e) => B.withoutUnknownLocation(e)
8144
8149
  );
8145
8150
  }
@@ -8150,7 +8155,7 @@ const B = class B extends Ue {
8150
8155
  * @param regionId Идентификатор региона.
8151
8156
  */
8152
8157
  getCitiesWithUserRegionByRegion(r) {
8153
- return this.getTypedDataArrayRequester(Qr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
8158
+ return this.getTypedDataArrayRequester(Vr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
8154
8159
  (e) => B.withoutUnknownLocation(e)
8155
8160
  );
8156
8161
  }
@@ -8179,7 +8184,7 @@ const B = class B extends Ue {
8179
8184
  * @param signal Сигнал отмены запроса.
8180
8185
  */
8181
8186
  searchCityWithUserRegion(r, e = void 0) {
8182
- return this.getTypedDataArrayRequester(Qr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8187
+ return this.getTypedDataArrayRequester(Vr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8183
8188
  (t) => B.withoutUnknownLocation(t)
8184
8189
  );
8185
8190
  }
@@ -8189,7 +8194,7 @@ const B = class B extends Ue {
8189
8194
  * @param term Терм поиска.
8190
8195
  */
8191
8196
  searchCountry(r) {
8192
- return this.getTypedDataArrayRequester(ve, `/internal/references/country/search?term=${r}`);
8197
+ return this.getTypedDataArrayRequester(we, `/internal/references/country/search?term=${r}`);
8193
8198
  }
8194
8199
  /**
8195
8200
  * Возвращает {@link Promise} для получения справочника типов доставки.
@@ -8207,7 +8212,7 @@ const B = class B extends Ue {
8207
8212
  * Возвращает {@link Promise} для получения справочника типов свойств.
8208
8213
  */
8209
8214
  getPropertyTypes() {
8210
- return this.getTypedDataArrayRequester(gt, "/internal/references/property-type", !0);
8215
+ return this.getTypedDataArrayRequester(ft, "/internal/references/property-type", !0);
8211
8216
  }
8212
8217
  /**
8213
8218
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -8219,7 +8224,7 @@ const B = class B extends Ue {
8219
8224
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
8220
8225
  */
8221
8226
  getProductFileType() {
8222
- return this.getTypedDataArrayRequester(Fs, "/public/references/product-file-type", !0);
8227
+ return this.getTypedDataArrayRequester(Ms, "/public/references/product-file-type", !0);
8223
8228
  }
8224
8229
  };
8225
8230
  /**
@@ -8229,7 +8234,7 @@ const B = class B extends Ue {
8229
8234
  s(B, "unknownLocationId", 1);
8230
8235
  let S = B;
8231
8236
  const d = ne("common.references_private", () => {
8232
- const n = w({}), r = w(void 0), e = w(void 0), t = w(void 0), i = w(void 0), o = w(void 0), c = w(void 0), u = w(void 0), p = w(void 0), g = w(void 0), a = w(void 0), P = w(void 0), be = w(void 0), Se = w(void 0), ce = w(void 0), le = w(void 0), rr = w(void 0), tr = w(void 0), sr = w(void 0), l = w(void 0);
8237
+ const n = v({}), r = v(void 0), e = v(void 0), t = v(void 0), i = v(void 0), o = v(void 0), c = v(void 0), u = v(void 0), p = v(void 0), g = v(void 0), a = v(void 0), P = v(void 0), be = v(void 0), Se = v(void 0), ce = v(void 0), le = v(void 0), rr = v(void 0), tr = v(void 0), sr = v(void 0), l = v(void 0);
8233
8238
  return {
8234
8239
  /**
8235
8240
  * Список загружаемых/загруженных на данный момент значений.
@@ -8312,7 +8317,7 @@ const d = ne("common.references_private", () => {
8312
8317
  */
8313
8318
  priceCoefficientsReference: l
8314
8319
  };
8315
- }), qi = ne("common.references", () => {
8320
+ }), Ei = ne("common.references", () => {
8316
8321
  const n = A(() => {
8317
8322
  const l = d();
8318
8323
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(S).getChannelPrimaryInterest().then((f) => {
@@ -8390,7 +8395,7 @@ const d = ne("common.references_private", () => {
8390
8395
  }).catch(T)), l.deliveryTypeReference;
8391
8396
  }), le = A(() => {
8392
8397
  const l = d();
8393
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Dt).getManagers().then((f) => {
8398
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Tt).getManagers().then((f) => {
8394
8399
  l.managersList = f;
8395
8400
  }).catch(T)), l.managersList;
8396
8401
  }), rr = A(() => {
@@ -8488,7 +8493,7 @@ const d = ne("common.references_private", () => {
8488
8493
  priceCoefficientsReference: sr
8489
8494
  };
8490
8495
  });
8491
- class Ms {
8496
+ class Hs {
8492
8497
  /**
8493
8498
  * Инициализирует экземпляр класса {@link MetaTagItem}.
8494
8499
  *
@@ -8506,7 +8511,7 @@ class Ms {
8506
8511
  this.name = r.name, this.content = r.content;
8507
8512
  }
8508
8513
  }
8509
- class Vr {
8514
+ class Jr {
8510
8515
  /**
8511
8516
  * Инициализирует экземпляр класса {@link Seo}.
8512
8517
  *
@@ -8546,10 +8551,10 @@ class Vr {
8546
8551
  */
8547
8552
  s(this, "tags");
8548
8553
  var e;
8549
- this.resourceType = new St(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((t) => new Ms(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8554
+ this.resourceType = new dt(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((t) => new Hs(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8550
8555
  }
8551
8556
  }
8552
- class Ei extends h {
8557
+ class Ui extends h {
8553
8558
  /**
8554
8559
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
8555
8560
  *
@@ -8557,7 +8562,7 @@ class Ei extends h {
8557
8562
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
8558
8563
  */
8559
8564
  getResourceSeoData(r, e) {
8560
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Vr(t.data));
8565
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Jr(t.data));
8561
8566
  }
8562
8567
  /**
8563
8568
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -8568,7 +8573,7 @@ class Ei extends h {
8568
8573
  * в случае ошибок в запросах.
8569
8574
  */
8570
8575
  saveResourceSeoData(r, e = {}) {
8571
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Vr(t.data), e);
8576
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Jr(t.data), e);
8572
8577
  }
8573
8578
  /**
8574
8579
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -8580,7 +8585,7 @@ class Ei extends h {
8580
8585
  return this.delete(`/internal/seo/${r.slug}/${e}`);
8581
8586
  }
8582
8587
  }
8583
- class Ui extends h {
8588
+ class Fi extends h {
8584
8589
  /**
8585
8590
  * Возвращает подсказки по адресам.
8586
8591
  *
@@ -8627,8 +8632,8 @@ class Ui extends h {
8627
8632
  });
8628
8633
  }
8629
8634
  }
8630
- var dt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(dt || {});
8631
- class Hs extends ht {
8635
+ var $t = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))($t || {});
8636
+ class Bs extends gt {
8632
8637
  /**
8633
8638
  * Инициализирует экземпляр класса {@link User}.
8634
8639
  *
@@ -8652,10 +8657,10 @@ class Hs extends ht {
8652
8657
  * Роль ценообразования текущего пользователя.
8653
8658
  */
8654
8659
  s(this, "pricingRole");
8655
- this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new ut(e.pricingRole) : void 0;
8660
+ this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new pt(e.pricingRole) : void 0;
8656
8661
  }
8657
8662
  }
8658
- class Fi extends h {
8663
+ class Mi extends h {
8659
8664
  /**
8660
8665
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
8661
8666
  */
@@ -8671,17 +8676,17 @@ class Fi extends h {
8671
8676
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
8672
8677
  }
8673
8678
  }
8674
- class Bs extends h {
8679
+ class zs extends h {
8675
8680
  /**
8676
8681
  * Возвращает данные о текущем пользователе.
8677
8682
  */
8678
8683
  // eslint-disable-next-line class-methods-use-this
8679
8684
  getCurrentUser() {
8680
- return this.get("/internal/users/info", {}, (r) => new Hs(r.data), !0);
8685
+ return this.get("/internal/users/info", {}, (r) => new Bs(r.data), !0);
8681
8686
  }
8682
8687
  }
8683
8688
  const Pr = ne("common.user_state_private", () => {
8684
- const n = w({}), r = w(void 0), e = w(void 0);
8689
+ const n = v({}), r = v(void 0), e = v(void 0);
8685
8690
  return {
8686
8691
  /**
8687
8692
  * Список загружаемых/загруженных на данный момент значений.
@@ -8697,23 +8702,23 @@ const Pr = ne("common.user_state_private", () => {
8697
8702
  currentManager: e
8698
8703
  };
8699
8704
  });
8700
- function Jr(n) {
8705
+ function Kr(n) {
8701
8706
  const r = Pr();
8702
- (n == null ? void 0 : n.type) !== dt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Dt).getManager(n.id).then((e) => {
8707
+ (n == null ? void 0 : n.type) !== $t.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Tt).getManager(n.id).then((e) => {
8703
8708
  r.currentManager = e;
8704
8709
  }).catch(T).finally(() => {
8705
8710
  r.dataLoaderList.currentManager = !1;
8706
8711
  }));
8707
8712
  }
8708
- const Mi = ne("common.user_state", () => {
8713
+ const Hi = ne("common.user_state", () => {
8709
8714
  const n = A(() => {
8710
8715
  const e = Pr();
8711
- return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(Bs).getCurrentUser().then((t) => {
8712
- e.currentUser = t, Jr(t);
8716
+ return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(zs).getCurrentUser().then((t) => {
8717
+ e.currentUser = t, Kr(t);
8713
8718
  }).catch(T).finally(() => {
8714
8719
  e.dataLoaderList.currentUser = !1;
8715
8720
  })), e.currentUser;
8716
- }), r = A(() => (Jr(n.value), Pr().currentManager));
8721
+ }), r = A(() => (Kr(n.value), Pr().currentManager));
8717
8722
  return {
8718
8723
  /**
8719
8724
  * Данные о текущем пользователе.
@@ -8763,7 +8768,7 @@ class yr extends Ze {
8763
8768
  this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new Re(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Ar(o))) ?? [];
8764
8769
  }
8765
8770
  }
8766
- class Hi extends Fe {
8771
+ class Bi extends Fe {
8767
8772
  /**
8768
8773
  * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
8769
8774
  *
@@ -8799,7 +8804,7 @@ class Hi extends Fe {
8799
8804
  return this;
8800
8805
  }
8801
8806
  }
8802
- class Bi extends Y {
8807
+ class zi extends Y {
8803
8808
  /**
8804
8809
  * Возвращает список регионов пользователей.
8805
8810
  *
@@ -8898,7 +8903,7 @@ class Bi extends Y {
8898
8903
  });
8899
8904
  }
8900
8905
  }
8901
- class zi {
8906
+ class Wi {
8902
8907
  /**
8903
8908
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
8904
8909
  *
@@ -8922,199 +8927,199 @@ class zi {
8922
8927
  }
8923
8928
  }
8924
8929
  export {
8925
- _s as AnyReference,
8926
- os as AppBaseConfig,
8930
+ Ns as AnyReference,
8931
+ cs as AppBaseConfig,
8927
8932
  Cr as BankAccount,
8928
8933
  Y as BasePaginationProvider,
8929
8934
  ur as BlogPost,
8930
- vr as BlogPostMediaFile,
8935
+ wr as BlogPostMediaFile,
8931
8936
  Ye as BlogPostMediaTypeEnum,
8932
8937
  Qe as BlogPostPublicationStatusEnum,
8933
8938
  ae as BlogPostShortInfo,
8934
- Ks as BlogPostsListFilters,
8935
- wr as BlogProvider,
8936
- hs as CalculationTypeEnum,
8939
+ Xs as BlogPostsListFilters,
8940
+ vr as BlogProvider,
8941
+ gs as CalculationTypeEnum,
8937
8942
  y as CalendarHelper,
8938
8943
  Oe as Cart,
8939
- Zs as CartProvider,
8940
- ri as CatalogProvider,
8941
- nt as CatalogableItem,
8944
+ ei as CartProvider,
8945
+ ti as CatalogProvider,
8946
+ ot as CatalogableItem,
8942
8947
  Q as Category,
8943
- as as CategoryFilter,
8944
- Br as CategoryFilterSetting,
8945
- ys as CategoryFilterValue,
8946
- Hr as CategoryPricingRule,
8948
+ ws as CategoryFilter,
8949
+ zr as CategoryFilterSetting,
8950
+ as as CategoryFilterValue,
8951
+ Br as CategoryPricingRule,
8947
8952
  vt as ChannelPrimaryInterest,
8948
- Ns as City,
8953
+ qs as City,
8949
8954
  Re as CityWithRegionAndCountry,
8950
- Qr as CityWithUserRegion,
8951
- jr as Client,
8952
- Cs as ClientAdditionalData,
8955
+ Vr as CityWithUserRegion,
8956
+ Gr as Client,
8957
+ Ds as ClientAdditionalData,
8953
8958
  Ke as ClientCategory,
8954
8959
  H as ClientDataProvider,
8955
- ti as ClientPriceProvider,
8956
- si as ClientPriceTemplateProvider,
8960
+ si as ClientPriceProvider,
8961
+ ii as ClientPriceTemplateProvider,
8957
8962
  X as ClientProduct,
8958
- oi as ClientProductCategoryDataProvider,
8959
- ci as ClientProductDataProvider,
8963
+ ci as ClientProductCategoryDataProvider,
8964
+ li as ClientProductDataProvider,
8960
8965
  oe as ClientShortInfo,
8961
8966
  vs as ClientsAdditionalDataRequestTypeEnum,
8962
- gi as ClientsListFilters,
8967
+ fi as ClientsListFilters,
8963
8968
  Ee as CodedIdentity,
8964
- yi as ConfiguratorProvider,
8965
- Ts as ConfiguratorsEnum,
8969
+ ai as ConfiguratorProvider,
8970
+ Ps as ConfiguratorsEnum,
8966
8971
  Dr as Contact,
8967
- lt as ContactLinks,
8972
+ ut as ContactLinks,
8968
8973
  se as ContactPerson,
8969
- Ds as ContactPersonRelated,
8970
- qs as ContactPosition,
8974
+ Ts as ContactPersonRelated,
8975
+ Es as ContactPosition,
8971
8976
  gr as ContactRelation,
8972
- mt as ContragentBase,
8977
+ yt as ContragentBase,
8973
8978
  Xe as ContragentFactory,
8974
- yt as ContragentIc,
8975
- ws as ContragentPerson,
8976
- Rs as ContragentUlNr,
8977
- at as ContragentUlR,
8979
+ at as ContragentIc,
8980
+ Rs as ContragentPerson,
8981
+ Cs as ContragentUlNr,
8982
+ wt as ContragentUlR,
8978
8983
  kr as CostSourceEnum,
8979
- ve as Country,
8984
+ we as Country,
8980
8985
  Ir as CuratedDirection,
8981
8986
  xr as Curator,
8982
8987
  j as Currency,
8983
- Ui as DataSuggestionProvider,
8988
+ Fi as DataSuggestionProvider,
8984
8989
  Tr as DateHelper,
8985
- Ci as DateTimeProvider,
8986
- ft as DeletableNamedIdentity,
8990
+ Di as DateTimeProvider,
8991
+ mt as DeletableNamedIdentity,
8987
8992
  _e as DeliveryAddress,
8988
8993
  K as DeliveryType,
8989
- rt as DetailedJwtPayload,
8990
- ts as DeviceTypeResolutionConfig,
8991
- cs as DiscountShortInfo,
8992
- zi as FieldValidationResultData,
8994
+ tt as DetailedJwtPayload,
8995
+ ss as DeviceTypeResolutionConfig,
8996
+ ls as DiscountShortInfo,
8997
+ Wi as FieldValidationResultData,
8993
8998
  te as FilterGroup,
8994
- Fr as FilterItem,
8999
+ Mr as FilterItem,
8995
9000
  dr as FilterOpEnum,
8996
- ms as FilterSettings,
8997
- it as GeoCoordinates,
8998
- us as HiddenCatalogableItem,
9001
+ ys as FilterSettings,
9002
+ nt as GeoCoordinates,
9003
+ ps as HiddenCatalogableItem,
8999
9004
  Ue as HttpCachedRequester,
9000
- ss as HttpParamsConfig,
9005
+ is as HttpParamsConfig,
9001
9006
  h as HttpRequester,
9002
9007
  G as Identity,
9003
- ps as Image,
9008
+ hs as Image,
9004
9009
  M as InterceptorsEnum,
9005
9010
  Te as JwtPayload,
9006
9011
  Z as Manager,
9007
9012
  Lr as ManagerCommon,
9008
- Ai as ManagerDataFactory,
9009
- Dt as ManagerDataProvider,
9010
- Ms as MetaTagItem,
9013
+ bi as ManagerDataFactory,
9014
+ Tt as ManagerDataProvider,
9015
+ Hs as MetaTagItem,
9011
9016
  L as NamedIdentity,
9012
9017
  F as Offer,
9013
- bs as OfferActualization,
9018
+ Ss as OfferActualization,
9014
9019
  xe as OfferActualizationStatus,
9015
- di as OfferHelper,
9016
- Tt as OfferShortInfo,
9017
- Si as OffersDataProvider,
9018
- bi as OffersListFilters,
9019
- At as Operator,
9020
+ $i as OfferHelper,
9021
+ Pt as OfferShortInfo,
9022
+ di as OffersDataProvider,
9023
+ Si as OffersListFilters,
9024
+ bt as Operator,
9020
9025
  ie as Opf,
9021
9026
  V as OpfEnum,
9022
9027
  I as Order,
9023
- $s as OrderAction,
9024
- $i as OrderEditorData,
9025
- Pt as OrderInfo,
9026
- ds as OrderItem,
9027
- ot as OrderItemBase,
9028
- Es as OrderPaymentStatus,
9029
- Rt as OrderShortInfo,
9028
+ ks as OrderAction,
9029
+ ki as OrderEditorData,
9030
+ At as OrderInfo,
9031
+ $s as OrderItem,
9032
+ ct as OrderItemBase,
9033
+ Us as OrderPaymentStatus,
9034
+ Ct as OrderShortInfo,
9030
9035
  er as OrderStatus,
9031
- Us as OrderStatusDetail,
9032
- xs as OrderStatusDetailEnum,
9033
- Is as OrderStatusEnum,
9034
- ks as OrderStatusHistoryInfo,
9035
- Oi as OrdersDataProvider,
9036
- ki as OrdersListFilters,
9036
+ Fs as OrderStatusDetail,
9037
+ _s as OrderStatusDetailEnum,
9038
+ xs as OrderStatusEnum,
9039
+ Os as OrderStatusHistoryInfo,
9040
+ Li as OrdersDataProvider,
9041
+ Oi as OrdersListFilters,
9037
9042
  Fe as PaginationFiltersBase,
9038
9043
  Ce as PartnerGroup,
9039
- bt as PaymentType,
9044
+ St as PaymentType,
9040
9045
  Ge as PreferencesStorageProvider,
9041
9046
  fr as PriceAnalyze,
9042
- Ii as PriceAnalyzeProvider,
9047
+ xi as PriceAnalyzeProvider,
9043
9048
  Pe as PriceCoefficient,
9044
- st as PriceCoefficientEnum,
9045
- xi as PriceHistoryDataProvider,
9046
- Os as PriceHistoryItem,
9049
+ it as PriceCoefficientEnum,
9050
+ _i as PriceHistoryDataProvider,
9051
+ Ls as PriceHistoryItem,
9047
9052
  fe as PriceTemplate,
9048
9053
  pr as PriceTemplateCategory,
9049
9054
  Le as PriceTemplateClient,
9050
- pt as PriceTemplateICatalogableItem,
9055
+ ht as PriceTemplateICatalogableItem,
9051
9056
  hr as PriceTemplateProduct,
9052
- li as PriceTemplateProvider,
9057
+ ui as PriceTemplateProvider,
9053
9058
  Ie as PricingRole,
9054
- ui as PricingRoleProvider,
9059
+ pi as PricingRoleProvider,
9055
9060
  Rr as PrimaryCatalogableItem,
9056
9061
  q as Product,
9057
- ii as ProductCategoryDataProvider,
9058
- ni as ProductDataProvider,
9059
- Fs as ProductFileType,
9060
- ct as ProductFilterTypeEnum,
9062
+ ni as ProductCategoryDataProvider,
9063
+ oi as ProductDataProvider,
9064
+ Ms as ProductFileType,
9065
+ lt as ProductFilterTypeEnum,
9061
9066
  $r as ProductPriceCoefficient,
9062
- Ls as ProductPriceHistory,
9063
- Mr as ProductUnit,
9064
- Ss as ProfstroyOfferItem,
9065
- pi as PropertiesProvider,
9067
+ Is as ProductPriceHistory,
9068
+ Hr as ProductUnit,
9069
+ ds as ProfstroyOfferItem,
9070
+ hi as PropertiesProvider,
9066
9071
  me as Property,
9067
- gt as PropertyType,
9068
- gs as PropertyTypeEnum,
9072
+ ft as PropertyType,
9073
+ fs as PropertyTypeEnum,
9069
9074
  he as PropertyValue,
9070
- _i as RecommendationsDataProvider,
9071
- Yr as RecommendationsList,
9075
+ Ni as RecommendationsDataProvider,
9076
+ Qr as RecommendationsList,
9072
9077
  D as Reference,
9073
- Ni as ReferenceDataFactory,
9078
+ qi as ReferenceDataFactory,
9074
9079
  S as ReferenceDataProvider,
9075
- we as Region,
9076
- St as ResourceType,
9077
- Di as STANDARD_PERIOD_GROUPS,
9078
- Ti as STANDARD_PERIOD_SECTIONS,
9080
+ ve as Region,
9081
+ dt as ResourceType,
9082
+ Ti as STANDARD_PERIOD_GROUPS,
9083
+ Pi as STANDARD_PERIOD_SECTIONS,
9079
9084
  U as SalesDirection,
9080
- is as SentryConfig,
9081
- Vr as Seo,
9082
- Ei as SeoDataProvider,
9083
- wt as SourcePrimaryInterest,
9084
- ls as StockCount,
9085
- ai as TableDataPagination,
9086
- Ps as TableDataPaginationRequestParams,
9085
+ ns as SentryConfig,
9086
+ Jr as Seo,
9087
+ Ui as SeoDataProvider,
9088
+ Rt as SourcePrimaryInterest,
9089
+ us as StockCount,
9090
+ wi as TableDataPagination,
9091
+ As as TableDataPaginationRequestParams,
9087
9092
  vi as TableDataSortRequestParams,
9088
- hi as TemplateProductCategoryDataProvider,
9089
- ei as TemplatesListFilters,
9093
+ gi as TemplateProductCategoryDataProvider,
9094
+ ri as TemplatesListFilters,
9090
9095
  _ as TypedInstanceFactory,
9091
- Ct as UnitsHelper,
9092
- fi as UnknownClientDataProvider,
9093
- tt as UpdatableNamedIdentity,
9094
- Hs as User,
9095
- Fi as UserAuthDataProvider,
9096
- ht as UserCommonInfo,
9097
- Bs as UserDataProvider,
9098
- ut as UserPricingRole,
9096
+ Dt as UnitsHelper,
9097
+ mi as UnknownClientDataProvider,
9098
+ st as UpdatableNamedIdentity,
9099
+ Bs as User,
9100
+ Mi as UserAuthDataProvider,
9101
+ gt as UserCommonInfo,
9102
+ zs as UserDataProvider,
9103
+ pt as UserPricingRole,
9099
9104
  yr as UserRegion,
9100
9105
  Ar as UserRegionEmployee,
9101
- Bi as UserRegionProvider,
9106
+ zi as UserRegionProvider,
9102
9107
  Ze as UserRegionShortInfo,
9103
- Hi as UserRegionsListFilters,
9108
+ Bi as UserRegionsListFilters,
9104
9109
  N as UserShortInfo,
9105
- dt as UserTypeEnum,
9106
- mi as VersionConfig,
9110
+ $t as UserTypeEnum,
9111
+ yi as VersionConfig,
9107
9112
  Me as Warehouse,
9108
- ns as WebSocketConfig,
9109
- Li as currentOrderInjectionKey,
9110
- wi as daysAgoIso,
9111
- zr as findCatalogItemByIdRecursive,
9112
- Wr as flattenCatalogItems,
9113
- Pi as formatPercentChange,
9114
- Ri as formatRelativeDate,
9115
- As as pluralize,
9113
+ os as WebSocketConfig,
9114
+ Ii as currentOrderInjectionKey,
9115
+ Ri as daysAgoIso,
9116
+ Wr as findCatalogItemByIdRecursive,
9117
+ jr as flattenCatalogItems,
9118
+ Ai as formatPercentChange,
9119
+ Ci as formatRelativeDate,
9120
+ bs as pluralize,
9116
9121
  ze as useAuthStateStore,
9117
9122
  O as useBaseConfigStateStore,
9118
- qi as useReferencesStore,
9119
- Mi as useUserStateStore
9123
+ Ei as useReferencesStore,
9124
+ Hi as useUserStateStore
9120
9125
  };