@snabcentr/common-lib 3.9.0 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +3 -3
  3. package/dist/sc-common-lib.js +692 -644
  4. package/dist/sc-common-lib.js.map +1 -1
  5. package/dist/sc-common-lib.umd.cjs +1 -1
  6. package/dist/sc-common-lib.umd.cjs.map +1 -1
  7. package/dist/src/catalog/classes/templates-list-filters.d.ts.map +1 -1
  8. package/dist/src/catalog/providers/catalog-provider.d.ts.map +1 -1
  9. package/dist/src/clients/classes/contragent/contragent-factory.d.ts.map +1 -1
  10. package/dist/src/clients/providers/client-data-provider.d.ts +1 -1
  11. package/dist/src/clients/providers/client-data-provider.d.ts.map +1 -1
  12. package/dist/src/index.d.ts +1 -0
  13. package/dist/src/index.d.ts.map +1 -1
  14. package/dist/src/offers/providers/offers-data-provider.d.ts +1 -1
  15. package/dist/src/offers/providers/offers-data-provider.d.ts.map +1 -1
  16. package/dist/src/orders/providers/orders-data-provider.d.ts +5 -5
  17. package/dist/src/orders/providers/orders-data-provider.d.ts.map +1 -1
  18. package/dist/src/pagination/providers/base-pagination-provider.d.ts +2 -2
  19. package/dist/src/pagination/providers/base-pagination-provider.d.ts.map +1 -1
  20. package/dist/src/references/providers/reference-data-provider.d.ts +2 -2
  21. package/dist/src/references/providers/reference-data-provider.d.ts.map +1 -1
  22. package/dist/src/statistics/classes/index.d.ts +2 -0
  23. package/dist/src/statistics/classes/index.d.ts.map +1 -0
  24. package/dist/src/statistics/classes/search-product-statistic.d.ts +26 -0
  25. package/dist/src/statistics/classes/search-product-statistic.d.ts.map +1 -0
  26. package/dist/src/statistics/index.d.ts +4 -0
  27. package/dist/src/statistics/index.d.ts.map +1 -0
  28. package/dist/src/statistics/interfaces/i-search-product-statistic.d.ts +19 -0
  29. package/dist/src/statistics/interfaces/i-search-product-statistic.d.ts.map +1 -0
  30. package/dist/src/statistics/interfaces/index.d.ts +2 -0
  31. package/dist/src/statistics/interfaces/index.d.ts.map +1 -0
  32. package/dist/src/statistics/providers/index.d.ts +2 -0
  33. package/dist/src/statistics/providers/index.d.ts.map +1 -0
  34. package/dist/src/statistics/providers/statistics-provider.d.ts +26 -0
  35. package/dist/src/statistics/providers/statistics-provider.d.ts.map +1 -0
  36. package/dist/src/system/classes/reference.d.ts.map +1 -1
  37. package/package.json +11 -16
@@ -1,13 +1,13 @@
1
1
  var Yt = Object.defineProperty;
2
- var Vt = (n, r, e) => r in n ? Yt(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var s = (n, r, e) => Vt(n, typeof r != "symbol" ? r + "" : r, e);
2
+ var Vt = (i, r, e) => r in i ? Yt(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
+ var s = (i, r, e) => Vt(i, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jwtDecode as yt } from "jwt-decode";
5
- import { merge as Ne, isNil as m, isEmpty as Q, noop as R, mapValues as at, isArray as V, every as Qt, split as Jt, isString as I, startsWith as wt, endsWith as Kt, includes as Xt, isFunction as Er, map as P, isObject as er, isDate as rr, isError as Yr, assign as Vr, toLower as Zt, isPlainObject as es, isUndefined as Be, constant as rs, toUpper as ts, cloneDeep as ss, forEach as is, some as Qr, round as vt, omitBy as Ct } from "lodash-es";
5
+ import { merge as Ne, isNil as m, isEmpty as Q, noop as P, mapValues as at, isArray as V, every as Qt, split as Jt, isString as I, startsWith as wt, endsWith as Kt, includes as Xt, isFunction as Er, map as R, isObject as er, isDate as rr, isError as Yr, assign as Vr, toLower as Zt, isPlainObject as es, isUndefined as Be, constant as rs, toUpper as ts, cloneDeep as ss, forEach as is, some as Qr, round as Ct, omitBy as vt } from "lodash-es";
6
6
  import { objectToCamel as Ur, objectToSnake as ns } from "ts-case-convert";
7
- import { defineStore as ue } from "pinia";
8
- import { ref as v, markRaw as os, computed as b } from "vue";
9
- import { isAfter as Jr, parseISO as _, startOfToday as Ee, isValid as Kr, format as $, endOfMonth as x, addMonths as k, differenceInCalendarMonths as cs, startOfMonth as H, getDate as Xr, getDaysInMonth as ls, endOfDay as B, startOfDay as re, setDate as us, startOfWeek as te, addWeeks as Sr, differenceInCalendarDays as je, addDays as se, subDays as Ye, addBusinessDays as ps, startOfYear as ae, endOfYear as $e, endOfWeek as ke, endOfTomorrow as hs, startOfTomorrow as gs, endOfYesterday as fs, startOfYesterday as ms, endOfToday as ys, startOfQuarter as Oe, endOfQuarter as Ge, addYears as gr, addQuarters as fr, subYears as mr, subQuarters as yr, subMonths as ar, subWeeks as Zr, addSeconds as as } from "date-fns";
10
- import ws, { CanceledError as vs } from "axios";
7
+ import { defineStore as pe } from "pinia";
8
+ import { ref as C, markRaw as os, computed as b } from "vue";
9
+ import { isAfter as Jr, parseISO as _, startOfToday as Ee, isValid as Kr, format as $, endOfMonth as x, addMonths as O, differenceInCalendarMonths as cs, startOfMonth as H, getDate as Xr, getDaysInMonth as ls, endOfDay as B, startOfDay as te, setDate as us, startOfWeek as se, addWeeks as Sr, differenceInCalendarDays as je, addDays as ie, subDays as Ye, addBusinessDays as ps, startOfYear as ae, endOfYear as $e, endOfWeek as ke, endOfTomorrow as hs, startOfTomorrow as gs, endOfYesterday as fs, startOfYesterday as ms, endOfToday as ys, startOfQuarter as Oe, endOfQuarter as Ge, addYears as gr, addQuarters as fr, subYears as mr, subQuarters as yr, subMonths as ar, subWeeks as Zr, addSeconds as as } from "date-fns";
10
+ import ws, { CanceledError as Cs } from "axios";
11
11
  class be {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
@@ -151,11 +151,11 @@ class Dt extends be {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- const t = yt(e), i = new Dt(Ur(t));
155
- return i.resourceAccess = t.resource_access, i;
154
+ const t = yt(e), n = new Dt(Ur(t));
155
+ return n.resourceAccess = t.resource_access, n;
156
156
  }
157
157
  }
158
- class Cs {
158
+ class vs {
159
159
  /**
160
160
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
161
161
  *
@@ -199,7 +199,7 @@ class Ds {
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 Rs {
202
+ class Ps {
203
203
  /**
204
204
  * Инициализирует экземпляр класса {@link SentryConfig}.
205
205
  *
@@ -230,7 +230,7 @@ class Rs {
230
230
  * Дополнительные параметры.
231
231
  */
232
232
  s(this, "additionalParams");
233
- var e, t, i, o;
233
+ var e, t, n, o;
234
234
  this.dsn = (r == null ? void 0 : r.dsn) ?? "", this.environment = (r == null ? void 0 : r.environment) ?? "production", this.ignoreErrors = (r == null ? void 0 : r.ignoreErrors) ?? [
235
235
  /Network\s{1,3}Error/,
236
236
  /Request\s{1,3}aborted/,
@@ -239,12 +239,12 @@ class Rs {
239
239
  allowedTargets: ((e = r == null ? void 0 : r.trace) == null ? void 0 : e.allowedTargets) ?? [/^\//],
240
240
  sampleRate: ((t = r == null ? void 0 : r.trace) == null ? void 0 : t.sampleRate) ?? 0
241
241
  }, this.replay = {
242
- replaysOnErrorSampleRate: ((i = r == null ? void 0 : r.replay) == null ? void 0 : i.replaysOnErrorSampleRate) ?? 0,
242
+ replaysOnErrorSampleRate: ((n = r == null ? void 0 : r.replay) == null ? void 0 : n.replaysOnErrorSampleRate) ?? 0,
243
243
  replaysSessionSampleRate: ((o = r == null ? void 0 : r.replay) == null ? void 0 : o.replaysSessionSampleRate) ?? 0
244
244
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
245
245
  }
246
246
  }
247
- class Ps {
247
+ class Rs {
248
248
  /**
249
249
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
250
250
  *
@@ -330,39 +330,39 @@ class Ts {
330
330
  * @inheritDoc
331
331
  */
332
332
  s(this, "numberPrecision");
333
- var e, t, i, o;
334
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Ds(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Cs(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Rs({
333
+ var e, t, n, o;
334
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Ds(r == null ? void 0 : r.http), this.deviceTypeByResolution = new vs(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Ps({
335
335
  environment: this.environment,
336
336
  ...r == null ? void 0 : r.sentry
337
- }), 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 Ps(r.websocket) : void 0, this.dateFormats = {
337
+ }), 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 Rs(r.websocket) : void 0, this.dateFormats = {
338
338
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
339
339
  uiDate: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
340
- uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
340
+ uiDateWithTime: ((n = r == null ? void 0 : r.dateFormats) == null ? void 0 : n.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
341
341
  }, this.numberPrecision = {
342
342
  priceCoefficient: ((o = r == null ? void 0 : r.numberPrecision) == null ? void 0 : o.priceCoefficient) ?? 7
343
343
  };
344
344
  }
345
345
  }
346
- const S = ue("common.config", () => {
347
- const n = v(new Ts());
346
+ const S = pe("common.config", () => {
347
+ const i = C(new Ts());
348
348
  return {
349
349
  /**
350
350
  * Конфигурационные данные приложения.
351
351
  */
352
- config: n,
352
+ config: i,
353
353
  /**
354
354
  * Получает конфигурацию приложения.
355
355
  *
356
356
  * @returns Конфигурация приложения.
357
357
  */
358
- getConfig: () => n.value,
358
+ getConfig: () => i.value,
359
359
  /**
360
360
  * Устанавливает конфигурацию приложения.
361
361
  *
362
362
  * @param appConfig Конфигурация приложения.
363
363
  */
364
364
  setConfig: (t) => {
365
- n.value = Ne(n.value, t);
365
+ i.value = Ne(i.value, t);
366
366
  }
367
367
  };
368
368
  });
@@ -411,14 +411,14 @@ class Ve {
411
411
  try {
412
412
  if (m(e) || Q(e))
413
413
  throw new Error("Data is empty");
414
- const i = JSON.stringify({
414
+ const n = JSON.stringify({
415
415
  availableFor: t,
416
416
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
417
417
  data: e
418
418
  });
419
- localStorage.setItem(r, i);
420
- } catch (i) {
421
- if (i instanceof DOMException && i.code === DOMException.QUOTA_EXCEEDED_ERR) {
419
+ localStorage.setItem(r, n);
420
+ } catch (n) {
421
+ if (n instanceof DOMException && n.code === DOMException.QUOTA_EXCEEDED_ERR) {
422
422
  this.clearOldData();
423
423
  try {
424
424
  const o = JSON.stringify({
@@ -457,9 +457,9 @@ class Ve {
457
457
  const t = localStorage.key(e);
458
458
  if (t)
459
459
  try {
460
- const i = localStorage.getItem(t);
461
- if (i) {
462
- const o = JSON.parse(i);
460
+ const n = localStorage.getItem(t);
461
+ if (n) {
462
+ const o = JSON.parse(n);
463
463
  o.availableFor && !Jr(_(o.availableFor) || Ee(), /* @__PURE__ */ new Date()) && r.push(t);
464
464
  }
465
465
  } catch {
@@ -476,16 +476,16 @@ class Ve {
476
476
  }
477
477
  }
478
478
  }
479
- function et(n) {
479
+ function et(i) {
480
480
  try {
481
- const r = be.getJwtPayload(n);
481
+ const r = be.getJwtPayload(i);
482
482
  return new Date(r.exp * 1e3);
483
483
  } catch {
484
484
  return;
485
485
  }
486
486
  }
487
- const we = ue("common.auth_state_private", () => {
488
- const n = v(
487
+ const we = pe("common.auth_state_private", () => {
488
+ const i = C(
489
489
  (() => {
490
490
  var u;
491
491
  const o = Ve.getActualDataFromStorage(
@@ -497,18 +497,18 @@ const we = ue("common.auth_state_private", () => {
497
497
  const c = (u = S().config.devMode) == null ? void 0 : u.initAuthBearerToken;
498
498
  return c ? Promise.resolve(c) : void 0;
499
499
  })()
500
- ), r = v(void 0), e = v(void 0), t = os(/* @__PURE__ */ new Map());
501
- function i() {
502
- e.value = void 0, m(n.value) || n.value.then((o) => {
500
+ ), r = C(void 0), e = C(void 0), t = os(/* @__PURE__ */ new Map());
501
+ function n() {
502
+ e.value = void 0, m(i.value) || i.value.then((o) => {
503
503
  const c = be.getJwtPayload(o);
504
504
  e.value = c.exp * 1e3 > Date.now() ? at(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
505
- }).catch(R);
505
+ }).catch(P);
506
506
  }
507
507
  return {
508
508
  /**
509
509
  * {@link Promise<string>} для получения jwt-ключа доступа к системам.
510
510
  */
511
- jwtToken: n,
511
+ jwtToken: i,
512
512
  /**
513
513
  * Функция для обновления jwt-ключа доступа к системам.
514
514
  */
@@ -524,16 +524,16 @@ const we = ue("common.auth_state_private", () => {
524
524
  /**
525
525
  * Принудительно пересчитывает права доступа пользователя на основе текущего JWT токена.
526
526
  */
527
- recalculateUserPermissions: i
527
+ recalculateUserPermissions: n
528
528
  };
529
- }), ze = ue("common.auth_state", () => {
530
- const n = b(() => {
529
+ }), ze = pe("common.auth_state", () => {
530
+ const i = b(() => {
531
531
  const o = we();
532
532
  if (m(o.jwtToken) && !m(o.jwtTokenUpdater)) {
533
533
  const c = o.jwtTokenUpdater();
534
534
  o.jwtToken = c, c.then((u) => {
535
535
  o.jwtToken = Promise.resolve(u), Ve.saveActualDataToStorage("sc.token", u, et(u)), o.recalculateUserPermissions();
536
- }).catch(R);
536
+ }).catch(P);
537
537
  }
538
538
  return o.jwtToken;
539
539
  });
@@ -548,12 +548,12 @@ const we = ue("common.auth_state_private", () => {
548
548
  const o = we();
549
549
  o.jwtToken = void 0, o.userPermissions = void 0, Ve.saveActualDataToStorage("sc.token", void 0);
550
550
  }
551
- function i(o) {
551
+ function n(o) {
552
552
  const c = we();
553
553
  !m(c.jwtToken) && m(c.userPermissions) && c.jwtToken.then((g) => {
554
554
  const a = be.getJwtPayload(g);
555
555
  c.userPermissions = a.exp * 1e3 > Date.now() ? at(a.resourceAccess, (T) => (T == null ? void 0 : T.roles) ?? []) : void 0;
556
- }).catch(R);
556
+ }).catch(P);
557
557
  const u = V(o) ? o.join(" && ") : o;
558
558
  if (c.userPermissionsComputedRefs.has(u))
559
559
  return c.userPermissionsComputedRefs.get(u);
@@ -574,7 +574,7 @@ const we = ue("common.auth_state_private", () => {
574
574
  /**
575
575
  * {@link Promise<string>} для получения jwt-ключа доступа к системам.
576
576
  */
577
- jwtToken: n,
577
+ jwtToken: i,
578
578
  /**
579
579
  * Устанавливает механизм для обновления jwt-ключа доступа к системам.
580
580
  *
@@ -596,11 +596,11 @@ const we = ue("common.auth_state_private", () => {
596
596
  *
597
597
  * @param name Проверяемое право доступа или их список. Должны быть представлены в виде значения: <РЕСУРС>.<РОЛЬ>.
598
598
  */
599
- hasUserPermission: i
599
+ hasUserPermission: n
600
600
  };
601
601
  });
602
- var Qe = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(Qe || {});
603
- class pe {
602
+ var Qe = /* @__PURE__ */ ((i) => (i.Image = "image", i.Video = "video", i))(Qe || {});
603
+ class re {
604
604
  /**
605
605
  * Инициализирует экземпляр класса {@link Identity}.
606
606
  *
@@ -625,7 +625,7 @@ class pe {
625
625
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : m(this.id);
626
626
  }
627
627
  }
628
- class $r extends pe {
628
+ class $r extends re {
629
629
  /**
630
630
  * Инициализирует экземпляр класса {@link BlogPostMediaFile}.
631
631
  *
@@ -668,8 +668,8 @@ class $r extends pe {
668
668
  return this.mediaType === Qe.Video;
669
669
  }
670
670
  }
671
- var Je = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(Je || {});
672
- class O {
671
+ var Je = /* @__PURE__ */ ((i) => (i.Draft = "draft", i.Published = "published", i.Scheduled = "scheduled", i))(Je || {});
672
+ class k {
673
673
  /**
674
674
  * Преобразует значение даты из данных ответа в дату.
675
675
  * Строки разбираются как ISO-даты; нечитаемое значение равносильно отсутствию даты.
@@ -696,10 +696,10 @@ class O {
696
696
  * @param period Период.
697
697
  */
698
698
  static periodToApiFormat(r) {
699
- return { from: O.toApiFormat(r.from), to: O.toApiFormat(r.to) };
699
+ return { from: k.toApiFormat(r.from), to: k.toApiFormat(r.to) };
700
700
  }
701
701
  }
702
- class ir extends pe {
702
+ class ir extends re {
703
703
  /**
704
704
  * Инициализирует экземпляр класса {@link CreatableIdentity}.
705
705
  *
@@ -712,7 +712,7 @@ class ir extends pe {
712
712
  * Дата и время создания записи. Если не задана в данных, используется текущий момент.
713
713
  */
714
714
  s(this, "createdAt");
715
- this.createdAt = O.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
715
+ this.createdAt = k.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
716
716
  }
717
717
  }
718
718
  class Ue extends ir {
@@ -851,7 +851,7 @@ class D {
851
851
  this.from = I(r == null ? void 0 : r.from) ? _(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = I(r == null ? void 0 : r.to) ? _(r.to) : (r == null ? void 0 : r.to) ?? null;
852
852
  }
853
853
  }
854
- class wi extends de {
854
+ class Ci extends de {
855
855
  /**
856
856
  * Инициализирует экземпляр класса {@link BlogPostsListFilters}.
857
857
  *
@@ -921,12 +921,12 @@ class wi extends de {
921
921
  * задачей по унификации.
922
922
  */
923
923
  asClearRaw() {
924
- var t, i, o, c;
924
+ var t, n, o, c;
925
925
  const e = super.asClearRaw();
926
- return !((t = e == null ? void 0 : e.publishedAt) != null && t.from) && !((i = e == null ? void 0 : e.publishedAt) != null && i.to) && delete e.publishedAt, !((o = e == null ? void 0 : e.createdAt) != null && o.from) && !((c = e == null ? void 0 : e.createdAt) != null && c.to) && delete e.createdAt, e;
926
+ return !((t = e == null ? void 0 : e.publishedAt) != null && t.from) && !((n = e == null ? void 0 : e.publishedAt) != null && n.to) && delete e.publishedAt, !((o = e == null ? void 0 : e.createdAt) != null && o.from) && !((c = e == null ? void 0 : e.createdAt) != null && c.to) && delete e.createdAt, e;
927
927
  }
928
928
  }
929
- var z = /* @__PURE__ */ ((n) => (n.BASE_URL_REQUEST_INTERCEPTOR = "baseUrlRequestInterceptor", n.DEFAULT_REQUEST_INTERCEPTOR = "defaultRequestInterceptor", n.AUTH_REQUEST_INTERCEPTOR = "authRequestInterceptor", n.DATA_CONVERTER_REQUEST_INTERCEPTOR = "dataConverterRequestInterceptor", n.CONVERT_HTTP_ERROR_RESPONSE_INTERCEPTOR = "convertHttpErrorResponseInterceptor", n.CANCELED_RESPONSE_INTERCEPTOR = "canceledResponseInterceptor", n.AUTH_ERRORS_RESPONSE_INTERCEPTOR = "authErrorsResponseInterceptor", n.DATA_CONVERTER_RESPONSE_INTERCEPTOR = "dataConverterResponseInterceptor", n))(z || {});
929
+ var z = /* @__PURE__ */ ((i) => (i.BASE_URL_REQUEST_INTERCEPTOR = "baseUrlRequestInterceptor", i.DEFAULT_REQUEST_INTERCEPTOR = "defaultRequestInterceptor", i.AUTH_REQUEST_INTERCEPTOR = "authRequestInterceptor", i.DATA_CONVERTER_REQUEST_INTERCEPTOR = "dataConverterRequestInterceptor", i.CONVERT_HTTP_ERROR_RESPONSE_INTERCEPTOR = "convertHttpErrorResponseInterceptor", i.CANCELED_RESPONSE_INTERCEPTOR = "canceledResponseInterceptor", i.AUTH_ERRORS_RESPONSE_INTERCEPTOR = "authErrorsResponseInterceptor", i.DATA_CONVERTER_RESPONSE_INTERCEPTOR = "dataConverterResponseInterceptor", i))(z || {});
930
930
  class U {
931
931
  /**
932
932
  * Инициализирует экземпляр указанного класса.
@@ -956,7 +956,7 @@ class U {
956
956
  static instanceListInitializer(r, e) {
957
957
  if (!V(e))
958
958
  throw new TypeError(`Ожидался список данных для инициализации "${r.name}", получены данные типа "${typeof e}".`);
959
- return P(e, (t) => U.instanceInitializer(r, t));
959
+ return R(e, (t) => U.instanceInitializer(r, t));
960
960
  }
961
961
  }
962
962
  const w = class w {
@@ -1029,7 +1029,7 @@ const w = class w {
1029
1029
  s(this, "canceledResponseInterceptor", (r) => {
1030
1030
  const e = r.rawError ?? r;
1031
1031
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
1032
- throw new vs("Request canceled");
1032
+ throw new Cs("Request canceled");
1033
1033
  return Promise.reject(r);
1034
1034
  });
1035
1035
  /**
@@ -1118,10 +1118,10 @@ const w = class w {
1118
1118
  * @param request Данные запроса.
1119
1119
  */
1120
1120
  static getRequestAccessToken(r) {
1121
- const e = r.headers.get("Authorization"), t = I(e) ? e : void 0, i = "Bearer ";
1122
- if (m(t) || !wt(t, i))
1121
+ const e = r.headers.get("Authorization"), t = I(e) ? e : void 0, n = "Bearer ";
1122
+ if (m(t) || !wt(t, n))
1123
1123
  return;
1124
- const o = t.slice(i.length);
1124
+ const o = t.slice(n.length);
1125
1125
  return o === "" ? void 0 : o;
1126
1126
  }
1127
1127
  /**
@@ -1202,15 +1202,15 @@ const w = class w {
1202
1202
  static convertHttpErrorResponse(r) {
1203
1203
  var e, t;
1204
1204
  if (m(r) || !m(r.request) || !m(r.response)) {
1205
- const i = m(r) ? {} : r == null ? void 0 : r.response;
1205
+ const n = m(r) ? {} : r == null ? void 0 : r.response;
1206
1206
  return Promise.reject(
1207
- Vr(new Error(((e = i == null ? void 0 : i.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error."), {
1207
+ Vr(new Error(((e = n == null ? void 0 : n.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error."), {
1208
1208
  name: "HttpResponseError",
1209
- status: (i == null ? void 0 : i.status) ?? 0,
1210
- statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
1211
- errors: (t = i == null ? void 0 : i.data) == null ? void 0 : t.errors,
1212
- headers: (i == null ? void 0 : i.headers) ?? {},
1213
- data: i == null ? void 0 : i.data,
1209
+ status: (n == null ? void 0 : n.status) ?? 0,
1210
+ statusText: (n == null ? void 0 : n.statusText) ?? "Unknown",
1211
+ errors: (t = n == null ? void 0 : n.data) == null ? void 0 : t.errors,
1212
+ headers: (n == null ? void 0 : n.headers) ?? {},
1213
+ data: n == null ? void 0 : n.data,
1214
1214
  rawError: r
1215
1215
  })
1216
1216
  );
@@ -1225,10 +1225,10 @@ const w = class w {
1225
1225
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1226
1226
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1227
1227
  */
1228
- request(r, e = void 0, t = {}, i = !1) {
1228
+ request(r, e = void 0, t = {}, n = !1) {
1229
1229
  const o = this.httpClient.request(r).then((c) => e ? e(c) : c.data);
1230
1230
  return o.catch((c) => {
1231
- (c == null ? void 0 : c.name) !== "CanceledError" && w.defaultErrorsResponseHandler(w.toHttpResponseError(c), t, i);
1231
+ (c == null ? void 0 : c.name) !== "CanceledError" && w.defaultErrorsResponseHandler(w.toHttpResponseError(c), t, n);
1232
1232
  }), o;
1233
1233
  }
1234
1234
  /**
@@ -1240,8 +1240,8 @@ const w = class w {
1240
1240
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1241
1241
  * @param signal Сигнал отмены запроса.
1242
1242
  */
1243
- get(r, e = {}, t = void 0, i = !1, o = void 0) {
1244
- return this.request({ method: "GET", url: r, params: e, signal: o }, t, {}, i);
1243
+ get(r, e = {}, t = void 0, n = !1, o = void 0) {
1244
+ return this.request({ method: "GET", url: r, params: e, signal: o }, t, {}, n);
1245
1245
  }
1246
1246
  /**
1247
1247
  * Выполняет get-запрос и возвращает список экземпляров указанного класса.
@@ -1253,12 +1253,12 @@ const w = class w {
1253
1253
  * @param signal Сигнал отмены запроса.
1254
1254
  */
1255
1255
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
1256
- getTypedList(r, e, t = {}, i = !1, o = void 0) {
1256
+ getTypedList(r, e, t = {}, n = !1, o = void 0) {
1257
1257
  return this.get(
1258
1258
  e,
1259
1259
  t,
1260
1260
  (c) => U.instanceListInitializer(r, c.data),
1261
- i,
1261
+ n,
1262
1262
  o
1263
1263
  );
1264
1264
  }
@@ -1271,8 +1271,8 @@ const w = class w {
1271
1271
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1272
1272
  * @param signal Сигнал отмены запроса.
1273
1273
  */
1274
- getBlob(r, e = {}, t = void 0, i = !1, o = void 0) {
1275
- return this.request({ method: "GET", url: r, params: e, responseType: "blob", signal: o }, t, {}, i);
1274
+ getBlob(r, e = {}, t = void 0, n = !1, o = void 0) {
1275
+ return this.request({ method: "GET", url: r, params: e, responseType: "blob", signal: o }, t, {}, n);
1276
1276
  }
1277
1277
  /**
1278
1278
  * Выполняет patch-запрос с параметрами по умолчанию.
@@ -1284,8 +1284,8 @@ const w = class w {
1284
1284
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1285
1285
  * @param signal Сигнал отмены запроса.
1286
1286
  */
1287
- patch(r, e = {}, t = void 0, i = {}, o = !1, c = void 0) {
1288
- return this.request({ method: "PATCH", url: r, data: e, signal: c }, t, i, o);
1287
+ patch(r, e = {}, t = void 0, n = {}, o = !1, c = void 0) {
1288
+ return this.request({ method: "PATCH", url: r, data: e, signal: c }, t, n, o);
1289
1289
  }
1290
1290
  /**
1291
1291
  * Выполняет post-запрос с параметрами по умолчанию.
@@ -1297,8 +1297,8 @@ const w = class w {
1297
1297
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1298
1298
  * @param signal Сигнал отмены запроса.
1299
1299
  */
1300
- post(r, e = {}, t = void 0, i = {}, o = !1, c = void 0) {
1301
- return this.request({ method: "POST", url: r, data: e, signal: c }, t, i, o);
1300
+ post(r, e = {}, t = void 0, n = {}, o = !1, c = void 0) {
1301
+ return this.request({ method: "POST", url: r, data: e, signal: c }, t, n, o);
1302
1302
  }
1303
1303
  /**
1304
1304
  * Выполняет delete-запрос с параметрами по умолчанию.
@@ -1308,8 +1308,8 @@ const w = class w {
1308
1308
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1309
1309
  * @param signal Сигнал отмены запроса.
1310
1310
  */
1311
- delete(r, e = void 0, t = !1, i = void 0) {
1312
- return this.request({ method: "DELETE", url: r, signal: i }, e, {}, t);
1311
+ delete(r, e = void 0, t = !1, n = void 0) {
1312
+ return this.request({ method: "DELETE", url: r, signal: n }, e, {}, t);
1313
1313
  }
1314
1314
  };
1315
1315
  /**
@@ -1323,7 +1323,7 @@ s(w, "instances", {}), /**
1323
1323
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1324
1324
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1325
1325
  */
1326
- s(w, "defaultErrorsResponseHandler", R), /**
1326
+ s(w, "defaultErrorsResponseHandler", P), /**
1327
1327
  * Базовый хук для запросов.
1328
1328
  */
1329
1329
  s(w, "defaultRequestHook"), /**
@@ -1331,7 +1331,7 @@ s(w, "defaultRequestHook"), /**
1331
1331
  */
1332
1332
  s(w, "tokenRefreshPromise");
1333
1333
  let h = w;
1334
- var Fr = /* @__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))(Fr || {});
1334
+ var Fr = /* @__PURE__ */ ((i) => (i.BeginWith = "bw", i.Contains = "cn", i.Custom = "custom", i.EndsWith = "ew", i.Equals = "eq", i.GreaterOrEqual = "ge", i.GreaterThan = "gt", i.InList = "in", i.LessOrEqual = "le", i.LessThan = "lt", i.NotBeginWith = "bn", i.NotContains = "nc", i.NotEndsWith = "en", i.NotEqual = "ne", i.NotInList = "ni", i.NotNull = "nn", i.Null = "nu", i))(Fr || {});
1335
1335
  class rt {
1336
1336
  /**
1337
1337
  * Инициализирует экземпляр класса {@link FilterItem}.
@@ -1376,7 +1376,7 @@ class rt {
1376
1376
  return e;
1377
1377
  }
1378
1378
  }
1379
- class ie {
1379
+ class ne {
1380
1380
  /**
1381
1381
  * Инициализирует экземпляр класса {@link FilterGroup}.
1382
1382
  *
@@ -1396,7 +1396,7 @@ class ie {
1396
1396
  */
1397
1397
  s(this, "groups");
1398
1398
  var e, t;
1399
- 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 rt(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new ie(i))) ?? [];
1399
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((n) => new rt(n))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((n) => new ne(n))) ?? [];
1400
1400
  }
1401
1401
  /**
1402
1402
  * Преобразует группу фильтров в примитивное представление для API.
@@ -1407,7 +1407,7 @@ class ie {
1407
1407
  return {
1408
1408
  groupOp: this.groupOp,
1409
1409
  filters: this.filters.map((r) => r instanceof rt && Er(r.toPrimitive) ? r.toPrimitive() : r),
1410
- groups: this.groups.map((r) => r instanceof ie ? r.toPrimitive() : r)
1410
+ groups: this.groups.map((r) => r instanceof ne ? r.toPrimitive() : r)
1411
1411
  };
1412
1412
  }
1413
1413
  }
@@ -1424,12 +1424,12 @@ class M extends h {
1424
1424
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
1425
1425
  * @param signal Сигнал отмены запроса.
1426
1426
  */
1427
- getPaginated(r, e, t, i, o, c, u, p = void 0) {
1427
+ getPaginated(r, e, t, n, o, c, u, p) {
1428
1428
  let g = {
1429
- page: (i == null ? void 0 : i.page) ?? 1,
1430
- perPage: (i == null ? void 0 : i.pageSize) ?? 10
1429
+ page: (n == null ? void 0 : n.page) ?? 1,
1430
+ perPage: (n == null ? void 0 : n.pageSize) ?? 10
1431
1431
  };
1432
- return e && (g.filters = JSON.stringify((e instanceof ie ? e : new ie(e)).toPrimitive())), Q(t) || (g.sort = V(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1432
+ return e && (g.filters = JSON.stringify((e instanceof ne ? e : new ne(e)).toPrimitive())), Q(t) || (g.sort = V(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1433
1433
  }
1434
1434
  /**
1435
1435
  * Получает пагинированный список экземпляров указанного класса.
@@ -1443,11 +1443,11 @@ class M extends h {
1443
1443
  * @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
1444
1444
  * @param signal Сигнал отмены запроса.
1445
1445
  */
1446
- getTypedPaginated(r, e, t, i, o, c, u, p = void 0) {
1446
+ getTypedPaginated(r, e, t, n, o, c, u, p) {
1447
1447
  return this.getPaginated(
1448
1448
  e,
1449
1449
  t,
1450
- i,
1450
+ n,
1451
1451
  o,
1452
1452
  c,
1453
1453
  (g) => ({
@@ -1489,10 +1489,10 @@ class kr extends M {
1489
1489
  * @see /doc/api/internal#/operations/api_internal_blog_get_list
1490
1490
  */
1491
1491
  getPostList(r, e, t) {
1492
- return this.getPaginated("/internal/blog", r, e, t, {}, (i) => ({
1493
- ...i.data,
1492
+ return this.getPaginated("/internal/blog", r, e, t, {}, (n) => ({
1493
+ ...n.data,
1494
1494
  // eslint-disable-next-line lodash/prefer-lodash-method
1495
- data: i.data.data.map((o) => new Ue(o))
1495
+ data: n.data.data.map((o) => new Ue(o))
1496
1496
  }));
1497
1497
  }
1498
1498
  /**
@@ -1530,7 +1530,7 @@ class kr extends M {
1530
1530
  * @see /doc/api/internal#/operations/api_internal_blog_update
1531
1531
  */
1532
1532
  updatePost(r, e, t = {}) {
1533
- return this.patch(`/internal/blog/${r}`, kr.preparePostSaveData(e), (i) => new wr(i.data), t);
1533
+ return this.patch(`/internal/blog/${r}`, kr.preparePostSaveData(e), (n) => new wr(n.data), t);
1534
1534
  }
1535
1535
  /**
1536
1536
  * Удаляет статью блога.
@@ -1555,14 +1555,14 @@ class kr extends M {
1555
1555
  *
1556
1556
  * @see /doc/api/internal#/operations/api_internal_blog_upload_media
1557
1557
  */
1558
- uploadMedia(r, e, t, i, o = {}) {
1558
+ uploadMedia(r, e, t, n, o = {}) {
1559
1559
  return this.request(
1560
1560
  {
1561
1561
  method: "POST",
1562
1562
  url: `/internal/blog/${r}/media`,
1563
1563
  data: { file: e, isCover: t ?? !1 },
1564
1564
  onUploadProgress: (c) => {
1565
- i && i(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1565
+ n && n(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1566
1566
  }
1567
1567
  },
1568
1568
  (c) => new $r(c.data),
@@ -1581,12 +1581,12 @@ class kr extends M {
1581
1581
  *
1582
1582
  * @see /doc/api/internal#/operations/api_internal_blog_update_media
1583
1583
  */
1584
- updateMedia(r, e, t, i = {}) {
1584
+ updateMedia(r, e, t, n = {}) {
1585
1585
  return this.patch(
1586
1586
  `/internal/blog/${r}/media/${e}`,
1587
1587
  { isCover: t },
1588
1588
  (o) => new $r(o.data),
1589
- i
1589
+ n
1590
1590
  );
1591
1591
  }
1592
1592
  /**
@@ -1603,7 +1603,7 @@ class kr extends M {
1603
1603
  return this.delete(`/internal/blog/${r}/media/${e}`);
1604
1604
  }
1605
1605
  }
1606
- class N extends pe {
1606
+ class N extends re {
1607
1607
  /**
1608
1608
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1609
1609
  *
@@ -1640,7 +1640,7 @@ class nr extends N {
1640
1640
  * Дата и время последнего изменения.
1641
1641
  */
1642
1642
  s(this, "updatedAt");
1643
- this.createdAt = O.parse(e == null ? void 0 : e.createdAt), this.updatedAt = O.parse(e == null ? void 0 : e.updatedAt);
1643
+ this.createdAt = k.parse(e == null ? void 0 : e.createdAt), this.updatedAt = k.parse(e == null ? void 0 : e.updatedAt);
1644
1644
  }
1645
1645
  }
1646
1646
  class or extends nr {
@@ -1655,7 +1655,7 @@ class or extends nr {
1655
1655
  * Дата и время последнего удаления.
1656
1656
  */
1657
1657
  s(this, "deletedAt");
1658
- this.deletedAt = O.parse(e == null ? void 0 : e.deletedAt);
1658
+ this.deletedAt = k.parse(e == null ? void 0 : e.deletedAt);
1659
1659
  }
1660
1660
  }
1661
1661
  class q extends N {
@@ -1709,10 +1709,10 @@ class Mr extends or {
1709
1709
  * Краткие данные о пользователе.
1710
1710
  */
1711
1711
  s(this, "owner");
1712
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = O.parse(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 q(e == null ? void 0 : e.owner);
1712
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = k.parse(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 q(e == null ? void 0 : e.owner);
1713
1713
  }
1714
1714
  }
1715
- class Ce extends nr {
1715
+ class ve extends nr {
1716
1716
  /**
1717
1717
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1718
1718
  *
@@ -1731,8 +1731,8 @@ class Ce extends nr {
1731
1731
  this.description = (e == null ? void 0 : e.description) ?? "", this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1732
1732
  }
1733
1733
  }
1734
- var Rt = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Rt || {});
1735
- class C extends N {
1734
+ var Pt = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i.Retail = "retail", i))(Pt || {});
1735
+ class v extends N {
1736
1736
  /**
1737
1737
  * Инициализирует экземпляр класса {@link Reference}.
1738
1738
  *
@@ -1751,14 +1751,14 @@ class C extends N {
1751
1751
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
1752
1752
  }
1753
1753
  }
1754
- class he extends C {
1754
+ class he extends v {
1755
1755
  /**
1756
1756
  * Возвращает значение справочника коэффициента розничной цены.
1757
1757
  */
1758
1758
  static getRetailPriceCoefficient() {
1759
1759
  const r = new he({
1760
1760
  id: -2,
1761
- slug: Rt.Retail,
1761
+ slug: Pt.Retail,
1762
1762
  name: "Розн. цена",
1763
1763
  guid: ""
1764
1764
  });
@@ -1795,7 +1795,7 @@ class Hr {
1795
1795
  this.coefficient = new he(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;
1796
1796
  }
1797
1797
  }
1798
- class Pt {
1798
+ class Rt {
1799
1799
  /**
1800
1800
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
1801
1801
  *
@@ -1813,9 +1813,9 @@ class Pt {
1813
1813
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
1814
1814
  }
1815
1815
  }
1816
- class X extends C {
1816
+ class X extends v {
1817
1817
  }
1818
- class He extends C {
1818
+ class He extends v {
1819
1819
  /**
1820
1820
  * Инициализирует экземпляр класса {@link Warehouse}.
1821
1821
  *
@@ -1844,7 +1844,7 @@ class He extends C {
1844
1844
  * Координаты склада.
1845
1845
  */
1846
1846
  s(this, "coordinates");
1847
- 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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Pt(e == null ? void 0 : e.coordinates);
1847
+ 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((n) => new X(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Rt(e == null ? void 0 : e.coordinates);
1848
1848
  }
1849
1849
  }
1850
1850
  class bs {
@@ -2013,7 +2013,7 @@ class E extends ds {
2013
2013
  * @param data Данные для первоначальной инициализации.
2014
2014
  */
2015
2015
  constructor(e) {
2016
- var i, o, c, u;
2016
+ var n, o, c, u;
2017
2017
  super(e);
2018
2018
  /**
2019
2019
  * Артикул производителя/поставщика.
@@ -2083,7 +2083,7 @@ class E extends ds {
2083
2083
  * Список коэффициентов цен на продукт.
2084
2084
  */
2085
2085
  s(this, "priceCoefficients");
2086
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new tt(e.unit) : new tt(), 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 = I(e == null ? void 0 : e.costDate) ? _(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 bs(p))) ?? [], this.type = "product";
2086
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new tt(e.unit) : new tt(), 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 = I(e == null ? void 0 : e.costDate) ? _(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((p) => new bs(p))) ?? [], this.type = "product";
2087
2087
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
2088
2088
  t && (this.category = new Or({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Or(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new As(p, S().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 Hr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
2089
2089
  }
@@ -2106,8 +2106,8 @@ class E extends ds {
2106
2106
  return this.retailCostRub ?? this.costRub;
2107
2107
  }
2108
2108
  }
2109
- var Br = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Br || {});
2110
- class Pe extends E {
2109
+ var Br = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Br || {});
2110
+ class Re extends E {
2111
2111
  /**
2112
2112
  * Инициализирует экземпляр класса {@link ClientProduct}.
2113
2113
  *
@@ -2151,7 +2151,7 @@ class Pe extends E {
2151
2151
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
2152
2152
  */
2153
2153
  s(this, "isFavorite");
2154
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Br.Product, this.discount = e != null && e.discount ? new Mr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Ce(e.priceTemplate) : void 0, this.priceCoefficient = e != null && e.priceCoefficient ? new he(e.priceCoefficient) : void 0, this.increasePercent = e == null ? void 0 : e.increasePercent, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2154
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Br.Product, this.discount = e != null && e.discount ? new Mr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new ve(e.priceTemplate) : void 0, this.priceCoefficient = e != null && e.priceCoefficient ? new he(e.priceCoefficient) : void 0, this.increasePercent = e == null ? void 0 : e.increasePercent, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2155
2155
  }
2156
2156
  }
2157
2157
  class ge extends Or {
@@ -2178,10 +2178,10 @@ class ge extends Or {
2178
2178
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
2179
2179
  */
2180
2180
  s(this, "currencyRates");
2181
- 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]) => [ts(t), i])) : void 0;
2181
+ 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, n]) => [ts(t), n])) : void 0;
2182
2182
  }
2183
2183
  }
2184
- class bt extends pe {
2184
+ class bt extends re {
2185
2185
  /**
2186
2186
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2187
2187
  *
@@ -2257,7 +2257,7 @@ class bt extends pe {
2257
2257
  * @inheritDoc
2258
2258
  */
2259
2259
  s(this, "replacementId");
2260
- this.product = new Pe(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ge(), 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 && ss(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new q(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2260
+ this.product = new Re(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ge(), 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 && ss(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new q(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2261
2261
  }
2262
2262
  }
2263
2263
  let Gr = class extends bt {
@@ -2329,7 +2329,7 @@ class Le {
2329
2329
  this.items = r.items.map((e) => new Gr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2330
2330
  }
2331
2331
  }
2332
- class Ci extends h {
2332
+ class Di extends h {
2333
2333
  /**
2334
2334
  * Возвращает содержимое корзины указанного клиента.
2335
2335
  *
@@ -2376,7 +2376,7 @@ class Ci extends h {
2376
2376
  is_additional_sale: e.isAdditionalSale,
2377
2377
  ...e.configuratorParams
2378
2378
  },
2379
- (i) => new Le(i.data),
2379
+ (n) => new Le(n.data),
2380
2380
  t
2381
2381
  );
2382
2382
  }
@@ -2406,7 +2406,7 @@ class Ci extends h {
2406
2406
  is_additional_sale: e.isAdditionalSale,
2407
2407
  ...e.configuratorParams
2408
2408
  },
2409
- (i) => new Le(i.data),
2409
+ (n) => new Le(n.data),
2410
2410
  t
2411
2411
  );
2412
2412
  }
@@ -2443,7 +2443,7 @@ class Ci extends h {
2443
2443
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
2444
2444
  }
2445
2445
  }
2446
- var Ss = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Ss || {}), $s = /* @__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))($s || {}), dt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(dt || {});
2446
+ var Ss = /* @__PURE__ */ ((i) => (i.m2Cost = "m2Cost", i.percent = "percent", i.value = "value", i))(Ss || {}), $s = /* @__PURE__ */ ((i) => (i.Unknown = "unknown", i.Bool = "bool", i.Integer = "integer", i.Float = "float", i.String = "string", i.Range = "range", i.Json = "json", i.Object = "object", i))($s || {}), dt = /* @__PURE__ */ ((i) => (i.Checkbox = "checkbox", i.Range = "range", i.Toggle = "toggle", i))(dt || {});
2447
2447
  class Y extends ge {
2448
2448
  /**
2449
2449
  * Инициализирует экземпляр класса {@link Category}.
@@ -2451,7 +2451,7 @@ class Y extends ge {
2451
2451
  * @param data Данные для первоначальной инициализации.
2452
2452
  */
2453
2453
  constructor(e) {
2454
- var t, i;
2454
+ var t, n;
2455
2455
  super(e);
2456
2456
  /**
2457
2457
  * Данные о вложенных категориях.
@@ -2461,7 +2461,7 @@ class Y extends ge {
2461
2461
  * Список продуктов категории.
2462
2462
  */
2463
2463
  s(this, "products");
2464
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Y(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new E(o));
2464
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Y(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new E(o));
2465
2465
  }
2466
2466
  }
2467
2467
  class At {
@@ -2482,7 +2482,7 @@ class At {
2482
2482
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
2483
2483
  }
2484
2484
  }
2485
- class F extends C {
2485
+ class F extends v {
2486
2486
  }
2487
2487
  class zr extends nr {
2488
2488
  /**
@@ -2515,7 +2515,7 @@ class zr extends nr {
2515
2515
  this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : new F(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new At(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2516
2516
  }
2517
2517
  }
2518
- class Wr extends C {
2518
+ class Wr extends v {
2519
2519
  }
2520
2520
  class St extends N {
2521
2521
  /**
@@ -2562,7 +2562,7 @@ class Z extends zr {
2562
2562
  * @param data Данные для первоначальной инициализации.
2563
2563
  */
2564
2564
  constructor(e) {
2565
- var t, i, o;
2565
+ var t, n, o;
2566
2566
  super(e);
2567
2567
  /**
2568
2568
  * Признак активности учетной записи менеджера.
@@ -2608,7 +2608,7 @@ class Z extends zr {
2608
2608
  * Дата и время последнего входа в систему.
2609
2609
  */
2610
2610
  s(this, "lastLoginAt");
2611
- 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.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new St(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Wr(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 cr(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new Z(c)), this.lastLoginAt = I(e == null ? void 0 : e.lastLoginAt) ? _(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2611
+ 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.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new St(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Wr(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (n = e == null ? void 0 : e.managerRegions) == null ? void 0 : n.map((c) => new cr(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new Z(c)), this.lastLoginAt = I(e == null ? void 0 : e.lastLoginAt) ? _(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2612
2612
  }
2613
2613
  }
2614
2614
  class ks extends ge {
@@ -2649,7 +2649,7 @@ class tr extends ks {
2649
2649
  * @param data Данные для первоначальной инициализации.
2650
2650
  */
2651
2651
  constructor(e) {
2652
- var t, i;
2652
+ var t, n;
2653
2653
  super(e);
2654
2654
  /**
2655
2655
  * Данные о вложенных категориях.
@@ -2659,7 +2659,7 @@ class tr extends ks {
2659
2659
  * Список продуктов категории.
2660
2660
  */
2661
2661
  s(this, "products");
2662
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new tr(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Pe(o));
2662
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new tr(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new Re(o));
2663
2663
  }
2664
2664
  }
2665
2665
  class $t {
@@ -2690,7 +2690,7 @@ class kt extends $t {
2690
2690
  super(r);
2691
2691
  }
2692
2692
  }
2693
- class vr extends kt {
2693
+ class Cr extends kt {
2694
2694
  /**
2695
2695
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2696
2696
  *
@@ -2728,9 +2728,9 @@ class jr extends N {
2728
2728
  this.photo = e.photo, this.contacts = new At(e.contacts), this.curatedDirection = new Wr(e.curatedDirection);
2729
2729
  }
2730
2730
  }
2731
- class Te extends C {
2731
+ class Te extends v {
2732
2732
  }
2733
- class ne extends C {
2733
+ class oe extends v {
2734
2734
  /**
2735
2735
  * Инициализирует экземпляр класса {@link Region}.
2736
2736
  *
@@ -2745,7 +2745,7 @@ class ne extends C {
2745
2745
  e && (this.country = new Te(e.country));
2746
2746
  }
2747
2747
  }
2748
- class ee extends C {
2748
+ class ee extends v {
2749
2749
  /**
2750
2750
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
2751
2751
  *
@@ -2756,8 +2756,8 @@ class ee extends C {
2756
2756
  /**
2757
2757
  * Данные о регионе, в котором расположен город.
2758
2758
  */
2759
- s(this, "region", new ne());
2760
- e && (this.region = new ne(e.region));
2759
+ s(this, "region", new oe());
2760
+ e && (this.region = new oe(e.region));
2761
2761
  }
2762
2762
  }
2763
2763
  class Ot extends nr {
@@ -2803,7 +2803,7 @@ class fe extends Ot {
2803
2803
  */
2804
2804
  // eslint-disable-next-line sonarjs/cognitive-complexity
2805
2805
  constructor(e) {
2806
- var t, i;
2806
+ var t, n;
2807
2807
  super(e);
2808
2808
  /**
2809
2809
  * Направление продаж.
@@ -2841,7 +2841,7 @@ class fe extends Ot {
2841
2841
  * @inheritDoc
2842
2842
  */
2843
2843
  s(this, "curators");
2844
- this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new ee(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new zr(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new jr(o))) ?? void 0;
2844
+ this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new ee(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new zr(o))) ?? [], this.curators = ((n = e == null ? void 0 : e.curators) == null ? void 0 : n.map((o) => new jr(o))) ?? void 0;
2845
2845
  }
2846
2846
  }
2847
2847
  class Os extends ir {
@@ -2857,7 +2857,7 @@ class Os extends ir {
2857
2857
  * Дата и время удаления записи.
2858
2858
  */
2859
2859
  s(this, "deletedAt");
2860
- this.deletedAt = O.parse(e == null ? void 0 : e.deletedAt);
2860
+ this.deletedAt = k.parse(e == null ? void 0 : e.deletedAt);
2861
2861
  }
2862
2862
  }
2863
2863
  class xe extends Os {
@@ -2876,10 +2876,10 @@ class xe extends Os {
2876
2876
  * Данные шаблона прайс-листа.
2877
2877
  */
2878
2878
  s(this, "priceTemplate");
2879
- this.client = new fe(e == null ? void 0 : e.client), this.priceTemplate = new Ce(e == null ? void 0 : e.priceTemplate);
2879
+ this.client = new fe(e == null ? void 0 : e.client), this.priceTemplate = new ve(e == null ? void 0 : e.priceTemplate);
2880
2880
  }
2881
2881
  }
2882
- class Cr extends kt {
2882
+ class vr extends kt {
2883
2883
  /**
2884
2884
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2885
2885
  *
@@ -2894,7 +2894,7 @@ class Cr extends kt {
2894
2894
  this.product = new E(e == null ? void 0 : e.product);
2895
2895
  }
2896
2896
  }
2897
- class Lt extends C {
2897
+ class Lt extends v {
2898
2898
  }
2899
2899
  class De extends N {
2900
2900
  /**
@@ -2923,7 +2923,7 @@ class De extends N {
2923
2923
  this.type = new Lt(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;
2924
2924
  }
2925
2925
  }
2926
- class ve {
2926
+ class Ce {
2927
2927
  /**
2928
2928
  * Инициализирует экземпляр класса {@link PropertyValue}.
2929
2929
  *
@@ -2942,7 +2942,7 @@ class ve {
2942
2942
  this.property = new De(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2943
2943
  }
2944
2944
  }
2945
- class Di {
2945
+ class Pi {
2946
2946
  /**
2947
2947
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2948
2948
  *
@@ -3002,13 +3002,13 @@ class Di {
3002
3002
  * только актуальные данные.
3003
3003
  */
3004
3004
  asClearRaw() {
3005
- var e, t, i, o;
3005
+ var e, t, n, o;
3006
3006
  const r = {};
3007
3007
  return Object.keys(this).forEach((c) => {
3008
3008
  const u = this[c];
3009
3009
  // eslint-disable-next-line prettier/prettier
3010
3010
  m(u) || I(u) && u.trim().length === 0 || Er(u.isNewRec) && u.isNewRec() || (r[c] = u);
3011
- }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
3011
+ }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((n = r == null ? void 0 : r.updatedAt) != null && n.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
3012
3012
  }
3013
3013
  }
3014
3014
  class xt extends $t {
@@ -3027,7 +3027,7 @@ class xt extends $t {
3027
3027
  * Дата и время создания записи.
3028
3028
  */
3029
3029
  s(this, "createdAt");
3030
- this.executor = e != null && e.executor ? new q(e.executor) : void 0, this.createdAt = O.parse(e == null ? void 0 : e.createdAt);
3030
+ this.executor = e != null && e.executor ? new q(e.executor) : void 0, this.createdAt = k.parse(e == null ? void 0 : e.createdAt);
3031
3031
  }
3032
3032
  }
3033
3033
  class Dr extends xt {
@@ -3262,12 +3262,12 @@ class Ri extends h {
3262
3262
  * @see /doc/api/internal#/operations/api_internal_price_export
3263
3263
  */
3264
3264
  // eslint-disable-next-line class-methods-use-this
3265
- getPriceExportLink(r = "csv", e = !1, t = void 0, i = void 0) {
3265
+ getPriceExportLink(r = "csv", e = !1, t = void 0, n = void 0) {
3266
3266
  let c = `${S().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3267
- return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
3267
+ return t && (c += `&category_id=${t}`), n && (c += `&client_id=${n}`), c;
3268
3268
  }
3269
3269
  }
3270
- class Pi extends h {
3270
+ class Ti extends h {
3271
3271
  /**
3272
3272
  * Импортирует цены клиента из CSV файла.
3273
3273
  *
@@ -3311,7 +3311,7 @@ class Pi extends h {
3311
3311
  *
3312
3312
  * @see /doc/api/internal#/operations/api_internal_client_price_categories_update
3313
3313
  */
3314
- updateCategoryPrices(r, e, t, i = !1) {
3314
+ updateCategoryPrices(r, e, t, n = !1) {
3315
3315
  var o;
3316
3316
  return this.request({
3317
3317
  method: "PATCH",
@@ -3320,7 +3320,7 @@ class Pi extends h {
3320
3320
  price_coefficient_id: (o = t.coefficient) == null ? void 0 : o.id,
3321
3321
  increase_percent: t.value
3322
3322
  },
3323
- params: i ? { recursively: !0 } : {}
3323
+ params: n ? { recursively: !0 } : {}
3324
3324
  });
3325
3325
  }
3326
3326
  /**
@@ -3454,11 +3454,11 @@ class Pi extends h {
3454
3454
  * @see /doc/api/internal#/operations/api_internal_client_price_products_update
3455
3455
  */
3456
3456
  updateProductPrice(r, e, t) {
3457
- var i;
3457
+ var n;
3458
3458
  return this.patch(
3459
3459
  `/internal/clients/${r}/price/products/${e}`,
3460
3460
  {
3461
- price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3461
+ price_coefficient_id: (n = t.coefficient) == null ? void 0 : n.id,
3462
3462
  increase_percent: t.value
3463
3463
  },
3464
3464
  (o) => new Dr(o.data)
@@ -3536,7 +3536,7 @@ class Pi extends h {
3536
3536
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3537
3537
  }
3538
3538
  }
3539
- class Ti extends h {
3539
+ class bi extends h {
3540
3540
  /**
3541
3541
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3542
3542
  *
@@ -3567,12 +3567,12 @@ class Ti extends h {
3567
3567
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
3568
3568
  */
3569
3569
  attachTemplate(r, e, t) {
3570
- const i = S().config.dateFormats.api;
3570
+ const n = S().config.dateFormats.api;
3571
3571
  return this.post(
3572
3572
  `/internal/clients/${r}/price/templates/${e}`,
3573
3573
  t && {
3574
- startAt: t.startAt && $(t.startAt, i),
3575
- endAt: t.endAt && $(t.endAt, i)
3574
+ startAt: t.startAt && $(t.startAt, n),
3575
+ endAt: t.endAt && $(t.endAt, n)
3576
3576
  },
3577
3577
  (o) => new xe(o.data),
3578
3578
  {},
@@ -3600,13 +3600,13 @@ class Ti extends h {
3600
3600
  *
3601
3601
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
3602
3602
  */
3603
- changeTemplate(r, e, t, i) {
3603
+ changeTemplate(r, e, t, n) {
3604
3604
  const o = S().config.dateFormats.api;
3605
3605
  return this.patch(
3606
3606
  `/internal/clients/${r}/price/templates/${e}/${t}`,
3607
- i && {
3608
- startAt: i.startAt && $(i.startAt, o),
3609
- endAt: i.endAt && $(i.endAt, o)
3607
+ n && {
3608
+ startAt: n.startAt && $(n.startAt, o),
3609
+ endAt: n.endAt && $(n.endAt, o)
3610
3610
  },
3611
3611
  (c) => new xe(c.data)
3612
3612
  );
@@ -3624,7 +3624,7 @@ class Ti extends h {
3624
3624
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
3625
3625
  }
3626
3626
  }
3627
- class bi extends h {
3627
+ class di extends h {
3628
3628
  /**
3629
3629
  * Возвращает список данных о корневых категориях.
3630
3630
  *
@@ -3653,7 +3653,7 @@ class bi extends h {
3653
3653
  showHidden: e,
3654
3654
  withNestedCategories: t
3655
3655
  },
3656
- (i) => new Y(i.data)
3656
+ (n) => new Y(n.data)
3657
3657
  );
3658
3658
  }
3659
3659
  /**
@@ -3680,7 +3680,7 @@ class bi extends h {
3680
3680
  showHidden: t,
3681
3681
  withPriceCoefficients: e
3682
3682
  },
3683
- (i) => P(i.data, (o) => new E(o))
3683
+ (n) => R(n.data, (o) => new E(o))
3684
3684
  );
3685
3685
  }
3686
3686
  /**
@@ -3693,7 +3693,7 @@ class bi extends h {
3693
3693
  getCategoryProductsCoefficients(r) {
3694
3694
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
3695
3695
  const { data: t } = e;
3696
- return is(t, (i) => i.map((o) => new Hr(o))), t;
3696
+ return is(t, (n) => n.map((o) => new Hr(o))), t;
3697
3697
  });
3698
3698
  }
3699
3699
  /**
@@ -3703,16 +3703,16 @@ class bi extends h {
3703
3703
  * @param limit Количество возвращаемых записей.
3704
3704
  */
3705
3705
  publicSimpleSearch(r, e = 10) {
3706
- return new Promise((t, i) => {
3706
+ return new Promise((t, n) => {
3707
3707
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3708
3708
  t(o.categories.map((c) => new Y(c)));
3709
3709
  }).catch((o) => {
3710
- i(o);
3710
+ n(o);
3711
3711
  });
3712
3712
  });
3713
3713
  }
3714
3714
  }
3715
- class di extends M {
3715
+ class Ai extends M {
3716
3716
  /**
3717
3717
  * Возвращает данные об указанном продукте.
3718
3718
  *
@@ -3743,7 +3743,7 @@ class di extends M {
3743
3743
  return this.get(
3744
3744
  `/internal/catalog/products/${r}/coefficients`,
3745
3745
  {},
3746
- (e) => P(e.data, (t) => new Hr(t))
3746
+ (e) => R(e.data, (t) => new Hr(t))
3747
3747
  );
3748
3748
  }
3749
3749
  /**
@@ -3756,9 +3756,9 @@ class di extends M {
3756
3756
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3757
3757
  */
3758
3758
  getNewProducts(r, e, t = !0) {
3759
- const i = S().config.dateFormats.api;
3759
+ const n = S().config.dateFormats.api;
3760
3760
  return this.getTypedPaginated(E, "/internal/catalog/products/new", void 0, void 0, e, {
3761
- period: { from: $(r, i) },
3761
+ period: { from: $(r, n) },
3762
3762
  withPriceCoefficients: t
3763
3763
  });
3764
3764
  }
@@ -3769,16 +3769,16 @@ class di extends M {
3769
3769
  * @param limit Количество возвращаемых записей.
3770
3770
  */
3771
3771
  publicSimpleSearch(r, e = 10) {
3772
- return new Promise((t, i) => {
3772
+ return new Promise((t, n) => {
3773
3773
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3774
3774
  t(o.products.map((c) => new E(c)));
3775
3775
  }).catch((o) => {
3776
- i(o);
3776
+ n(o);
3777
3777
  });
3778
3778
  });
3779
3779
  }
3780
3780
  }
3781
- class Ai extends h {
3781
+ class Si extends h {
3782
3782
  /**
3783
3783
  * Возвращает список данных о корневых категориях указанного клиента.
3784
3784
  *
@@ -3803,13 +3803,13 @@ class Ai extends h {
3803
3803
  *
3804
3804
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get
3805
3805
  */
3806
- getCategoryData(r, e, t = !1, i = !1) {
3806
+ getCategoryData(r, e, t = !1, n = !1) {
3807
3807
  return this.get(
3808
3808
  `/internal/catalog/categories/${e}`,
3809
3809
  {
3810
3810
  clientId: r,
3811
3811
  showHidden: t,
3812
- withNestedCategories: i
3812
+ withNestedCategories: n
3813
3813
  },
3814
3814
  (o) => new tr(o.data)
3815
3815
  );
@@ -3824,19 +3824,19 @@ class Ai extends h {
3824
3824
  *
3825
3825
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_products_get
3826
3826
  */
3827
- getCategoryProductsList(r, e, t = !0, i = !1) {
3827
+ getCategoryProductsList(r, e, t = !0, n = !1) {
3828
3828
  return this.get(
3829
3829
  `/internal/catalog/categories/${e}/products`,
3830
3830
  {
3831
3831
  client_id: r,
3832
- showHidden: i,
3832
+ showHidden: n,
3833
3833
  withPriceCoefficients: t
3834
3834
  },
3835
- (o) => P(o.data, (c) => new Pe(c))
3835
+ (o) => R(o.data, (c) => new Re(c))
3836
3836
  );
3837
3837
  }
3838
3838
  }
3839
- class Si extends M {
3839
+ class $i extends M {
3840
3840
  /**
3841
3841
  * Возвращает данные об указанном продукте для указанного клиента.
3842
3842
  *
@@ -3853,7 +3853,7 @@ class Si extends M {
3853
3853
  clientId: e,
3854
3854
  withPriceCoefficients: t
3855
3855
  },
3856
- (i) => new Pe(i.data)
3856
+ (n) => new Re(n.data)
3857
3857
  );
3858
3858
  }
3859
3859
  /**
@@ -3866,16 +3866,16 @@ class Si extends M {
3866
3866
  *
3867
3867
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3868
3868
  */
3869
- getNewProducts(r, e, t, i = !0) {
3869
+ getNewProducts(r, e, t, n = !0) {
3870
3870
  const o = S().config.dateFormats.api;
3871
- return this.getTypedPaginated(Pe, "/internal/catalog/products/new", void 0, void 0, t, {
3871
+ return this.getTypedPaginated(Re, "/internal/catalog/products/new", void 0, void 0, t, {
3872
3872
  clientId: r,
3873
3873
  period: { from: $(e, o) },
3874
- withPriceCoefficients: i
3874
+ withPriceCoefficients: n
3875
3875
  });
3876
3876
  }
3877
3877
  }
3878
- class $i extends M {
3878
+ class ki extends M {
3879
3879
  /**
3880
3880
  * Возвращает список шаблонов прайс-листа.
3881
3881
  *
@@ -3886,7 +3886,7 @@ class $i extends M {
3886
3886
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
3887
3887
  */
3888
3888
  getTemplateList(r, e, t) {
3889
- return this.getTypedPaginated(Ce, "/internal/price/templates", r, e, t);
3889
+ return this.getTypedPaginated(ve, "/internal/price/templates", r, e, t);
3890
3890
  }
3891
3891
  /**
3892
3892
  * Создание нового шаблона прайс-листа.
@@ -3898,7 +3898,7 @@ class $i extends M {
3898
3898
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
3899
3899
  */
3900
3900
  createTemplate(r, e = {}) {
3901
- return this.post("/internal/price/templates", r, (t) => new Ce(t.data), e);
3901
+ return this.post("/internal/price/templates", r, (t) => new ve(t.data), e);
3902
3902
  }
3903
3903
  /**
3904
3904
  * Возвращает данные о шаблоне прайс-листа.
@@ -3908,7 +3908,7 @@ class $i extends M {
3908
3908
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
3909
3909
  */
3910
3910
  getTemplate(r) {
3911
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new Ce(e.data));
3911
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new ve(e.data));
3912
3912
  }
3913
3913
  /**
3914
3914
  * Изменяет данные о шаблоне прайс-листа.
@@ -3921,7 +3921,7 @@ class $i extends M {
3921
3921
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
3922
3922
  */
3923
3923
  updateTemplate(r, e, t = {}) {
3924
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new Ce(i.data), t);
3924
+ return this.patch(`/internal/price/templates/${r}`, e, (n) => new ve(n.data), t);
3925
3925
  }
3926
3926
  /**
3927
3927
  * Удаляет данные о шаблоне прайс-листа.
@@ -3941,7 +3941,7 @@ class $i extends M {
3941
3941
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get_list
3942
3942
  */
3943
3943
  getProductTemplatePrices(r) {
3944
- return this.getTypedList(Cr, `/internal/price/templates/${r}/products`);
3944
+ return this.getTypedList(vr, `/internal/price/templates/${r}/products`);
3945
3945
  }
3946
3946
  /**
3947
3947
  * Возвращает данные о цене на продукт в шаблоне прайс-листа.
@@ -3952,7 +3952,7 @@ class $i extends M {
3952
3952
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
3953
3953
  */
3954
3954
  getProductTemplatePrice(r, e) {
3955
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new Cr(t.data));
3955
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new vr(t.data));
3956
3956
  }
3957
3957
  /**
3958
3958
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3964,14 +3964,14 @@ class $i extends M {
3964
3964
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_save
3965
3965
  */
3966
3966
  saveProductTemplatePrice(r, e, t) {
3967
- var i;
3967
+ var n;
3968
3968
  return this.post(
3969
3969
  `/internal/price/templates/${r}/products/${e}`,
3970
3970
  {
3971
- price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3971
+ price_coefficient_id: (n = t.coefficient) == null ? void 0 : n.id,
3972
3972
  increase_percent: t.value
3973
3973
  },
3974
- (o) => new Cr(o.data)
3974
+ (o) => new vr(o.data)
3975
3975
  );
3976
3976
  }
3977
3977
  /**
@@ -3993,7 +3993,7 @@ class $i extends M {
3993
3993
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_get_list
3994
3994
  */
3995
3995
  getCategoryTemplatePrices(r) {
3996
- return this.getTypedList(vr, `/internal/price/templates/${r}/categories`);
3996
+ return this.getTypedList(Cr, `/internal/price/templates/${r}/categories`);
3997
3997
  }
3998
3998
  /**
3999
3999
  * Возвращает данные о цене на категорию продуктов в шаблоне прайс-листа.
@@ -4007,7 +4007,7 @@ class $i extends M {
4007
4007
  return this.get(
4008
4008
  `/internal/price/templates/${r}/categories/${e}`,
4009
4009
  {},
4010
- (t) => new vr(t.data)
4010
+ (t) => new Cr(t.data)
4011
4011
  );
4012
4012
  }
4013
4013
  /**
@@ -4021,7 +4021,7 @@ class $i extends M {
4021
4021
  *
4022
4022
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_save
4023
4023
  */
4024
- saveCategoryTemplatePrice(r, e, t, i = !1) {
4024
+ saveCategoryTemplatePrice(r, e, t, n = !1) {
4025
4025
  var o;
4026
4026
  return this.request(
4027
4027
  {
@@ -4031,9 +4031,9 @@ class $i extends M {
4031
4031
  price_coefficient_id: (o = t.coefficient) == null ? void 0 : o.id,
4032
4032
  increase_percent: t.value
4033
4033
  },
4034
- params: i ? { recursively: !0 } : {}
4034
+ params: n ? { recursively: !0 } : {}
4035
4035
  },
4036
- (c) => new vr(c.data)
4036
+ (c) => new Cr(c.data)
4037
4037
  );
4038
4038
  }
4039
4039
  /**
@@ -4064,7 +4064,7 @@ class $i extends M {
4064
4064
  return this.getTypedList(xe, `/internal/price/templates/${r}/clients`);
4065
4065
  }
4066
4066
  }
4067
- class ki extends h {
4067
+ class Oi extends h {
4068
4068
  /**
4069
4069
  * Возвращает список ролей ценообразования.
4070
4070
  *
@@ -4140,7 +4140,7 @@ class ki extends h {
4140
4140
  );
4141
4141
  }
4142
4142
  }
4143
- class Oi extends M {
4143
+ class Li extends M {
4144
4144
  /**
4145
4145
  * Возвращает пагинированный список свойств.
4146
4146
  *
@@ -4167,7 +4167,7 @@ class Oi extends M {
4167
4167
  ...t,
4168
4168
  type: e
4169
4169
  },
4170
- (i) => new De(i.data)
4170
+ (n) => new De(n.data)
4171
4171
  );
4172
4172
  }
4173
4173
  /**
@@ -4187,11 +4187,11 @@ class Oi extends M {
4187
4187
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_update
4188
4188
  */
4189
4189
  updateProperty(r, e) {
4190
- const { typeId: t, ...i } = e;
4190
+ const { typeId: t, ...n } = e;
4191
4191
  return this.patch(
4192
4192
  `/internal/catalog/properties/${r}`,
4193
4193
  {
4194
- ...i,
4194
+ ...n,
4195
4195
  type: t
4196
4196
  },
4197
4197
  (o) => new De(o.data)
@@ -4213,7 +4213,7 @@ class Oi extends M {
4213
4213
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
4214
4214
  */
4215
4215
  getProductProperties(r) {
4216
- return this.getTypedList(ve, `/internal/catalog/products/${r}/properties`);
4216
+ return this.getTypedList(Ce, `/internal/catalog/products/${r}/properties`);
4217
4217
  }
4218
4218
  /**
4219
4219
  * Возвращает значение свойства продукта.
@@ -4223,7 +4223,7 @@ class Oi extends M {
4223
4223
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
4224
4224
  */
4225
4225
  getProductProperty(r, e) {
4226
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new ve(t.data));
4226
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new Ce(t.data));
4227
4227
  }
4228
4228
  /**
4229
4229
  * Обновляет значение свойства продукта.
@@ -4234,7 +4234,7 @@ class Oi extends M {
4234
4234
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
4235
4235
  */
4236
4236
  updateProductProperty(r, e, t) {
4237
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new ve(i.data));
4237
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (n) => new Ce(n.data));
4238
4238
  }
4239
4239
  /**
4240
4240
  * Удаляет значение свойства продукта.
@@ -4359,7 +4359,7 @@ class Oi extends M {
4359
4359
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
4360
4360
  */
4361
4361
  getCategoryProperties(r) {
4362
- return this.getTypedList(ve, `/internal/catalog/categories/${r}/properties`);
4362
+ return this.getTypedList(Ce, `/internal/catalog/categories/${r}/properties`);
4363
4363
  }
4364
4364
  /**
4365
4365
  * Возвращает значение свойства категории.
@@ -4369,7 +4369,7 @@ class Oi extends M {
4369
4369
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
4370
4370
  */
4371
4371
  getCategoryProperty(r, e) {
4372
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new ve(t.data));
4372
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new Ce(t.data));
4373
4373
  }
4374
4374
  /**
4375
4375
  * Обновляет значение свойства категории.
@@ -4380,7 +4380,7 @@ class Oi extends M {
4380
4380
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
4381
4381
  */
4382
4382
  updateCategoryProperty(r, e, t) {
4383
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new ve(i.data));
4383
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (n) => new Ce(n.data));
4384
4384
  }
4385
4385
  /**
4386
4386
  * Удаляет значение свойства категории.
@@ -4519,7 +4519,7 @@ class Oi extends M {
4519
4519
  return this.get(
4520
4520
  `/internal/catalog/categories/${r}/filters`,
4521
4521
  { recursively: e },
4522
- (t) => t.data.map((i) => new Is(i))
4522
+ (t) => t.data.map((n) => new Is(n))
4523
4523
  );
4524
4524
  }
4525
4525
  /**
@@ -4543,7 +4543,7 @@ class Oi extends M {
4543
4543
  return this.patch(
4544
4544
  `/internal/catalog/categories/${r}/filter-settings/${e}`,
4545
4545
  t,
4546
- (i) => new nt(i.data)
4546
+ (n) => new nt(n.data)
4547
4547
  );
4548
4548
  }
4549
4549
  /**
@@ -4557,7 +4557,7 @@ class Oi extends M {
4557
4557
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
4558
4558
  }
4559
4559
  }
4560
- class Li extends h {
4560
+ class xi extends h {
4561
4561
  /**
4562
4562
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4563
4563
  *
@@ -4582,13 +4582,13 @@ class Li extends h {
4582
4582
  *
4583
4583
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get
4584
4584
  */
4585
- getCategoryData(r, e, t = !1, i = !1) {
4585
+ getCategoryData(r, e, t = !1, n = !1) {
4586
4586
  return this.get(
4587
4587
  `/internal/catalog/categories/${e}`,
4588
4588
  {
4589
4589
  priceTemplateId: r,
4590
4590
  showHidden: t,
4591
- withNestedCategories: i
4591
+ withNestedCategories: n
4592
4592
  },
4593
4593
  (o) => new Y(o.data)
4594
4594
  );
@@ -4603,26 +4603,26 @@ class Li extends h {
4603
4603
  *
4604
4604
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_products_get
4605
4605
  */
4606
- getCategoryProductsList(r, e, t = !0, i = !1) {
4606
+ getCategoryProductsList(r, e, t = !0, n = !1) {
4607
4607
  return this.get(
4608
4608
  `/internal/catalog/categories/${e}/products`,
4609
4609
  {
4610
4610
  priceTemplateId: r,
4611
- showHidden: i,
4611
+ showHidden: n,
4612
4612
  withPriceCoefficients: t
4613
4613
  },
4614
- (o) => P(o.data, (c) => new E(c))
4614
+ (o) => R(o.data, (c) => new E(c))
4615
4615
  );
4616
4616
  }
4617
4617
  }
4618
- function ot(n, r, e) {
4618
+ function ot(i, r, e) {
4619
4619
  let t;
4620
- return n.some((i) => {
4621
- if (i.type === e && i.id === r)
4622
- return t = i, !0;
4623
- if (i.type === "product")
4620
+ return i.some((n) => {
4621
+ if (n.type === e && n.id === r)
4622
+ return t = n, !0;
4623
+ if (n.type === "product")
4624
4624
  return !1;
4625
- const o = i;
4625
+ const o = n;
4626
4626
  if (o.products && o.products.length > 0) {
4627
4627
  const c = ot(o.products, r, e);
4628
4628
  if (c)
@@ -4636,17 +4636,17 @@ function ot(n, r, e) {
4636
4636
  return !1;
4637
4637
  }), t;
4638
4638
  }
4639
- function ct(n) {
4639
+ function ct(i) {
4640
4640
  const r = [];
4641
- return n.forEach((e) => {
4641
+ return i.forEach((e) => {
4642
4642
  if (r.push(e), e.type === "category") {
4643
4643
  const t = e;
4644
4644
  t.products && t.products.length > 0 && r.push(...ct(t.products)), t.categories && t.categories.length > 0 && r.push(...ct(t.categories));
4645
4645
  }
4646
4646
  }), r;
4647
4647
  }
4648
- var _s = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(_s || {}), K = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(K || {});
4649
- class Lr extends pe {
4648
+ var _s = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i.SalesDirection = "sales_direction", i.Managers = "managers", i.Curators = "curators", i))(_s || {}), K = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))(K || {});
4649
+ class Lr extends re {
4650
4650
  /**
4651
4651
  * Инициализирует экземпляр класса {@link BankAccount}.
4652
4652
  *
@@ -4696,7 +4696,7 @@ class xr extends or {
4696
4696
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
4697
4697
  }
4698
4698
  }
4699
- class oe extends xr {
4699
+ class ce extends xr {
4700
4700
  /**
4701
4701
  * Инициализирует экземпляр класса {@link ContactPerson}.
4702
4702
  *
@@ -4723,12 +4723,12 @@ class oe extends xr {
4723
4723
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment;
4724
4724
  }
4725
4725
  }
4726
- class ce extends C {
4726
+ class le extends v {
4727
4727
  /**
4728
4728
  * Возвращает сгенерированную запись-описание физического лица.
4729
4729
  */
4730
4730
  static generatePersonItem() {
4731
- return new ce({
4731
+ return new le({
4732
4732
  id: 1,
4733
4733
  guid: "",
4734
4734
  slug: K.Person,
@@ -4736,7 +4736,7 @@ class ce extends C {
4736
4736
  });
4737
4737
  }
4738
4738
  }
4739
- class le extends C {
4739
+ class ue extends v {
4740
4740
  }
4741
4741
  class It extends or {
4742
4742
  /**
@@ -4750,11 +4750,11 @@ class It extends or {
4750
4750
  /**
4751
4751
  * Данные об организационно-правовой форме.
4752
4752
  */
4753
- s(this, "opf", ce.generatePersonItem());
4753
+ s(this, "opf", le.generatePersonItem());
4754
4754
  /**
4755
4755
  * Группа партнеров (направление деятельности).
4756
4756
  */
4757
- s(this, "partnerGroup", new le());
4757
+ s(this, "partnerGroup", new ue());
4758
4758
  /**
4759
4759
  * Список контактных лиц контрагента.
4760
4760
  */
@@ -4780,16 +4780,16 @@ class It extends or {
4780
4780
  */
4781
4781
  s(this, "updater");
4782
4782
  if (e) {
4783
- if (this.opf = new ce(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.creator = e.creator ? new q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new le(e.partnerGroup)), e.contacts) {
4783
+ if (this.opf = new le(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.creator = e.creator ? new q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ue(e.partnerGroup)), e.contacts) {
4784
4784
  const t = [];
4785
- e.contacts.forEach((i) => {
4786
- t.push(new oe(i));
4785
+ e.contacts.forEach((n) => {
4786
+ t.push(new ce(n));
4787
4787
  }), this.contacts = t;
4788
4788
  }
4789
4789
  if (e.bankAccounts) {
4790
4790
  const t = [];
4791
- e.bankAccounts.forEach((i) => {
4792
- t.push(new Lr(i));
4791
+ e.bankAccounts.forEach((n) => {
4792
+ t.push(new Lr(n));
4793
4793
  }), this.bankAccounts = t;
4794
4794
  }
4795
4795
  }
@@ -4946,12 +4946,12 @@ class qe extends or {
4946
4946
  * Признак того, что указанный адрес является адресом транспортной компании.
4947
4947
  */
4948
4948
  s(this, "isTransportCompanyAddress");
4949
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Pt(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new oe(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;
4949
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Rt(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new ce(n))) ?? [], 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;
4950
4950
  }
4951
4951
  }
4952
- class Nt extends C {
4952
+ class Nt extends v {
4953
4953
  }
4954
- class Et extends C {
4954
+ class Et extends v {
4955
4955
  }
4956
4956
  class lt extends fe {
4957
4957
  /**
@@ -4961,7 +4961,7 @@ class lt extends fe {
4961
4961
  */
4962
4962
  // eslint-disable-next-line sonarjs/cognitive-complexity
4963
4963
  constructor(e) {
4964
- var t, i, o, c;
4964
+ var t, n, o, c;
4965
4965
  super(e);
4966
4966
  /**
4967
4967
  * @inheritDoc
@@ -5003,17 +5003,17 @@ class lt extends fe {
5003
5003
  * @inheritDoc
5004
5004
  */
5005
5005
  s(this, "extraData");
5006
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => sr.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new le(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new oe(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new qe(u))) ?? [], this.channelPrimaryInterest = new Nt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Et(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new He(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
5006
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => sr.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ue(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new ce(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new qe(u))) ?? [], this.channelPrimaryInterest = new Nt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Et(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new He(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
5007
5007
  }
5008
5008
  }
5009
- class xi extends de {
5009
+ class Ii extends de {
5010
5010
  /**
5011
5011
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
5012
5012
  *
5013
5013
  * @param data Данные для первоначальной инициализации.
5014
5014
  */
5015
5015
  constructor(e) {
5016
- var t, i, o, c, u, p, g, a;
5016
+ var t, n, o, c, u, p, g, a;
5017
5017
  super();
5018
5018
  /**
5019
5019
  * @inheritDoc
@@ -5119,7 +5119,7 @@ class xi extends de {
5119
5119
  * @inheritDoc
5120
5120
  */
5121
5121
  s(this, "noOrdersPeriod", new D());
5122
- 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((T) => new ee(T)), this.region = new ne(e == null ? void 0 : e.region), this.country = new Te(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 D(e == null ? void 0 : e.createdAt), this.lastLoginDate = new D(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((T) => new Z(T))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((T) => new jr(T))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((T) => new F(T)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new ce(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new X(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((T) => new le(T)), this.contact = new xr(e == null ? void 0 : e.contact), this.lastOrder = {
5122
+ 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((T) => new ee(T)), this.region = new oe(e == null ? void 0 : e.region), this.country = new Te(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 D(e == null ? void 0 : e.createdAt), this.lastLoginDate = new D(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((n = e == null ? void 0 : e.managers) == null ? void 0 : n.map((T) => new Z(T))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((T) => new jr(T))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((T) => new F(T)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new le(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new X(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((T) => new ue(T)), this.contact = new xr(e == null ? void 0 : e.contact), this.lastOrder = {
5123
5123
  createdAt: new D((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
5124
5124
  creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
5125
5125
  isApproved: (a = e == null ? void 0 : e.lastOrder) == null ? void 0 : a.isApproved
@@ -5134,7 +5134,7 @@ class xi extends de {
5134
5134
  this.cities = [];
5135
5135
  break;
5136
5136
  case "region":
5137
- this.region = new ne();
5137
+ this.region = new oe();
5138
5138
  break;
5139
5139
  case "isActive":
5140
5140
  this.isActive = !0;
@@ -5161,7 +5161,7 @@ class xi extends de {
5161
5161
  this.salesDirections = [];
5162
5162
  break;
5163
5163
  case "contragentType":
5164
- this.contragentType = new ce();
5164
+ this.contragentType = new le();
5165
5165
  break;
5166
5166
  case "preferredDeliveryType":
5167
5167
  this.preferredDeliveryType = new X();
@@ -5182,9 +5182,9 @@ class xi extends de {
5182
5182
  * @inheritDoc
5183
5183
  */
5184
5184
  asClearRaw() {
5185
- var t, i, o, c, u, p;
5185
+ var t, n, o, c, u, p;
5186
5186
  const e = super.asClearRaw();
5187
- 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;
5187
+ return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.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;
5188
5188
  }
5189
5189
  }
5190
5190
  class Ut extends ir {
@@ -5209,7 +5209,7 @@ class Es extends N {
5209
5209
  * @param data Данные для первоначальной инициализации.
5210
5210
  */
5211
5211
  constructor(e) {
5212
- var t, i, o, c;
5212
+ var t, n, o, c;
5213
5213
  super(e);
5214
5214
  /**
5215
5215
  * @inheritDoc
@@ -5239,10 +5239,10 @@ class Es extends N {
5239
5239
  * @inheritDoc
5240
5240
  */
5241
5241
  s(this, "curators");
5242
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new oe(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Ut(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new le(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new zr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new jr(u))) ?? void 0;
5242
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new ce(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Ut(e.lastOrder) : void 0, this.partnerGroups = ((n = e.partnerGroups) == null ? void 0 : n.map((u) => new ue(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new zr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new jr(u))) ?? void 0;
5243
5243
  }
5244
5244
  }
5245
- class Rr extends pe {
5245
+ class Pr extends re {
5246
5246
  /**
5247
5247
  * Инициализирует экземпляр класса {@link ContactRelation}.
5248
5248
  *
@@ -5257,7 +5257,7 @@ class Rr extends pe {
5257
5257
  this.isPrimary = e.isPrimary;
5258
5258
  }
5259
5259
  }
5260
- class Us extends oe {
5260
+ class Us extends ce {
5261
5261
  /**
5262
5262
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
5263
5263
  *
@@ -5282,7 +5282,7 @@ class Us extends oe {
5282
5282
  */
5283
5283
  addresses: []
5284
5284
  });
5285
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Rr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Rr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Rr(t))));
5285
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Pr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Pr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Pr(t))));
5286
5286
  }
5287
5287
  }
5288
5288
  class W extends M {
@@ -5296,7 +5296,7 @@ class W extends M {
5296
5296
  return {
5297
5297
  name: r.name,
5298
5298
  alternative_name: r.alternativeName,
5299
- partner_groups: r.partnerGroups.map((i) => i.id),
5299
+ partner_groups: r.partnerGroups.map((n) => n.id),
5300
5300
  phone: r.phone,
5301
5301
  email: r.email,
5302
5302
  city_id: r.city.id,
@@ -5315,7 +5315,7 @@ class W extends M {
5315
5315
  static transformContragentClientDataToRequest(r) {
5316
5316
  var c, u, p, g;
5317
5317
  let e;
5318
- const t = r, i = r, o = r;
5318
+ const t = r, n = r, o = r;
5319
5319
  switch (r.opf.slug) {
5320
5320
  case K.Ic:
5321
5321
  e = {
@@ -5337,21 +5337,21 @@ class W extends M {
5337
5337
  break;
5338
5338
  case K.UlR:
5339
5339
  e = {
5340
- opf: i.opf.slug,
5341
- name: i.name,
5342
- alternative_name: i.alternativeName,
5343
- partner_group_id: (u = i.partnerGroup) == null ? void 0 : u.id,
5344
- comment: i.comment,
5345
- inn: i.inn,
5346
- kpp: i.kpp,
5347
- okpo: i.okpo,
5348
- ogrn: i.ogrn || void 0,
5349
- director_name: i.directorName,
5350
- director_position: i.directorPosition,
5351
- director_acts_on: i.directorActsOn,
5352
- legal_address: i.legalAddress,
5353
- postal_address: i.postalAddress,
5354
- actual_address: i.actualAddress
5340
+ opf: n.opf.slug,
5341
+ name: n.name,
5342
+ alternative_name: n.alternativeName,
5343
+ partner_group_id: (u = n.partnerGroup) == null ? void 0 : u.id,
5344
+ comment: n.comment,
5345
+ inn: n.inn,
5346
+ kpp: n.kpp,
5347
+ okpo: n.okpo,
5348
+ ogrn: n.ogrn || void 0,
5349
+ director_name: n.directorName,
5350
+ director_position: n.directorPosition,
5351
+ director_acts_on: n.directorActsOn,
5352
+ legal_address: n.legalAddress,
5353
+ postal_address: n.postalAddress,
5354
+ actual_address: n.actualAddress
5355
5355
  };
5356
5356
  break;
5357
5357
  case K.UlNr:
@@ -5390,7 +5390,7 @@ class W extends M {
5390
5390
  * @param deliveryAddress Данные об адресе доставки клиенту.
5391
5391
  */
5392
5392
  static transformClientDeliveryAddressToRequest(r) {
5393
- var t, i;
5393
+ var t, n;
5394
5394
  const e = {
5395
5395
  address: r.address,
5396
5396
  is_one_time: r.isOneTime ?? !1,
@@ -5399,7 +5399,7 @@ class W extends M {
5399
5399
  };
5400
5400
  return r.coordinates && (e.coordinates = {
5401
5401
  lat: (t = r.coordinates) == null ? void 0 : t.lat,
5402
- long: (i = r.coordinates) == null ? void 0 : i.long
5402
+ long: (n = r.coordinates) == null ? void 0 : n.long
5403
5403
  }), r.operatingHours && (e.operating_hours = {
5404
5404
  from: r.operatingHours.from,
5405
5405
  to: r.operatingHours.to
@@ -5439,8 +5439,8 @@ class W extends M {
5439
5439
  *
5440
5440
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_list
5441
5441
  */
5442
- getClientsList(r, e, t, i, o = void 0) {
5443
- return this.getTypedPaginated(fe, "/internal/clients", r, e, t, i, void 0, o);
5442
+ getClientsList(r, e, t, n, o) {
5443
+ return this.getTypedPaginated(fe, "/internal/clients", r, e, t, n, void 0, o);
5444
5444
  }
5445
5445
  /**
5446
5446
  * Выполняет поиск клиентов по терму в строке.
@@ -5473,11 +5473,11 @@ class W extends M {
5473
5473
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_additional_data_for_clients_list
5474
5474
  */
5475
5475
  getAdditionalClientsData(r, e) {
5476
- const t = r.map((i) => i.id);
5476
+ const t = r.map((n) => n.id);
5477
5477
  return this.post(
5478
5478
  "/internal/clients/additional-data",
5479
5479
  { clients: t, requested_data_types: e },
5480
- (i) => U.instanceListInitializer(Es, i.data)
5480
+ (n) => U.instanceListInitializer(Es, n.data)
5481
5481
  );
5482
5482
  }
5483
5483
  /**
@@ -5531,7 +5531,7 @@ class W extends M {
5531
5531
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5532
5532
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
5533
5533
  */
5534
- changeClientPassword(r, e, t, i = {}) {
5534
+ changeClientPassword(r, e, t, n = {}) {
5535
5535
  return this.patch(
5536
5536
  `/internal/clients/${r}`,
5537
5537
  {
@@ -5539,7 +5539,7 @@ class W extends M {
5539
5539
  password_confirmation: t
5540
5540
  },
5541
5541
  void 0,
5542
- i
5542
+ n
5543
5543
  );
5544
5544
  }
5545
5545
  /**
@@ -5569,7 +5569,7 @@ class W extends M {
5569
5569
  * @see /doc/api/internal#/Клиенты/api_internal_client_manager_attach
5570
5570
  */
5571
5571
  async attachClientToManagers(r, e) {
5572
- const t = e.map((i) => this.patch(`/internal/clients/${r}/managers/${i.id}/attach`, { is_primary: i.isDefault }));
5572
+ const t = e.map((n) => this.patch(`/internal/clients/${r}/managers/${n.id}/attach`, { is_primary: n.isDefault }));
5573
5573
  await Promise.all(t);
5574
5574
  }
5575
5575
  /**
@@ -5581,7 +5581,7 @@ class W extends M {
5581
5581
  * @see /doc/api/internal#/Клиенты/api_internal_client_manager_detach
5582
5582
  */
5583
5583
  async detachClientFromManagers(r, e) {
5584
- const t = e.map((i) => this.patch(`/internal/clients/${r}/managers/${i.id}/detach`));
5584
+ const t = e.map((n) => this.patch(`/internal/clients/${r}/managers/${n.id}/detach`));
5585
5585
  await Promise.all(t);
5586
5586
  }
5587
5587
  /**
@@ -5637,7 +5637,7 @@ class W extends M {
5637
5637
  return this.post(
5638
5638
  `/internal/clients/${r}/contragents`,
5639
5639
  W.transformContragentClientDataToRequest(e),
5640
- (i) => sr.createInstance(i.data),
5640
+ (n) => sr.createInstance(n.data),
5641
5641
  t
5642
5642
  );
5643
5643
  }
@@ -5653,7 +5653,7 @@ class W extends M {
5653
5653
  return this.patch(
5654
5654
  `/internal/clients/${r}/contragents/${e.id}`,
5655
5655
  W.transformContragentClientDataToRequest(e),
5656
- (i) => sr.createInstance(i.data),
5656
+ (n) => sr.createInstance(n.data),
5657
5657
  t
5658
5658
  );
5659
5659
  }
@@ -5688,7 +5688,7 @@ class W extends M {
5688
5688
  return this.post(
5689
5689
  `/internal/clients/${r}/delivery-addresses`,
5690
5690
  W.transformClientDeliveryAddressToRequest(e),
5691
- (i) => new qe(i.data),
5691
+ (n) => new qe(n.data),
5692
5692
  t
5693
5693
  );
5694
5694
  }
@@ -5704,7 +5704,7 @@ class W extends M {
5704
5704
  return this.patch(
5705
5705
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
5706
5706
  W.transformClientDeliveryAddressToRequest(e),
5707
- (i) => new qe(i.data),
5707
+ (n) => new qe(n.data),
5708
5708
  t
5709
5709
  );
5710
5710
  }
@@ -5727,12 +5727,12 @@ class W extends M {
5727
5727
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5728
5728
  * @see /doc/api/internal#/Банковские реквизиты/api_internal_client_contragent_bank_accounts_create
5729
5729
  */
5730
- createContragentBankAccount(r, e, t, i = {}) {
5730
+ createContragentBankAccount(r, e, t, n = {}) {
5731
5731
  return this.post(
5732
5732
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
5733
5733
  W.transformClientContragentBankAccountToRequest(t),
5734
5734
  (o) => new Lr(o.data),
5735
- i
5735
+ n
5736
5736
  );
5737
5737
  }
5738
5738
  /**
@@ -5744,12 +5744,12 @@ class W extends M {
5744
5744
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5745
5745
  * @see /doc/api/internal#/Адреса доставки/api_internal_client_delivery_address_update
5746
5746
  */
5747
- updateContragentBankAccount(r, e, t, i = {}) {
5747
+ updateContragentBankAccount(r, e, t, n = {}) {
5748
5748
  return this.patch(
5749
5749
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
5750
5750
  W.transformClientContragentBankAccountToRequest(t),
5751
5751
  (o) => new Lr(o.data),
5752
- i
5752
+ n
5753
5753
  );
5754
5754
  }
5755
5755
  /**
@@ -5804,7 +5804,7 @@ class W extends M {
5804
5804
  comment: e.comment,
5805
5805
  not_disturb: e.notDisturb
5806
5806
  },
5807
- (i) => new oe(i.data),
5807
+ (n) => new ce(n.data),
5808
5808
  t
5809
5809
  );
5810
5810
  }
@@ -5837,7 +5837,7 @@ class W extends M {
5837
5837
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5838
5838
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
5839
5839
  */
5840
- createContragentContact(r, e, t, i = {}) {
5840
+ createContragentContact(r, e, t, n = {}) {
5841
5841
  return this.createContact(
5842
5842
  r,
5843
5843
  t,
@@ -5850,7 +5850,7 @@ class W extends M {
5850
5850
  }
5851
5851
  ]
5852
5852
  },
5853
- i
5853
+ n
5854
5854
  );
5855
5855
  }
5856
5856
  /**
@@ -5884,7 +5884,7 @@ class W extends M {
5884
5884
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5885
5885
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_create
5886
5886
  */
5887
- createDeliveryAddressContact(r, e, t, i = {}) {
5887
+ createDeliveryAddressContact(r, e, t, n = {}) {
5888
5888
  return this.createContact(
5889
5889
  r,
5890
5890
  t,
@@ -5897,7 +5897,7 @@ class W extends M {
5897
5897
  }
5898
5898
  ]
5899
5899
  },
5900
- i
5900
+ n
5901
5901
  );
5902
5902
  }
5903
5903
  /**
@@ -5933,7 +5933,7 @@ class W extends M {
5933
5933
  * @param extraData Дополнительные данные
5934
5934
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
5935
5935
  */
5936
- createContact(r, e, t, i = {}) {
5936
+ createContact(r, e, t, n = {}) {
5937
5937
  var c, u;
5938
5938
  const o = {
5939
5939
  name: e.name,
@@ -5941,7 +5941,7 @@ class W extends M {
5941
5941
  comment: e.comment,
5942
5942
  ...t
5943
5943
  };
5944
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new oe(p.data), i);
5944
+ return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new ce(p.data), n);
5945
5945
  }
5946
5946
  /**
5947
5947
  * Устанавливает признак основного контактного лица.
@@ -5970,7 +5970,7 @@ class W extends M {
5970
5970
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5971
5971
  }
5972
5972
  }
5973
- class Ii extends h {
5973
+ class _i extends h {
5974
5974
  /**
5975
5975
  * Выполняет проверку занят ли указанный номер телефона.
5976
5976
  *
@@ -5978,13 +5978,13 @@ class Ii extends h {
5978
5978
  */
5979
5979
  checkPhoneIsBusy(r) {
5980
5980
  return new Promise((e, t) => {
5981
- this.request({ method: "GET", url: "/public/user/verification/phone/check", params: { phone: r } }).then((i) => {
5982
- e(!!i.isBusy);
5981
+ this.request({ method: "GET", url: "/public/user/verification/phone/check", params: { phone: r } }).then((n) => {
5982
+ e(!!n.isBusy);
5983
5983
  }).catch(t);
5984
5984
  });
5985
5985
  }
5986
5986
  }
5987
- class _i {
5987
+ class qi {
5988
5988
  /**
5989
5989
  * Инициализирует экземпляр класса {@link VersionConfig}.
5990
5990
  *
@@ -6006,8 +6006,8 @@ class _i {
6006
6006
  this.date = I(r == null ? void 0 : r.date) ? _(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";
6007
6007
  }
6008
6008
  }
6009
- var Fs = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Fs || {});
6010
- class qi extends h {
6009
+ var Fs = /* @__PURE__ */ ((i) => (i.Kozyrek = "kozyrek", i.Mosquitto = "mosquitto", i.Strip = "strip", i.MetalForDoors = "metal_for_doors", i.Sandwich = "sandwich", i.SandwichM2 = "sandwich_m2", i))(Fs || {});
6010
+ class Ni extends h {
6011
6011
  /**
6012
6012
  * Возвращает настройки указанного конфигуратора для указанной категории.
6013
6013
  *
@@ -6032,7 +6032,7 @@ class qi extends h {
6032
6032
  *
6033
6033
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_products_get
6034
6034
  */
6035
- searchProduct(r, e, t, i = {}) {
6035
+ searchProduct(r, e, t, n = {}) {
6036
6036
  var o;
6037
6037
  return this.request(
6038
6038
  {
@@ -6041,7 +6041,7 @@ class qi extends h {
6041
6041
  params: { params: t, client_id: e }
6042
6042
  },
6043
6043
  (c) => new E(c.data),
6044
- i
6044
+ n
6045
6045
  );
6046
6046
  }
6047
6047
  /**
@@ -6057,7 +6057,7 @@ class qi extends h {
6057
6057
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_configurator_template_create
6058
6058
  */
6059
6059
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6060
- createTemplate(r, e, t, i = {}) {
6060
+ createTemplate(r, e, t, n = {}) {
6061
6061
  var o;
6062
6062
  return this.post(
6063
6063
  `internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/template?client_id=${e}`,
@@ -6065,7 +6065,7 @@ class qi extends h {
6065
6065
  // eslint-disable-next-line lodash/prefer-noop, @typescript-eslint/no-empty-function
6066
6066
  () => {
6067
6067
  },
6068
- i
6068
+ n
6069
6069
  );
6070
6070
  }
6071
6071
  /**
@@ -6079,8 +6079,8 @@ class qi extends h {
6079
6079
  */
6080
6080
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6081
6081
  removeTemplate(r, e, t) {
6082
- var i;
6083
- return this.delete(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/template/${t}?client_id=${e}`);
6082
+ var n;
6083
+ return this.delete(`internal/catalog/categories/${r.id}/configurators/${(n = r.properties) == null ? void 0 : n.configurator}/template/${t}?client_id=${e}`);
6084
6084
  }
6085
6085
  /**
6086
6086
  * Выполняет расчет, через указанный конфигуратор с переданными параметрами.
@@ -6092,8 +6092,8 @@ class qi extends h {
6092
6092
  * @see /doc/api/internal#/Каталог/api_public_catalog_categories_category_configurator_calculate
6093
6093
  */
6094
6094
  calculate(r, e, t) {
6095
- var i;
6096
- return this.get(`internal/catalog/categories/${r.id}/configurators/${(i = r.properties) == null ? void 0 : i.configurator}/calculate`, {
6095
+ var n;
6096
+ return this.get(`internal/catalog/categories/${r.id}/configurators/${(n = r.properties) == null ? void 0 : n.configurator}/calculate`, {
6097
6097
  client_id: e,
6098
6098
  ...t
6099
6099
  });
@@ -6117,7 +6117,7 @@ class Ms {
6117
6117
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
6118
6118
  }
6119
6119
  }
6120
- class Ni extends Ms {
6120
+ class Ei extends Ms {
6121
6121
  /**
6122
6122
  * Инициализирует экземпляр класса {@link TableDataPagination}.
6123
6123
  *
@@ -6148,7 +6148,7 @@ class Ni extends Ms {
6148
6148
  this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
6149
6149
  }
6150
6150
  }
6151
- class Ei {
6151
+ class Ui {
6152
6152
  /**
6153
6153
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
6154
6154
  *
@@ -6183,8 +6183,8 @@ class y {
6183
6183
  * @param shift Смещение в декадах, может быть отрицательным.
6184
6184
  */
6185
6185
  static shiftDecadeInterval(r, e) {
6186
- const [t, i] = y.shiftedDecadeBounds(r, e);
6187
- return { from: t, to: i };
6186
+ const [t, n] = y.shiftedDecadeBounds(r, e);
6187
+ return { from: t, to: n };
6188
6188
  }
6189
6189
  /**
6190
6190
  * Возвращает начало полугодия, в которое попадает указанная дата.
@@ -6209,7 +6209,7 @@ class y {
6209
6209
  * @param amount Смещение в полугодиях, может быть отрицательным.
6210
6210
  */
6211
6211
  static addHalfYears(r, e) {
6212
- return k(r, e * 6);
6212
+ return O(r, e * 6);
6213
6213
  }
6214
6214
  /**
6215
6215
  * Возвращает интервал «сдвинутый период до такой же даты»: от начала сдвинутого периода до конца дня
@@ -6221,8 +6221,8 @@ class y {
6221
6221
  * @param date Опорная дата.
6222
6222
  */
6223
6223
  static intervalTillSameDate(r, e, t) {
6224
- const i = cs(H(t), H(r)), o = H(k(e, i)), c = Math.min(Xr(t), ls(o));
6225
- return { from: re(e), to: B(us(o, c)) };
6224
+ const n = cs(H(t), H(r)), o = H(O(e, n)), c = Math.min(Xr(t), ls(o));
6225
+ return { from: te(e), to: B(us(o, c)) };
6226
6226
  }
6227
6227
  /**
6228
6228
  * Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
@@ -6231,8 +6231,8 @@ class y {
6231
6231
  * @param shiftWeeks Смещение в неделях, может быть отрицательным.
6232
6232
  */
6233
6233
  static weekTillSameWeekday(r, e) {
6234
- const t = te(Sr(r, e), { weekStartsOn: 1 }), i = je(r, te(r, { weekStartsOn: 1 }));
6235
- return { from: t, to: B(se(t, i)) };
6234
+ const t = se(Sr(r, e), { weekStartsOn: 1 }), n = je(r, se(r, { weekStartsOn: 1 }));
6235
+ return { from: t, to: B(ie(t, n)) };
6236
6236
  }
6237
6237
  /**
6238
6238
  * Возвращает интервал «сдвинутая декада до такого же номера дня»; если в целевой декаде дня с таким
@@ -6242,8 +6242,8 @@ class y {
6242
6242
  * @param shift Смещение в декадах, может быть отрицательным.
6243
6243
  */
6244
6244
  static decadeTillSameDayNumber(r, e) {
6245
- const [t] = y.shiftedDecadeBounds(r, 0), i = je(r, t) + 1, [o, c] = y.shiftedDecadeBounds(r, e), u = je(c, o) + 1;
6246
- return { from: o, to: B(se(o, Math.min(i, u) - 1)) };
6245
+ const [t] = y.shiftedDecadeBounds(r, 0), n = je(r, t) + 1, [o, c] = y.shiftedDecadeBounds(r, e), u = je(c, o) + 1;
6246
+ return { from: o, to: B(ie(o, Math.min(n, u) - 1)) };
6247
6247
  }
6248
6248
  /**
6249
6249
  * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
@@ -6253,58 +6253,58 @@ class y {
6253
6253
  */
6254
6254
  static shiftedDecadeBounds(r, e) {
6255
6255
  const t = Xr(r);
6256
- let i = 2;
6257
- t <= 10 ? i = 0 : t <= 20 && (i = 1);
6258
- const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = H(k(r, c)), g = se(p, u * 10), a = u === 2 ? x(p) : B(se(g, 9));
6256
+ let n = 2;
6257
+ t <= 10 ? n = 0 : t <= 20 && (n = 1);
6258
+ const o = n + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = H(O(r, c)), g = ie(p, u * 10), a = u === 2 ? x(p) : B(ie(g, 9));
6259
6259
  return [g, a];
6260
6260
  }
6261
6261
  }
6262
- function Ui(n) {
6263
- return $(Ye(Ee(), n), "yyyy-MM-dd");
6262
+ function Fi(i) {
6263
+ return $(Ye(Ee(), i), "yyyy-MM-dd");
6264
6264
  }
6265
- function Hs(n, r) {
6266
- const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6265
+ function Hs(i, r) {
6266
+ const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(i));
6267
6267
  return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6268
6268
  }
6269
- function Fi(n) {
6270
- const r = _(n), e = je(Ee(), r);
6269
+ function Mi(i) {
6270
+ const r = _(i), e = je(Ee(), r);
6271
6271
  switch (!0) {
6272
6272
  case e === 0:
6273
6273
  return "Сегодня";
6274
6274
  case e === 1:
6275
6275
  return "Вчера";
6276
6276
  case e < 0:
6277
- return n;
6277
+ return i;
6278
6278
  default:
6279
6279
  return `${e} ${Hs(e, ["день", "дня", "дней"])} назад`;
6280
6280
  }
6281
6281
  }
6282
- class Mi {
6282
+ class Hi {
6283
6283
  /**
6284
6284
  * Возвращает предустановленные диапазоны дат.
6285
6285
  *
6286
6286
  * @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
6287
6287
  */
6288
6288
  static defaultDateRanges(r) {
6289
- const e = ps(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = ae(r === void 0 ? t : new Date(r, 0, 1)), o = $e(i);
6289
+ const e = ps(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), n = ae(r === void 0 ? t : new Date(r, 0, 1)), o = $e(n);
6290
6290
  return {
6291
6291
  // 'Следующий рабочий день' - это значение по-умолчанию
6292
- nextWorkingDay: { label: "Следующий рабочий день", from: re(e), to: B(e) },
6292
+ nextWorkingDay: { label: "Следующий рабочий день", from: te(e), to: B(e) },
6293
6293
  today: { label: "Сегодня", from: Ee(), to: ys() },
6294
6294
  yesterday: { label: "Вчера", from: ms(), to: fs() },
6295
6295
  tomorrow: { label: "Завтра", from: gs(), to: hs() },
6296
- currentWeek: { label: "Неделя", from: te(t, { weekStartsOn: 1 }), to: ke(t, { weekStartsOn: 1 }) },
6296
+ currentWeek: { label: "Неделя", from: se(t, { weekStartsOn: 1 }), to: ke(t, { weekStartsOn: 1 }) },
6297
6297
  currentMonth: { label: "Месяц", from: H(t), to: x(t) },
6298
- oneMonth: { label: "1 месяц", from: i, to: x(i) },
6299
- threeMonths: { label: "3 месяца", from: i, to: x(k(i, 2)) },
6300
- nineMonths: { label: "9 месяцев", from: i, to: x(k(i, 8)) },
6301
- firstQuarter: { label: "I квартал", from: i, to: x(k(i, 2)) },
6302
- secondQuarter: { label: "II квартал", from: k(i, 3), to: x(k(i, 5)) },
6303
- thirdQuarter: { label: "III квартал", from: k(i, 6), to: x(k(i, 8)) },
6304
- fourthQuarter: { label: "IV квартал", from: k(i, 9), to: x(k(i, 11)) },
6305
- firstHalfYear: { label: "I полугодие", from: i, to: x(k(i, 5)) },
6306
- secondHalfYear: { label: "II полугодие", from: k(i, 6), to: o },
6307
- currentYear: { label: "12 месяцев", from: i, to: o }
6298
+ oneMonth: { label: "1 месяц", from: n, to: x(n) },
6299
+ threeMonths: { label: "3 месяца", from: n, to: x(O(n, 2)) },
6300
+ nineMonths: { label: "9 месяцев", from: n, to: x(O(n, 8)) },
6301
+ firstQuarter: { label: "I квартал", from: n, to: x(O(n, 2)) },
6302
+ secondQuarter: { label: "II квартал", from: O(n, 3), to: x(O(n, 5)) },
6303
+ thirdQuarter: { label: "III квартал", from: O(n, 6), to: x(O(n, 8)) },
6304
+ fourthQuarter: { label: "IV квартал", from: O(n, 9), to: x(O(n, 11)) },
6305
+ firstHalfYear: { label: "I полугодие", from: n, to: x(O(n, 5)) },
6306
+ secondHalfYear: { label: "II полугодие", from: O(n, 6), to: o },
6307
+ currentYear: { label: "12 месяцев", from: n, to: o }
6308
6308
  };
6309
6309
  }
6310
6310
  /**
@@ -6315,20 +6315,20 @@ class Mi {
6315
6315
  * @param now Опорная дата «сейчас»; по умолчанию текущая.
6316
6316
  */
6317
6317
  static standardPeriods(r = /* @__PURE__ */ new Date()) {
6318
- const e = { weekStartsOn: 1 }, t = re(r), i = B(r), o = y.decadeInterval(r), c = H(r), u = Oe(r), p = y.startOfHalfYear(r), g = ae(r), a = y.addHalfYears(r, -1), T = y.addHalfYears(r, 1);
6318
+ const e = { weekStartsOn: 1 }, t = te(r), n = B(r), o = y.decadeInterval(r), c = H(r), u = Oe(r), p = y.startOfHalfYear(r), g = ae(r), a = y.addHalfYears(r, -1), T = y.addHalfYears(r, 1);
6319
6319
  return {
6320
- yesterday: { label: "Вчера", group: "day", from: re(Ye(r, 1)), to: B(Ye(r, 1)) },
6321
- today: { label: "Сегодня", group: "day", from: t, to: i },
6322
- tomorrow: { label: "Завтра", group: "day", from: re(se(r, 1)), to: B(se(r, 1)) },
6323
- lastWeek: { label: "Прошлая неделя", group: "week", from: te(Zr(r, 1), e), to: ke(Zr(r, 1), e) },
6324
- thisWeek: { label: "Эта неделя", group: "week", from: te(r, e), to: ke(r, e) },
6325
- nextWeek: { label: "Следующая неделя", group: "week", from: te(Sr(r, 1), e), to: ke(Sr(r, 1), e) },
6320
+ yesterday: { label: "Вчера", group: "day", from: te(Ye(r, 1)), to: B(Ye(r, 1)) },
6321
+ today: { label: "Сегодня", group: "day", from: t, to: n },
6322
+ tomorrow: { label: "Завтра", group: "day", from: te(ie(r, 1)), to: B(ie(r, 1)) },
6323
+ lastWeek: { label: "Прошлая неделя", group: "week", from: se(Zr(r, 1), e), to: ke(Zr(r, 1), e) },
6324
+ thisWeek: { label: "Эта неделя", group: "week", from: se(r, e), to: ke(r, e) },
6325
+ nextWeek: { label: "Следующая неделя", group: "week", from: se(Sr(r, 1), e), to: ke(Sr(r, 1), e) },
6326
6326
  lastTenDays: { label: "Прошлая декада", group: "decade", ...y.shiftDecadeInterval(r, -1) },
6327
6327
  thisTenDays: { label: "Эта декада", group: "decade", ...o },
6328
6328
  nextTenDays: { label: "Следующая декада", group: "decade", ...y.shiftDecadeInterval(r, 1) },
6329
6329
  lastMonth: { label: "Прошлый месяц", group: "month", from: H(ar(r, 1)), to: x(ar(r, 1)) },
6330
6330
  thisMonth: { label: "Этот месяц", group: "month", from: c, to: x(r) },
6331
- nextMonth: { label: "Следующий месяц", group: "month", from: H(k(r, 1)), to: x(k(r, 1)) },
6331
+ nextMonth: { label: "Следующий месяц", group: "month", from: H(O(r, 1)), to: x(O(r, 1)) },
6332
6332
  lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Oe(yr(r, 1)), to: Ge(yr(r, 1)) },
6333
6333
  thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Ge(r) },
6334
6334
  nextQuarter: { label: "Следующий квартал", group: "quarter", from: Oe(fr(r, 1)), to: Ge(fr(r, 1)) },
@@ -6343,12 +6343,12 @@ class Mi {
6343
6343
  lastYear: { label: "Прошлый год", group: "year", from: ae(mr(r, 1)), to: $e(mr(r, 1)) },
6344
6344
  thisYear: { label: "Этот год", group: "year", from: g, to: $e(r) },
6345
6345
  nextYear: { label: "Следующий год", group: "year", from: ae(gr(r, 1)), to: $e(gr(r, 1)) },
6346
- fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: te(r, e), to: i },
6347
- fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
6348
- fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
6349
- fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: i },
6350
- fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: i },
6351
- fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: i },
6346
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: se(r, e), to: n },
6347
+ fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: n },
6348
+ fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: n },
6349
+ fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: n },
6350
+ fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: n },
6351
+ fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: n },
6352
6352
  tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: ke(r, e) },
6353
6353
  tillEndOfThisTenDays: { label: "До конца этой декады", group: "other", section: "tillEnd", from: t, to: o.to },
6354
6354
  tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: x(r) },
@@ -6397,7 +6397,7 @@ class Mi {
6397
6397
  label: "Следующий месяц, до такой же даты",
6398
6398
  group: "other",
6399
6399
  section: "nextTillSame",
6400
- ...y.intervalTillSameDate(c, H(k(r, 1)), r)
6400
+ ...y.intervalTillSameDate(c, H(O(r, 1)), r)
6401
6401
  },
6402
6402
  nextQuarterTillSameDate: {
6403
6403
  label: "Следующий квартал, до такой же даты",
@@ -6417,12 +6417,12 @@ class Mi {
6417
6417
  section: "nextTillSame",
6418
6418
  ...y.intervalTillSameDate(g, ae(gr(r, 1)), r)
6419
6419
  },
6420
- last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: re(Ye(r, 6)), to: i },
6421
- next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: B(se(r, 6)) }
6420
+ last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: te(Ye(r, 6)), to: n },
6421
+ next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: B(ie(r, 6)) }
6422
6422
  };
6423
6423
  }
6424
6424
  }
6425
- const Hi = [
6425
+ const Bi = [
6426
6426
  { key: "day", label: "День" },
6427
6427
  { key: "week", label: "Неделя" },
6428
6428
  { key: "decade", label: "Декада" },
@@ -6431,7 +6431,7 @@ const Hi = [
6431
6431
  { key: "halfYear", label: "Полугодие" },
6432
6432
  { key: "year", label: "Год" },
6433
6433
  { key: "other", label: "Прочее" }
6434
- ], Bi = [
6434
+ ], Gi = [
6435
6435
  { key: "fromBeginning", label: "С начала периода" },
6436
6436
  { key: "tillEnd", label: "До конца периода" },
6437
6437
  { key: "lastTillSame", label: "Прошлые, до такой же даты" },
@@ -6500,7 +6500,7 @@ class Bs {
6500
6500
  * @inheritDoc
6501
6501
  */
6502
6502
  s(this, "lastOrderDate");
6503
- this.salesDirections = P((r == null ? void 0 : r.salesDirections) ?? [], (e) => new F(e)), this.partnerGroups = P((r == null ? void 0 : r.partnerGroups) ?? [], (e) => new le(e)), this.managers = P((r == null ? void 0 : r.managers) ?? [], (e) => new q(e)), this.additionalClients = P((r == null ? void 0 : r.additionalClients) ?? [], (e) => new Ir(e)), this.fixedClients = P((r == null ? void 0 : r.fixedClients) ?? [], (e) => new Ir(e)), this.regions = P((r == null ? void 0 : r.regions) ?? [], (e) => new ne(e)), this.cities = P((r == null ? void 0 : r.cities) ?? [], (e) => new ee(e)), this.lastLoginDate = new D(r == null ? void 0 : r.lastLoginDate), this.lastOrderDate = new D(r == null ? void 0 : r.lastOrderDate);
6503
+ this.salesDirections = R((r == null ? void 0 : r.salesDirections) ?? [], (e) => new F(e)), this.partnerGroups = R((r == null ? void 0 : r.partnerGroups) ?? [], (e) => new ue(e)), this.managers = R((r == null ? void 0 : r.managers) ?? [], (e) => new q(e)), this.additionalClients = R((r == null ? void 0 : r.additionalClients) ?? [], (e) => new Ir(e)), this.fixedClients = R((r == null ? void 0 : r.fixedClients) ?? [], (e) => new Ir(e)), this.regions = R((r == null ? void 0 : r.regions) ?? [], (e) => new oe(e)), this.cities = R((r == null ? void 0 : r.cities) ?? [], (e) => new ee(e)), this.lastLoginDate = new D(r == null ? void 0 : r.lastLoginDate), this.lastOrderDate = new D(r == null ? void 0 : r.lastOrderDate);
6504
6504
  }
6505
6505
  /**
6506
6506
  * Возвращает признак того, что задано хотя бы одно условие отбора клиентов.
@@ -6518,19 +6518,19 @@ class Bs {
6518
6518
  * @param period Период; при отсутствии условие сбрасывается.
6519
6519
  */
6520
6520
  setPeriod(r, e) {
6521
- return this[r] = new D({ from: e != null && e.from ? re(e.from) : null, to: e != null && e.to ? B(e.to) : null }), this;
6521
+ return this[r] = new D({ from: e != null && e.from ? te(e.from) : null, to: e != null && e.to ? B(e.to) : null }), this;
6522
6522
  }
6523
6523
  /**
6524
6524
  * Возвращает условия для сохранения скидки.
6525
6525
  */
6526
6526
  toSaveData() {
6527
6527
  return {
6528
- salesDirections: P(this.salesDirections, "id"),
6529
- partnerGroups: P(this.partnerGroups, "id"),
6530
- managers: P(this.managers, "id"),
6531
- additionalClients: P(this.additionalClients, "id"),
6532
- regions: P(this.regions, "id"),
6533
- cities: P(this.cities, "id"),
6528
+ salesDirections: R(this.salesDirections, "id"),
6529
+ partnerGroups: R(this.partnerGroups, "id"),
6530
+ managers: R(this.managers, "id"),
6531
+ additionalClients: R(this.additionalClients, "id"),
6532
+ regions: R(this.regions, "id"),
6533
+ cities: R(this.cities, "id"),
6534
6534
  lastLoginDate: new D(this.lastLoginDate),
6535
6535
  lastOrderDate: new D(this.lastOrderDate)
6536
6536
  };
@@ -6544,10 +6544,10 @@ class Gs {
6544
6544
  * @param percent Процент скидки (10 для скидки 10 %).
6545
6545
  */
6546
6546
  static percentToCostCoefficient(r) {
6547
- return vt((100 - r) / 100, S().config.numberPrecision.priceCoefficient);
6547
+ return Ct((100 - r) / 100, S().config.numberPrecision.priceCoefficient);
6548
6548
  }
6549
6549
  }
6550
- var Ke = /* @__PURE__ */ ((n) => (n.Active = "active", n.Scheduled = "scheduled", n.Completed = "completed", n))(Ke || {});
6550
+ var Ke = /* @__PURE__ */ ((i) => (i.Active = "active", i.Scheduled = "scheduled", i.Completed = "completed", i))(Ke || {});
6551
6551
  class zs {
6552
6552
  /**
6553
6553
  * Возвращает состояние скидки на указанный момент по датам начала и окончания действия.
@@ -6559,7 +6559,7 @@ class zs {
6559
6559
  return r.deletedAt && r.deletedAt.getTime() <= e.getTime() ? Ke.Completed : r.publishedAt && r.publishedAt.getTime() > e.getTime() ? Ke.Scheduled : Ke.Active;
6560
6560
  }
6561
6561
  }
6562
- class Pr extends Mr {
6562
+ class Rr extends Mr {
6563
6563
  /**
6564
6564
  * Инициализирует экземпляр класса {@link Discount}.
6565
6565
  *
@@ -6595,7 +6595,7 @@ class Pr extends Mr {
6595
6595
  * @inheritDoc
6596
6596
  */
6597
6597
  s(this, "countDiscountedClients");
6598
- this.conditions = new Bs(e == null ? void 0 : e.conditions), this.products = P((e == null ? void 0 : e.products) ?? [], (t) => new E(t)), this.productCategories = P((e == null ? void 0 : e.productCategories) ?? [], (t) => new Y(t)), this.countDiscountedPrices = (e == null ? void 0 : e.countDiscountedPrices) ?? 0, this.expectedCountDiscountedPrices = (e == null ? void 0 : e.expectedCountDiscountedPrices) ?? 0, this.countDiscountedProducts = (e == null ? void 0 : e.countDiscountedProducts) ?? 0, this.countDiscountedClients = (e == null ? void 0 : e.countDiscountedClients) ?? 0;
6598
+ this.conditions = new Bs(e == null ? void 0 : e.conditions), this.products = R((e == null ? void 0 : e.products) ?? [], (t) => new E(t)), this.productCategories = R((e == null ? void 0 : e.productCategories) ?? [], (t) => new Y(t)), this.countDiscountedPrices = (e == null ? void 0 : e.countDiscountedPrices) ?? 0, this.expectedCountDiscountedPrices = (e == null ? void 0 : e.expectedCountDiscountedPrices) ?? 0, this.countDiscountedProducts = (e == null ? void 0 : e.countDiscountedProducts) ?? 0, this.countDiscountedClients = (e == null ? void 0 : e.countDiscountedClients) ?? 0;
6599
6599
  }
6600
6600
  /**
6601
6601
  * Возвращает состояние скидки на указанный момент.
@@ -6630,8 +6630,8 @@ class Pr extends Mr {
6630
6630
  publishedAt: this.publishedAt ?? null,
6631
6631
  deletedAt: this.deletedAt ?? null,
6632
6632
  description: this.description ?? "",
6633
- products: P(this.products, "id"),
6634
- productCategories: P(this.productCategories, "id"),
6633
+ products: R(this.products, "id"),
6634
+ productCategories: R(this.productCategories, "id"),
6635
6635
  conditions: this.conditions.toSaveData()
6636
6636
  };
6637
6637
  }
@@ -6684,7 +6684,7 @@ class ut {
6684
6684
  return this.additionalClientsCondition || this.fixedClientsCondition || this.partnerGroupsCondition || this.managersCondition || this.citiesCondition || this.regionsCondition || this.salesDirectionsCondition;
6685
6685
  }
6686
6686
  }
6687
- class Gi extends de {
6687
+ class zi extends de {
6688
6688
  /**
6689
6689
  * Инициализирует экземпляр класса {@link DiscountsListFilters}.
6690
6690
  *
@@ -6732,12 +6732,12 @@ class _r extends M {
6732
6732
  static prepareSaveData(r, e) {
6733
6733
  return {
6734
6734
  ...r,
6735
- publishedAt: O.toApiFormat(r.publishedAt),
6736
- deletedAt: O.toApiFormat(r.deletedAt),
6735
+ publishedAt: k.toApiFormat(r.publishedAt),
6736
+ deletedAt: k.toApiFormat(r.deletedAt),
6737
6737
  conditions: {
6738
6738
  ...r.conditions,
6739
- lastLoginDate: O.periodToApiFormat(r.conditions.lastLoginDate),
6740
- lastOrderDate: O.periodToApiFormat(r.conditions.lastOrderDate),
6739
+ lastLoginDate: k.periodToApiFormat(r.conditions.lastLoginDate),
6740
+ lastOrderDate: k.periodToApiFormat(r.conditions.lastOrderDate),
6741
6741
  updateFixedClients: e
6742
6742
  }
6743
6743
  };
@@ -6752,8 +6752,8 @@ class _r extends M {
6752
6752
  *
6753
6753
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_get_list
6754
6754
  */
6755
- getDiscountsList(r, e, t, i = void 0) {
6756
- return this.getTypedPaginated(Mr, "/internal/price/discounts", r, e, t, {}, void 0, i);
6755
+ getDiscountsList(r, e, t, n = void 0) {
6756
+ return this.getTypedPaginated(Mr, "/internal/price/discounts", r, e, t, {}, void 0, n);
6757
6757
  }
6758
6758
  /**
6759
6759
  * Возвращает полные данные о скидке.
@@ -6763,7 +6763,7 @@ class _r extends M {
6763
6763
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_get
6764
6764
  */
6765
6765
  getDiscount(r) {
6766
- return this.get(`/internal/price/discounts/${r}`, {}, (e) => new Pr(e.data));
6766
+ return this.get(`/internal/price/discounts/${r}`, {}, (e) => new Rr(e.data));
6767
6767
  }
6768
6768
  /**
6769
6769
  * Создаёт новую скидку.
@@ -6781,7 +6781,7 @@ class _r extends M {
6781
6781
  return this.post(
6782
6782
  "/internal/price/discounts",
6783
6783
  _r.prepareSaveData(r, e),
6784
- (i) => new Pr(i.data),
6784
+ (n) => new Rr(n.data),
6785
6785
  t
6786
6786
  );
6787
6787
  }
@@ -6798,12 +6798,12 @@ class _r extends M {
6798
6798
  *
6799
6799
  * @see /doc/api/internal#/operations/api_internal_catalog_price_discount_change
6800
6800
  */
6801
- updateDiscount(r, e, t, i = {}) {
6801
+ updateDiscount(r, e, t, n = {}) {
6802
6802
  return this.patch(
6803
6803
  `/internal/price/discounts/${r}`,
6804
6804
  _r.prepareSaveData(e, t),
6805
- (o) => new Pr(o.data),
6806
- i
6805
+ (o) => new Rr(o.data),
6806
+ n
6807
6807
  );
6808
6808
  }
6809
6809
  /**
@@ -6852,7 +6852,7 @@ class Xe extends N {
6852
6852
  super(r);
6853
6853
  }
6854
6854
  }
6855
- class We extends pe {
6855
+ class We extends re {
6856
6856
  /**
6857
6857
  * Инициализирует экземпляр класса {@link Faq}.
6858
6858
  *
@@ -6874,7 +6874,7 @@ class We extends pe {
6874
6874
  * @inheritDoc
6875
6875
  */
6876
6876
  s(this, "groups");
6877
- this.question = (e == null ? void 0 : e.question) ?? "", this.answer = (e == null ? void 0 : e.answer) ?? "", this.groups = P((e == null ? void 0 : e.groups) ?? [], (t) => new Xe(t));
6877
+ this.question = (e == null ? void 0 : e.question) ?? "", this.answer = (e == null ? void 0 : e.answer) ?? "", this.groups = R((e == null ? void 0 : e.groups) ?? [], (t) => new Xe(t));
6878
6878
  }
6879
6879
  /**
6880
6880
  * Возвращает данные вопроса для отправки на портал.
@@ -6883,11 +6883,11 @@ class We extends pe {
6883
6883
  return {
6884
6884
  question: this.question,
6885
6885
  answer: this.answer,
6886
- groups: P(this.groups, "id")
6886
+ groups: R(this.groups, "id")
6887
6887
  };
6888
6888
  }
6889
6889
  }
6890
- class zi extends M {
6890
+ class Wi extends M {
6891
6891
  /**
6892
6892
  * Возвращает список часто задаваемых вопросов.
6893
6893
  *
@@ -6934,7 +6934,7 @@ class zi extends M {
6934
6934
  * @see /doc/api/internal#/operations/api_internal_faq_update
6935
6935
  */
6936
6936
  updateFaq(r, e, t = {}) {
6937
- return this.patch(`/internal/faq/${r}`, e, (i) => new We(i.data), t);
6937
+ return this.patch(`/internal/faq/${r}`, e, (n) => new We(n.data), t);
6938
6938
  }
6939
6939
  /**
6940
6940
  * Удаляет часто задаваемый вопрос.
@@ -6979,7 +6979,7 @@ class zi extends M {
6979
6979
  * @see /doc/api/internal#/operations/api_internal_faq_groups_update
6980
6980
  */
6981
6981
  updateGroup(r, e, t = {}) {
6982
- return this.patch(`/internal/faq/groups/${r}`, e, (i) => new Xe(i.data), t);
6982
+ return this.patch(`/internal/faq/groups/${r}`, e, (n) => new Xe(n.data), t);
6983
6983
  }
6984
6984
  /**
6985
6985
  * Удаляет группу часто задаваемых вопросов. Вопросы группы при этом не удаляются.
@@ -6992,8 +6992,8 @@ class zi extends M {
6992
6992
  return this.delete(`/internal/faq/groups/${r}`);
6993
6993
  }
6994
6994
  }
6995
- function Wi(n) {
6996
- const r = vt(n * 100);
6995
+ function ji(i) {
6996
+ const r = Ct(i * 100);
6997
6997
  return `${r >= 0 ? "+" : ""}${r}%`;
6998
6998
  }
6999
6999
  class Ft {
@@ -7020,11 +7020,11 @@ class Ft {
7020
7020
  * @param product Данные о товаре для которого необходимо вернуть кратность длины.
7021
7021
  */
7022
7022
  static getProductLengthMultiplicity(r) {
7023
- var e, t, i;
7024
- return ((e = r.properties) == null ? void 0 : e.lengthStep) != null ? r.properties.lengthStep : !((t = r.properties) != null && t.ignoreMinCountCheck) && ((i = r.properties) == null ? void 0 : i.minCount) != null ? r.properties.minCount : 0.01;
7023
+ var e, t, n;
7024
+ return ((e = r.properties) == null ? void 0 : e.lengthStep) != null ? r.properties.lengthStep : !((t = r.properties) != null && t.ignoreMinCountCheck) && ((n = r.properties) == null ? void 0 : n.minCount) != null ? r.properties.minCount : 0.01;
7025
7025
  }
7026
7026
  }
7027
- const Re = class Re extends h {
7027
+ const Pe = class Pe extends h {
7028
7028
  /**
7029
7029
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
7030
7030
  */
@@ -7044,7 +7044,7 @@ const Re = class Re extends h {
7044
7044
  */
7045
7045
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
7046
7046
  static getCachedResponse(e) {
7047
- const t = Re.responseDataCache.get(e);
7047
+ const t = Pe.responseDataCache.get(e);
7048
7048
  if (t && t.validTo > /* @__PURE__ */ new Date())
7049
7049
  return t.val;
7050
7050
  }
@@ -7055,7 +7055,7 @@ const Re = class Re extends h {
7055
7055
  * @param data Данные для кэширования.
7056
7056
  */
7057
7057
  cacheResponse(e, t) {
7058
- Re.responseDataCache.set(e, {
7058
+ Pe.responseDataCache.set(e, {
7059
7059
  validTo: as(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
7060
7060
  val: t
7061
7061
  });
@@ -7071,17 +7071,17 @@ const Re = class Re extends h {
7071
7071
  * @param signal Сигнал отмены запроса.
7072
7072
  */
7073
7073
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
7074
- getTypedDataArrayRequester(e, t, i = !1, o = {}, c = void 0) {
7075
- const u = t + (Q(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? Re.getCachedResponse(u) : void 0;
7076
- return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (i && g && this.cacheResponse(u, g), g));
7074
+ getTypedDataArrayRequester(e, t, n = !1, o = {}, c = void 0) {
7075
+ const u = t + (Q(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = n ? Pe.getCachedResponse(u) : void 0;
7076
+ return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (n && g && this.cacheResponse(u, g), g));
7077
7077
  }
7078
7078
  };
7079
7079
  /**
7080
7080
  * Кэш результатов запросов.
7081
7081
  */
7082
- s(Re, "responseDataCache", /* @__PURE__ */ new Map());
7083
- let Me = Re;
7084
- class ji {
7082
+ s(Pe, "responseDataCache", /* @__PURE__ */ new Map());
7083
+ let Me = Pe;
7084
+ class Yi {
7085
7085
  /**
7086
7086
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
7087
7087
  */
@@ -7105,8 +7105,8 @@ class Mt extends Me {
7105
7105
  const r = "/internal/managers", e = Me.getCachedResponse(r);
7106
7106
  if (e)
7107
7107
  return e;
7108
- const t = await this.get(r), i = U.instanceListInitializer(Z, t.data);
7109
- return this.cacheResponse(r, i), i;
7108
+ const t = await this.get(r), n = U.instanceListInitializer(Z, t.data);
7109
+ return this.cacheResponse(r, n), n;
7110
7110
  }
7111
7111
  /**
7112
7112
  * Возвращает {@link Promise} для получения полных данных о менеджере с указанным идентификатором.
@@ -7119,7 +7119,7 @@ class Mt extends Me {
7119
7119
  return this.get(`/internal/managers/${r}`, {}, (e) => new Z(e.data));
7120
7120
  }
7121
7121
  }
7122
- var _e = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(_e || {});
7122
+ var _e = /* @__PURE__ */ ((i) => (i.Processing = "processing", i.Completed = "completed", i.Error = "error", i.NeedsActualization = "needs_actualization", i))(_e || {});
7123
7123
  class Ws {
7124
7124
  /**
7125
7125
  * Инициализирует экземпляр класса {@link OfferActualization}.
@@ -7143,7 +7143,7 @@ class Ws {
7143
7143
  * @inheritDoc
7144
7144
  */
7145
7145
  s(this, "error");
7146
- this.status = (r == null ? void 0 : r.status) ?? _e.Processing, this.actualizedAt = O.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = O.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
7146
+ this.status = (r == null ? void 0 : r.status) ?? _e.Processing, this.actualizedAt = k.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = k.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
7147
7147
  }
7148
7148
  /**
7149
7149
  * @inheritDoc
@@ -7271,7 +7271,7 @@ class G extends Ht {
7271
7271
  );
7272
7272
  }
7273
7273
  }
7274
- class Yi extends de {
7274
+ class Vi extends de {
7275
7275
  /**
7276
7276
  * Инициализирует экземпляр класса {@link OffersListFilters}.
7277
7277
  *
@@ -7307,12 +7307,12 @@ class Yi extends de {
7307
7307
  * @inheritDoc
7308
7308
  */
7309
7309
  asClearRaw() {
7310
- var t, i;
7310
+ var t, n;
7311
7311
  const e = super.asClearRaw();
7312
- return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, e;
7312
+ return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, e;
7313
7313
  }
7314
7314
  }
7315
- class lr extends C {
7315
+ class lr extends v {
7316
7316
  }
7317
7317
  class Bt extends Ut {
7318
7318
  /**
@@ -7321,7 +7321,7 @@ class Bt extends Ut {
7321
7321
  * @param data Данные для первоначальной инициализации.
7322
7322
  */
7323
7323
  constructor(e) {
7324
- var t, i, o, c, u, p, g, a;
7324
+ var t, n, o, c, u, p, g, a;
7325
7325
  super(e);
7326
7326
  /**
7327
7327
  * @inheritDoc
@@ -7377,14 +7377,14 @@ class Bt extends Ut {
7377
7377
  s(this, "isLargeOrder");
7378
7378
  this.client = new fe(e == null ? void 0 : e.client), this.payment = {
7379
7379
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
7380
- status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
7380
+ status: ((n = e == null ? void 0 : e.payment) == null ? void 0 : n.status) ?? -1,
7381
7381
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
7382
7382
  }, this.delivery = {
7383
7383
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
7384
7384
  date: I((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? _(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
7385
7385
  address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new qe(e.delivery.address) : void 0,
7386
7386
  warehouse: (a = e == null ? void 0 : e.delivery) != null && a.warehouse ? new He(e.delivery.warehouse) : void 0
7387
- }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new lr(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new C(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = I(e == null ? void 0 : e.attachedAt) ? _(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;
7387
+ }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new lr(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new v(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = I(e == null ? void 0 : e.attachedAt) ? _(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;
7388
7388
  }
7389
7389
  }
7390
7390
  class Ys extends bt {
@@ -7444,7 +7444,7 @@ class Ys extends bt {
7444
7444
  * Продукт, которым заменена текущая запись.
7445
7445
  */
7446
7446
  s(this, "replacement");
7447
- this.product = new Pe(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 = V(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"));
7447
+ this.product = new Re(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 = V(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"));
7448
7448
  }
7449
7449
  }
7450
7450
  class L extends Bt {
@@ -7512,14 +7512,14 @@ class L extends Bt {
7512
7512
  * @inheritDoc
7513
7513
  */
7514
7514
  s(this, "numberDoc");
7515
- this.products = (e.products ?? []).map((i) => {
7515
+ this.products = (e.products ?? []).map((n) => {
7516
7516
  var c;
7517
- const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
7518
- return new Ys(i, o);
7519
- }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? sr.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new C(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new lr(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
7517
+ const o = n.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === n.replacementId) : void 0;
7518
+ return new Ys(n, o);
7519
+ }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? sr.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new v(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((n) => new lr(n)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
7520
7520
  }
7521
7521
  }
7522
- class Vi extends M {
7522
+ class Qi extends M {
7523
7523
  /**
7524
7524
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
7525
7525
  *
@@ -7530,8 +7530,8 @@ class Vi extends M {
7530
7530
  *
7531
7531
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
7532
7532
  */
7533
- getOffers(r, e, t, i = void 0) {
7534
- return this.getTypedPaginated(Ht, "/internal/orders/offers", r, e, t, {}, void 0, i);
7533
+ getOffers(r, e, t, n) {
7534
+ return this.getTypedPaginated(Ht, "/internal/orders/offers", r, e, t, {}, void 0, n);
7535
7535
  }
7536
7536
  /**
7537
7537
  * Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
@@ -7550,7 +7550,7 @@ class Vi extends M {
7550
7550
  name: e,
7551
7551
  items: t != null && t.length ? t : void 0
7552
7552
  },
7553
- (i) => new G(i.data)
7553
+ (n) => new G(n.data)
7554
7554
  );
7555
7555
  }
7556
7556
  /**
@@ -7565,8 +7565,8 @@ class Vi extends M {
7565
7565
  *
7566
7566
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_profstroy
7567
7567
  */
7568
- createProfstroyOffer(r, e, t, i = {}) {
7569
- return this.post(`/internal/orders/offers/${r}/profstroy`, { file: e, name: t }, (o) => new G(o.data), i);
7568
+ createProfstroyOffer(r, e, t, n = {}) {
7569
+ return this.post(`/internal/orders/offers/${r}/profstroy`, { file: e, name: t }, (o) => new G(o.data), n);
7570
7570
  }
7571
7571
  /**
7572
7572
  * Запускает актуализацию заказа-черновика, созданного из файла «Профстрой»: текущий состав записи
@@ -7634,7 +7634,7 @@ class Vi extends M {
7634
7634
  *
7635
7635
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_order
7636
7636
  */
7637
- createOrderFromDraft(r, e, t, i = {}) {
7637
+ createOrderFromDraft(r, e, t, n = {}) {
7638
7638
  const o = S().config.dateFormats.api;
7639
7639
  return this.post(
7640
7640
  `/internal/orders/offers/${r}/create-order`,
@@ -7644,7 +7644,7 @@ class Vi extends M {
7644
7644
  items: t != null && t.length ? t : void 0
7645
7645
  },
7646
7646
  (c) => U.instanceListInitializer(L, c.data),
7647
- i
7647
+ n
7648
7648
  );
7649
7649
  }
7650
7650
  /**
@@ -7672,7 +7672,7 @@ class Vi extends M {
7672
7672
  is_additional_sale: e.isAdditionalSale,
7673
7673
  ...e.configuratorParams
7674
7674
  },
7675
- (i) => new G(i.data),
7675
+ (n) => new G(n.data),
7676
7676
  t
7677
7677
  );
7678
7678
  }
@@ -7687,7 +7687,7 @@ class Vi extends M {
7687
7687
  *
7688
7688
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_product_modify
7689
7689
  */
7690
- patchOfferProduct(r, e, t, i = {}) {
7690
+ patchOfferProduct(r, e, t, n = {}) {
7691
7691
  return this.patch(
7692
7692
  `/internal/orders/offers/${r}/products/${e}`,
7693
7693
  {
@@ -7703,7 +7703,7 @@ class Vi extends M {
7703
7703
  ...t.configuratorParams
7704
7704
  },
7705
7705
  (o) => new G(o.data),
7706
- i
7706
+ n
7707
7707
  );
7708
7708
  }
7709
7709
  /**
@@ -7755,7 +7755,7 @@ class Vi extends M {
7755
7755
  return this.post(`/internal/orders/offers/${r}/send`, e);
7756
7756
  }
7757
7757
  }
7758
- class Qi {
7758
+ class Ji {
7759
7759
  /**
7760
7760
  * Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
7761
7761
  *
@@ -7774,8 +7774,8 @@ class Qi {
7774
7774
  return !m(r) && r.isProfstroy === !0 && !m(r.actualization);
7775
7775
  }
7776
7776
  }
7777
- var Vs = /* @__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))(Vs || {});
7778
- class Ji {
7777
+ var Vs = /* @__PURE__ */ ((i) => (i.View = "view", i.Share = "share", i.EditTags = "edit_tags", i.SaveOrderIgnoredProducts = "save_order_ignored_products", i.ChangeStatus = "change_status", i.ChangeProducts = "change_products", i.ChangeOrderParameters = "change_order_parameters", i.Recalculate = "recalculate", i.AttachOrder = "attach_order", i.DetachOrder = "detach_order", i.ChangeAttachedOperator = "change_attached_operator", i.SendOnlinePaymentLink = "send_online_payment_link", i.ConfirmOnlineFullPayment = "confirm_online_full_payment", i.MergeOrders = "merge_orders", i.GetHistory = "get_history", i.CloneOrder = "clone_order", i.DeleteAttachedFile = "delete_attached_file", i))(Vs || {});
7778
+ class Ki {
7779
7779
  /**
7780
7780
  * Инициализирует экземпляр класса {@link OrderEditorData}.
7781
7781
  *
@@ -7838,22 +7838,22 @@ class Ji {
7838
7838
  * @inheritDoc
7839
7839
  */
7840
7840
  s(this, "isAdditionalSale");
7841
- var e, t, i;
7842
- 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;
7841
+ var e, t, n;
7842
+ 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 = (n = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : n.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;
7843
7843
  }
7844
7844
  }
7845
- class Gt extends C {
7845
+ class Gt extends v {
7846
7846
  }
7847
- class zt extends C {
7847
+ class zt extends v {
7848
7848
  }
7849
- class Ki extends de {
7849
+ class Xi extends de {
7850
7850
  /**
7851
7851
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
7852
7852
  *
7853
7853
  * @param data Данные для первоначальной инициализации.
7854
7854
  */
7855
7855
  constructor(e) {
7856
- var t, i, o, c;
7856
+ var t, n, o, c;
7857
7857
  super();
7858
7858
  /**
7859
7859
  * @inheritDoc
@@ -7947,7 +7947,7 @@ class Ki extends de {
7947
7947
  * @inheritDoc
7948
7948
  */
7949
7949
  s(this, "onlyMyRegions");
7950
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new Gt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new fe(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new D(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new D(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 ee(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 D(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new F(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new X(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new zt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new He(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7950
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new Gt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new fe(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new D(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new D(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new ee(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 D(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new F(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new X(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new zt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new He(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7951
7951
  }
7952
7952
  /**
7953
7953
  * @inheritDoc
@@ -7993,9 +7993,9 @@ class Ki extends de {
7993
7993
  * @inheritDoc
7994
7994
  */
7995
7995
  asClearRaw() {
7996
- var t, i, o, c, u, p;
7996
+ var t, n, o, c, u, p;
7997
7997
  const e = super.asClearRaw();
7998
- 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;
7998
+ return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.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;
7999
7999
  }
8000
8000
  }
8001
8001
  class Qs {
@@ -8021,10 +8021,10 @@ class Qs {
8021
8021
  * @inheritDoc
8022
8022
  */
8023
8023
  s(this, "createdAt");
8024
- this.user = new q(r == null ? void 0 : r.user), this.status = new lr(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new C(r.statusDetail) : void 0, this.createdAt = I(r == null ? void 0 : r.createdAt) ? _(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
8024
+ this.user = new q(r == null ? void 0 : r.user), this.status = new lr(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new v(r.statusDetail) : void 0, this.createdAt = I(r == null ? void 0 : r.createdAt) ? _(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
8025
8025
  }
8026
8026
  }
8027
- class Xi extends M {
8027
+ class Zi extends M {
8028
8028
  /**
8029
8029
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
8030
8030
  *
@@ -8035,8 +8035,8 @@ class Xi extends M {
8035
8035
  *
8036
8036
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
8037
8037
  */
8038
- getOrders(r, e, t, i = void 0) {
8039
- return this.getTypedPaginated(Bt, "/internal/orders", r, e, t, {}, void 0, i);
8038
+ getOrders(r, e, t, n) {
8039
+ return this.getTypedPaginated(Bt, "/internal/orders", r, e, t, {}, void 0, n);
8040
8040
  }
8041
8041
  /**
8042
8042
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -8046,10 +8046,10 @@ class Xi extends M {
8046
8046
  *
8047
8047
  * @see /doc/api/internal#/Заказы/api_internal_client_get_filtered_count
8048
8048
  */
8049
- getOrdersCount(r, e = void 0) {
8049
+ getOrdersCount(r, e) {
8050
8050
  return this.get(
8051
8051
  "/internal/orders/count",
8052
- r ? { filters: JSON.stringify((r instanceof ie ? r : new ie(r)).toPrimitive()) } : {},
8052
+ r ? { filters: JSON.stringify((r instanceof ne ? r : new ne(r)).toPrimitive()) } : {},
8053
8053
  void 0,
8054
8054
  void 0,
8055
8055
  e
@@ -8090,7 +8090,7 @@ class Xi extends M {
8090
8090
  * в случае ошибок в запросах.
8091
8091
  * @see /doc/api/internal#/operations/api_internal_client_orders_create
8092
8092
  */
8093
- createClientOrder(r, e, t, i = {}) {
8093
+ createClientOrder(r, e, t, n = {}) {
8094
8094
  const o = S().config.dateFormats.api;
8095
8095
  return this.post(
8096
8096
  `/internal/clients/${r}/orders`,
@@ -8100,7 +8100,7 @@ class Xi extends M {
8100
8100
  items: t != null && t.length ? t : void 0
8101
8101
  },
8102
8102
  (c) => U.instanceListInitializer(L, c.data),
8103
- i
8103
+ n
8104
8104
  );
8105
8105
  }
8106
8106
  /**
@@ -8166,12 +8166,12 @@ class Xi extends M {
8166
8166
  * @see /doc/api/internal#/Заказы/api_internal_orders_update
8167
8167
  */
8168
8168
  updateOrder(r, e, t = {}) {
8169
- const i = S().config.dateFormats.api;
8169
+ const n = S().config.dateFormats.api;
8170
8170
  return this.patch(
8171
8171
  `/internal/orders/${r}`,
8172
8172
  {
8173
8173
  ...e,
8174
- deliveryDate: e.deliveryDate ? $(e.deliveryDate, i) : void 0
8174
+ deliveryDate: e.deliveryDate ? $(e.deliveryDate, n) : void 0
8175
8175
  },
8176
8176
  (o) => new L(o.data),
8177
8177
  t
@@ -8203,7 +8203,7 @@ class Xi extends M {
8203
8203
  is_additional_sale: e.isAdditionalSale,
8204
8204
  ...e.configuratorParams
8205
8205
  },
8206
- (i) => new L(i.data),
8206
+ (n) => new L(n.data),
8207
8207
  t
8208
8208
  );
8209
8209
  }
@@ -8219,7 +8219,7 @@ class Xi extends M {
8219
8219
  *
8220
8220
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
8221
8221
  */
8222
- changeOrderStatus(r, e, t, i = {}) {
8222
+ changeOrderStatus(r, e, t, n = {}) {
8223
8223
  return this.patch(
8224
8224
  `/internal/orders/${r}/status`,
8225
8225
  {
@@ -8227,7 +8227,7 @@ class Xi extends M {
8227
8227
  statusDetail: t
8228
8228
  },
8229
8229
  (o) => new L(o.data),
8230
- i
8230
+ n
8231
8231
  );
8232
8232
  }
8233
8233
  /**
@@ -8329,7 +8329,7 @@ class Xi extends M {
8329
8329
  *
8330
8330
  * @see /doc/api/internal#/Заказы/api_internal_orders_product_update
8331
8331
  */
8332
- patchOrderProduct(r, e, t, i = {}) {
8332
+ patchOrderProduct(r, e, t, n = {}) {
8333
8333
  return this.patch(
8334
8334
  `/internal/orders/${r}/products/${e}`,
8335
8335
  {
@@ -8345,7 +8345,7 @@ class Xi extends M {
8345
8345
  ...t.configuratorParams
8346
8346
  },
8347
8347
  (o) => new L(o.data),
8348
- i
8348
+ n
8349
8349
  );
8350
8350
  }
8351
8351
  /**
@@ -8356,7 +8356,7 @@ class Xi extends M {
8356
8356
  *
8357
8357
  * @see /doc/api/internal#/operations/api_internal_orders_delivery_get_nearest_dates
8358
8358
  */
8359
- getDeliveryNearestDates(r, e = void 0) {
8359
+ getDeliveryNearestDates(r, e) {
8360
8360
  return this.get(`/internal/orders/delivery/${r}/nearest-dates`, {}, (t) => t.data, void 0, e);
8361
8361
  }
8362
8362
  /**
@@ -8365,7 +8365,7 @@ class Xi extends M {
8365
8365
  * @param warehouseId Идентификатор склада.
8366
8366
  * @param signal Сигнал отмены запроса.
8367
8367
  */
8368
- getSelfDeliveryNearestDates(r, e = void 0) {
8368
+ getSelfDeliveryNearestDates(r, e) {
8369
8369
  return this.get(`/internal/orders/self-delivery/${r}/nearest-dates`, {}, (t) => t.data, void 0, e);
8370
8370
  }
8371
8371
  /**
@@ -8378,7 +8378,7 @@ class Xi extends M {
8378
8378
  *
8379
8379
  * @see /doc/api/internal#/operations/api_internal_orders_delivery_get_cost
8380
8380
  */
8381
- getDeliveryCost(r, e, t, i = void 0) {
8381
+ getDeliveryCost(r, e, t, n) {
8382
8382
  const o = S().config.dateFormats.api;
8383
8383
  return this.get(
8384
8384
  `/internal/orders/delivery/${r}/cost`,
@@ -8388,11 +8388,11 @@ class Xi extends M {
8388
8388
  },
8389
8389
  (c) => c.data,
8390
8390
  void 0,
8391
- i
8391
+ n
8392
8392
  );
8393
8393
  }
8394
8394
  }
8395
- const Zi = Symbol("currentOrder");
8395
+ const en = Symbol("currentOrder");
8396
8396
  class Tr {
8397
8397
  /**
8398
8398
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
@@ -8423,24 +8423,24 @@ class Tr {
8423
8423
  this.client = new fe(r == null ? void 0 : r.client), this.product = new E(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Br.Product;
8424
8424
  }
8425
8425
  }
8426
- const br = (n) => {
8427
- var r, e, t, i, o;
8428
- return n ? Ct(
8426
+ const br = (i) => {
8427
+ var r, e, t, n, o;
8428
+ return i ? vt(
8429
8429
  {
8430
- cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
8431
- clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
8432
- managers: (t = n.managers) == null ? void 0 : t.map((c) => c.id),
8433
- partnerGroups: (i = n.partnerGroups) == null ? void 0 : i.map((c) => c.id),
8434
- salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
8435
- hideNotActive: n.hideNotActive
8430
+ cities: (r = i.cities) == null ? void 0 : r.map((c) => c.id),
8431
+ clients: (e = i.clients) == null ? void 0 : e.map((c) => c.id),
8432
+ managers: (t = i.managers) == null ? void 0 : t.map((c) => c.id),
8433
+ partnerGroups: (n = i.partnerGroups) == null ? void 0 : n.map((c) => c.id),
8434
+ salesDirections: (o = i.salesDirections) == null ? void 0 : o.map((c) => c.id),
8435
+ hideNotActive: i.hideNotActive
8436
8436
  },
8437
8437
  (c) => m(c) || (V(c) || er(c)) && Q(c)
8438
8438
  ) : {};
8439
- }, pt = (n) => {
8439
+ }, pt = (i) => {
8440
8440
  const r = {};
8441
- 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;
8441
+ return i.from && (i.from.coefficient || i.from.value) && (r.from = {}, i.from.coefficient && (r.from.priceCoefficientId = i.from.coefficient.id), i.from.value && (r.from.increasePercent = i.from.value)), i.to && (i.to.coefficient || i.to.value) && (r.to = {}, i.to.coefficient && (r.to.priceCoefficientId = i.to.coefficient.id), i.to.value && (r.to.increasePercent = i.to.value)), r;
8442
8442
  };
8443
- class en extends h {
8443
+ class rn extends h {
8444
8444
  /**
8445
8445
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
8446
8446
  *
@@ -8457,7 +8457,7 @@ class en extends h {
8457
8457
  ...pt(e),
8458
8458
  filters: br(t)
8459
8459
  },
8460
- (i) => U.instanceListInitializer(Tr, i.data)
8460
+ (n) => U.instanceListInitializer(Tr, n.data)
8461
8461
  );
8462
8462
  }
8463
8463
  /**
@@ -8476,7 +8476,7 @@ class en extends h {
8476
8476
  ...pt(e),
8477
8477
  filters: br(t)
8478
8478
  },
8479
- (i) => U.instanceListInitializer(Tr, i.data)
8479
+ (n) => U.instanceListInitializer(Tr, n.data)
8480
8480
  );
8481
8481
  }
8482
8482
  /**
@@ -8497,7 +8497,7 @@ class en extends h {
8497
8497
  ...e,
8498
8498
  filters: br(t)
8499
8499
  },
8500
- (i) => U.instanceListInitializer(Tr, i.data)
8500
+ (n) => U.instanceListInitializer(Tr, n.data)
8501
8501
  );
8502
8502
  }
8503
8503
  }
@@ -8563,10 +8563,10 @@ class Ks extends Fe {
8563
8563
  * @inheritDoc
8564
8564
  */
8565
8565
  s(this, "history");
8566
- this.history = P(e.history, (t) => new Js(t));
8566
+ this.history = R(e.history, (t) => new Js(t));
8567
8567
  }
8568
8568
  }
8569
- class rn extends h {
8569
+ class tn extends h {
8570
8570
  /**
8571
8571
  * Возвращает данные об истории изменения цен.
8572
8572
  *
@@ -8576,7 +8576,7 @@ class rn extends h {
8576
8576
  */
8577
8577
  getProductPriceHistory(r) {
8578
8578
  var o, c, u, p, g;
8579
- const e = S().config.dateFormats.api, t = Ct(
8579
+ const e = S().config.dateFormats.api, t = vt(
8580
8580
  Ne(r, {
8581
8581
  costDate: {
8582
8582
  from: rr((o = r.costDate) == null ? void 0 : o.from) ? $(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
@@ -8584,8 +8584,8 @@ class rn extends h {
8584
8584
  }
8585
8585
  }),
8586
8586
  (a) => m(a) || (V(a) || er(a)) && Q(a)
8587
- ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
8588
- return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((a) => [
8587
+ ), n = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
8588
+ return delete t.product, this.get(`/internal/price/products/${n}/history`, t).then((a) => [
8589
8589
  new Ks(Ne(a[0], { history: a }))
8590
8590
  ]);
8591
8591
  }
@@ -8608,7 +8608,7 @@ class ht {
8608
8608
  r != null && r.products && (this.products = r.products.map((e) => new Fe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Fe(e)));
8609
8609
  }
8610
8610
  }
8611
- class tn extends h {
8611
+ class sn extends h {
8612
8612
  /**
8613
8613
  * Возвращает данные о рекомендациях указанной категории продуктов.
8614
8614
  *
@@ -8654,12 +8654,12 @@ class tn extends h {
8654
8654
  });
8655
8655
  }
8656
8656
  }
8657
- 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 || {}), Zs = /* @__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))(Zs || {});
8658
- class ei extends C {
8657
+ var Xs = /* @__PURE__ */ ((i) => (i.New = "new", i.Processing = "processing", i.AwaitingSupplyProducts = "awaiting_supply_products", i.InvoiceIssued = "invoice_issued", i.ProcessingOnStock = "processing_on_stock", i.Finished = "finished", i.OrderUpdated = "order_updated", i.Canceled = "canceled", i.Error = "error", i))(Xs || {}), Zs = /* @__PURE__ */ ((i) => (i.CanceledBy1c = "canceled_by1c", i.CanceledByClient = "canceled_by_client", i.FinishedNotApproved = "finished_not_approved", i.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", i.WillWaiting = "will_waiting", i))(Zs || {});
8658
+ class ei extends v {
8659
8659
  }
8660
- class ri extends C {
8660
+ class ri extends v {
8661
8661
  }
8662
- class gt extends C {
8662
+ class gt extends v {
8663
8663
  /**
8664
8664
  * Инициализирует экземпляр класса {@link CityWithUserRegion}.
8665
8665
  *
@@ -8672,18 +8672,18 @@ class gt extends C {
8672
8672
  * @inheritDoc
8673
8673
  */
8674
8674
  s(this, "userRegions");
8675
- this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new cr(i))) ?? [];
8675
+ this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((n) => new cr(n))) ?? [];
8676
8676
  }
8677
8677
  }
8678
- class ti extends C {
8678
+ class ti extends v {
8679
8679
  }
8680
- class si extends C {
8680
+ class si extends v {
8681
8681
  }
8682
- class ii extends C {
8682
+ class ii extends v {
8683
8683
  }
8684
- class ni extends C {
8684
+ class ni extends v {
8685
8685
  }
8686
- class sn {
8686
+ class nn {
8687
8687
  /**
8688
8688
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
8689
8689
  *
@@ -8702,7 +8702,7 @@ class sn {
8702
8702
  return r.id === 0 && r.slug === "-undefined-";
8703
8703
  }
8704
8704
  }
8705
- class Wt extends C {
8705
+ class Wt extends v {
8706
8706
  }
8707
8707
  const j = class j extends Me {
8708
8708
  /**
@@ -8754,13 +8754,13 @@ const j = class j extends Me {
8754
8754
  * групп партнеров (направлений деятельности).
8755
8755
  */
8756
8756
  getPartnerGroup() {
8757
- return this.getTypedDataArrayRequester(le, "/internal/references/partner-group", !0);
8757
+ return this.getTypedDataArrayRequester(ue, "/internal/references/partner-group", !0);
8758
8758
  }
8759
8759
  /**
8760
8760
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
8761
8761
  */
8762
8762
  getOpf() {
8763
- return this.getTypedDataArrayRequester(ce, "/public/references/opf", !0);
8763
+ return this.getTypedDataArrayRequester(le, "/public/references/opf", !0);
8764
8764
  }
8765
8765
  /**
8766
8766
  * Возвращает {@link Promise} для получения справочника операторов.
@@ -8824,7 +8824,7 @@ const j = class j extends Me {
8824
8824
  * @param term Терм поиска.
8825
8825
  */
8826
8826
  searchRegion(r) {
8827
- return this.getTypedDataArrayRequester(ne, `/internal/references/region-with-country/search?term=${r}`);
8827
+ return this.getTypedDataArrayRequester(oe, `/internal/references/region-with-country/search?term=${r}`);
8828
8828
  }
8829
8829
  /**
8830
8830
  * Возвращает {@link Promise} для получения справочника регионов указанной страны.
@@ -8834,7 +8834,7 @@ const j = class j extends Me {
8834
8834
  * @param countryId Идентификатор страны.
8835
8835
  */
8836
8836
  getRegionsByCountry(r) {
8837
- return this.getTypedDataArrayRequester(ne, "/internal/references/region", !1, { params: { countryId: r } }).then(
8837
+ return this.getTypedDataArrayRequester(oe, "/internal/references/region", !1, { params: { countryId: r } }).then(
8838
8838
  (e) => j.withoutUnknownLocation(e)
8839
8839
  );
8840
8840
  }
@@ -8869,14 +8869,14 @@ const j = class j extends Me {
8869
8869
  * @param countryId Идентификатор страны, городами которой необходимо ограничить поиск.
8870
8870
  * @param signal Сигнал отмены запроса.
8871
8871
  */
8872
- searchCityWithRegion(r, e, t = void 0) {
8872
+ searchCityWithRegion(r, e, t) {
8873
8873
  return this.getTypedDataArrayRequester(
8874
8874
  ee,
8875
8875
  "/internal/references/city-with-region/search",
8876
8876
  !1,
8877
8877
  { term: r, ...e ? { params: { countryId: e } } : {} },
8878
8878
  t
8879
- ).then((i) => j.withoutUnknownLocation(i));
8879
+ ).then((n) => j.withoutUnknownLocation(n));
8880
8880
  }
8881
8881
  /**
8882
8882
  * Выполняет поиск данных о городах по терму в названии с данными
@@ -8885,7 +8885,7 @@ const j = class j extends Me {
8885
8885
  * @param term Терм поиска.
8886
8886
  * @param signal Сигнал отмены запроса.
8887
8887
  */
8888
- searchCityWithUserRegion(r, e = void 0) {
8888
+ searchCityWithUserRegion(r, e) {
8889
8889
  return this.getTypedDataArrayRequester(gt, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8890
8890
  (t) => j.withoutUnknownLocation(t)
8891
8891
  );
@@ -8935,13 +8935,13 @@ const j = class j extends Me {
8935
8935
  */
8936
8936
  s(j, "unknownLocationId", 1);
8937
8937
  let d = j;
8938
- const A = ue("common.references_private", () => {
8939
- 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), T = v(void 0), Ae = v(void 0), Se = v(void 0), me = v(void 0), ye = v(void 0), ur = v(void 0), pr = v(void 0), hr = v(void 0), l = v(void 0);
8938
+ const A = pe("common.references_private", () => {
8939
+ const i = C({}), r = C(void 0), e = C(void 0), t = C(void 0), n = C(void 0), o = C(void 0), c = C(void 0), u = C(void 0), p = C(void 0), g = C(void 0), a = C(void 0), T = C(void 0), Ae = C(void 0), Se = C(void 0), me = C(void 0), ye = C(void 0), ur = C(void 0), pr = C(void 0), hr = C(void 0), l = C(void 0);
8940
8940
  return {
8941
8941
  /**
8942
8942
  * Список загружаемых/загруженных на данный момент значений.
8943
8943
  */
8944
- dataLoaderList: n,
8944
+ dataLoaderList: i,
8945
8945
  /**
8946
8946
  * Справочник каналов первичного интереса.
8947
8947
  */
@@ -8957,7 +8957,7 @@ const A = ue("common.references_private", () => {
8957
8957
  /**
8958
8958
  * Справочник типов доставки.
8959
8959
  */
8960
- deliveryTypeReference: i,
8960
+ deliveryTypeReference: n,
8961
8961
  /**
8962
8962
  * Список менеджеров.
8963
8963
  */
@@ -9019,108 +9019,108 @@ const A = ue("common.references_private", () => {
9019
9019
  */
9020
9020
  priceCoefficientsReference: l
9021
9021
  };
9022
- }), nn = ue("common.references", () => {
9023
- const n = b(() => {
9022
+ }), on = pe("common.references", () => {
9023
+ const i = b(() => {
9024
9024
  const l = A();
9025
9025
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
9026
9026
  l.channelPrimaryInterestReference = f;
9027
- }).catch(R)), l.channelPrimaryInterestReference;
9027
+ }).catch(P)), l.channelPrimaryInterestReference;
9028
9028
  }), r = b(() => {
9029
9029
  const l = A();
9030
9030
  return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(d).getContactPositions().then((f) => {
9031
9031
  l.contactPositionsReference = f;
9032
- }).catch(R)), l.contactPositionsReference;
9032
+ }).catch(P)), l.contactPositionsReference;
9033
9033
  }), e = b(() => {
9034
9034
  const l = A();
9035
9035
  return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(d).getCurrency().then((f) => {
9036
9036
  l.currencyReference = f;
9037
- }).catch(R)), l.currencyReference;
9037
+ }).catch(P)), l.currencyReference;
9038
9038
  }), t = b(() => {
9039
9039
  const l = A();
9040
9040
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(d).getOpf().then((f) => {
9041
9041
  l.opfReference = f;
9042
- }).catch(R)), l.opfReference;
9043
- }), i = b(() => {
9042
+ }).catch(P)), l.opfReference;
9043
+ }), n = b(() => {
9044
9044
  const l = A();
9045
9045
  return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(d).getOperators().then((f) => {
9046
9046
  l.operatorReference = f;
9047
- }).catch(R)), l.operatorReference;
9047
+ }).catch(P)), l.operatorReference;
9048
9048
  }), o = b(() => {
9049
9049
  const l = A();
9050
9050
  return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(d).getOrderPaymentStatuses().then((f) => {
9051
9051
  l.orderPaymentStatusReference = f;
9052
- }).catch(R)), l.orderPaymentStatusReference;
9052
+ }).catch(P)), l.orderPaymentStatusReference;
9053
9053
  }), c = b(() => {
9054
9054
  const l = A();
9055
9055
  return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(d).getOrderStatuses().then((f) => {
9056
9056
  l.orderStatusReference = f;
9057
- }).catch(R)), l.orderStatusReference;
9057
+ }).catch(P)), l.orderStatusReference;
9058
9058
  }), u = b(() => {
9059
9059
  const l = A();
9060
9060
  return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(d).getOrderStatusDetails().then((f) => {
9061
9061
  l.orderStatusDetailReference = f;
9062
- }).catch(R)), l.orderStatusDetailReference;
9062
+ }).catch(P)), l.orderStatusDetailReference;
9063
9063
  }), p = b(() => {
9064
9064
  const l = A();
9065
9065
  return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(d).getPaymentTypes().then((f) => {
9066
9066
  l.paymentTypeReference = f;
9067
- }).catch(R)), l.paymentTypeReference;
9067
+ }).catch(P)), l.paymentTypeReference;
9068
9068
  }), g = b(() => {
9069
9069
  const l = A();
9070
9070
  return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(d).getPartnerGroup().then((f) => {
9071
9071
  l.partnerGroupReference = f;
9072
- }).catch(R)), l.partnerGroupReference;
9072
+ }).catch(P)), l.partnerGroupReference;
9073
9073
  }), a = b(() => {
9074
9074
  const l = A();
9075
9075
  return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(d).getProductFileType().then((f) => {
9076
9076
  l.productFileTypeReference = f;
9077
- }).catch(R)), l.productFileTypeReference;
9077
+ }).catch(P)), l.productFileTypeReference;
9078
9078
  }), T = b(() => {
9079
9079
  const l = A();
9080
9080
  return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(d).getResourceTypes().then((f) => {
9081
9081
  l.resourceTypesReference = f;
9082
- }).catch(R)), l.resourceTypesReference;
9082
+ }).catch(P)), l.resourceTypesReference;
9083
9083
  }), Ae = b(() => {
9084
9084
  const l = A();
9085
9085
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(d).getSalesDirections().then((f) => {
9086
9086
  l.salesDirectionsReference = f;
9087
- }).catch(R)), l.salesDirectionsReference;
9087
+ }).catch(P)), l.salesDirectionsReference;
9088
9088
  }), Se = b(() => {
9089
9089
  const l = A();
9090
9090
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(d).getSourcePrimaryInterest().then((f) => {
9091
9091
  l.sourcePrimaryInterestReference = f;
9092
- }).catch(R)), l.sourcePrimaryInterestReference;
9092
+ }).catch(P)), l.sourcePrimaryInterestReference;
9093
9093
  }), me = b(() => {
9094
9094
  const l = A();
9095
9095
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(d).getDeliveryTypes().then((f) => {
9096
9096
  l.deliveryTypeReference = f;
9097
- }).catch(R)), l.deliveryTypeReference;
9097
+ }).catch(P)), l.deliveryTypeReference;
9098
9098
  }), ye = b(() => {
9099
9099
  const l = A();
9100
9100
  return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Mt).getManagers().then((f) => {
9101
9101
  l.managersList = f;
9102
- }).catch(R)), l.managersList;
9102
+ }).catch(P)), l.managersList;
9103
9103
  }), ur = b(() => {
9104
9104
  const l = A();
9105
9105
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
9106
9106
  l.warehousesReference = f;
9107
- }).catch(R)), l.warehousesReference;
9107
+ }).catch(P)), l.warehousesReference;
9108
9108
  }), pr = b(() => {
9109
9109
  const l = A();
9110
9110
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
9111
9111
  l.propertyTypesReference = f;
9112
- }).catch(R)), l.propertyTypesReference;
9112
+ }).catch(P)), l.propertyTypesReference;
9113
9113
  }), hr = b(() => {
9114
9114
  const l = A();
9115
9115
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
9116
9116
  l.priceCoefficientsReference = f;
9117
- }).catch(R)), l.priceCoefficientsReference;
9117
+ }).catch(P)), l.priceCoefficientsReference;
9118
9118
  });
9119
9119
  return {
9120
9120
  /**
9121
9121
  * Справочник каналов первичного интереса.
9122
9122
  */
9123
- channelPrimaryInterestsReference: n,
9123
+ channelPrimaryInterestsReference: i,
9124
9124
  /**
9125
9125
  * Справочник должностей контактных лиц.
9126
9126
  */
@@ -9136,7 +9136,7 @@ const A = ue("common.references_private", () => {
9136
9136
  /**
9137
9137
  * Справочник операторов.
9138
9138
  */
9139
- operatorReference: i,
9139
+ operatorReference: n,
9140
9140
  /**
9141
9141
  * Справочник статусов оплаты заказа.
9142
9142
  */
@@ -9256,7 +9256,7 @@ class ft {
9256
9256
  this.resourceType = new Wt(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 oi(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
9257
9257
  }
9258
9258
  }
9259
- class on extends h {
9259
+ class cn extends h {
9260
9260
  /**
9261
9261
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
9262
9262
  *
@@ -9287,7 +9287,53 @@ class on extends h {
9287
9287
  return this.delete(`/internal/seo/${r.slug}/${e}`);
9288
9288
  }
9289
9289
  }
9290
- var Ze = /* @__PURE__ */ ((n) => (n[n.Undetermined = 0] = "Undetermined", n[n.Complete = 1] = "Complete", n[n.Incomplete = 2] = "Incomplete", n))(Ze || {});
9290
+ class ci extends re {
9291
+ /**
9292
+ * Инициализирует экземпляр класса {@link SearchProductStatistic}.
9293
+ *
9294
+ * @param data Данные для первоначальной инициализации.
9295
+ */
9296
+ constructor(e) {
9297
+ super(e);
9298
+ /**
9299
+ * @inheritDoc
9300
+ */
9301
+ s(this, "text");
9302
+ /**
9303
+ * @inheritDoc
9304
+ */
9305
+ s(this, "searchCount");
9306
+ /**
9307
+ * @inheritDoc
9308
+ */
9309
+ s(this, "lastSearchedAt");
9310
+ this.text = (e == null ? void 0 : e.text) ?? "", this.searchCount = (e == null ? void 0 : e.searchCount) ?? 0, this.lastSearchedAt = k.parse(e == null ? void 0 : e.lastSearchedAt);
9311
+ }
9312
+ }
9313
+ class ln extends h {
9314
+ /**
9315
+ * Возвращает список поисковых запросов товаров, последний поиск по которым был в указанном периоде.
9316
+ *
9317
+ * @param period Период даты последнего поиска.
9318
+ * @param signal Сигнал отмены запроса.
9319
+ *
9320
+ * @see /doc/api/internal#/operations/api_internal_statistics_search_products_get_list
9321
+ */
9322
+ getSearchProductsStatistics(r, e) {
9323
+ return this.getTypedList(ci, "/internal/statistics/search/products", { date: k.periodToApiFormat(r) }, !1, e);
9324
+ }
9325
+ /**
9326
+ * Удаляет поисковый запрос товаров из статистики.
9327
+ *
9328
+ * @param id Идентификатор поискового запроса.
9329
+ *
9330
+ * @see /doc/api/internal#/operations/api_internal_statistics_search_products_delete
9331
+ */
9332
+ removeSearchProductStatistic(r) {
9333
+ return this.delete(`/internal/statistics/search/products/${r}`);
9334
+ }
9335
+ }
9336
+ var Ze = /* @__PURE__ */ ((i) => (i[i.Undetermined = 0] = "Undetermined", i[i.Complete = 1] = "Complete", i[i.Incomplete = 2] = "Incomplete", i))(Ze || {});
9291
9337
  class dr {
9292
9338
  /**
9293
9339
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
@@ -9311,7 +9357,7 @@ class dr {
9311
9357
  this.showFeedback = !!r, this.feedback = r, this.validationStatus = e;
9312
9358
  }
9313
9359
  }
9314
- class cn {
9360
+ class un {
9315
9361
  /**
9316
9362
  * Возвращает признак, что адрес с указанной полнотой нельзя сохранять.
9317
9363
  *
@@ -9341,7 +9387,7 @@ class cn {
9341
9387
  }
9342
9388
  }
9343
9389
  }
9344
- class ln extends h {
9390
+ class pn extends h {
9345
9391
  /**
9346
9392
  * Возвращает подсказки по адресам.
9347
9393
  *
@@ -9380,16 +9426,16 @@ class ln extends h {
9380
9426
  */
9381
9427
  execSuggestionQuery(r, e) {
9382
9428
  return this.get(r, { query: e }).then((t) => {
9383
- const i = [...t];
9429
+ const n = [...t];
9384
9430
  let o = 1;
9385
- return i.forEach((c) => {
9431
+ return n.forEach((c) => {
9386
9432
  c.id = o++;
9387
- }), i;
9433
+ }), n;
9388
9434
  });
9389
9435
  }
9390
9436
  }
9391
- var jt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(jt || {});
9392
- class ci extends Ot {
9437
+ var jt = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.ExternalSeo = "external_seo", i.Guest = "guest", i))(jt || {});
9438
+ class li extends Ot {
9393
9439
  /**
9394
9440
  * Инициализирует экземпляр класса {@link User}.
9395
9441
  *
@@ -9416,7 +9462,7 @@ class ci extends Ot {
9416
9462
  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 St(e.pricingRole) : void 0;
9417
9463
  }
9418
9464
  }
9419
- class un extends h {
9465
+ class hn extends h {
9420
9466
  /**
9421
9467
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
9422
9468
  */
@@ -9432,22 +9478,22 @@ class un extends h {
9432
9478
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
9433
9479
  }
9434
9480
  }
9435
- class li extends h {
9481
+ class ui extends h {
9436
9482
  /**
9437
9483
  * Возвращает данные о текущем пользователе.
9438
9484
  */
9439
9485
  // eslint-disable-next-line class-methods-use-this
9440
9486
  getCurrentUser() {
9441
- return this.get("/internal/users/info", {}, (r) => new ci(r.data), !0);
9487
+ return this.get("/internal/users/info", {}, (r) => new li(r.data), !0);
9442
9488
  }
9443
9489
  }
9444
- const qr = ue("common.user_state_private", () => {
9445
- const n = v({}), r = v(void 0), e = v(void 0);
9490
+ const qr = pe("common.user_state_private", () => {
9491
+ const i = C({}), r = C(void 0), e = C(void 0);
9446
9492
  return {
9447
9493
  /**
9448
9494
  * Список загружаемых/загруженных на данный момент значений.
9449
9495
  */
9450
- dataLoaderList: n,
9496
+ dataLoaderList: i,
9451
9497
  /**
9452
9498
  * Данные о текущем пользователе.
9453
9499
  */
@@ -9458,28 +9504,28 @@ const qr = ue("common.user_state_private", () => {
9458
9504
  currentManager: e
9459
9505
  };
9460
9506
  });
9461
- function mt(n) {
9507
+ function mt(i) {
9462
9508
  const r = qr();
9463
- (n == null ? void 0 : n.type) !== jt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Mt).getManager(n.id).then((e) => {
9509
+ (i == null ? void 0 : i.type) !== jt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Mt).getManager(i.id).then((e) => {
9464
9510
  r.currentManager = e;
9465
- }).catch(R).finally(() => {
9511
+ }).catch(P).finally(() => {
9466
9512
  r.dataLoaderList.currentManager = !1;
9467
9513
  }));
9468
9514
  }
9469
- const pn = ue("common.user_state", () => {
9470
- const n = b(() => {
9515
+ const gn = pe("common.user_state", () => {
9516
+ const i = b(() => {
9471
9517
  const e = qr();
9472
- return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(li).getCurrentUser().then((t) => {
9518
+ return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(ui).getCurrentUser().then((t) => {
9473
9519
  e.currentUser = t, mt(t);
9474
- }).catch(R).finally(() => {
9520
+ }).catch(P).finally(() => {
9475
9521
  e.dataLoaderList.currentUser = !1;
9476
9522
  })), e.currentUser;
9477
- }), r = b(() => (mt(n.value), qr().currentManager));
9523
+ }), r = b(() => (mt(i.value), qr().currentManager));
9478
9524
  return {
9479
9525
  /**
9480
9526
  * Данные о текущем пользователе.
9481
9527
  */
9482
- currentUser: n,
9528
+ currentUser: i,
9483
9529
  /**
9484
9530
  * Данные о текущем менеджере (если текущий пользователь является менеджером).
9485
9531
  */
@@ -9511,7 +9557,7 @@ class Ar extends cr {
9511
9557
  * @param data Данные для первоначальной инициализации.
9512
9558
  */
9513
9559
  constructor(e) {
9514
- var t, i;
9560
+ var t, n;
9515
9561
  super(e);
9516
9562
  /**
9517
9563
  * @inheritDoc
@@ -9521,10 +9567,10 @@ class Ar extends cr {
9521
9567
  * @inheritDoc
9522
9568
  */
9523
9569
  s(this, "users");
9524
- this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new ee(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Nr(o))) ?? [];
9570
+ this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new ee(o))) ?? [], this.users = ((n = e == null ? void 0 : e.users) == null ? void 0 : n.map((o) => new Nr(o))) ?? [];
9525
9571
  }
9526
9572
  }
9527
- class hn extends de {
9573
+ class fn extends de {
9528
9574
  /**
9529
9575
  * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
9530
9576
  *
@@ -9560,7 +9606,7 @@ class hn extends de {
9560
9606
  return this;
9561
9607
  }
9562
9608
  }
9563
- class gn extends M {
9609
+ class mn extends M {
9564
9610
  /**
9565
9611
  * Возвращает список регионов пользователей.
9566
9612
  *
@@ -9608,7 +9654,7 @@ class gn extends M {
9608
9654
  * @see /doc/api/internal#/operations/api_internal_user_region_change
9609
9655
  */
9610
9656
  updateRegion(r, e, t = {}) {
9611
- return this.patch(`/internal/users/regions/${r}`, e, (i) => new Ar(i.data), t);
9657
+ return this.patch(`/internal/users/regions/${r}`, e, (n) => new Ar(n.data), t);
9612
9658
  }
9613
9659
  /**
9614
9660
  * Удаляет регион пользователей.
@@ -9640,7 +9686,7 @@ class gn extends M {
9640
9686
  * @see /doc/api/internal#/operations/api_internal_user_region_user_add
9641
9687
  */
9642
9688
  attachRegionEmployee(r, e, t) {
9643
- return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Nr(i.data));
9689
+ return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (n) => new Nr(n.data));
9644
9690
  }
9645
9691
  /**
9646
9692
  * Открепляет сотрудника от региона по указанному направлению продаж.
@@ -9661,7 +9707,7 @@ class gn extends M {
9661
9707
  }
9662
9708
  export {
9663
9709
  Ze as AddressQualityEnum,
9664
- cn as AddressQualityHelper,
9710
+ un as AddressQualityHelper,
9665
9711
  ei as AnyReference,
9666
9712
  Ts as AppBaseConfig,
9667
9713
  Lr as BankAccount,
@@ -9671,12 +9717,12 @@ export {
9671
9717
  Qe as BlogPostMediaTypeEnum,
9672
9718
  Je as BlogPostPublicationStatusEnum,
9673
9719
  Ue as BlogPostShortInfo,
9674
- wi as BlogPostsListFilters,
9720
+ Ci as BlogPostsListFilters,
9675
9721
  kr as BlogProvider,
9676
9722
  Ss as CalculationTypeEnum,
9677
9723
  y as CalendarHelper,
9678
9724
  Le as Cart,
9679
- Ci as CartProvider,
9725
+ Di as CartProvider,
9680
9726
  Ri as CatalogProvider,
9681
9727
  Tt as CatalogableItem,
9682
9728
  Y as Category,
@@ -9695,23 +9741,23 @@ export {
9695
9741
  xt as ClientPriceCatalogableItem,
9696
9742
  st as ClientPriceCategory,
9697
9743
  Dr as ClientPriceProduct,
9698
- Pi as ClientPriceProvider,
9699
- Ti as ClientPriceTemplateProvider,
9700
- Pe as ClientProduct,
9701
- Ai as ClientProductCategoryDataProvider,
9702
- Si as ClientProductDataProvider,
9744
+ Ti as ClientPriceProvider,
9745
+ bi as ClientPriceTemplateProvider,
9746
+ Re as ClientProduct,
9747
+ Si as ClientProductCategoryDataProvider,
9748
+ $i as ClientProductDataProvider,
9703
9749
  fe as ClientShortInfo,
9704
9750
  _s as ClientsAdditionalDataRequestTypeEnum,
9705
- xi as ClientsListFilters,
9751
+ Ii as ClientsListFilters,
9706
9752
  Fe as CodedIdentity,
9707
- qi as ConfiguratorProvider,
9753
+ Ni as ConfiguratorProvider,
9708
9754
  Fs as ConfiguratorsEnum,
9709
9755
  xr as Contact,
9710
9756
  At as ContactLinks,
9711
- oe as ContactPerson,
9757
+ ce as ContactPerson,
9712
9758
  Us as ContactPersonRelated,
9713
9759
  ti as ContactPosition,
9714
- Rr as ContactRelation,
9760
+ Pr as ContactRelation,
9715
9761
  It as ContragentBase,
9716
9762
  sr as ContragentFactory,
9717
9763
  _t as ContragentIc,
@@ -9724,16 +9770,16 @@ export {
9724
9770
  Wr as CuratedDirection,
9725
9771
  jr as Curator,
9726
9772
  J as Currency,
9727
- ln as DataSuggestionProvider,
9728
- O as DateHelper,
9729
- Mi as DateTimeProvider,
9773
+ pn as DataSuggestionProvider,
9774
+ k as DateHelper,
9775
+ Hi as DateTimeProvider,
9730
9776
  Os as DeletableIdentity,
9731
9777
  or as DeletableNamedIdentity,
9732
9778
  qe as DeliveryAddress,
9733
9779
  X as DeliveryType,
9734
9780
  Dt as DetailedJwtPayload,
9735
- Cs as DeviceTypeResolutionConfig,
9736
- Pr as Discount,
9781
+ vs as DeviceTypeResolutionConfig,
9782
+ Rr as Discount,
9737
9783
  Ir as DiscountClient,
9738
9784
  ut as DiscountClientEligibility,
9739
9785
  Bs as DiscountConditions,
@@ -9742,43 +9788,43 @@ export {
9742
9788
  Mr as DiscountShortInfo,
9743
9789
  Ke as DiscountStateEnum,
9744
9790
  zs as DiscountStateHelper,
9745
- Gi as DiscountsListFilters,
9791
+ zi as DiscountsListFilters,
9746
9792
  We as Faq,
9747
9793
  Xe as FaqGroup,
9748
- zi as FaqProvider,
9794
+ Wi as FaqProvider,
9749
9795
  dr as FieldValidationResultData,
9750
- ie as FilterGroup,
9796
+ ne as FilterGroup,
9751
9797
  rt as FilterItem,
9752
9798
  Fr as FilterOpEnum,
9753
9799
  Ls as FilterSettings,
9754
- Pt as GeoCoordinates,
9800
+ Rt as GeoCoordinates,
9755
9801
  ds as HiddenCatalogableItem,
9756
9802
  Me as HttpCachedRequester,
9757
9803
  Ds as HttpParamsConfig,
9758
9804
  h as HttpRequester,
9759
- pe as Identity,
9805
+ re as Identity,
9760
9806
  As as Image,
9761
9807
  z as InterceptorsEnum,
9762
9808
  be as JwtPayload,
9763
9809
  Z as Manager,
9764
9810
  zr as ManagerCommon,
9765
- ji as ManagerDataFactory,
9811
+ Yi as ManagerDataFactory,
9766
9812
  Mt as ManagerDataProvider,
9767
9813
  oi as MetaTagItem,
9768
9814
  N as NamedIdentity,
9769
9815
  G as Offer,
9770
9816
  Ws as OfferActualization,
9771
9817
  _e as OfferActualizationStatus,
9772
- Qi as OfferHelper,
9818
+ Ji as OfferHelper,
9773
9819
  Ht as OfferShortInfo,
9774
- Vi as OffersDataProvider,
9775
- Yi as OffersListFilters,
9820
+ Qi as OffersDataProvider,
9821
+ Vi as OffersListFilters,
9776
9822
  Gt as Operator,
9777
- ce as Opf,
9823
+ le as Opf,
9778
9824
  K as OpfEnum,
9779
9825
  L as Order,
9780
9826
  Vs as OrderAction,
9781
- Ji as OrderEditorData,
9827
+ Ki as OrderEditorData,
9782
9828
  Bt as OrderInfo,
9783
9829
  Ys as OrderItem,
9784
9830
  bt as OrderItemBase,
@@ -9789,90 +9835,92 @@ export {
9789
9835
  Zs as OrderStatusDetailEnum,
9790
9836
  Xs as OrderStatusEnum,
9791
9837
  Qs as OrderStatusHistoryInfo,
9792
- Xi as OrdersDataProvider,
9793
- Ki as OrdersListFilters,
9838
+ Zi as OrdersDataProvider,
9839
+ Xi as OrdersListFilters,
9794
9840
  de as PaginationFiltersBase,
9795
- le as PartnerGroup,
9841
+ ue as PartnerGroup,
9796
9842
  zt as PaymentType,
9797
9843
  Ve as PreferencesStorageProvider,
9798
9844
  Tr as PriceAnalyze,
9799
- en as PriceAnalyzeProvider,
9845
+ rn as PriceAnalyzeProvider,
9800
9846
  $t as PriceCatalogableItem,
9801
9847
  he as PriceCoefficient,
9802
- Rt as PriceCoefficientEnum,
9803
- rn as PriceHistoryDataProvider,
9848
+ Pt as PriceCoefficientEnum,
9849
+ tn as PriceHistoryDataProvider,
9804
9850
  Js as PriceHistoryItem,
9805
- Ce as PriceTemplate,
9806
- vr as PriceTemplateCategory,
9851
+ ve as PriceTemplate,
9852
+ Cr as PriceTemplateCategory,
9807
9853
  xe as PriceTemplateClient,
9808
9854
  kt as PriceTemplateICatalogableItem,
9809
- Cr as PriceTemplateProduct,
9810
- $i as PriceTemplateProvider,
9855
+ vr as PriceTemplateProduct,
9856
+ ki as PriceTemplateProvider,
9811
9857
  Ie as PricingRole,
9812
- ki as PricingRoleProvider,
9858
+ Oi as PricingRoleProvider,
9813
9859
  Or as PrimaryCatalogableItem,
9814
9860
  E as Product,
9815
- bi as ProductCategoryDataProvider,
9816
- di as ProductDataProvider,
9861
+ di as ProductCategoryDataProvider,
9862
+ Ai as ProductDataProvider,
9817
9863
  ni as ProductFileType,
9818
9864
  dt as ProductFilterTypeEnum,
9819
9865
  Hr as ProductPriceCoefficient,
9820
9866
  Ks as ProductPriceHistory,
9821
9867
  tt as ProductUnit,
9822
9868
  js as ProfstroyOfferItem,
9823
- Oi as PropertiesProvider,
9869
+ Li as PropertiesProvider,
9824
9870
  De as Property,
9825
9871
  Lt as PropertyType,
9826
9872
  $s as PropertyTypeEnum,
9827
- ve as PropertyValue,
9828
- tn as RecommendationsDataProvider,
9873
+ Ce as PropertyValue,
9874
+ sn as RecommendationsDataProvider,
9829
9875
  ht as RecommendationsList,
9830
- C as Reference,
9831
- sn as ReferenceDataFactory,
9876
+ v as Reference,
9877
+ nn as ReferenceDataFactory,
9832
9878
  d as ReferenceDataProvider,
9833
- ne as Region,
9879
+ oe as Region,
9834
9880
  Wt as ResourceType,
9835
- Hi as STANDARD_PERIOD_GROUPS,
9836
- Bi as STANDARD_PERIOD_SECTIONS,
9881
+ Bi as STANDARD_PERIOD_GROUPS,
9882
+ Gi as STANDARD_PERIOD_SECTIONS,
9837
9883
  F as SalesDirection,
9838
- Rs as SentryConfig,
9884
+ ci as SearchProductStatistic,
9885
+ Ps as SentryConfig,
9839
9886
  ft as Seo,
9840
- on as SeoDataProvider,
9887
+ cn as SeoDataProvider,
9841
9888
  Et as SourcePrimaryInterest,
9889
+ ln as StatisticsProvider,
9842
9890
  bs as StockCount,
9843
- Ni as TableDataPagination,
9891
+ Ei as TableDataPagination,
9844
9892
  Ms as TableDataPaginationRequestParams,
9845
- Ei as TableDataSortRequestParams,
9846
- Li as TemplateProductCategoryDataProvider,
9847
- Di as TemplatesListFilters,
9893
+ Ui as TableDataSortRequestParams,
9894
+ xi as TemplateProductCategoryDataProvider,
9895
+ Pi as TemplatesListFilters,
9848
9896
  U as TypedInstanceFactory,
9849
9897
  Ft as UnitsHelper,
9850
- Ii as UnknownClientDataProvider,
9898
+ _i as UnknownClientDataProvider,
9851
9899
  nr as UpdatableNamedIdentity,
9852
- ci as User,
9853
- un as UserAuthDataProvider,
9900
+ li as User,
9901
+ hn as UserAuthDataProvider,
9854
9902
  Ot as UserCommonInfo,
9855
- li as UserDataProvider,
9903
+ ui as UserDataProvider,
9856
9904
  St as UserPricingRole,
9857
9905
  Ar as UserRegion,
9858
9906
  Nr as UserRegionEmployee,
9859
- gn as UserRegionProvider,
9907
+ mn as UserRegionProvider,
9860
9908
  cr as UserRegionShortInfo,
9861
- hn as UserRegionsListFilters,
9909
+ fn as UserRegionsListFilters,
9862
9910
  q as UserShortInfo,
9863
9911
  jt as UserTypeEnum,
9864
- _i as VersionConfig,
9912
+ qi as VersionConfig,
9865
9913
  He as Warehouse,
9866
- Ps as WebSocketConfig,
9867
- Zi as currentOrderInjectionKey,
9868
- Ui as daysAgoIso,
9914
+ Rs as WebSocketConfig,
9915
+ en as currentOrderInjectionKey,
9916
+ Fi as daysAgoIso,
9869
9917
  ot as findCatalogItemByIdRecursive,
9870
9918
  ct as flattenCatalogItems,
9871
- Wi as formatPercentChange,
9872
- Fi as formatRelativeDate,
9919
+ ji as formatPercentChange,
9920
+ Mi as formatRelativeDate,
9873
9921
  Hs as pluralize,
9874
9922
  ze as useAuthStateStore,
9875
9923
  S as useBaseConfigStateStore,
9876
- nn as useReferencesStore,
9877
- pn as useUserStateStore
9924
+ on as useReferencesStore,
9925
+ gn as useUserStateStore
9878
9926
  };