@snabcentr/common-lib 1.92.0 → 1.94.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +2 -2
  3. package/dist/sc-common-lib.js +1102 -782
  4. package/dist/sc-common-lib.js.map +1 -1
  5. package/dist/sc-common-lib.umd.cjs +1 -1
  6. package/dist/sc-common-lib.umd.cjs.map +1 -1
  7. package/dist/src/catalog/classes/category-filter-value.d.ts +21 -0
  8. package/dist/src/catalog/classes/category-filter-value.d.ts.map +1 -0
  9. package/dist/src/catalog/classes/category-filter.d.ts +50 -0
  10. package/dist/src/catalog/classes/category-filter.d.ts.map +1 -0
  11. package/dist/src/catalog/classes/index.d.ts +2 -0
  12. package/dist/src/catalog/classes/index.d.ts.map +1 -1
  13. package/dist/src/catalog/interfaces/i-category-filter-value.d.ts +14 -0
  14. package/dist/src/catalog/interfaces/i-category-filter-value.d.ts.map +1 -0
  15. package/dist/src/catalog/interfaces/i-category-filter.d.ts +40 -0
  16. package/dist/src/catalog/interfaces/i-category-filter.d.ts.map +1 -0
  17. package/dist/src/catalog/interfaces/index.d.ts +2 -0
  18. package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
  19. package/dist/src/catalog/providers/properties-provider.d.ts +13 -4
  20. package/dist/src/catalog/providers/properties-provider.d.ts.map +1 -1
  21. package/dist/src/date-time/helpers/calendar-helper.d.ts +72 -0
  22. package/dist/src/date-time/helpers/calendar-helper.d.ts.map +1 -0
  23. package/dist/src/date-time/helpers/index.d.ts +2 -0
  24. package/dist/src/date-time/helpers/index.d.ts.map +1 -0
  25. package/dist/src/date-time/index.d.ts +3 -0
  26. package/dist/src/date-time/index.d.ts.map +1 -1
  27. package/dist/src/date-time/interfaces/i-labeled-period.d.ts +11 -0
  28. package/dist/src/date-time/interfaces/i-labeled-period.d.ts.map +1 -0
  29. package/dist/src/date-time/interfaces/i-standard-period.d.ts +17 -0
  30. package/dist/src/date-time/interfaces/i-standard-period.d.ts.map +1 -0
  31. package/dist/src/date-time/interfaces/index.d.ts +2 -0
  32. package/dist/src/date-time/interfaces/index.d.ts.map +1 -1
  33. package/dist/src/date-time/providers/date-time-provider.d.ts +14 -8
  34. package/dist/src/date-time/providers/date-time-provider.d.ts.map +1 -1
  35. package/dist/src/date-time/types/index.d.ts +3 -0
  36. package/dist/src/date-time/types/index.d.ts.map +1 -0
  37. package/dist/src/date-time/types/standard-period-group-type.d.ts +5 -0
  38. package/dist/src/date-time/types/standard-period-group-type.d.ts.map +1 -0
  39. package/dist/src/date-time/types/standard-period-section-type.d.ts +5 -0
  40. package/dist/src/date-time/types/standard-period-section-type.d.ts.map +1 -0
  41. package/dist/src/date-time/values/index.d.ts +2 -0
  42. package/dist/src/date-time/values/index.d.ts.map +1 -0
  43. package/dist/src/date-time/values/standard-period-groups.d.ts +29 -0
  44. package/dist/src/date-time/values/standard-period-groups.d.ts.map +1 -0
  45. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- var Or = Object.defineProperty;
2
- var dr = (n, r, e) => r in n ? Or(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var t = (n, r, e) => dr(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as or } from "jwt-decode";
5
- import { merge as le, isNil as T, isEmpty as X, noop as w, mapValues as cr, isArray as H, every as _r, split as qr, isString as v, constant as ar, toUpper as Nr, cloneDeep as Ur, toLower as Hr, isFunction as Ue, map as ge, forEach as Fr, isDate as de, isObject as He, omitBy as lr } from "lodash-es";
6
- import { objectToCamel as Fe, objectToSnake as Ee } from "ts-case-convert";
7
- import { defineStore as z } from "pinia";
8
- import { ref as y, markRaw as Mr, computed as A } from "vue";
9
- import { isAfter as Ve, parseISO as C, startOfToday as _e, format as O, addBusinessDays as jr, endOfTomorrow as Gr, startOfTomorrow as Br, endOfYesterday as zr, startOfYesterday as Wr, endOfToday as Jr, endOfDay as Er, startOfDay as Vr, addSeconds as Kr } from "date-fns";
10
- import Qr, { CanceledError as Yr } from "axios";
11
- class F {
1
+ var rt = Object.defineProperty;
2
+ var tt = (n, r, e) => r in n ? rt(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var t = (n, r, e) => tt(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as Ir } from "jwt-decode";
5
+ import { merge as De, isNil as A, isEmpty as ce, noop as a, mapValues as dr, isArray as W, every as st, split as it, isString as C, constant as nt, toUpper as ot, cloneDeep as ct, toLower as lt, isFunction as ir, map as Te, forEach as ut, isDate as Xe, isObject as nr, omitBy as xr } from "lodash-es";
6
+ import { objectToCamel as or, objectToSnake as fr } from "ts-case-convert";
7
+ import { defineStore as K } from "pinia";
8
+ import { ref as v, markRaw as pt, computed as b } from "vue";
9
+ import { isAfter as yr, parseISO as D, startOfToday as Ze, format as N, endOfMonth as d, addMonths as k, differenceInCalendarMonths as ht, startOfMonth as x, getDate as vr, getDaysInMonth as gt, endOfDay as q, startOfDay as se, setDate as mt, startOfWeek as G, addWeeks as er, differenceInCalendarDays as He, addDays as Y, addBusinessDays as ft, startOfYear as ee, endOfYear as ye, endOfWeek as ve, endOfTomorrow as yt, startOfTomorrow as vt, endOfYesterday as wt, startOfYesterday as at, endOfToday as Ct, startOfQuarter as we, endOfQuarter as $e, subDays as Me, addYears as Fe, addQuarters as Be, subYears as je, subQuarters as Ge, subMonths as Ye, subWeeks as wr, addSeconds as Dt } from "date-fns";
10
+ import Rt, { CanceledError as Pt } from "axios";
11
+ class z {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -99,7 +99,7 @@ class F {
99
99
  * @inheritDoc
100
100
  */
101
101
  t(this, "email", "");
102
- le(this, r);
102
+ De(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 = or(r), s = new F(Fe(e));
110
+ const e = Ir(r), s = new z(or(e));
111
111
  return s.resourceAccess = e.resource_access, s;
112
112
  }
113
113
  }
114
- class zt extends F {
114
+ class vs extends z {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -143,7 +143,7 @@ class zt extends F {
143
143
  * @inheritDoc
144
144
  */
145
145
  t(this, "address");
146
- le(this, e);
146
+ De(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -151,10 +151,10 @@ class zt extends F {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- return new F(Fe(or(e)));
154
+ return new z(or(Ir(e)));
155
155
  }
156
156
  }
157
- class Xr {
157
+ class bt {
158
158
  /**
159
159
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
160
160
  *
@@ -176,7 +176,7 @@ class Xr {
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 Zr {
179
+ class Tt {
180
180
  /**
181
181
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
182
182
  *
@@ -198,7 +198,7 @@ class Zr {
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 et {
201
+ class At {
202
202
  /**
203
203
  * Инициализирует экземпляр класса {@link SentryConfig}.
204
204
  *
@@ -243,7 +243,7 @@ class et {
243
243
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
244
244
  }
245
245
  }
246
- class rt {
246
+ class St {
247
247
  /**
248
248
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
249
249
  *
@@ -282,7 +282,7 @@ class rt {
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 tt {
285
+ class $t {
286
286
  /**
287
287
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
288
288
  *
@@ -326,18 +326,18 @@ class tt {
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 Zr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Xr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new et({
329
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Tt(r == null ? void 0 : r.http), this.deviceTypeByResolution = new bt(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new At({
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 rt(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 St(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 tt());
339
+ const O = K("common.config", () => {
340
+ const n = v(new $t());
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 = De(n.value, s);
359
359
  }
360
360
  };
361
361
  });
362
- class we {
362
+ class Ie {
363
363
  /**
364
364
  * Возвращает актуальные и не просроченные данные из хранилища.
365
365
  *
@@ -378,8 +378,8 @@ class we {
378
378
  if (e)
379
379
  try {
380
380
  const s = JSON.parse(e);
381
- if (!s.availableFor || Ve(C(s.availableFor) || _e(), /* @__PURE__ */ new Date())) {
382
- if (T(s.data) || X(s.data))
381
+ if (!s.availableFor || yr(D(s.availableFor) || Ze(), /* @__PURE__ */ new Date())) {
382
+ if (A(s.data) || ce(s.data))
383
383
  throw new Error("Data is empty");
384
384
  return s.data;
385
385
  }
@@ -401,7 +401,7 @@ class we {
401
401
  static saveActualDataToStorage(r, e, s) {
402
402
  if (this.isLocalStorageAvailable())
403
403
  try {
404
- if (T(e) || X(e))
404
+ if (A(e) || ce(e))
405
405
  throw new Error("Data is empty");
406
406
  const i = JSON.stringify({
407
407
  availableFor: s,
@@ -452,7 +452,7 @@ class we {
452
452
  const i = localStorage.getItem(s);
453
453
  if (i) {
454
454
  const o = JSON.parse(i);
455
- o.availableFor && !Ve(C(o.availableFor) || _e(), /* @__PURE__ */ new Date()) && r.push(s);
455
+ o.availableFor && !yr(D(o.availableFor) || Ze(), /* @__PURE__ */ new Date()) && r.push(s);
456
456
  }
457
457
  } catch {
458
458
  r.push(s);
@@ -468,33 +468,33 @@ class we {
468
468
  }
469
469
  }
470
470
  }
471
- function Ke(n) {
471
+ function ar(n) {
472
472
  try {
473
- const r = F.getJwtPayload(n);
473
+ const r = z.getJwtPayload(n);
474
474
  return new Date(r.exp * 1e3);
475
475
  } catch {
476
476
  return;
477
477
  }
478
478
  }
479
- const E = z("common.auth_state_private", () => {
480
- const n = y(
479
+ const re = K("common.auth_state_private", () => {
480
+ const n = v(
481
481
  (() => {
482
482
  var u;
483
- const o = we.getActualDataFromStorage(
483
+ const o = Ie.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 = O().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 = Mr(/* @__PURE__ */ new Map());
492
+ ), r = v(void 0), e = v(void 0), s = pt(/* @__PURE__ */ new Map());
493
493
  function i() {
494
- e.value = void 0, T(n.value) || n.value.then((o) => {
495
- const c = F.getJwtPayload(o);
496
- e.value = c.exp * 1e3 > Date.now() ? cr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
- }).catch(w);
494
+ e.value = void 0, A(n.value) || n.value.then((o) => {
495
+ const c = z.getJwtPayload(o);
496
+ e.value = c.exp * 1e3 > Date.now() ? dr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
+ }).catch(a);
498
498
  }
499
499
  return {
500
500
  /**
@@ -518,47 +518,47 @@ 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(() => {
523
- const o = E();
524
- if (T(o.jwtToken) && !T(o.jwtTokenUpdater)) {
521
+ }), We = K("common.auth_state", () => {
522
+ const n = b(() => {
523
+ const o = re();
524
+ if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
525
525
  const c = o.jwtTokenUpdater();
526
526
  o.jwtToken = c, c.then((u) => {
527
- o.jwtToken = Promise.resolve(u), we.saveActualDataToStorage("sc.token", u, Ke(u)), o.recalculateUserPermissions();
528
- }).catch(w);
527
+ o.jwtToken = Promise.resolve(u), Ie.saveActualDataToStorage("sc.token", u, ar(u)), o.recalculateUserPermissions();
528
+ }).catch(a);
529
529
  }
530
530
  return o.jwtToken;
531
531
  });
532
532
  function r(o) {
533
- E().jwtTokenUpdater = o;
533
+ re().jwtTokenUpdater = o;
534
534
  }
535
535
  function e(o) {
536
- const c = E();
537
- c.jwtToken = Promise.resolve(o), we.saveActualDataToStorage("sc.token", o, Ke(o)), c.recalculateUserPermissions();
536
+ const c = re();
537
+ c.jwtToken = Promise.resolve(o), Ie.saveActualDataToStorage("sc.token", o, ar(o)), c.recalculateUserPermissions();
538
538
  }
539
539
  function s() {
540
- const o = E();
541
- o.jwtToken = void 0, o.userPermissions = void 0, we.saveActualDataToStorage("sc.token", void 0);
540
+ const o = re();
541
+ o.jwtToken = void 0, o.userPermissions = void 0, Ie.saveActualDataToStorage("sc.token", void 0);
542
542
  }
543
543
  function i(o) {
544
- const c = E();
545
- !T(c.jwtToken) && T(c.userPermissions) && c.jwtToken.then((m) => {
546
- const f = F.getJwtPayload(m);
547
- c.userPermissions = f.exp * 1e3 > Date.now() ? cr(f.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
548
- }).catch(w);
549
- const u = H(o) ? o.join(" && ") : o;
544
+ const c = re();
545
+ !A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((g) => {
546
+ const m = z.getJwtPayload(g);
547
+ c.userPermissions = m.exp * 1e3 > Date.now() ? dr(m.resourceAccess, (w) => (w == null ? void 0 : w.roles) ?? []) : void 0;
548
+ }).catch(a);
549
+ const u = W(o) ? o.join(" && ") : o;
550
550
  if (c.userPermissionsComputedRefs.has(u))
551
551
  return c.userPermissionsComputedRefs.get(u);
552
- const p = A(() => {
553
- const m = (f) => {
554
- var J;
555
- const D = qr(f, ".");
556
- if (D.length < 2)
552
+ const p = b(() => {
553
+ const g = (m) => {
554
+ var Z;
555
+ const w = it(m, ".");
556
+ if (w.length < 2)
557
557
  return !1;
558
- const [ie, ne] = D, W = (J = E().userPermissions) == null ? void 0 : J[ie];
559
- return H(W) && W.includes(ne);
558
+ const [me, fe] = w, X = (Z = re().userPermissions) == null ? void 0 : Z[me];
559
+ return W(X) && X.includes(fe);
560
560
  };
561
- return H(o) ? _r(o, (f) => m(f)) : m(o);
561
+ return W(o) ? st(o, (m) => g(m)) : g(o);
562
562
  });
563
563
  return c.userPermissionsComputedRefs.set(u, p), p;
564
564
  }
@@ -591,7 +591,7 @@ const E = z("common.auth_state_private", () => {
591
591
  hasUserPermission: i
592
592
  };
593
593
  });
594
- class re {
594
+ class pe {
595
595
  /**
596
596
  * Инициализирует экземпляр класса {@link Identity}.
597
597
  *
@@ -607,16 +607,16 @@ class re {
607
607
  * @inheritDoc
608
608
  */
609
609
  t(this, "guid");
610
- this.id = r == null ? void 0 : r.id, T(this.id) && (T(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
610
+ this.id = r == null ? void 0 : r.id, A(this.id) && (A(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
611
611
  }
612
612
  /**
613
613
  * Возвращает признак, что это новая запись.
614
614
  */
615
615
  isNewRec() {
616
- return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : T(this.id);
616
+ return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : A(this.id);
617
617
  }
618
618
  }
619
- class k extends re {
619
+ class I extends pe {
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 d extends k {
634
+ class U extends I {
635
635
  /**
636
636
  * Инициализирует экземпляр класса {@link UserShortInfo}.
637
637
  *
@@ -646,7 +646,7 @@ class d extends k {
646
646
  this.type = e == null ? void 0 : e.type;
647
647
  }
648
648
  }
649
- class st extends k {
649
+ class kt extends I {
650
650
  /**
651
651
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
652
652
  *
@@ -682,10 +682,10 @@ class st extends k {
682
682
  * Дата и время удаления.
683
683
  */
684
684
  t(this, "deletedAt");
685
- 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;
685
+ 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) ? D(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new U(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt;
686
686
  }
687
687
  }
688
- class ur extends k {
688
+ class Lr extends I {
689
689
  /**
690
690
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
691
691
  *
@@ -697,10 +697,10 @@ class ur extends k {
697
697
  * Дата и время последнего изменения.
698
698
  */
699
699
  t(this, "updatedAt");
700
- this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
700
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? D(e.updatedAt) : e == null ? void 0 : e.updatedAt;
701
701
  }
702
702
  }
703
- class K extends ur {
703
+ class ie extends Lr {
704
704
  /**
705
705
  * Инициализирует экземпляр класса {@link PriceTemplate}.
706
706
  *
@@ -716,11 +716,11 @@ class K extends ur {
716
716
  * Дата и время создания шаблона.
717
717
  */
718
718
  t(this, "createdAt");
719
- 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();
719
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
720
720
  }
721
721
  }
722
- var pr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(pr || {});
723
- class R extends k {
722
+ var Or = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Or || {});
723
+ class R extends I {
724
724
  /**
725
725
  * Инициализирует экземпляр класса {@link Reference}.
726
726
  *
@@ -739,15 +739,15 @@ class R extends k {
739
739
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
740
740
  }
741
741
  }
742
- class Pe extends R {
742
+ class Oe extends R {
743
743
  /**
744
744
  * Возвращает значение справочника коэффициента розничной цены.
745
745
  */
746
746
  static getRetailPriceCoefficient() {
747
- return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: ar(!0) };
747
+ return { id: -2, slug: Or.Retail, name: "Розн. цена", guid: "", isNewRec: nt(!0) };
748
748
  }
749
749
  }
750
- class Me {
750
+ class cr {
751
751
  /**
752
752
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
753
753
  *
@@ -774,10 +774,10 @@ class Me {
774
774
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
775
775
  */
776
776
  t(this, "readOnly");
777
- 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;
777
+ this.coefficient = new Oe(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;
778
778
  }
779
779
  }
780
- class hr {
780
+ class _r {
781
781
  /**
782
782
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
783
783
  *
@@ -795,9 +795,9 @@ class hr {
795
795
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
796
796
  }
797
797
  }
798
- class U extends R {
798
+ class j extends R {
799
799
  }
800
- class me extends R {
800
+ class Ae extends R {
801
801
  /**
802
802
  * Инициализирует экземпляр класса {@link Warehouse}.
803
803
  *
@@ -826,10 +826,10 @@ class me extends R {
826
826
  * Координаты склада.
827
827
  */
828
828
  t(this, "coordinates");
829
- 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 U(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
829
+ 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 j(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new _r(e == null ? void 0 : e.coordinates);
830
830
  }
831
831
  }
832
- class it {
832
+ class It {
833
833
  /**
834
834
  * Инициализирует экземпляр класса {@link StockCount}.
835
835
  *
@@ -844,10 +844,10 @@ class it {
844
844
  * Количество остатков товара на складе.
845
845
  */
846
846
  t(this, "count");
847
- this.warehouse = new me(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
847
+ this.warehouse = new Ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
848
848
  }
849
849
  }
850
- class _ extends k {
850
+ class H extends I {
851
851
  /**
852
852
  * Инициализирует экземпляр класса {@link Currency}.
853
853
  *
@@ -874,7 +874,7 @@ class _ extends k {
874
874
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
875
875
  }
876
876
  }
877
- class Qe extends k {
877
+ class Cr extends I {
878
878
  /**
879
879
  * Инициализирует экземпляр класса {@link ProductUnit}.
880
880
  *
@@ -901,7 +901,7 @@ class Qe extends k {
901
901
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
902
902
  }
903
903
  }
904
- class ue extends k {
904
+ class Re extends I {
905
905
  /**
906
906
  * Инициализирует экземпляр класса {@link NamedIdentity}.
907
907
  *
@@ -916,7 +916,7 @@ class ue extends k {
916
916
  this.code = (e == null ? void 0 : e.code) ?? "";
917
917
  }
918
918
  }
919
- class gr extends ue {
919
+ class qr extends Re {
920
920
  /**
921
921
  * Инициализирует экземпляр класса {@link CatalogableItem}.
922
922
  *
@@ -935,7 +935,7 @@ class gr extends ue {
935
935
  this.slug = (e == null ? void 0 : e.slug) ?? "";
936
936
  }
937
937
  }
938
- class nt extends gr {
938
+ class dt extends qr {
939
939
  /**
940
940
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
941
941
  *
@@ -950,7 +950,7 @@ class nt extends gr {
950
950
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
951
951
  }
952
952
  }
953
- class ot {
953
+ class xt {
954
954
  /**
955
955
  * Инициализирует экземпляр класса {@link Image}.
956
956
  *
@@ -973,7 +973,7 @@ class ot {
973
973
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
974
974
  }
975
975
  }
976
- class qe extends gr {
976
+ class rr extends qr {
977
977
  /**
978
978
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
979
979
  *
@@ -988,7 +988,7 @@ class qe extends gr {
988
988
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
989
989
  }
990
990
  }
991
- class I extends nt {
991
+ class L extends dt {
992
992
  /**
993
993
  * Инициализирует экземпляр класса {@link Product}.
994
994
  *
@@ -1065,9 +1065,9 @@ class I extends nt {
1065
1065
  * Список коэффициентов цен на продукт.
1066
1066
  */
1067
1067
  t(this, "priceCoefficients");
1068
- 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 _(e.currency) : new _(), 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((p) => new it(p))) ?? [], this.type = "product";
1068
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Cr(e.unit) : new Cr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new H(e.currency) : new H(), 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) ? D(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new It(p))) ?? [], this.type = "product";
1069
1069
  const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
1070
- s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new qe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new ot(p, 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((p) => new Me(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1070
+ s && (this.category = new rr({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new rr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new xt(p, O().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new cr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1071
1071
  }
1072
1072
  /**
1073
1073
  * Возвращает признак, что это измеряемый товар.
@@ -1088,8 +1088,8 @@ class I extends nt {
1088
1088
  return this.retailCostRub ?? this.costRub;
1089
1089
  }
1090
1090
  }
1091
- var je = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(je || {});
1092
- class M extends I {
1091
+ var lr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(lr || {});
1092
+ class E extends L {
1093
1093
  /**
1094
1094
  * Инициализирует экземпляр класса {@link ClientProduct}.
1095
1095
  *
@@ -1125,10 +1125,10 @@ class M extends I {
1125
1125
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1126
1126
  */
1127
1127
  t(this, "isFavorite");
1128
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new st(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;
1128
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? lr.Product, this.discount = e != null && e.discount ? new kt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new ie(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;
1129
1129
  }
1130
1130
  }
1131
- class te extends qe {
1131
+ class he extends rr {
1132
1132
  /**
1133
1133
  * Инициализирует экземпляр класса {@link BaseCategory}.
1134
1134
  *
@@ -1152,10 +1152,10 @@ class te extends qe {
1152
1152
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
1153
1153
  */
1154
1154
  t(this, "currencyRates");
1155
- 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]) => [Nr(s), i])) : void 0;
1155
+ 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]) => [ot(s), i])) : void 0;
1156
1156
  }
1157
1157
  }
1158
- class mr extends re {
1158
+ class Nr extends pe {
1159
1159
  /**
1160
1160
  * Инициализирует экземпляр класса {@link OrderItemBase}.
1161
1161
  *
@@ -1211,10 +1211,10 @@ class mr extends re {
1211
1211
  * @inheritDoc
1212
1212
  */
1213
1213
  t(this, "creatorUser");
1214
- this.product = new M(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new te(), this.currency = e.currency ? new _(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ur(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creatorUser = e.creatorUser && new d(e.creatorUser);
1214
+ this.product = new E(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.currency = e.currency ? new H(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && ct(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creatorUser = e.creatorUser && new U(e.creatorUser);
1215
1215
  }
1216
1216
  }
1217
- let ct = class extends mr {
1217
+ let Lt = class extends Nr {
1218
1218
  /**
1219
1219
  * Инициализирует экземпляр класса {@link OrderItem}.
1220
1220
  *
@@ -1258,10 +1258,10 @@ let ct = class extends mr {
1258
1258
  * @inheritDoc
1259
1259
  */
1260
1260
  t(this, "currency");
1261
- 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 _(e.currency);
1261
+ this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new H(e.currency);
1262
1262
  }
1263
1263
  };
1264
- class ye {
1264
+ class ke {
1265
1265
  /**
1266
1266
  * Инициализирует экземпляр класса {@link Cart}.
1267
1267
  *
@@ -1280,10 +1280,10 @@ class ye {
1280
1280
  * @inheritDoc
1281
1281
  */
1282
1282
  t(this, "directionsSum");
1283
- this.items = r.items.map((e) => new ct(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1283
+ this.items = r.items.map((e) => new Lt(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1284
1284
  }
1285
1285
  }
1286
- class Ge {
1286
+ class ur {
1287
1287
  /**
1288
1288
  * Инициализирует экземпляр указанного класса.
1289
1289
  *
@@ -1314,7 +1314,7 @@ const P = class P {
1314
1314
  /**
1315
1315
  * Базовый URL путь для выполнения запросов.
1316
1316
  */
1317
- t(this, "baseUrl", `${L().config.http.portalApiUrl}/api`);
1317
+ t(this, "baseUrl", `${O().config.http.portalApiUrl}/api`);
1318
1318
  /**
1319
1319
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
1320
1320
  *
@@ -1322,7 +1322,7 @@ const P = class P {
1322
1322
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1323
1323
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1324
1324
  */
1325
- t(this, "errorResponseHandler", w);
1325
+ t(this, "errorResponseHandler", a);
1326
1326
  /**
1327
1327
  * Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
1328
1328
  */
@@ -1341,7 +1341,7 @@ const P = class P {
1341
1341
  // eslint-disable-next-line class-methods-use-this
1342
1342
  t(this, "authRequestInterceptor", async (r) => {
1343
1343
  let e;
1344
- return T(be().jwtToken) || (e = await be().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1344
+ return A(We().jwtToken) || (e = await We().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
1345
1345
  });
1346
1346
  /**
1347
1347
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -1356,7 +1356,7 @@ const P = class P {
1356
1356
  * @param request Данные запроса.
1357
1357
  */
1358
1358
  // eslint-disable-next-line class-methods-use-this
1359
- t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ee(r.params)), ["put", "patch", "post"].includes(Hr(r.method)) && r.data && (r.data = Ee(r.data))), r));
1359
+ t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = fr(r.params)), ["put", "patch", "post"].includes(lt(r.method)) && r.data && (r.data = fr(r.data))), r));
1360
1360
  /**
1361
1361
  * Перехватчик ошибок ответов на запрос.
1362
1362
  *
@@ -1365,7 +1365,7 @@ const P = class P {
1365
1365
  t(this, "authErrorsResponseInterceptors", (r) => {
1366
1366
  var s;
1367
1367
  const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
1368
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (be().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1368
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (We().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1369
1369
  });
1370
1370
  /**
1371
1371
  * Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
@@ -1376,7 +1376,7 @@ const P = class P {
1376
1376
  t(this, "canceledResponseInterceptor", (r) => {
1377
1377
  const e = r.rawError ?? r;
1378
1378
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
1379
- throw new Yr("Request canceled");
1379
+ throw new Pt("Request canceled");
1380
1380
  return Promise.reject(r);
1381
1381
  });
1382
1382
  /**
@@ -1392,8 +1392,8 @@ const P = class P {
1392
1392
  * @param response Данные ответа на запрос.
1393
1393
  */
1394
1394
  // eslint-disable-next-line class-methods-use-this
1395
- t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
1396
- this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = Qr.create({
1395
+ t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = or(r.data)), r));
1396
+ this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = Rt.create({
1397
1397
  headers: {
1398
1398
  Accept: "application/json",
1399
1399
  "Content-Type": "application/json"
@@ -1457,7 +1457,7 @@ const P = class P {
1457
1457
  * @param type Тип данных, которыми оперирует метод.
1458
1458
  */
1459
1459
  static getInstance(r) {
1460
- return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = Ge.simpleInstanceInitializer(r)), P.instances[r.name];
1460
+ return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = ur.simpleInstanceInitializer(r)), P.instances[r.name];
1461
1461
  }
1462
1462
  /**
1463
1463
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1466,8 +1466,8 @@ const P = class P {
1466
1466
  */
1467
1467
  static convertHttpErrorResponse(r) {
1468
1468
  var e, s;
1469
- if (T(r) || !T(r.request) || !T(r.response)) {
1470
- const i = T(r) ? {} : r == null ? void 0 : r.response;
1469
+ if (A(r) || !A(r.request) || !A(r.response)) {
1470
+ const i = A(r) ? {} : r == null ? void 0 : r.response;
1471
1471
  return Promise.reject({
1472
1472
  status: (i == null ? void 0 : i.status) ?? 0,
1473
1473
  statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
@@ -1563,7 +1563,7 @@ t(P, "instances", {}), /**
1563
1563
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1564
1564
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1565
1565
  */
1566
- t(P, "defaultErrorsResponseHandler", w), /**
1566
+ t(P, "defaultErrorsResponseHandler", a), /**
1567
1567
  * Список зарегистрированных хуков для запросов.
1568
1568
  */
1569
1569
  t(P, "requestHooks", []), /**
@@ -1571,7 +1571,7 @@ t(P, "requestHooks", []), /**
1571
1571
  */
1572
1572
  t(P, "responseHooks", []);
1573
1573
  let h = P;
1574
- class Jt extends h {
1574
+ class as extends h {
1575
1575
  /**
1576
1576
  * Возвращает содержимое корзины указанного клиента.
1577
1577
  *
@@ -1580,7 +1580,7 @@ class Jt extends h {
1580
1580
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
1581
1581
  */
1582
1582
  getCart(r) {
1583
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ye(e.data));
1583
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ke(e.data));
1584
1584
  }
1585
1585
  /**
1586
1586
  * Удаляет всё содержимое корзины.
@@ -1618,7 +1618,7 @@ class Jt extends h {
1618
1618
  is_additional_sale: e.isAdditionalSale,
1619
1619
  ...e.configuratorParams
1620
1620
  },
1621
- (i) => new ye(i.data),
1621
+ (i) => new ke(i.data),
1622
1622
  s
1623
1623
  );
1624
1624
  }
@@ -1648,7 +1648,7 @@ class Jt extends h {
1648
1648
  is_additional_sale: e.isAdditionalSale,
1649
1649
  ...e.configuratorParams
1650
1650
  },
1651
- (i) => new ye(i.data),
1651
+ (i) => new ke(i.data),
1652
1652
  s
1653
1653
  );
1654
1654
  }
@@ -1672,7 +1672,7 @@ class Jt extends h {
1672
1672
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
1673
1673
  */
1674
1674
  addCartItemFromCSV(r, e) {
1675
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new ye(s.data));
1675
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new ke(s.data));
1676
1676
  }
1677
1677
  /**
1678
1678
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -1685,8 +1685,8 @@ class Jt extends h {
1685
1685
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
1686
1686
  }
1687
1687
  }
1688
- 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 || {}), pt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(pt || {});
1689
- class a extends te {
1688
+ var Ot = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Ot || {}), _t = /* @__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))(_t || {}), Ur = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(Ur || {});
1689
+ class F extends he {
1690
1690
  /**
1691
1691
  * Инициализирует экземпляр класса {@link Category}.
1692
1692
  *
@@ -1703,10 +1703,10 @@ class a extends te {
1703
1703
  * Список продуктов категории.
1704
1704
  */
1705
1705
  t(this, "products");
1706
- this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new a(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1706
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new F(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new L(o));
1707
1707
  }
1708
1708
  }
1709
- class fr {
1709
+ class Hr {
1710
1710
  /**
1711
1711
  * Инициализирует экземпляр класса {@link ContactLinks}.
1712
1712
  *
@@ -1724,9 +1724,9 @@ class fr {
1724
1724
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
1725
1725
  }
1726
1726
  }
1727
- class q extends R {
1727
+ class M extends R {
1728
1728
  }
1729
- class Be extends k {
1729
+ class pr extends I {
1730
1730
  /**
1731
1731
  * Инициализирует экземпляр класса {@link ManagerCommon}.
1732
1732
  *
@@ -1754,12 +1754,12 @@ class Be extends k {
1754
1754
  * @inheritDoc
1755
1755
  */
1756
1756
  t(this, "isRegionalDirector");
1757
- this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : new q(), 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;
1757
+ this.salesDirection = e != null && e.salesDirection ? new M(e.salesDirection) : new M(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new Hr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1758
1758
  }
1759
1759
  }
1760
- class ze extends R {
1760
+ class hr extends R {
1761
1761
  }
1762
- class yr extends k {
1762
+ class Mr extends I {
1763
1763
  /**
1764
1764
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1765
1765
  *
@@ -1782,7 +1782,7 @@ class yr extends k {
1782
1782
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
1783
1783
  }
1784
1784
  }
1785
- class fe extends Be {
1785
+ class Se extends pr {
1786
1786
  /**
1787
1787
  * Инициализирует экземпляр класса {@link Manager}.
1788
1788
  *
@@ -1819,10 +1819,10 @@ class fe extends Be {
1819
1819
  * Список направлений кураторства.
1820
1820
  */
1821
1821
  t(this, "curatedDirections");
1822
- 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 yr(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new ze(i))) ?? [];
1822
+ 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 Mr(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new hr(i))) ?? [];
1823
1823
  }
1824
1824
  }
1825
- class ht extends te {
1825
+ class qt extends he {
1826
1826
  /**
1827
1827
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
1828
1828
  *
@@ -1850,10 +1850,10 @@ class ht extends te {
1850
1850
  * Данные о менеджере за которым закреплена категория.
1851
1851
  */
1852
1852
  t(this, "manager");
1853
- 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 fe(e.manager) : void 0;
1853
+ 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 Se(e.manager) : void 0;
1854
1854
  }
1855
1855
  }
1856
- class ve extends ht {
1856
+ class de extends qt {
1857
1857
  /**
1858
1858
  * Инициализирует экземпляр класса {@link ClientCategory}.
1859
1859
  *
@@ -1870,10 +1870,10 @@ class ve extends ht {
1870
1870
  * Список продуктов категории.
1871
1871
  */
1872
1872
  t(this, "products");
1873
- 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 M(o));
1873
+ this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new de(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new E(o));
1874
1874
  }
1875
1875
  }
1876
- class wr {
1876
+ class Fr {
1877
1877
  /**
1878
1878
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1879
1879
  *
@@ -1888,10 +1888,10 @@ class wr {
1888
1888
  * Процент, который прибавляется к значению выбранного коэффициента.
1889
1889
  */
1890
1890
  t(this, "increasePercent");
1891
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1891
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Oe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1892
1892
  }
1893
1893
  }
1894
- class Se extends wr {
1894
+ class ze extends Fr {
1895
1895
  /**
1896
1896
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1897
1897
  *
@@ -1903,10 +1903,10 @@ class Se extends wr {
1903
1903
  * Базовые данные о продукте.
1904
1904
  */
1905
1905
  t(this, "productCategory");
1906
- this.productCategory = new te(e == null ? void 0 : e.productCategory);
1906
+ this.productCategory = new he(e == null ? void 0 : e.productCategory);
1907
1907
  }
1908
1908
  }
1909
- class We extends k {
1909
+ class gr extends I {
1910
1910
  /**
1911
1911
  * Инициализирует экземпляр класса {@link Curator}.
1912
1912
  *
@@ -1926,12 +1926,12 @@ class We extends k {
1926
1926
  * @inheritDoc
1927
1927
  */
1928
1928
  t(this, "curatedDirection");
1929
- this.photo = e.photo, this.contacts = new fr(e.contacts), this.curatedDirection = new ze(e.curatedDirection);
1929
+ this.photo = e.photo, this.contacts = new Hr(e.contacts), this.curatedDirection = new hr(e.curatedDirection);
1930
1930
  }
1931
1931
  }
1932
- class Z extends R {
1932
+ class le extends R {
1933
1933
  }
1934
- class pe extends R {
1934
+ class Pe extends R {
1935
1935
  /**
1936
1936
  * Инициализирует экземпляр класса {@link Region}.
1937
1937
  *
@@ -1942,11 +1942,11 @@ class pe extends R {
1942
1942
  /**
1943
1943
  * Данные о стране, в которой расположен регион.
1944
1944
  */
1945
- t(this, "country", new Z());
1946
- e && (this.country = new Z(e.country));
1945
+ t(this, "country", new le());
1946
+ e && (this.country = new le(e.country));
1947
1947
  }
1948
1948
  }
1949
- class Ae extends R {
1949
+ class _e extends R {
1950
1950
  /**
1951
1951
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
1952
1952
  *
@@ -1957,11 +1957,11 @@ class Ae extends R {
1957
1957
  /**
1958
1958
  * Данные о регионе, в котором расположен город.
1959
1959
  */
1960
- t(this, "region", new pe());
1961
- e && (this.region = new pe(e.region));
1960
+ t(this, "region", new Pe());
1961
+ e && (this.region = new Pe(e.region));
1962
1962
  }
1963
1963
  }
1964
- class vr extends k {
1964
+ class Br extends I {
1965
1965
  /**
1966
1966
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
1967
1967
  *
@@ -1997,10 +1997,10 @@ class vr extends k {
1997
1997
  * Признак активности учетной записи пользователя.
1998
1998
  */
1999
1999
  t(this, "isActive");
2000
- 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 q(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;
2000
+ 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 M(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? D(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2001
2001
  }
2002
2002
  }
2003
- class se extends vr {
2003
+ class ge extends Br {
2004
2004
  /**
2005
2005
  * Инициализирует экземпляр класса {@link Client}.
2006
2006
  *
@@ -2046,10 +2046,10 @@ class se extends vr {
2046
2046
  * @inheritDoc
2047
2047
  */
2048
2048
  t(this, "curators");
2049
- this.salesDirection = new q(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;
2049
+ this.salesDirection = new M(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 _e(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 pr(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new gr(o))) ?? void 0;
2050
2050
  }
2051
2051
  }
2052
- class oe extends re {
2052
+ class ae extends pe {
2053
2053
  /**
2054
2054
  * Инициализирует новый экземпляр класса.
2055
2055
  *
@@ -2073,10 +2073,10 @@ class oe extends re {
2073
2073
  * Данные шаблона прайс-листа.
2074
2074
  */
2075
2075
  t(this, "priceTemplate");
2076
- 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 se(e == null ? void 0 : e.client), this.priceTemplate = new K(e == null ? void 0 : e.priceTemplate);
2076
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new ie(e == null ? void 0 : e.priceTemplate);
2077
2077
  }
2078
2078
  }
2079
- class ke extends wr {
2079
+ class Ee extends Fr {
2080
2080
  /**
2081
2081
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2082
2082
  *
@@ -2088,12 +2088,12 @@ class ke extends wr {
2088
2088
  * Базовые данные о продукте.
2089
2089
  */
2090
2090
  t(this, "product");
2091
- this.product = new I(e == null ? void 0 : e.product);
2091
+ this.product = new L(e == null ? void 0 : e.product);
2092
2092
  }
2093
2093
  }
2094
- class Cr extends R {
2094
+ class jr extends R {
2095
2095
  }
2096
- class Q extends k {
2096
+ class ne extends I {
2097
2097
  /**
2098
2098
  * Инициализирует экземпляр класса {@link Property}.
2099
2099
  *
@@ -2117,10 +2117,10 @@ class Q extends k {
2117
2117
  * Признак того, что по свойству может производиться фильтрация в каталоге.
2118
2118
  */
2119
2119
  t(this, "isFilterable");
2120
- this.type = new Cr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata, this.isFilterable = e == null ? void 0 : e.isFilterable;
2120
+ this.type = new jr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata, this.isFilterable = e == null ? void 0 : e.isFilterable;
2121
2121
  }
2122
2122
  }
2123
- class V {
2123
+ class te {
2124
2124
  /**
2125
2125
  * Инициализирует экземпляр класса {@link PropertyValue}.
2126
2126
  *
@@ -2136,10 +2136,10 @@ class V {
2136
2136
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2137
2137
  */
2138
2138
  t(this, "value");
2139
- this.property = new Q(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2139
+ this.property = new ne(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2140
2140
  }
2141
2141
  }
2142
- class $ {
2142
+ class T {
2143
2143
  /**
2144
2144
  * Инициализирует экземпляр класса {@link DatePeriod}.
2145
2145
  *
@@ -2154,10 +2154,10 @@ class $ {
2154
2154
  * Окончание периода.
2155
2155
  */
2156
2156
  t(this, "to");
2157
- 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;
2157
+ this.from = C(r == null ? void 0 : r.from) ? D(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? D(r.to) : (r == null ? void 0 : r.to) ?? null;
2158
2158
  }
2159
2159
  }
2160
- class Et {
2160
+ class Cs {
2161
2161
  /**
2162
2162
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2163
2163
  *
@@ -2179,12 +2179,12 @@ class Et {
2179
2179
  /**
2180
2180
  * Период создания.
2181
2181
  */
2182
- t(this, "createdAt", new $());
2182
+ t(this, "createdAt", new T());
2183
2183
  /**
2184
2184
  * Период изменения.
2185
2185
  */
2186
- t(this, "updatedAt", new $());
2187
- this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new $(r == null ? void 0 : r.createdAt), this.updatedAt = new $(r == null ? void 0 : r.updatedAt);
2186
+ t(this, "updatedAt", new T());
2187
+ this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new T(r == null ? void 0 : r.createdAt), this.updatedAt = new T(r == null ? void 0 : r.updatedAt);
2188
2188
  }
2189
2189
  /**
2190
2190
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2217,11 +2217,11 @@ class Et {
2217
2217
  return Object.keys(this).forEach((c) => {
2218
2218
  const u = this[c];
2219
2219
  // eslint-disable-next-line prettier/prettier
2220
- T(u) || v(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
2220
+ A(u) || C(u) && u.trim().length === 0 || ir(u.isNewRec) && u.isNewRec() || (r[c] = u);
2221
2221
  }), !((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;
2222
2222
  }
2223
2223
  }
2224
- class ce extends k {
2224
+ class Ce extends I {
2225
2225
  /**
2226
2226
  * Инициализирует экземпляр класса {@link PricingRole}.
2227
2227
  *
@@ -2256,7 +2256,7 @@ class ce extends k {
2256
2256
  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;
2257
2257
  }
2258
2258
  }
2259
- class Ye {
2259
+ class Dr {
2260
2260
  /**
2261
2261
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2262
2262
  *
@@ -2275,10 +2275,10 @@ class Ye {
2275
2275
  * Минимальный коэффициент цены.
2276
2276
  */
2277
2277
  t(this, "minCoefficient");
2278
- this.role = new ce(r == null ? void 0 : r.role), this.category = new te(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
2278
+ this.role = new Ce(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Oe(r == null ? void 0 : r.minCoefficient);
2279
2279
  }
2280
2280
  }
2281
- class gt {
2281
+ class Nt {
2282
2282
  /**
2283
2283
  * Инициализирует экземпляр класса {@link FilterSettings}.
2284
2284
  *
@@ -2311,7 +2311,7 @@ class gt {
2311
2311
  this.isFake = (r == null ? void 0 : r.isFake) ?? !1, this.isHidden = (r == null ? void 0 : r.isHidden) ?? !1, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.type = (r == null ? void 0 : r.type) ?? null, this.ord = (r == null ? void 0 : r.ord) ?? 0;
2312
2312
  }
2313
2313
  }
2314
- class Xe {
2314
+ class Rr {
2315
2315
  /**
2316
2316
  * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
2317
2317
  *
@@ -2330,10 +2330,74 @@ class Xe {
2330
2330
  * @inheritDoc
2331
2331
  */
2332
2332
  t(this, "settings");
2333
- this.category = new te(r == null ? void 0 : r.category), this.property = new Q(r == null ? void 0 : r.property), this.settings = new gt(r == null ? void 0 : r.settings);
2333
+ this.category = new he(r == null ? void 0 : r.category), this.property = new ne(r == null ? void 0 : r.property), this.settings = new Nt(r == null ? void 0 : r.settings);
2334
+ }
2335
+ }
2336
+ class Ut {
2337
+ /**
2338
+ * Инициализирует экземпляр класса {@link CategoryFilterValue}.
2339
+ *
2340
+ * @param data Данные для первоначальной инициализации.
2341
+ */
2342
+ constructor(r) {
2343
+ /**
2344
+ * @inheritDoc
2345
+ */
2346
+ t(this, "id");
2347
+ /**
2348
+ * @inheritDoc
2349
+ */
2350
+ t(this, "label");
2351
+ this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
2352
+ }
2353
+ }
2354
+ class Ht {
2355
+ /**
2356
+ * Инициализирует экземпляр класса {@link CategoryFilter}.
2357
+ *
2358
+ * Значения по умолчанию заданы намеренно: API не возвращает поля, значения которых не заданы,
2359
+ * а также поля, не относящиеся к типу фильтра.
2360
+ *
2361
+ * @param data Данные для первоначальной инициализации.
2362
+ */
2363
+ constructor(r) {
2364
+ /**
2365
+ * @inheritDoc
2366
+ */
2367
+ t(this, "id");
2368
+ /**
2369
+ * @inheritDoc
2370
+ */
2371
+ t(this, "label");
2372
+ /**
2373
+ * @inheritDoc
2374
+ */
2375
+ t(this, "type");
2376
+ /**
2377
+ * @inheritDoc
2378
+ */
2379
+ t(this, "ord");
2380
+ /**
2381
+ * @inheritDoc
2382
+ */
2383
+ t(this, "isMultiple");
2384
+ /**
2385
+ * @inheritDoc
2386
+ */
2387
+ t(this, "values");
2388
+ /**
2389
+ * @inheritDoc
2390
+ */
2391
+ t(this, "min");
2392
+ /**
2393
+ * @inheritDoc
2394
+ */
2395
+ t(this, "max");
2396
+ var e;
2397
+ this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? Ur.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((s) => new Ut(s))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
2334
2398
  }
2335
2399
  }
2336
- class Vt extends h {
2400
+ class Ds extends h {
2337
2401
  /**
2338
2402
  * Возвращает данные о результатах поиска категорий и товаров.
2339
2403
  *
@@ -2360,11 +2424,11 @@ class Vt extends h {
2360
2424
  */
2361
2425
  // eslint-disable-next-line class-methods-use-this
2362
2426
  getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
2363
- let c = `${L().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2427
+ let c = `${O().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
2364
2428
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2365
2429
  }
2366
2430
  }
2367
- class Kt extends h {
2431
+ class Rs extends h {
2368
2432
  /**
2369
2433
  * Импортирует цены клиента из CSV файла.
2370
2434
  *
@@ -2488,7 +2552,7 @@ class Kt extends h {
2488
2552
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
2489
2553
  increase_percent: s.value
2490
2554
  },
2491
- (o) => new M(o.data)
2555
+ (o) => new E(o.data)
2492
2556
  );
2493
2557
  }
2494
2558
  /**
@@ -2500,7 +2564,7 @@ class Kt extends h {
2500
2564
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
2501
2565
  */
2502
2566
  removeProductPrice(r, e) {
2503
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new M(s.data));
2567
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new E(s.data));
2504
2568
  }
2505
2569
  /**
2506
2570
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -2563,7 +2627,7 @@ class Kt extends h {
2563
2627
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2564
2628
  }
2565
2629
  }
2566
- class Qt extends h {
2630
+ class Ps extends h {
2567
2631
  /**
2568
2632
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2569
2633
  *
@@ -2575,7 +2639,7 @@ class Qt extends h {
2575
2639
  return this.get(
2576
2640
  `/internal/clients/${r}/price/templates`,
2577
2641
  {},
2578
- (e) => e.data.map((s) => new oe(s))
2642
+ (e) => e.data.map((s) => new ae(s))
2579
2643
  );
2580
2644
  }
2581
2645
  /**
@@ -2586,7 +2650,7 @@ class Qt extends h {
2586
2650
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
2587
2651
  */
2588
2652
  getActiveTemplate(r) {
2589
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new oe(e.data), !0);
2653
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new ae(e.data), !0);
2590
2654
  }
2591
2655
  /**
2592
2656
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -2598,14 +2662,14 @@ class Qt extends h {
2598
2662
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
2599
2663
  */
2600
2664
  attachTemplate(r, e, s) {
2601
- const i = L().config.dateFormats.api;
2665
+ const i = O().config.dateFormats.api;
2602
2666
  return this.post(
2603
2667
  `/internal/clients/${r}/price/templates/${e}`,
2604
2668
  s && {
2605
- startAt: s.startAt && O(s.startAt, i),
2606
- endAt: s.endAt && O(s.endAt, i)
2669
+ startAt: s.startAt && N(s.startAt, i),
2670
+ endAt: s.endAt && N(s.endAt, i)
2607
2671
  },
2608
- (o) => new oe(o.data),
2672
+ (o) => new ae(o.data),
2609
2673
  {},
2610
2674
  !0
2611
2675
  );
@@ -2632,14 +2696,14 @@ class Qt extends h {
2632
2696
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
2633
2697
  */
2634
2698
  changeTemplate(r, e, s, i) {
2635
- const o = L().config.dateFormats.api;
2699
+ const o = O().config.dateFormats.api;
2636
2700
  return this.patch(
2637
2701
  `/internal/clients/${r}/price/templates/${e}/${s}`,
2638
2702
  i && {
2639
- startAt: i.startAt && O(i.startAt, o),
2640
- endAt: i.endAt && O(i.endAt, o)
2703
+ startAt: i.startAt && N(i.startAt, o),
2704
+ endAt: i.endAt && N(i.endAt, o)
2641
2705
  },
2642
- (c) => new oe(c.data)
2706
+ (c) => new ae(c.data)
2643
2707
  );
2644
2708
  }
2645
2709
  /**
@@ -2655,7 +2719,7 @@ class Qt extends h {
2655
2719
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2656
2720
  }
2657
2721
  }
2658
- class Yt extends h {
2722
+ class bs extends h {
2659
2723
  /**
2660
2724
  * Возвращает список данных о корневых категориях.
2661
2725
  *
@@ -2669,7 +2733,7 @@ class Yt extends h {
2669
2733
  {
2670
2734
  showHidden: r
2671
2735
  },
2672
- (e) => e.data.map((s) => new a(s))
2736
+ (e) => e.data.map((s) => new F(s))
2673
2737
  );
2674
2738
  }
2675
2739
  /**
@@ -2688,7 +2752,7 @@ class Yt extends h {
2688
2752
  showHidden: e,
2689
2753
  withNestedCategories: s
2690
2754
  },
2691
- (i) => new a(i.data)
2755
+ (i) => new F(i.data)
2692
2756
  );
2693
2757
  }
2694
2758
  /**
@@ -2697,7 +2761,7 @@ class Yt extends h {
2697
2761
  * @param categoryID Идентификатор категории продуктов.
2698
2762
  */
2699
2763
  getPublicCategoryData(r) {
2700
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new a(e.data));
2764
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new F(e.data));
2701
2765
  }
2702
2766
  /**
2703
2767
  * Возвращает список продуктов категории.
@@ -2715,7 +2779,7 @@ class Yt extends h {
2715
2779
  showHidden: s,
2716
2780
  withPriceCoefficients: e
2717
2781
  },
2718
- (i) => ge(i.data, (o) => new I(o))
2782
+ (i) => Te(i.data, (o) => new L(o))
2719
2783
  );
2720
2784
  }
2721
2785
  /**
@@ -2728,7 +2792,7 @@ class Yt extends h {
2728
2792
  getCategoryProductsCoefficients(r) {
2729
2793
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2730
2794
  const { data: s } = e;
2731
- return Fr(s, (i) => i.map((o) => new Me(o))), s;
2795
+ return ut(s, (i) => i.map((o) => new cr(o))), s;
2732
2796
  });
2733
2797
  }
2734
2798
  /**
@@ -2740,14 +2804,14 @@ class Yt extends h {
2740
2804
  publicSimpleSearch(r, e = 10) {
2741
2805
  return new Promise((s, i) => {
2742
2806
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2743
- s(o.categories.map((c) => new a(c)));
2807
+ s(o.categories.map((c) => new F(c)));
2744
2808
  }).catch((o) => {
2745
2809
  i(o);
2746
2810
  });
2747
2811
  });
2748
2812
  }
2749
2813
  }
2750
- class Xt extends h {
2814
+ class Ts extends h {
2751
2815
  /**
2752
2816
  * Возвращает данные об указанном продукте.
2753
2817
  *
@@ -2757,7 +2821,7 @@ class Xt extends h {
2757
2821
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
2758
2822
  */
2759
2823
  getProductData(r, e = !1) {
2760
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new I(s.data));
2824
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new L(s.data));
2761
2825
  }
2762
2826
  /**
2763
2827
  * Возвращает публичные данные об указанном продукте.
@@ -2765,7 +2829,7 @@ class Xt extends h {
2765
2829
  * @param productId Идентификатор продукта.
2766
2830
  */
2767
2831
  getPublicProductData(r) {
2768
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
2832
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new L(e.data));
2769
2833
  }
2770
2834
  /**
2771
2835
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -2778,7 +2842,7 @@ class Xt extends h {
2778
2842
  return this.get(
2779
2843
  `/internal/catalog/products/${r}/coefficients`,
2780
2844
  {},
2781
- (e) => ge(e.data, (s) => new Me(s))
2845
+ (e) => Te(e.data, (s) => new cr(s))
2782
2846
  );
2783
2847
  }
2784
2848
  /**
@@ -2790,14 +2854,14 @@ class Xt extends h {
2790
2854
  publicSimpleSearch(r, e = 10) {
2791
2855
  return new Promise((s, i) => {
2792
2856
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
2793
- s(o.products.map((c) => new I(c)));
2857
+ s(o.products.map((c) => new L(c)));
2794
2858
  }).catch((o) => {
2795
2859
  i(o);
2796
2860
  });
2797
2861
  });
2798
2862
  }
2799
2863
  }
2800
- class Zt extends h {
2864
+ class As extends h {
2801
2865
  /**
2802
2866
  * Возвращает список данных о корневых категориях указанного клиента.
2803
2867
  *
@@ -2813,7 +2877,7 @@ class Zt extends h {
2813
2877
  clientId: r,
2814
2878
  showHidden: e
2815
2879
  },
2816
- (s) => s.data.map((i) => new ve(i))
2880
+ (s) => s.data.map((i) => new de(i))
2817
2881
  );
2818
2882
  }
2819
2883
  /**
@@ -2834,7 +2898,7 @@ class Zt extends h {
2834
2898
  showHidden: s,
2835
2899
  withNestedCategories: i
2836
2900
  },
2837
- (o) => new ve(o.data)
2901
+ (o) => new de(o.data)
2838
2902
  );
2839
2903
  }
2840
2904
  /**
@@ -2855,11 +2919,11 @@ class Zt extends h {
2855
2919
  showHidden: i,
2856
2920
  withPriceCoefficients: s
2857
2921
  },
2858
- (o) => ge(o.data, (c) => new M(c))
2922
+ (o) => Te(o.data, (c) => new E(c))
2859
2923
  );
2860
2924
  }
2861
2925
  }
2862
- class es extends h {
2926
+ class Ss extends h {
2863
2927
  /**
2864
2928
  * Возвращает данные об указанном продукте для указанного клиента.
2865
2929
  *
@@ -2876,12 +2940,12 @@ class es extends h {
2876
2940
  clientId: e,
2877
2941
  withPriceCoefficients: s
2878
2942
  },
2879
- (i) => new M(i.data)
2943
+ (i) => new E(i.data)
2880
2944
  );
2881
2945
  }
2882
2946
  }
2883
- 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 || {});
2884
- class Ze {
2947
+ var mr = /* @__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))(mr || {});
2948
+ class Pr {
2885
2949
  /**
2886
2950
  * Инициализирует экземпляр класса {@link FilterItem}.
2887
2951
  *
@@ -2900,7 +2964,7 @@ class Ze {
2900
2964
  * Значение с которым сравнивается поле.
2901
2965
  */
2902
2966
  t(this, "value");
2903
- 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) ?? "";
2967
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? mr.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
2904
2968
  }
2905
2969
  /**
2906
2970
  * Преобразует фильтр в примитивное представление для API.
@@ -2908,17 +2972,17 @@ class Ze {
2908
2972
  * @returns Примитивное представление фильтра.
2909
2973
  */
2910
2974
  toPrimitive() {
2911
- const r = L().config.dateFormats.api, e = {
2975
+ const r = O().config.dateFormats.api, e = {
2912
2976
  field: this.field,
2913
2977
  op: this.op
2914
2978
  };
2915
- return de(this.value) ? e.value = O(this.value, r) : He(this.value) ? e.value = {
2916
- from: this.value.from ? O(this.value.from, r) : null,
2917
- to: this.value.to ? O(this.value.to, r) : null
2979
+ return Xe(this.value) ? e.value = N(this.value, r) : nr(this.value) ? e.value = {
2980
+ from: this.value.from ? N(this.value.from, r) : null,
2981
+ to: this.value.to ? N(this.value.to, r) : null
2918
2982
  } : e.value = this.value, e;
2919
2983
  }
2920
2984
  }
2921
- class j {
2985
+ class Q {
2922
2986
  /**
2923
2987
  * Инициализирует экземпляр класса {@link FilterGroup}.
2924
2988
  *
@@ -2938,7 +3002,7 @@ class j {
2938
3002
  */
2939
3003
  t(this, "groups");
2940
3004
  var e, s;
2941
- 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 Ze(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new j(i))) ?? [];
3005
+ 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 Pr(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new Q(i))) ?? [];
2942
3006
  }
2943
3007
  /**
2944
3008
  * Преобразует группу фильтров в примитивное представление для API.
@@ -2948,12 +3012,12 @@ class j {
2948
3012
  toPrimitive() {
2949
3013
  return {
2950
3014
  groupOp: this.groupOp,
2951
- filters: this.filters.map((r) => r instanceof Ze && Ue(r.toPrimitive) ? r.toPrimitive() : r),
2952
- groups: this.groups.map((r) => r instanceof j ? r.toPrimitive() : r)
3015
+ filters: this.filters.map((r) => r instanceof Pr && ir(r.toPrimitive) ? r.toPrimitive() : r),
3016
+ groups: this.groups.map((r) => r instanceof Q ? r.toPrimitive() : r)
2953
3017
  };
2954
3018
  }
2955
3019
  }
2956
- class De extends h {
3020
+ class qe extends h {
2957
3021
  /**
2958
3022
  * Получает пагинированный список данных.
2959
3023
  *
@@ -2967,14 +3031,14 @@ class De extends h {
2967
3031
  * @param signal Сигнал отмены запроса.
2968
3032
  */
2969
3033
  getPaginated(r, e, s, i, o, c, u, p = void 0) {
2970
- let m = {
3034
+ let g = {
2971
3035
  page: (i == null ? void 0 : i.page) ?? 1,
2972
3036
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
2973
3037
  };
2974
- return e && (m.filters = JSON.stringify((e instanceof j ? e : new j(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, p);
3038
+ return e && (g.filters = JSON.stringify((e instanceof Q ? e : new Q(e)).toPrimitive())), ce(s) || (g.sort = W(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
2975
3039
  }
2976
3040
  }
2977
- class rs extends De {
3041
+ class $s extends qe {
2978
3042
  /**
2979
3043
  * Возвращает список шаблонов прайс-листа.
2980
3044
  *
@@ -2987,7 +3051,7 @@ class rs extends De {
2987
3051
  getTemplateList(r, e, s) {
2988
3052
  return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
2989
3053
  const o = { ...i.data };
2990
- return o.data = o.data.map((c) => new K(c)), o;
3054
+ return o.data = o.data.map((c) => new ie(c)), o;
2991
3055
  });
2992
3056
  }
2993
3057
  /**
@@ -3000,7 +3064,7 @@ class rs extends De {
3000
3064
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
3001
3065
  */
3002
3066
  createTemplate(r, e = {}) {
3003
- return this.post("/internal/price/templates", r, (s) => new K(s.data), e);
3067
+ return this.post("/internal/price/templates", r, (s) => new ie(s.data), e);
3004
3068
  }
3005
3069
  /**
3006
3070
  * Возвращает данные о шаблоне прайс-листа.
@@ -3010,7 +3074,7 @@ class rs extends De {
3010
3074
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
3011
3075
  */
3012
3076
  getTemplate(r) {
3013
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new K(e.data));
3077
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new ie(e.data));
3014
3078
  }
3015
3079
  /**
3016
3080
  * Изменяет данные о шаблоне прайс-листа.
@@ -3023,7 +3087,7 @@ class rs extends De {
3023
3087
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
3024
3088
  */
3025
3089
  updateTemplate(r, e, s = {}) {
3026
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new K(i.data), s);
3090
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new ie(i.data), s);
3027
3091
  }
3028
3092
  /**
3029
3093
  * Удаляет данные о шаблоне прайс-листа.
@@ -3046,7 +3110,7 @@ class rs extends De {
3046
3110
  return this.get(
3047
3111
  `/internal/price/templates/${r}/products`,
3048
3112
  {},
3049
- (e) => e.data.map((s) => new ke(s))
3113
+ (e) => e.data.map((s) => new Ee(s))
3050
3114
  );
3051
3115
  }
3052
3116
  /**
@@ -3058,7 +3122,7 @@ class rs extends De {
3058
3122
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
3059
3123
  */
3060
3124
  getProductTemplatePrice(r, e) {
3061
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new ke(s.data));
3125
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Ee(s.data));
3062
3126
  }
3063
3127
  /**
3064
3128
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3077,7 +3141,7 @@ class rs extends De {
3077
3141
  price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
3078
3142
  increase_percent: s.value
3079
3143
  },
3080
- (o) => new ke(o.data)
3144
+ (o) => new Ee(o.data)
3081
3145
  );
3082
3146
  }
3083
3147
  /**
@@ -3102,7 +3166,7 @@ class rs extends De {
3102
3166
  return this.get(
3103
3167
  `/internal/price/templates/${r}/categories`,
3104
3168
  {},
3105
- (e) => e.data.map((s) => new Se(s))
3169
+ (e) => e.data.map((s) => new ze(s))
3106
3170
  );
3107
3171
  }
3108
3172
  /**
@@ -3117,7 +3181,7 @@ class rs extends De {
3117
3181
  return this.get(
3118
3182
  `/internal/price/templates/${r}/categories/${e}`,
3119
3183
  {},
3120
- (s) => new Se(s.data)
3184
+ (s) => new ze(s.data)
3121
3185
  );
3122
3186
  }
3123
3187
  /**
@@ -3143,7 +3207,7 @@ class rs extends De {
3143
3207
  },
3144
3208
  params: i ? { recursively: !0 } : {}
3145
3209
  },
3146
- (c) => new Se(c.data)
3210
+ (c) => new ze(c.data)
3147
3211
  );
3148
3212
  }
3149
3213
  /**
@@ -3174,18 +3238,18 @@ class rs extends De {
3174
3238
  return this.get(
3175
3239
  `/internal/price/templates/${r}/clients`,
3176
3240
  {},
3177
- (e) => e.data.map((s) => new oe(s))
3241
+ (e) => e.data.map((s) => new ae(s))
3178
3242
  );
3179
3243
  }
3180
3244
  }
3181
- class ts extends h {
3245
+ class ks extends h {
3182
3246
  /**
3183
3247
  * Возвращает список ролей ценообразования.
3184
3248
  *
3185
3249
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
3186
3250
  */
3187
3251
  getRoles() {
3188
- return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ce(e)));
3252
+ return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new Ce(e)));
3189
3253
  }
3190
3254
  /**
3191
3255
  * Добавляет новую роль ценообразования.
@@ -3195,7 +3259,7 @@ class ts extends h {
3195
3259
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
3196
3260
  */
3197
3261
  createRole(r) {
3198
- return this.post("/internal/price/roles", r, (e) => new ce(e.data));
3262
+ return this.post("/internal/price/roles", r, (e) => new Ce(e.data));
3199
3263
  }
3200
3264
  /**
3201
3265
  * Возвращает данные роли ценообразования.
@@ -3205,7 +3269,7 @@ class ts extends h {
3205
3269
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
3206
3270
  */
3207
3271
  getRole(r) {
3208
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new ce(e.data));
3272
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new Ce(e.data));
3209
3273
  }
3210
3274
  /**
3211
3275
  * Обновляет данные роли ценообразования.
@@ -3216,7 +3280,7 @@ class ts extends h {
3216
3280
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
3217
3281
  */
3218
3282
  updateRole(r, e) {
3219
- return this.patch(`/internal/price/roles/${r}`, e, (s) => new ce(s.data));
3283
+ return this.patch(`/internal/price/roles/${r}`, e, (s) => new Ce(s.data));
3220
3284
  }
3221
3285
  /**
3222
3286
  * Удаляет роль ценообразования.
@@ -3239,7 +3303,7 @@ class ts extends h {
3239
3303
  return this.get(
3240
3304
  `/internal/price/roles/rules/categories/${r}`,
3241
3305
  {},
3242
- (e) => e.data.map((s) => new Ye(s))
3306
+ (e) => e.data.map((s) => new Dr(s))
3243
3307
  );
3244
3308
  }
3245
3309
  /**
@@ -3254,11 +3318,11 @@ class ts extends h {
3254
3318
  return this.patch(
3255
3319
  `/internal/price/roles/rules/categories/${r}`,
3256
3320
  e,
3257
- (s) => s.data.map((i) => new Ye(i))
3321
+ (s) => s.data.map((i) => new Dr(i))
3258
3322
  );
3259
3323
  }
3260
3324
  }
3261
- class ss extends De {
3325
+ class Is extends qe {
3262
3326
  /**
3263
3327
  * Возвращает пагинированный список свойств.
3264
3328
  *
@@ -3271,7 +3335,7 @@ class ss extends De {
3271
3335
  getProperties(r, e, s) {
3272
3336
  return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
3273
3337
  const o = { ...i.data };
3274
- return o.data = o.data.map((c) => new Q(c)), o;
3338
+ return o.data = o.data.map((c) => new ne(c)), o;
3275
3339
  });
3276
3340
  }
3277
3341
  /**
@@ -3288,7 +3352,7 @@ class ss extends De {
3288
3352
  ...s,
3289
3353
  type: e
3290
3354
  },
3291
- (i) => new Q(i.data)
3355
+ (i) => new ne(i.data)
3292
3356
  );
3293
3357
  }
3294
3358
  /**
@@ -3298,7 +3362,7 @@ class ss extends De {
3298
3362
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3299
3363
  */
3300
3364
  getProperty(r) {
3301
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new Q(e.data));
3365
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ne(e.data));
3302
3366
  }
3303
3367
  /**
3304
3368
  * Обновляет существующее свойство.
@@ -3315,7 +3379,7 @@ class ss extends De {
3315
3379
  ...i,
3316
3380
  type: s
3317
3381
  },
3318
- (o) => new Q(o.data)
3382
+ (o) => new ne(o.data)
3319
3383
  );
3320
3384
  }
3321
3385
  /**
@@ -3334,7 +3398,7 @@ class ss extends De {
3334
3398
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3335
3399
  */
3336
3400
  getProductProperties(r) {
3337
- return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new V(s)));
3401
+ return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new te(s)));
3338
3402
  }
3339
3403
  /**
3340
3404
  * Возвращает значение свойства продукта.
@@ -3344,7 +3408,7 @@ class ss extends De {
3344
3408
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3345
3409
  */
3346
3410
  getProductProperty(r, e) {
3347
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new V(s.data));
3411
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new te(s.data));
3348
3412
  }
3349
3413
  /**
3350
3414
  * Обновляет значение свойства продукта.
@@ -3355,7 +3419,7 @@ class ss extends De {
3355
3419
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3356
3420
  */
3357
3421
  updateProductProperty(r, e, s) {
3358
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new V(i.data));
3422
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new te(i.data));
3359
3423
  }
3360
3424
  /**
3361
3425
  * Удаляет значение свойства продукта.
@@ -3480,7 +3544,7 @@ class ss extends De {
3480
3544
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
3481
3545
  */
3482
3546
  getCategoryProperties(r) {
3483
- return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new V(s)));
3547
+ return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new te(s)));
3484
3548
  }
3485
3549
  /**
3486
3550
  * Возвращает значение свойства категории.
@@ -3490,7 +3554,7 @@ class ss extends De {
3490
3554
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
3491
3555
  */
3492
3556
  getCategoryProperty(r, e) {
3493
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new V(s.data));
3557
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new te(s.data));
3494
3558
  }
3495
3559
  /**
3496
3560
  * Обновляет значение свойства категории.
@@ -3501,7 +3565,7 @@ class ss extends De {
3501
3565
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
3502
3566
  */
3503
3567
  updateCategoryProperty(r, e, s) {
3504
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new V(i.data));
3568
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new te(i.data));
3505
3569
  }
3506
3570
  /**
3507
3571
  * Удаляет значение свойства категории.
@@ -3629,6 +3693,20 @@ class ss extends De {
3629
3693
  updateCategoryImage(r, e) {
3630
3694
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3631
3695
  }
3696
+ /**
3697
+ * Возвращает список фильтров, доступных в категории.
3698
+ *
3699
+ * @param categoryId Идентификатор категории.
3700
+ * @param recursively Признак необходимости включить в список фильтры дочерних категорий.
3701
+ * @see /doc/api/internal#/operations/api_internal_catalog_categories_category_filters_get
3702
+ */
3703
+ getCategoryFilters(r, e = !1) {
3704
+ return this.get(
3705
+ `/internal/catalog/categories/${r}/filters`,
3706
+ { recursively: e },
3707
+ (s) => s.data.map((i) => new Ht(i))
3708
+ );
3709
+ }
3632
3710
  /**
3633
3711
  * Возвращает список настроенных фильтров категории.
3634
3712
  *
@@ -3639,14 +3717,14 @@ class ss extends De {
3639
3717
  return this.get(
3640
3718
  `/internal/catalog/categories/${r}/filter-settings`,
3641
3719
  {},
3642
- (e) => e.data.map((s) => new Xe(s))
3720
+ (e) => e.data.map((s) => new Rr(s))
3643
3721
  );
3644
3722
  }
3645
3723
  /**
3646
3724
  * Сохраняет настройки фильтра в категории.
3647
3725
  *
3648
3726
  * @param categoryId Идентификатор категории.
3649
- * @param propertyId Идентификатор свойства.
3727
+ * @param propertySlug Символьный идентификатор свойства.
3650
3728
  * @param settingsData Данные настроек фильтра.
3651
3729
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_save
3652
3730
  */
@@ -3654,21 +3732,21 @@ class ss extends De {
3654
3732
  return this.patch(
3655
3733
  `/internal/catalog/categories/${r}/filter-settings/${e}`,
3656
3734
  s,
3657
- (i) => new Xe(i.data)
3735
+ (i) => new Rr(i.data)
3658
3736
  );
3659
3737
  }
3660
3738
  /**
3661
3739
  * Удаляет настройки фильтра в категории, возвращая фильтру настройки по умолчанию.
3662
3740
  *
3663
3741
  * @param categoryId Идентификатор категории.
3664
- * @param propertyId Идентификатор свойства.
3742
+ * @param propertySlug Символьный идентификатор свойства.
3665
3743
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_delete
3666
3744
  */
3667
3745
  deleteCategoryFilterSetting(r, e) {
3668
3746
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
3669
3747
  }
3670
3748
  }
3671
- class is extends h {
3749
+ class ds extends h {
3672
3750
  /**
3673
3751
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
3674
3752
  *
@@ -3684,7 +3762,7 @@ class is extends h {
3684
3762
  priceTemplateId: r,
3685
3763
  showHidden: e
3686
3764
  },
3687
- (s) => s.data.map((i) => new a(i))
3765
+ (s) => s.data.map((i) => new F(i))
3688
3766
  );
3689
3767
  }
3690
3768
  /**
@@ -3705,7 +3783,7 @@ class is extends h {
3705
3783
  showHidden: s,
3706
3784
  withNestedCategories: i
3707
3785
  },
3708
- (o) => new a(o.data)
3786
+ (o) => new F(o.data)
3709
3787
  );
3710
3788
  }
3711
3789
  /**
@@ -3726,11 +3804,11 @@ class is extends h {
3726
3804
  showHidden: i,
3727
3805
  withPriceCoefficients: s
3728
3806
  },
3729
- (o) => ge(o.data, (c) => new I(c))
3807
+ (o) => Te(o.data, (c) => new L(c))
3730
3808
  );
3731
3809
  }
3732
3810
  }
3733
- function er(n, r, e) {
3811
+ function br(n, r, e) {
3734
3812
  let s;
3735
3813
  return n.some((i) => {
3736
3814
  if (i.type === e && i.id === r)
@@ -3739,29 +3817,29 @@ function er(n, r, e) {
3739
3817
  return !1;
3740
3818
  const o = i;
3741
3819
  if (o.products && o.products.length > 0) {
3742
- const c = er(o.products, r, e);
3820
+ const c = br(o.products, r, e);
3743
3821
  if (c)
3744
3822
  return s = c, !0;
3745
3823
  }
3746
3824
  if (o.categories && o.categories.length > 0) {
3747
- const c = er(o.categories, r, e);
3825
+ const c = br(o.categories, r, e);
3748
3826
  if (c)
3749
3827
  return s = c, !0;
3750
3828
  }
3751
3829
  return !1;
3752
3830
  }), s;
3753
3831
  }
3754
- function rr(n) {
3832
+ function Tr(n) {
3755
3833
  const r = [];
3756
3834
  return n.forEach((e) => {
3757
3835
  if (r.push(e), e.type === "category") {
3758
3836
  const s = e;
3759
- s.products && s.products.length > 0 && r.push(...rr(s.products)), s.categories && s.categories.length > 0 && r.push(...rr(s.categories));
3837
+ s.products && s.products.length > 0 && r.push(...Tr(s.products)), s.categories && s.categories.length > 0 && r.push(...Tr(s.categories));
3760
3838
  }
3761
3839
  }), r;
3762
3840
  }
3763
- var mt = /* @__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))(mt || {}), N = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(N || {});
3764
- class ae extends re {
3841
+ var Mt = /* @__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))(Mt || {}), B = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(B || {});
3842
+ class tr extends pe {
3765
3843
  /**
3766
3844
  * Инициализирует экземпляр класса {@link BankAccount}.
3767
3845
  *
@@ -3788,11 +3866,11 @@ class ae extends re {
3788
3866
  /**
3789
3867
  * Данные о валюте.
3790
3868
  */
3791
- t(this, "currency", new _());
3792
- e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new _(e.currency));
3869
+ t(this, "currency", new H());
3870
+ e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new H(e.currency));
3793
3871
  }
3794
3872
  }
3795
- class Ne extends k {
3873
+ class sr extends I {
3796
3874
  /**
3797
3875
  * Инициализирует экземпляр класса {@link Contact}.
3798
3876
  *
@@ -3811,7 +3889,7 @@ class Ne extends k {
3811
3889
  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;
3812
3890
  }
3813
3891
  }
3814
- class G extends Ne {
3892
+ class J extends sr {
3815
3893
  /**
3816
3894
  * Инициализирует экземпляр класса {@link ContactPerson}.
3817
3895
  *
@@ -3843,25 +3921,25 @@ class G extends Ne {
3843
3921
  * Дата и время последнего удаления.
3844
3922
  */
3845
3923
  t(this, "deletedAt");
3846
- 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;
3924
+ 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) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3847
3925
  }
3848
3926
  }
3849
- class B extends R {
3927
+ class V extends R {
3850
3928
  /**
3851
3929
  * Возвращает сгенерированную запись-описание физического лица.
3852
3930
  */
3853
3931
  static generatePersonItem() {
3854
- return new B({
3932
+ return new V({
3855
3933
  id: 1,
3856
3934
  guid: "",
3857
- slug: N.Person,
3935
+ slug: B.Person,
3858
3936
  name: ""
3859
3937
  });
3860
3938
  }
3861
3939
  }
3862
- class ee extends R {
3940
+ class ue extends R {
3863
3941
  }
3864
- class Rr extends k {
3942
+ class Gr extends I {
3865
3943
  /**
3866
3944
  * Инициализирует экземпляр класса {@link ContragentBase}.
3867
3945
  *
@@ -3873,11 +3951,11 @@ class Rr extends k {
3873
3951
  /**
3874
3952
  * Данные об организационно-правовой форме.
3875
3953
  */
3876
- t(this, "opf", B.generatePersonItem());
3954
+ t(this, "opf", V.generatePersonItem());
3877
3955
  /**
3878
3956
  * Группа партнеров (направление деятельности).
3879
3957
  */
3880
- t(this, "partnerGroup", new ee());
3958
+ t(this, "partnerGroup", new ue());
3881
3959
  /**
3882
3960
  * Список контактных лиц контрагента.
3883
3961
  */
@@ -3911,22 +3989,22 @@ class Rr extends k {
3911
3989
  */
3912
3990
  t(this, "updater");
3913
3991
  if (e) {
3914
- if (this.opf = new B(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) {
3992
+ if (this.opf = new V(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? D(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new ue(e.partnerGroup)), e.contacts) {
3915
3993
  const s = [];
3916
3994
  e.contacts.forEach((i) => {
3917
- s.push(new G(i));
3995
+ s.push(new J(i));
3918
3996
  }), this.contacts = s;
3919
3997
  }
3920
3998
  if (e.bankAccounts) {
3921
3999
  const s = [];
3922
4000
  e.bankAccounts.forEach((i) => {
3923
- s.push(new ae(i));
4001
+ s.push(new tr(i));
3924
4002
  }), this.bankAccounts = s;
3925
4003
  }
3926
4004
  }
3927
4005
  }
3928
4006
  }
3929
- class ft extends Rr {
4007
+ class Ft extends Gr {
3930
4008
  /**
3931
4009
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3932
4010
  *
@@ -3936,7 +4014,7 @@ class ft extends Rr {
3936
4014
  super(r);
3937
4015
  }
3938
4016
  }
3939
- class Pr extends Rr {
4017
+ class Yr extends Gr {
3940
4018
  /**
3941
4019
  * Инициализирует экземпляр класса {@link ContragentIc}.
3942
4020
  *
@@ -3979,7 +4057,7 @@ class Pr extends Rr {
3979
4057
  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 ?? "");
3980
4058
  }
3981
4059
  }
3982
- class Ar extends Pr {
4060
+ class Wr extends Yr {
3983
4061
  /**
3984
4062
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3985
4063
  *
@@ -3994,7 +4072,7 @@ class Ar extends Pr {
3994
4072
  e && (this.kpp = e.kpp ?? "");
3995
4073
  }
3996
4074
  }
3997
- class yt extends Ar {
4075
+ class Bt extends Wr {
3998
4076
  /**
3999
4077
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
4000
4078
  *
@@ -4005,7 +4083,7 @@ class yt extends Ar {
4005
4083
  /**
4006
4084
  * Страна регистрации юридического лица нерезидента.
4007
4085
  */
4008
- t(this, "registrationCountry", new Z());
4086
+ t(this, "registrationCountry", new le());
4009
4087
  /**
4010
4088
  * Регистрационный номер юридического лица нерезидента.
4011
4089
  */
@@ -4014,10 +4092,10 @@ class yt extends Ar {
4014
4092
  * Налоговый номер юридического лица нерезидента.
4015
4093
  */
4016
4094
  t(this, "taxNumber", "");
4017
- e && (this.registrationCountry = new Z(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4095
+ e && (this.registrationCountry = new le(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4018
4096
  }
4019
4097
  }
4020
- class Ce {
4098
+ class xe {
4021
4099
  /**
4022
4100
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
4023
4101
  *
@@ -4025,18 +4103,18 @@ class Ce {
4025
4103
  */
4026
4104
  static createInstance(r) {
4027
4105
  switch (r.opf.slug) {
4028
- case N.Ic:
4029
- return new Pr(r);
4030
- case N.UlR:
4031
- return new Ar(r);
4032
- case N.UlNr:
4033
- return new yt(r);
4106
+ case B.Ic:
4107
+ return new Yr(r);
4108
+ case B.UlR:
4109
+ return new Wr(r);
4110
+ case B.UlNr:
4111
+ return new Bt(r);
4034
4112
  default:
4035
- return new ft(r);
4113
+ return new Ft(r);
4036
4114
  }
4037
4115
  }
4038
4116
  }
4039
- class wt extends ur {
4117
+ class jt extends Lr {
4040
4118
  /**
4041
4119
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
4042
4120
  *
@@ -4048,10 +4126,10 @@ class wt extends ur {
4048
4126
  * Дата и время последнего удаления.
4049
4127
  */
4050
4128
  t(this, "deletedAt");
4051
- this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4129
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4052
4130
  }
4053
4131
  }
4054
- class Re extends wt {
4132
+ class Le extends jt {
4055
4133
  /**
4056
4134
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4057
4135
  *
@@ -4088,14 +4166,14 @@ class Re extends wt {
4088
4166
  * Признак того, что указанный адрес является адресом транспортной компании.
4089
4167
  */
4090
4168
  t(this, "isTransportCompanyAddress");
4091
- 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 G(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;
4169
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new _r(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new J(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;
4092
4170
  }
4093
4171
  }
4094
- class Dr extends R {
4172
+ class zr extends R {
4095
4173
  }
4096
- class $r extends R {
4174
+ class Er extends R {
4097
4175
  }
4098
- class tr extends se {
4176
+ class Ar extends ge {
4099
4177
  /**
4100
4178
  * Инициализирует экземпляр класса {@link Client}.
4101
4179
  *
@@ -4145,10 +4223,10 @@ class tr extends se {
4145
4223
  * @inheritDoc
4146
4224
  */
4147
4225
  t(this, "extraData");
4148
- 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 ee(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new G(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Re(u))) ?? [], this.channelPrimaryInterest = new Dr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new $r(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new U(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4226
+ this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => xe.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new ue(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new J(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Le(u))) ?? [], this.channelPrimaryInterest = new zr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Er(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new j(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4149
4227
  }
4150
4228
  }
4151
- class Tr {
4229
+ class Qr {
4152
4230
  /**
4153
4231
  * Возвращает очищенное значение фильтров, содержащие
4154
4232
  * только актуальные данные.
@@ -4157,19 +4235,19 @@ class Tr {
4157
4235
  const r = {};
4158
4236
  return Object.keys(this).forEach((e) => {
4159
4237
  const s = this[e];
4160
- T(s) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
4161
- v(s) && s.trim().length === 0 || Ue(s.isNewRec) && s.isNewRec() || (r[e] = s);
4238
+ A(s) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
4239
+ C(s) && s.trim().length === 0 || ir(s.isNewRec) && s.isNewRec() || (r[e] = s);
4162
4240
  }), r;
4163
4241
  }
4164
4242
  }
4165
- class ns extends Tr {
4243
+ class xs extends Qr {
4166
4244
  /**
4167
4245
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4168
4246
  *
4169
4247
  * @param data Данные для первоначальной инициализации.
4170
4248
  */
4171
4249
  constructor(e) {
4172
- var s, i, o, c, u, p, m, f;
4250
+ var s, i, o, c, u, p, g, m;
4173
4251
  super();
4174
4252
  /**
4175
4253
  * @inheritDoc
@@ -4214,11 +4292,11 @@ class ns extends Tr {
4214
4292
  /**
4215
4293
  * @inheritDoc
4216
4294
  */
4217
- t(this, "createdAt", new $());
4295
+ t(this, "createdAt", new T());
4218
4296
  /**
4219
4297
  * @inheritDoc
4220
4298
  */
4221
- t(this, "lastLoginDate", new $());
4299
+ t(this, "lastLoginDate", new T());
4222
4300
  /**
4223
4301
  * @inheritDoc
4224
4302
  */
@@ -4270,12 +4348,12 @@ class ns extends Tr {
4270
4348
  /**
4271
4349
  * @inheritDoc
4272
4350
  */
4273
- t(this, "noOrdersPeriod", new $());
4274
- 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 $(e == null ? void 0 : e.createdAt), this.lastLoginDate = new $(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 fe(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new We(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new B(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new U(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 = {
4275
- createdAt: new $((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4276
- creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4277
- isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
4278
- }, this.noOrdersPeriod = new $(e == null ? void 0 : e.noOrdersPeriod);
4351
+ t(this, "noOrdersPeriod", new T());
4352
+ 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((w) => new _e(w)), this.region = new Pe(e == null ? void 0 : e.region), this.country = new le(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 T(e == null ? void 0 : e.createdAt), this.lastLoginDate = new T(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((w) => new Se(w))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((w) => new gr(w))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((w) => new M(w)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new V(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new j(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((w) => new ue(w)), this.contact = new sr(e == null ? void 0 : e.contact), this.lastOrder = {
4353
+ createdAt: new T((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4354
+ creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
4355
+ isApproved: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.isApproved
4356
+ }, this.noOrdersPeriod = new T(e == null ? void 0 : e.noOrdersPeriod);
4279
4357
  }
4280
4358
  /**
4281
4359
  * @inheritDoc
@@ -4286,7 +4364,7 @@ class ns extends Tr {
4286
4364
  this.cities = [];
4287
4365
  break;
4288
4366
  case "region":
4289
- this.region = new pe();
4367
+ this.region = new Pe();
4290
4368
  break;
4291
4369
  case "isActive":
4292
4370
  this.isActive = !0;
@@ -4313,16 +4391,16 @@ class ns extends Tr {
4313
4391
  this.salesDirections = [];
4314
4392
  break;
4315
4393
  case "contragentType":
4316
- this.contragentType = new B();
4394
+ this.contragentType = new V();
4317
4395
  break;
4318
4396
  case "preferredDeliveryType":
4319
- this.preferredDeliveryType = new U();
4397
+ this.preferredDeliveryType = new j();
4320
4398
  break;
4321
4399
  case "partnerGroups":
4322
4400
  this.partnerGroups = [];
4323
4401
  break;
4324
4402
  case "contact":
4325
- this.contact = new Ne();
4403
+ this.contact = new sr();
4326
4404
  break;
4327
4405
  default:
4328
4406
  this[e] = void 0;
@@ -4339,7 +4417,7 @@ class ns extends Tr {
4339
4417
  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, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
4340
4418
  }
4341
4419
  }
4342
- class br extends re {
4420
+ class Jr extends pe {
4343
4421
  /**
4344
4422
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4345
4423
  *
@@ -4359,10 +4437,10 @@ class br extends re {
4359
4437
  * @inheritDoc
4360
4438
  */
4361
4439
  t(this, "isApproved1c");
4362
- 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;
4440
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
4363
4441
  }
4364
4442
  }
4365
- class vt extends k {
4443
+ class Gt extends I {
4366
4444
  /**
4367
4445
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4368
4446
  *
@@ -4399,10 +4477,10 @@ class vt extends k {
4399
4477
  * @inheritDoc
4400
4478
  */
4401
4479
  t(this, "curators");
4402
- this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new G(u))) ?? void 0, this.lastOrder = e.lastOrder ? new br(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 U(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new q(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;
4480
+ this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new J(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Jr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new ue(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new j(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new M(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new pr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new gr(u))) ?? void 0;
4403
4481
  }
4404
4482
  }
4405
- class Ie extends re {
4483
+ class Qe extends pe {
4406
4484
  /**
4407
4485
  * Инициализирует экземпляр класса {@link ContactRelation}.
4408
4486
  *
@@ -4417,7 +4495,7 @@ class Ie extends re {
4417
4495
  this.isPrimary = e.isPrimary;
4418
4496
  }
4419
4497
  }
4420
- class Ct extends G {
4498
+ class Yt extends J {
4421
4499
  /**
4422
4500
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
4423
4501
  *
@@ -4442,10 +4520,10 @@ class Ct extends G {
4442
4520
  */
4443
4521
  addresses: []
4444
4522
  });
4445
- 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))));
4523
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Qe(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Qe(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Qe(s))));
4446
4524
  }
4447
4525
  }
4448
- class x extends De {
4526
+ class _ extends qe {
4449
4527
  /**
4450
4528
  * Преобразует данные о клиенте в данные требуемые для запроса.
4451
4529
  *
@@ -4473,11 +4551,11 @@ class x extends De {
4473
4551
  * @param contragent Данные о контрагенте клиента.
4474
4552
  */
4475
4553
  static transformContragentClientDataToRequest(r) {
4476
- var c, u, p, m;
4554
+ var c, u, p, g;
4477
4555
  let e;
4478
4556
  const s = r, i = r, o = r;
4479
4557
  switch (r.opf.slug) {
4480
- case N.Ic:
4558
+ case B.Ic:
4481
4559
  e = {
4482
4560
  opf: s.opf.slug,
4483
4561
  name: s.name,
@@ -4494,7 +4572,7 @@ class x extends De {
4494
4572
  actual_address: s.actualAddress
4495
4573
  };
4496
4574
  break;
4497
- case N.UlR:
4575
+ case B.UlR:
4498
4576
  e = {
4499
4577
  opf: i.opf.slug,
4500
4578
  name: i.name,
@@ -4512,7 +4590,7 @@ class x extends De {
4512
4590
  actual_address: i.actualAddress
4513
4591
  };
4514
4592
  break;
4515
- case N.UlNr:
4593
+ case B.UlNr:
4516
4594
  e = {
4517
4595
  opf: o.opf.slug,
4518
4596
  name: o.name,
@@ -4535,7 +4613,7 @@ class x extends De {
4535
4613
  opf: r.opf.slug,
4536
4614
  name: r.name,
4537
4615
  alternative_name: r.alternativeName,
4538
- partner_group_id: (m = r.partnerGroup) == null ? void 0 : m.id,
4616
+ partner_group_id: (g = r.partnerGroup) == null ? void 0 : g.id,
4539
4617
  comment: r.comment
4540
4618
  };
4541
4619
  break;
@@ -4584,7 +4662,7 @@ class x extends De {
4584
4662
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
4585
4663
  */
4586
4664
  getClient(r) {
4587
- return this.get(`/internal/clients/${r}`, {}, (e) => new tr(e.data));
4665
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Ar(e.data));
4588
4666
  }
4589
4667
  /**
4590
4668
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -4606,7 +4684,7 @@ class x extends De {
4606
4684
  i,
4607
4685
  (c) => {
4608
4686
  const u = { ...c.data };
4609
- return u.data = u.data.map((p) => new se(p)), u;
4687
+ return u.data = u.data.map((p) => new ge(p)), u;
4610
4688
  },
4611
4689
  void 0,
4612
4690
  o
@@ -4632,7 +4710,7 @@ class x extends De {
4632
4710
  return this.getClientsList({
4633
4711
  groupOp: "and",
4634
4712
  groups: [],
4635
- filters: [{ field: "phone", op: Je.Contains, value: r }]
4713
+ filters: [{ field: "phone", op: mr.Contains, value: r }]
4636
4714
  });
4637
4715
  }
4638
4716
  /**
@@ -4646,7 +4724,7 @@ class x extends De {
4646
4724
  const s = r.map((i) => i.id);
4647
4725
  return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
4648
4726
  let o = [];
4649
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new vt(c))), o;
4727
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new Gt(c))), o;
4650
4728
  });
4651
4729
  }
4652
4730
  /**
@@ -4658,7 +4736,7 @@ class x extends De {
4658
4736
  getAllClientContacts(r) {
4659
4737
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4660
4738
  let s = [];
4661
- return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Ct(i))), s;
4739
+ return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Yt(i))), s;
4662
4740
  });
4663
4741
  }
4664
4742
  /**
@@ -4669,7 +4747,7 @@ class x extends De {
4669
4747
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
4670
4748
  */
4671
4749
  createClientCommonData(r, e = {}) {
4672
- return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new tr(s.data), e);
4750
+ return this.post("/internal/clients", _.transformClientDataToRequest(r), (s) => new Ar(s.data), e);
4673
4751
  }
4674
4752
  /**
4675
4753
  * Обновляет данные указанного клиента.
@@ -4679,7 +4757,7 @@ class x extends De {
4679
4757
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
4680
4758
  */
4681
4759
  updateClientCommonData(r, e = {}) {
4682
- return this.patch(`/internal/clients/${r.id}`, x.transformClientDataToRequest(r), void 0, e);
4760
+ return this.patch(`/internal/clients/${r.id}`, _.transformClientDataToRequest(r), void 0, e);
4683
4761
  }
4684
4762
  /**
4685
4763
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -4808,8 +4886,8 @@ class x extends De {
4808
4886
  createContragentClientData(r, e, s = {}) {
4809
4887
  return this.post(
4810
4888
  `/internal/clients/${r}/contragents`,
4811
- x.transformContragentClientDataToRequest(e),
4812
- (i) => Ce.createInstance(i.data),
4889
+ _.transformContragentClientDataToRequest(e),
4890
+ (i) => xe.createInstance(i.data),
4813
4891
  s
4814
4892
  );
4815
4893
  }
@@ -4824,8 +4902,8 @@ class x extends De {
4824
4902
  updateContragentClientData(r, e, s = {}) {
4825
4903
  return this.patch(
4826
4904
  `/internal/clients/${r}/contragents/${e.id}`,
4827
- x.transformContragentClientDataToRequest(e),
4828
- (i) => Ce.createInstance(i.data),
4905
+ _.transformContragentClientDataToRequest(e),
4906
+ (i) => xe.createInstance(i.data),
4829
4907
  s
4830
4908
  );
4831
4909
  }
@@ -4850,8 +4928,8 @@ class x extends De {
4850
4928
  createClientDeliveryAddress(r, e, s = {}) {
4851
4929
  return this.post(
4852
4930
  `/internal/clients/${r}/delivery-addresses`,
4853
- x.transformClientDeliveryAddressToRequest(e),
4854
- (i) => new Re(i.data),
4931
+ _.transformClientDeliveryAddressToRequest(e),
4932
+ (i) => new Le(i.data),
4855
4933
  s
4856
4934
  );
4857
4935
  }
@@ -4866,8 +4944,8 @@ class x extends De {
4866
4944
  updateClientDeliveryAddress(r, e, s = {}) {
4867
4945
  return this.patch(
4868
4946
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
4869
- x.transformClientDeliveryAddressToRequest(e),
4870
- (i) => new Re(i.data),
4947
+ _.transformClientDeliveryAddressToRequest(e),
4948
+ (i) => new Le(i.data),
4871
4949
  s
4872
4950
  );
4873
4951
  }
@@ -4893,8 +4971,8 @@ class x extends De {
4893
4971
  createContragentBankAccount(r, e, s, i = {}) {
4894
4972
  return this.post(
4895
4973
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
4896
- x.transformClientContragentBankAccountToRequest(s),
4897
- (o) => new ae(o.data),
4974
+ _.transformClientContragentBankAccountToRequest(s),
4975
+ (o) => new tr(o.data),
4898
4976
  i
4899
4977
  );
4900
4978
  }
@@ -4910,8 +4988,8 @@ class x extends De {
4910
4988
  updateContragentBankAccount(r, e, s, i = {}) {
4911
4989
  return this.patch(
4912
4990
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
4913
- x.transformClientContragentBankAccountToRequest(s),
4914
- (o) => new ae(o.data),
4991
+ _.transformClientContragentBankAccountToRequest(s),
4992
+ (o) => new tr(o.data),
4915
4993
  i
4916
4994
  );
4917
4995
  }
@@ -4967,7 +5045,7 @@ class x extends De {
4967
5045
  comment: e.comment,
4968
5046
  not_disturb: e.notDisturb
4969
5047
  },
4970
- (i) => new G(i.data),
5048
+ (i) => new J(i.data),
4971
5049
  s
4972
5050
  );
4973
5051
  }
@@ -5104,7 +5182,7 @@ class x extends De {
5104
5182
  comment: e.comment,
5105
5183
  ...s
5106
5184
  };
5107
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new G(p.data), i);
5185
+ return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new J(p.data), i);
5108
5186
  }
5109
5187
  /**
5110
5188
  * Устанавливает признак основного контактного лица.
@@ -5133,7 +5211,7 @@ class x extends De {
5133
5211
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5134
5212
  }
5135
5213
  }
5136
- class os extends h {
5214
+ class Ls extends h {
5137
5215
  /**
5138
5216
  * Выполняет проверку занят ли указанный номер телефона.
5139
5217
  *
@@ -5147,7 +5225,7 @@ class os extends h {
5147
5225
  });
5148
5226
  }
5149
5227
  }
5150
- class cs {
5228
+ class Os {
5151
5229
  /**
5152
5230
  * Инициализирует экземпляр класса {@link VersionConfig}.
5153
5231
  *
@@ -5166,11 +5244,11 @@ class cs {
5166
5244
  * Текущая версия приложения.
5167
5245
  */
5168
5246
  t(this, "version");
5169
- 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";
5247
+ this.date = C(r == null ? void 0 : r.date) ? D(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";
5170
5248
  }
5171
5249
  }
5172
- var Rt = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Rt || {});
5173
- class ls extends h {
5250
+ var Wt = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Wt || {});
5251
+ class _s extends h {
5174
5252
  /**
5175
5253
  * Возвращает настройки указанного конфигуратора для указанной категории.
5176
5254
  *
@@ -5200,7 +5278,7 @@ class ls extends h {
5200
5278
  const o = this.get(
5201
5279
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5202
5280
  { params: s, client_id: e },
5203
- (u) => new I(u.data)
5281
+ (u) => new L(u.data)
5204
5282
  );
5205
5283
  return o.catch((u) => {
5206
5284
  this.errorResponseHandler(u, i);
@@ -5261,7 +5339,7 @@ class ls extends h {
5261
5339
  });
5262
5340
  }
5263
5341
  }
5264
- class Pt {
5342
+ class zt {
5265
5343
  /**
5266
5344
  * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5267
5345
  *
@@ -5279,7 +5357,7 @@ class Pt {
5279
5357
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
5280
5358
  }
5281
5359
  }
5282
- class us extends Pt {
5360
+ class qs extends zt {
5283
5361
  /**
5284
5362
  * Инициализирует экземпляр класса {@link TableDataPagination}.
5285
5363
  *
@@ -5310,7 +5388,7 @@ class us extends Pt {
5310
5388
  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;
5311
5389
  }
5312
5390
  }
5313
- class ps {
5391
+ class Ns {
5314
5392
  /**
5315
5393
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
5316
5394
  *
@@ -5328,22 +5406,259 @@ class ps {
5328
5406
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
5329
5407
  }
5330
5408
  }
5331
- class hs {
5409
+ class y {
5410
+ /**
5411
+ * Возвращает границы декады, в которую попадает указанная дата.
5412
+ *
5413
+ * @param date Дата.
5414
+ */
5415
+ static decadeInterval(r) {
5416
+ const [e, s] = y.shiftedDecadeBounds(r, 0);
5417
+ return { from: e, to: s };
5418
+ }
5419
+ /**
5420
+ * Возвращает границы декады, отстоящей от декады указанной даты на заданное число декад.
5421
+ *
5422
+ * @param date Дата.
5423
+ * @param shift Смещение в декадах, может быть отрицательным.
5424
+ */
5425
+ static shiftDecadeInterval(r, e) {
5426
+ const [s, i] = y.shiftedDecadeBounds(r, e);
5427
+ return { from: s, to: i };
5428
+ }
5429
+ /**
5430
+ * Возвращает начало полугодия, в которое попадает указанная дата.
5431
+ *
5432
+ * @param date Дата.
5433
+ */
5434
+ static startOfHalfYear(r) {
5435
+ return new Date(r.getFullYear(), r.getMonth() < 6 ? 0 : 6, 1);
5436
+ }
5332
5437
  /**
5333
- * Возвращает диапазон дат по умолчанию.
5438
+ * Возвращает конец полугодия, в которое попадает указанная дата.
5439
+ *
5440
+ * @param date Дата.
5334
5441
  */
5335
- static defaultDateRanges() {
5336
- const r = jr(/* @__PURE__ */ new Date(), 1);
5442
+ static endOfHalfYear(r) {
5443
+ return d(new Date(r.getFullYear(), r.getMonth() < 6 ? 5 : 11, 1));
5444
+ }
5445
+ /**
5446
+ * Возвращает дату, сдвинутую на указанное число полугодий.
5447
+ *
5448
+ * @param date Дата.
5449
+ * @param amount Смещение в полугодиях, может быть отрицательным.
5450
+ */
5451
+ static addHalfYears(r, e) {
5452
+ return k(r, e * 6);
5453
+ }
5454
+ /**
5455
+ * Возвращает интервал «сдвинутый период до такой же даты»: от начала сдвинутого периода до конца дня
5456
+ * с тем же порядковым номером месяца внутри периода и тем же числом, что у опорной даты.
5457
+ * Если в целевом месяце такого числа нет, берётся его последний день (31-е число в месяце из 30 дней станет 30-м).
5458
+ *
5459
+ * @param currentPeriodStart Начало периода, в который попадает опорная дата.
5460
+ * @param shiftedPeriodStart Начало сдвинутого периода.
5461
+ * @param date Опорная дата.
5462
+ */
5463
+ static intervalTillSameDate(r, e, s) {
5464
+ const i = ht(x(s), x(r)), o = x(k(e, i)), c = Math.min(vr(s), gt(o));
5465
+ return { from: se(e), to: q(mt(o, c)) };
5466
+ }
5467
+ /**
5468
+ * Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
5469
+ *
5470
+ * @param date Опорная дата.
5471
+ * @param shiftWeeks Смещение в неделях, может быть отрицательным.
5472
+ */
5473
+ static weekTillSameWeekday(r, e) {
5474
+ const s = G(er(r, e), { weekStartsOn: 1 }), i = He(r, G(r, { weekStartsOn: 1 }));
5475
+ return { from: s, to: q(Y(s, i)) };
5476
+ }
5477
+ /**
5478
+ * Возвращает интервал «сдвинутая декада до такого же номера дня»; если в целевой декаде дня с таким
5479
+ * номером нет, берётся её последний день (третья декада длится от 8 до 11 дней).
5480
+ *
5481
+ * @param date Опорная дата.
5482
+ * @param shift Смещение в декадах, может быть отрицательным.
5483
+ */
5484
+ static decadeTillSameDayNumber(r, e) {
5485
+ const [s] = y.shiftedDecadeBounds(r, 0), i = He(r, s) + 1, [o, c] = y.shiftedDecadeBounds(r, e), u = He(c, o) + 1;
5486
+ return { from: o, to: q(Y(o, Math.min(i, u) - 1)) };
5487
+ }
5488
+ /**
5489
+ * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
5490
+ *
5491
+ * @param date Дата.
5492
+ * @param shift Смещение в декадах, может быть отрицательным.
5493
+ */
5494
+ static shiftedDecadeBounds(r, e) {
5495
+ const s = vr(r);
5496
+ let i = 2;
5497
+ s <= 10 ? i = 0 : s <= 20 && (i = 1);
5498
+ const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = x(k(r, c)), g = Y(p, u * 10), m = u === 2 ? d(p) : q(Y(g, 9));
5499
+ return [g, m];
5500
+ }
5501
+ }
5502
+ class Us {
5503
+ /**
5504
+ * Возвращает предустановленные диапазоны дат.
5505
+ *
5506
+ * @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
5507
+ */
5508
+ static defaultDateRanges(r) {
5509
+ const e = ft(/* @__PURE__ */ new Date(), 1), s = /* @__PURE__ */ new Date(), i = ee(r === void 0 ? s : new Date(r, 0, 1)), o = ye(i);
5337
5510
  return {
5338
5511
  // 'Следующий рабочий день' - это значение по-умолчанию
5339
- nextWorkingDay: { label: "Следующий рабочий день", from: Vr(r), to: Er(r) },
5340
- today: { label: "Сегодня", from: _e(), to: Jr() },
5341
- yesterday: { label: "Вчера", from: Wr(), to: zr() },
5342
- tomorrow: { label: "Завтра", from: Br(), to: Gr() }
5512
+ nextWorkingDay: { label: "Следующий рабочий день", from: se(e), to: q(e) },
5513
+ today: { label: "Сегодня", from: Ze(), to: Ct() },
5514
+ yesterday: { label: "Вчера", from: at(), to: wt() },
5515
+ tomorrow: { label: "Завтра", from: vt(), to: yt() },
5516
+ currentWeek: { label: "Неделя", from: G(s, { weekStartsOn: 1 }), to: ve(s, { weekStartsOn: 1 }) },
5517
+ currentMonth: { label: "Месяц", from: x(s), to: d(s) },
5518
+ oneMonth: { label: "1 месяц", from: i, to: d(i) },
5519
+ threeMonths: { label: "3 месяца", from: i, to: d(k(i, 2)) },
5520
+ nineMonths: { label: "9 месяцев", from: i, to: d(k(i, 8)) },
5521
+ firstQuarter: { label: "I квартал", from: i, to: d(k(i, 2)) },
5522
+ secondQuarter: { label: "II квартал", from: k(i, 3), to: d(k(i, 5)) },
5523
+ thirdQuarter: { label: "III квартал", from: k(i, 6), to: d(k(i, 8)) },
5524
+ fourthQuarter: { label: "IV квартал", from: k(i, 9), to: d(k(i, 11)) },
5525
+ firstHalfYear: { label: "I полугодие", from: i, to: d(k(i, 5)) },
5526
+ secondHalfYear: { label: "II полугодие", from: k(i, 6), to: o },
5527
+ currentYear: { label: "12 месяцев", from: i, to: o }
5528
+ };
5529
+ }
5530
+ /**
5531
+ * Возвращает стандартные периоды по образцу перечисления 1С «ВариантСтандартногоПериода»,
5532
+ * распределённые по группам {@link STANDARD_PERIOD_GROUPS}, а внутри группы «Прочее» — по разделам
5533
+ * {@link STANDARD_PERIOD_SECTIONS}. Ключи повторяют англоязычные имена значений перечисления платформы.
5534
+ *
5535
+ * @param now Опорная дата «сейчас»; по умолчанию текущая.
5536
+ */
5537
+ static standardPeriods(r = /* @__PURE__ */ new Date()) {
5538
+ const e = { weekStartsOn: 1 }, s = se(r), i = q(r), o = y.decadeInterval(r), c = x(r), u = we(r), p = y.startOfHalfYear(r), g = ee(r), m = y.addHalfYears(r, -1), w = y.addHalfYears(r, 1);
5539
+ return {
5540
+ yesterday: { label: "Вчера", group: "day", from: se(Me(r, 1)), to: q(Me(r, 1)) },
5541
+ today: { label: "Сегодня", group: "day", from: s, to: i },
5542
+ tomorrow: { label: "Завтра", group: "day", from: se(Y(r, 1)), to: q(Y(r, 1)) },
5543
+ lastWeek: { label: "Прошлая неделя", group: "week", from: G(wr(r, 1), e), to: ve(wr(r, 1), e) },
5544
+ thisWeek: { label: "Эта неделя", group: "week", from: G(r, e), to: ve(r, e) },
5545
+ nextWeek: { label: "Следующая неделя", group: "week", from: G(er(r, 1), e), to: ve(er(r, 1), e) },
5546
+ lastTenDays: { label: "Прошлая декада", group: "decade", ...y.shiftDecadeInterval(r, -1) },
5547
+ thisTenDays: { label: "Эта декада", group: "decade", ...o },
5548
+ nextTenDays: { label: "Следующая декада", group: "decade", ...y.shiftDecadeInterval(r, 1) },
5549
+ lastMonth: { label: "Прошлый месяц", group: "month", from: x(Ye(r, 1)), to: d(Ye(r, 1)) },
5550
+ thisMonth: { label: "Этот месяц", group: "month", from: c, to: d(r) },
5551
+ nextMonth: { label: "Следующий месяц", group: "month", from: x(k(r, 1)), to: d(k(r, 1)) },
5552
+ lastQuarter: { label: "Прошлый квартал", group: "quarter", from: we(Ge(r, 1)), to: $e(Ge(r, 1)) },
5553
+ thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: $e(r) },
5554
+ nextQuarter: { label: "Следующий квартал", group: "quarter", from: we(Be(r, 1)), to: $e(Be(r, 1)) },
5555
+ lastHalfYear: {
5556
+ label: "Прошлое полугодие",
5557
+ group: "halfYear",
5558
+ from: y.startOfHalfYear(m),
5559
+ to: y.endOfHalfYear(m)
5560
+ },
5561
+ thisHalfYear: { label: "Это полугодие", group: "halfYear", from: p, to: y.endOfHalfYear(r) },
5562
+ nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: y.startOfHalfYear(w), to: y.endOfHalfYear(w) },
5563
+ lastYear: { label: "Прошлый год", group: "year", from: ee(je(r, 1)), to: ye(je(r, 1)) },
5564
+ thisYear: { label: "Этот год", group: "year", from: g, to: ye(r) },
5565
+ nextYear: { label: "Следующий год", group: "year", from: ee(Fe(r, 1)), to: ye(Fe(r, 1)) },
5566
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: G(r, e), to: i },
5567
+ fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
5568
+ fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
5569
+ fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: i },
5570
+ fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: i },
5571
+ fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: i },
5572
+ tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: s, to: ve(r, e) },
5573
+ tillEndOfThisTenDays: { label: "До конца этой декады", group: "other", section: "tillEnd", from: s, to: o.to },
5574
+ tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: s, to: d(r) },
5575
+ tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: s, to: $e(r) },
5576
+ tillEndOfThisHalfYear: { label: "До конца этого полугодия", group: "other", section: "tillEnd", from: s, to: y.endOfHalfYear(r) },
5577
+ tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: s, to: ye(r) },
5578
+ lastWeekTillSameWeekDay: { label: "Прошлая неделя, до такого же дня недели", group: "other", section: "lastTillSame", ...y.weekTillSameWeekday(r, -1) },
5579
+ lastTenDaysTillSameDayNumber: {
5580
+ label: "Прошлая декада, до такого же номера дня",
5581
+ group: "other",
5582
+ section: "lastTillSame",
5583
+ ...y.decadeTillSameDayNumber(r, -1)
5584
+ },
5585
+ lastMonthTillSameDate: {
5586
+ label: "Прошлый месяц, до такой же даты",
5587
+ group: "other",
5588
+ section: "lastTillSame",
5589
+ ...y.intervalTillSameDate(c, x(Ye(r, 1)), r)
5590
+ },
5591
+ lastQuarterTillSameDate: {
5592
+ label: "Прошлый квартал, до такой же даты",
5593
+ group: "other",
5594
+ section: "lastTillSame",
5595
+ ...y.intervalTillSameDate(u, we(Ge(r, 1)), r)
5596
+ },
5597
+ lastHalfYearTillSameDate: {
5598
+ label: "Прошлое полугодие, до такой же даты",
5599
+ group: "other",
5600
+ section: "lastTillSame",
5601
+ ...y.intervalTillSameDate(p, y.startOfHalfYear(m), r)
5602
+ },
5603
+ lastYearTillSameDate: {
5604
+ label: "Прошлый год, до такой же даты",
5605
+ group: "other",
5606
+ section: "lastTillSame",
5607
+ ...y.intervalTillSameDate(g, ee(je(r, 1)), r)
5608
+ },
5609
+ nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...y.weekTillSameWeekday(r, 1) },
5610
+ nextTenDaysTillSameDayNumber: {
5611
+ label: "Следующая декада, до такого же номера дня",
5612
+ group: "other",
5613
+ section: "nextTillSame",
5614
+ ...y.decadeTillSameDayNumber(r, 1)
5615
+ },
5616
+ nextMonthTillSameDate: {
5617
+ label: "Следующий месяц, до такой же даты",
5618
+ group: "other",
5619
+ section: "nextTillSame",
5620
+ ...y.intervalTillSameDate(c, x(k(r, 1)), r)
5621
+ },
5622
+ nextQuarterTillSameDate: {
5623
+ label: "Следующий квартал, до такой же даты",
5624
+ group: "other",
5625
+ section: "nextTillSame",
5626
+ ...y.intervalTillSameDate(u, we(Be(r, 1)), r)
5627
+ },
5628
+ nextHalfYearTillSameDate: {
5629
+ label: "Следующее полугодие, до такой же даты",
5630
+ group: "other",
5631
+ section: "nextTillSame",
5632
+ ...y.intervalTillSameDate(p, y.startOfHalfYear(w), r)
5633
+ },
5634
+ nextYearTillSameDate: {
5635
+ label: "Следующий год, до такой же даты",
5636
+ group: "other",
5637
+ section: "nextTillSame",
5638
+ ...y.intervalTillSameDate(g, ee(Fe(r, 1)), r)
5639
+ },
5640
+ last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: se(Me(r, 6)), to: i },
5641
+ next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: s, to: q(Y(r, 6)) }
5343
5642
  };
5344
5643
  }
5345
5644
  }
5346
- class Sr {
5645
+ const Hs = [
5646
+ { key: "day", label: "День" },
5647
+ { key: "week", label: "Неделя" },
5648
+ { key: "decade", label: "Декада" },
5649
+ { key: "month", label: "Месяц" },
5650
+ { key: "quarter", label: "Квартал" },
5651
+ { key: "halfYear", label: "Полугодие" },
5652
+ { key: "year", label: "Год" },
5653
+ { key: "other", label: "Прочее" }
5654
+ ], Ms = [
5655
+ { key: "fromBeginning", label: "С начала периода" },
5656
+ { key: "tillEnd", label: "До конца периода" },
5657
+ { key: "lastTillSame", label: "Прошлые, до такой же даты" },
5658
+ { key: "nextTillSame", label: "Следующие, до такой же даты" },
5659
+ { key: "rollingDays", label: "7 дней" }
5660
+ ];
5661
+ class Vr {
5347
5662
  /**
5348
5663
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
5349
5664
  *
@@ -5359,7 +5674,7 @@ class Sr {
5359
5674
  */
5360
5675
  static getProductMultiplicity(r) {
5361
5676
  var e, s;
5362
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !Sr.productIsMeasurable(r) ? r.properties.minCount : 1;
5677
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !Vr.productIsMeasurable(r) ? r.properties.minCount : 1;
5363
5678
  }
5364
5679
  /**
5365
5680
  * Возвращает кратность длины для указанного товара.
@@ -5371,7 +5686,7 @@ class Sr {
5371
5686
  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;
5372
5687
  }
5373
5688
  }
5374
- const Y = class Y extends h {
5689
+ const oe = class oe extends h {
5375
5690
  /**
5376
5691
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5377
5692
  */
@@ -5381,7 +5696,7 @@ const Y = class Y extends h {
5381
5696
  * Время кэширования данных ответов на запросы (секунд).
5382
5697
  */
5383
5698
  t(this, "responseDataCacheTimeout");
5384
- this.responseDataCacheTimeout = L().config.http.responseDataCacheTimeout;
5699
+ this.responseDataCacheTimeout = O().config.http.responseDataCacheTimeout;
5385
5700
  }
5386
5701
  /**
5387
5702
  * Возвращает кэшированные данные.
@@ -5391,7 +5706,7 @@ const Y = class Y extends h {
5391
5706
  */
5392
5707
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5393
5708
  static getCachedResponse(e) {
5394
- const s = Y.responseDataCache.get(e);
5709
+ const s = oe.responseDataCache.get(e);
5395
5710
  if (s && s.validTo > /* @__PURE__ */ new Date())
5396
5711
  return s.val;
5397
5712
  }
@@ -5402,8 +5717,8 @@ const Y = class Y extends h {
5402
5717
  * @param data Данные для кэширования.
5403
5718
  */
5404
5719
  cacheResponse(e, s) {
5405
- Y.responseDataCache.set(e, {
5406
- validTo: Kr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5720
+ oe.responseDataCache.set(e, {
5721
+ validTo: Dt(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5407
5722
  val: s
5408
5723
  });
5409
5724
  }
@@ -5418,28 +5733,28 @@ const Y = class Y extends h {
5418
5733
  */
5419
5734
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5420
5735
  getTypedDataArrayRequester(e, s, i = !1, o = {}) {
5421
- const c = s + (X(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? Y.getCachedResponse(c) : void 0;
5736
+ const c = s + (ce(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? oe.getCachedResponse(c) : void 0;
5422
5737
  return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
5423
- const m = p.map((f) => Ge.instanceInitializer(e, f));
5424
- return i && m && this.cacheResponse(s, m), m;
5738
+ const g = p.map((m) => ur.instanceInitializer(e, m));
5739
+ return i && g && this.cacheResponse(s, g), g;
5425
5740
  });
5426
5741
  }
5427
5742
  };
5428
5743
  /**
5429
5744
  * Кэш результатов запросов.
5430
5745
  */
5431
- t(Y, "responseDataCache", /* @__PURE__ */ new Map());
5432
- let he = Y;
5433
- function gs(n, r) {
5746
+ t(oe, "responseDataCache", /* @__PURE__ */ new Map());
5747
+ let be = oe;
5748
+ function Fs(n, r) {
5434
5749
  const e = [2, 0, 1, 1, 1, 2];
5435
5750
  return r[n % 100 > 4 && n % 100 < 20 ? 2 : e[Math.min(n % 10, 5)]];
5436
5751
  }
5437
- class ms {
5752
+ class Bs {
5438
5753
  /**
5439
5754
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5440
5755
  */
5441
5756
  static generateUndefinedManagerInstance() {
5442
- return new fe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5757
+ return new Se({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
5443
5758
  }
5444
5759
  /**
5445
5760
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -5450,26 +5765,26 @@ class ms {
5450
5765
  return r.id === 0 && r.guid === "-undefined-";
5451
5766
  }
5452
5767
  }
5453
- class At extends he {
5768
+ class Et extends be {
5454
5769
  /**
5455
5770
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5456
5771
  */
5457
5772
  async getManagers() {
5458
- const r = "/internal/managers", e = he.getCachedResponse(r);
5773
+ const r = "/internal/managers", e = be.getCachedResponse(r);
5459
5774
  if (e)
5460
5775
  return e;
5461
- const i = (await this.get(r)).data.map((o) => Ge.instanceInitializer(fe, o));
5776
+ const i = (await this.get(r)).data.map((o) => ur.instanceInitializer(Se, o));
5462
5777
  return this.cacheResponse(r, i), i;
5463
5778
  }
5464
5779
  }
5465
- class kr extends br {
5780
+ class Kr extends Jr {
5466
5781
  /**
5467
5782
  * Инициализирует экземпляр класса {@link OrderInfo}.
5468
5783
  *
5469
5784
  * @param data Данные для первоначальной инициализации.
5470
5785
  */
5471
5786
  constructor(e) {
5472
- var s, i, o, c, u, p, m, f;
5787
+ var s, i, o, c, u, p, g, m;
5473
5788
  super(e);
5474
5789
  /**
5475
5790
  * @inheritDoc
@@ -5519,23 +5834,23 @@ class kr extends br {
5519
5834
  * @inheritDoc
5520
5835
  */
5521
5836
  t(this, "isLargeOrder");
5522
- this.client = new se(e == null ? void 0 : e.client), this.payment = {
5837
+ this.client = new ge(e == null ? void 0 : e.client), this.payment = {
5523
5838
  type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
5524
5839
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
5525
5840
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
5526
5841
  }, this.delivery = {
5527
5842
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
5528
- date: v((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5529
- address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Re(e.delivery.address) : void 0,
5530
- warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new me(e.delivery.warehouse) : void 0
5531
- }, 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 q(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;
5843
+ date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? D(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
5844
+ address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new Le(e.delivery.address) : void 0,
5845
+ warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new Ae(e.delivery.warehouse) : void 0
5846
+ }, this.attachedUser = e != null && e.attachedUser ? new U(e == null ? void 0 : e.attachedUser) : void 0, this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new M(e == null ? void 0 : e.salesDirection), this.pendingAt = C(e == null ? void 0 : e.pendingAt) ? D(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = C(e == null ? void 0 : e.processedAt) ? D(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;
5532
5847
  }
5533
5848
  }
5534
- class Ir extends R {
5849
+ class Xr extends R {
5535
5850
  }
5536
- class Lr extends R {
5851
+ class Zr extends R {
5537
5852
  }
5538
- class fs extends Tr {
5853
+ class js extends Qr {
5539
5854
  /**
5540
5855
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
5541
5856
  *
@@ -5563,7 +5878,7 @@ class fs extends Tr {
5563
5878
  /**
5564
5879
  * @inheritDoc
5565
5880
  */
5566
- t(this, "createdAt", new $());
5881
+ t(this, "createdAt", new T());
5567
5882
  /**
5568
5883
  * @inheritDoc
5569
5884
  */
@@ -5571,7 +5886,7 @@ class fs extends Tr {
5571
5886
  /**
5572
5887
  * @inheritDoc
5573
5888
  */
5574
- t(this, "deliveryDate", new $());
5889
+ t(this, "deliveryDate", new T());
5575
5890
  /**
5576
5891
  * @inheritDoc
5577
5892
  */
@@ -5603,11 +5918,11 @@ class fs extends Tr {
5603
5918
  /**
5604
5919
  * @inheritDoc
5605
5920
  */
5606
- t(this, "pendingAt", new $());
5921
+ t(this, "pendingAt", new T());
5607
5922
  /**
5608
5923
  * @inheritDoc
5609
5924
  */
5610
- t(this, "processedAt", new $());
5925
+ t(this, "processedAt", new T());
5611
5926
  /**
5612
5927
  * @inheritDoc
5613
5928
  */
@@ -5640,7 +5955,7 @@ class fs extends Tr {
5640
5955
  * @inheritDoc
5641
5956
  */
5642
5957
  t(this, "onlyMyRegions");
5643
- this.attachedUsers = (s = e == null ? void 0 : e.attachedUsers) == null ? void 0 : s.map((u) => "isActive" in u ? new fe(u) : new Ir(u)), 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 $(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new d(e.creator) : void 0, this.deliveryDate = new $(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new Ae(u)), 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 $(e == null ? void 0 : e.pendingAt), this.processedAt = new $(e == null ? void 0 : e.processedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.deliveryType = e != null && e.deliveryType ? new U(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Lr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new me(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
5958
+ this.attachedUsers = (s = e == null ? void 0 : e.attachedUsers) == null ? void 0 : s.map((u) => "isActive" in u ? new Se(u) : new Xr(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new ge(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new T(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new U(e.creator) : void 0, this.deliveryDate = new T(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new _e(u)), 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 T(e == null ? void 0 : e.pendingAt), this.processedAt = new T(e == null ? void 0 : e.processedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new M(u)), this.status = e == null ? void 0 : e.status, this.deliveryType = e != null && e.deliveryType ? new j(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Zr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Ae(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
5644
5959
  }
5645
5960
  /**
5646
5961
  * @inheritDoc
@@ -5657,7 +5972,7 @@ class fs extends Tr {
5657
5972
  this.deliveryDate.from = null, this.deliveryDate.to = null;
5658
5973
  break;
5659
5974
  case "deliveryType":
5660
- this.deliveryType = new U();
5975
+ this.deliveryType = new j();
5661
5976
  break;
5662
5977
  case "clientCities":
5663
5978
  this.clientCities = [];
@@ -5687,12 +6002,12 @@ class fs extends Tr {
5687
6002
  * @inheritDoc
5688
6003
  */
5689
6004
  asClearRaw() {
5690
- var s, i, o, c, u, p, m, f;
6005
+ var s, i, o, c, u, p, g, m;
5691
6006
  const e = super.asClearRaw();
5692
- 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) && !((p = e == null ? void 0 : e.pendingAt) != null && p.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;
6007
+ 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) && !((p = e == null ? void 0 : e.pendingAt) != null && p.to) && delete e.pendingAt, !((g = e == null ? void 0 : e.processedAt) != null && g.from) && !((m = e == null ? void 0 : e.processedAt) != null && m.to) && delete e.processedAt, e;
5693
6008
  }
5694
6009
  }
5695
- class Dt extends mr {
6010
+ class Qt extends Nr {
5696
6011
  /**
5697
6012
  * Инициализирует экземпляр класса {@link OrderItem}.
5698
6013
  *
@@ -5740,10 +6055,10 @@ class Dt extends mr {
5740
6055
  * @inheritDoc
5741
6056
  */
5742
6057
  t(this, "currency");
5743
- this.product = new M(e.product), this.currency = new _(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;
6058
+ this.product = new E(e.product), this.currency = new H(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;
5744
6059
  }
5745
6060
  }
5746
- class Le extends kr {
6061
+ class Je extends Kr {
5747
6062
  /**
5748
6063
  * Инициализирует экземпляр класса {@link Order}.
5749
6064
  *
@@ -5783,10 +6098,10 @@ class Le extends kr {
5783
6098
  * @inheritDoc
5784
6099
  */
5785
6100
  t(this, "isAllowProcessingWithoutPayment");
5786
- this.products = (e.products ?? []).map((s) => new Dt(s)), 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 R(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
6101
+ this.products = (e.products ?? []).map((s) => new Qt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? xe.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new R(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5787
6102
  }
5788
6103
  }
5789
- class ys extends De {
6104
+ class Gs extends qe {
5790
6105
  /**
5791
6106
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5792
6107
  *
@@ -5806,7 +6121,7 @@ class ys extends De {
5806
6121
  {},
5807
6122
  (o) => {
5808
6123
  const c = { ...o.data };
5809
- return c.data = c.data.map((u) => new kr(u)), c;
6124
+ return c.data = c.data.map((u) => new Kr(u)), c;
5810
6125
  },
5811
6126
  void 0,
5812
6127
  i
@@ -5823,7 +6138,7 @@ class ys extends De {
5823
6138
  getOrdersCount(r, e = void 0) {
5824
6139
  return this.get(
5825
6140
  "/internal/orders/count",
5826
- r ? { filters: JSON.stringify((r instanceof j ? r : new j(r)).toPrimitive()) } : {},
6141
+ r ? { filters: JSON.stringify((r instanceof Q ? r : new Q(r)).toPrimitive()) } : {},
5827
6142
  void 0,
5828
6143
  void 0,
5829
6144
  e
@@ -5844,7 +6159,7 @@ class ys extends De {
5844
6159
  * @param orderId Идентификатор заказа для которого необходимо вернуть данные.
5845
6160
  */
5846
6161
  getOrder(r) {
5847
- return this.get(`/internal/orders/${r}`, {}, (e) => new Le(e.data));
6162
+ return this.get(`/internal/orders/${r}`, {}, (e) => new Je(e.data));
5848
6163
  }
5849
6164
  /**
5850
6165
  * Добавляет продукт в заказ и возвращает обновлённые данные заказа.
@@ -5872,7 +6187,7 @@ class ys extends De {
5872
6187
  is_additional_sale: e.isAdditionalSale,
5873
6188
  ...e.configuratorParams
5874
6189
  },
5875
- (i) => new Le(i.data),
6190
+ (i) => new Je(i.data),
5876
6191
  s
5877
6192
  );
5878
6193
  }
@@ -5902,12 +6217,12 @@ class ys extends De {
5902
6217
  marker: s.marker,
5903
6218
  ...s.configuratorParams
5904
6219
  },
5905
- (o) => new Le(o.data),
6220
+ (o) => new Je(o.data),
5906
6221
  i
5907
6222
  );
5908
6223
  }
5909
6224
  }
5910
- class xe {
6225
+ class Ve {
5911
6226
  /**
5912
6227
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
5913
6228
  *
@@ -5934,12 +6249,12 @@ class xe {
5934
6249
  * Источник клиентской цены.
5935
6250
  */
5936
6251
  t(this, "source");
5937
- this.client = new se(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) ?? je.Product;
6252
+ this.client = new ge(r == null ? void 0 : r.client), this.product = new L(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) ?? lr.Product;
5938
6253
  }
5939
6254
  }
5940
- const Oe = (n) => {
6255
+ const Ke = (n) => {
5941
6256
  var r, e, s, i, o;
5942
- return n ? lr(
6257
+ return n ? xr(
5943
6258
  {
5944
6259
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
5945
6260
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -5948,13 +6263,13 @@ const Oe = (n) => {
5948
6263
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
5949
6264
  hideNotActive: n.hideNotActive
5950
6265
  },
5951
- (c) => T(c) || (H(c) || He(c)) && X(c)
6266
+ (c) => A(c) || (W(c) || nr(c)) && ce(c)
5952
6267
  ) : {};
5953
- }, sr = (n) => {
6268
+ }, Sr = (n) => {
5954
6269
  const r = {};
5955
6270
  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;
5956
6271
  };
5957
- class ws extends h {
6272
+ class Ys extends h {
5958
6273
  /**
5959
6274
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5960
6275
  *
@@ -5968,10 +6283,10 @@ class ws extends h {
5968
6283
  return this.get(
5969
6284
  `/internal/price/products/${r}/analyze`,
5970
6285
  {
5971
- ...sr(e),
5972
- filters: Oe(s)
6286
+ ...Sr(e),
6287
+ filters: Ke(s)
5973
6288
  },
5974
- (i) => i.data.map((o) => new xe(o))
6289
+ (i) => i.data.map((o) => new Ve(o))
5975
6290
  );
5976
6291
  }
5977
6292
  /**
@@ -5987,10 +6302,10 @@ class ws extends h {
5987
6302
  return this.get(
5988
6303
  `/internal/price/categories/${r}/analyze`,
5989
6304
  {
5990
- ...sr(e),
5991
- filters: Oe(s)
6305
+ ...Sr(e),
6306
+ filters: Ke(s)
5992
6307
  },
5993
- (i) => i.data.map((o) => new xe(o))
6308
+ (i) => i.data.map((o) => new Ve(o))
5994
6309
  );
5995
6310
  }
5996
6311
  /**
@@ -6009,13 +6324,13 @@ class ws extends h {
6009
6324
  `/internal/price/categories/${r}/analyze/square`,
6010
6325
  {
6011
6326
  ...e,
6012
- filters: Oe(s)
6327
+ filters: Ke(s)
6013
6328
  },
6014
- (i) => i.data.map((o) => new xe(o))
6329
+ (i) => i.data.map((o) => new Ve(o))
6015
6330
  );
6016
6331
  }
6017
6332
  }
6018
- class $t {
6333
+ class Jt {
6019
6334
  /**
6020
6335
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
6021
6336
  *
@@ -6062,10 +6377,10 @@ class $t {
6062
6377
  * @inheritDoc
6063
6378
  */
6064
6379
  t(this, "currency");
6065
- 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 _(r.currency) : void 0;
6380
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? D(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Re(r.product) : void 0, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new H(r.currency) : void 0;
6066
6381
  }
6067
6382
  }
6068
- class Tt extends ue {
6383
+ class Vt extends Re {
6069
6384
  /**
6070
6385
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
6071
6386
  *
@@ -6077,10 +6392,10 @@ class Tt extends ue {
6077
6392
  * @inheritDoc
6078
6393
  */
6079
6394
  t(this, "history");
6080
- this.history = ge(e.history, (s) => new $t(s));
6395
+ this.history = Te(e.history, (s) => new Jt(s));
6081
6396
  }
6082
6397
  }
6083
- class vs extends h {
6398
+ class Ws extends h {
6084
6399
  /**
6085
6400
  * Возвращает данные об истории изменения цен.
6086
6401
  *
@@ -6089,22 +6404,22 @@ class vs extends h {
6089
6404
  * @see /docs/api#/operations/api_internal_price_history_get
6090
6405
  */
6091
6406
  getProductPriceHistory(r) {
6092
- var o, c, u, p, m;
6093
- const e = L().config.dateFormats.api, s = lr(
6094
- le(r, {
6407
+ var o, c, u, p, g;
6408
+ const e = O().config.dateFormats.api, s = xr(
6409
+ De(r, {
6095
6410
  costDate: {
6096
- from: de((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6097
- to: de((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
6411
+ from: Xe((o = r.costDate) == null ? void 0 : o.from) ? N(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
6412
+ to: Xe((u = r.costDate) == null ? void 0 : u.to) ? N(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
6098
6413
  }
6099
6414
  }),
6100
- (f) => T(f) || (H(f) || He(f)) && X(f)
6101
- ), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
6102
- return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((f) => [
6103
- new Tt(le(f[0], { history: f }))
6415
+ (m) => A(m) || (W(m) || nr(m)) && ce(m)
6416
+ ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
6417
+ return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((m) => [
6418
+ new Vt(De(m[0], { history: m }))
6104
6419
  ]);
6105
6420
  }
6106
6421
  }
6107
- class ir {
6422
+ class $r {
6108
6423
  /**
6109
6424
  * Инициализирует экземпляр класса {@link RecommendationsList}.
6110
6425
  *
@@ -6119,10 +6434,10 @@ class ir {
6119
6434
  * Список рекомендованных категорий продуктов.
6120
6435
  */
6121
6436
  t(this, "productCategories", []);
6122
- 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)));
6437
+ r != null && r.products && (this.products = r.products.map((e) => new Re(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Re(e)));
6123
6438
  }
6124
6439
  }
6125
- class Cs extends h {
6440
+ class zs extends h {
6126
6441
  /**
6127
6442
  * Возвращает данные о рекомендациях указанной категории продуктов.
6128
6443
  *
@@ -6130,7 +6445,7 @@ class Cs extends h {
6130
6445
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
6131
6446
  */
6132
6447
  getProductCategoryRecommendations(r) {
6133
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new ir(e.data));
6448
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new $r(e.data));
6134
6449
  }
6135
6450
  /**
6136
6451
  * Возвращает данные о рекомендациях указанного продукта.
@@ -6139,7 +6454,7 @@ class Cs extends h {
6139
6454
  * @see /docs/api#/operations/api_internal_recommendations_product_get
6140
6455
  */
6141
6456
  getProductRecommendations(r) {
6142
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new ir(e.data));
6457
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new $r(e.data));
6143
6458
  }
6144
6459
  /**
6145
6460
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -6168,20 +6483,20 @@ class Cs extends h {
6168
6483
  });
6169
6484
  }
6170
6485
  }
6171
- var bt = /* @__PURE__ */ ((n) => (n.New = "new", n.WorkedOut = "worked_out", n.Pending = "pending", n.Completed = "completed", n.Declined = "declined", n.Deleted = "deleted", n))(bt || {});
6172
- class St extends R {
6486
+ var Kt = /* @__PURE__ */ ((n) => (n.New = "new", n.WorkedOut = "worked_out", n.Pending = "pending", n.Completed = "completed", n.Declined = "declined", n.Deleted = "deleted", n))(Kt || {});
6487
+ class Xt extends R {
6173
6488
  }
6174
- class Rs extends R {
6489
+ class Es extends R {
6175
6490
  }
6176
- class kt extends R {
6491
+ class Zt extends R {
6177
6492
  }
6178
- class It extends R {
6493
+ class es extends R {
6179
6494
  }
6180
- class Lt extends R {
6495
+ class rs extends R {
6181
6496
  }
6182
- class xt extends R {
6497
+ class ts extends R {
6183
6498
  }
6184
- class Ps {
6499
+ class Qs {
6185
6500
  /**
6186
6501
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
6187
6502
  *
@@ -6200,9 +6515,9 @@ class Ps {
6200
6515
  return r.id === 0 && r.slug === "-undefined-";
6201
6516
  }
6202
6517
  }
6203
- class xr extends R {
6518
+ class et extends R {
6204
6519
  }
6205
- class S extends he {
6520
+ class $ extends be {
6206
6521
  /**
6207
6522
  * Возвращает {@link Promise} для получения данных указанного справочника.
6208
6523
  *
@@ -6211,87 +6526,87 @@ class S extends he {
6211
6526
  * и использовать в случае аналогичных запросов.
6212
6527
  */
6213
6528
  getReference(r, e = !1) {
6214
- return this.getTypedDataArrayRequester(St, `/internal/references/${r}`, e);
6529
+ return this.getTypedDataArrayRequester(Xt, `/internal/references/${r}`, e);
6215
6530
  }
6216
6531
  /**
6217
6532
  * Возвращает {@link Promise} для получения справочника данных о канале
6218
6533
  * первичного интереса.
6219
6534
  */
6220
6535
  getChannelPrimaryInterest() {
6221
- return this.getTypedDataArrayRequester(Dr, "/internal/references/channel-primary-interest", !0);
6536
+ return this.getTypedDataArrayRequester(zr, "/internal/references/channel-primary-interest", !0);
6222
6537
  }
6223
6538
  /**
6224
6539
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
6225
6540
  */
6226
6541
  getContactPositions() {
6227
- return this.getTypedDataArrayRequester(kt, "/internal/references/contact-position", !0);
6542
+ return this.getTypedDataArrayRequester(Zt, "/internal/references/contact-position", !0);
6228
6543
  }
6229
6544
  /**
6230
6545
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
6231
6546
  */
6232
6547
  getCuratedDirection() {
6233
- return this.getTypedDataArrayRequester(ze, "/internal/references/curated-direction", !0);
6548
+ return this.getTypedDataArrayRequester(hr, "/internal/references/curated-direction", !0);
6234
6549
  }
6235
6550
  /**
6236
6551
  * Возвращает {@link Promise} для получения справочника списка валют.
6237
6552
  */
6238
6553
  getCurrency() {
6239
- return this.getTypedDataArrayRequester(_, "/public/references/currency", !0);
6554
+ return this.getTypedDataArrayRequester(H, "/public/references/currency", !0);
6240
6555
  }
6241
6556
  /**
6242
6557
  * Возвращает {@link Promise} для получения справочника данных
6243
6558
  * групп партнеров (направлений деятельности).
6244
6559
  */
6245
6560
  getPartnerGroup() {
6246
- return this.getTypedDataArrayRequester(ee, "/internal/references/partner-group", !0);
6561
+ return this.getTypedDataArrayRequester(ue, "/internal/references/partner-group", !0);
6247
6562
  }
6248
6563
  /**
6249
6564
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
6250
6565
  */
6251
6566
  getOpf() {
6252
- return this.getTypedDataArrayRequester(B, "/public/references/opf", !0);
6567
+ return this.getTypedDataArrayRequester(V, "/public/references/opf", !0);
6253
6568
  }
6254
6569
  /**
6255
6570
  * Возвращает {@link Promise} для получения справочника операторов.
6256
6571
  */
6257
6572
  getOperators() {
6258
- return this.getTypedDataArrayRequester(Ir, "/internal/references/operator", !0);
6573
+ return this.getTypedDataArrayRequester(Xr, "/internal/references/operator", !0);
6259
6574
  }
6260
6575
  /**
6261
6576
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
6262
6577
  */
6263
6578
  getOrderPaymentStatuses() {
6264
- return this.getTypedDataArrayRequester(It, "/public/references/order-payment-status", !0);
6579
+ return this.getTypedDataArrayRequester(es, "/public/references/order-payment-status", !0);
6265
6580
  }
6266
6581
  /**
6267
6582
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
6268
6583
  */
6269
6584
  getOrderStatuses() {
6270
- return this.getTypedDataArrayRequester(Lt, "/internal/references/order-status", !0);
6585
+ return this.getTypedDataArrayRequester(rs, "/internal/references/order-status", !0);
6271
6586
  }
6272
6587
  /**
6273
6588
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
6274
6589
  */
6275
6590
  getPaymentTypes() {
6276
- return this.getTypedDataArrayRequester(Lr, "/public/references/payment-type", !0);
6591
+ return this.getTypedDataArrayRequester(Zr, "/public/references/payment-type", !0);
6277
6592
  }
6278
6593
  /**
6279
6594
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
6280
6595
  */
6281
6596
  getResourceTypes() {
6282
- return this.getTypedDataArrayRequester(xr, "/internal/references/resource-type", !0);
6597
+ return this.getTypedDataArrayRequester(et, "/internal/references/resource-type", !0);
6283
6598
  }
6284
6599
  /**
6285
6600
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
6286
6601
  */
6287
6602
  getSalesDirections() {
6288
- return this.getTypedDataArrayRequester(q, "/public/references/sales-direction", !0);
6603
+ return this.getTypedDataArrayRequester(M, "/public/references/sales-direction", !0);
6289
6604
  }
6290
6605
  /**
6291
6606
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
6292
6607
  */
6293
6608
  getSourcePrimaryInterest() {
6294
- return this.getTypedDataArrayRequester($r, "/internal/references/source-primary-interest", !0);
6609
+ return this.getTypedDataArrayRequester(Er, "/internal/references/source-primary-interest", !0);
6295
6610
  }
6296
6611
  /**
6297
6612
  * Выполняет поиск данных о городах по терму в названии.
@@ -6299,7 +6614,7 @@ class S extends he {
6299
6614
  * @param term Терм поиска.
6300
6615
  */
6301
6616
  searchCity(r) {
6302
- return this.getTypedDataArrayRequester(Ae, `/internal/references/city-with-region-and-country/search?term=${r}`);
6617
+ return this.getTypedDataArrayRequester(_e, `/internal/references/city-with-region-and-country/search?term=${r}`);
6303
6618
  }
6304
6619
  /**
6305
6620
  * Выполняет поиск данных о регионах по терму в названии.
@@ -6307,7 +6622,7 @@ class S extends he {
6307
6622
  * @param term Терм поиска.
6308
6623
  */
6309
6624
  searchRegion(r) {
6310
- return this.getTypedDataArrayRequester(pe, `/internal/references/region-with-country/search?term=${r}`);
6625
+ return this.getTypedDataArrayRequester(Pe, `/internal/references/region-with-country/search?term=${r}`);
6311
6626
  }
6312
6627
  /**
6313
6628
  * Выполняет поиск данных о странах по терму в названии.
@@ -6315,41 +6630,41 @@ class S extends he {
6315
6630
  * @param term Терм поиска.
6316
6631
  */
6317
6632
  searchCountry(r) {
6318
- return this.getTypedDataArrayRequester(Z, `/internal/references/country/search?term=${r}`);
6633
+ return this.getTypedDataArrayRequester(le, `/internal/references/country/search?term=${r}`);
6319
6634
  }
6320
6635
  /**
6321
6636
  * Возвращает {@link Promise} для получения справочника типов доставки.
6322
6637
  */
6323
6638
  getDeliveryTypes() {
6324
- return this.getTypedDataArrayRequester(U, "/internal/references/delivery-type", !0);
6639
+ return this.getTypedDataArrayRequester(j, "/internal/references/delivery-type", !0);
6325
6640
  }
6326
6641
  /**
6327
6642
  * Возвращает {@link Promise} для получения справочника складов.
6328
6643
  */
6329
6644
  getWarehouses() {
6330
- return this.getTypedDataArrayRequester(me, "/public/references/warehouse", !0);
6645
+ return this.getTypedDataArrayRequester(Ae, "/public/references/warehouse", !0);
6331
6646
  }
6332
6647
  /**
6333
6648
  * Возвращает {@link Promise} для получения справочника типов свойств.
6334
6649
  */
6335
6650
  getPropertyTypes() {
6336
- return this.getTypedDataArrayRequester(Cr, "/internal/references/property-type", !0);
6651
+ return this.getTypedDataArrayRequester(jr, "/internal/references/property-type", !0);
6337
6652
  }
6338
6653
  /**
6339
6654
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
6340
6655
  */
6341
6656
  getPriceCoefficients() {
6342
- return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
6657
+ return this.getTypedDataArrayRequester(Oe, "/internal/references/price-coefficient", !0);
6343
6658
  }
6344
6659
  /**
6345
6660
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
6346
6661
  */
6347
6662
  getProductFileType() {
6348
- return this.getTypedDataArrayRequester(xt, "/public/references/product-file-type", !0);
6663
+ return this.getTypedDataArrayRequester(ts, "/public/references/product-file-type", !0);
6349
6664
  }
6350
6665
  }
6351
- const b = z("common.references_private", () => {
6352
- 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), p = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), ie = y(void 0), ne = y(void 0), W = y(void 0), J = y(void 0), $e = y(void 0), Te = y(void 0), l = y(void 0);
6666
+ const S = K("common.references_private", () => {
6667
+ const n = v({}), r = v(void 0), e = v(void 0), s = v(void 0), i = v(void 0), o = v(void 0), c = v(void 0), u = v(void 0), p = v(void 0), g = v(void 0), m = v(void 0), w = v(void 0), me = v(void 0), fe = v(void 0), X = v(void 0), Z = v(void 0), Ne = v(void 0), Ue = v(void 0), l = v(void 0);
6353
6668
  return {
6354
6669
  /**
6355
6670
  * Список загружаемых/загруженных на данный момент значений.
@@ -6390,135 +6705,135 @@ const b = z("common.references_private", () => {
6390
6705
  /**
6391
6706
  * Справочник статусов заказов.
6392
6707
  */
6393
- orderStatusReference: m,
6708
+ orderStatusReference: g,
6394
6709
  /**
6395
6710
  * Справочник типов оплаты заказов.
6396
6711
  */
6397
- paymentTypeReference: f,
6712
+ paymentTypeReference: m,
6398
6713
  /**
6399
6714
  * Справочник групп партнеров.
6400
6715
  */
6401
- partnerGroupReference: D,
6716
+ partnerGroupReference: w,
6402
6717
  /**
6403
6718
  * Справочник типов файлов продукктов/категорий.
6404
6719
  */
6405
- productFileTypeReference: ie,
6720
+ productFileTypeReference: me,
6406
6721
  /**
6407
6722
  * Справочник типов ресурсов.
6408
6723
  */
6409
- resourceTypesReference: ne,
6724
+ resourceTypesReference: fe,
6410
6725
  /**
6411
6726
  * Справочник направлений продаж.
6412
6727
  */
6413
- salesDirectionsReference: W,
6728
+ salesDirectionsReference: X,
6414
6729
  /**
6415
6730
  * Справочник источников первичного интереса.
6416
6731
  */
6417
- sourcePrimaryInterestReference: J,
6732
+ sourcePrimaryInterestReference: Z,
6418
6733
  /**
6419
6734
  * Справочник складов.
6420
6735
  */
6421
- warehousesReference: $e,
6736
+ warehousesReference: Ne,
6422
6737
  /**
6423
6738
  * Справочник типов свойств.
6424
6739
  */
6425
- propertyTypesReference: Te,
6740
+ propertyTypesReference: Ue,
6426
6741
  /**
6427
6742
  * Справочник коэффициентов цен.
6428
6743
  */
6429
6744
  priceCoefficientsReference: l
6430
6745
  };
6431
- }), As = z("common.references", () => {
6432
- const n = A(() => {
6433
- const l = b();
6434
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(S).getChannelPrimaryInterest().then((g) => {
6435
- l.channelPrimaryInterestReference = g;
6436
- }).catch(w)), l.channelPrimaryInterestReference;
6437
- }), r = A(() => {
6438
- const l = b();
6439
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(S).getContactPositions().then((g) => {
6440
- l.contactPositionsReference = g;
6441
- }).catch(w)), l.contactPositionsReference;
6442
- }), e = A(() => {
6443
- const l = b();
6444
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(S).getCurrency().then((g) => {
6445
- l.currencyReference = g;
6446
- }).catch(w)), l.currencyReference;
6447
- }), s = A(() => {
6448
- const l = b();
6449
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(S).getOpf().then((g) => {
6450
- l.opfReference = g;
6451
- }).catch(w)), l.opfReference;
6452
- }), i = A(() => {
6453
- const l = b();
6454
- return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(S).getOperators().then((g) => {
6455
- l.operatorReference = g;
6456
- }).catch(w)), l.operatorReference;
6457
- }), o = A(() => {
6458
- const l = b();
6459
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(S).getOrderPaymentStatuses().then((g) => {
6460
- l.orderPaymentStatusReference = g;
6461
- }).catch(w)), l.orderPaymentStatusReference;
6462
- }), c = A(() => {
6463
- const l = b();
6464
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(S).getOrderStatuses().then((g) => {
6465
- l.orderStatusReference = g;
6466
- }).catch(w)), l.orderStatusReference;
6467
- }), u = A(() => {
6468
- const l = b();
6469
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(S).getPaymentTypes().then((g) => {
6470
- l.paymentTypeReference = g;
6471
- }).catch(w)), l.paymentTypeReference;
6472
- }), p = A(() => {
6473
- const l = b();
6474
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(S).getPartnerGroup().then((g) => {
6475
- l.partnerGroupReference = g;
6476
- }).catch(w)), l.partnerGroupReference;
6477
- }), m = A(() => {
6478
- const l = b();
6479
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(S).getProductFileType().then((g) => {
6480
- l.productFileTypeReference = g;
6481
- }).catch(w)), l.productFileTypeReference;
6482
- }), f = A(() => {
6483
- const l = b();
6484
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(S).getResourceTypes().then((g) => {
6485
- l.resourceTypesReference = g;
6486
- }).catch(w)), l.resourceTypesReference;
6487
- }), D = A(() => {
6488
- const l = b();
6489
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(S).getSalesDirections().then((g) => {
6490
- l.salesDirectionsReference = g;
6491
- }).catch(w)), l.salesDirectionsReference;
6492
- }), ie = A(() => {
6493
- const l = b();
6494
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(S).getSourcePrimaryInterest().then((g) => {
6495
- l.sourcePrimaryInterestReference = g;
6496
- }).catch(w)), l.sourcePrimaryInterestReference;
6497
- }), ne = A(() => {
6498
- const l = b();
6499
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(S).getDeliveryTypes().then((g) => {
6500
- l.deliveryTypeReference = g;
6501
- }).catch(w)), l.deliveryTypeReference;
6502
- }), W = A(() => {
6503
- const l = b();
6504
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(At).getManagers().then((g) => {
6505
- l.managersList = g;
6506
- }).catch(w)), l.managersList;
6507
- }), J = A(() => {
6508
- const l = b();
6509
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(S).getWarehouses().then((g) => {
6510
- l.warehousesReference = g;
6511
- }).catch(w)), l.warehousesReference;
6512
- }), $e = A(() => {
6513
- const l = b();
6514
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(S).getPropertyTypes().then((g) => {
6515
- l.propertyTypesReference = g;
6516
- }).catch(w)), l.propertyTypesReference;
6517
- }), Te = A(() => {
6518
- const l = b();
6519
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(S).getPriceCoefficients().then((g) => {
6520
- l.priceCoefficientsReference = g;
6521
- }).catch(w)), l.priceCoefficientsReference;
6746
+ }), Js = K("common.references", () => {
6747
+ const n = b(() => {
6748
+ const l = S();
6749
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance($).getChannelPrimaryInterest().then((f) => {
6750
+ l.channelPrimaryInterestReference = f;
6751
+ }).catch(a)), l.channelPrimaryInterestReference;
6752
+ }), r = b(() => {
6753
+ const l = S();
6754
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance($).getContactPositions().then((f) => {
6755
+ l.contactPositionsReference = f;
6756
+ }).catch(a)), l.contactPositionsReference;
6757
+ }), e = b(() => {
6758
+ const l = S();
6759
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance($).getCurrency().then((f) => {
6760
+ l.currencyReference = f;
6761
+ }).catch(a)), l.currencyReference;
6762
+ }), s = b(() => {
6763
+ const l = S();
6764
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance($).getOpf().then((f) => {
6765
+ l.opfReference = f;
6766
+ }).catch(a)), l.opfReference;
6767
+ }), i = b(() => {
6768
+ const l = S();
6769
+ return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance($).getOperators().then((f) => {
6770
+ l.operatorReference = f;
6771
+ }).catch(a)), l.operatorReference;
6772
+ }), o = b(() => {
6773
+ const l = S();
6774
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance($).getOrderPaymentStatuses().then((f) => {
6775
+ l.orderPaymentStatusReference = f;
6776
+ }).catch(a)), l.orderPaymentStatusReference;
6777
+ }), c = b(() => {
6778
+ const l = S();
6779
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance($).getOrderStatuses().then((f) => {
6780
+ l.orderStatusReference = f;
6781
+ }).catch(a)), l.orderStatusReference;
6782
+ }), u = b(() => {
6783
+ const l = S();
6784
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance($).getPaymentTypes().then((f) => {
6785
+ l.paymentTypeReference = f;
6786
+ }).catch(a)), l.paymentTypeReference;
6787
+ }), p = b(() => {
6788
+ const l = S();
6789
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance($).getPartnerGroup().then((f) => {
6790
+ l.partnerGroupReference = f;
6791
+ }).catch(a)), l.partnerGroupReference;
6792
+ }), g = b(() => {
6793
+ const l = S();
6794
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance($).getProductFileType().then((f) => {
6795
+ l.productFileTypeReference = f;
6796
+ }).catch(a)), l.productFileTypeReference;
6797
+ }), m = b(() => {
6798
+ const l = S();
6799
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance($).getResourceTypes().then((f) => {
6800
+ l.resourceTypesReference = f;
6801
+ }).catch(a)), l.resourceTypesReference;
6802
+ }), w = b(() => {
6803
+ const l = S();
6804
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance($).getSalesDirections().then((f) => {
6805
+ l.salesDirectionsReference = f;
6806
+ }).catch(a)), l.salesDirectionsReference;
6807
+ }), me = b(() => {
6808
+ const l = S();
6809
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance($).getSourcePrimaryInterest().then((f) => {
6810
+ l.sourcePrimaryInterestReference = f;
6811
+ }).catch(a)), l.sourcePrimaryInterestReference;
6812
+ }), fe = b(() => {
6813
+ const l = S();
6814
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance($).getDeliveryTypes().then((f) => {
6815
+ l.deliveryTypeReference = f;
6816
+ }).catch(a)), l.deliveryTypeReference;
6817
+ }), X = b(() => {
6818
+ const l = S();
6819
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Et).getManagers().then((f) => {
6820
+ l.managersList = f;
6821
+ }).catch(a)), l.managersList;
6822
+ }), Z = b(() => {
6823
+ const l = S();
6824
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance($).getWarehouses().then((f) => {
6825
+ l.warehousesReference = f;
6826
+ }).catch(a)), l.warehousesReference;
6827
+ }), Ne = b(() => {
6828
+ const l = S();
6829
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance($).getPropertyTypes().then((f) => {
6830
+ l.propertyTypesReference = f;
6831
+ }).catch(a)), l.propertyTypesReference;
6832
+ }), Ue = b(() => {
6833
+ const l = S();
6834
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance($).getPriceCoefficients().then((f) => {
6835
+ l.priceCoefficientsReference = f;
6836
+ }).catch(a)), l.priceCoefficientsReference;
6522
6837
  });
6523
6838
  return {
6524
6839
  /**
@@ -6560,42 +6875,42 @@ const b = z("common.references_private", () => {
6560
6875
  /**
6561
6876
  * Справочник типов файлов продуктов/категорий.
6562
6877
  */
6563
- productFilesTypesReference: m,
6878
+ productFilesTypesReference: g,
6564
6879
  /**
6565
6880
  * Справочник типов ресурсов.
6566
6881
  */
6567
- resourceTypesReference: f,
6882
+ resourceTypesReference: m,
6568
6883
  /**
6569
6884
  * Справочник направлений продаж.
6570
6885
  */
6571
- salesDirectionsReference: D,
6886
+ salesDirectionsReference: w,
6572
6887
  /**
6573
6888
  * Справочник каналов первичного интереса.
6574
6889
  */
6575
- sourcePrimaryInterestsReference: ie,
6890
+ sourcePrimaryInterestsReference: me,
6576
6891
  /**
6577
6892
  * Справочник типов доставки.
6578
6893
  */
6579
- deliveryTypeReference: ne,
6894
+ deliveryTypeReference: fe,
6580
6895
  /**
6581
6896
  * Список менеджеров.
6582
6897
  */
6583
- managersList: W,
6898
+ managersList: X,
6584
6899
  /**
6585
6900
  * Справочник складов.
6586
6901
  */
6587
- warehousesReference: J,
6902
+ warehousesReference: Z,
6588
6903
  /**
6589
6904
  * Справочник типов свойств.
6590
6905
  */
6591
- propertyTypesReference: $e,
6906
+ propertyTypesReference: Ne,
6592
6907
  /**
6593
6908
  * Справочник коэффициентов цен.
6594
6909
  */
6595
- priceCoefficientsReference: Te
6910
+ priceCoefficientsReference: Ue
6596
6911
  };
6597
6912
  });
6598
- class Ot {
6913
+ class ss {
6599
6914
  /**
6600
6915
  * Инициализирует экземпляр класса {@link MetaTagItem}.
6601
6916
  *
@@ -6613,7 +6928,7 @@ class Ot {
6613
6928
  this.name = r.name, this.content = r.content;
6614
6929
  }
6615
6930
  }
6616
- class nr {
6931
+ class kr {
6617
6932
  /**
6618
6933
  * Инициализирует экземпляр класса {@link Seo}.
6619
6934
  *
@@ -6653,10 +6968,10 @@ class nr {
6653
6968
  */
6654
6969
  t(this, "tags");
6655
6970
  var e;
6656
- this.resourceType = new xr(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 Ot(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6971
+ this.resourceType = new et(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 ss(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
6657
6972
  }
6658
6973
  }
6659
- class Ds extends h {
6974
+ class Vs extends h {
6660
6975
  /**
6661
6976
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
6662
6977
  *
@@ -6664,7 +6979,7 @@ class Ds extends h {
6664
6979
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
6665
6980
  */
6666
6981
  getResourceSeoData(r, e) {
6667
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new nr(s.data));
6982
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new kr(s.data));
6668
6983
  }
6669
6984
  /**
6670
6985
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -6675,7 +6990,7 @@ class Ds extends h {
6675
6990
  * в случае ошибок в запросах.
6676
6991
  */
6677
6992
  saveResourceSeoData(r, e = {}) {
6678
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new nr(s.data), e);
6993
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new kr(s.data), e);
6679
6994
  }
6680
6995
  /**
6681
6996
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -6687,7 +7002,7 @@ class Ds extends h {
6687
7002
  return this.delete(`/internal/seo/${r.slug}/${e}`);
6688
7003
  }
6689
7004
  }
6690
- class $s extends h {
7005
+ class Ks extends h {
6691
7006
  /**
6692
7007
  * Возвращает подсказки по адресам.
6693
7008
  *
@@ -6734,8 +7049,8 @@ class $s extends h {
6734
7049
  });
6735
7050
  }
6736
7051
  }
6737
- var dt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(dt || {});
6738
- class _t extends vr {
7052
+ var is = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(is || {});
7053
+ class ns extends Br {
6739
7054
  /**
6740
7055
  * Инициализирует экземпляр класса {@link User}.
6741
7056
  *
@@ -6759,15 +7074,15 @@ class _t extends vr {
6759
7074
  * Роль ценообразования текущего пользователя.
6760
7075
  */
6761
7076
  t(this, "pricingRole");
6762
- this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new yr(e.pricingRole) : void 0;
7077
+ this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new Mr(e.pricingRole) : void 0;
6763
7078
  }
6764
7079
  }
6765
- class Ts extends h {
7080
+ class Xs extends h {
6766
7081
  /**
6767
7082
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
6768
7083
  */
6769
7084
  constructor() {
6770
- super(), this.baseUrl = `${L().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
7085
+ super(), this.baseUrl = `${O().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
6771
7086
  }
6772
7087
  /**
6773
7088
  * Функция для получения обновленных токенов доступа.
@@ -6778,17 +7093,17 @@ class Ts extends h {
6778
7093
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
6779
7094
  }
6780
7095
  }
6781
- class qt extends h {
7096
+ class os extends h {
6782
7097
  /**
6783
7098
  * Возвращает данные о текущем пользователе.
6784
7099
  */
6785
7100
  // eslint-disable-next-line class-methods-use-this
6786
7101
  getCurrentUser() {
6787
- return this.get("/internal/users/info", {}, (r) => new _t(r.data), !0);
7102
+ return this.get("/internal/users/info", {}, (r) => new ns(r.data), !0);
6788
7103
  }
6789
7104
  }
6790
- const at = z("common.user_state_private", () => {
6791
- const n = y({}), r = y(void 0);
7105
+ const cs = K("common.user_state_private", () => {
7106
+ const n = v({}), r = v(void 0);
6792
7107
  return {
6793
7108
  /**
6794
7109
  * Список загружаемых/загруженных на данный момент значений.
@@ -6799,20 +7114,20 @@ const at = z("common.user_state_private", () => {
6799
7114
  */
6800
7115
  currentUser: r
6801
7116
  };
6802
- }), bs = z("common.user_state", () => ({
7117
+ }), Zs = K("common.user_state", () => ({
6803
7118
  /**
6804
7119
  * Данные о текущем пользователе.
6805
7120
  */
6806
- currentUser: A(() => {
6807
- const r = at();
6808
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(qt).getCurrentUser().then((e) => {
7121
+ currentUser: b(() => {
7122
+ const r = cs();
7123
+ return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(os).getCurrentUser().then((e) => {
6809
7124
  r.currentUser = e;
6810
- }).catch(w).finally(() => {
7125
+ }).catch(a).finally(() => {
6811
7126
  r.dataLoaderList.currentUser = !1;
6812
7127
  })), r.currentUser;
6813
7128
  })
6814
7129
  }));
6815
- class Ss {
7130
+ class ei {
6816
7131
  /**
6817
7132
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
6818
7133
  *
@@ -6836,162 +7151,167 @@ class Ss {
6836
7151
  }
6837
7152
  }
6838
7153
  export {
6839
- St as AnyReference,
6840
- tt as AppBaseConfig,
6841
- ae as BankAccount,
6842
- De as BasePaginationProvider,
6843
- lt as CalculationTypeEnum,
6844
- ye as Cart,
6845
- Jt as CartProvider,
6846
- Vt as CatalogProvider,
6847
- gr as CatalogableItem,
6848
- a as Category,
6849
- Xe as CategoryFilterSetting,
6850
- Ye as CategoryPricingRule,
6851
- Dr as ChannelPrimaryInterest,
6852
- Rs as City,
6853
- Ae as CityWithRegionAndCountry,
6854
- tr as Client,
6855
- vt as ClientAdditionalData,
6856
- ve as ClientCategory,
6857
- x as ClientDataProvider,
6858
- Kt as ClientPriceProvider,
6859
- Qt as ClientPriceTemplateProvider,
6860
- M as ClientProduct,
6861
- Zt as ClientProductCategoryDataProvider,
6862
- es as ClientProductDataProvider,
6863
- se as ClientShortInfo,
6864
- mt as ClientsAdditionalDataRequestTypeEnum,
6865
- ns as ClientsListFilters,
6866
- ue as CodedIdentity,
6867
- ls as ConfiguratorProvider,
6868
- Rt as ConfiguratorsEnum,
6869
- Ne as Contact,
6870
- fr as ContactLinks,
6871
- G as ContactPerson,
6872
- Ct as ContactPersonRelated,
6873
- kt as ContactPosition,
6874
- Ie as ContactRelation,
6875
- Rr as ContragentBase,
6876
- Ce as ContragentFactory,
6877
- Pr as ContragentIc,
6878
- ft as ContragentPerson,
6879
- yt as ContragentUlNr,
6880
- Ar as ContragentUlR,
6881
- je as CostSourceEnum,
6882
- Z as Country,
6883
- ze as CuratedDirection,
6884
- We as Curator,
6885
- _ as Currency,
6886
- $s as DataSuggestionProvider,
6887
- hs as DateTimeProvider,
6888
- wt as DeletableNamedIdentity,
6889
- Re as DeliveryAddress,
6890
- U as DeliveryType,
6891
- zt as DetailedJwtPayload,
6892
- Xr as DeviceTypeResolutionConfig,
6893
- st as DiscountShortInfo,
6894
- Ss as FieldValidationResultData,
6895
- j as FilterGroup,
6896
- Ze as FilterItem,
6897
- Je as FilterOpEnum,
6898
- gt as FilterSettings,
6899
- hr as GeoCoordinates,
6900
- nt as HiddenCatalogableItem,
6901
- he as HttpCachedRequester,
6902
- Zr as HttpParamsConfig,
7154
+ Xt as AnyReference,
7155
+ $t as AppBaseConfig,
7156
+ tr as BankAccount,
7157
+ qe as BasePaginationProvider,
7158
+ Ot as CalculationTypeEnum,
7159
+ y as CalendarHelper,
7160
+ ke as Cart,
7161
+ as as CartProvider,
7162
+ Ds as CatalogProvider,
7163
+ qr as CatalogableItem,
7164
+ F as Category,
7165
+ Ht as CategoryFilter,
7166
+ Rr as CategoryFilterSetting,
7167
+ Ut as CategoryFilterValue,
7168
+ Dr as CategoryPricingRule,
7169
+ zr as ChannelPrimaryInterest,
7170
+ Es as City,
7171
+ _e as CityWithRegionAndCountry,
7172
+ Ar as Client,
7173
+ Gt as ClientAdditionalData,
7174
+ de as ClientCategory,
7175
+ _ as ClientDataProvider,
7176
+ Rs as ClientPriceProvider,
7177
+ Ps as ClientPriceTemplateProvider,
7178
+ E as ClientProduct,
7179
+ As as ClientProductCategoryDataProvider,
7180
+ Ss as ClientProductDataProvider,
7181
+ ge as ClientShortInfo,
7182
+ Mt as ClientsAdditionalDataRequestTypeEnum,
7183
+ xs as ClientsListFilters,
7184
+ Re as CodedIdentity,
7185
+ _s as ConfiguratorProvider,
7186
+ Wt as ConfiguratorsEnum,
7187
+ sr as Contact,
7188
+ Hr as ContactLinks,
7189
+ J as ContactPerson,
7190
+ Yt as ContactPersonRelated,
7191
+ Zt as ContactPosition,
7192
+ Qe as ContactRelation,
7193
+ Gr as ContragentBase,
7194
+ xe as ContragentFactory,
7195
+ Yr as ContragentIc,
7196
+ Ft as ContragentPerson,
7197
+ Bt as ContragentUlNr,
7198
+ Wr as ContragentUlR,
7199
+ lr as CostSourceEnum,
7200
+ le as Country,
7201
+ hr as CuratedDirection,
7202
+ gr as Curator,
7203
+ H as Currency,
7204
+ Ks as DataSuggestionProvider,
7205
+ Us as DateTimeProvider,
7206
+ jt as DeletableNamedIdentity,
7207
+ Le as DeliveryAddress,
7208
+ j as DeliveryType,
7209
+ vs as DetailedJwtPayload,
7210
+ bt as DeviceTypeResolutionConfig,
7211
+ kt as DiscountShortInfo,
7212
+ ei as FieldValidationResultData,
7213
+ Q as FilterGroup,
7214
+ Pr as FilterItem,
7215
+ mr as FilterOpEnum,
7216
+ Nt as FilterSettings,
7217
+ _r as GeoCoordinates,
7218
+ dt as HiddenCatalogableItem,
7219
+ be as HttpCachedRequester,
7220
+ Tt as HttpParamsConfig,
6903
7221
  h as HttpRequester,
6904
- re as Identity,
6905
- ot as Image,
6906
- F as JwtPayload,
6907
- fe as Manager,
6908
- Be as ManagerCommon,
6909
- ms as ManagerDataFactory,
6910
- At as ManagerDataProvider,
6911
- Ot as MetaTagItem,
6912
- k as NamedIdentity,
6913
- Ir as Operator,
6914
- B as Opf,
6915
- N as OpfEnum,
6916
- Le as Order,
6917
- kr as OrderInfo,
6918
- Dt as OrderItem,
6919
- mr as OrderItemBase,
6920
- It as OrderPaymentStatus,
6921
- br as OrderShortInfo,
6922
- Lt as OrderStatus,
6923
- bt as OrderStatusEnum,
6924
- ys as OrdersDataProvider,
6925
- fs as OrdersListFilters,
6926
- Tr as PaginationFiltersBase,
6927
- ee as PartnerGroup,
6928
- Lr as PaymentType,
6929
- we as PreferencesStorageProvider,
6930
- xe as PriceAnalyze,
6931
- ws as PriceAnalyzeProvider,
6932
- Pe as PriceCoefficient,
6933
- pr as PriceCoefficientEnum,
6934
- vs as PriceHistoryDataProvider,
6935
- $t as PriceHistoryItem,
6936
- K as PriceTemplate,
6937
- Se as PriceTemplateCategory,
6938
- oe as PriceTemplateClient,
6939
- wr as PriceTemplateICatalogableItem,
6940
- ke as PriceTemplateProduct,
6941
- rs as PriceTemplateProvider,
6942
- ce as PricingRole,
6943
- ts as PricingRoleProvider,
6944
- qe as PrimaryCatalogableItem,
6945
- I as Product,
6946
- Yt as ProductCategoryDataProvider,
6947
- Xt as ProductDataProvider,
6948
- xt as ProductFileType,
6949
- pt as ProductFilterTypeEnum,
6950
- Me as ProductPriceCoefficient,
6951
- Tt as ProductPriceHistory,
6952
- Qe as ProductUnit,
6953
- ss as PropertiesProvider,
6954
- Q as Property,
6955
- Cr as PropertyType,
6956
- ut as PropertyTypeEnum,
6957
- V as PropertyValue,
6958
- Cs as RecommendationsDataProvider,
6959
- ir as RecommendationsList,
7222
+ pe as Identity,
7223
+ xt as Image,
7224
+ z as JwtPayload,
7225
+ Se as Manager,
7226
+ pr as ManagerCommon,
7227
+ Bs as ManagerDataFactory,
7228
+ Et as ManagerDataProvider,
7229
+ ss as MetaTagItem,
7230
+ I as NamedIdentity,
7231
+ Xr as Operator,
7232
+ V as Opf,
7233
+ B as OpfEnum,
7234
+ Je as Order,
7235
+ Kr as OrderInfo,
7236
+ Qt as OrderItem,
7237
+ Nr as OrderItemBase,
7238
+ es as OrderPaymentStatus,
7239
+ Jr as OrderShortInfo,
7240
+ rs as OrderStatus,
7241
+ Kt as OrderStatusEnum,
7242
+ Gs as OrdersDataProvider,
7243
+ js as OrdersListFilters,
7244
+ Qr as PaginationFiltersBase,
7245
+ ue as PartnerGroup,
7246
+ Zr as PaymentType,
7247
+ Ie as PreferencesStorageProvider,
7248
+ Ve as PriceAnalyze,
7249
+ Ys as PriceAnalyzeProvider,
7250
+ Oe as PriceCoefficient,
7251
+ Or as PriceCoefficientEnum,
7252
+ Ws as PriceHistoryDataProvider,
7253
+ Jt as PriceHistoryItem,
7254
+ ie as PriceTemplate,
7255
+ ze as PriceTemplateCategory,
7256
+ ae as PriceTemplateClient,
7257
+ Fr as PriceTemplateICatalogableItem,
7258
+ Ee as PriceTemplateProduct,
7259
+ $s as PriceTemplateProvider,
7260
+ Ce as PricingRole,
7261
+ ks as PricingRoleProvider,
7262
+ rr as PrimaryCatalogableItem,
7263
+ L as Product,
7264
+ bs as ProductCategoryDataProvider,
7265
+ Ts as ProductDataProvider,
7266
+ ts as ProductFileType,
7267
+ Ur as ProductFilterTypeEnum,
7268
+ cr as ProductPriceCoefficient,
7269
+ Vt as ProductPriceHistory,
7270
+ Cr as ProductUnit,
7271
+ Is as PropertiesProvider,
7272
+ ne as Property,
7273
+ jr as PropertyType,
7274
+ _t as PropertyTypeEnum,
7275
+ te as PropertyValue,
7276
+ zs as RecommendationsDataProvider,
7277
+ $r as RecommendationsList,
6960
7278
  R as Reference,
6961
- Ps as ReferenceDataFactory,
6962
- S as ReferenceDataProvider,
6963
- pe as Region,
6964
- xr as ResourceType,
6965
- q as SalesDirection,
6966
- et as SentryConfig,
6967
- nr as Seo,
6968
- Ds as SeoDataProvider,
6969
- $r as SourcePrimaryInterest,
6970
- it as StockCount,
6971
- us as TableDataPagination,
6972
- Pt as TableDataPaginationRequestParams,
6973
- ps as TableDataSortRequestParams,
6974
- is as TemplateProductCategoryDataProvider,
6975
- Et as TemplatesListFilters,
6976
- Ge as TypedInstanceFactory,
6977
- Sr as UnitsHelper,
6978
- os as UnknownClientDataProvider,
6979
- ur as UpdatableNamedIdentity,
6980
- _t as User,
6981
- Ts as UserAuthDataProvider,
6982
- vr as UserCommonInfo,
6983
- qt as UserDataProvider,
6984
- yr as UserPricingRole,
6985
- d as UserShortInfo,
6986
- dt as UserTypeEnum,
6987
- cs as VersionConfig,
6988
- me as Warehouse,
6989
- rt as WebSocketConfig,
6990
- er as findCatalogItemByIdRecursive,
6991
- rr as flattenCatalogItems,
6992
- gs as pluralize,
6993
- be as useAuthStateStore,
6994
- L as useBaseConfigStateStore,
6995
- As as useReferencesStore,
6996
- bs as useUserStateStore
7279
+ Qs as ReferenceDataFactory,
7280
+ $ as ReferenceDataProvider,
7281
+ Pe as Region,
7282
+ et as ResourceType,
7283
+ Hs as STANDARD_PERIOD_GROUPS,
7284
+ Ms as STANDARD_PERIOD_SECTIONS,
7285
+ M as SalesDirection,
7286
+ At as SentryConfig,
7287
+ kr as Seo,
7288
+ Vs as SeoDataProvider,
7289
+ Er as SourcePrimaryInterest,
7290
+ It as StockCount,
7291
+ qs as TableDataPagination,
7292
+ zt as TableDataPaginationRequestParams,
7293
+ Ns as TableDataSortRequestParams,
7294
+ ds as TemplateProductCategoryDataProvider,
7295
+ Cs as TemplatesListFilters,
7296
+ ur as TypedInstanceFactory,
7297
+ Vr as UnitsHelper,
7298
+ Ls as UnknownClientDataProvider,
7299
+ Lr as UpdatableNamedIdentity,
7300
+ ns as User,
7301
+ Xs as UserAuthDataProvider,
7302
+ Br as UserCommonInfo,
7303
+ os as UserDataProvider,
7304
+ Mr as UserPricingRole,
7305
+ U as UserShortInfo,
7306
+ is as UserTypeEnum,
7307
+ Os as VersionConfig,
7308
+ Ae as Warehouse,
7309
+ St as WebSocketConfig,
7310
+ br as findCatalogItemByIdRecursive,
7311
+ Tr as flattenCatalogItems,
7312
+ Fs as pluralize,
7313
+ We as useAuthStateStore,
7314
+ O as useBaseConfigStateStore,
7315
+ Js as useReferencesStore,
7316
+ Zs as useUserStateStore
6997
7317
  };