@snabcentr/common-lib 1.89.2 → 2.1.0-dev

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 (40) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/sc-common-lib.js +715 -599
  3. package/dist/sc-common-lib.js.map +1 -1
  4. package/dist/sc-common-lib.umd.cjs +1 -1
  5. package/dist/sc-common-lib.umd.cjs.map +1 -1
  6. package/dist/src/cart/interfaces/i-order-item-base.d.ts +18 -2
  7. package/dist/src/cart/interfaces/i-order-item-base.d.ts.map +1 -1
  8. package/dist/src/orders/classes/index.d.ts +1 -0
  9. package/dist/src/orders/classes/index.d.ts.map +1 -1
  10. package/dist/src/orders/classes/order-info.d.ts +6 -4
  11. package/dist/src/orders/classes/order-info.d.ts.map +1 -1
  12. package/dist/src/orders/classes/order-item-base.d.ts +17 -1
  13. package/dist/src/orders/classes/order-item-base.d.ts.map +1 -1
  14. package/dist/src/orders/classes/order-short-info.d.ts +0 -4
  15. package/dist/src/orders/classes/order-short-info.d.ts.map +1 -1
  16. package/dist/src/orders/classes/order-status-history-info.d.ts +32 -0
  17. package/dist/src/orders/classes/order-status-history-info.d.ts.map +1 -0
  18. package/dist/src/orders/classes/order.d.ts +13 -0
  19. package/dist/src/orders/classes/order.d.ts.map +1 -1
  20. package/dist/src/orders/classes/orders-list-filters.d.ts +13 -8
  21. package/dist/src/orders/classes/orders-list-filters.d.ts.map +1 -1
  22. package/dist/src/orders/interfaces/i-order-info.d.ts +9 -7
  23. package/dist/src/orders/interfaces/i-order-info.d.ts.map +1 -1
  24. package/dist/src/orders/interfaces/i-order-item-base.d.ts +18 -2
  25. package/dist/src/orders/interfaces/i-order-item-base.d.ts.map +1 -1
  26. package/dist/src/orders/interfaces/i-order-short-info.d.ts +0 -4
  27. package/dist/src/orders/interfaces/i-order-short-info.d.ts.map +1 -1
  28. package/dist/src/orders/interfaces/i-order-status-history-info.d.ts +25 -0
  29. package/dist/src/orders/interfaces/i-order-status-history-info.d.ts.map +1 -0
  30. package/dist/src/orders/interfaces/i-order.d.ts +13 -0
  31. package/dist/src/orders/interfaces/i-order.d.ts.map +1 -1
  32. package/dist/src/orders/interfaces/i-orders-list-filters.d.ts +15 -9
  33. package/dist/src/orders/interfaces/i-orders-list-filters.d.ts.map +1 -1
  34. package/dist/src/orders/interfaces/index.d.ts +1 -0
  35. package/dist/src/orders/interfaces/index.d.ts.map +1 -1
  36. package/dist/src/orders/providers/orders-data-provider.d.ts +45 -0
  37. package/dist/src/orders/providers/orders-data-provider.d.ts.map +1 -1
  38. package/dist/visual_stats.html +4949 -0
  39. package/package.json +1 -1
  40. package/dist/release_notes.tmp +0 -1
@@ -1,13 +1,13 @@
1
1
  var Lr = Object.defineProperty;
2
- var ar = (n, r, e) => r in n ? Lr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => ar(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as ir } from "jwt-decode";
5
- import { merge as le, isNil as T, isEmpty as Y, noop as w, mapValues as nr, isArray as H, every as dr, split as xr, isString as v, constant as Or, toUpper as _r, cloneDeep as qr, toLower as Nr, isFunction as Ue, map as ge, forEach as Ur, isDate as xe, omitBy as or, isObject as cr } from "lodash-es";
6
- import { objectToCamel as He, objectToSnake as Je } from "ts-case-convert";
2
+ var xr = (n, r, e) => r in n ? Lr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => xr(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as nr } from "jwt-decode";
5
+ import { merge as ue, isNil as T, isEmpty as X, noop as v, mapValues as or, isArray as H, every as dr, split as Or, isString as C, constant as _r, toUpper as qr, cloneDeep as Nr, toLower as Ur, isFunction as He, map as me, forEach as Hr, isDate as Oe, omitBy as cr, isObject as lr } from "lodash-es";
6
+ import { objectToCamel as Fe, objectToSnake as Ee } from "ts-case-convert";
7
7
  import { defineStore as z } from "pinia";
8
- import { ref as y, markRaw as Hr, computed as A } from "vue";
9
- import { isAfter as Ee, parseISO as C, startOfToday as Oe, format as U, addSeconds as Fr, addBusinessDays as jr, endOfTomorrow as Gr, startOfTomorrow as Mr, endOfYesterday as Br, startOfYesterday as zr, endOfToday as Wr, endOfDay as Jr, startOfDay as Er } from "date-fns";
10
- import Vr, { CanceledError as Kr } from "axios";
8
+ import { ref as y, markRaw as Fr, computed as D } from "vue";
9
+ import { isAfter as Ve, parseISO as R, startOfToday as _e, format as U, addSeconds as jr, addBusinessDays as Gr, endOfTomorrow as Mr, startOfTomorrow as Br, endOfYesterday as zr, startOfYesterday as Wr, endOfToday as Jr, endOfDay as Er, startOfDay as Vr } from "date-fns";
10
+ import Kr, { CanceledError as Qr } from "axios";
11
11
  class F {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
@@ -99,7 +99,7 @@ class F {
99
99
  * @inheritDoc
100
100
  */
101
101
  t(this, "email", "");
102
- le(this, r);
102
+ ue(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -107,11 +107,11 @@ class F {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = ir(r), s = new F(He(e));
110
+ const e = nr(r), s = new F(Fe(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class Gt extends F {
114
+ class Mt extends F {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -143,7 +143,7 @@ class Gt extends F {
143
143
  * @inheritDoc
144
144
  */
145
145
  t(this, "address");
146
- le(this, e);
146
+ ue(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -151,10 +151,10 @@ class Gt extends F {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new F(He(ir(e)));
154
+ return new F(Fe(nr(e)));
155
155
  }
156
156
  }
157
- class Qr {
157
+ class Yr {
158
158
  /**
159
159
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
160
160
  *
@@ -176,7 +176,7 @@ class Qr {
176
176
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
177
177
  }
178
178
  }
179
- class Yr {
179
+ class Xr {
180
180
  /**
181
181
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
182
182
  *
@@ -198,7 +198,7 @@ class Yr {
198
198
  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;
199
199
  }
200
200
  }
201
- class Xr {
201
+ class Zr {
202
202
  /**
203
203
  * Инициализирует экземпляр класса {@link SentryConfig}.
204
204
  *
@@ -243,7 +243,7 @@ class Xr {
243
243
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
244
244
  }
245
245
  }
246
- class Zr {
246
+ class et {
247
247
  /**
248
248
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
249
249
  *
@@ -282,7 +282,7 @@ class Zr {
282
282
  this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
283
283
  }
284
284
  }
285
- class et {
285
+ class rt {
286
286
  /**
287
287
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
288
288
  *
@@ -326,18 +326,18 @@ class et {
326
326
  */
327
327
  t(this, "dateFormats");
328
328
  var e, s, i;
329
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Yr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Qr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Xr({
329
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Yr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Zr({
330
330
  environment: this.environment,
331
331
  ...r == null ? void 0 : r.sentry
332
- }), 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 Zr(r.websocket) : void 0, this.dateFormats = {
332
+ }), 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 et(r.websocket) : void 0, this.dateFormats = {
333
333
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
334
334
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
335
335
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
336
336
  };
337
337
  }
338
338
  }
339
- const L = z("common.config", () => {
340
- const n = y(new et());
339
+ const I = z("common.config", () => {
340
+ const n = y(new rt());
341
341
  return {
342
342
  /**
343
343
  * Конфигурационные данные приложения.
@@ -355,11 +355,11 @@ const L = z("common.config", () => {
355
355
  * @param appConfig Конфигурация приложения.
356
356
  */
357
357
  setConfig: (s) => {
358
- n.value = le(n.value, s);
358
+ n.value = ue(n.value, s);
359
359
  }
360
360
  };
361
361
  });
362
- class ye {
362
+ class we {
363
363
  /**
364
364
  * Возвращает актуальные и не просроченные данные из хранилища.
365
365
  *
@@ -378,8 +378,8 @@ class ye {
378
378
  if (e)
379
379
  try {
380
380
  const s = JSON.parse(e);
381
- if (!s.availableFor || Ee(C(s.availableFor) || Oe(), /* @__PURE__ */ new Date())) {
382
- if (T(s.data) || Y(s.data))
381
+ if (!s.availableFor || Ve(R(s.availableFor) || _e(), /* @__PURE__ */ new Date())) {
382
+ if (T(s.data) || X(s.data))
383
383
  throw new Error("Data is empty");
384
384
  return s.data;
385
385
  }
@@ -401,7 +401,7 @@ class ye {
401
401
  static saveActualDataToStorage(r, e, s) {
402
402
  if (this.isLocalStorageAvailable())
403
403
  try {
404
- if (T(e) || Y(e))
404
+ if (T(e) || X(e))
405
405
  throw new Error("Data is empty");
406
406
  const i = JSON.stringify({
407
407
  availableFor: s,
@@ -452,7 +452,7 @@ class ye {
452
452
  const i = localStorage.getItem(s);
453
453
  if (i) {
454
454
  const o = JSON.parse(i);
455
- o.availableFor && !Ee(C(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
455
+ o.availableFor && !Ve(R(o.availableFor) || _e(), /* @__PURE__ */ new Date()) && r.push(s);
456
456
  }
457
457
  } catch {
458
458
  r.push(s);
@@ -468,7 +468,7 @@ class ye {
468
468
  }
469
469
  }
470
470
  }
471
- function Ve(n) {
471
+ function Ke(n) {
472
472
  try {
473
473
  const r = F.getJwtPayload(n);
474
474
  return new Date(r.exp * 1e3);
@@ -480,21 +480,21 @@ const E = z("common.auth_state_private", () => {
480
480
  const n = y(
481
481
  (() => {
482
482
  var u;
483
- const o = ye.getActualDataFromStorage(
483
+ const o = we.getActualDataFromStorage(
484
484
  "sc.token"
485
485
  /* JwtToken */
486
486
  );
487
487
  if (o)
488
488
  return Promise.resolve(o);
489
- const c = (u = L().config.devMode) == null ? void 0 : u.initAuthBearerToken;
489
+ const c = (u = I().config.devMode) == null ? void 0 : u.initAuthBearerToken;
490
490
  return c ? Promise.resolve(c) : void 0;
491
491
  })()
492
- ), r = y(void 0), e = y(void 0), s = Hr(/* @__PURE__ */ new Map());
492
+ ), r = y(void 0), e = y(void 0), s = Fr(/* @__PURE__ */ new Map());
493
493
  function i() {
494
494
  e.value = void 0, T(n.value) || n.value.then((o) => {
495
495
  const c = F.getJwtPayload(o);
496
- e.value = c.exp * 1e3 > Date.now() ? nr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
- }).catch(w);
496
+ e.value = c.exp * 1e3 > Date.now() ? or(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
+ }).catch(v);
498
498
  }
499
499
  return {
500
500
  /**
@@ -518,14 +518,14 @@ const E = z("common.auth_state_private", () => {
518
518
  */
519
519
  recalculateUserPermissions: i
520
520
  };
521
- }), be = z("common.auth_state", () => {
522
- const n = A(() => {
521
+ }), Se = z("common.auth_state", () => {
522
+ const n = D(() => {
523
523
  const o = E();
524
524
  if (T(o.jwtToken) && !T(o.jwtTokenUpdater)) {
525
525
  const c = o.jwtTokenUpdater();
526
526
  o.jwtToken = c, c.then((u) => {
527
- o.jwtToken = Promise.resolve(u), ye.saveActualDataToStorage("sc.token", u, Ve(u)), o.recalculateUserPermissions();
528
- }).catch(w);
527
+ o.jwtToken = Promise.resolve(u), we.saveActualDataToStorage("sc.token", u, Ke(u)), o.recalculateUserPermissions();
528
+ }).catch(v);
529
529
  }
530
530
  return o.jwtToken;
531
531
  });
@@ -534,29 +534,29 @@ const E = z("common.auth_state_private", () => {
534
534
  }
535
535
  function e(o) {
536
536
  const c = E();
537
- c.jwtToken = Promise.resolve(o), ye.saveActualDataToStorage("sc.token", o, Ve(o)), c.recalculateUserPermissions();
537
+ c.jwtToken = Promise.resolve(o), we.saveActualDataToStorage("sc.token", o, Ke(o)), c.recalculateUserPermissions();
538
538
  }
539
539
  function s() {
540
540
  const o = E();
541
- o.jwtToken = void 0, o.userPermissions = void 0, ye.saveActualDataToStorage("sc.token", void 0);
541
+ o.jwtToken = void 0, o.userPermissions = void 0, we.saveActualDataToStorage("sc.token", void 0);
542
542
  }
543
543
  function i(o) {
544
544
  const c = E();
545
545
  !T(c.jwtToken) && T(c.userPermissions) && c.jwtToken.then((m) => {
546
546
  const f = F.getJwtPayload(m);
547
- c.userPermissions = f.exp * 1e3 > Date.now() ? nr(f.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
548
- }).catch(w);
547
+ c.userPermissions = f.exp * 1e3 > Date.now() ? or(f.resourceAccess, (A) => (A == null ? void 0 : A.roles) ?? []) : void 0;
548
+ }).catch(v);
549
549
  const u = H(o) ? o.join(" && ") : o;
550
550
  if (c.userPermissionsComputedRefs.has(u))
551
551
  return c.userPermissionsComputedRefs.get(u);
552
- const h = A(() => {
552
+ const h = D(() => {
553
553
  const m = (f) => {
554
554
  var J;
555
- const D = xr(f, ".");
556
- if (D.length < 2)
555
+ const A = Or(f, ".");
556
+ if (A.length < 2)
557
557
  return !1;
558
- const [se, ie] = D, W = (J = E().userPermissions) == null ? void 0 : J[se];
559
- return H(W) && W.includes(ie);
558
+ const [ie, ne] = A, W = (J = E().userPermissions) == null ? void 0 : J[ie];
559
+ return H(W) && W.includes(ne);
560
560
  };
561
561
  return H(o) ? dr(o, (f) => m(f)) : m(o);
562
562
  });
@@ -591,7 +591,7 @@ const E = z("common.auth_state_private", () => {
591
591
  hasUserPermission: i
592
592
  };
593
593
  });
594
- class re {
594
+ class te {
595
595
  /**
596
596
  * Инициализирует экземпляр класса {@link Identity}.
597
597
  *
@@ -616,7 +616,7 @@ class re {
616
616
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : T(this.id);
617
617
  }
618
618
  }
619
- class k extends re {
619
+ class b extends te {
620
620
  /**
621
621
  * Инициализирует экземпляр класса {@link NamedIdentity}.
622
622
  *
@@ -631,7 +631,7 @@ class k extends re {
631
631
  this.name = (e == null ? void 0 : e.name) ?? "";
632
632
  }
633
633
  }
634
- class ue extends k {
634
+ class pe extends b {
635
635
  /**
636
636
  * Инициализирует экземпляр класса {@link NamedIdentity}.
637
637
  *
@@ -646,7 +646,7 @@ class ue extends k {
646
646
  this.code = (e == null ? void 0 : e.code) ?? "";
647
647
  }
648
648
  }
649
- class R extends k {
649
+ class w extends b {
650
650
  /**
651
651
  * Инициализирует экземпляр класса {@link Reference}.
652
652
  *
@@ -665,7 +665,7 @@ class R extends k {
665
665
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
666
666
  }
667
667
  }
668
- class lr extends k {
668
+ class ur extends b {
669
669
  /**
670
670
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
671
671
  *
@@ -677,10 +677,10 @@ class lr extends k {
677
677
  * Дата и время последнего изменения.
678
678
  */
679
679
  t(this, "updatedAt");
680
- this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
680
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? R(e.updatedAt) : e == null ? void 0 : e.updatedAt;
681
681
  }
682
682
  }
683
- class rt extends lr {
683
+ class tt extends ur {
684
684
  /**
685
685
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
686
686
  *
@@ -692,10 +692,10 @@ class rt extends lr {
692
692
  * Дата и время последнего удаления.
693
693
  */
694
694
  t(this, "deletedAt");
695
- this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
695
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
696
696
  }
697
697
  }
698
- class tt {
698
+ class st {
699
699
  /**
700
700
  * Инициализирует экземпляр класса {@link Image}.
701
701
  *
@@ -718,7 +718,7 @@ class tt {
718
718
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
719
719
  }
720
720
  }
721
- class ur extends ue {
721
+ class pr extends pe {
722
722
  /**
723
723
  * Инициализирует экземпляр класса {@link CatalogableItem}.
724
724
  *
@@ -737,7 +737,7 @@ class ur extends ue {
737
737
  this.slug = (e == null ? void 0 : e.slug) ?? "";
738
738
  }
739
739
  }
740
- class st extends ur {
740
+ class it extends pr {
741
741
  /**
742
742
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
743
743
  *
@@ -752,7 +752,7 @@ class st extends ur {
752
752
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
753
753
  }
754
754
  }
755
- class _e extends ur {
755
+ class qe extends pr {
756
756
  /**
757
757
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
758
758
  *
@@ -767,7 +767,7 @@ class _e extends ur {
767
767
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
768
768
  }
769
769
  }
770
- class Fe {
770
+ class je {
771
771
  /**
772
772
  * Инициализирует экземпляр указанного класса.
773
773
  *
@@ -786,7 +786,7 @@ class Fe {
786
786
  return new r(e);
787
787
  }
788
788
  }
789
- class d extends k {
789
+ class L extends b {
790
790
  /**
791
791
  * Инициализирует экземпляр класса {@link UserShortInfo}.
792
792
  *
@@ -801,7 +801,7 @@ class d extends k {
801
801
  this.type = e == null ? void 0 : e.type;
802
802
  }
803
803
  }
804
- class it extends k {
804
+ class nt extends b {
805
805
  /**
806
806
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
807
807
  *
@@ -837,10 +837,10 @@ class it extends k {
837
837
  * Дата и время удаления.
838
838
  */
839
839
  t(this, "deletedAt");
840
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = v(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new d(e == null ? void 0 : e.owner), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
840
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? R(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new L(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
841
841
  }
842
842
  }
843
- class K extends lr {
843
+ class Q extends ur {
844
844
  /**
845
845
  * Инициализирует экземпляр класса {@link PriceTemplate}.
846
846
  *
@@ -856,19 +856,19 @@ class K extends lr {
856
856
  * Дата и время создания шаблона.
857
857
  */
858
858
  t(this, "createdAt");
859
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
859
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
860
860
  }
861
861
  }
862
- var pr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(pr || {});
863
- class Re extends R {
862
+ var hr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(hr || {});
863
+ class Pe extends w {
864
864
  /**
865
865
  * Возвращает значение справочника коэффициента розничной цены.
866
866
  */
867
867
  static getRetailPriceCoefficient() {
868
- return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: Or(!0) };
868
+ return { id: -2, slug: hr.Retail, name: "Розн. цена", guid: "", isNewRec: _r(!0) };
869
869
  }
870
870
  }
871
- class je {
871
+ class Ge {
872
872
  /**
873
873
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
874
874
  *
@@ -895,10 +895,10 @@ class je {
895
895
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
896
896
  */
897
897
  t(this, "readOnly");
898
- this.coefficient = new Re(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
898
+ this.coefficient = new Pe(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
899
899
  }
900
900
  }
901
- class hr {
901
+ class gr {
902
902
  /**
903
903
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
904
904
  *
@@ -916,9 +916,9 @@ class hr {
916
916
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
917
917
  }
918
918
  }
919
- class N extends R {
919
+ class N extends w {
920
920
  }
921
- class X extends R {
921
+ class Z extends w {
922
922
  /**
923
923
  * Инициализирует экземпляр класса {@link Warehouse}.
924
924
  *
@@ -947,10 +947,10 @@ class X extends R {
947
947
  * Координаты склада.
948
948
  */
949
949
  t(this, "coordinates");
950
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new N(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
950
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new N(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new gr(e == null ? void 0 : e.coordinates);
951
951
  }
952
952
  }
953
- class nt {
953
+ class ot {
954
954
  /**
955
955
  * Инициализирует экземпляр класса {@link StockCount}.
956
956
  *
@@ -965,10 +965,10 @@ class nt {
965
965
  * Количество остатков товара на складе.
966
966
  */
967
967
  t(this, "count");
968
- this.warehouse = new X(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
968
+ this.warehouse = new Z(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
969
969
  }
970
970
  }
971
- class x extends k {
971
+ class d extends b {
972
972
  /**
973
973
  * Инициализирует экземпляр класса {@link Currency}.
974
974
  *
@@ -995,7 +995,7 @@ class x extends k {
995
995
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
996
996
  }
997
997
  }
998
- class Ke extends k {
998
+ class Qe extends b {
999
999
  /**
1000
1000
  * Инициализирует экземпляр класса {@link ProductUnit}.
1001
1001
  *
@@ -1022,7 +1022,7 @@ class Ke extends k {
1022
1022
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1023
1023
  }
1024
1024
  }
1025
- class I extends st {
1025
+ class k extends it {
1026
1026
  /**
1027
1027
  * Инициализирует экземпляр класса {@link Product}.
1028
1028
  *
@@ -1099,9 +1099,9 @@ class I extends st {
1099
1099
  * Список коэффициентов цен на продукт.
1100
1100
  */
1101
1101
  t(this, "priceCoefficients");
1102
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ke(e.unit) : new Ke(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new x(e.currency) : new x(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = v(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new nt(h))) ?? [], this.type = "product";
1102
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Qe(e.unit) : new Qe(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new d(e.currency) : new d(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? R(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((h) => new ot(h))) ?? [], this.type = "product";
1103
1103
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
1104
- s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new tt(h, L().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((h) => new je(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1104
+ s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new qe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new st(h, I().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((h) => new Ge(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1105
1105
  }
1106
1106
  /**
1107
1107
  * Возвращает признак, что это измеряемый товар.
@@ -1122,8 +1122,8 @@ class I extends st {
1122
1122
  return this.retailCostRub ?? this.costRub;
1123
1123
  }
1124
1124
  }
1125
- var Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {});
1126
- class j extends I {
1125
+ var Me = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Me || {});
1126
+ class j extends k {
1127
1127
  /**
1128
1128
  * Инициализирует экземпляр класса {@link ClientProduct}.
1129
1129
  *
@@ -1159,10 +1159,10 @@ class j extends I {
1159
1159
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1160
1160
  */
1161
1161
  t(this, "isFavorite");
1162
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new it(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new K(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1162
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Me.Product, this.discount = e != null && e.discount ? new nt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Q(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1163
1163
  }
1164
1164
  }
1165
- class me extends _e {
1165
+ class fe extends qe {
1166
1166
  /**
1167
1167
  * Инициализирует экземпляр класса {@link BaseCategory}.
1168
1168
  *
@@ -1186,10 +1186,10 @@ class me extends _e {
1186
1186
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
1187
1187
  */
1188
1188
  t(this, "currencyRates");
1189
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [_r(s), i])) : void 0;
1189
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [qr(s), i])) : void 0;
1190
1190
  }
1191
1191
  }
1192
- class gr extends re {
1192
+ class mr extends te {
1193
1193
  /**
1194
1194
  * Инициализирует экземпляр класса {@link OrderItemBase}.
1195
1195
  *
@@ -1244,11 +1244,27 @@ class gr extends re {
1244
1244
  /**
1245
1245
  * @inheritDoc
1246
1246
  */
1247
- t(this, "creatorUser");
1248
- this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new me(), this.currency = e.currency ? new x(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && qr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creatorUser = e.creatorUser && new d(e.creatorUser);
1247
+ t(this, "creator");
1248
+ /**
1249
+ * @inheritDoc
1250
+ */
1251
+ t(this, "isRemoved");
1252
+ /**
1253
+ * @inheritDoc
1254
+ */
1255
+ t(this, "ord");
1256
+ /**
1257
+ * @inheritDoc
1258
+ */
1259
+ t(this, "onOrder");
1260
+ /**
1261
+ * @inheritDoc
1262
+ */
1263
+ t(this, "originalId");
1264
+ this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new fe(), this.currency = e.currency ? new d(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Nr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new L(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId;
1249
1265
  }
1250
1266
  }
1251
- let ot = class extends gr {
1267
+ let ct = class extends mr {
1252
1268
  /**
1253
1269
  * Инициализирует экземпляр класса {@link OrderItem}.
1254
1270
  *
@@ -1292,10 +1308,10 @@ let ot = class extends gr {
1292
1308
  * @inheritDoc
1293
1309
  */
1294
1310
  t(this, "currency");
1295
- 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 = H(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new x(e.currency);
1311
+ 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 = H(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new d(e.currency);
1296
1312
  }
1297
1313
  };
1298
- class fe {
1314
+ class ye {
1299
1315
  /**
1300
1316
  * Инициализирует экземпляр класса {@link Cart}.
1301
1317
  *
@@ -1314,7 +1330,7 @@ class fe {
1314
1330
  * @inheritDoc
1315
1331
  */
1316
1332
  t(this, "directionsSum");
1317
- this.items = r.items.map((e) => new ot(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1333
+ this.items = r.items.map((e) => new ct(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1318
1334
  }
1319
1335
  }
1320
1336
  const P = class P {
@@ -1329,7 +1345,7 @@ const P = class P {
1329
1345
  /**
1330
1346
  * Базовый URL путь для выполнения запросов.
1331
1347
  */
1332
- t(this, "baseUrl", `${L().config.http.portalApiUrl}/api`);
1348
+ t(this, "baseUrl", `${I().config.http.portalApiUrl}/api`);
1333
1349
  /**
1334
1350
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
1335
1351
  *
@@ -1337,7 +1353,7 @@ const P = class P {
1337
1353
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1338
1354
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1339
1355
  */
1340
- t(this, "errorResponseHandler", w);
1356
+ t(this, "errorResponseHandler", v);
1341
1357
  /**
1342
1358
  * Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
1343
1359
  */
@@ -1356,7 +1372,7 @@ const P = class P {
1356
1372
  // eslint-disable-next-line class-methods-use-this
1357
1373
  t(this, "authRequestInterceptor", async (r) => {
1358
1374
  let e;
1359
- return T(be().jwtToken) || (e = await be().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1375
+ return T(Se().jwtToken) || (e = await Se().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1360
1376
  });
1361
1377
  /**
1362
1378
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -1371,7 +1387,7 @@ const P = class P {
1371
1387
  * @param request Данные запроса.
1372
1388
  */
1373
1389
  // eslint-disable-next-line class-methods-use-this
1374
- t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Je(r.params)), ["put", "patch", "post"].includes(Nr(r.method)) && r.data && (r.data = Je(r.data))), r));
1390
+ t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ee(r.params)), ["put", "patch", "post"].includes(Ur(r.method)) && r.data && (r.data = Ee(r.data))), r));
1375
1391
  /**
1376
1392
  * Перехватчик ошибок ответов на запрос.
1377
1393
  *
@@ -1380,7 +1396,7 @@ const P = class P {
1380
1396
  t(this, "authErrorsResponseInterceptors", (r) => {
1381
1397
  var s;
1382
1398
  const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
1383
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (be().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1399
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Se().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1384
1400
  });
1385
1401
  /**
1386
1402
  * Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
@@ -1391,7 +1407,7 @@ const P = class P {
1391
1407
  t(this, "canceledResponseInterceptor", (r) => {
1392
1408
  const e = r.rawError ?? r;
1393
1409
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
1394
- throw new Kr("Request canceled");
1410
+ throw new Qr("Request canceled");
1395
1411
  return Promise.reject(r);
1396
1412
  });
1397
1413
  /**
@@ -1407,8 +1423,8 @@ const P = class P {
1407
1423
  * @param response Данные ответа на запрос.
1408
1424
  */
1409
1425
  // eslint-disable-next-line class-methods-use-this
1410
- t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = He(r.data)), r));
1411
- this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = Vr.create({
1426
+ t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
1427
+ this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = Kr.create({
1412
1428
  headers: {
1413
1429
  Accept: "application/json",
1414
1430
  "Content-Type": "application/json"
@@ -1472,7 +1488,7 @@ const P = class P {
1472
1488
  * @param type Тип данных, которыми оперирует метод.
1473
1489
  */
1474
1490
  static getInstance(r) {
1475
- return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = Fe.simpleInstanceInitializer(r)), P.instances[r.name];
1491
+ return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = je.simpleInstanceInitializer(r)), P.instances[r.name];
1476
1492
  }
1477
1493
  /**
1478
1494
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1578,7 +1594,7 @@ t(P, "instances", {}), /**
1578
1594
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1579
1595
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1580
1596
  */
1581
- t(P, "defaultErrorsResponseHandler", w), /**
1597
+ t(P, "defaultErrorsResponseHandler", v), /**
1582
1598
  * Список зарегистрированных хуков для запросов.
1583
1599
  */
1584
1600
  t(P, "requestHooks", []), /**
@@ -1586,7 +1602,7 @@ t(P, "requestHooks", []), /**
1586
1602
  */
1587
1603
  t(P, "responseHooks", []);
1588
1604
  let p = P;
1589
- class Bt extends p {
1605
+ class zt extends p {
1590
1606
  /**
1591
1607
  * Возвращает содержимое корзины указанного клиента.
1592
1608
  *
@@ -1595,7 +1611,7 @@ class Bt extends p {
1595
1611
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
1596
1612
  */
1597
1613
  getCart(r) {
1598
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new fe(e.data));
1614
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ye(e.data));
1599
1615
  }
1600
1616
  /**
1601
1617
  * Удаляет всё содержимое корзины.
@@ -1633,7 +1649,7 @@ class Bt extends p {
1633
1649
  is_additional_sale: e.isAdditionalSale,
1634
1650
  ...e.configuratorParams
1635
1651
  },
1636
- (i) => new fe(i.data),
1652
+ (i) => new ye(i.data),
1637
1653
  s
1638
1654
  );
1639
1655
  }
@@ -1663,7 +1679,7 @@ class Bt extends p {
1663
1679
  is_additional_sale: e.isAdditionalSale,
1664
1680
  ...e.configuratorParams
1665
1681
  },
1666
- (i) => new fe(i.data),
1682
+ (i) => new ye(i.data),
1667
1683
  s
1668
1684
  );
1669
1685
  }
@@ -1687,7 +1703,7 @@ class Bt extends p {
1687
1703
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1688
1704
  */
1689
1705
  addCartItemFromCSV(r, e) {
1690
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new fe(s.data));
1706
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new ye(s.data));
1691
1707
  }
1692
1708
  /**
1693
1709
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -1700,8 +1716,8 @@ class Bt extends p {
1700
1716
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
1701
1717
  }
1702
1718
  }
1703
- var ct = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ct || {}), lt = /* @__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))(lt || {});
1704
- class _ extends me {
1719
+ var lt = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(lt || {}), ut = /* @__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))(ut || {});
1720
+ class _ extends fe {
1705
1721
  /**
1706
1722
  * Инициализирует экземпляр класса {@link Category}.
1707
1723
  *
@@ -1718,10 +1734,10 @@ class _ extends me {
1718
1734
  * Список продуктов категории.
1719
1735
  */
1720
1736
  t(this, "products");
1721
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new _(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1737
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new _(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new k(o));
1722
1738
  }
1723
1739
  }
1724
- class mr {
1740
+ class fr {
1725
1741
  /**
1726
1742
  * Инициализирует экземпляр класса {@link ContactLinks}.
1727
1743
  *
@@ -1739,9 +1755,9 @@ class mr {
1739
1755
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1740
1756
  }
1741
1757
  }
1742
- class O extends R {
1758
+ class O extends w {
1743
1759
  }
1744
- class Me extends k {
1760
+ class Be extends b {
1745
1761
  /**
1746
1762
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1747
1763
  *
@@ -1769,12 +1785,12 @@ class Me extends k {
1769
1785
  * @inheritDoc
1770
1786
  */
1771
1787
  t(this, "isRegionalDirector");
1772
- this.salesDirection = e != null && e.salesDirection ? new O(e.salesDirection) : new O(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new mr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1788
+ this.salesDirection = e != null && e.salesDirection ? new O(e.salesDirection) : new O(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new fr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1773
1789
  }
1774
1790
  }
1775
- class Be extends R {
1791
+ class ze extends w {
1776
1792
  }
1777
- class ut extends k {
1793
+ class pt extends b {
1778
1794
  /**
1779
1795
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1780
1796
  *
@@ -1797,7 +1813,7 @@ class ut extends k {
1797
1813
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1798
1814
  }
1799
1815
  }
1800
- class Pe extends Me {
1816
+ class De extends Be {
1801
1817
  /**
1802
1818
  * Инициализирует экземпляр класса {@link Manager}.
1803
1819
  *
@@ -1834,10 +1850,10 @@ class Pe extends Me {
1834
1850
  * Список направлений кураторства.
1835
1851
  */
1836
1852
  t(this, "curatedDirections");
1837
- this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new ut(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Be(i))) ?? [];
1853
+ this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new pt(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new ze(i))) ?? [];
1838
1854
  }
1839
1855
  }
1840
- class pt extends me {
1856
+ class ht extends fe {
1841
1857
  /**
1842
1858
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1843
1859
  *
@@ -1865,10 +1881,10 @@ class pt extends me {
1865
1881
  * Данные о менеджере за которым закреплена категория.
1866
1882
  */
1867
1883
  t(this, "manager");
1868
- this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new Pe(e.manager) : void 0;
1884
+ this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new De(e.manager) : void 0;
1869
1885
  }
1870
1886
  }
1871
- class we extends pt {
1887
+ class ve extends ht {
1872
1888
  /**
1873
1889
  * Инициализирует экземпляр класса {@link ClientCategory}.
1874
1890
  *
@@ -1885,10 +1901,10 @@ class we extends pt {
1885
1901
  * Список продуктов категории.
1886
1902
  */
1887
1903
  t(this, "products");
1888
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new we(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new j(o));
1904
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ve(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new j(o));
1889
1905
  }
1890
1906
  }
1891
- class fr {
1907
+ class yr {
1892
1908
  /**
1893
1909
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1894
1910
  *
@@ -1903,10 +1919,10 @@ class fr {
1903
1919
  * Процент, который прибавляется к значению выбранного коэффициента.
1904
1920
  */
1905
1921
  t(this, "increasePercent");
1906
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1922
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1907
1923
  }
1908
1924
  }
1909
- class Se extends fr {
1925
+ class ke extends yr {
1910
1926
  /**
1911
1927
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1912
1928
  *
@@ -1918,10 +1934,10 @@ class Se extends fr {
1918
1934
  * Базовые данные о продукте.
1919
1935
  */
1920
1936
  t(this, "productCategory");
1921
- this.productCategory = new me(e == null ? void 0 : e.productCategory);
1937
+ this.productCategory = new fe(e == null ? void 0 : e.productCategory);
1922
1938
  }
1923
1939
  }
1924
- class ze extends k {
1940
+ class We extends b {
1925
1941
  /**
1926
1942
  * Инициализирует экземпляр класса {@link Curator}.
1927
1943
  *
@@ -1941,12 +1957,12 @@ class ze extends k {
1941
1957
  * @inheritDoc
1942
1958
  */
1943
1959
  t(this, "curatedDirection");
1944
- this.photo = e.photo, this.contacts = new mr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
1960
+ this.photo = e.photo, this.contacts = new fr(e.contacts), this.curatedDirection = new ze(e.curatedDirection);
1945
1961
  }
1946
1962
  }
1947
- class Z extends R {
1963
+ class ee extends w {
1948
1964
  }
1949
- class pe extends R {
1965
+ class he extends w {
1950
1966
  /**
1951
1967
  * Инициализирует экземпляр класса {@link Region}.
1952
1968
  *
@@ -1957,11 +1973,11 @@ class pe extends R {
1957
1973
  /**
1958
1974
  * Данные о стране, в которой расположен регион.
1959
1975
  */
1960
- t(this, "country", new Z());
1961
- e && (this.country = new Z(e.country));
1976
+ t(this, "country", new ee());
1977
+ e && (this.country = new ee(e.country));
1962
1978
  }
1963
1979
  }
1964
- class Ae extends R {
1980
+ class Ae extends w {
1965
1981
  /**
1966
1982
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1967
1983
  *
@@ -1972,11 +1988,11 @@ class Ae extends R {
1972
1988
  /**
1973
1989
  * Данные о регионе, в котором расположен город.
1974
1990
  */
1975
- t(this, "region", new pe());
1976
- e && (this.region = new pe(e.region));
1991
+ t(this, "region", new he());
1992
+ e && (this.region = new he(e.region));
1977
1993
  }
1978
1994
  }
1979
- class yr extends k {
1995
+ class wr extends b {
1980
1996
  /**
1981
1997
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1982
1998
  *
@@ -2012,10 +2028,10 @@ class yr extends k {
2012
2028
  * Признак активности учетной записи пользователя.
2013
2029
  */
2014
2030
  t(this, "isActive");
2015
- this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new O(e.salesDirection) : void 0, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = v(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2031
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new O(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? R(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2016
2032
  }
2017
2033
  }
2018
- class te extends yr {
2034
+ class se extends wr {
2019
2035
  /**
2020
2036
  * Инициализирует экземпляр класса {@link Client}.
2021
2037
  *
@@ -2061,10 +2077,10 @@ class te extends yr {
2061
2077
  * @inheritDoc
2062
2078
  */
2063
2079
  t(this, "curators");
2064
- this.salesDirection = new O(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 Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Me(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new ze(o))) ?? void 0;
2080
+ this.salesDirection = new O(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 Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Be(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new We(o))) ?? void 0;
2065
2081
  }
2066
2082
  }
2067
- class ne extends re {
2083
+ class oe extends te {
2068
2084
  /**
2069
2085
  * Инициализирует новый экземпляр класса.
2070
2086
  *
@@ -2088,10 +2104,10 @@ class ne extends re {
2088
2104
  * Данные шаблона прайс-листа.
2089
2105
  */
2090
2106
  t(this, "priceTemplate");
2091
- this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new te(e == null ? void 0 : e.client), this.priceTemplate = new K(e == null ? void 0 : e.priceTemplate);
2107
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new se(e == null ? void 0 : e.client), this.priceTemplate = new Q(e == null ? void 0 : e.priceTemplate);
2092
2108
  }
2093
2109
  }
2094
- class ke extends fr {
2110
+ class Ie extends yr {
2095
2111
  /**
2096
2112
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2097
2113
  *
@@ -2103,12 +2119,12 @@ class ke extends fr {
2103
2119
  * Базовые данные о продукте.
2104
2120
  */
2105
2121
  t(this, "product");
2106
- this.product = new I(e == null ? void 0 : e.product);
2122
+ this.product = new k(e == null ? void 0 : e.product);
2107
2123
  }
2108
2124
  }
2109
- class wr extends R {
2125
+ class vr extends w {
2110
2126
  }
2111
- class oe extends k {
2127
+ class ce extends b {
2112
2128
  /**
2113
2129
  * Инициализирует экземпляр класса {@link Property}.
2114
2130
  *
@@ -2128,7 +2144,7 @@ class oe extends k {
2128
2144
  * Дополнительные метаданные свойства.
2129
2145
  */
2130
2146
  t(this, "metadata");
2131
- this.type = new wr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2147
+ this.type = new vr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2132
2148
  }
2133
2149
  }
2134
2150
  class V {
@@ -2147,7 +2163,7 @@ class V {
2147
2163
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2148
2164
  */
2149
2165
  t(this, "value");
2150
- this.property = new oe(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2166
+ this.property = new ce(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2151
2167
  }
2152
2168
  }
2153
2169
  class S {
@@ -2165,10 +2181,10 @@ class S {
2165
2181
  * Окончание периода.
2166
2182
  */
2167
2183
  t(this, "to");
2168
- this.from = v(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = v(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
2184
+ this.from = C(r == null ? void 0 : r.from) ? R(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? R(r.to) : (r == null ? void 0 : r.to) ?? null;
2169
2185
  }
2170
2186
  }
2171
- class zt {
2187
+ class Wt {
2172
2188
  /**
2173
2189
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2174
2190
  *
@@ -2228,11 +2244,11 @@ class zt {
2228
2244
  return Object.keys(this).forEach((c) => {
2229
2245
  const u = this[c];
2230
2246
  // eslint-disable-next-line prettier/prettier
2231
- T(u) || v(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
2247
+ T(u) || C(u) && u.trim().length === 0 || He(u.isNewRec) && u.isNewRec() || (r[c] = u);
2232
2248
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
2233
2249
  }
2234
2250
  }
2235
- class ce extends k {
2251
+ class le extends b {
2236
2252
  /**
2237
2253
  * Инициализирует экземпляр класса {@link PricingRole}.
2238
2254
  *
@@ -2267,7 +2283,7 @@ class ce extends k {
2267
2283
  this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
2268
2284
  }
2269
2285
  }
2270
- class Qe {
2286
+ class Ye {
2271
2287
  /**
2272
2288
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2273
2289
  *
@@ -2286,10 +2302,10 @@ class Qe {
2286
2302
  * Минимальный коэффициент цены.
2287
2303
  */
2288
2304
  t(this, "minCoefficient");
2289
- this.role = new ce(r == null ? void 0 : r.role), this.category = new me(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
2305
+ this.role = new le(r == null ? void 0 : r.role), this.category = new fe(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
2290
2306
  }
2291
2307
  }
2292
- class Wt extends p {
2308
+ class Jt extends p {
2293
2309
  /**
2294
2310
  * Возвращает данные о результатах поиска категорий и товаров.
2295
2311
  *
@@ -2316,11 +2332,11 @@ class Wt extends p {
2316
2332
  */
2317
2333
  // eslint-disable-next-line class-methods-use-this
2318
2334
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2319
- let c = `${L().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2335
+ let c = `${I().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2320
2336
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2321
2337
  }
2322
2338
  }
2323
- class Jt extends p {
2339
+ class Et extends p {
2324
2340
  /**
2325
2341
  * Импортирует цены клиента из CSV файла.
2326
2342
  *
@@ -2519,7 +2535,7 @@ class Jt extends p {
2519
2535
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2520
2536
  }
2521
2537
  }
2522
- class Et extends p {
2538
+ class Vt extends p {
2523
2539
  /**
2524
2540
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2525
2541
  *
@@ -2531,7 +2547,7 @@ class Et extends p {
2531
2547
  return this.get(
2532
2548
  `/internal/clients/${r}/price/templates`,
2533
2549
  {},
2534
- (e) => e.data.map((s) => new ne(s))
2550
+ (e) => e.data.map((s) => new oe(s))
2535
2551
  );
2536
2552
  }
2537
2553
  /**
@@ -2542,7 +2558,7 @@ class Et extends p {
2542
2558
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2543
2559
  */
2544
2560
  getActiveTemplate(r) {
2545
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new ne(e.data), !0);
2561
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new oe(e.data), !0);
2546
2562
  }
2547
2563
  /**
2548
2564
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2554,14 +2570,14 @@ class Et extends p {
2554
2570
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2555
2571
  */
2556
2572
  attachTemplate(r, e, s) {
2557
- const i = L().config.dateFormats.api;
2573
+ const i = I().config.dateFormats.api;
2558
2574
  return this.post(
2559
2575
  `/internal/clients/${r}/price/templates/${e}`,
2560
2576
  s && {
2561
2577
  startAt: s.startAt && U(s.startAt, i),
2562
2578
  endAt: s.endAt && U(s.endAt, i)
2563
2579
  },
2564
- (o) => new ne(o.data),
2580
+ (o) => new oe(o.data),
2565
2581
  {},
2566
2582
  !0
2567
2583
  );
@@ -2588,14 +2604,14 @@ class Et extends p {
2588
2604
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2589
2605
  */
2590
2606
  changeTemplate(r, e, s, i) {
2591
- const o = L().config.dateFormats.api;
2607
+ const o = I().config.dateFormats.api;
2592
2608
  return this.patch(
2593
2609
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2594
2610
  i && {
2595
2611
  startAt: i.startAt && U(i.startAt, o),
2596
2612
  endAt: i.endAt && U(i.endAt, o)
2597
2613
  },
2598
- (c) => new ne(c.data)
2614
+ (c) => new oe(c.data)
2599
2615
  );
2600
2616
  }
2601
2617
  /**
@@ -2611,7 +2627,7 @@ class Et extends p {
2611
2627
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2612
2628
  }
2613
2629
  }
2614
- class Vt extends p {
2630
+ class Kt extends p {
2615
2631
  /**
2616
2632
  * Возвращает список данных о корневых категориях.
2617
2633
  *
@@ -2671,7 +2687,7 @@ class Vt extends p {
2671
2687
  showHidden: s,
2672
2688
  withPriceCoefficients: e
2673
2689
  },
2674
- (i) => ge(i.data, (o) => new I(o))
2690
+ (i) => me(i.data, (o) => new k(o))
2675
2691
  );
2676
2692
  }
2677
2693
  /**
@@ -2684,7 +2700,7 @@ class Vt extends p {
2684
2700
  getCategoryProductsCoefficients(r) {
2685
2701
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2686
2702
  const { data: s } = e;
2687
- return Ur(s, (i) => i.map((o) => new je(o))), s;
2703
+ return Hr(s, (i) => i.map((o) => new Ge(o))), s;
2688
2704
  });
2689
2705
  }
2690
2706
  /**
@@ -2703,7 +2719,7 @@ class Vt extends p {
2703
2719
  });
2704
2720
  }
2705
2721
  }
2706
- class Kt extends p {
2722
+ class Qt extends p {
2707
2723
  /**
2708
2724
  * Возвращает данные об указанном продукте.
2709
2725
  *
@@ -2713,7 +2729,7 @@ class Kt extends p {
2713
2729
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2714
2730
  */
2715
2731
  getProductData(r, e = !1) {
2716
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new I(s.data));
2732
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new k(s.data));
2717
2733
  }
2718
2734
  /**
2719
2735
  * Возвращает публичные данные об указанном продукте.
@@ -2721,7 +2737,7 @@ class Kt extends p {
2721
2737
  * @param productId Идентификатор продукта.
2722
2738
  */
2723
2739
  getPublicProductData(r) {
2724
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
2740
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new k(e.data));
2725
2741
  }
2726
2742
  /**
2727
2743
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2734,7 +2750,7 @@ class Kt extends p {
2734
2750
  return this.get(
2735
2751
  `/internal/catalog/products/${r}/coefficients`,
2736
2752
  {},
2737
- (e) => ge(e.data, (s) => new je(s))
2753
+ (e) => me(e.data, (s) => new Ge(s))
2738
2754
  );
2739
2755
  }
2740
2756
  /**
@@ -2746,14 +2762,14 @@ class Kt extends p {
2746
2762
  publicSimpleSearch(r, e = 10) {
2747
2763
  return new Promise((s, i) => {
2748
2764
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2749
- s(o.products.map((c) => new I(c)));
2765
+ s(o.products.map((c) => new k(c)));
2750
2766
  }).catch((o) => {
2751
2767
  i(o);
2752
2768
  });
2753
2769
  });
2754
2770
  }
2755
2771
  }
2756
- class Qt extends p {
2772
+ class Yt extends p {
2757
2773
  /**
2758
2774
  * Возвращает список данных о корневых категориях указанного клиента.
2759
2775
  *
@@ -2769,7 +2785,7 @@ class Qt extends p {
2769
2785
  clientId: r,
2770
2786
  showHidden: e
2771
2787
  },
2772
- (s) => s.data.map((i) => new we(i))
2788
+ (s) => s.data.map((i) => new ve(i))
2773
2789
  );
2774
2790
  }
2775
2791
  /**
@@ -2790,7 +2806,7 @@ class Qt extends p {
2790
2806
  showHidden: s,
2791
2807
  withNestedCategories: i
2792
2808
  },
2793
- (o) => new we(o.data)
2809
+ (o) => new ve(o.data)
2794
2810
  );
2795
2811
  }
2796
2812
  /**
@@ -2811,11 +2827,11 @@ class Qt extends p {
2811
2827
  showHidden: i,
2812
2828
  withPriceCoefficients: s
2813
2829
  },
2814
- (o) => ge(o.data, (c) => new j(c))
2830
+ (o) => me(o.data, (c) => new j(c))
2815
2831
  );
2816
2832
  }
2817
2833
  }
2818
- class Yt extends p {
2834
+ class Xt extends p {
2819
2835
  /**
2820
2836
  * Возвращает данные об указанном продукте для указанного клиента.
2821
2837
  *
@@ -2836,8 +2852,8 @@ class Yt extends p {
2836
2852
  );
2837
2853
  }
2838
2854
  }
2839
- var We = /* @__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))(We || {});
2840
- class Ye {
2855
+ var Je = /* @__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))(Je || {});
2856
+ class Xe {
2841
2857
  /**
2842
2858
  * Инициализирует экземпляр класса {@link FilterItem}.
2843
2859
  *
@@ -2856,7 +2872,7 @@ class Ye {
2856
2872
  * Значение с которым сравнивается поле.
2857
2873
  */
2858
2874
  t(this, "value");
2859
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? We.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2875
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Je.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2860
2876
  }
2861
2877
  /**
2862
2878
  * Преобразует фильтр в примитивное представление для API.
@@ -2868,7 +2884,7 @@ class Ye {
2868
2884
  field: this.field,
2869
2885
  op: this.op
2870
2886
  };
2871
- return r.value = xe(this.value) ? U(this.value, L().config.dateFormats.api) : this.value, r;
2887
+ return r.value = Oe(this.value) ? U(this.value, I().config.dateFormats.api) : this.value, r;
2872
2888
  }
2873
2889
  }
2874
2890
  class G {
@@ -2891,7 +2907,7 @@ class G {
2891
2907
  */
2892
2908
  t(this, "groups");
2893
2909
  var e, s;
2894
- 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 Ye(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new G(i))) ?? [];
2910
+ 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 Xe(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new G(i))) ?? [];
2895
2911
  }
2896
2912
  /**
2897
2913
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2901,12 +2917,12 @@ class G {
2901
2917
  toPrimitive() {
2902
2918
  return {
2903
2919
  groupOp: this.groupOp,
2904
- filters: this.filters.map((r) => r instanceof Ye && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2920
+ filters: this.filters.map((r) => r instanceof Xe && He(r.toPrimitive) ? r.toPrimitive() : r),
2905
2921
  groups: this.groups.map((r) => r instanceof G ? r.toPrimitive() : r)
2906
2922
  };
2907
2923
  }
2908
2924
  }
2909
- class De extends p {
2925
+ class Te extends p {
2910
2926
  /**
2911
2927
  * Получает пагинированный список данных.
2912
2928
  *
@@ -2924,10 +2940,10 @@ class De extends p {
2924
2940
  page: (i == null ? void 0 : i.page) ?? 1,
2925
2941
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2926
2942
  };
2927
- return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())), Y(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
2943
+ return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
2928
2944
  }
2929
2945
  }
2930
- class Xt extends De {
2946
+ class Zt extends Te {
2931
2947
  /**
2932
2948
  * Возвращает список шаблонов прайс-листа.
2933
2949
  *
@@ -2940,7 +2956,7 @@ class Xt extends De {
2940
2956
  getTemplateList(r, e, s) {
2941
2957
  return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
2942
2958
  const o = { ...i.data };
2943
- return o.data = o.data.map((c) => new K(c)), o;
2959
+ return o.data = o.data.map((c) => new Q(c)), o;
2944
2960
  });
2945
2961
  }
2946
2962
  /**
@@ -2953,7 +2969,7 @@ class Xt extends De {
2953
2969
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
2954
2970
  */
2955
2971
  createTemplate(r, e = {}) {
2956
- return this.post("/internal/price/templates", r, (s) => new K(s.data), e);
2972
+ return this.post("/internal/price/templates", r, (s) => new Q(s.data), e);
2957
2973
  }
2958
2974
  /**
2959
2975
  * Возвращает данные о шаблоне прайс-листа.
@@ -2963,7 +2979,7 @@ class Xt extends De {
2963
2979
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
2964
2980
  */
2965
2981
  getTemplate(r) {
2966
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new K(e.data));
2982
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new Q(e.data));
2967
2983
  }
2968
2984
  /**
2969
2985
  * Изменяет данные о шаблоне прайс-листа.
@@ -2976,7 +2992,7 @@ class Xt extends De {
2976
2992
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
2977
2993
  */
2978
2994
  updateTemplate(r, e, s = {}) {
2979
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new K(i.data), s);
2995
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new Q(i.data), s);
2980
2996
  }
2981
2997
  /**
2982
2998
  * Удаляет данные о шаблоне прайс-листа.
@@ -2999,7 +3015,7 @@ class Xt extends De {
2999
3015
  return this.get(
3000
3016
  `/internal/price/templates/${r}/products`,
3001
3017
  {},
3002
- (e) => e.data.map((s) => new ke(s))
3018
+ (e) => e.data.map((s) => new Ie(s))
3003
3019
  );
3004
3020
  }
3005
3021
  /**
@@ -3011,7 +3027,7 @@ class Xt extends De {
3011
3027
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
3012
3028
  */
3013
3029
  getProductTemplatePrice(r, e) {
3014
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new ke(s.data));
3030
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Ie(s.data));
3015
3031
  }
3016
3032
  /**
3017
3033
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3030,7 +3046,7 @@ class Xt extends De {
3030
3046
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
3031
3047
  increase_percent: s.value
3032
3048
  },
3033
- (o) => new ke(o.data)
3049
+ (o) => new Ie(o.data)
3034
3050
  );
3035
3051
  }
3036
3052
  /**
@@ -3055,7 +3071,7 @@ class Xt extends De {
3055
3071
  return this.get(
3056
3072
  `/internal/price/templates/${r}/categories`,
3057
3073
  {},
3058
- (e) => e.data.map((s) => new Se(s))
3074
+ (e) => e.data.map((s) => new ke(s))
3059
3075
  );
3060
3076
  }
3061
3077
  /**
@@ -3070,7 +3086,7 @@ class Xt extends De {
3070
3086
  return this.get(
3071
3087
  `/internal/price/templates/${r}/categories/${e}`,
3072
3088
  {},
3073
- (s) => new Se(s.data)
3089
+ (s) => new ke(s.data)
3074
3090
  );
3075
3091
  }
3076
3092
  /**
@@ -3096,7 +3112,7 @@ class Xt extends De {
3096
3112
  },
3097
3113
  params: i ? { recursively: !0 } : {}
3098
3114
  },
3099
- (c) => new Se(c.data)
3115
+ (c) => new ke(c.data)
3100
3116
  );
3101
3117
  }
3102
3118
  /**
@@ -3127,18 +3143,18 @@ class Xt extends De {
3127
3143
  return this.get(
3128
3144
  `/internal/price/templates/${r}/clients`,
3129
3145
  {},
3130
- (e) => e.data.map((s) => new ne(s))
3146
+ (e) => e.data.map((s) => new oe(s))
3131
3147
  );
3132
3148
  }
3133
3149
  }
3134
- class Zt extends p {
3150
+ class es extends p {
3135
3151
  /**
3136
3152
  * Возвращает список ролей ценообразования.
3137
3153
  *
3138
3154
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
3139
3155
  */
3140
3156
  getRoles() {
3141
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ce(e)));
3157
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new le(e)));
3142
3158
  }
3143
3159
  /**
3144
3160
  * Добавляет новую роль ценообразования.
@@ -3148,7 +3164,7 @@ class Zt extends p {
3148
3164
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
3149
3165
  */
3150
3166
  createRole(r) {
3151
- return this.post("/internal/price/roles", r, (e) => new ce(e.data));
3167
+ return this.post("/internal/price/roles", r, (e) => new le(e.data));
3152
3168
  }
3153
3169
  /**
3154
3170
  * Возвращает данные роли ценообразования.
@@ -3158,7 +3174,7 @@ class Zt extends p {
3158
3174
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
3159
3175
  */
3160
3176
  getRole(r) {
3161
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new ce(e.data));
3177
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new le(e.data));
3162
3178
  }
3163
3179
  /**
3164
3180
  * Обновляет данные роли ценообразования.
@@ -3169,7 +3185,7 @@ class Zt extends p {
3169
3185
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
3170
3186
  */
3171
3187
  updateRole(r, e) {
3172
- return this.patch(`/internal/price/roles/${r}`, e, (s) => new ce(s.data));
3188
+ return this.patch(`/internal/price/roles/${r}`, e, (s) => new le(s.data));
3173
3189
  }
3174
3190
  /**
3175
3191
  * Удаляет роль ценообразования.
@@ -3192,7 +3208,7 @@ class Zt extends p {
3192
3208
  return this.get(
3193
3209
  `/internal/price/roles/rules/categories/${r}`,
3194
3210
  {},
3195
- (e) => e.data.map((s) => new Qe(s))
3211
+ (e) => e.data.map((s) => new Ye(s))
3196
3212
  );
3197
3213
  }
3198
3214
  /**
@@ -3207,11 +3223,11 @@ class Zt extends p {
3207
3223
  return this.patch(
3208
3224
  `/internal/price/roles/rules/categories/${r}`,
3209
3225
  e,
3210
- (s) => s.data.map((i) => new Qe(i))
3226
+ (s) => s.data.map((i) => new Ye(i))
3211
3227
  );
3212
3228
  }
3213
3229
  }
3214
- class es extends De {
3230
+ class rs extends Te {
3215
3231
  /**
3216
3232
  * Возвращает пагинированный список свойств.
3217
3233
  *
@@ -3224,7 +3240,7 @@ class es extends De {
3224
3240
  getProperties(r, e, s) {
3225
3241
  return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
3226
3242
  const o = { ...i.data };
3227
- return o.data = o.data.map((c) => new oe(c)), o;
3243
+ return o.data = o.data.map((c) => new ce(c)), o;
3228
3244
  });
3229
3245
  }
3230
3246
  /**
@@ -3241,7 +3257,7 @@ class es extends De {
3241
3257
  ...s,
3242
3258
  type: e
3243
3259
  },
3244
- (i) => new oe(i.data)
3260
+ (i) => new ce(i.data)
3245
3261
  );
3246
3262
  }
3247
3263
  /**
@@ -3251,7 +3267,7 @@ class es extends De {
3251
3267
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3252
3268
  */
3253
3269
  getProperty(r) {
3254
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new oe(e.data));
3270
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ce(e.data));
3255
3271
  }
3256
3272
  /**
3257
3273
  * Обновляет существующее свойство.
@@ -3268,7 +3284,7 @@ class es extends De {
3268
3284
  ...i,
3269
3285
  type: s
3270
3286
  },
3271
- (o) => new oe(o.data)
3287
+ (o) => new ce(o.data)
3272
3288
  );
3273
3289
  }
3274
3290
  /**
@@ -3583,7 +3599,7 @@ class es extends De {
3583
3599
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3584
3600
  }
3585
3601
  }
3586
- class rs extends p {
3602
+ class ts extends p {
3587
3603
  /**
3588
3604
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
3589
3605
  *
@@ -3641,11 +3657,11 @@ class rs extends p {
3641
3657
  showHidden: i,
3642
3658
  withPriceCoefficients: s
3643
3659
  },
3644
- (o) => ge(o.data, (c) => new I(c))
3660
+ (o) => me(o.data, (c) => new k(c))
3645
3661
  );
3646
3662
  }
3647
3663
  }
3648
- function Xe(n, r, e) {
3664
+ function Ze(n, r, e) {
3649
3665
  let s;
3650
3666
  return n.some((i) => {
3651
3667
  if (i.type === e && i.id === r)
@@ -3654,37 +3670,37 @@ function Xe(n, r, e) {
3654
3670
  return !1;
3655
3671
  const o = i;
3656
3672
  if (o.products && o.products.length > 0) {
3657
- const c = Xe(o.products, r, e);
3673
+ const c = Ze(o.products, r, e);
3658
3674
  if (c)
3659
3675
  return s = c, !0;
3660
3676
  }
3661
3677
  if (o.categories && o.categories.length > 0) {
3662
- const c = Xe(o.categories, r, e);
3678
+ const c = Ze(o.categories, r, e);
3663
3679
  if (c)
3664
3680
  return s = c, !0;
3665
3681
  }
3666
3682
  return !1;
3667
3683
  }), s;
3668
3684
  }
3669
- function Ze(n) {
3685
+ function er(n) {
3670
3686
  const r = [];
3671
3687
  return n.forEach((e) => {
3672
3688
  if (r.push(e), e.type === "category") {
3673
3689
  const s = e;
3674
- s.products && s.products.length > 0 && r.push(...Ze(s.products)), s.categories && s.categories.length > 0 && r.push(...Ze(s.categories));
3690
+ s.products && s.products.length > 0 && r.push(...er(s.products)), s.categories && s.categories.length > 0 && r.push(...er(s.categories));
3675
3691
  }
3676
3692
  }), r;
3677
3693
  }
3678
- var ht = /* @__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))(ht || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
3679
- class gt extends R {
3694
+ var gt = /* @__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))(gt || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
3695
+ class mt extends w {
3680
3696
  }
3681
- class vr extends R {
3697
+ class Cr extends w {
3682
3698
  }
3683
- class ts extends R {
3699
+ class ss extends w {
3684
3700
  }
3685
- class mt extends R {
3701
+ class ft extends w {
3686
3702
  }
3687
- class M extends R {
3703
+ class M extends w {
3688
3704
  /**
3689
3705
  * Возвращает сгенерированную запись-описание физического лица.
3690
3706
  */
@@ -3697,19 +3713,19 @@ class M extends R {
3697
3713
  });
3698
3714
  }
3699
3715
  }
3700
- class Cr extends R {
3716
+ class Rr extends w {
3701
3717
  }
3702
- class ft extends R {
3718
+ class yt extends w {
3703
3719
  }
3704
- class yt extends R {
3720
+ class $e extends w {
3705
3721
  }
3706
- class ee extends R {
3722
+ class re extends w {
3707
3723
  }
3708
- class Rr extends R {
3724
+ class Pr extends w {
3709
3725
  }
3710
- class wt extends R {
3726
+ class wt extends w {
3711
3727
  }
3712
- class ss {
3728
+ class is {
3713
3729
  /**
3714
3730
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
3715
3731
  *
@@ -3728,11 +3744,11 @@ class ss {
3728
3744
  return r.id === 0 && r.slug === "-undefined-";
3729
3745
  }
3730
3746
  }
3731
- class Pr extends R {
3747
+ class Dr extends w {
3732
3748
  }
3733
- class Ar extends R {
3749
+ class Ar extends w {
3734
3750
  }
3735
- class qe extends re {
3751
+ class Ne extends te {
3736
3752
  /**
3737
3753
  * Инициализирует экземпляр класса {@link BankAccount}.
3738
3754
  *
@@ -3759,11 +3775,11 @@ class qe extends re {
3759
3775
  /**
3760
3776
  * Данные о валюте.
3761
3777
  */
3762
- t(this, "currency", new x());
3763
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new x(e.currency));
3778
+ t(this, "currency", new d());
3779
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new d(e.currency));
3764
3780
  }
3765
3781
  }
3766
- class Ne extends k {
3782
+ class Ue extends b {
3767
3783
  /**
3768
3784
  * Инициализирует экземпляр класса {@link Contact}.
3769
3785
  *
@@ -3782,7 +3798,7 @@ class Ne extends k {
3782
3798
  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;
3783
3799
  }
3784
3800
  }
3785
- class B extends Ne {
3801
+ class B extends Ue {
3786
3802
  /**
3787
3803
  * Инициализирует экземпляр класса {@link ContactPerson}.
3788
3804
  *
@@ -3814,10 +3830,10 @@ class B extends Ne {
3814
3830
  * Дата и время последнего удаления.
3815
3831
  */
3816
3832
  t(this, "deletedAt");
3817
- this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3833
+ this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3818
3834
  }
3819
3835
  }
3820
- class Dr extends k {
3836
+ class Tr extends b {
3821
3837
  /**
3822
3838
  * Инициализирует экземпляр класса {@link ContragentBase}.
3823
3839
  *
@@ -3833,7 +3849,7 @@ class Dr extends k {
3833
3849
  /**
3834
3850
  * Группа партнеров (направление деятельности).
3835
3851
  */
3836
- t(this, "partnerGroup", new ee());
3852
+ t(this, "partnerGroup", new re());
3837
3853
  /**
3838
3854
  * Список контактных лиц контрагента.
3839
3855
  */
@@ -3867,7 +3883,7 @@ class Dr extends k {
3867
3883
  */
3868
3884
  t(this, "updater");
3869
3885
  if (e) {
3870
- if (this.opf = new M(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ee(e.partnerGroup)), e.contacts) {
3886
+ if (this.opf = new M(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e.createdAt, this.creator = e.creator ? new L(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? R(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new L(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.contacts) {
3871
3887
  const s = [];
3872
3888
  e.contacts.forEach((i) => {
3873
3889
  s.push(new B(i));
@@ -3876,13 +3892,13 @@ class Dr extends k {
3876
3892
  if (e.bankAccounts) {
3877
3893
  const s = [];
3878
3894
  e.bankAccounts.forEach((i) => {
3879
- s.push(new qe(i));
3895
+ s.push(new Ne(i));
3880
3896
  }), this.bankAccounts = s;
3881
3897
  }
3882
3898
  }
3883
3899
  }
3884
3900
  }
3885
- class vt extends Dr {
3901
+ class vt extends Tr {
3886
3902
  /**
3887
3903
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3888
3904
  *
@@ -3892,7 +3908,7 @@ class vt extends Dr {
3892
3908
  super(r);
3893
3909
  }
3894
3910
  }
3895
- class Tr extends Dr {
3911
+ class $r extends Tr {
3896
3912
  /**
3897
3913
  * Инициализирует экземпляр класса {@link ContragentIc}.
3898
3914
  *
@@ -3935,7 +3951,7 @@ class Tr extends Dr {
3935
3951
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
3936
3952
  }
3937
3953
  }
3938
- class $r extends Tr {
3954
+ class ar extends $r {
3939
3955
  /**
3940
3956
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3941
3957
  *
@@ -3950,7 +3966,7 @@ class $r extends Tr {
3950
3966
  e && (this.kpp = e.kpp ?? "");
3951
3967
  }
3952
3968
  }
3953
- class Ct extends $r {
3969
+ class Ct extends ar {
3954
3970
  /**
3955
3971
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3956
3972
  *
@@ -3961,7 +3977,7 @@ class Ct extends $r {
3961
3977
  /**
3962
3978
  * Страна регистрации юридического лица нерезидента.
3963
3979
  */
3964
- t(this, "registrationCountry", new Z());
3980
+ t(this, "registrationCountry", new ee());
3965
3981
  /**
3966
3982
  * Регистрационный номер юридического лица нерезидента.
3967
3983
  */
@@ -3970,10 +3986,10 @@ class Ct extends $r {
3970
3986
  * Налоговый номер юридического лица нерезидента.
3971
3987
  */
3972
3988
  t(this, "taxNumber", "");
3973
- e && (this.registrationCountry = new Z(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3989
+ e && (this.registrationCountry = new ee(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
3974
3990
  }
3975
3991
  }
3976
- class ve {
3992
+ class Ce {
3977
3993
  /**
3978
3994
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
3979
3995
  *
@@ -3982,9 +3998,9 @@ class ve {
3982
3998
  static createInstance(r) {
3983
3999
  switch (r.opf.slug) {
3984
4000
  case q.Ic:
3985
- return new Tr(r);
3986
- case q.UlR:
3987
4001
  return new $r(r);
4002
+ case q.UlR:
4003
+ return new ar(r);
3988
4004
  case q.UlNr:
3989
4005
  return new Ct(r);
3990
4006
  default:
@@ -3992,7 +4008,7 @@ class ve {
3992
4008
  }
3993
4009
  }
3994
4010
  }
3995
- class Ie extends re {
4011
+ class Le extends te {
3996
4012
  /**
3997
4013
  * Инициализирует экземпляр класса {@link ContactRelation}.
3998
4014
  *
@@ -4032,10 +4048,10 @@ class Rt extends B {
4032
4048
  */
4033
4049
  addresses: []
4034
4050
  });
4035
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Ie(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Ie(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Ie(s))));
4051
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Le(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Le(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Le(s))));
4036
4052
  }
4037
4053
  }
4038
- class Ce extends rt {
4054
+ class Re extends tt {
4039
4055
  /**
4040
4056
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4041
4057
  *
@@ -4072,10 +4088,10 @@ class Ce extends rt {
4072
4088
  * Признак того, что указанный адрес является адресом транспортной компании.
4073
4089
  */
4074
4090
  t(this, "isTransportCompanyAddress");
4075
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new hr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new B(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;
4091
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new gr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new B(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;
4076
4092
  }
4077
4093
  }
4078
- class er extends te {
4094
+ class rr extends se {
4079
4095
  /**
4080
4096
  * Инициализирует экземпляр класса {@link Client}.
4081
4097
  *
@@ -4125,7 +4141,7 @@ class er extends te {
4125
4141
  * @inheritDoc
4126
4142
  */
4127
4143
  t(this, "extraData");
4128
- this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new ee(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Ce(u))) ?? [], this.channelPrimaryInterest = new vr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ar(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new N(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new X(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4144
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Re(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ar(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new N(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Z(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4129
4145
  }
4130
4146
  }
4131
4147
  class br {
@@ -4138,11 +4154,11 @@ class br {
4138
4154
  return Object.keys(this).forEach((e) => {
4139
4155
  const s = this[e];
4140
4156
  T(s) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
4141
- v(s) && s.trim().length === 0 || Ue(s.isNewRec) && s.isNewRec() || (r[e] = s);
4157
+ C(s) && s.trim().length === 0 || He(s.isNewRec) && s.isNewRec() || (r[e] = s);
4142
4158
  }), r;
4143
4159
  }
4144
4160
  }
4145
- class is extends br {
4161
+ class ns extends br {
4146
4162
  /**
4147
4163
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4148
4164
  *
@@ -4243,7 +4259,7 @@ class is extends br {
4243
4259
  * @inheritDoc
4244
4260
  */
4245
4261
  t(this, "lastOrder");
4246
- this.id = e == null ? void 0 : e.id, 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 = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new pe(e == null ? void 0 : e.region), this.country = new Z(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 S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(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((D) => new Pe(D))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new ze(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new O(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new M(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new N(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new ee(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
4262
+ this.id = e == null ? void 0 : e.id, 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 = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((A) => new Ae(A)), this.region = new he(e == null ? void 0 : e.region), this.country = new ee(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 S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(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((A) => new De(A))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((A) => new We(A))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((A) => new O(A)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new M(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new N(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((A) => new re(A)), this.contact = new Ue(e == null ? void 0 : e.contact), this.lastOrder = {
4247
4263
  createdAt: new S((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
4248
4264
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4249
4265
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
@@ -4258,7 +4274,7 @@ class is extends br {
4258
4274
  this.cities = [];
4259
4275
  break;
4260
4276
  case "region":
4261
- this.region = new pe();
4277
+ this.region = new he();
4262
4278
  break;
4263
4279
  case "isActive":
4264
4280
  this.isActive = !0;
@@ -4291,7 +4307,7 @@ class is extends br {
4291
4307
  this.partnerGroups = [];
4292
4308
  break;
4293
4309
  case "contact":
4294
- this.contact = new Ne();
4310
+ this.contact = new Ue();
4295
4311
  break;
4296
4312
  default:
4297
4313
  this[e] = void 0;
@@ -4308,7 +4324,7 @@ class is extends br {
4308
4324
  return !((s = e == null ? void 0 : e.createdAt) != null && s.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, e;
4309
4325
  }
4310
4326
  }
4311
- class Sr extends re {
4327
+ class Sr extends te {
4312
4328
  /**
4313
4329
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4314
4330
  *
@@ -4324,14 +4340,10 @@ class Sr extends re {
4324
4340
  * @inheritDoc
4325
4341
  */
4326
4342
  t(this, "creator");
4327
- /**
4328
- * @inheritDoc
4329
- */
4330
- t(this, "isApproved1c");
4331
- this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4343
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new L(e == null ? void 0 : e.creator);
4332
4344
  }
4333
4345
  }
4334
- class Pt extends k {
4346
+ class Pt extends b {
4335
4347
  /**
4336
4348
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4337
4349
  *
@@ -4368,10 +4380,10 @@ class Pt extends k {
4368
4380
  * @inheritDoc
4369
4381
  */
4370
4382
  t(this, "curators");
4371
- this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new ee(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new N(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Me(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new ze(u))) ?? void 0;
4383
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new N(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Be(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new We(u))) ?? void 0;
4372
4384
  }
4373
4385
  }
4374
- class At {
4386
+ class Dt {
4375
4387
  /**
4376
4388
  * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4377
4389
  *
@@ -4389,7 +4401,7 @@ class At {
4389
4401
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4390
4402
  }
4391
4403
  }
4392
- class ns extends At {
4404
+ class os extends Dt {
4393
4405
  /**
4394
4406
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4395
4407
  *
@@ -4420,7 +4432,7 @@ class ns extends At {
4420
4432
  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;
4421
4433
  }
4422
4434
  }
4423
- class os {
4435
+ class cs {
4424
4436
  /**
4425
4437
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4426
4438
  *
@@ -4438,7 +4450,7 @@ class os {
4438
4450
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4439
4451
  }
4440
4452
  }
4441
- class a extends De {
4453
+ class x extends Te {
4442
4454
  /**
4443
4455
  * Преобразует данные о клиенте в данные требуемые для запроса.
4444
4456
  *
@@ -4577,7 +4589,7 @@ class a extends De {
4577
4589
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4578
4590
  */
4579
4591
  getClient(r) {
4580
- return this.get(`/internal/clients/${r}`, {}, (e) => new er(e.data));
4592
+ return this.get(`/internal/clients/${r}`, {}, (e) => new rr(e.data));
4581
4593
  }
4582
4594
  /**
4583
4595
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4599,7 +4611,7 @@ class a extends De {
4599
4611
  i,
4600
4612
  (c) => {
4601
4613
  const u = { ...c.data };
4602
- return u.data = u.data.map((h) => new te(h)), u;
4614
+ return u.data = u.data.map((h) => new se(h)), u;
4603
4615
  },
4604
4616
  void 0,
4605
4617
  o
@@ -4625,7 +4637,7 @@ class a extends De {
4625
4637
  return this.getClientsList({
4626
4638
  groupOp: "and",
4627
4639
  groups: [],
4628
- filters: [{ field: "phone", op: We.Contains, value: r }]
4640
+ filters: [{ field: "phone", op: Je.Contains, value: r }]
4629
4641
  });
4630
4642
  }
4631
4643
  /**
@@ -4662,7 +4674,7 @@ class a extends De {
4662
4674
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4663
4675
  */
4664
4676
  createClientCommonData(r, e = {}) {
4665
- return this.post("/internal/clients", a.transformClientDataToRequest(r), (s) => new er(s.data), e);
4677
+ return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new rr(s.data), e);
4666
4678
  }
4667
4679
  /**
4668
4680
  * Обновляет данные указанного клиента.
@@ -4672,7 +4684,7 @@ class a extends De {
4672
4684
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4673
4685
  */
4674
4686
  updateClientCommonData(r, e = {}) {
4675
- return this.patch(`/internal/clients/${r.id}`, a.transformClientDataToRequest(r), void 0, e);
4687
+ return this.patch(`/internal/clients/${r.id}`, x.transformClientDataToRequest(r), void 0, e);
4676
4688
  }
4677
4689
  /**
4678
4690
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -4801,8 +4813,8 @@ class a extends De {
4801
4813
  createContragentClientData(r, e, s = {}) {
4802
4814
  return this.post(
4803
4815
  `/internal/clients/${r}/contragents`,
4804
- a.transformContragentClientDataToRequest(e),
4805
- (i) => ve.createInstance(i.data),
4816
+ x.transformContragentClientDataToRequest(e),
4817
+ (i) => Ce.createInstance(i.data),
4806
4818
  s
4807
4819
  );
4808
4820
  }
@@ -4817,8 +4829,8 @@ class a extends De {
4817
4829
  updateContragentClientData(r, e, s = {}) {
4818
4830
  return this.patch(
4819
4831
  `/internal/clients/${r}/contragents/${e.id}`,
4820
- a.transformContragentClientDataToRequest(e),
4821
- (i) => ve.createInstance(i.data),
4832
+ x.transformContragentClientDataToRequest(e),
4833
+ (i) => Ce.createInstance(i.data),
4822
4834
  s
4823
4835
  );
4824
4836
  }
@@ -4843,8 +4855,8 @@ class a extends De {
4843
4855
  createClientDeliveryAddress(r, e, s = {}) {
4844
4856
  return this.post(
4845
4857
  `/internal/clients/${r}/delivery-addresses`,
4846
- a.transformClientDeliveryAddressToRequest(e),
4847
- (i) => new Ce(i.data),
4858
+ x.transformClientDeliveryAddressToRequest(e),
4859
+ (i) => new Re(i.data),
4848
4860
  s
4849
4861
  );
4850
4862
  }
@@ -4859,8 +4871,8 @@ class a extends De {
4859
4871
  updateClientDeliveryAddress(r, e, s = {}) {
4860
4872
  return this.patch(
4861
4873
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4862
- a.transformClientDeliveryAddressToRequest(e),
4863
- (i) => new Ce(i.data),
4874
+ x.transformClientDeliveryAddressToRequest(e),
4875
+ (i) => new Re(i.data),
4864
4876
  s
4865
4877
  );
4866
4878
  }
@@ -4886,8 +4898,8 @@ class a extends De {
4886
4898
  createContragentBankAccount(r, e, s, i = {}) {
4887
4899
  return this.post(
4888
4900
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4889
- a.transformClientContragentBankAccountToRequest(s),
4890
- (o) => new qe(o.data),
4901
+ x.transformClientContragentBankAccountToRequest(s),
4902
+ (o) => new Ne(o.data),
4891
4903
  i
4892
4904
  );
4893
4905
  }
@@ -4903,8 +4915,8 @@ class a extends De {
4903
4915
  updateContragentBankAccount(r, e, s, i = {}) {
4904
4916
  return this.patch(
4905
4917
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4906
- a.transformClientContragentBankAccountToRequest(s),
4907
- (o) => new qe(o.data),
4918
+ x.transformClientContragentBankAccountToRequest(s),
4919
+ (o) => new Ne(o.data),
4908
4920
  i
4909
4921
  );
4910
4922
  }
@@ -5126,7 +5138,7 @@ class a extends De {
5126
5138
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5127
5139
  }
5128
5140
  }
5129
- const Q = class Q extends p {
5141
+ const Y = class Y extends p {
5130
5142
  /**
5131
5143
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5132
5144
  */
@@ -5136,7 +5148,7 @@ const Q = class Q extends p {
5136
5148
  * Время кэширования данных ответов на запросы (секунд).
5137
5149
  */
5138
5150
  t(this, "responseDataCacheTimeout");
5139
- this.responseDataCacheTimeout = L().config.http.responseDataCacheTimeout;
5151
+ this.responseDataCacheTimeout = I().config.http.responseDataCacheTimeout;
5140
5152
  }
5141
5153
  /**
5142
5154
  * Возвращает кэшированные данные.
@@ -5146,7 +5158,7 @@ const Q = class Q extends p {
5146
5158
  */
5147
5159
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5148
5160
  static getCachedResponse(e) {
5149
- const s = Q.responseDataCache.get(e);
5161
+ const s = Y.responseDataCache.get(e);
5150
5162
  if (s && s.validTo > /* @__PURE__ */ new Date())
5151
5163
  return s.val;
5152
5164
  }
@@ -5157,8 +5169,8 @@ const Q = class Q extends p {
5157
5169
  * @param data Данные для кэширования.
5158
5170
  */
5159
5171
  cacheResponse(e, s) {
5160
- Q.responseDataCache.set(e, {
5161
- validTo: Fr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5172
+ Y.responseDataCache.set(e, {
5173
+ validTo: jr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5162
5174
  val: s
5163
5175
  });
5164
5176
  }
@@ -5173,9 +5185,9 @@ const Q = class Q extends p {
5173
5185
  */
5174
5186
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5175
5187
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
5176
- const c = s + (Y(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? Q.getCachedResponse(c) : void 0;
5188
+ const c = s + (X(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? Y.getCachedResponse(c) : void 0;
5177
5189
  return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
5178
- const m = h.map((f) => Fe.instanceInitializer(e, f));
5190
+ const m = h.map((f) => je.instanceInitializer(e, f));
5179
5191
  return i && m && this.cacheResponse(s, m), m;
5180
5192
  });
5181
5193
  }
@@ -5183,9 +5195,9 @@ const Q = class Q extends p {
5183
5195
  /**
5184
5196
  * Кэш результатов запросов.
5185
5197
  */
5186
- t(Q, "responseDataCache", /* @__PURE__ */ new Map());
5187
- let he = Q;
5188
- class cs extends p {
5198
+ t(Y, "responseDataCache", /* @__PURE__ */ new Map());
5199
+ let ge = Y;
5200
+ class ls extends p {
5189
5201
  /**
5190
5202
  * Выполняет проверку занят ли указанный номер телефона.
5191
5203
  *
@@ -5199,7 +5211,7 @@ class cs extends p {
5199
5211
  });
5200
5212
  }
5201
5213
  }
5202
- class ls {
5214
+ class us {
5203
5215
  /**
5204
5216
  * Инициализирует экземпляр класса {@link VersionConfig}.
5205
5217
  *
@@ -5218,11 +5230,11 @@ class ls {
5218
5230
  * Текущая версия приложения.
5219
5231
  */
5220
5232
  t(this, "version");
5221
- this.date = v(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5233
+ this.date = C(r == null ? void 0 : r.date) ? R(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";
5222
5234
  }
5223
5235
  }
5224
- var Dt = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n))(Dt || {});
5225
- class us extends p {
5236
+ var At = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n))(At || {});
5237
+ class ps extends p {
5226
5238
  /**
5227
5239
  * Возвращает настройки указанного конфигуратора для указанной категории.
5228
5240
  *
@@ -5252,7 +5264,7 @@ class us extends p {
5252
5264
  const o = this.get(
5253
5265
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5254
5266
  { params: s, client_id: e },
5255
- (u) => new I(u.data)
5267
+ (u) => new k(u.data)
5256
5268
  );
5257
5269
  return o.catch((u) => {
5258
5270
  this.errorResponseHandler(u, i);
@@ -5313,18 +5325,18 @@ class us extends p {
5313
5325
  });
5314
5326
  }
5315
5327
  }
5316
- class ps {
5328
+ class hs {
5317
5329
  /**
5318
5330
  * Возвращает диапазон дат по умолчанию.
5319
5331
  */
5320
5332
  static defaultDateRanges() {
5321
- const r = jr(/* @__PURE__ */ new Date(), 1);
5333
+ const r = Gr(/* @__PURE__ */ new Date(), 1);
5322
5334
  return {
5323
5335
  // 'Следующий рабочий день' - это значение по-умолчанию
5324
- nextWorkingDay: { label: "Следующий рабочий день", from: Er(r), to: Jr(r) },
5325
- today: { label: "Сегодня", from: Oe(), to: Wr() },
5326
- yesterday: { label: "Вчера", from: zr(), to: Br() },
5327
- tomorrow: { label: "Завтра", from: Mr(), to: Gr() }
5336
+ nextWorkingDay: { label: "Следующий рабочий день", from: Vr(r), to: Er(r) },
5337
+ today: { label: "Сегодня", from: _e(), to: Jr() },
5338
+ yesterday: { label: "Вчера", from: Wr(), to: zr() },
5339
+ tomorrow: { label: "Завтра", from: Br(), to: Mr() }
5328
5340
  };
5329
5341
  }
5330
5342
  }
@@ -5356,16 +5368,16 @@ class kr {
5356
5368
  return (e = r.properties) != null && e.lengthStep ? r.properties.lengthStep : !((s = r.properties) != null && s.ignoreMinCountCheck) && ((i = r.properties) != null && i.minCount) ? r.properties.minCount : 0.01;
5357
5369
  }
5358
5370
  }
5359
- function hs(n, r) {
5371
+ function gs(n, r) {
5360
5372
  const e = [2, 0, 1, 1, 1, 2];
5361
5373
  return r[n % 100 > 4 && n % 100 < 20 ? 2 : e[Math.min(n % 10, 5)]];
5362
5374
  }
5363
- class gs {
5375
+ class ms {
5364
5376
  /**
5365
5377
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5366
5378
  */
5367
5379
  static generateUndefinedManagerInstance() {
5368
- return new Pe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5380
+ return new De({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5369
5381
  }
5370
5382
  /**
5371
5383
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5376,15 +5388,15 @@ class gs {
5376
5388
  return r.id === 0 && r.guid === "-undefined-";
5377
5389
  }
5378
5390
  }
5379
- class Tt extends he {
5391
+ class Tt extends ge {
5380
5392
  /**
5381
5393
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5382
5394
  */
5383
5395
  async getManagers() {
5384
- const r = "/internal/managers", e = he.getCachedResponse(r);
5396
+ const r = "/internal/managers", e = ge.getCachedResponse(r);
5385
5397
  if (e)
5386
5398
  return e;
5387
- const i = (await this.get(r)).data.map((o) => Fe.instanceInitializer(Pe, o));
5399
+ const i = (await this.get(r)).data.map((o) => je.instanceInitializer(De, o));
5388
5400
  return this.cacheResponse(r, i), i;
5389
5401
  }
5390
5402
  }
@@ -5420,15 +5432,15 @@ class Ir extends Sr {
5420
5432
  /**
5421
5433
  * @inheritDoc
5422
5434
  */
5423
- t(this, "salesDirection");
5435
+ t(this, "statusDetail");
5424
5436
  /**
5425
5437
  * @inheritDoc
5426
5438
  */
5427
- t(this, "pendingAt");
5439
+ t(this, "salesDirection");
5428
5440
  /**
5429
5441
  * @inheritDoc
5430
5442
  */
5431
- t(this, "processedAt");
5443
+ t(this, "attachedAt");
5432
5444
  /**
5433
5445
  * @inheritDoc
5434
5446
  */
@@ -5445,20 +5457,20 @@ class Ir extends Sr {
5445
5457
  * @inheritDoc
5446
5458
  */
5447
5459
  t(this, "isLargeOrder");
5448
- this.client = new te(e == null ? void 0 : e.client), this.payment = {
5460
+ this.client = new se(e == null ? void 0 : e.client), this.payment = {
5449
5461
  type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
5450
5462
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5451
5463
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5452
5464
  }, this.delivery = {
5453
5465
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5454
- date: v((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
5455
- address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Ce(e.delivery.address) : void 0,
5456
- warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new X(e.delivery.warehouse) : void 0
5457
- }, this.attachedUser = e != null && e.attachedUser ? new d(e == null ? void 0 : e.attachedUser) : void 0, this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.pendingAt = v(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = v(e == null ? void 0 : e.processedAt) ? C(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
5466
+ date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? R(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
5467
+ address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Re(e.delivery.address) : void 0,
5468
+ warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new Z(e.delivery.warehouse) : void 0
5469
+ }, this.attachedUser = e != null && e.attachedUser ? new L(e == null ? void 0 : e.attachedUser) : void 0, this.status = new $e(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.attachedAt = C(e == null ? void 0 : e.attachedAt) ? R(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !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;
5458
5470
  }
5459
5471
  }
5460
5472
  var $t = /* @__PURE__ */ ((n) => (n.New = "new", n.WorkedOut = "worked_out", n.Pending = "pending", n.Completed = "completed", n.Declined = "declined", n.Deleted = "deleted", n))($t || {});
5461
- class b extends he {
5473
+ class a extends ge {
5462
5474
  /**
5463
5475
  * Возвращает {@link Promise} для получения данных указанного справочника.
5464
5476
  *
@@ -5467,39 +5479,39 @@ class b extends he {
5467
5479
  * и использовать в случае аналогичных запросов.
5468
5480
  */
5469
5481
  getReference(r, e = !1) {
5470
- return this.getTypedDataArrayRequester(gt, `/internal/references/${r}`, e);
5482
+ return this.getTypedDataArrayRequester(mt, `/internal/references/${r}`, e);
5471
5483
  }
5472
5484
  /**
5473
5485
  * Возвращает {@link Promise} для получения справочника данных о канале
5474
5486
  * первичного интереса.
5475
5487
  */
5476
5488
  getChannelPrimaryInterest() {
5477
- return this.getTypedDataArrayRequester(vr, "/internal/references/channel-primary-interest", !0);
5489
+ return this.getTypedDataArrayRequester(Cr, "/internal/references/channel-primary-interest", !0);
5478
5490
  }
5479
5491
  /**
5480
5492
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
5481
5493
  */
5482
5494
  getContactPositions() {
5483
- return this.getTypedDataArrayRequester(mt, "/internal/references/contact-position", !0);
5495
+ return this.getTypedDataArrayRequester(ft, "/internal/references/contact-position", !0);
5484
5496
  }
5485
5497
  /**
5486
5498
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
5487
5499
  */
5488
5500
  getCuratedDirection() {
5489
- return this.getTypedDataArrayRequester(Be, "/internal/references/curated-direction", !0);
5501
+ return this.getTypedDataArrayRequester(ze, "/internal/references/curated-direction", !0);
5490
5502
  }
5491
5503
  /**
5492
5504
  * Возвращает {@link Promise} для получения справочника списка валют.
5493
5505
  */
5494
5506
  getCurrency() {
5495
- return this.getTypedDataArrayRequester(x, "/public/references/currency", !0);
5507
+ return this.getTypedDataArrayRequester(d, "/public/references/currency", !0);
5496
5508
  }
5497
5509
  /**
5498
5510
  * Возвращает {@link Promise} для получения справочника данных
5499
5511
  * групп партнеров (направлений деятельности).
5500
5512
  */
5501
5513
  getPartnerGroup() {
5502
- return this.getTypedDataArrayRequester(ee, "/internal/references/partner-group", !0);
5514
+ return this.getTypedDataArrayRequester(re, "/internal/references/partner-group", !0);
5503
5515
  }
5504
5516
  /**
5505
5517
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
@@ -5511,31 +5523,31 @@ class b extends he {
5511
5523
  * Возвращает {@link Promise} для получения справочника операторов.
5512
5524
  */
5513
5525
  getOperators() {
5514
- return this.getTypedDataArrayRequester(Cr, "/internal/references/operator", !0);
5526
+ return this.getTypedDataArrayRequester(Rr, "/internal/references/operator", !0);
5515
5527
  }
5516
5528
  /**
5517
5529
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
5518
5530
  */
5519
5531
  getOrderPaymentStatuses() {
5520
- return this.getTypedDataArrayRequester(ft, "/public/references/order-payment-status", !0);
5532
+ return this.getTypedDataArrayRequester(yt, "/public/references/order-payment-status", !0);
5521
5533
  }
5522
5534
  /**
5523
5535
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
5524
5536
  */
5525
5537
  getOrderStatuses() {
5526
- return this.getTypedDataArrayRequester(yt, "/internal/references/order-status", !0);
5538
+ return this.getTypedDataArrayRequester($e, "/internal/references/order-status", !0);
5527
5539
  }
5528
5540
  /**
5529
5541
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
5530
5542
  */
5531
5543
  getPaymentTypes() {
5532
- return this.getTypedDataArrayRequester(Rr, "/public/references/payment-type", !0);
5544
+ return this.getTypedDataArrayRequester(Pr, "/public/references/payment-type", !0);
5533
5545
  }
5534
5546
  /**
5535
5547
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
5536
5548
  */
5537
5549
  getResourceTypes() {
5538
- return this.getTypedDataArrayRequester(Pr, "/internal/references/resource-type", !0);
5550
+ return this.getTypedDataArrayRequester(Dr, "/internal/references/resource-type", !0);
5539
5551
  }
5540
5552
  /**
5541
5553
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -5563,7 +5575,7 @@ class b extends he {
5563
5575
  * @param term Терм поиска.
5564
5576
  */
5565
5577
  searchRegion(r) {
5566
- return this.getTypedDataArrayRequester(pe, `/internal/references/region-with-country/search?term=${r}`);
5578
+ return this.getTypedDataArrayRequester(he, `/internal/references/region-with-country/search?term=${r}`);
5567
5579
  }
5568
5580
  /**
5569
5581
  * Выполняет поиск данных о странах по терму в названии.
@@ -5571,7 +5583,7 @@ class b extends he {
5571
5583
  * @param term Терм поиска.
5572
5584
  */
5573
5585
  searchCountry(r) {
5574
- return this.getTypedDataArrayRequester(Z, `/internal/references/country/search?term=${r}`);
5586
+ return this.getTypedDataArrayRequester(ee, `/internal/references/country/search?term=${r}`);
5575
5587
  }
5576
5588
  /**
5577
5589
  * Возвращает {@link Promise} для получения справочника типов доставки.
@@ -5583,19 +5595,19 @@ class b extends he {
5583
5595
  * Возвращает {@link Promise} для получения справочника складов.
5584
5596
  */
5585
5597
  getWarehouses() {
5586
- return this.getTypedDataArrayRequester(X, "/public/references/warehouse", !0);
5598
+ return this.getTypedDataArrayRequester(Z, "/public/references/warehouse", !0);
5587
5599
  }
5588
5600
  /**
5589
5601
  * Возвращает {@link Promise} для получения справочника типов свойств.
5590
5602
  */
5591
5603
  getPropertyTypes() {
5592
- return this.getTypedDataArrayRequester(wr, "/internal/references/property-type", !0);
5604
+ return this.getTypedDataArrayRequester(vr, "/internal/references/property-type", !0);
5593
5605
  }
5594
5606
  /**
5595
5607
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
5596
5608
  */
5597
5609
  getPriceCoefficients() {
5598
- return this.getTypedDataArrayRequester(Re, "/internal/references/price-coefficient", !0);
5610
+ return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
5599
5611
  }
5600
5612
  /**
5601
5613
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
@@ -5605,7 +5617,7 @@ class b extends he {
5605
5617
  }
5606
5618
  }
5607
5619
  const $ = z("common.references_private", () => {
5608
- const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), se = y(void 0), ie = y(void 0), W = y(void 0), J = y(void 0), Te = y(void 0), $e = y(void 0), l = y(void 0);
5620
+ const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), m = y(void 0), f = y(void 0), A = y(void 0), ie = y(void 0), ne = y(void 0), W = y(void 0), J = y(void 0), ae = y(void 0), be = y(void 0), l = y(void 0);
5609
5621
  return {
5610
5622
  /**
5611
5623
  * Список загружаемых/загруженных на данный момент значений.
@@ -5654,15 +5666,15 @@ const $ = z("common.references_private", () => {
5654
5666
  /**
5655
5667
  * Справочник групп партнеров.
5656
5668
  */
5657
- partnerGroupReference: D,
5669
+ partnerGroupReference: A,
5658
5670
  /**
5659
5671
  * Справочник типов файлов продукктов/категорий.
5660
5672
  */
5661
- productFileTypeReference: se,
5673
+ productFileTypeReference: ie,
5662
5674
  /**
5663
5675
  * Справочник типов ресурсов.
5664
5676
  */
5665
- resourceTypesReference: ie,
5677
+ resourceTypesReference: ne,
5666
5678
  /**
5667
5679
  * Справочник направлений продаж.
5668
5680
  */
@@ -5674,107 +5686,107 @@ const $ = z("common.references_private", () => {
5674
5686
  /**
5675
5687
  * Справочник складов.
5676
5688
  */
5677
- warehousesReference: Te,
5689
+ warehousesReference: ae,
5678
5690
  /**
5679
5691
  * Справочник типов свойств.
5680
5692
  */
5681
- propertyTypesReference: $e,
5693
+ propertyTypesReference: be,
5682
5694
  /**
5683
5695
  * Справочник коэффициентов цен.
5684
5696
  */
5685
5697
  priceCoefficientsReference: l
5686
5698
  };
5687
- }), ms = z("common.references", () => {
5688
- const n = A(() => {
5699
+ }), fs = z("common.references", () => {
5700
+ const n = D(() => {
5689
5701
  const l = $();
5690
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(b).getChannelPrimaryInterest().then((g) => {
5702
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(a).getChannelPrimaryInterest().then((g) => {
5691
5703
  l.channelPrimaryInterestReference = g;
5692
- }).catch(w)), l.channelPrimaryInterestReference;
5693
- }), r = A(() => {
5704
+ }).catch(v)), l.channelPrimaryInterestReference;
5705
+ }), r = D(() => {
5694
5706
  const l = $();
5695
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(b).getContactPositions().then((g) => {
5707
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(a).getContactPositions().then((g) => {
5696
5708
  l.contactPositionsReference = g;
5697
- }).catch(w)), l.contactPositionsReference;
5698
- }), e = A(() => {
5709
+ }).catch(v)), l.contactPositionsReference;
5710
+ }), e = D(() => {
5699
5711
  const l = $();
5700
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(b).getCurrency().then((g) => {
5712
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(a).getCurrency().then((g) => {
5701
5713
  l.currencyReference = g;
5702
- }).catch(w)), l.currencyReference;
5703
- }), s = A(() => {
5714
+ }).catch(v)), l.currencyReference;
5715
+ }), s = D(() => {
5704
5716
  const l = $();
5705
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(b).getOpf().then((g) => {
5717
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(a).getOpf().then((g) => {
5706
5718
  l.opfReference = g;
5707
- }).catch(w)), l.opfReference;
5708
- }), i = A(() => {
5719
+ }).catch(v)), l.opfReference;
5720
+ }), i = D(() => {
5709
5721
  const l = $();
5710
- return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, p.getInstance(b).getOperators().then((g) => {
5722
+ return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, p.getInstance(a).getOperators().then((g) => {
5711
5723
  l.operatorReference = g;
5712
- }).catch(w)), l.operatorReference;
5713
- }), o = A(() => {
5724
+ }).catch(v)), l.operatorReference;
5725
+ }), o = D(() => {
5714
5726
  const l = $();
5715
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(b).getOrderPaymentStatuses().then((g) => {
5727
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(a).getOrderPaymentStatuses().then((g) => {
5716
5728
  l.orderPaymentStatusReference = g;
5717
- }).catch(w)), l.orderPaymentStatusReference;
5718
- }), c = A(() => {
5729
+ }).catch(v)), l.orderPaymentStatusReference;
5730
+ }), c = D(() => {
5719
5731
  const l = $();
5720
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(b).getOrderStatuses().then((g) => {
5732
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(a).getOrderStatuses().then((g) => {
5721
5733
  l.orderStatusReference = g;
5722
- }).catch(w)), l.orderStatusReference;
5723
- }), u = A(() => {
5734
+ }).catch(v)), l.orderStatusReference;
5735
+ }), u = D(() => {
5724
5736
  const l = $();
5725
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(b).getPaymentTypes().then((g) => {
5737
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(a).getPaymentTypes().then((g) => {
5726
5738
  l.paymentTypeReference = g;
5727
- }).catch(w)), l.paymentTypeReference;
5728
- }), h = A(() => {
5739
+ }).catch(v)), l.paymentTypeReference;
5740
+ }), h = D(() => {
5729
5741
  const l = $();
5730
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(b).getPartnerGroup().then((g) => {
5742
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(a).getPartnerGroup().then((g) => {
5731
5743
  l.partnerGroupReference = g;
5732
- }).catch(w)), l.partnerGroupReference;
5733
- }), m = A(() => {
5744
+ }).catch(v)), l.partnerGroupReference;
5745
+ }), m = D(() => {
5734
5746
  const l = $();
5735
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(b).getProductFileType().then((g) => {
5747
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(a).getProductFileType().then((g) => {
5736
5748
  l.productFileTypeReference = g;
5737
- }).catch(w)), l.productFileTypeReference;
5738
- }), f = A(() => {
5749
+ }).catch(v)), l.productFileTypeReference;
5750
+ }), f = D(() => {
5739
5751
  const l = $();
5740
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(b).getResourceTypes().then((g) => {
5752
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(a).getResourceTypes().then((g) => {
5741
5753
  l.resourceTypesReference = g;
5742
- }).catch(w)), l.resourceTypesReference;
5743
- }), D = A(() => {
5754
+ }).catch(v)), l.resourceTypesReference;
5755
+ }), A = D(() => {
5744
5756
  const l = $();
5745
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(b).getSalesDirections().then((g) => {
5757
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(a).getSalesDirections().then((g) => {
5746
5758
  l.salesDirectionsReference = g;
5747
- }).catch(w)), l.salesDirectionsReference;
5748
- }), se = A(() => {
5759
+ }).catch(v)), l.salesDirectionsReference;
5760
+ }), ie = D(() => {
5749
5761
  const l = $();
5750
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(b).getSourcePrimaryInterest().then((g) => {
5762
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(a).getSourcePrimaryInterest().then((g) => {
5751
5763
  l.sourcePrimaryInterestReference = g;
5752
- }).catch(w)), l.sourcePrimaryInterestReference;
5753
- }), ie = A(() => {
5764
+ }).catch(v)), l.sourcePrimaryInterestReference;
5765
+ }), ne = D(() => {
5754
5766
  const l = $();
5755
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(b).getDeliveryTypes().then((g) => {
5767
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(a).getDeliveryTypes().then((g) => {
5756
5768
  l.deliveryTypeReference = g;
5757
- }).catch(w)), l.deliveryTypeReference;
5758
- }), W = A(() => {
5769
+ }).catch(v)), l.deliveryTypeReference;
5770
+ }), W = D(() => {
5759
5771
  const l = $();
5760
5772
  return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Tt).getManagers().then((g) => {
5761
5773
  l.managersList = g;
5762
- }).catch(w)), l.managersList;
5763
- }), J = A(() => {
5774
+ }).catch(v)), l.managersList;
5775
+ }), J = D(() => {
5764
5776
  const l = $();
5765
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(b).getWarehouses().then((g) => {
5777
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(a).getWarehouses().then((g) => {
5766
5778
  l.warehousesReference = g;
5767
- }).catch(w)), l.warehousesReference;
5768
- }), Te = A(() => {
5779
+ }).catch(v)), l.warehousesReference;
5780
+ }), ae = D(() => {
5769
5781
  const l = $();
5770
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(b).getPropertyTypes().then((g) => {
5782
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(a).getPropertyTypes().then((g) => {
5771
5783
  l.propertyTypesReference = g;
5772
- }).catch(w)), l.propertyTypesReference;
5773
- }), $e = A(() => {
5784
+ }).catch(v)), l.propertyTypesReference;
5785
+ }), be = D(() => {
5774
5786
  const l = $();
5775
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(b).getPriceCoefficients().then((g) => {
5787
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(a).getPriceCoefficients().then((g) => {
5776
5788
  l.priceCoefficientsReference = g;
5777
- }).catch(w)), l.priceCoefficientsReference;
5789
+ }).catch(v)), l.priceCoefficientsReference;
5778
5790
  });
5779
5791
  return {
5780
5792
  /**
@@ -5824,15 +5836,15 @@ const $ = z("common.references_private", () => {
5824
5836
  /**
5825
5837
  * Справочник направлений продаж.
5826
5838
  */
5827
- salesDirectionsReference: D,
5839
+ salesDirectionsReference: A,
5828
5840
  /**
5829
5841
  * Справочник каналов первичного интереса.
5830
5842
  */
5831
- sourcePrimaryInterestsReference: se,
5843
+ sourcePrimaryInterestsReference: ie,
5832
5844
  /**
5833
5845
  * Справочник типов доставки.
5834
5846
  */
5835
- deliveryTypeReference: ie,
5847
+ deliveryTypeReference: ne,
5836
5848
  /**
5837
5849
  * Список менеджеров.
5838
5850
  */
@@ -5844,14 +5856,14 @@ const $ = z("common.references_private", () => {
5844
5856
  /**
5845
5857
  * Справочник типов свойств.
5846
5858
  */
5847
- propertyTypesReference: Te,
5859
+ propertyTypesReference: ae,
5848
5860
  /**
5849
5861
  * Справочник коэффициентов цен.
5850
5862
  */
5851
- priceCoefficientsReference: $e
5863
+ priceCoefficientsReference: be
5852
5864
  };
5853
5865
  });
5854
- class fs extends br {
5866
+ class ys extends br {
5855
5867
  /**
5856
5868
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
5857
5869
  *
@@ -5904,10 +5916,6 @@ class fs extends br {
5904
5916
  * @inheritDoc
5905
5917
  */
5906
5918
  t(this, "isApproved");
5907
- /**
5908
- * @inheritDoc
5909
- */
5910
- t(this, "isApproved1c");
5911
5919
  /**
5912
5920
  * @inheritDoc
5913
5921
  */
@@ -5919,19 +5927,19 @@ class fs extends br {
5919
5927
  /**
5920
5928
  * @inheritDoc
5921
5929
  */
5922
- t(this, "pendingAt", new S());
5930
+ t(this, "attachedAt", new S());
5923
5931
  /**
5924
5932
  * @inheritDoc
5925
5933
  */
5926
- t(this, "processedAt", new S());
5934
+ t(this, "salesDirections");
5927
5935
  /**
5928
5936
  * @inheritDoc
5929
5937
  */
5930
- t(this, "salesDirections");
5938
+ t(this, "status");
5931
5939
  /**
5932
5940
  * @inheritDoc
5933
5941
  */
5934
- t(this, "status");
5942
+ t(this, "statusDetail");
5935
5943
  /**
5936
5944
  * @inheritDoc
5937
5945
  */
@@ -5948,7 +5956,15 @@ class fs extends br {
5948
5956
  * @inheritDoc
5949
5957
  */
5950
5958
  t(this, "isLargeOrder");
5951
- this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((c) => new Cr(c)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new te(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new d(e.creator) : void 0, this.deliveryDate = new S(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((c) => new Ae(c)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isApproved1c = e == null ? void 0 : e.isApproved1c, 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.pendingAt = new S(e == null ? void 0 : e.pendingAt), this.processedAt = new S(e == null ? void 0 : e.processedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((c) => new O(c)), this.status = e == null ? void 0 : e.status, this.deliveryType = e != null && e.deliveryType ? new N(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Rr(e.paymentType) : void 0, this.warehouse = e != null && e.warehouse ? new X(e.warehouse) : void 0;
5959
+ /**
5960
+ * @inheritDoc
5961
+ */
5962
+ t(this, "isToProcess");
5963
+ /**
5964
+ * @inheritDoc
5965
+ */
5966
+ t(this, "onlyMyRegions");
5967
+ this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((c) => new Rr(c)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new se(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new L(e.creator) : void 0, this.deliveryDate = new S(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((c) => new Ae(c)), 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 S(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((c) => new O(c)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new N(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Pr(e.paymentType) : void 0, this.warehouse = e != null && e.warehouse ? new Z(e.warehouse) : void 0, this.isToProcess = e == null ? void 0 : e.isToProcess;
5952
5968
  }
5953
5969
  /**
5954
5970
  * @inheritDoc
@@ -5970,11 +5986,8 @@ class fs extends br {
5970
5986
  case "clientCities":
5971
5987
  this.clientCities = [];
5972
5988
  break;
5973
- case "pendingAt":
5974
- this.pendingAt.from = null, this.pendingAt.to = null;
5975
- break;
5976
- case "processedAt":
5977
- this.processedAt.from = null, this.processedAt.to = null;
5989
+ case "attachedAt":
5990
+ this.attachedAt.from = null, this.attachedAt.to = null;
5978
5991
  break;
5979
5992
  case "salesDirection":
5980
5993
  this.salesDirections = [];
@@ -5983,7 +5996,7 @@ class fs extends br {
5983
5996
  this.status = [];
5984
5997
  break;
5985
5998
  case "warehouse":
5986
- this.warehouse = new X();
5999
+ this.warehouse = new Z();
5987
6000
  break;
5988
6001
  default:
5989
6002
  this[e] = void 0;
@@ -5995,12 +6008,12 @@ class fs extends br {
5995
6008
  * @inheritDoc
5996
6009
  */
5997
6010
  asClearRaw() {
5998
- var s, i, o, c, u, h, m, f;
6011
+ var s, i, o, c, u, h;
5999
6012
  const e = super.asClearRaw();
6000
- return !((s = e == null ? void 0 : e.createdAt) != null && s.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.pendingAt) != null && u.from) && !((h = e == null ? void 0 : e.pendingAt) != null && h.to) && delete e.pendingAt, !((m = e == null ? void 0 : e.processedAt) != null && m.from) && !((f = e == null ? void 0 : e.processedAt) != null && f.to) && delete e.processedAt, e;
6013
+ return !((s = e == null ? void 0 : e.createdAt) != null && s.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) && !((h = e == null ? void 0 : e.attachedAt) != null && h.to) && delete e.attachedAt, e;
6001
6014
  }
6002
6015
  }
6003
- class bt extends gr {
6016
+ class at extends mr {
6004
6017
  /**
6005
6018
  * Инициализирует экземпляр класса {@link OrderItem}.
6006
6019
  *
@@ -6048,16 +6061,17 @@ class bt extends gr {
6048
6061
  * @inheritDoc
6049
6062
  */
6050
6063
  t(this, "currency");
6051
- this.product = new j(e.product), this.currency = new x(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
6064
+ this.product = new j(e.product), this.currency = new d(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
6052
6065
  }
6053
6066
  }
6054
- class Le extends Ir {
6067
+ class K extends Ir {
6055
6068
  /**
6056
6069
  * Инициализирует экземпляр класса {@link Order}.
6057
6070
  *
6058
6071
  * @param data Данные для первоначальной инициализации.
6059
6072
  */
6060
6073
  constructor(e) {
6074
+ var s;
6061
6075
  super(e);
6062
6076
  /**
6063
6077
  * @inheritDoc
@@ -6091,10 +6105,48 @@ class Le extends Ir {
6091
6105
  * @inheritDoc
6092
6106
  */
6093
6107
  t(this, "isAllowProcessingWithoutPayment");
6094
- this.products = (e.products ?? []).map((s) => new bt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ve.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new R(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
6108
+ /**
6109
+ * @inheritDoc
6110
+ */
6111
+ t(this, "nextStatuses");
6112
+ /**
6113
+ * @inheritDoc
6114
+ */
6115
+ t(this, "operatorsComment");
6116
+ /**
6117
+ * @inheritDoc
6118
+ */
6119
+ t(this, "operatorsForWarehouseComment");
6120
+ this.products = (e.products ?? []).map((i) => new at(i)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (s = e.nextStatuses) == null ? void 0 : s.map((i) => new $e(i)), this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment;
6095
6121
  }
6096
6122
  }
6097
- class ys extends De {
6123
+ class bt {
6124
+ /**
6125
+ * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
6126
+ *
6127
+ * @param data Данные для первоначальной инициализации.
6128
+ */
6129
+ constructor(r) {
6130
+ /**
6131
+ * @inheritDoc
6132
+ */
6133
+ t(this, "user");
6134
+ /**
6135
+ * @inheritDoc
6136
+ */
6137
+ t(this, "status");
6138
+ /**
6139
+ * @inheritDoc
6140
+ */
6141
+ t(this, "statusDetail");
6142
+ /**
6143
+ * @inheritDoc
6144
+ */
6145
+ t(this, "createdAt");
6146
+ this.user = new L(r == null ? void 0 : r.user), this.status = new $e(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = C(r == null ? void 0 : r.createdAt) ? R(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6147
+ }
6148
+ }
6149
+ class ws extends Te {
6098
6150
  /**
6099
6151
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
6100
6152
  *
@@ -6150,9 +6202,25 @@ class ys extends De {
6150
6202
  * Возвращает данные заказа с указанным идентификатором.
6151
6203
  *
6152
6204
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
6205
+ *
6206
+ * @see /doc/api/internal#/Заказы/api_internal_orders_get
6153
6207
  */
6154
6208
  getOrder(r) {
6155
- return this.get(`/internal/orders/${r}`, {}, (e) => new Le(e.data));
6209
+ return this.get(`/internal/orders/${r}`, {}, (e) => new K(e.data));
6210
+ }
6211
+ /**
6212
+ * Обновляет данные заказа без изменения состава товаров и возвращает обновлённые данные заказа.
6213
+ *
6214
+ * @param orderId Идентификатор заказа.
6215
+ * @param data Данные для обновления заказа.
6216
+ * @param validationFieldResultData Список полей, для которых необходимо
6217
+ * установить данные об ошибках валидации
6218
+ * в случае ошибок в запросах.
6219
+ *
6220
+ * @see /doc/api/internal#/Заказы/api_internal_orders_update
6221
+ */
6222
+ updateOrder(r, e, s = {}) {
6223
+ return this.patch(`/internal/orders/${r}`, e, (i) => new K(i.data), s);
6156
6224
  }
6157
6225
  /**
6158
6226
  * Добавляет продукт в заказ и возвращает обновлённые данные заказа.
@@ -6180,10 +6248,57 @@ class ys extends De {
6180
6248
  is_additional_sale: e.isAdditionalSale,
6181
6249
  ...e.configuratorParams
6182
6250
  },
6183
- (i) => new Le(i.data),
6251
+ (i) => new K(i.data),
6184
6252
  s
6185
6253
  );
6186
6254
  }
6255
+ /**
6256
+ * Изменяет статус заказа и возвращает обновлённые данные заказа.
6257
+ *
6258
+ * @param orderId Идентификатор заказа.
6259
+ * @param status Slug нового статуса заказа.
6260
+ * @param statusDetail Slug детализирующего статуса заказа.
6261
+ * @param validationFieldResultData Список полей, для которых необходимо
6262
+ * установить данные об ошибках валидации
6263
+ * в случае ошибок в запросах.
6264
+ *
6265
+ * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
6266
+ */
6267
+ changeOrderStatus(r, e, s, i = {}) {
6268
+ return this.patch(
6269
+ `/internal/orders/${r}/status`,
6270
+ {
6271
+ status: e,
6272
+ statusDetail: s
6273
+ },
6274
+ (o) => new K(o.data),
6275
+ i
6276
+ );
6277
+ }
6278
+ /**
6279
+ * Возвращает историю изменения статусов заказа.
6280
+ *
6281
+ * @param orderId Идентификатор заказа.
6282
+ *
6283
+ * @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
6284
+ */
6285
+ getOrderStatusHistory(r) {
6286
+ return this.get(
6287
+ `/internal/orders/${r}/history`,
6288
+ {},
6289
+ (e) => e.data.map((s) => new bt(s))
6290
+ );
6291
+ }
6292
+ /**
6293
+ * Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
6294
+ *
6295
+ * @param orderId Идентификатор заказа.
6296
+ *
6297
+ * @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
6298
+ */
6299
+ deleteOrderAttachedFile(r) {
6300
+ return this.delete(`/internal/orders/${r}/file/attached`, (e) => new K(e.data));
6301
+ }
6187
6302
  /**
6188
6303
  * Изменяет продукт заказа и возвращает обновлённые данные заказа.
6189
6304
  *
@@ -6210,12 +6325,12 @@ class ys extends De {
6210
6325
  marker: s.marker,
6211
6326
  ...s.configuratorParams
6212
6327
  },
6213
- (o) => new Le(o.data),
6328
+ (o) => new K(o.data),
6214
6329
  i
6215
6330
  );
6216
6331
  }
6217
6332
  }
6218
- class ae {
6333
+ class xe {
6219
6334
  /**
6220
6335
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
6221
6336
  *
@@ -6242,12 +6357,12 @@ class ae {
6242
6357
  * Источник клиентской цены.
6243
6358
  */
6244
6359
  t(this, "source");
6245
- this.client = new te(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Ge.Product;
6360
+ this.client = new se(r == null ? void 0 : r.client), this.product = new k(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Me.Product;
6246
6361
  }
6247
6362
  }
6248
6363
  const de = (n) => {
6249
6364
  var r, e, s, i, o;
6250
- return n ? or(
6365
+ return n ? cr(
6251
6366
  {
6252
6367
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
6253
6368
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -6256,13 +6371,13 @@ const de = (n) => {
6256
6371
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
6257
6372
  hideNotActive: n.hideNotActive
6258
6373
  },
6259
- (c) => T(c) || (H(c) || cr(c)) && Y(c)
6374
+ (c) => T(c) || (H(c) || lr(c)) && X(c)
6260
6375
  ) : {};
6261
- }, rr = (n) => {
6376
+ }, tr = (n) => {
6262
6377
  const r = {};
6263
6378
  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;
6264
6379
  };
6265
- class ws extends p {
6380
+ class vs extends p {
6266
6381
  /**
6267
6382
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
6268
6383
  *
@@ -6276,10 +6391,10 @@ class ws extends p {
6276
6391
  return this.get(
6277
6392
  `/internal/price/products/${r}/analyze`,
6278
6393
  {
6279
- ...rr(e),
6394
+ ...tr(e),
6280
6395
  filters: de(s)
6281
6396
  },
6282
- (i) => i.data.map((o) => new ae(o))
6397
+ (i) => i.data.map((o) => new xe(o))
6283
6398
  );
6284
6399
  }
6285
6400
  /**
@@ -6295,10 +6410,10 @@ class ws extends p {
6295
6410
  return this.get(
6296
6411
  `/internal/price/categories/${r}/analyze`,
6297
6412
  {
6298
- ...rr(e),
6413
+ ...tr(e),
6299
6414
  filters: de(s)
6300
6415
  },
6301
- (i) => i.data.map((o) => new ae(o))
6416
+ (i) => i.data.map((o) => new xe(o))
6302
6417
  );
6303
6418
  }
6304
6419
  /**
@@ -6319,7 +6434,7 @@ class ws extends p {
6319
6434
  ...e,
6320
6435
  filters: de(s)
6321
6436
  },
6322
- (i) => i.data.map((o) => new ae(o))
6437
+ (i) => i.data.map((o) => new xe(o))
6323
6438
  );
6324
6439
  }
6325
6440
  }
@@ -6370,10 +6485,10 @@ class St {
6370
6485
  * @inheritDoc
6371
6486
  */
6372
6487
  t(this, "currency");
6373
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = v(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ue(r.product) : void 0, this.client = r.client ? new d(r.client) : void 0, this.executor = r.executor ? new d(r.executor) : void 0, this.currency = r.currency ? new x(r.currency) : void 0;
6488
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? R(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new pe(r.product) : void 0, this.client = r.client ? new L(r.client) : void 0, this.executor = r.executor ? new L(r.executor) : void 0, this.currency = r.currency ? new d(r.currency) : void 0;
6374
6489
  }
6375
6490
  }
6376
- class kt extends ue {
6491
+ class kt extends pe {
6377
6492
  /**
6378
6493
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
6379
6494
  *
@@ -6385,10 +6500,10 @@ class kt extends ue {
6385
6500
  * @inheritDoc
6386
6501
  */
6387
6502
  t(this, "history");
6388
- this.history = ge(e.history, (s) => new St(s));
6503
+ this.history = me(e.history, (s) => new St(s));
6389
6504
  }
6390
6505
  }
6391
- class vs extends p {
6506
+ class Cs extends p {
6392
6507
  /**
6393
6508
  * Возвращает данные об истории изменения цен.
6394
6509
  *
@@ -6398,21 +6513,21 @@ class vs extends p {
6398
6513
  */
6399
6514
  getProductPriceHistory(r) {
6400
6515
  var o, c, u, h, m;
6401
- const e = L().config.dateFormats.api, s = or(
6402
- le(r, {
6516
+ const e = I().config.dateFormats.api, s = cr(
6517
+ ue(r, {
6403
6518
  costDate: {
6404
- from: xe((o = r.costDate) == null ? void 0 : o.from) ? U(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6405
- to: xe((u = r.costDate) == null ? void 0 : u.to) ? U(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
6519
+ from: Oe((o = r.costDate) == null ? void 0 : o.from) ? U(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6520
+ to: Oe((u = r.costDate) == null ? void 0 : u.to) ? U(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
6406
6521
  }
6407
6522
  }),
6408
- (f) => T(f) || (H(f) || cr(f)) && Y(f)
6523
+ (f) => T(f) || (H(f) || lr(f)) && X(f)
6409
6524
  ), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
6410
6525
  return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((f) => [
6411
- new kt(le(f[0], { history: f }))
6526
+ new kt(ue(f[0], { history: f }))
6412
6527
  ]);
6413
6528
  }
6414
6529
  }
6415
- class tr {
6530
+ class sr {
6416
6531
  /**
6417
6532
  * Инициализирует экземпляр класса {@link RecommendationsList}.
6418
6533
  *
@@ -6427,10 +6542,10 @@ class tr {
6427
6542
  * Список рекомендованных категорий продуктов.
6428
6543
  */
6429
6544
  t(this, "productCategories", []);
6430
- r != null && r.products && (this.products = r.products.map((e) => new ue(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ue(e)));
6545
+ r != null && r.products && (this.products = r.products.map((e) => new pe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new pe(e)));
6431
6546
  }
6432
6547
  }
6433
- class Cs extends p {
6548
+ class Rs extends p {
6434
6549
  /**
6435
6550
  * Возвращает данные о рекомендациях указанной категории продуктов.
6436
6551
  *
@@ -6438,7 +6553,7 @@ class Cs extends p {
6438
6553
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
6439
6554
  */
6440
6555
  getProductCategoryRecommendations(r) {
6441
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new tr(e.data));
6556
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new sr(e.data));
6442
6557
  }
6443
6558
  /**
6444
6559
  * Возвращает данные о рекомендациях указанного продукта.
@@ -6447,7 +6562,7 @@ class Cs extends p {
6447
6562
  * @see /docs/api#/operations/api_internal_recommendations_product_get
6448
6563
  */
6449
6564
  getProductRecommendations(r) {
6450
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new tr(e.data));
6565
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new sr(e.data));
6451
6566
  }
6452
6567
  /**
6453
6568
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -6494,7 +6609,7 @@ class It {
6494
6609
  this.name = r.name, this.content = r.content;
6495
6610
  }
6496
6611
  }
6497
- class sr {
6612
+ class ir {
6498
6613
  /**
6499
6614
  * Инициализирует экземпляр класса {@link Seo}.
6500
6615
  *
@@ -6534,10 +6649,10 @@ class sr {
6534
6649
  */
6535
6650
  t(this, "tags");
6536
6651
  var e;
6537
- this.resourceType = new Pr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new It(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6652
+ this.resourceType = new Dr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new It(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6538
6653
  }
6539
6654
  }
6540
- class Rs extends p {
6655
+ class Ps extends p {
6541
6656
  /**
6542
6657
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
6543
6658
  *
@@ -6545,7 +6660,7 @@ class Rs extends p {
6545
6660
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
6546
6661
  */
6547
6662
  getResourceSeoData(r, e) {
6548
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new sr(s.data));
6663
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new ir(s.data));
6549
6664
  }
6550
6665
  /**
6551
6666
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -6556,7 +6671,7 @@ class Rs extends p {
6556
6671
  * в случае ошибок в запросах.
6557
6672
  */
6558
6673
  saveResourceSeoData(r, e = {}) {
6559
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new sr(s.data), e);
6674
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new ir(s.data), e);
6560
6675
  }
6561
6676
  /**
6562
6677
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -6568,7 +6683,7 @@ class Rs extends p {
6568
6683
  return this.delete(`/internal/seo/${r.slug}/${e}`);
6569
6684
  }
6570
6685
  }
6571
- class Ps extends p {
6686
+ class Ds extends p {
6572
6687
  /**
6573
6688
  * Возвращает подсказки по адресам.
6574
6689
  *
@@ -6616,7 +6731,7 @@ class Ps extends p {
6616
6731
  }
6617
6732
  }
6618
6733
  var Lt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Lt || {});
6619
- class at extends yr {
6734
+ class xt extends wr {
6620
6735
  /**
6621
6736
  * Инициализирует экземпляр класса {@link User}.
6622
6737
  *
@@ -6644,7 +6759,7 @@ class As extends p {
6644
6759
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6645
6760
  */
6646
6761
  constructor() {
6647
- super(), this.baseUrl = `${L().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6762
+ super(), this.baseUrl = `${I().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6648
6763
  }
6649
6764
  /**
6650
6765
  * Функция для получения обновленных токенов доступа.
@@ -6661,10 +6776,10 @@ class dt extends p {
6661
6776
  */
6662
6777
  // eslint-disable-next-line class-methods-use-this
6663
6778
  getCurrentUser() {
6664
- return this.get("/internal/users/info", {}, (r) => new at(r.data), !0);
6779
+ return this.get("/internal/users/info", {}, (r) => new xt(r.data), !0);
6665
6780
  }
6666
6781
  }
6667
- const xt = z("common.user_state_private", () => {
6782
+ const Ot = z("common.user_state_private", () => {
6668
6783
  const n = y({}), r = y(void 0);
6669
6784
  return {
6670
6785
  /**
@@ -6676,20 +6791,20 @@ const xt = z("common.user_state_private", () => {
6676
6791
  */
6677
6792
  currentUser: r
6678
6793
  };
6679
- }), Ds = z("common.user_state", () => ({
6794
+ }), Ts = z("common.user_state", () => ({
6680
6795
  /**
6681
6796
  * Данные о текущем пользователе.
6682
6797
  */
6683
- currentUser: A(() => {
6684
- const r = xt();
6798
+ currentUser: D(() => {
6799
+ const r = Ot();
6685
6800
  return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(dt).getCurrentUser().then((e) => {
6686
6801
  r.currentUser = e;
6687
- }).catch(w).finally(() => {
6802
+ }).catch(v).finally(() => {
6688
6803
  r.dataLoaderList.currentUser = !1;
6689
6804
  })), r.currentUser;
6690
6805
  })
6691
6806
  }));
6692
- class Ts {
6807
+ class $s {
6693
6808
  /**
6694
6809
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
6695
6810
  *
@@ -6713,159 +6828,160 @@ class Ts {
6713
6828
  }
6714
6829
  }
6715
6830
  export {
6716
- gt as AnyReference,
6717
- et as AppBaseConfig,
6718
- qe as BankAccount,
6719
- De as BasePaginationProvider,
6720
- ct as CalculationTypeEnum,
6721
- fe as Cart,
6722
- Bt as CartProvider,
6723
- Wt as CatalogProvider,
6724
- ur as CatalogableItem,
6831
+ mt as AnyReference,
6832
+ rt as AppBaseConfig,
6833
+ Ne as BankAccount,
6834
+ Te as BasePaginationProvider,
6835
+ lt as CalculationTypeEnum,
6836
+ ye as Cart,
6837
+ zt as CartProvider,
6838
+ Jt as CatalogProvider,
6839
+ pr as CatalogableItem,
6725
6840
  _ as Category,
6726
- Qe as CategoryPricingRule,
6727
- vr as ChannelPrimaryInterest,
6728
- ts as City,
6841
+ Ye as CategoryPricingRule,
6842
+ Cr as ChannelPrimaryInterest,
6843
+ ss as City,
6729
6844
  Ae as CityWithRegionAndCountry,
6730
- er as Client,
6845
+ rr as Client,
6731
6846
  Pt as ClientAdditionalData,
6732
- we as ClientCategory,
6733
- a as ClientDataProvider,
6734
- Jt as ClientPriceProvider,
6735
- Et as ClientPriceTemplateProvider,
6847
+ ve as ClientCategory,
6848
+ x as ClientDataProvider,
6849
+ Et as ClientPriceProvider,
6850
+ Vt as ClientPriceTemplateProvider,
6736
6851
  j as ClientProduct,
6737
- Qt as ClientProductCategoryDataProvider,
6738
- Yt as ClientProductDataProvider,
6739
- te as ClientShortInfo,
6740
- ht as ClientsAdditionalDataRequestTypeEnum,
6741
- is as ClientsListFilters,
6742
- ue as CodedIdentity,
6743
- us as ConfiguratorProvider,
6744
- Dt as ConfiguratorsEnum,
6745
- Ne as Contact,
6746
- mr as ContactLinks,
6852
+ Yt as ClientProductCategoryDataProvider,
6853
+ Xt as ClientProductDataProvider,
6854
+ se as ClientShortInfo,
6855
+ gt as ClientsAdditionalDataRequestTypeEnum,
6856
+ ns as ClientsListFilters,
6857
+ pe as CodedIdentity,
6858
+ ps as ConfiguratorProvider,
6859
+ At as ConfiguratorsEnum,
6860
+ Ue as Contact,
6861
+ fr as ContactLinks,
6747
6862
  B as ContactPerson,
6748
6863
  Rt as ContactPersonRelated,
6749
- mt as ContactPosition,
6750
- Ie as ContactRelation,
6751
- Dr as ContragentBase,
6752
- ve as ContragentFactory,
6753
- Tr as ContragentIc,
6864
+ ft as ContactPosition,
6865
+ Le as ContactRelation,
6866
+ Tr as ContragentBase,
6867
+ Ce as ContragentFactory,
6868
+ $r as ContragentIc,
6754
6869
  vt as ContragentPerson,
6755
6870
  Ct as ContragentUlNr,
6756
- $r as ContragentUlR,
6757
- Ge as CostSourceEnum,
6758
- Z as Country,
6759
- Be as CuratedDirection,
6760
- ze as Curator,
6761
- x as Currency,
6762
- Ps as DataSuggestionProvider,
6763
- ns as DataTablePagination,
6764
- At as DataTablePaginationRequestParams,
6765
- os as DataTableSortRequestParams,
6766
- ps as DateTimeProvider,
6767
- rt as DeletableNamedIdentity,
6768
- Ce as DeliveryAddress,
6871
+ ar as ContragentUlR,
6872
+ Me as CostSourceEnum,
6873
+ ee as Country,
6874
+ ze as CuratedDirection,
6875
+ We as Curator,
6876
+ d as Currency,
6877
+ Ds as DataSuggestionProvider,
6878
+ os as DataTablePagination,
6879
+ Dt as DataTablePaginationRequestParams,
6880
+ cs as DataTableSortRequestParams,
6881
+ hs as DateTimeProvider,
6882
+ tt as DeletableNamedIdentity,
6883
+ Re as DeliveryAddress,
6769
6884
  N as DeliveryType,
6770
- Gt as DetailedJwtPayload,
6771
- Qr as DeviceTypeResolutionConfig,
6772
- it as DiscountShortInfo,
6773
- Ts as FieldValidationResultData,
6885
+ Mt as DetailedJwtPayload,
6886
+ Yr as DeviceTypeResolutionConfig,
6887
+ nt as DiscountShortInfo,
6888
+ $s as FieldValidationResultData,
6774
6889
  G as FilterGroup,
6775
- Ye as FilterItem,
6776
- We as FilterOpEnum,
6777
- hr as GeoCoordinates,
6778
- st as HiddenCatalogableItem,
6779
- he as HttpCachedRequester,
6780
- Yr as HttpParamsConfig,
6890
+ Xe as FilterItem,
6891
+ Je as FilterOpEnum,
6892
+ gr as GeoCoordinates,
6893
+ it as HiddenCatalogableItem,
6894
+ ge as HttpCachedRequester,
6895
+ Xr as HttpParamsConfig,
6781
6896
  p as HttpRequester,
6782
- re as Identity,
6783
- tt as Image,
6897
+ te as Identity,
6898
+ st as Image,
6784
6899
  F as JwtPayload,
6785
- Pe as Manager,
6786
- Me as ManagerCommon,
6787
- gs as ManagerDataFactory,
6900
+ De as Manager,
6901
+ Be as ManagerCommon,
6902
+ ms as ManagerDataFactory,
6788
6903
  Tt as ManagerDataProvider,
6789
6904
  It as MetaTagItem,
6790
- k as NamedIdentity,
6791
- Cr as Operator,
6905
+ b as NamedIdentity,
6906
+ Rr as Operator,
6792
6907
  M as Opf,
6793
6908
  q as OpfEnum,
6794
- Le as Order,
6909
+ K as Order,
6795
6910
  Ir as OrderInfo,
6796
- bt as OrderItem,
6797
- gr as OrderItemBase,
6798
- ft as OrderPaymentStatus,
6911
+ at as OrderItem,
6912
+ mr as OrderItemBase,
6913
+ yt as OrderPaymentStatus,
6799
6914
  Sr as OrderShortInfo,
6800
- yt as OrderStatus,
6915
+ $e as OrderStatus,
6801
6916
  $t as OrderStatusEnum,
6802
- ys as OrdersDataProvider,
6803
- fs as OrdersListFilters,
6917
+ bt as OrderStatusHistoryInfo,
6918
+ ws as OrdersDataProvider,
6919
+ ys as OrdersListFilters,
6804
6920
  br as PaginationFiltersBase,
6805
- ee as PartnerGroup,
6806
- Rr as PaymentType,
6807
- ye as PreferencesStorageProvider,
6808
- ae as PriceAnalyze,
6809
- ws as PriceAnalyzeProvider,
6810
- Re as PriceCoefficient,
6811
- pr as PriceCoefficientEnum,
6812
- vs as PriceHistoryDataProvider,
6921
+ re as PartnerGroup,
6922
+ Pr as PaymentType,
6923
+ we as PreferencesStorageProvider,
6924
+ xe as PriceAnalyze,
6925
+ vs as PriceAnalyzeProvider,
6926
+ Pe as PriceCoefficient,
6927
+ hr as PriceCoefficientEnum,
6928
+ Cs as PriceHistoryDataProvider,
6813
6929
  St as PriceHistoryItem,
6814
- K as PriceTemplate,
6815
- Se as PriceTemplateCategory,
6816
- ne as PriceTemplateClient,
6817
- fr as PriceTemplateICatalogableItem,
6818
- ke as PriceTemplateProduct,
6819
- Xt as PriceTemplateProvider,
6820
- ce as PricingRole,
6821
- Zt as PricingRoleProvider,
6822
- _e as PrimaryCatalogableItem,
6823
- I as Product,
6824
- Vt as ProductCategoryDataProvider,
6825
- Kt as ProductDataProvider,
6930
+ Q as PriceTemplate,
6931
+ ke as PriceTemplateCategory,
6932
+ oe as PriceTemplateClient,
6933
+ yr as PriceTemplateICatalogableItem,
6934
+ Ie as PriceTemplateProduct,
6935
+ Zt as PriceTemplateProvider,
6936
+ le as PricingRole,
6937
+ es as PricingRoleProvider,
6938
+ qe as PrimaryCatalogableItem,
6939
+ k as Product,
6940
+ Kt as ProductCategoryDataProvider,
6941
+ Qt as ProductDataProvider,
6826
6942
  wt as ProductFileType,
6827
- je as ProductPriceCoefficient,
6943
+ Ge as ProductPriceCoefficient,
6828
6944
  kt as ProductPriceHistory,
6829
- Ke as ProductUnit,
6830
- es as PropertiesProvider,
6831
- oe as Property,
6832
- wr as PropertyType,
6833
- lt as PropertyTypeEnum,
6945
+ Qe as ProductUnit,
6946
+ rs as PropertiesProvider,
6947
+ ce as Property,
6948
+ vr as PropertyType,
6949
+ ut as PropertyTypeEnum,
6834
6950
  V as PropertyValue,
6835
- Cs as RecommendationsDataProvider,
6836
- tr as RecommendationsList,
6837
- R as Reference,
6838
- ss as ReferenceDataFactory,
6839
- b as ReferenceDataProvider,
6840
- pe as Region,
6841
- Pr as ResourceType,
6951
+ Rs as RecommendationsDataProvider,
6952
+ sr as RecommendationsList,
6953
+ w as Reference,
6954
+ is as ReferenceDataFactory,
6955
+ a as ReferenceDataProvider,
6956
+ he as Region,
6957
+ Dr as ResourceType,
6842
6958
  O as SalesDirection,
6843
- Xr as SentryConfig,
6844
- sr as Seo,
6845
- Rs as SeoDataProvider,
6959
+ Zr as SentryConfig,
6960
+ ir as Seo,
6961
+ Ps as SeoDataProvider,
6846
6962
  Ar as SourcePrimaryInterest,
6847
- nt as StockCount,
6848
- rs as TemplateProductCategoryDataProvider,
6849
- zt as TemplatesListFilters,
6850
- Fe as TypedInstanceFactory,
6963
+ ot as StockCount,
6964
+ ts as TemplateProductCategoryDataProvider,
6965
+ Wt as TemplatesListFilters,
6966
+ je as TypedInstanceFactory,
6851
6967
  kr as UnitsHelper,
6852
- cs as UnknownClientDataProvider,
6853
- lr as UpdatableNamedIdentity,
6854
- at as User,
6968
+ ls as UnknownClientDataProvider,
6969
+ ur as UpdatableNamedIdentity,
6970
+ xt as User,
6855
6971
  As as UserAuthDataProvider,
6856
- yr as UserCommonInfo,
6972
+ wr as UserCommonInfo,
6857
6973
  dt as UserDataProvider,
6858
- ut as UserPricingRole,
6859
- d as UserShortInfo,
6974
+ pt as UserPricingRole,
6975
+ L as UserShortInfo,
6860
6976
  Lt as UserTypeEnum,
6861
- ls as VersionConfig,
6862
- X as Warehouse,
6863
- Zr as WebSocketConfig,
6864
- Xe as findCatalogItemByIdRecursive,
6865
- Ze as flattenCatalogItems,
6866
- hs as pluralize,
6867
- be as useAuthStateStore,
6868
- L as useBaseConfigStateStore,
6869
- ms as useReferencesStore,
6870
- Ds as useUserStateStore
6977
+ us as VersionConfig,
6978
+ Z as Warehouse,
6979
+ et as WebSocketConfig,
6980
+ Ze as findCatalogItemByIdRecursive,
6981
+ er as flattenCatalogItems,
6982
+ gs as pluralize,
6983
+ Se as useAuthStateStore,
6984
+ I as useBaseConfigStateStore,
6985
+ fs as useReferencesStore,
6986
+ Ts as useUserStateStore
6871
6987
  };