@snabcentr/common-lib 2.23.0 → 2.24.1

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 (61) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +6 -3
  3. package/dist/sc-common-lib.js +1057 -833
  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/date-time/helpers/date-helper.d.ts +13 -0
  8. package/dist/src/date-time/helpers/date-helper.d.ts.map +1 -0
  9. package/dist/src/date-time/helpers/days-ago-iso.d.ts +7 -0
  10. package/dist/src/date-time/helpers/days-ago-iso.d.ts.map +1 -0
  11. package/dist/src/date-time/helpers/format-relative-date.d.ts +7 -0
  12. package/dist/src/date-time/helpers/format-relative-date.d.ts.map +1 -0
  13. package/dist/src/date-time/helpers/index.d.ts +3 -0
  14. package/dist/src/date-time/helpers/index.d.ts.map +1 -1
  15. package/dist/src/helpers/format-percent-change.d.ts +7 -0
  16. package/dist/src/helpers/format-percent-change.d.ts.map +1 -0
  17. package/dist/src/helpers/index.d.ts +1 -0
  18. package/dist/src/helpers/index.d.ts.map +1 -1
  19. package/dist/src/offers/classes/index.d.ts +2 -0
  20. package/dist/src/offers/classes/index.d.ts.map +1 -1
  21. package/dist/src/offers/classes/offer-actualization.d.ts +50 -0
  22. package/dist/src/offers/classes/offer-actualization.d.ts.map +1 -0
  23. package/dist/src/offers/classes/offer-short-info.d.ts +14 -0
  24. package/dist/src/offers/classes/offer-short-info.d.ts.map +1 -1
  25. package/dist/src/offers/classes/offer.d.ts.map +1 -1
  26. package/dist/src/offers/classes/profstroy-offer-item.d.ts +38 -0
  27. package/dist/src/offers/classes/profstroy-offer-item.d.ts.map +1 -0
  28. package/dist/src/offers/enums/index.d.ts +2 -0
  29. package/dist/src/offers/enums/index.d.ts.map +1 -0
  30. package/dist/src/offers/enums/offer-actualization-status.d.ts +22 -0
  31. package/dist/src/offers/enums/offer-actualization-status.d.ts.map +1 -0
  32. package/dist/src/offers/helpers/index.d.ts +2 -0
  33. package/dist/src/offers/helpers/index.d.ts.map +1 -0
  34. package/dist/src/offers/helpers/offer-helper.d.ts +22 -0
  35. package/dist/src/offers/helpers/offer-helper.d.ts.map +1 -0
  36. package/dist/src/offers/index.d.ts +2 -0
  37. package/dist/src/offers/index.d.ts.map +1 -1
  38. package/dist/src/offers/interfaces/i-offer-actualization.d.ts +49 -0
  39. package/dist/src/offers/interfaces/i-offer-actualization.d.ts.map +1 -0
  40. package/dist/src/offers/interfaces/i-offer-short-info.d.ts +14 -0
  41. package/dist/src/offers/interfaces/i-offer-short-info.d.ts.map +1 -1
  42. package/dist/src/offers/interfaces/i-profstroy-offer-file.d.ts +14 -0
  43. package/dist/src/offers/interfaces/i-profstroy-offer-file.d.ts.map +1 -0
  44. package/dist/src/offers/interfaces/i-profstroy-offer-item.d.ts +32 -0
  45. package/dist/src/offers/interfaces/i-profstroy-offer-item.d.ts.map +1 -0
  46. package/dist/src/offers/interfaces/i-profstroy-offer.d.ts +21 -0
  47. package/dist/src/offers/interfaces/i-profstroy-offer.d.ts.map +1 -0
  48. package/dist/src/offers/interfaces/index.d.ts +4 -0
  49. package/dist/src/offers/interfaces/index.d.ts.map +1 -1
  50. package/dist/src/offers/providers/offers-data-provider.d.ts +32 -0
  51. package/dist/src/offers/providers/offers-data-provider.d.ts.map +1 -1
  52. package/dist/src/orders/classes/order-info.d.ts +4 -0
  53. package/dist/src/orders/classes/order-info.d.ts.map +1 -1
  54. package/dist/src/orders/interfaces/i-order-info.d.ts +5 -0
  55. package/dist/src/orders/interfaces/i-order-info.d.ts.map +1 -1
  56. package/dist/src/references/classes/price-coefficient.d.ts.map +1 -1
  57. package/dist/src/system/classes/named-identity.d.ts +4 -0
  58. package/dist/src/system/classes/named-identity.d.ts.map +1 -1
  59. package/dist/src/system/interfaces/i-named-identity.d.ts +4 -0
  60. package/dist/src/system/interfaces/i-named-identity.d.ts.map +1 -1
  61. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- var At = Object.defineProperty;
2
- var dt = (n, r, e) => r in n ? At(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var s = (n, r, e) => dt(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as Qr } from "jwt-decode";
5
- import { merge as Ie, isNil as T, isEmpty as ye, noop as w, mapValues as Jr, isArray as W, every as St, split as $t, startsWith as kt, endsWith as Lt, includes as Ot, isString as C, isFunction as Rr, map as De, isObject as br, isError as Lr, toLower as It, isDate as hr, isPlainObject as xt, isUndefined as Ue, constant as _t, toUpper as qt, cloneDeep as Nt, forEach as Ut, omitBy as Vr } from "lodash-es";
6
- import { objectToCamel as Pr, objectToSnake as Or } from "ts-case-convert";
7
- import { defineStore as te } from "pinia";
8
- import { ref as a, markRaw as Ft, computed as P } from "vue";
9
- import { isAfter as Ir, parseISO as D, startOfToday as gr, format as L, endOfMonth as x, addMonths as $, differenceInCalendarMonths as Mt, startOfMonth as U, getDate as xr, getDaysInMonth as Ht, endOfDay as B, startOfDay as pe, setDate as Bt, startOfWeek as K, addWeeks as fr, differenceInCalendarDays as Ve, addDays as X, addBusinessDays as Wt, startOfYear as oe, endOfYear as Ae, endOfWeek as de, endOfTomorrow as jt, startOfTomorrow as Gt, endOfYesterday as Yt, startOfYesterday as zt, endOfToday as Et, startOfQuarter as Se, endOfQuarter as Fe, subDays as Ke, addYears as Xe, addQuarters as Ze, subYears as er, subQuarters as rr, subMonths as tr, subWeeks as _r, addSeconds as Qt } from "date-fns";
10
- import Jt, { CanceledError as Vt } from "axios";
1
+ var St = Object.defineProperty;
2
+ var $t = (n, r, e) => r in n ? St(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var s = (n, r, e) => $t(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as Kr } from "jwt-decode";
5
+ import { merge as _e, isNil as a, isEmpty as V, noop as D, mapValues as Xr, isArray as z, every as kt, split as Lt, startsWith as Ot, endsWith as It, includes as xt, isString as R, isFunction as br, map as De, isObject as Ar, isError as xr, toLower as _t, isDate as fr, isPlainObject as qt, isUndefined as He, constant as Nt, toUpper as Ut, cloneDeep as Ft, forEach as Mt, round as Ht, omitBy as Zr } from "lodash-es";
6
+ import { objectToCamel as Tr, objectToSnake as _r } from "ts-case-convert";
7
+ import { defineStore as ie } from "pinia";
8
+ import { ref as w, markRaw as Bt, computed as A } from "vue";
9
+ import { isAfter as qr, parseISO as v, startOfToday as qe, format as k, endOfMonth as x, addMonths as $, differenceInCalendarMonths as Wt, startOfMonth as U, getDate as Nr, getDaysInMonth as zt, endOfDay as W, startOfDay as he, setDate as jt, startOfWeek as Z, addWeeks as mr, differenceInCalendarDays as We, addDays as ee, isValid as Gt, subDays as ze, addBusinessDays as Yt, startOfYear as le, endOfYear as de, endOfWeek as Se, endOfTomorrow as Et, startOfTomorrow as Qt, endOfYesterday as Vt, startOfYesterday as Jt, endOfToday as Kt, startOfQuarter as $e, endOfQuarter as Be, addYears as er, addQuarters as rr, subYears as tr, subQuarters as sr, subMonths as ir, subWeeks as Ur, addSeconds as Xt } from "date-fns";
10
+ import Zt, { CanceledError as es } from "axios";
11
11
  class Re {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
@@ -99,7 +99,7 @@ class Re {
99
99
  * @inheritDoc
100
100
  */
101
101
  s(this, "email", "");
102
- Ie(this, r);
102
+ _e(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -107,11 +107,11 @@ class Re {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = Qr(r), t = new Re(Pr(e));
110
+ const e = Kr(r), t = new Re(Tr(e));
111
111
  return t.resourceAccess = e.resource_access, t;
112
112
  }
113
113
  }
114
- class Kr extends Re {
114
+ class et extends Re {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -143,7 +143,7 @@ class Kr extends Re {
143
143
  * @inheritDoc
144
144
  */
145
145
  s(this, "address");
146
- Ie(this, e);
146
+ _e(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -151,11 +151,11 @@ class Kr extends Re {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- const t = Qr(e), i = new Kr(Pr(t));
154
+ const t = Kr(e), i = new et(Tr(t));
155
155
  return i.resourceAccess = t.resource_access, i;
156
156
  }
157
157
  }
158
- class Kt {
158
+ class rs {
159
159
  /**
160
160
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
161
161
  *
@@ -177,7 +177,7 @@ class Kt {
177
177
  this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
178
178
  }
179
179
  }
180
- class Xt {
180
+ class ts {
181
181
  /**
182
182
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
183
183
  *
@@ -199,7 +199,7 @@ class Xt {
199
199
  this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
200
200
  }
201
201
  }
202
- class Zt {
202
+ class ss {
203
203
  /**
204
204
  * Инициализирует экземпляр класса {@link SentryConfig}.
205
205
  *
@@ -244,7 +244,7 @@ class Zt {
244
244
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
245
245
  }
246
246
  }
247
- class es {
247
+ class is {
248
248
  /**
249
249
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
250
250
  *
@@ -283,7 +283,7 @@ class es {
283
283
  this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
284
284
  }
285
285
  }
286
- class rs {
286
+ class ns {
287
287
  /**
288
288
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
289
289
  *
@@ -327,18 +327,18 @@ class rs {
327
327
  */
328
328
  s(this, "dateFormats");
329
329
  var e, t, i;
330
- this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Xt(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Kt(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Zt({
330
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new ts(r == null ? void 0 : r.http), this.deviceTypeByResolution = new rs(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new ss({
331
331
  environment: this.environment,
332
332
  ...r == null ? void 0 : r.sentry
333
- }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new es(r.websocket) : void 0, this.dateFormats = {
333
+ }), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new is(r.websocket) : void 0, this.dateFormats = {
334
334
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
335
335
  uiDate: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
336
336
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
337
337
  };
338
338
  }
339
339
  }
340
- const k = te("common.config", () => {
341
- const n = a(new rs());
340
+ const L = ie("common.config", () => {
341
+ const n = w(new ns());
342
342
  return {
343
343
  /**
344
344
  * Конфигурационные данные приложения.
@@ -356,11 +356,11 @@ const k = te("common.config", () => {
356
356
  * @param appConfig Конфигурация приложения.
357
357
  */
358
358
  setConfig: (t) => {
359
- n.value = Ie(n.value, t);
359
+ n.value = _e(n.value, t);
360
360
  }
361
361
  };
362
362
  });
363
- class Me {
363
+ class je {
364
364
  /**
365
365
  * Возвращает актуальные и не просроченные данные из хранилища.
366
366
  *
@@ -379,8 +379,8 @@ class Me {
379
379
  if (e)
380
380
  try {
381
381
  const t = JSON.parse(e);
382
- if (!t.availableFor || Ir(D(t.availableFor) || gr(), /* @__PURE__ */ new Date())) {
383
- if (T(t.data) || ye(t.data))
382
+ if (!t.availableFor || qr(v(t.availableFor) || qe(), /* @__PURE__ */ new Date())) {
383
+ if (a(t.data) || V(t.data))
384
384
  throw new Error("Data is empty");
385
385
  return t.data;
386
386
  }
@@ -403,7 +403,7 @@ class Me {
403
403
  static saveActualDataToStorage(r, e, t) {
404
404
  if (this.isLocalStorageAvailable())
405
405
  try {
406
- if (T(e) || ye(e))
406
+ if (a(e) || V(e))
407
407
  throw new Error("Data is empty");
408
408
  const i = JSON.stringify({
409
409
  availableFor: t,
@@ -454,7 +454,7 @@ class Me {
454
454
  const i = localStorage.getItem(t);
455
455
  if (i) {
456
456
  const o = JSON.parse(i);
457
- o.availableFor && !Ir(D(o.availableFor) || gr(), /* @__PURE__ */ new Date()) && r.push(t);
457
+ o.availableFor && !qr(v(o.availableFor) || qe(), /* @__PURE__ */ new Date()) && r.push(t);
458
458
  }
459
459
  } catch {
460
460
  r.push(t);
@@ -470,7 +470,7 @@ class Me {
470
470
  }
471
471
  }
472
472
  }
473
- function qr(n) {
473
+ function Fr(n) {
474
474
  try {
475
475
  const r = Re.getJwtPayload(n);
476
476
  return new Date(r.exp * 1e3);
@@ -478,25 +478,25 @@ function qr(n) {
478
478
  return;
479
479
  }
480
480
  }
481
- const ce = te("common.auth_state_private", () => {
482
- const n = a(
481
+ const ue = ie("common.auth_state_private", () => {
482
+ const n = w(
483
483
  (() => {
484
484
  var u;
485
- const o = Me.getActualDataFromStorage(
485
+ const o = je.getActualDataFromStorage(
486
486
  "sc.token"
487
487
  /* JwtToken */
488
488
  );
489
489
  if (o)
490
490
  return Promise.resolve(o);
491
- const c = (u = k().config.devMode) == null ? void 0 : u.initAuthBearerToken;
491
+ const c = (u = L().config.devMode) == null ? void 0 : u.initAuthBearerToken;
492
492
  return c ? Promise.resolve(c) : void 0;
493
493
  })()
494
- ), r = a(void 0), e = a(void 0), t = Ft(/* @__PURE__ */ new Map());
494
+ ), r = w(void 0), e = w(void 0), t = Bt(/* @__PURE__ */ new Map());
495
495
  function i() {
496
- e.value = void 0, T(n.value) || n.value.then((o) => {
496
+ e.value = void 0, a(n.value) || n.value.then((o) => {
497
497
  const c = Re.getJwtPayload(o);
498
- e.value = c.exp * 1e3 > Date.now() ? Jr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
499
- }).catch(w);
498
+ e.value = c.exp * 1e3 > Date.now() ? Xr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
499
+ }).catch(D);
500
500
  }
501
501
  return {
502
502
  /**
@@ -520,47 +520,47 @@ const ce = te("common.auth_state_private", () => {
520
520
  */
521
521
  recalculateUserPermissions: i
522
522
  };
523
- }), sr = te("common.auth_state", () => {
524
- const n = P(() => {
525
- const o = ce();
526
- if (T(o.jwtToken) && !T(o.jwtTokenUpdater)) {
523
+ }), nr = ie("common.auth_state", () => {
524
+ const n = A(() => {
525
+ const o = ue();
526
+ if (a(o.jwtToken) && !a(o.jwtTokenUpdater)) {
527
527
  const c = o.jwtTokenUpdater();
528
528
  o.jwtToken = c, c.then((u) => {
529
- o.jwtToken = Promise.resolve(u), Me.saveActualDataToStorage("sc.token", u, qr(u)), o.recalculateUserPermissions();
530
- }).catch(w);
529
+ o.jwtToken = Promise.resolve(u), je.saveActualDataToStorage("sc.token", u, Fr(u)), o.recalculateUserPermissions();
530
+ }).catch(D);
531
531
  }
532
532
  return o.jwtToken;
533
533
  });
534
534
  function r(o) {
535
- ce().jwtTokenUpdater = o;
535
+ ue().jwtTokenUpdater = o;
536
536
  }
537
537
  function e(o) {
538
- const c = ce();
539
- c.jwtToken = Promise.resolve(o), Me.saveActualDataToStorage("sc.token", o, qr(o)), c.recalculateUserPermissions();
538
+ const c = ue();
539
+ c.jwtToken = Promise.resolve(o), je.saveActualDataToStorage("sc.token", o, Fr(o)), c.recalculateUserPermissions();
540
540
  }
541
541
  function t() {
542
- const o = ce();
543
- o.jwtToken = void 0, o.userPermissions = void 0, Me.saveActualDataToStorage("sc.token", void 0);
542
+ const o = ue();
543
+ o.jwtToken = void 0, o.userPermissions = void 0, je.saveActualDataToStorage("sc.token", void 0);
544
544
  }
545
545
  function i(o) {
546
- const c = ce();
547
- !T(c.jwtToken) && T(c.userPermissions) && c.jwtToken.then((g) => {
546
+ const c = ue();
547
+ !a(c.jwtToken) && a(c.userPermissions) && c.jwtToken.then((g) => {
548
548
  const y = Re.getJwtPayload(g);
549
- c.userPermissions = y.exp * 1e3 > Date.now() ? Jr(y.resourceAccess, (R) => (R == null ? void 0 : R.roles) ?? []) : void 0;
550
- }).catch(w);
551
- const u = W(o) ? o.join(" && ") : o;
549
+ c.userPermissions = y.exp * 1e3 > Date.now() ? Xr(y.resourceAccess, (P) => (P == null ? void 0 : P.roles) ?? []) : void 0;
550
+ }).catch(D);
551
+ const u = z(o) ? o.join(" && ") : o;
552
552
  if (c.userPermissionsComputedRefs.has(u))
553
553
  return c.userPermissionsComputedRefs.get(u);
554
- const p = P(() => {
554
+ const p = A(() => {
555
555
  const g = (y) => {
556
- var ne;
557
- const R = $t(y, ".");
558
- if (R.length < 2)
556
+ var ce;
557
+ const P = Lt(y, ".");
558
+ if (P.length < 2)
559
559
  return !1;
560
- const [Pe, Te] = R, ie = (ne = ce().userPermissions) == null ? void 0 : ne[Pe];
561
- return W(ie) && ie.includes(Te);
560
+ const [Ae, Te] = P, oe = (ce = ue().userPermissions) == null ? void 0 : ce[Ae];
561
+ return z(oe) && oe.includes(Te);
562
562
  };
563
- return W(o) ? St(o, (y) => g(y)) : g(o);
563
+ return z(o) ? kt(o, (y) => g(y)) : g(o);
564
564
  });
565
565
  return c.userPermissionsComputedRefs.set(u, p), p;
566
566
  }
@@ -593,7 +593,7 @@ const ce = te("common.auth_state_private", () => {
593
593
  hasUserPermission: i
594
594
  };
595
595
  });
596
- var He = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(He || {});
596
+ var Ge = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(Ge || {});
597
597
  class G {
598
598
  /**
599
599
  * Инициализирует экземпляр класса {@link Identity}.
@@ -610,16 +610,16 @@ class G {
610
610
  * @inheritDoc
611
611
  */
612
612
  s(this, "guid");
613
- 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) ?? "";
613
+ 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) ?? "";
614
614
  }
615
615
  /**
616
616
  * Возвращает признак, что это новая запись.
617
617
  */
618
618
  isNewRec() {
619
- return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : T(this.id);
619
+ return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : a(this.id);
620
620
  }
621
621
  }
622
- class mr extends G {
622
+ class yr extends G {
623
623
  /**
624
624
  * Инициализирует экземпляр класса {@link BlogPostMediaFile}.
625
625
  *
@@ -647,23 +647,23 @@ class mr extends G {
647
647
  * @inheritDoc
648
648
  */
649
649
  s(this, "urlWebp");
650
- this.mediaType = (e == null ? void 0 : e.mediaType) ?? He.Image, this.isCover = (e == null ? void 0 : e.isCover) ?? !1, this.isUnused = (e == null ? void 0 : e.isUnused) ?? !1, this.url = (e == null ? void 0 : e.url) ?? "", this.urlWebp = e == null ? void 0 : e.urlWebp;
650
+ this.mediaType = (e == null ? void 0 : e.mediaType) ?? Ge.Image, this.isCover = (e == null ? void 0 : e.isCover) ?? !1, this.isUnused = (e == null ? void 0 : e.isUnused) ?? !1, this.url = (e == null ? void 0 : e.url) ?? "", this.urlWebp = e == null ? void 0 : e.urlWebp;
651
651
  }
652
652
  /**
653
653
  * Возвращает признак того, что медиафайл является изображением.
654
654
  */
655
655
  isImage() {
656
- return this.mediaType === He.Image;
656
+ return this.mediaType === Ge.Image;
657
657
  }
658
658
  /**
659
659
  * Возвращает признак того, что медиафайл является видео.
660
660
  */
661
661
  isVideo() {
662
- return this.mediaType === He.Video;
662
+ return this.mediaType === Ge.Video;
663
663
  }
664
664
  }
665
- var Be = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(Be || {});
666
- class me extends G {
665
+ var Ye = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(Ye || {});
666
+ class ye extends G {
667
667
  /**
668
668
  * Инициализирует экземпляр класса {@link BlogPostShortInfo}.
669
669
  *
@@ -687,7 +687,7 @@ class me extends G {
687
687
  * @inheritDoc
688
688
  */
689
689
  s(this, "createdAt");
690
- this.slug = (e == null ? void 0 : e.slug) ?? "", this.title = (e == null ? void 0 : e.title) ?? "", this.publishedAt = me.parseDate(e == null ? void 0 : e.publishedAt), this.createdAt = me.parseDate(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
690
+ this.slug = (e == null ? void 0 : e.slug) ?? "", this.title = (e == null ? void 0 : e.title) ?? "", this.publishedAt = ye.parseDate(e == null ? void 0 : e.publishedAt), this.createdAt = ye.parseDate(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
691
691
  }
692
692
  /**
693
693
  * Возвращает состояние публикации статьи по дате её публикации.
@@ -695,7 +695,7 @@ class me extends G {
695
695
  * @param publishedAt Дата и время публикации статьи.
696
696
  */
697
697
  static resolvePublicationStatus(e) {
698
- return T(e) ? Be.Draft : e.getTime() > Date.now() ? Be.Scheduled : Be.Published;
698
+ return a(e) ? Ye.Draft : e.getTime() > Date.now() ? Ye.Scheduled : Ye.Published;
699
699
  }
700
700
  /**
701
701
  * Возвращает описание ошибки символьного обозначения статьи либо пустую строку,
@@ -707,7 +707,7 @@ class me extends G {
707
707
  * @param slug Символьное обозначение статьи.
708
708
  */
709
709
  static getSlugError(e) {
710
- return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : kt(e, "-") || Lt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Ot(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
710
+ return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : Ot(e, "-") || It(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : xt(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
711
711
  }
712
712
  /**
713
713
  * Преобразует значение даты, полученное из API, в объект {@link Date}.
@@ -715,16 +715,16 @@ class me extends G {
715
715
  * @param value Значение даты.
716
716
  */
717
717
  static parseDate(e) {
718
- return T(e) ? null : C(e) ? D(e) : e;
718
+ return a(e) ? null : R(e) ? v(e) : e;
719
719
  }
720
720
  /**
721
721
  * Возвращает состояние публикации статьи.
722
722
  */
723
723
  getPublicationStatus() {
724
- return me.resolvePublicationStatus(this.publishedAt);
724
+ return ye.resolvePublicationStatus(this.publishedAt);
725
725
  }
726
726
  }
727
- class ir extends me {
727
+ class or extends ye {
728
728
  /**
729
729
  * Инициализирует экземпляр класса {@link BlogPost}.
730
730
  *
@@ -740,7 +740,7 @@ class ir extends me {
740
740
  * @inheritDoc
741
741
  */
742
742
  s(this, "media");
743
- this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new mr(t));
743
+ this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new yr(t));
744
744
  }
745
745
  /**
746
746
  * Возвращает данные статьи для отправки на портал.
@@ -771,7 +771,7 @@ class ir extends me {
771
771
  return this.media.filter((e) => e.isUnused);
772
772
  }
773
773
  }
774
- class qe {
774
+ class Fe {
775
775
  /**
776
776
  * Возвращает очищенное значение фильтров, содержащие
777
777
  * только актуальные данные.
@@ -780,12 +780,12 @@ class qe {
780
780
  const r = {};
781
781
  return Object.keys(this).forEach((e) => {
782
782
  const t = this[e];
783
- T(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
784
- C(t) && t.trim().length === 0 || Rr(t.isNewRec) && t.isNewRec() || (r[e] = t);
783
+ a(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
784
+ R(t) && t.trim().length === 0 || br(t.isNewRec) && t.isNewRec() || (r[e] = t);
785
785
  }), r;
786
786
  }
787
787
  }
788
- class A {
788
+ class T {
789
789
  /**
790
790
  * Инициализирует экземпляр класса {@link DatePeriod}.
791
791
  *
@@ -800,10 +800,10 @@ class A {
800
800
  * Окончание периода.
801
801
  */
802
802
  s(this, "to");
803
- 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;
803
+ this.from = R(r == null ? void 0 : r.from) ? v(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = R(r == null ? void 0 : r.to) ? v(r.to) : (r == null ? void 0 : r.to) ?? null;
804
804
  }
805
805
  }
806
- class js extends qe {
806
+ class Js extends Fe {
807
807
  /**
808
808
  * Инициализирует экземпляр класса {@link BlogPostsListFilters}.
809
809
  *
@@ -839,7 +839,7 @@ class js extends qe {
839
839
  * @inheritDoc
840
840
  */
841
841
  s(this, "createdAt");
842
- this.id = e == null ? void 0 : e.id, this.title = e == null ? void 0 : e.title, this.slug = e == null ? void 0 : e.slug, this.content = e == null ? void 0 : e.content, this.publicationStatus = e == null ? void 0 : e.publicationStatus, this.publishedAt = new A(e == null ? void 0 : e.publishedAt), this.createdAt = new A(e == null ? void 0 : e.createdAt);
842
+ this.id = e == null ? void 0 : e.id, this.title = e == null ? void 0 : e.title, this.slug = e == null ? void 0 : e.slug, this.content = e == null ? void 0 : e.content, this.publicationStatus = e == null ? void 0 : e.publicationStatus, this.publishedAt = new T(e == null ? void 0 : e.publishedAt), this.createdAt = new T(e == null ? void 0 : e.createdAt);
843
843
  }
844
844
  /**
845
845
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -905,7 +905,7 @@ class _ {
905
905
  * @throws TypeError Если вместо списка данных получены данные другого типа.
906
906
  */
907
907
  static instanceListInitializer(r, e) {
908
- if (!W(e))
908
+ if (!z(e))
909
909
  throw new TypeError(`Ожидался список данных для инициализации "${r.name}", получены данные типа "${typeof e}".`);
910
910
  return De(e, (t) => _.instanceInitializer(r, t));
911
911
  }
@@ -922,7 +922,7 @@ const b = class b {
922
922
  /**
923
923
  * Базовый URL путь для выполнения запросов.
924
924
  */
925
- s(this, "baseUrl", `${k().config.http.portalApiUrl}/api`);
925
+ s(this, "baseUrl", `${L().config.http.portalApiUrl}/api`);
926
926
  /**
927
927
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
928
928
  *
@@ -930,7 +930,7 @@ const b = class b {
930
930
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
931
931
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
932
932
  */
933
- s(this, "errorResponseHandler", w);
933
+ s(this, "errorResponseHandler", D);
934
934
  /**
935
935
  * Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
936
936
  */
@@ -949,7 +949,7 @@ const b = class b {
949
949
  // eslint-disable-next-line class-methods-use-this
950
950
  s(this, "authRequestInterceptor", async (r) => {
951
951
  let e;
952
- return T(sr().jwtToken) || (e = await sr().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
952
+ return a(nr().jwtToken) || (e = await nr().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
953
953
  });
954
954
  /**
955
955
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -964,7 +964,7 @@ const b = class b {
964
964
  * @param request Данные запроса.
965
965
  */
966
966
  // eslint-disable-next-line class-methods-use-this
967
- s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Or(r.params)), ["put", "patch", "post"].includes(It(r.method)) && r.data && (r.data = Or(r.data))), r));
967
+ s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = _r(r.params)), ["put", "patch", "post"].includes(_t(r.method)) && r.data && (r.data = _r(r.data))), r));
968
968
  /**
969
969
  * Перехватчик ошибок ответов на запрос.
970
970
  *
@@ -973,7 +973,7 @@ const b = class b {
973
973
  s(this, "authErrorsResponseInterceptors", (r) => {
974
974
  var t;
975
975
  const e = r.rawError ? (t = r.rawError) == null ? void 0 : t.config : void 0;
976
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (sr().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
976
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (nr().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
977
977
  });
978
978
  /**
979
979
  * Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
@@ -984,7 +984,7 @@ const b = class b {
984
984
  s(this, "canceledResponseInterceptor", (r) => {
985
985
  const e = r.rawError ?? r;
986
986
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
987
- throw new Vt("Request canceled");
987
+ throw new es("Request canceled");
988
988
  return Promise.reject(r);
989
989
  });
990
990
  /**
@@ -1000,8 +1000,8 @@ const b = class b {
1000
1000
  * @param response Данные ответа на запрос.
1001
1001
  */
1002
1002
  // eslint-disable-next-line class-methods-use-this
1003
- s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Pr(r.data)), r));
1004
- this.errorResponseHandler = b.defaultErrorsResponseHandler, this.httpClient = Jt.create({
1003
+ s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Tr(r.data)), r));
1004
+ this.errorResponseHandler = b.defaultErrorsResponseHandler, this.httpClient = Zt.create({
1005
1005
  headers: {
1006
1006
  Accept: "application/json",
1007
1007
  "Content-Type": "application/json"
@@ -1076,12 +1076,12 @@ const b = class b {
1076
1076
  * @param error Данные об ошибке.
1077
1077
  */
1078
1078
  static toHttpResponseError(r) {
1079
- return br(r) && "status" in r ? r : {
1079
+ return Ar(r) && "status" in r ? r : {
1080
1080
  status: 0,
1081
1081
  statusText: "Invalid response data",
1082
- message: Lr(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1082
+ message: xr(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1083
1083
  headers: {},
1084
- rawError: Lr(r) ? r : new Error(String(r))
1084
+ rawError: xr(r) ? r : new Error(String(r))
1085
1085
  };
1086
1086
  }
1087
1087
  /**
@@ -1091,8 +1091,8 @@ const b = class b {
1091
1091
  */
1092
1092
  static convertHttpErrorResponse(r) {
1093
1093
  var e, t;
1094
- if (T(r) || !T(r.request) || !T(r.response)) {
1095
- const i = T(r) ? {} : r == null ? void 0 : r.response;
1094
+ if (a(r) || !a(r.request) || !a(r.response)) {
1095
+ const i = a(r) ? {} : r == null ? void 0 : r.response;
1096
1096
  return Promise.reject({
1097
1097
  status: (i == null ? void 0 : i.status) ?? 0,
1098
1098
  statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
@@ -1207,7 +1207,7 @@ s(b, "instances", {}), /**
1207
1207
  * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
1208
1208
  * @param disableNotifications Признак необходимости отключить уведомления об ошибках.
1209
1209
  */
1210
- s(b, "defaultErrorsResponseHandler", w), /**
1210
+ s(b, "defaultErrorsResponseHandler", D), /**
1211
1211
  * Список зарегистрированных хуков для запросов.
1212
1212
  */
1213
1213
  s(b, "requestHooks", []), /**
@@ -1215,8 +1215,8 @@ s(b, "requestHooks", []), /**
1215
1215
  */
1216
1216
  s(b, "responseHooks", []);
1217
1217
  let h = b;
1218
- var Tr = /* @__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))(Tr || {});
1219
- class Nr {
1218
+ var dr = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(dr || {});
1219
+ class Mr {
1220
1220
  /**
1221
1221
  * Инициализирует экземпляр класса {@link FilterItem}.
1222
1222
  *
@@ -1235,7 +1235,7 @@ class Nr {
1235
1235
  * Значение с которым сравнивается поле.
1236
1236
  */
1237
1237
  s(this, "value");
1238
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Tr.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
1238
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? dr.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
1239
1239
  }
1240
1240
  /**
1241
1241
  * Преобразует фильтр в примитивное представление для API.
@@ -1243,24 +1243,24 @@ class Nr {
1243
1243
  * @returns Примитивное представление фильтра.
1244
1244
  */
1245
1245
  toPrimitive() {
1246
- const r = k().config.dateFormats.api, e = {
1246
+ const r = L().config.dateFormats.api, e = {
1247
1247
  field: this.field,
1248
1248
  op: this.op
1249
1249
  };
1250
- if (hr(this.value))
1251
- e.value = L(this.value, r);
1252
- else if (xt(this.value)) {
1250
+ if (fr(this.value))
1251
+ e.value = k(this.value, r);
1252
+ else if (qt(this.value)) {
1253
1253
  const t = this.value;
1254
1254
  e.value = {
1255
- from: t.from ? L(t.from, r) : null,
1256
- to: t.to ? L(t.to, r) : null
1255
+ from: t.from ? k(t.from, r) : null,
1256
+ to: t.to ? k(t.to, r) : null
1257
1257
  };
1258
1258
  } else
1259
1259
  e.value = this.value;
1260
1260
  return e;
1261
1261
  }
1262
1262
  }
1263
- class Z {
1263
+ class re {
1264
1264
  /**
1265
1265
  * Инициализирует экземпляр класса {@link FilterGroup}.
1266
1266
  *
@@ -1280,7 +1280,7 @@ class Z {
1280
1280
  */
1281
1281
  s(this, "groups");
1282
1282
  var e, t;
1283
- 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 Nr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new Z(i))) ?? [];
1283
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Mr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new re(i))) ?? [];
1284
1284
  }
1285
1285
  /**
1286
1286
  * Преобразует группу фильтров в примитивное представление для API.
@@ -1290,8 +1290,8 @@ class Z {
1290
1290
  toPrimitive() {
1291
1291
  return {
1292
1292
  groupOp: this.groupOp,
1293
- filters: this.filters.map((r) => r instanceof Nr && Rr(r.toPrimitive) ? r.toPrimitive() : r),
1294
- groups: this.groups.map((r) => r instanceof Z ? r.toPrimitive() : r)
1293
+ filters: this.filters.map((r) => r instanceof Mr && br(r.toPrimitive) ? r.toPrimitive() : r),
1294
+ groups: this.groups.map((r) => r instanceof re ? r.toPrimitive() : r)
1295
1295
  };
1296
1296
  }
1297
1297
  }
@@ -1313,7 +1313,7 @@ class Y extends h {
1313
1313
  page: (i == null ? void 0 : i.page) ?? 1,
1314
1314
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
1315
1315
  };
1316
- return e && (g.filters = JSON.stringify((e instanceof Z ? e : new Z(e)).toPrimitive())), ye(t) || (g.sort = W(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1316
+ return e && (g.filters = JSON.stringify((e instanceof re ? e : new re(e)).toPrimitive())), V(t) || (g.sort = z(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1317
1317
  }
1318
1318
  /**
1319
1319
  * Получает пагинированный список экземпляров указанного класса.
@@ -1343,7 +1343,7 @@ class Y extends h {
1343
1343
  );
1344
1344
  }
1345
1345
  }
1346
- class yr extends Y {
1346
+ class ar extends Y {
1347
1347
  /**
1348
1348
  * Возвращает данные статьи блога, подготовленные для отправки на портал.
1349
1349
  *
@@ -1354,9 +1354,9 @@ class yr extends Y {
1354
1354
  */
1355
1355
  static preparePostSaveData(r) {
1356
1356
  const e = {};
1357
- if (Ue(r.title) || (e.title = r.title), Ue(r.slug) || (e.slug = r.slug), Ue(r.content) || (e.content = r.content), !Ue(r.publishedAt)) {
1358
- const t = k().config.dateFormats.api;
1359
- e.publishedAt = T(r.publishedAt) ? null : L(r.publishedAt, t);
1357
+ if (He(r.title) || (e.title = r.title), He(r.slug) || (e.slug = r.slug), He(r.content) || (e.content = r.content), !He(r.publishedAt)) {
1358
+ const t = L().config.dateFormats.api;
1359
+ e.publishedAt = a(r.publishedAt) ? null : k(r.publishedAt, t);
1360
1360
  }
1361
1361
  return e;
1362
1362
  }
@@ -1376,7 +1376,7 @@ class yr extends Y {
1376
1376
  return this.getPaginated("/internal/blog", r, e, t, {}, (i) => ({
1377
1377
  ...i.data,
1378
1378
  // eslint-disable-next-line lodash/prefer-lodash-method
1379
- data: i.data.data.map((o) => new me(o))
1379
+ data: i.data.data.map((o) => new ye(o))
1380
1380
  }));
1381
1381
  }
1382
1382
  /**
@@ -1387,7 +1387,7 @@ class yr extends Y {
1387
1387
  * @see /doc/api/internal#/operations/api_internal_blog_get
1388
1388
  */
1389
1389
  getPost(r) {
1390
- return this.get(`/internal/blog/${r}`, {}, (e) => new ir(e.data));
1390
+ return this.get(`/internal/blog/${r}`, {}, (e) => new or(e.data));
1391
1391
  }
1392
1392
  /**
1393
1393
  * Создаёт новую статью блога.
@@ -1400,7 +1400,7 @@ class yr extends Y {
1400
1400
  * @see /doc/api/internal#/operations/api_internal_blog_create
1401
1401
  */
1402
1402
  createPost(r, e = {}) {
1403
- return this.post("/internal/blog", yr.preparePostSaveData(r), (t) => new ir(t.data), e);
1403
+ return this.post("/internal/blog", ar.preparePostSaveData(r), (t) => new or(t.data), e);
1404
1404
  }
1405
1405
  /**
1406
1406
  * Изменяет данные о статье блога.
@@ -1414,7 +1414,7 @@ class yr extends Y {
1414
1414
  * @see /doc/api/internal#/operations/api_internal_blog_update
1415
1415
  */
1416
1416
  updatePost(r, e, t = {}) {
1417
- return this.patch(`/internal/blog/${r}`, yr.preparePostSaveData(e), (i) => new ir(i.data), t);
1417
+ return this.patch(`/internal/blog/${r}`, ar.preparePostSaveData(e), (i) => new or(i.data), t);
1418
1418
  }
1419
1419
  /**
1420
1420
  * Удаляет статью блога.
@@ -1449,7 +1449,7 @@ class yr extends Y {
1449
1449
  i && i(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1450
1450
  }
1451
1451
  },
1452
- (c) => new mr(c.data),
1452
+ (c) => new yr(c.data),
1453
1453
  o
1454
1454
  );
1455
1455
  }
@@ -1469,7 +1469,7 @@ class yr extends Y {
1469
1469
  return this.patch(
1470
1470
  `/internal/blog/${r}/media/${e}`,
1471
1471
  { isCover: t },
1472
- (o) => new mr(o.data),
1472
+ (o) => new yr(o.data),
1473
1473
  i
1474
1474
  );
1475
1475
  }
@@ -1501,6 +1501,12 @@ class O extends G {
1501
1501
  s(this, "name", "");
1502
1502
  this.name = (e == null ? void 0 : e.name) ?? "";
1503
1503
  }
1504
+ /**
1505
+ * @inheritdoc
1506
+ */
1507
+ nameOrGuid() {
1508
+ return V(this.name) ? this.guid : this.name;
1509
+ }
1504
1510
  }
1505
1511
  class q extends O {
1506
1512
  /**
@@ -1521,7 +1527,7 @@ class q extends O {
1521
1527
  this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
1522
1528
  }
1523
1529
  }
1524
- class ts extends O {
1530
+ class os extends O {
1525
1531
  /**
1526
1532
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1527
1533
  *
@@ -1557,10 +1563,10 @@ class ts extends O {
1557
1563
  * Дата и время удаления.
1558
1564
  */
1559
1565
  s(this, "deletedAt");
1560
- 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 q(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1566
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = R(e == null ? void 0 : e.publishedAt) ? v(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 q(e == null ? void 0 : e.owner), this.deletedAt = R(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1561
1567
  }
1562
1568
  }
1563
- class Xr extends O {
1569
+ class rt extends O {
1564
1570
  /**
1565
1571
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1566
1572
  *
@@ -1572,10 +1578,10 @@ class Xr extends O {
1572
1578
  * Дата и время последнего изменения.
1573
1579
  */
1574
1580
  s(this, "updatedAt");
1575
- this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? D(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1581
+ this.updatedAt = R(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1576
1582
  }
1577
1583
  }
1578
- class he extends Xr {
1584
+ class ge extends rt {
1579
1585
  /**
1580
1586
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1581
1587
  *
@@ -1595,11 +1601,11 @@ class he extends Xr {
1595
1601
  * Данные о пользователе, создавшем шаблон прайс-листа.
1596
1602
  */
1597
1603
  s(this, "owner");
1598
- 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(), this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1604
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = R(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1599
1605
  }
1600
1606
  }
1601
- var Zr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Zr || {});
1602
- class v extends O {
1607
+ var tt = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(tt || {});
1608
+ class C extends O {
1603
1609
  /**
1604
1610
  * Инициализирует экземпляр класса {@link Reference}.
1605
1611
  *
@@ -1618,15 +1624,21 @@ class v extends O {
1618
1624
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
1619
1625
  }
1620
1626
  }
1621
- class Ge extends v {
1627
+ class Pe extends C {
1622
1628
  /**
1623
1629
  * Возвращает значение справочника коэффициента розничной цены.
1624
1630
  */
1625
1631
  static getRetailPriceCoefficient() {
1626
- return { id: -2, slug: Zr.Retail, name: "Розн. цена", guid: "", isNewRec: _t(!0) };
1632
+ const r = new Pe({
1633
+ id: -2,
1634
+ slug: tt.Retail,
1635
+ name: "Розн. цена",
1636
+ guid: ""
1637
+ });
1638
+ return r.isNewRec = Nt(!0), r;
1627
1639
  }
1628
1640
  }
1629
- class Ar {
1641
+ class Sr {
1630
1642
  /**
1631
1643
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
1632
1644
  *
@@ -1653,10 +1665,10 @@ class Ar {
1653
1665
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
1654
1666
  */
1655
1667
  s(this, "readOnly");
1656
- this.coefficient = new Ge(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;
1668
+ 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;
1657
1669
  }
1658
1670
  }
1659
- class et {
1671
+ class st {
1660
1672
  /**
1661
1673
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
1662
1674
  *
@@ -1674,9 +1686,9 @@ class et {
1674
1686
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
1675
1687
  }
1676
1688
  }
1677
- class Q extends v {
1689
+ class J extends C {
1678
1690
  }
1679
- class Ne extends v {
1691
+ class Me extends C {
1680
1692
  /**
1681
1693
  * Инициализирует экземпляр класса {@link Warehouse}.
1682
1694
  *
@@ -1705,10 +1717,10 @@ class Ne extends v {
1705
1717
  * Координаты склада.
1706
1718
  */
1707
1719
  s(this, "coordinates");
1708
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new Q(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new et(e == null ? void 0 : e.coordinates);
1720
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new J(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new st(e == null ? void 0 : e.coordinates);
1709
1721
  }
1710
1722
  }
1711
- class ss {
1723
+ class cs {
1712
1724
  /**
1713
1725
  * Инициализирует экземпляр класса {@link StockCount}.
1714
1726
  *
@@ -1723,7 +1735,7 @@ class ss {
1723
1735
  * Количество остатков товара на складе.
1724
1736
  */
1725
1737
  s(this, "count");
1726
- this.warehouse = new Ne(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1738
+ this.warehouse = new Me(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1727
1739
  }
1728
1740
  }
1729
1741
  class j extends O {
@@ -1753,7 +1765,7 @@ class j extends O {
1753
1765
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
1754
1766
  }
1755
1767
  }
1756
- class Ur extends O {
1768
+ class Hr extends O {
1757
1769
  /**
1758
1770
  * Инициализирует экземпляр класса {@link ProductUnit}.
1759
1771
  *
@@ -1780,7 +1792,7 @@ class Ur extends O {
1780
1792
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1781
1793
  }
1782
1794
  }
1783
- class xe extends O {
1795
+ class Ne extends O {
1784
1796
  /**
1785
1797
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1786
1798
  *
@@ -1795,7 +1807,7 @@ class xe extends O {
1795
1807
  this.code = (e == null ? void 0 : e.code) ?? "";
1796
1808
  }
1797
1809
  }
1798
- class rt extends xe {
1810
+ class it extends Ne {
1799
1811
  /**
1800
1812
  * Инициализирует экземпляр класса {@link CatalogableItem}.
1801
1813
  *
@@ -1814,7 +1826,7 @@ class rt extends xe {
1814
1826
  this.slug = (e == null ? void 0 : e.slug) ?? "";
1815
1827
  }
1816
1828
  }
1817
- class is extends rt {
1829
+ class ls extends it {
1818
1830
  /**
1819
1831
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
1820
1832
  *
@@ -1829,7 +1841,7 @@ class is extends rt {
1829
1841
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
1830
1842
  }
1831
1843
  }
1832
- class ns {
1844
+ class us {
1833
1845
  /**
1834
1846
  * Инициализирует экземпляр класса {@link Image}.
1835
1847
  *
@@ -1852,7 +1864,7 @@ class ns {
1852
1864
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
1853
1865
  }
1854
1866
  }
1855
- class ar extends rt {
1867
+ class wr extends it {
1856
1868
  /**
1857
1869
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
1858
1870
  *
@@ -1867,7 +1879,7 @@ class ar extends rt {
1867
1879
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
1868
1880
  }
1869
1881
  }
1870
- class N extends is {
1882
+ class N extends ls {
1871
1883
  /**
1872
1884
  * Инициализирует экземпляр класса {@link Product}.
1873
1885
  *
@@ -1944,9 +1956,9 @@ class N extends is {
1944
1956
  * Список коэффициентов цен на продукт.
1945
1957
  */
1946
1958
  s(this, "priceCoefficients");
1947
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ur(e.unit) : new Ur(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new j(e.currency) : new j(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = 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 ss(p))) ?? [], this.type = "product";
1959
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Hr(e.unit) : new Hr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new j(e.currency) : new j(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = R(e == null ? void 0 : e.costDate) ? v(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 cs(p))) ?? [], this.type = "product";
1948
1960
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
1949
- t && (this.category = new ar({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new ar(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new ns(p, k().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 Ar(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1961
+ t && (this.category = new wr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new wr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new us(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 Sr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1950
1962
  }
1951
1963
  /**
1952
1964
  * Возвращает признак, что это измеряемый товар.
@@ -1967,8 +1979,8 @@ class N extends is {
1967
1979
  return this.retailCostRub ?? this.costRub;
1968
1980
  }
1969
1981
  }
1970
- var dr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(dr || {});
1971
- class J extends N {
1982
+ var $r = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))($r || {});
1983
+ class K extends N {
1972
1984
  /**
1973
1985
  * Инициализирует экземпляр класса {@link ClientProduct}.
1974
1986
  *
@@ -2004,10 +2016,10 @@ class J extends N {
2004
2016
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
2005
2017
  */
2006
2018
  s(this, "isFavorite");
2007
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? dr.Product, this.discount = e != null && e.discount ? new ts(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new he(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;
2019
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? $r.Product, this.discount = e != null && e.discount ? new os(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new ge(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;
2008
2020
  }
2009
2021
  }
2010
- class be extends ar {
2022
+ class be extends wr {
2011
2023
  /**
2012
2024
  * Инициализирует экземпляр класса {@link BaseCategory}.
2013
2025
  *
@@ -2031,10 +2043,10 @@ class be extends ar {
2031
2043
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
2032
2044
  */
2033
2045
  s(this, "currencyRates");
2034
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([t, i]) => [qt(t), i])) : void 0;
2046
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([t, i]) => [Ut(t), i])) : void 0;
2035
2047
  }
2036
2048
  }
2037
- class tt extends G {
2049
+ class nt extends G {
2038
2050
  /**
2039
2051
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2040
2052
  *
@@ -2110,10 +2122,10 @@ class tt extends G {
2110
2122
  * @inheritDoc
2111
2123
  */
2112
2124
  s(this, "replacementId");
2113
- this.product = new J(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new be(), this.currency = e.currency ? new j(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Nt(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new q(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2125
+ this.product = new K(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new be(), this.currency = e.currency ? new j(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ft(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new q(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2114
2126
  }
2115
2127
  }
2116
- let st = class extends tt {
2128
+ let kr = class extends nt {
2117
2129
  /**
2118
2130
  * Инициализирует экземпляр класса {@link OrderItem}.
2119
2131
  *
@@ -2157,10 +2169,10 @@ let st = class extends tt {
2157
2169
  * @inheritDoc
2158
2170
  */
2159
2171
  s(this, "currency");
2160
- 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 j(e.currency);
2172
+ 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 = z(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new j(e.currency);
2161
2173
  }
2162
2174
  };
2163
- class $e {
2175
+ class ke {
2164
2176
  /**
2165
2177
  * Инициализирует экземпляр класса {@link Cart}.
2166
2178
  *
@@ -2179,10 +2191,10 @@ class $e {
2179
2191
  * @inheritDoc
2180
2192
  */
2181
2193
  s(this, "directionsSum");
2182
- this.items = r.items.map((e) => new st(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2194
+ this.items = r.items.map((e) => new kr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2183
2195
  }
2184
2196
  }
2185
- class Ys extends h {
2197
+ class Xs extends h {
2186
2198
  /**
2187
2199
  * Возвращает содержимое корзины указанного клиента.
2188
2200
  *
@@ -2191,7 +2203,7 @@ class Ys extends h {
2191
2203
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
2192
2204
  */
2193
2205
  getCart(r) {
2194
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new $e(e.data));
2206
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ke(e.data));
2195
2207
  }
2196
2208
  /**
2197
2209
  * Удаляет всё содержимое корзины.
@@ -2229,7 +2241,7 @@ class Ys extends h {
2229
2241
  is_additional_sale: e.isAdditionalSale,
2230
2242
  ...e.configuratorParams
2231
2243
  },
2232
- (i) => new $e(i.data),
2244
+ (i) => new ke(i.data),
2233
2245
  t
2234
2246
  );
2235
2247
  }
@@ -2259,7 +2271,7 @@ class Ys extends h {
2259
2271
  is_additional_sale: e.isAdditionalSale,
2260
2272
  ...e.configuratorParams
2261
2273
  },
2262
- (i) => new $e(i.data),
2274
+ (i) => new ke(i.data),
2263
2275
  t
2264
2276
  );
2265
2277
  }
@@ -2272,7 +2284,7 @@ class Ys extends h {
2272
2284
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_delete_item
2273
2285
  */
2274
2286
  deleteCartItem(r, e) {
2275
- return this.delete(`internal/clients/${r.id}/cart/${e.id}`, (t) => new $e(t.data));
2287
+ return this.delete(`internal/clients/${r.id}/cart/${e.id}`, (t) => new ke(t.data));
2276
2288
  }
2277
2289
  /**
2278
2290
  * Добавляет продукты в корзину из файла CSV.
@@ -2283,7 +2295,7 @@ class Ys extends h {
2283
2295
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
2284
2296
  */
2285
2297
  addCartItemFromCSV(r, e) {
2286
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (t) => new $e(t.data));
2298
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (t) => new ke(t.data));
2287
2299
  }
2288
2300
  /**
2289
2301
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -2296,8 +2308,8 @@ class Ys extends h {
2296
2308
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
2297
2309
  }
2298
2310
  }
2299
- var os = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(os || {}), cs = /* @__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))(cs || {}), it = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(it || {});
2300
- class z extends be {
2311
+ var ps = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ps || {}), hs = /* @__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))(hs || {}), ot = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(ot || {});
2312
+ class E extends be {
2301
2313
  /**
2302
2314
  * Инициализирует экземпляр класса {@link Category}.
2303
2315
  *
@@ -2314,10 +2326,10 @@ class z extends be {
2314
2326
  * Список продуктов категории.
2315
2327
  */
2316
2328
  s(this, "products");
2317
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new N(o));
2329
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new E(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new N(o));
2318
2330
  }
2319
2331
  }
2320
- class nt {
2332
+ class ct {
2321
2333
  /**
2322
2334
  * Инициализирует экземпляр класса {@link ContactLinks}.
2323
2335
  *
@@ -2335,9 +2347,9 @@ class nt {
2335
2347
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
2336
2348
  }
2337
2349
  }
2338
- class F extends v {
2350
+ class F extends C {
2339
2351
  }
2340
- class Sr extends O {
2352
+ class Lr extends O {
2341
2353
  /**
2342
2354
  * Инициализирует экземпляр класса {@link ManagerCommon}.
2343
2355
  *
@@ -2365,12 +2377,12 @@ class Sr extends O {
2365
2377
  * @inheritDoc
2366
2378
  */
2367
2379
  s(this, "isRegionalDirector");
2368
- this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : new F(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new nt(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2380
+ this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : new F(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new ct(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2369
2381
  }
2370
2382
  }
2371
- class $r extends v {
2383
+ class Or extends C {
2372
2384
  }
2373
- class ot extends O {
2385
+ class lt extends O {
2374
2386
  /**
2375
2387
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
2376
2388
  *
@@ -2393,7 +2405,7 @@ class ot extends O {
2393
2405
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
2394
2406
  }
2395
2407
  }
2396
- class Ye extends O {
2408
+ class Ve extends O {
2397
2409
  /**
2398
2410
  * Инициализирует экземпляр класса {@link UserRegionShortInfo}.
2399
2411
  *
@@ -2408,7 +2420,7 @@ class Ye extends O {
2408
2420
  this.abbr = (e == null ? void 0 : e.abbr) ?? "";
2409
2421
  }
2410
2422
  }
2411
- class V extends Sr {
2423
+ class X extends Lr {
2412
2424
  /**
2413
2425
  * Инициализирует экземпляр класса {@link Manager}.
2414
2426
  *
@@ -2465,10 +2477,10 @@ class V extends Sr {
2465
2477
  * Дата и время последнего входа в систему.
2466
2478
  */
2467
2479
  s(this, "lastLoginAt");
2468
- 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 = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new ot(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new $r(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (i = e == null ? void 0 : e.managerRegions) == null ? void 0 : i.map((c) => new Ye(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new V(c)), this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? D(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2480
+ this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = R(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new lt(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Or(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (i = e == null ? void 0 : e.managerRegions) == null ? void 0 : i.map((c) => new Ve(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new X(c)), this.lastLoginAt = R(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2469
2481
  }
2470
2482
  }
2471
- class ls extends be {
2483
+ class gs extends be {
2472
2484
  /**
2473
2485
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
2474
2486
  *
@@ -2496,10 +2508,10 @@ class ls extends be {
2496
2508
  * Данные о менеджере за которым закреплена категория.
2497
2509
  */
2498
2510
  s(this, "manager");
2499
- 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 V(e.manager) : void 0;
2511
+ 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 X(e.manager) : void 0;
2500
2512
  }
2501
2513
  }
2502
- class We extends ls {
2514
+ class Ee extends gs {
2503
2515
  /**
2504
2516
  * Инициализирует экземпляр класса {@link ClientCategory}.
2505
2517
  *
@@ -2516,10 +2528,10 @@ class We extends ls {
2516
2528
  * Список продуктов категории.
2517
2529
  */
2518
2530
  s(this, "products");
2519
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new We(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
2531
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Ee(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
2520
2532
  }
2521
2533
  }
2522
- class ct {
2534
+ class ut {
2523
2535
  /**
2524
2536
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
2525
2537
  *
@@ -2534,10 +2546,10 @@ class ct {
2534
2546
  * Процент, который прибавляется к значению выбранного коэффициента.
2535
2547
  */
2536
2548
  s(this, "increasePercent");
2537
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Ge(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2549
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2538
2550
  }
2539
2551
  }
2540
- class nr extends ct {
2552
+ class cr extends ut {
2541
2553
  /**
2542
2554
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2543
2555
  *
@@ -2552,7 +2564,7 @@ class nr extends ct {
2552
2564
  this.productCategory = new be(e == null ? void 0 : e.productCategory);
2553
2565
  }
2554
2566
  }
2555
- class kr extends O {
2567
+ class Ir extends O {
2556
2568
  /**
2557
2569
  * Инициализирует экземпляр класса {@link Curator}.
2558
2570
  *
@@ -2572,12 +2584,12 @@ class kr extends O {
2572
2584
  * @inheritDoc
2573
2585
  */
2574
2586
  s(this, "curatedDirection");
2575
- this.photo = e.photo, this.contacts = new nt(e.contacts), this.curatedDirection = new $r(e.curatedDirection);
2587
+ this.photo = e.photo, this.contacts = new ct(e.contacts), this.curatedDirection = new Or(e.curatedDirection);
2576
2588
  }
2577
2589
  }
2578
- class ae extends v {
2590
+ class ae extends C {
2579
2591
  }
2580
- class ve extends v {
2592
+ class we extends C {
2581
2593
  /**
2582
2594
  * Инициализирует экземпляр класса {@link Region}.
2583
2595
  *
@@ -2592,7 +2604,7 @@ class ve extends v {
2592
2604
  e && (this.country = new ae(e.country));
2593
2605
  }
2594
2606
  }
2595
- class we extends v {
2607
+ class ve extends C {
2596
2608
  /**
2597
2609
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
2598
2610
  *
@@ -2603,11 +2615,11 @@ class we extends v {
2603
2615
  /**
2604
2616
  * Данные о регионе, в котором расположен город.
2605
2617
  */
2606
- s(this, "region", new ve());
2607
- e && (this.region = new ve(e.region));
2618
+ s(this, "region", new we());
2619
+ e && (this.region = new we(e.region));
2608
2620
  }
2609
2621
  }
2610
- class lt extends O {
2622
+ class pt extends O {
2611
2623
  /**
2612
2624
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2613
2625
  *
@@ -2643,10 +2655,10 @@ class lt extends O {
2643
2655
  * Признак активности учетной записи пользователя.
2644
2656
  */
2645
2657
  s(this, "isActive");
2646
- 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 F(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;
2658
+ 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 F(e.salesDirection) : void 0, this.createdAt = R(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = R(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2647
2659
  }
2648
2660
  }
2649
- class se extends lt {
2661
+ class ne extends pt {
2650
2662
  /**
2651
2663
  * Инициализирует экземпляр класса {@link Client}.
2652
2664
  *
@@ -2692,10 +2704,10 @@ class se extends lt {
2692
2704
  * @inheritDoc
2693
2705
  */
2694
2706
  s(this, "curators");
2695
- this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new we(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new Sr(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new kr(o))) ?? void 0;
2707
+ this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new ve(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new Lr(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Ir(o))) ?? void 0;
2696
2708
  }
2697
2709
  }
2698
- class ke extends G {
2710
+ class Le extends G {
2699
2711
  /**
2700
2712
  * Инициализирует новый экземпляр класса.
2701
2713
  *
@@ -2719,10 +2731,10 @@ class ke extends G {
2719
2731
  * Данные шаблона прайс-листа.
2720
2732
  */
2721
2733
  s(this, "priceTemplate");
2722
- 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 se(e == null ? void 0 : e.client), this.priceTemplate = new he(e == null ? void 0 : e.priceTemplate);
2734
+ this.createdAt = R(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = R(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new ge(e == null ? void 0 : e.priceTemplate);
2723
2735
  }
2724
2736
  }
2725
- class or extends ct {
2737
+ class lr extends ut {
2726
2738
  /**
2727
2739
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2728
2740
  *
@@ -2737,9 +2749,9 @@ class or extends ct {
2737
2749
  this.product = new N(e == null ? void 0 : e.product);
2738
2750
  }
2739
2751
  }
2740
- class ut extends v {
2752
+ class ht extends C {
2741
2753
  }
2742
- class ge extends O {
2754
+ class fe extends O {
2743
2755
  /**
2744
2756
  * Инициализирует экземпляр класса {@link Property}.
2745
2757
  *
@@ -2763,10 +2775,10 @@ class ge extends O {
2763
2775
  * Признак того, что по свойству может производиться фильтрация в каталоге.
2764
2776
  */
2765
2777
  s(this, "isFilterable");
2766
- this.type = new ut(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;
2778
+ this.type = new ht(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;
2767
2779
  }
2768
2780
  }
2769
- class le {
2781
+ class pe {
2770
2782
  /**
2771
2783
  * Инициализирует экземпляр класса {@link PropertyValue}.
2772
2784
  *
@@ -2782,10 +2794,10 @@ class le {
2782
2794
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2783
2795
  */
2784
2796
  s(this, "value");
2785
- this.property = new ge(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2797
+ this.property = new fe(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2786
2798
  }
2787
2799
  }
2788
- class zs {
2800
+ class Zs {
2789
2801
  /**
2790
2802
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2791
2803
  *
@@ -2811,12 +2823,12 @@ class zs {
2811
2823
  /**
2812
2824
  * Период создания.
2813
2825
  */
2814
- s(this, "createdAt", new A());
2826
+ s(this, "createdAt", new T());
2815
2827
  /**
2816
2828
  * Период изменения.
2817
2829
  */
2818
- s(this, "updatedAt", new A());
2819
- 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.ownerName = r == null ? void 0 : r.ownerName, this.createdAt = new A(r == null ? void 0 : r.createdAt), this.updatedAt = new A(r == null ? void 0 : r.updatedAt);
2830
+ s(this, "updatedAt", new T());
2831
+ 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.ownerName = r == null ? void 0 : r.ownerName, this.createdAt = new T(r == null ? void 0 : r.createdAt), this.updatedAt = new T(r == null ? void 0 : r.updatedAt);
2820
2832
  }
2821
2833
  /**
2822
2834
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2850,11 +2862,11 @@ class zs {
2850
2862
  return Object.keys(this).forEach((c) => {
2851
2863
  const u = this[c];
2852
2864
  // eslint-disable-next-line prettier/prettier
2853
- T(u) || C(u) && u.trim().length === 0 || Rr(u.isNewRec) && u.isNewRec() || (r[c] = u);
2865
+ a(u) || R(u) && u.trim().length === 0 || br(u.isNewRec) && u.isNewRec() || (r[c] = u);
2854
2866
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
2855
2867
  }
2856
2868
  }
2857
- class Le extends O {
2869
+ class Oe extends O {
2858
2870
  /**
2859
2871
  * Инициализирует экземпляр класса {@link PricingRole}.
2860
2872
  *
@@ -2889,7 +2901,7 @@ class Le extends O {
2889
2901
  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;
2890
2902
  }
2891
2903
  }
2892
- class Fr {
2904
+ class Br {
2893
2905
  /**
2894
2906
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2895
2907
  *
@@ -2908,10 +2920,10 @@ class Fr {
2908
2920
  * Минимальный коэффициент цены.
2909
2921
  */
2910
2922
  s(this, "minCoefficient");
2911
- this.role = new Le(r == null ? void 0 : r.role), this.category = new be(r == null ? void 0 : r.category), this.minCoefficient = new Ge(r == null ? void 0 : r.minCoefficient);
2923
+ this.role = new Oe(r == null ? void 0 : r.role), this.category = new be(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
2912
2924
  }
2913
2925
  }
2914
- class us {
2926
+ class fs {
2915
2927
  /**
2916
2928
  * Инициализирует экземпляр класса {@link FilterSettings}.
2917
2929
  *
@@ -2944,7 +2956,7 @@ class us {
2944
2956
  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;
2945
2957
  }
2946
2958
  }
2947
- class Mr {
2959
+ class Wr {
2948
2960
  /**
2949
2961
  * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
2950
2962
  *
@@ -2963,10 +2975,10 @@ class Mr {
2963
2975
  * @inheritDoc
2964
2976
  */
2965
2977
  s(this, "settings");
2966
- this.category = new be(r == null ? void 0 : r.category), this.property = new ge(r == null ? void 0 : r.property), this.settings = new us(r == null ? void 0 : r.settings);
2978
+ this.category = new be(r == null ? void 0 : r.category), this.property = new fe(r == null ? void 0 : r.property), this.settings = new fs(r == null ? void 0 : r.settings);
2967
2979
  }
2968
2980
  }
2969
- class ps {
2981
+ class ms {
2970
2982
  /**
2971
2983
  * Инициализирует экземпляр класса {@link CategoryFilterValue}.
2972
2984
  *
@@ -2984,7 +2996,7 @@ class ps {
2984
2996
  this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
2985
2997
  }
2986
2998
  }
2987
- class hs {
2999
+ class ys {
2988
3000
  /**
2989
3001
  * Инициализирует экземпляр класса {@link CategoryFilter}.
2990
3002
  *
@@ -3027,10 +3039,10 @@ class hs {
3027
3039
  */
3028
3040
  s(this, "max");
3029
3041
  var e;
3030
- this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? it.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new ps(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3042
+ this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? ot.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new ms(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3031
3043
  }
3032
3044
  }
3033
- class Es extends h {
3045
+ class ei extends h {
3034
3046
  /**
3035
3047
  * Возвращает данные о результатах поиска категорий и товаров.
3036
3048
  *
@@ -3057,11 +3069,11 @@ class Es extends h {
3057
3069
  */
3058
3070
  // eslint-disable-next-line class-methods-use-this
3059
3071
  getPriceExportLink(r = "csv", e = !1, t = void 0, i = void 0) {
3060
- let c = `${k().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3072
+ let c = `${L().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3061
3073
  return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
3062
3074
  }
3063
3075
  }
3064
- class Qs extends h {
3076
+ class ri extends h {
3065
3077
  /**
3066
3078
  * Импортирует цены клиента из CSV файла.
3067
3079
  *
@@ -3185,7 +3197,7 @@ class Qs extends h {
3185
3197
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3186
3198
  increase_percent: t.value
3187
3199
  },
3188
- (o) => new J(o.data)
3200
+ (o) => new K(o.data)
3189
3201
  );
3190
3202
  }
3191
3203
  /**
@@ -3197,7 +3209,7 @@ class Qs extends h {
3197
3209
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
3198
3210
  */
3199
3211
  removeProductPrice(r, e) {
3200
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new J(t.data));
3212
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new K(t.data));
3201
3213
  }
3202
3214
  /**
3203
3215
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -3260,7 +3272,7 @@ class Qs extends h {
3260
3272
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3261
3273
  }
3262
3274
  }
3263
- class Js extends h {
3275
+ class ti extends h {
3264
3276
  /**
3265
3277
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3266
3278
  *
@@ -3269,7 +3281,7 @@ class Js extends h {
3269
3281
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_list
3270
3282
  */
3271
3283
  getTemplateList(r) {
3272
- return this.getTypedList(ke, `/internal/clients/${r}/price/templates`);
3284
+ return this.getTypedList(Le, `/internal/clients/${r}/price/templates`);
3273
3285
  }
3274
3286
  /**
3275
3287
  * Возвращает действующий шаблон прайс листа привязанный к клиенту.
@@ -3279,7 +3291,7 @@ class Js extends h {
3279
3291
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
3280
3292
  */
3281
3293
  getActiveTemplate(r) {
3282
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new ke(e.data), !0);
3294
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new Le(e.data), !0);
3283
3295
  }
3284
3296
  /**
3285
3297
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -3291,14 +3303,14 @@ class Js extends h {
3291
3303
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
3292
3304
  */
3293
3305
  attachTemplate(r, e, t) {
3294
- const i = k().config.dateFormats.api;
3306
+ const i = L().config.dateFormats.api;
3295
3307
  return this.post(
3296
3308
  `/internal/clients/${r}/price/templates/${e}`,
3297
3309
  t && {
3298
- startAt: t.startAt && L(t.startAt, i),
3299
- endAt: t.endAt && L(t.endAt, i)
3310
+ startAt: t.startAt && k(t.startAt, i),
3311
+ endAt: t.endAt && k(t.endAt, i)
3300
3312
  },
3301
- (o) => new ke(o.data),
3313
+ (o) => new Le(o.data),
3302
3314
  {},
3303
3315
  !0
3304
3316
  );
@@ -3325,14 +3337,14 @@ class Js extends h {
3325
3337
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
3326
3338
  */
3327
3339
  changeTemplate(r, e, t, i) {
3328
- const o = k().config.dateFormats.api;
3340
+ const o = L().config.dateFormats.api;
3329
3341
  return this.patch(
3330
3342
  `/internal/clients/${r}/price/templates/${e}/${t}`,
3331
3343
  i && {
3332
- startAt: i.startAt && L(i.startAt, o),
3333
- endAt: i.endAt && L(i.endAt, o)
3344
+ startAt: i.startAt && k(i.startAt, o),
3345
+ endAt: i.endAt && k(i.endAt, o)
3334
3346
  },
3335
- (c) => new ke(c.data)
3347
+ (c) => new Le(c.data)
3336
3348
  );
3337
3349
  }
3338
3350
  /**
@@ -3348,7 +3360,7 @@ class Js extends h {
3348
3360
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
3349
3361
  }
3350
3362
  }
3351
- class Vs extends h {
3363
+ class si extends h {
3352
3364
  /**
3353
3365
  * Возвращает список данных о корневых категориях.
3354
3366
  *
@@ -3357,7 +3369,7 @@ class Vs extends h {
3357
3369
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3358
3370
  */
3359
3371
  getRootCategoriesList(r = !1) {
3360
- return this.getTypedList(z, "/internal/catalog/categories", {
3372
+ return this.getTypedList(E, "/internal/catalog/categories", {
3361
3373
  showHidden: r
3362
3374
  });
3363
3375
  }
@@ -3377,7 +3389,7 @@ class Vs extends h {
3377
3389
  showHidden: e,
3378
3390
  withNestedCategories: t
3379
3391
  },
3380
- (i) => new z(i.data)
3392
+ (i) => new E(i.data)
3381
3393
  );
3382
3394
  }
3383
3395
  /**
@@ -3386,7 +3398,7 @@ class Vs extends h {
3386
3398
  * @param categoryID Идентификатор категории продуктов.
3387
3399
  */
3388
3400
  getPublicCategoryData(r) {
3389
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new z(e.data));
3401
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new E(e.data));
3390
3402
  }
3391
3403
  /**
3392
3404
  * Возвращает список продуктов категории.
@@ -3417,7 +3429,7 @@ class Vs extends h {
3417
3429
  getCategoryProductsCoefficients(r) {
3418
3430
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
3419
3431
  const { data: t } = e;
3420
- return Ut(t, (i) => i.map((o) => new Ar(o))), t;
3432
+ return Mt(t, (i) => i.map((o) => new Sr(o))), t;
3421
3433
  });
3422
3434
  }
3423
3435
  /**
@@ -3429,14 +3441,14 @@ class Vs extends h {
3429
3441
  publicSimpleSearch(r, e = 10) {
3430
3442
  return new Promise((t, i) => {
3431
3443
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3432
- t(o.categories.map((c) => new z(c)));
3444
+ t(o.categories.map((c) => new E(c)));
3433
3445
  }).catch((o) => {
3434
3446
  i(o);
3435
3447
  });
3436
3448
  });
3437
3449
  }
3438
3450
  }
3439
- class Ks extends Y {
3451
+ class ii extends Y {
3440
3452
  /**
3441
3453
  * Возвращает данные об указанном продукте.
3442
3454
  *
@@ -3467,7 +3479,7 @@ class Ks extends Y {
3467
3479
  return this.get(
3468
3480
  `/internal/catalog/products/${r}/coefficients`,
3469
3481
  {},
3470
- (e) => De(e.data, (t) => new Ar(t))
3482
+ (e) => De(e.data, (t) => new Sr(t))
3471
3483
  );
3472
3484
  }
3473
3485
  /**
@@ -3480,9 +3492,9 @@ class Ks extends Y {
3480
3492
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3481
3493
  */
3482
3494
  getNewProducts(r, e, t = !0) {
3483
- const i = k().config.dateFormats.api;
3495
+ const i = L().config.dateFormats.api;
3484
3496
  return this.getTypedPaginated(N, "/internal/catalog/products/new", void 0, void 0, e, {
3485
- period: { from: L(r, i) },
3497
+ period: { from: k(r, i) },
3486
3498
  withPriceCoefficients: t
3487
3499
  });
3488
3500
  }
@@ -3502,7 +3514,7 @@ class Ks extends Y {
3502
3514
  });
3503
3515
  }
3504
3516
  }
3505
- class Xs extends h {
3517
+ class ni extends h {
3506
3518
  /**
3507
3519
  * Возвращает список данных о корневых категориях указанного клиента.
3508
3520
  *
@@ -3512,7 +3524,7 @@ class Xs extends h {
3512
3524
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3513
3525
  */
3514
3526
  getRootCategoriesList(r, e = !1) {
3515
- return this.getTypedList(We, "/internal/catalog/categories", {
3527
+ return this.getTypedList(Ee, "/internal/catalog/categories", {
3516
3528
  clientId: r,
3517
3529
  showHidden: e
3518
3530
  });
@@ -3535,7 +3547,7 @@ class Xs extends h {
3535
3547
  showHidden: t,
3536
3548
  withNestedCategories: i
3537
3549
  },
3538
- (o) => new We(o.data)
3550
+ (o) => new Ee(o.data)
3539
3551
  );
3540
3552
  }
3541
3553
  /**
@@ -3556,11 +3568,11 @@ class Xs extends h {
3556
3568
  showHidden: i,
3557
3569
  withPriceCoefficients: t
3558
3570
  },
3559
- (o) => De(o.data, (c) => new J(c))
3571
+ (o) => De(o.data, (c) => new K(c))
3560
3572
  );
3561
3573
  }
3562
3574
  }
3563
- class Zs extends Y {
3575
+ class oi extends Y {
3564
3576
  /**
3565
3577
  * Возвращает данные об указанном продукте для указанного клиента.
3566
3578
  *
@@ -3577,7 +3589,7 @@ class Zs extends Y {
3577
3589
  clientId: e,
3578
3590
  withPriceCoefficients: t
3579
3591
  },
3580
- (i) => new J(i.data)
3592
+ (i) => new K(i.data)
3581
3593
  );
3582
3594
  }
3583
3595
  /**
@@ -3591,15 +3603,15 @@ class Zs extends Y {
3591
3603
  * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3592
3604
  */
3593
3605
  getNewProducts(r, e, t, i = !0) {
3594
- const o = k().config.dateFormats.api;
3595
- return this.getTypedPaginated(J, "/internal/catalog/products/new", void 0, void 0, t, {
3606
+ const o = L().config.dateFormats.api;
3607
+ return this.getTypedPaginated(K, "/internal/catalog/products/new", void 0, void 0, t, {
3596
3608
  clientId: r,
3597
- period: { from: L(e, o) },
3609
+ period: { from: k(e, o) },
3598
3610
  withPriceCoefficients: i
3599
3611
  });
3600
3612
  }
3601
3613
  }
3602
- class ei extends Y {
3614
+ class ci extends Y {
3603
3615
  /**
3604
3616
  * Возвращает список шаблонов прайс-листа.
3605
3617
  *
@@ -3610,7 +3622,7 @@ class ei extends Y {
3610
3622
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
3611
3623
  */
3612
3624
  getTemplateList(r, e, t) {
3613
- return this.getTypedPaginated(he, "/internal/price/templates", r, e, t);
3625
+ return this.getTypedPaginated(ge, "/internal/price/templates", r, e, t);
3614
3626
  }
3615
3627
  /**
3616
3628
  * Создание нового шаблона прайс-листа.
@@ -3622,7 +3634,7 @@ class ei extends Y {
3622
3634
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
3623
3635
  */
3624
3636
  createTemplate(r, e = {}) {
3625
- return this.post("/internal/price/templates", r, (t) => new he(t.data), e);
3637
+ return this.post("/internal/price/templates", r, (t) => new ge(t.data), e);
3626
3638
  }
3627
3639
  /**
3628
3640
  * Возвращает данные о шаблоне прайс-листа.
@@ -3632,7 +3644,7 @@ class ei extends Y {
3632
3644
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
3633
3645
  */
3634
3646
  getTemplate(r) {
3635
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new he(e.data));
3647
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new ge(e.data));
3636
3648
  }
3637
3649
  /**
3638
3650
  * Изменяет данные о шаблоне прайс-листа.
@@ -3645,7 +3657,7 @@ class ei extends Y {
3645
3657
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
3646
3658
  */
3647
3659
  updateTemplate(r, e, t = {}) {
3648
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new he(i.data), t);
3660
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new ge(i.data), t);
3649
3661
  }
3650
3662
  /**
3651
3663
  * Удаляет данные о шаблоне прайс-листа.
@@ -3665,7 +3677,7 @@ class ei extends Y {
3665
3677
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get_list
3666
3678
  */
3667
3679
  getProductTemplatePrices(r) {
3668
- return this.getTypedList(or, `/internal/price/templates/${r}/products`);
3680
+ return this.getTypedList(lr, `/internal/price/templates/${r}/products`);
3669
3681
  }
3670
3682
  /**
3671
3683
  * Возвращает данные о цене на продукт в шаблоне прайс-листа.
@@ -3676,7 +3688,7 @@ class ei extends Y {
3676
3688
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
3677
3689
  */
3678
3690
  getProductTemplatePrice(r, e) {
3679
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new or(t.data));
3691
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new lr(t.data));
3680
3692
  }
3681
3693
  /**
3682
3694
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3695,7 +3707,7 @@ class ei extends Y {
3695
3707
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3696
3708
  increase_percent: t.value
3697
3709
  },
3698
- (o) => new or(o.data)
3710
+ (o) => new lr(o.data)
3699
3711
  );
3700
3712
  }
3701
3713
  /**
@@ -3717,7 +3729,7 @@ class ei extends Y {
3717
3729
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_get_list
3718
3730
  */
3719
3731
  getCategoryTemplatePrices(r) {
3720
- return this.getTypedList(nr, `/internal/price/templates/${r}/categories`);
3732
+ return this.getTypedList(cr, `/internal/price/templates/${r}/categories`);
3721
3733
  }
3722
3734
  /**
3723
3735
  * Возвращает данные о цене на категорию продуктов в шаблоне прайс-листа.
@@ -3731,7 +3743,7 @@ class ei extends Y {
3731
3743
  return this.get(
3732
3744
  `/internal/price/templates/${r}/categories/${e}`,
3733
3745
  {},
3734
- (t) => new nr(t.data)
3746
+ (t) => new cr(t.data)
3735
3747
  );
3736
3748
  }
3737
3749
  /**
@@ -3757,7 +3769,7 @@ class ei extends Y {
3757
3769
  },
3758
3770
  params: i ? { recursively: !0 } : {}
3759
3771
  },
3760
- (c) => new nr(c.data)
3772
+ (c) => new cr(c.data)
3761
3773
  );
3762
3774
  }
3763
3775
  /**
@@ -3785,17 +3797,17 @@ class ei extends Y {
3785
3797
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_clients_get_list
3786
3798
  */
3787
3799
  getTemplateClients(r) {
3788
- return this.getTypedList(ke, `/internal/price/templates/${r}/clients`);
3800
+ return this.getTypedList(Le, `/internal/price/templates/${r}/clients`);
3789
3801
  }
3790
3802
  }
3791
- class ri extends h {
3803
+ class li extends h {
3792
3804
  /**
3793
3805
  * Возвращает список ролей ценообразования.
3794
3806
  *
3795
3807
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
3796
3808
  */
3797
3809
  getRoles() {
3798
- return this.getTypedList(Le, "/internal/price/roles");
3810
+ return this.getTypedList(Oe, "/internal/price/roles");
3799
3811
  }
3800
3812
  /**
3801
3813
  * Добавляет новую роль ценообразования.
@@ -3805,7 +3817,7 @@ class ri extends h {
3805
3817
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
3806
3818
  */
3807
3819
  createRole(r) {
3808
- return this.post("/internal/price/roles", r, (e) => new Le(e.data));
3820
+ return this.post("/internal/price/roles", r, (e) => new Oe(e.data));
3809
3821
  }
3810
3822
  /**
3811
3823
  * Возвращает данные роли ценообразования.
@@ -3815,7 +3827,7 @@ class ri extends h {
3815
3827
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
3816
3828
  */
3817
3829
  getRole(r) {
3818
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new Le(e.data));
3830
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new Oe(e.data));
3819
3831
  }
3820
3832
  /**
3821
3833
  * Обновляет данные роли ценообразования.
@@ -3826,7 +3838,7 @@ class ri extends h {
3826
3838
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
3827
3839
  */
3828
3840
  updateRole(r, e) {
3829
- return this.patch(`/internal/price/roles/${r}`, e, (t) => new Le(t.data));
3841
+ return this.patch(`/internal/price/roles/${r}`, e, (t) => new Oe(t.data));
3830
3842
  }
3831
3843
  /**
3832
3844
  * Удаляет роль ценообразования.
@@ -3846,7 +3858,7 @@ class ri extends h {
3846
3858
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
3847
3859
  */
3848
3860
  getCategoryRules(r) {
3849
- return this.getTypedList(Fr, `/internal/price/roles/rules/categories/${r}`);
3861
+ return this.getTypedList(Br, `/internal/price/roles/rules/categories/${r}`);
3850
3862
  }
3851
3863
  /**
3852
3864
  * Обновляет правила для роли ценообразования по указанной категории.
@@ -3860,11 +3872,11 @@ class ri extends h {
3860
3872
  return this.patch(
3861
3873
  `/internal/price/roles/rules/categories/${r}`,
3862
3874
  e,
3863
- (t) => _.instanceListInitializer(Fr, t.data)
3875
+ (t) => _.instanceListInitializer(Br, t.data)
3864
3876
  );
3865
3877
  }
3866
3878
  }
3867
- class ti extends Y {
3879
+ class ui extends Y {
3868
3880
  /**
3869
3881
  * Возвращает пагинированный список свойств.
3870
3882
  *
@@ -3875,7 +3887,7 @@ class ti extends Y {
3875
3887
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get_list
3876
3888
  */
3877
3889
  getProperties(r, e, t) {
3878
- return this.getTypedPaginated(ge, "/internal/catalog/properties", r, e, t);
3890
+ return this.getTypedPaginated(fe, "/internal/catalog/properties", r, e, t);
3879
3891
  }
3880
3892
  /**
3881
3893
  * Создает новое свойство.
@@ -3891,7 +3903,7 @@ class ti extends Y {
3891
3903
  ...t,
3892
3904
  type: e
3893
3905
  },
3894
- (i) => new ge(i.data)
3906
+ (i) => new fe(i.data)
3895
3907
  );
3896
3908
  }
3897
3909
  /**
@@ -3901,7 +3913,7 @@ class ti extends Y {
3901
3913
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3902
3914
  */
3903
3915
  getProperty(r) {
3904
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ge(e.data));
3916
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new fe(e.data));
3905
3917
  }
3906
3918
  /**
3907
3919
  * Обновляет существующее свойство.
@@ -3918,7 +3930,7 @@ class ti extends Y {
3918
3930
  ...i,
3919
3931
  type: t
3920
3932
  },
3921
- (o) => new ge(o.data)
3933
+ (o) => new fe(o.data)
3922
3934
  );
3923
3935
  }
3924
3936
  /**
@@ -3937,7 +3949,7 @@ class ti extends Y {
3937
3949
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3938
3950
  */
3939
3951
  getProductProperties(r) {
3940
- return this.getTypedList(le, `/internal/catalog/products/${r}/properties`);
3952
+ return this.getTypedList(pe, `/internal/catalog/products/${r}/properties`);
3941
3953
  }
3942
3954
  /**
3943
3955
  * Возвращает значение свойства продукта.
@@ -3947,7 +3959,7 @@ class ti extends Y {
3947
3959
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3948
3960
  */
3949
3961
  getProductProperty(r, e) {
3950
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new le(t.data));
3962
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new pe(t.data));
3951
3963
  }
3952
3964
  /**
3953
3965
  * Обновляет значение свойства продукта.
@@ -3958,7 +3970,7 @@ class ti extends Y {
3958
3970
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3959
3971
  */
3960
3972
  updateProductProperty(r, e, t) {
3961
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new le(i.data));
3973
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new pe(i.data));
3962
3974
  }
3963
3975
  /**
3964
3976
  * Удаляет значение свойства продукта.
@@ -4083,7 +4095,7 @@ class ti extends Y {
4083
4095
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
4084
4096
  */
4085
4097
  getCategoryProperties(r) {
4086
- return this.getTypedList(le, `/internal/catalog/categories/${r}/properties`);
4098
+ return this.getTypedList(pe, `/internal/catalog/categories/${r}/properties`);
4087
4099
  }
4088
4100
  /**
4089
4101
  * Возвращает значение свойства категории.
@@ -4093,7 +4105,7 @@ class ti extends Y {
4093
4105
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
4094
4106
  */
4095
4107
  getCategoryProperty(r, e) {
4096
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new le(t.data));
4108
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new pe(t.data));
4097
4109
  }
4098
4110
  /**
4099
4111
  * Обновляет значение свойства категории.
@@ -4104,7 +4116,7 @@ class ti extends Y {
4104
4116
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
4105
4117
  */
4106
4118
  updateCategoryProperty(r, e, t) {
4107
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new le(i.data));
4119
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new pe(i.data));
4108
4120
  }
4109
4121
  /**
4110
4122
  * Удаляет значение свойства категории.
@@ -4243,7 +4255,7 @@ class ti extends Y {
4243
4255
  return this.get(
4244
4256
  `/internal/catalog/categories/${r}/filters`,
4245
4257
  { recursively: e },
4246
- (t) => t.data.map((i) => new hs(i))
4258
+ (t) => t.data.map((i) => new ys(i))
4247
4259
  );
4248
4260
  }
4249
4261
  /**
@@ -4253,7 +4265,7 @@ class ti extends Y {
4253
4265
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
4254
4266
  */
4255
4267
  getCategoryFilterSettings(r) {
4256
- return this.getTypedList(Mr, `/internal/catalog/categories/${r}/filter-settings`);
4268
+ return this.getTypedList(Wr, `/internal/catalog/categories/${r}/filter-settings`);
4257
4269
  }
4258
4270
  /**
4259
4271
  * Сохраняет настройки фильтра в категории.
@@ -4267,7 +4279,7 @@ class ti extends Y {
4267
4279
  return this.patch(
4268
4280
  `/internal/catalog/categories/${r}/filter-settings/${e}`,
4269
4281
  t,
4270
- (i) => new Mr(i.data)
4282
+ (i) => new Wr(i.data)
4271
4283
  );
4272
4284
  }
4273
4285
  /**
@@ -4281,7 +4293,7 @@ class ti extends Y {
4281
4293
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
4282
4294
  }
4283
4295
  }
4284
- class si extends h {
4296
+ class pi extends h {
4285
4297
  /**
4286
4298
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4287
4299
  *
@@ -4291,7 +4303,7 @@ class si extends h {
4291
4303
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
4292
4304
  */
4293
4305
  getRootCategoriesList(r, e = !1) {
4294
- return this.getTypedList(z, "/internal/catalog/categories", {
4306
+ return this.getTypedList(E, "/internal/catalog/categories", {
4295
4307
  priceTemplateId: r,
4296
4308
  showHidden: e
4297
4309
  });
@@ -4314,7 +4326,7 @@ class si extends h {
4314
4326
  showHidden: t,
4315
4327
  withNestedCategories: i
4316
4328
  },
4317
- (o) => new z(o.data)
4329
+ (o) => new E(o.data)
4318
4330
  );
4319
4331
  }
4320
4332
  /**
@@ -4339,7 +4351,7 @@ class si extends h {
4339
4351
  );
4340
4352
  }
4341
4353
  }
4342
- function Hr(n, r, e) {
4354
+ function zr(n, r, e) {
4343
4355
  let t;
4344
4356
  return n.some((i) => {
4345
4357
  if (i.type === e && i.id === r)
@@ -4348,28 +4360,28 @@ function Hr(n, r, e) {
4348
4360
  return !1;
4349
4361
  const o = i;
4350
4362
  if (o.products && o.products.length > 0) {
4351
- const c = Hr(o.products, r, e);
4363
+ const c = zr(o.products, r, e);
4352
4364
  if (c)
4353
4365
  return t = c, !0;
4354
4366
  }
4355
4367
  if (o.categories && o.categories.length > 0) {
4356
- const c = Hr(o.categories, r, e);
4368
+ const c = zr(o.categories, r, e);
4357
4369
  if (c)
4358
4370
  return t = c, !0;
4359
4371
  }
4360
4372
  return !1;
4361
4373
  }), t;
4362
4374
  }
4363
- function Br(n) {
4375
+ function jr(n) {
4364
4376
  const r = [];
4365
4377
  return n.forEach((e) => {
4366
4378
  if (r.push(e), e.type === "category") {
4367
4379
  const t = e;
4368
- t.products && t.products.length > 0 && r.push(...Br(t.products)), t.categories && t.categories.length > 0 && r.push(...Br(t.categories));
4380
+ t.products && t.products.length > 0 && r.push(...jr(t.products)), t.categories && t.categories.length > 0 && r.push(...jr(t.categories));
4369
4381
  }
4370
4382
  }), r;
4371
4383
  }
4372
- var gs = /* @__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))(gs || {}), E = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(E || {});
4384
+ var as = /* @__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))(as || {}), Q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(Q || {});
4373
4385
  class vr extends G {
4374
4386
  /**
4375
4387
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -4401,7 +4413,7 @@ class vr extends G {
4401
4413
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new j(e.currency));
4402
4414
  }
4403
4415
  }
4404
- class wr extends O {
4416
+ class Cr extends O {
4405
4417
  /**
4406
4418
  * Инициализирует экземпляр класса {@link Contact}.
4407
4419
  *
@@ -4420,7 +4432,7 @@ class wr extends O {
4420
4432
  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;
4421
4433
  }
4422
4434
  }
4423
- class ee extends wr {
4435
+ class te extends Cr {
4424
4436
  /**
4425
4437
  * Инициализирует экземпляр класса {@link ContactPerson}.
4426
4438
  *
@@ -4452,25 +4464,25 @@ class ee extends wr {
4452
4464
  * Дата и время последнего удаления.
4453
4465
  */
4454
4466
  s(this, "deletedAt");
4455
- 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;
4467
+ 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 = R(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4456
4468
  }
4457
4469
  }
4458
- class re extends v {
4470
+ class se extends C {
4459
4471
  /**
4460
4472
  * Возвращает сгенерированную запись-описание физического лица.
4461
4473
  */
4462
4474
  static generatePersonItem() {
4463
- return new re({
4475
+ return new se({
4464
4476
  id: 1,
4465
4477
  guid: "",
4466
- slug: E.Person,
4478
+ slug: Q.Person,
4467
4479
  name: ""
4468
4480
  });
4469
4481
  }
4470
4482
  }
4471
- class Ce extends v {
4483
+ class Ce extends C {
4472
4484
  }
4473
- class pt extends Xr {
4485
+ class gt extends rt {
4474
4486
  /**
4475
4487
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
4476
4488
  *
@@ -4482,10 +4494,10 @@ class pt extends Xr {
4482
4494
  * Дата и время последнего удаления.
4483
4495
  */
4484
4496
  s(this, "deletedAt");
4485
- this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4497
+ this.deletedAt = R(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4486
4498
  }
4487
4499
  }
4488
- class ht extends pt {
4500
+ class ft extends gt {
4489
4501
  /**
4490
4502
  * Инициализирует экземпляр класса {@link ContragentBase}.
4491
4503
  *
@@ -4497,7 +4509,7 @@ class ht extends pt {
4497
4509
  /**
4498
4510
  * Данные об организационно-правовой форме.
4499
4511
  */
4500
- s(this, "opf", re.generatePersonItem());
4512
+ s(this, "opf", se.generatePersonItem());
4501
4513
  /**
4502
4514
  * Группа партнеров (направление деятельности).
4503
4515
  */
@@ -4531,10 +4543,10 @@ class ht extends pt {
4531
4543
  */
4532
4544
  s(this, "updater");
4533
4545
  if (e) {
4534
- if (this.opf = new re(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 q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Ce(e.partnerGroup)), e.contacts) {
4546
+ if (this.opf = new se(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = R(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Ce(e.partnerGroup)), e.contacts) {
4535
4547
  const t = [];
4536
4548
  e.contacts.forEach((i) => {
4537
- t.push(new ee(i));
4549
+ t.push(new te(i));
4538
4550
  }), this.contacts = t;
4539
4551
  }
4540
4552
  if (e.bankAccounts) {
@@ -4546,7 +4558,7 @@ class ht extends pt {
4546
4558
  }
4547
4559
  }
4548
4560
  }
4549
- class fs extends ht {
4561
+ class ws extends ft {
4550
4562
  /**
4551
4563
  * Инициализирует экземпляр класса {@link ContragentPerson}.
4552
4564
  *
@@ -4556,7 +4568,7 @@ class fs extends ht {
4556
4568
  super(r);
4557
4569
  }
4558
4570
  }
4559
- class gt extends ht {
4571
+ class mt extends ft {
4560
4572
  /**
4561
4573
  * Инициализирует экземпляр класса {@link ContragentIc}.
4562
4574
  *
@@ -4599,7 +4611,7 @@ class gt extends ht {
4599
4611
  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 ?? "");
4600
4612
  }
4601
4613
  }
4602
- class ft extends gt {
4614
+ class yt extends mt {
4603
4615
  /**
4604
4616
  * Инициализирует экземпляр класса {@link ContragentUlR}.
4605
4617
  *
@@ -4614,7 +4626,7 @@ class ft extends gt {
4614
4626
  e && (this.kpp = e.kpp ?? "");
4615
4627
  }
4616
4628
  }
4617
- class ms extends ft {
4629
+ class vs extends yt {
4618
4630
  /**
4619
4631
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
4620
4632
  *
@@ -4637,7 +4649,7 @@ class ms extends ft {
4637
4649
  e && (this.registrationCountry = new ae(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4638
4650
  }
4639
4651
  }
4640
- class je {
4652
+ class Qe {
4641
4653
  /**
4642
4654
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
4643
4655
  *
@@ -4645,18 +4657,18 @@ class je {
4645
4657
  */
4646
4658
  static createInstance(r) {
4647
4659
  switch (r.opf.slug) {
4648
- case E.Ic:
4649
- return new gt(r);
4650
- case E.UlR:
4651
- return new ft(r);
4652
- case E.UlNr:
4653
- return new ms(r);
4660
+ case Q.Ic:
4661
+ return new mt(r);
4662
+ case Q.UlR:
4663
+ return new yt(r);
4664
+ case Q.UlNr:
4665
+ return new vs(r);
4654
4666
  default:
4655
- return new fs(r);
4667
+ return new ws(r);
4656
4668
  }
4657
4669
  }
4658
4670
  }
4659
- class Oe extends pt {
4671
+ class xe extends gt {
4660
4672
  /**
4661
4673
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4662
4674
  *
@@ -4693,14 +4705,14 @@ class Oe extends pt {
4693
4705
  * Признак того, что указанный адрес является адресом транспортной компании.
4694
4706
  */
4695
4707
  s(this, "isTransportCompanyAddress");
4696
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new et(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new ee(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;
4708
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new st(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new te(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;
4697
4709
  }
4698
4710
  }
4699
- class mt extends v {
4711
+ class at extends C {
4700
4712
  }
4701
- class yt extends v {
4713
+ class wt extends C {
4702
4714
  }
4703
- class Wr extends se {
4715
+ class Gr extends ne {
4704
4716
  /**
4705
4717
  * Инициализирует экземпляр класса {@link Client}.
4706
4718
  *
@@ -4750,10 +4762,10 @@ class Wr extends se {
4750
4762
  * @inheritDoc
4751
4763
  */
4752
4764
  s(this, "extraData");
4753
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => je.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new ee(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Oe(u))) ?? [], this.channelPrimaryInterest = new mt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new yt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Q(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ne(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4765
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => Qe.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new te(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new xe(u))) ?? [], this.channelPrimaryInterest = new at(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new wt(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 Me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4754
4766
  }
4755
4767
  }
4756
- class ii extends qe {
4768
+ class hi extends Fe {
4757
4769
  /**
4758
4770
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4759
4771
  *
@@ -4809,11 +4821,11 @@ class ii extends qe {
4809
4821
  /**
4810
4822
  * @inheritDoc
4811
4823
  */
4812
- s(this, "createdAt", new A());
4824
+ s(this, "createdAt", new T());
4813
4825
  /**
4814
4826
  * @inheritDoc
4815
4827
  */
4816
- s(this, "lastLoginDate", new A());
4828
+ s(this, "lastLoginDate", new T());
4817
4829
  /**
4818
4830
  * @inheritDoc
4819
4831
  */
@@ -4865,12 +4877,12 @@ class ii extends qe {
4865
4877
  /**
4866
4878
  * @inheritDoc
4867
4879
  */
4868
- s(this, "noOrdersPeriod", new A());
4869
- this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((R) => new we(R)), this.region = new ve(e == null ? void 0 : e.region), this.country = new ae(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 A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(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((R) => new V(R))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((R) => new kr(R))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((R) => new F(R)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new re(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new Q(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((R) => new Ce(R)), this.contact = new wr(e == null ? void 0 : e.contact), this.lastOrder = {
4870
- createdAt: new A((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4880
+ s(this, "noOrdersPeriod", new T());
4881
+ this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((P) => new ve(P)), this.region = new we(e == null ? void 0 : e.region), this.country = new ae(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((P) => new X(P))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((P) => new Ir(P))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((P) => new F(P)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new se(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((P) => new Ce(P)), this.contact = new Cr(e == null ? void 0 : e.contact), this.lastOrder = {
4882
+ createdAt: new T((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4871
4883
  creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
4872
4884
  isApproved: (y = e == null ? void 0 : e.lastOrder) == null ? void 0 : y.isApproved
4873
- }, this.noOrdersPeriod = new A(e == null ? void 0 : e.noOrdersPeriod);
4885
+ }, this.noOrdersPeriod = new T(e == null ? void 0 : e.noOrdersPeriod);
4874
4886
  }
4875
4887
  /**
4876
4888
  * @inheritDoc
@@ -4881,7 +4893,7 @@ class ii extends qe {
4881
4893
  this.cities = [];
4882
4894
  break;
4883
4895
  case "region":
4884
- this.region = new ve();
4896
+ this.region = new we();
4885
4897
  break;
4886
4898
  case "isActive":
4887
4899
  this.isActive = !0;
@@ -4908,16 +4920,16 @@ class ii extends qe {
4908
4920
  this.salesDirections = [];
4909
4921
  break;
4910
4922
  case "contragentType":
4911
- this.contragentType = new re();
4923
+ this.contragentType = new se();
4912
4924
  break;
4913
4925
  case "preferredDeliveryType":
4914
- this.preferredDeliveryType = new Q();
4926
+ this.preferredDeliveryType = new J();
4915
4927
  break;
4916
4928
  case "partnerGroups":
4917
4929
  this.partnerGroups = [];
4918
4930
  break;
4919
4931
  case "contact":
4920
- this.contact = new wr();
4932
+ this.contact = new Cr();
4921
4933
  break;
4922
4934
  default:
4923
4935
  this[e] = void 0;
@@ -4934,7 +4946,7 @@ class ii extends qe {
4934
4946
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
4935
4947
  }
4936
4948
  }
4937
- class at extends G {
4949
+ class vt extends G {
4938
4950
  /**
4939
4951
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4940
4952
  *
@@ -4950,10 +4962,10 @@ class at extends G {
4950
4962
  * @inheritDoc
4951
4963
  */
4952
4964
  s(this, "creator");
4953
- this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator);
4965
+ this.createdAt = R(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator);
4954
4966
  }
4955
4967
  }
4956
- class ys extends O {
4968
+ class Cs extends O {
4957
4969
  /**
4958
4970
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4959
4971
  *
@@ -4990,10 +5002,10 @@ class ys extends O {
4990
5002
  * @inheritDoc
4991
5003
  */
4992
5004
  s(this, "curators");
4993
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new ee(u))) ?? void 0, this.lastOrder = e.lastOrder ? new at(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new Q(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Sr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new kr(u))) ?? void 0;
5005
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new te(u))) ?? void 0, this.lastOrder = e.lastOrder ? new vt(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new J(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Lr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Ir(u))) ?? void 0;
4994
5006
  }
4995
5007
  }
4996
- class cr extends G {
5008
+ class ur extends G {
4997
5009
  /**
4998
5010
  * Инициализирует экземпляр класса {@link ContactRelation}.
4999
5011
  *
@@ -5008,7 +5020,7 @@ class cr extends G {
5008
5020
  this.isPrimary = e.isPrimary;
5009
5021
  }
5010
5022
  }
5011
- class as extends ee {
5023
+ class Ds extends te {
5012
5024
  /**
5013
5025
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
5014
5026
  *
@@ -5033,10 +5045,10 @@ class as extends ee {
5033
5045
  */
5034
5046
  addresses: []
5035
5047
  });
5036
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new cr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new cr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new cr(t))));
5048
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new ur(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new ur(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new ur(t))));
5037
5049
  }
5038
5050
  }
5039
- class M extends Y {
5051
+ class H extends Y {
5040
5052
  /**
5041
5053
  * Преобразует данные о клиенте в данные требуемые для запроса.
5042
5054
  *
@@ -5068,7 +5080,7 @@ class M extends Y {
5068
5080
  let e;
5069
5081
  const t = r, i = r, o = r;
5070
5082
  switch (r.opf.slug) {
5071
- case E.Ic:
5083
+ case Q.Ic:
5072
5084
  e = {
5073
5085
  opf: t.opf.slug,
5074
5086
  name: t.name,
@@ -5085,7 +5097,7 @@ class M extends Y {
5085
5097
  actual_address: t.actualAddress
5086
5098
  };
5087
5099
  break;
5088
- case E.UlR:
5100
+ case Q.UlR:
5089
5101
  e = {
5090
5102
  opf: i.opf.slug,
5091
5103
  name: i.name,
@@ -5103,7 +5115,7 @@ class M extends Y {
5103
5115
  actual_address: i.actualAddress
5104
5116
  };
5105
5117
  break;
5106
- case E.UlNr:
5118
+ case Q.UlNr:
5107
5119
  e = {
5108
5120
  opf: o.opf.slug,
5109
5121
  name: o.name,
@@ -5175,7 +5187,7 @@ class M extends Y {
5175
5187
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
5176
5188
  */
5177
5189
  getClient(r) {
5178
- return this.get(`/internal/clients/${r}`, {}, (e) => new Wr(e.data));
5190
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Gr(e.data));
5179
5191
  }
5180
5192
  /**
5181
5193
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -5189,7 +5201,7 @@ class M extends Y {
5189
5201
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_list
5190
5202
  */
5191
5203
  getClientsList(r, e, t, i, o = void 0) {
5192
- return this.getTypedPaginated(se, "/internal/clients", r, e, t, i, void 0, o);
5204
+ return this.getTypedPaginated(ne, "/internal/clients", r, e, t, i, void 0, o);
5193
5205
  }
5194
5206
  /**
5195
5207
  * Выполняет поиск клиентов по терму в строке.
@@ -5211,7 +5223,7 @@ class M extends Y {
5211
5223
  return this.getClientsList({
5212
5224
  groupOp: "and",
5213
5225
  groups: [],
5214
- filters: [{ field: "phone", op: Tr.Contains, value: r }]
5226
+ filters: [{ field: "phone", op: dr.Contains, value: r }]
5215
5227
  });
5216
5228
  }
5217
5229
  /**
@@ -5226,7 +5238,7 @@ class M extends Y {
5226
5238
  return this.post(
5227
5239
  "/internal/clients/additional-data",
5228
5240
  { clients: t, requested_data_types: e },
5229
- (i) => _.instanceListInitializer(ys, i.data)
5241
+ (i) => _.instanceListInitializer(Cs, i.data)
5230
5242
  );
5231
5243
  }
5232
5244
  /**
@@ -5236,7 +5248,7 @@ class M extends Y {
5236
5248
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_get_all_contact_list
5237
5249
  */
5238
5250
  getAllClientContacts(r) {
5239
- return this.getTypedList(as, `/internal/clients/${r}/contacts/all`);
5251
+ return this.getTypedList(Ds, `/internal/clients/${r}/contacts/all`);
5240
5252
  }
5241
5253
  /**
5242
5254
  * Создаёт нового клиента на основе указанных данных.
@@ -5246,7 +5258,7 @@ class M extends Y {
5246
5258
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
5247
5259
  */
5248
5260
  createClientCommonData(r, e = {}) {
5249
- return this.post("/internal/clients", M.transformClientDataToRequest(r), (t) => new Wr(t.data), e);
5261
+ return this.post("/internal/clients", H.transformClientDataToRequest(r), (t) => new Gr(t.data), e);
5250
5262
  }
5251
5263
  /**
5252
5264
  * Обновляет данные указанного клиента.
@@ -5256,7 +5268,7 @@ class M extends Y {
5256
5268
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
5257
5269
  */
5258
5270
  updateClientCommonData(r, e = {}) {
5259
- return this.patch(`/internal/clients/${r.id}`, M.transformClientDataToRequest(r), void 0, e);
5271
+ return this.patch(`/internal/clients/${r.id}`, H.transformClientDataToRequest(r), void 0, e);
5260
5272
  }
5261
5273
  /**
5262
5274
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -5385,8 +5397,8 @@ class M extends Y {
5385
5397
  createContragentClientData(r, e, t = {}) {
5386
5398
  return this.post(
5387
5399
  `/internal/clients/${r}/contragents`,
5388
- M.transformContragentClientDataToRequest(e),
5389
- (i) => je.createInstance(i.data),
5400
+ H.transformContragentClientDataToRequest(e),
5401
+ (i) => Qe.createInstance(i.data),
5390
5402
  t
5391
5403
  );
5392
5404
  }
@@ -5401,8 +5413,8 @@ class M extends Y {
5401
5413
  updateContragentClientData(r, e, t = {}) {
5402
5414
  return this.patch(
5403
5415
  `/internal/clients/${r}/contragents/${e.id}`,
5404
- M.transformContragentClientDataToRequest(e),
5405
- (i) => je.createInstance(i.data),
5416
+ H.transformContragentClientDataToRequest(e),
5417
+ (i) => Qe.createInstance(i.data),
5406
5418
  t
5407
5419
  );
5408
5420
  }
@@ -5423,7 +5435,7 @@ class M extends Y {
5423
5435
  * @see /doc/api/internal#/operations/api_internal_client_delivery_address_get_list
5424
5436
  */
5425
5437
  getClientDeliveryAddresses(r) {
5426
- return this.getTypedList(Oe, `/internal/clients/${r}/delivery-addresses`);
5438
+ return this.getTypedList(xe, `/internal/clients/${r}/delivery-addresses`);
5427
5439
  }
5428
5440
  /**
5429
5441
  * Создаёт новую запись об адресе доставки клиента.
@@ -5436,8 +5448,8 @@ class M extends Y {
5436
5448
  createClientDeliveryAddress(r, e, t = {}) {
5437
5449
  return this.post(
5438
5450
  `/internal/clients/${r}/delivery-addresses`,
5439
- M.transformClientDeliveryAddressToRequest(e),
5440
- (i) => new Oe(i.data),
5451
+ H.transformClientDeliveryAddressToRequest(e),
5452
+ (i) => new xe(i.data),
5441
5453
  t
5442
5454
  );
5443
5455
  }
@@ -5452,8 +5464,8 @@ class M extends Y {
5452
5464
  updateClientDeliveryAddress(r, e, t = {}) {
5453
5465
  return this.patch(
5454
5466
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
5455
- M.transformClientDeliveryAddressToRequest(e),
5456
- (i) => new Oe(i.data),
5467
+ H.transformClientDeliveryAddressToRequest(e),
5468
+ (i) => new xe(i.data),
5457
5469
  t
5458
5470
  );
5459
5471
  }
@@ -5479,7 +5491,7 @@ class M extends Y {
5479
5491
  createContragentBankAccount(r, e, t, i = {}) {
5480
5492
  return this.post(
5481
5493
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
5482
- M.transformClientContragentBankAccountToRequest(t),
5494
+ H.transformClientContragentBankAccountToRequest(t),
5483
5495
  (o) => new vr(o.data),
5484
5496
  i
5485
5497
  );
@@ -5496,7 +5508,7 @@ class M extends Y {
5496
5508
  updateContragentBankAccount(r, e, t, i = {}) {
5497
5509
  return this.patch(
5498
5510
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
5499
- M.transformClientContragentBankAccountToRequest(t),
5511
+ H.transformClientContragentBankAccountToRequest(t),
5500
5512
  (o) => new vr(o.data),
5501
5513
  i
5502
5514
  );
@@ -5553,7 +5565,7 @@ class M extends Y {
5553
5565
  comment: e.comment,
5554
5566
  not_disturb: e.notDisturb
5555
5567
  },
5556
- (i) => new ee(i.data),
5568
+ (i) => new te(i.data),
5557
5569
  t
5558
5570
  );
5559
5571
  }
@@ -5690,7 +5702,7 @@ class M extends Y {
5690
5702
  comment: e.comment,
5691
5703
  ...t
5692
5704
  };
5693
- 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 ee(p.data), i);
5705
+ 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 te(p.data), i);
5694
5706
  }
5695
5707
  /**
5696
5708
  * Устанавливает признак основного контактного лица.
@@ -5719,7 +5731,7 @@ class M extends Y {
5719
5731
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5720
5732
  }
5721
5733
  }
5722
- class ni extends h {
5734
+ class gi extends h {
5723
5735
  /**
5724
5736
  * Выполняет проверку занят ли указанный номер телефона.
5725
5737
  *
@@ -5733,7 +5745,7 @@ class ni extends h {
5733
5745
  });
5734
5746
  }
5735
5747
  }
5736
- class oi {
5748
+ class fi {
5737
5749
  /**
5738
5750
  * Инициализирует экземпляр класса {@link VersionConfig}.
5739
5751
  *
@@ -5752,11 +5764,11 @@ class oi {
5752
5764
  * Текущая версия приложения.
5753
5765
  */
5754
5766
  s(this, "version");
5755
- 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";
5767
+ this.date = R(r == null ? void 0 : r.date) ? v(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";
5756
5768
  }
5757
5769
  }
5758
- var vs = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(vs || {});
5759
- class ci extends h {
5770
+ var Rs = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Rs || {});
5771
+ class mi extends h {
5760
5772
  /**
5761
5773
  * Возвращает настройки указанного конфигуратора для указанной категории.
5762
5774
  *
@@ -5847,7 +5859,7 @@ class ci extends h {
5847
5859
  });
5848
5860
  }
5849
5861
  }
5850
- class ws {
5862
+ class Ps {
5851
5863
  /**
5852
5864
  * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5853
5865
  *
@@ -5865,7 +5877,7 @@ class ws {
5865
5877
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
5866
5878
  }
5867
5879
  }
5868
- class li extends ws {
5880
+ class yi extends Ps {
5869
5881
  /**
5870
5882
  * Инициализирует экземпляр класса {@link TableDataPagination}.
5871
5883
  *
@@ -5896,7 +5908,7 @@ class li extends ws {
5896
5908
  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;
5897
5909
  }
5898
5910
  }
5899
- class ui {
5911
+ class ai {
5900
5912
  /**
5901
5913
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
5902
5914
  *
@@ -5969,8 +5981,8 @@ class m {
5969
5981
  * @param date Опорная дата.
5970
5982
  */
5971
5983
  static intervalTillSameDate(r, e, t) {
5972
- const i = Mt(U(t), U(r)), o = U($(e, i)), c = Math.min(xr(t), Ht(o));
5973
- return { from: pe(e), to: B(Bt(o, c)) };
5984
+ const i = Wt(U(t), U(r)), o = U($(e, i)), c = Math.min(Nr(t), zt(o));
5985
+ return { from: he(e), to: W(jt(o, c)) };
5974
5986
  }
5975
5987
  /**
5976
5988
  * Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
@@ -5979,8 +5991,8 @@ class m {
5979
5991
  * @param shiftWeeks Смещение в неделях, может быть отрицательным.
5980
5992
  */
5981
5993
  static weekTillSameWeekday(r, e) {
5982
- const t = K(fr(r, e), { weekStartsOn: 1 }), i = Ve(r, K(r, { weekStartsOn: 1 }));
5983
- return { from: t, to: B(X(t, i)) };
5994
+ const t = Z(mr(r, e), { weekStartsOn: 1 }), i = We(r, Z(r, { weekStartsOn: 1 }));
5995
+ return { from: t, to: W(ee(t, i)) };
5984
5996
  }
5985
5997
  /**
5986
5998
  * Возвращает интервал «сдвинутая декада до такого же номера дня»; если в целевой декаде дня с таким
@@ -5990,8 +6002,8 @@ class m {
5990
6002
  * @param shift Смещение в декадах, может быть отрицательным.
5991
6003
  */
5992
6004
  static decadeTillSameDayNumber(r, e) {
5993
- const [t] = m.shiftedDecadeBounds(r, 0), i = Ve(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = Ve(c, o) + 1;
5994
- return { from: o, to: B(X(o, Math.min(i, u) - 1)) };
6005
+ const [t] = m.shiftedDecadeBounds(r, 0), i = We(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = We(c, o) + 1;
6006
+ return { from: o, to: W(ee(o, Math.min(i, u) - 1)) };
5995
6007
  }
5996
6008
  /**
5997
6009
  * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
@@ -6000,28 +6012,62 @@ class m {
6000
6012
  * @param shift Смещение в декадах, может быть отрицательным.
6001
6013
  */
6002
6014
  static shiftedDecadeBounds(r, e) {
6003
- const t = xr(r);
6015
+ const t = Nr(r);
6004
6016
  let i = 2;
6005
6017
  t <= 10 ? i = 0 : t <= 20 && (i = 1);
6006
- const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = U($(r, c)), g = X(p, u * 10), y = u === 2 ? x(p) : B(X(g, 9));
6018
+ const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = U($(r, c)), g = ee(p, u * 10), y = u === 2 ? x(p) : W(ee(g, 9));
6007
6019
  return [g, y];
6008
6020
  }
6009
6021
  }
6010
- class pi {
6022
+ class Dr {
6023
+ /**
6024
+ * Преобразует значение даты из данных ответа в дату.
6025
+ * Строки разбираются как ISO-даты; нечитаемое значение равносильно отсутствию даты.
6026
+ *
6027
+ * @param value Значение даты: дата, строка в формате ISO или пустое значение.
6028
+ */
6029
+ static parse(r) {
6030
+ if (a(r))
6031
+ return;
6032
+ const e = R(r) ? v(r) : r;
6033
+ return Gt(e) ? e : void 0;
6034
+ }
6035
+ }
6036
+ function wi(n) {
6037
+ return k(ze(qe(), n), "yyyy-MM-dd");
6038
+ }
6039
+ function bs(n, r) {
6040
+ const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6041
+ return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6042
+ }
6043
+ function vi(n) {
6044
+ const r = v(n), e = We(qe(), r);
6045
+ switch (!0) {
6046
+ case e === 0:
6047
+ return "Сегодня";
6048
+ case e === 1:
6049
+ return "Вчера";
6050
+ case e < 0:
6051
+ return n;
6052
+ default:
6053
+ return `${e} ${bs(e, ["день", "дня", "дней"])} назад`;
6054
+ }
6055
+ }
6056
+ class Ci {
6011
6057
  /**
6012
6058
  * Возвращает предустановленные диапазоны дат.
6013
6059
  *
6014
6060
  * @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
6015
6061
  */
6016
6062
  static defaultDateRanges(r) {
6017
- const e = Wt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = oe(r === void 0 ? t : new Date(r, 0, 1)), o = Ae(i);
6063
+ const e = Yt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = le(r === void 0 ? t : new Date(r, 0, 1)), o = de(i);
6018
6064
  return {
6019
6065
  // 'Следующий рабочий день' - это значение по-умолчанию
6020
- nextWorkingDay: { label: "Следующий рабочий день", from: pe(e), to: B(e) },
6021
- today: { label: "Сегодня", from: gr(), to: Et() },
6022
- yesterday: { label: "Вчера", from: zt(), to: Yt() },
6023
- tomorrow: { label: "Завтра", from: Gt(), to: jt() },
6024
- currentWeek: { label: "Неделя", from: K(t, { weekStartsOn: 1 }), to: de(t, { weekStartsOn: 1 }) },
6066
+ nextWorkingDay: { label: "Следующий рабочий день", from: he(e), to: W(e) },
6067
+ today: { label: "Сегодня", from: qe(), to: Kt() },
6068
+ yesterday: { label: "Вчера", from: Jt(), to: Vt() },
6069
+ tomorrow: { label: "Завтра", from: Qt(), to: Et() },
6070
+ currentWeek: { label: "Неделя", from: Z(t, { weekStartsOn: 1 }), to: Se(t, { weekStartsOn: 1 }) },
6025
6071
  currentMonth: { label: "Месяц", from: U(t), to: x(t) },
6026
6072
  oneMonth: { label: "1 месяц", from: i, to: x(i) },
6027
6073
  threeMonths: { label: "3 месяца", from: i, to: x($(i, 2)) },
@@ -6043,23 +6089,23 @@ class pi {
6043
6089
  * @param now Опорная дата «сейчас»; по умолчанию текущая.
6044
6090
  */
6045
6091
  static standardPeriods(r = /* @__PURE__ */ new Date()) {
6046
- const e = { weekStartsOn: 1 }, t = pe(r), i = B(r), o = m.decadeInterval(r), c = U(r), u = Se(r), p = m.startOfHalfYear(r), g = oe(r), y = m.addHalfYears(r, -1), R = m.addHalfYears(r, 1);
6092
+ const e = { weekStartsOn: 1 }, t = he(r), i = W(r), o = m.decadeInterval(r), c = U(r), u = $e(r), p = m.startOfHalfYear(r), g = le(r), y = m.addHalfYears(r, -1), P = m.addHalfYears(r, 1);
6047
6093
  return {
6048
- yesterday: { label: "Вчера", group: "day", from: pe(Ke(r, 1)), to: B(Ke(r, 1)) },
6094
+ yesterday: { label: "Вчера", group: "day", from: he(ze(r, 1)), to: W(ze(r, 1)) },
6049
6095
  today: { label: "Сегодня", group: "day", from: t, to: i },
6050
- tomorrow: { label: "Завтра", group: "day", from: pe(X(r, 1)), to: B(X(r, 1)) },
6051
- lastWeek: { label: "Прошлая неделя", group: "week", from: K(_r(r, 1), e), to: de(_r(r, 1), e) },
6052
- thisWeek: { label: "Эта неделя", group: "week", from: K(r, e), to: de(r, e) },
6053
- nextWeek: { label: "Следующая неделя", group: "week", from: K(fr(r, 1), e), to: de(fr(r, 1), e) },
6096
+ tomorrow: { label: "Завтра", group: "day", from: he(ee(r, 1)), to: W(ee(r, 1)) },
6097
+ lastWeek: { label: "Прошлая неделя", group: "week", from: Z(Ur(r, 1), e), to: Se(Ur(r, 1), e) },
6098
+ thisWeek: { label: "Эта неделя", group: "week", from: Z(r, e), to: Se(r, e) },
6099
+ nextWeek: { label: "Следующая неделя", group: "week", from: Z(mr(r, 1), e), to: Se(mr(r, 1), e) },
6054
6100
  lastTenDays: { label: "Прошлая декада", group: "decade", ...m.shiftDecadeInterval(r, -1) },
6055
6101
  thisTenDays: { label: "Эта декада", group: "decade", ...o },
6056
6102
  nextTenDays: { label: "Следующая декада", group: "decade", ...m.shiftDecadeInterval(r, 1) },
6057
- lastMonth: { label: "Прошлый месяц", group: "month", from: U(tr(r, 1)), to: x(tr(r, 1)) },
6103
+ lastMonth: { label: "Прошлый месяц", group: "month", from: U(ir(r, 1)), to: x(ir(r, 1)) },
6058
6104
  thisMonth: { label: "Этот месяц", group: "month", from: c, to: x(r) },
6059
6105
  nextMonth: { label: "Следующий месяц", group: "month", from: U($(r, 1)), to: x($(r, 1)) },
6060
- lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Se(rr(r, 1)), to: Fe(rr(r, 1)) },
6061
- thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Fe(r) },
6062
- nextQuarter: { label: "Следующий квартал", group: "quarter", from: Se(Ze(r, 1)), to: Fe(Ze(r, 1)) },
6106
+ lastQuarter: { label: "Прошлый квартал", group: "quarter", from: $e(sr(r, 1)), to: Be(sr(r, 1)) },
6107
+ thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Be(r) },
6108
+ nextQuarter: { label: "Следующий квартал", group: "quarter", from: $e(rr(r, 1)), to: Be(rr(r, 1)) },
6063
6109
  lastHalfYear: {
6064
6110
  label: "Прошлое полугодие",
6065
6111
  group: "halfYear",
@@ -6067,22 +6113,22 @@ class pi {
6067
6113
  to: m.endOfHalfYear(y)
6068
6114
  },
6069
6115
  thisHalfYear: { label: "Это полугодие", group: "halfYear", from: p, to: m.endOfHalfYear(r) },
6070
- nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: m.startOfHalfYear(R), to: m.endOfHalfYear(R) },
6071
- lastYear: { label: "Прошлый год", group: "year", from: oe(er(r, 1)), to: Ae(er(r, 1)) },
6072
- thisYear: { label: "Этот год", group: "year", from: g, to: Ae(r) },
6073
- nextYear: { label: "Следующий год", group: "year", from: oe(Xe(r, 1)), to: Ae(Xe(r, 1)) },
6074
- fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: K(r, e), to: i },
6116
+ nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: m.startOfHalfYear(P), to: m.endOfHalfYear(P) },
6117
+ lastYear: { label: "Прошлый год", group: "year", from: le(tr(r, 1)), to: de(tr(r, 1)) },
6118
+ thisYear: { label: "Этот год", group: "year", from: g, to: de(r) },
6119
+ nextYear: { label: "Следующий год", group: "year", from: le(er(r, 1)), to: de(er(r, 1)) },
6120
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: Z(r, e), to: i },
6075
6121
  fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
6076
6122
  fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
6077
6123
  fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: i },
6078
6124
  fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: i },
6079
6125
  fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: i },
6080
- tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: de(r, e) },
6126
+ tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: Se(r, e) },
6081
6127
  tillEndOfThisTenDays: { label: "До конца этой декады", group: "other", section: "tillEnd", from: t, to: o.to },
6082
6128
  tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: x(r) },
6083
- tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: t, to: Fe(r) },
6129
+ tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: t, to: Be(r) },
6084
6130
  tillEndOfThisHalfYear: { label: "До конца этого полугодия", group: "other", section: "tillEnd", from: t, to: m.endOfHalfYear(r) },
6085
- tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: Ae(r) },
6131
+ tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: de(r) },
6086
6132
  lastWeekTillSameWeekDay: { label: "Прошлая неделя, до такого же дня недели", group: "other", section: "lastTillSame", ...m.weekTillSameWeekday(r, -1) },
6087
6133
  lastTenDaysTillSameDayNumber: {
6088
6134
  label: "Прошлая декада, до такого же номера дня",
@@ -6094,13 +6140,13 @@ class pi {
6094
6140
  label: "Прошлый месяц, до такой же даты",
6095
6141
  group: "other",
6096
6142
  section: "lastTillSame",
6097
- ...m.intervalTillSameDate(c, U(tr(r, 1)), r)
6143
+ ...m.intervalTillSameDate(c, U(ir(r, 1)), r)
6098
6144
  },
6099
6145
  lastQuarterTillSameDate: {
6100
6146
  label: "Прошлый квартал, до такой же даты",
6101
6147
  group: "other",
6102
6148
  section: "lastTillSame",
6103
- ...m.intervalTillSameDate(u, Se(rr(r, 1)), r)
6149
+ ...m.intervalTillSameDate(u, $e(sr(r, 1)), r)
6104
6150
  },
6105
6151
  lastHalfYearTillSameDate: {
6106
6152
  label: "Прошлое полугодие, до такой же даты",
@@ -6112,7 +6158,7 @@ class pi {
6112
6158
  label: "Прошлый год, до такой же даты",
6113
6159
  group: "other",
6114
6160
  section: "lastTillSame",
6115
- ...m.intervalTillSameDate(g, oe(er(r, 1)), r)
6161
+ ...m.intervalTillSameDate(g, le(tr(r, 1)), r)
6116
6162
  },
6117
6163
  nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...m.weekTillSameWeekday(r, 1) },
6118
6164
  nextTenDaysTillSameDayNumber: {
@@ -6131,26 +6177,26 @@ class pi {
6131
6177
  label: "Следующий квартал, до такой же даты",
6132
6178
  group: "other",
6133
6179
  section: "nextTillSame",
6134
- ...m.intervalTillSameDate(u, Se(Ze(r, 1)), r)
6180
+ ...m.intervalTillSameDate(u, $e(rr(r, 1)), r)
6135
6181
  },
6136
6182
  nextHalfYearTillSameDate: {
6137
6183
  label: "Следующее полугодие, до такой же даты",
6138
6184
  group: "other",
6139
6185
  section: "nextTillSame",
6140
- ...m.intervalTillSameDate(p, m.startOfHalfYear(R), r)
6186
+ ...m.intervalTillSameDate(p, m.startOfHalfYear(P), r)
6141
6187
  },
6142
6188
  nextYearTillSameDate: {
6143
6189
  label: "Следующий год, до такой же даты",
6144
6190
  group: "other",
6145
6191
  section: "nextTillSame",
6146
- ...m.intervalTillSameDate(g, oe(Xe(r, 1)), r)
6192
+ ...m.intervalTillSameDate(g, le(er(r, 1)), r)
6147
6193
  },
6148
- last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: pe(Ke(r, 6)), to: i },
6149
- next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: B(X(r, 6)) }
6194
+ last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: he(ze(r, 6)), to: i },
6195
+ next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: W(ee(r, 6)) }
6150
6196
  };
6151
6197
  }
6152
6198
  }
6153
- const hi = [
6199
+ const Di = [
6154
6200
  { key: "day", label: "День" },
6155
6201
  { key: "week", label: "Неделя" },
6156
6202
  { key: "decade", label: "Декада" },
@@ -6159,14 +6205,18 @@ const hi = [
6159
6205
  { key: "halfYear", label: "Полугодие" },
6160
6206
  { key: "year", label: "Год" },
6161
6207
  { key: "other", label: "Прочее" }
6162
- ], gi = [
6208
+ ], Ri = [
6163
6209
  { key: "fromBeginning", label: "С начала периода" },
6164
6210
  { key: "tillEnd", label: "До конца периода" },
6165
6211
  { key: "lastTillSame", label: "Прошлые, до такой же даты" },
6166
6212
  { key: "nextTillSame", label: "Следующие, до такой же даты" },
6167
6213
  { key: "rollingDays", label: "7 дней" }
6168
6214
  ];
6169
- class vt {
6215
+ function Pi(n) {
6216
+ const r = Ht(n * 100);
6217
+ return `${r >= 0 ? "+" : ""}${r}%`;
6218
+ }
6219
+ class Ct {
6170
6220
  /**
6171
6221
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
6172
6222
  *
@@ -6182,7 +6232,7 @@ class vt {
6182
6232
  */
6183
6233
  static getProductMultiplicity(r) {
6184
6234
  var e, t;
6185
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !vt.productIsMeasurable(r) ? r.properties.minCount : 1;
6235
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Ct.productIsMeasurable(r) ? r.properties.minCount : 1;
6186
6236
  }
6187
6237
  /**
6188
6238
  * Возвращает кратность длины для указанного товара.
@@ -6194,7 +6244,7 @@ class vt {
6194
6244
  return ((e = r.properties) == null ? void 0 : e.lengthStep) != null ? r.properties.lengthStep : !((t = r.properties) != null && t.ignoreMinCountCheck) && ((i = r.properties) == null ? void 0 : i.minCount) != null ? r.properties.minCount : 0.01;
6195
6245
  }
6196
6246
  }
6197
- const fe = class fe extends h {
6247
+ const me = class me extends h {
6198
6248
  /**
6199
6249
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
6200
6250
  */
@@ -6204,7 +6254,7 @@ const fe = class fe extends h {
6204
6254
  * Время кэширования данных ответов на запросы (секунд).
6205
6255
  */
6206
6256
  s(this, "responseDataCacheTimeout");
6207
- this.responseDataCacheTimeout = k().config.http.responseDataCacheTimeout;
6257
+ this.responseDataCacheTimeout = L().config.http.responseDataCacheTimeout;
6208
6258
  }
6209
6259
  /**
6210
6260
  * Возвращает кэшированные данные.
@@ -6214,7 +6264,7 @@ const fe = class fe extends h {
6214
6264
  */
6215
6265
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6216
6266
  static getCachedResponse(e) {
6217
- const t = fe.responseDataCache.get(e);
6267
+ const t = me.responseDataCache.get(e);
6218
6268
  if (t && t.validTo > /* @__PURE__ */ new Date())
6219
6269
  return t.val;
6220
6270
  }
@@ -6225,8 +6275,8 @@ const fe = class fe extends h {
6225
6275
  * @param data Данные для кэширования.
6226
6276
  */
6227
6277
  cacheResponse(e, t) {
6228
- fe.responseDataCache.set(e, {
6229
- validTo: Qt(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6278
+ me.responseDataCache.set(e, {
6279
+ validTo: Xt(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6230
6280
  val: t
6231
6281
  });
6232
6282
  }
@@ -6242,25 +6292,21 @@ const fe = class fe extends h {
6242
6292
  */
6243
6293
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6244
6294
  getTypedDataArrayRequester(e, t, i = !1, o = {}, c = void 0) {
6245
- const u = t + (ye(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? fe.getCachedResponse(u) : void 0;
6295
+ const u = t + (V(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? me.getCachedResponse(u) : void 0;
6246
6296
  return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (i && g && this.cacheResponse(u, g), g));
6247
6297
  }
6248
6298
  };
6249
6299
  /**
6250
6300
  * Кэш результатов запросов.
6251
6301
  */
6252
- s(fe, "responseDataCache", /* @__PURE__ */ new Map());
6253
- let _e = fe;
6254
- function fi(n, r) {
6255
- const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6256
- return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6257
- }
6258
- class mi {
6302
+ s(me, "responseDataCache", /* @__PURE__ */ new Map());
6303
+ let Ue = me;
6304
+ class bi {
6259
6305
  /**
6260
6306
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
6261
6307
  */
6262
6308
  static generateUndefinedManagerInstance() {
6263
- return new V({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6309
+ return new X({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6264
6310
  }
6265
6311
  /**
6266
6312
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -6271,15 +6317,15 @@ class mi {
6271
6317
  return r.id === 0 && r.guid === "-undefined-";
6272
6318
  }
6273
6319
  }
6274
- class wt extends _e {
6320
+ class Dt extends Ue {
6275
6321
  /**
6276
6322
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
6277
6323
  */
6278
6324
  async getManagers() {
6279
- const r = "/internal/managers", e = _e.getCachedResponse(r);
6325
+ const r = "/internal/managers", e = Ue.getCachedResponse(r);
6280
6326
  if (e)
6281
6327
  return e;
6282
- const t = await this.get(r), i = _.instanceListInitializer(V, t.data);
6328
+ const t = await this.get(r), i = _.instanceListInitializer(X, t.data);
6283
6329
  return this.cacheResponse(r, i), i;
6284
6330
  }
6285
6331
  /**
@@ -6290,10 +6336,67 @@ class wt extends _e {
6290
6336
  * @see /doc/api/internal#/operations/api_internal_managers_get
6291
6337
  */
6292
6338
  getManager(r) {
6293
- return this.get(`/internal/managers/${r}`, {}, (e) => new V(e.data));
6339
+ return this.get(`/internal/managers/${r}`, {}, (e) => new X(e.data));
6340
+ }
6341
+ }
6342
+ var Ie = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(Ie || {});
6343
+ class As {
6344
+ /**
6345
+ * Инициализирует экземпляр класса {@link OfferActualization}.
6346
+ *
6347
+ * @param data Данные для первоначальной инициализации.
6348
+ */
6349
+ constructor(r) {
6350
+ /**
6351
+ * @inheritDoc
6352
+ */
6353
+ s(this, "status");
6354
+ /**
6355
+ * @inheritDoc
6356
+ */
6357
+ s(this, "actualizedAt");
6358
+ /**
6359
+ * @inheritDoc
6360
+ */
6361
+ s(this, "expiresAt");
6362
+ /**
6363
+ * @inheritDoc
6364
+ */
6365
+ s(this, "error");
6366
+ this.status = (r == null ? void 0 : r.status) ?? Ie.Processing, this.actualizedAt = Dr.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = Dr.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
6367
+ }
6368
+ /**
6369
+ * @inheritDoc
6370
+ */
6371
+ get isProcessing() {
6372
+ return this.status === Ie.Processing;
6373
+ }
6374
+ /**
6375
+ * @inheritDoc
6376
+ */
6377
+ get isOutdated() {
6378
+ return this.isOutdatedAt(/* @__PURE__ */ new Date());
6379
+ }
6380
+ /**
6381
+ * @inheritDoc
6382
+ */
6383
+ get isOrderAllowed() {
6384
+ return this.isOrderAllowedAt(/* @__PURE__ */ new Date());
6385
+ }
6386
+ /**
6387
+ * @inheritDoc
6388
+ */
6389
+ isOutdatedAt(r) {
6390
+ return this.status !== Ie.Completed || a(this.actualizedAt) ? !0 : !a(this.expiresAt) && this.expiresAt.getTime() < r.getTime();
6391
+ }
6392
+ /**
6393
+ * @inheritDoc
6394
+ */
6395
+ isOrderAllowedAt(r) {
6396
+ return this.status === Ie.Completed && !this.isOutdatedAt(r);
6294
6397
  }
6295
6398
  }
6296
- class Ct extends G {
6399
+ class Rt extends G {
6297
6400
  /**
6298
6401
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
6299
6402
  *
@@ -6317,10 +6420,61 @@ class Ct extends G {
6317
6420
  * @inheritDoc
6318
6421
  */
6319
6422
  s(this, "sum");
6320
- this.name = e == null ? void 0 : e.name, this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new se(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum;
6423
+ /**
6424
+ * @inheritDoc
6425
+ */
6426
+ s(this, "isProfstroy");
6427
+ /**
6428
+ * @inheritDoc
6429
+ */
6430
+ s(this, "actualization");
6431
+ /**
6432
+ * @inheritDoc
6433
+ */
6434
+ s(this, "file");
6435
+ this.name = e == null ? void 0 : e.name, this.createdAt = Dr.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new ne(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum, this.isProfstroy = e == null ? void 0 : e.isProfstroy, this.actualization = (e == null ? void 0 : e.actualization) && new As(e.actualization), this.file = e == null ? void 0 : e.file;
6436
+ }
6437
+ }
6438
+ class Ts extends kr {
6439
+ /**
6440
+ * Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
6441
+ *
6442
+ * @param data Данные для первоначальной инициализации.
6443
+ */
6444
+ constructor(e) {
6445
+ super(e);
6446
+ /**
6447
+ * @inheritDoc
6448
+ */
6449
+ s(this, "groupName");
6450
+ /**
6451
+ * @inheritDoc
6452
+ */
6453
+ s(this, "supplierSku");
6454
+ /**
6455
+ * @inheritDoc
6456
+ */
6457
+ s(this, "isIgnored");
6458
+ /**
6459
+ * @inheritDoc
6460
+ */
6461
+ s(this, "lineError");
6462
+ this.groupName = e.groupName, this.supplierSku = e.supplierSku ?? e.product.supplierSku, this.isIgnored = e.isIgnored, this.lineError = e.lineError;
6463
+ }
6464
+ /**
6465
+ * @inheritDoc
6466
+ */
6467
+ get isProductStub() {
6468
+ return a(this.product.id);
6469
+ }
6470
+ /**
6471
+ * @inheritDoc
6472
+ */
6473
+ get isOrderable() {
6474
+ return !this.isProductStub && !this.isIgnored && V(this.lineError);
6321
6475
  }
6322
6476
  }
6323
- class ue extends Ct {
6477
+ class M extends Rt {
6324
6478
  /**
6325
6479
  * Инициализирует экземпляр класса {@link Offer}.
6326
6480
  *
@@ -6336,10 +6490,12 @@ class ue extends Ct {
6336
6490
  * @inheritDoc
6337
6491
  */
6338
6492
  s(this, "products");
6339
- this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new st(t));
6493
+ this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
6494
+ (t) => e.isProfstroy ? new Ts(t) : new kr(t)
6495
+ );
6340
6496
  }
6341
6497
  }
6342
- class yi extends qe {
6498
+ class Ai extends Fe {
6343
6499
  /**
6344
6500
  * Инициализирует экземпляр класса {@link OffersListFilters}.
6345
6501
  *
@@ -6362,8 +6518,8 @@ class yi extends qe {
6362
6518
  /**
6363
6519
  * @inheritDoc
6364
6520
  */
6365
- s(this, "createdAt", new A());
6366
- this.id = e == null ? void 0 : e.id, this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.name = e == null ? void 0 : e.name, this.createdAt = new A(e == null ? void 0 : e.createdAt);
6521
+ s(this, "createdAt", new T());
6522
+ this.id = e == null ? void 0 : e.id, this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.name = e == null ? void 0 : e.name, this.createdAt = new T(e == null ? void 0 : e.createdAt);
6367
6523
  }
6368
6524
  /**
6369
6525
  * @inheritDoc
@@ -6380,9 +6536,9 @@ class yi extends qe {
6380
6536
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, e;
6381
6537
  }
6382
6538
  }
6383
- class ze extends v {
6539
+ class Je extends C {
6384
6540
  }
6385
- class Dt extends at {
6541
+ class Pt extends vt {
6386
6542
  /**
6387
6543
  * Инициализирует экземпляр класса {@link OrderInfo}.
6388
6544
  *
@@ -6427,6 +6583,10 @@ class Dt extends at {
6427
6583
  * @inheritDoc
6428
6584
  */
6429
6585
  s(this, "isOnOrder");
6586
+ /**
6587
+ * @inheritDoc
6588
+ */
6589
+ s(this, "isProfstroy");
6430
6590
  /**
6431
6591
  * @inheritDoc
6432
6592
  */
@@ -6439,19 +6599,19 @@ class Dt extends at {
6439
6599
  * @inheritDoc
6440
6600
  */
6441
6601
  s(this, "isLargeOrder");
6442
- this.client = new se(e == null ? void 0 : e.client), this.payment = {
6602
+ this.client = new ne(e == null ? void 0 : e.client), this.payment = {
6443
6603
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
6444
6604
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
6445
6605
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
6446
6606
  }, this.delivery = {
6447
6607
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
6448
- 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(),
6449
- address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new Oe(e.delivery.address) : void 0,
6450
- warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new Ne(e.delivery.warehouse) : void 0
6451
- }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new ze(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new v(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = C(e == null ? void 0 : e.attachedAt) ? D(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
6608
+ date: R((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? v(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
6609
+ address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new xe(e.delivery.address) : void 0,
6610
+ warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new Me(e.delivery.warehouse) : void 0
6611
+ }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new Je(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new C(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = R(e == null ? void 0 : e.attachedAt) ? v(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isProfstroy = (e == null ? void 0 : e.isProfstroy) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
6452
6612
  }
6453
6613
  }
6454
- class Cs extends tt {
6614
+ class ds extends nt {
6455
6615
  /**
6456
6616
  * Инициализирует экземпляр класса {@link OrderItem}.
6457
6617
  *
@@ -6508,10 +6668,10 @@ class Cs extends tt {
6508
6668
  * Продукт, которым заменена текущая запись.
6509
6669
  */
6510
6670
  s(this, "replacement");
6511
- this.product = new J(e.product), this.currency = new j(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
6671
+ this.product = new K(e.product), this.currency = new j(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = z(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
6512
6672
  }
6513
6673
  }
6514
- class I extends Dt {
6674
+ class I extends Pt {
6515
6675
  /**
6516
6676
  * Инициализирует экземпляр класса {@link Order}.
6517
6677
  *
@@ -6575,11 +6735,11 @@ class I extends Dt {
6575
6735
  this.products = (e.products ?? []).map((i) => {
6576
6736
  var c;
6577
6737
  const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
6578
- return new Cs(i, o);
6579
- }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? je.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new v(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new ze(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6738
+ return new ds(i, o);
6739
+ }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Qe.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new C(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new Je(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6580
6740
  }
6581
6741
  }
6582
- class ai extends Y {
6742
+ class Ti extends Y {
6583
6743
  /**
6584
6744
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
6585
6745
  *
@@ -6591,7 +6751,7 @@ class ai extends Y {
6591
6751
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
6592
6752
  */
6593
6753
  getOffers(r, e, t, i = void 0) {
6594
- return this.getTypedPaginated(Ct, "/internal/orders/offers", r, e, t, {}, void 0, i);
6754
+ return this.getTypedPaginated(Rt, "/internal/orders/offers", r, e, t, {}, void 0, i);
6595
6755
  }
6596
6756
  /**
6597
6757
  * Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
@@ -6610,9 +6770,46 @@ class ai extends Y {
6610
6770
  name: e,
6611
6771
  items: t != null && t.length ? t : void 0
6612
6772
  },
6613
- (i) => new ue(i.data)
6773
+ (i) => new M(i.data)
6614
6774
  );
6615
6775
  }
6776
+ /**
6777
+ * Создаёт заказ-черновик из файла выгрузки программы «Профстрой» и запускает его обработку.
6778
+ * Обработка выполняется в фоне: запись возвращается в статусе актуализации «выполняется».
6779
+ *
6780
+ * @param clientId Идентификатор клиента.
6781
+ * @param file Файл выгрузки программы «Профстрой».
6782
+ * @param name Название создаваемой записи.
6783
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках
6784
+ * валидации в случае ошибок в запросах.
6785
+ *
6786
+ * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_profstroy
6787
+ */
6788
+ createProfstroyOffer(r, e, t, i = {}) {
6789
+ return this.post(`/internal/orders/offers/${r}/profstroy`, { file: e, name: t }, (o) => new M(o.data), i);
6790
+ }
6791
+ /**
6792
+ * Запускает актуализацию заказа-черновика, созданного из файла «Профстрой»: текущий состав записи
6793
+ * повторно отправляется в 1С без повторной обработки файла. Выполняется в фоне.
6794
+ *
6795
+ * @param offerId Идентификатор записи заказа-черновика.
6796
+ *
6797
+ * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_profstroy_actualize
6798
+ */
6799
+ actualizeProfstroyOffer(r) {
6800
+ return this.post(`/internal/orders/offers/${r}/profstroy/actualize`, {}, (e) => new M(e.data));
6801
+ }
6802
+ /**
6803
+ * Пересобирает заказ-черновик из ранее сохранённого файла «Профстрой»: состав записи формируется заново,
6804
+ * внесённые вручную изменения количества и удалённые позиции при этом теряются. Выполняется в фоне.
6805
+ *
6806
+ * @param offerId Идентификатор записи заказа-черновика.
6807
+ *
6808
+ * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_profstroy_reload
6809
+ */
6810
+ reloadProfstroyOffer(r) {
6811
+ return this.post(`/internal/orders/offers/${r}/profstroy/reload`, {}, (e) => new M(e.data));
6812
+ }
6616
6813
  /**
6617
6814
  * Возвращает данные заказа-черновика с указанным идентификатором.
6618
6815
  *
@@ -6621,7 +6818,7 @@ class ai extends Y {
6621
6818
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get
6622
6819
  */
6623
6820
  getOffer(r) {
6624
- return this.get(`/internal/orders/offers/${r}`, {}, (e) => new ue(e.data));
6821
+ return this.get(`/internal/orders/offers/${r}`, {}, (e) => new M(e.data));
6625
6822
  }
6626
6823
  /**
6627
6824
  * Обновляет данные заказа-черновика и возвращает обновлённые данные.
@@ -6632,7 +6829,7 @@ class ai extends Y {
6632
6829
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_change
6633
6830
  */
6634
6831
  updateOffer(r, e) {
6635
- return this.patch(`/internal/orders/offers/${r}`, { name: e }, (t) => new ue(t.data));
6832
+ return this.patch(`/internal/orders/offers/${r}`, { name: e }, (t) => new M(t.data));
6636
6833
  }
6637
6834
  /**
6638
6835
  * Удаляет заказ-черновик.
@@ -6658,12 +6855,12 @@ class ai extends Y {
6658
6855
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_order
6659
6856
  */
6660
6857
  createOrderFromDraft(r, e, t, i = {}) {
6661
- const o = k().config.dateFormats.api;
6858
+ const o = L().config.dateFormats.api;
6662
6859
  return this.post(
6663
6860
  `/internal/orders/offers/${r}/create-order`,
6664
6861
  {
6665
6862
  ...e,
6666
- deliveryDate: e.deliveryDate ? L(e.deliveryDate, o) : void 0,
6863
+ deliveryDate: e.deliveryDate ? k(e.deliveryDate, o) : void 0,
6667
6864
  items: t != null && t.length ? t : void 0
6668
6865
  },
6669
6866
  (c) => _.instanceListInitializer(I, c.data),
@@ -6695,7 +6892,7 @@ class ai extends Y {
6695
6892
  is_additional_sale: e.isAdditionalSale,
6696
6893
  ...e.configuratorParams
6697
6894
  },
6698
- (i) => new ue(i.data),
6895
+ (i) => new M(i.data),
6699
6896
  t
6700
6897
  );
6701
6898
  }
@@ -6725,7 +6922,7 @@ class ai extends Y {
6725
6922
  is_additional_sale: t.isAdditionalSale,
6726
6923
  ...t.configuratorParams
6727
6924
  },
6728
- (o) => new ue(o.data),
6925
+ (o) => new M(o.data),
6729
6926
  i
6730
6927
  );
6731
6928
  }
@@ -6738,7 +6935,7 @@ class ai extends Y {
6738
6935
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_product_delete
6739
6936
  */
6740
6937
  deleteOfferProduct(r, e) {
6741
- return this.delete(`/internal/orders/offers/${r}/products/${e}`, (t) => new ue(t.data));
6938
+ return this.delete(`/internal/orders/offers/${r}/products/${e}`, (t) => new M(t.data));
6742
6939
  }
6743
6940
  /**
6744
6941
  * Возвращает содержимое печатной формы заказа-черновика в формате HTML.
@@ -6778,8 +6975,27 @@ class ai extends Y {
6778
6975
  return this.post(`/internal/orders/offers/${r}/send`, e);
6779
6976
  }
6780
6977
  }
6781
- var Ds = /* @__PURE__ */ ((n) => (n.View = "view", n.Share = "share", n.EditTags = "edit_tags", n.SaveOrderIgnoredProducts = "save_order_ignored_products", n.ChangeStatus = "change_status", n.ChangeProducts = "change_products", n.ChangeOrderParameters = "change_order_parameters", n.Recalculate = "recalculate", n.AttachOrder = "attach_order", n.DetachOrder = "detach_order", n.ChangeAttachedOperator = "change_attached_operator", n.SendOnlinePaymentLink = "send_online_payment_link", n.ConfirmOnlineFullPayment = "confirm_online_full_payment", n.MergeOrders = "merge_orders", n.GetHistory = "get_history", n.CloneOrder = "clone_order", n.DeleteAttachedFile = "delete_attached_file", n))(Ds || {});
6782
- class vi {
6978
+ class di {
6979
+ /**
6980
+ * Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
6981
+ *
6982
+ * @param offer Данные записи заказа-черновика.
6983
+ */
6984
+ static isProfstroy(r) {
6985
+ return !!(r != null && r.isProfstroy);
6986
+ }
6987
+ /**
6988
+ * Возвращает признак того, что полные данные записи относятся к заявке Профстрой,
6989
+ * уточняя тип записи для доступа к данным актуализации и позициям заявки.
6990
+ *
6991
+ * @param offer Полные данные записи заказа-черновика.
6992
+ */
6993
+ static isProfstroyOffer(r) {
6994
+ return !a(r) && r.isProfstroy === !0 && !a(r.actualization);
6995
+ }
6996
+ }
6997
+ var Ss = /* @__PURE__ */ ((n) => (n.View = "view", n.Share = "share", n.EditTags = "edit_tags", n.SaveOrderIgnoredProducts = "save_order_ignored_products", n.ChangeStatus = "change_status", n.ChangeProducts = "change_products", n.ChangeOrderParameters = "change_order_parameters", n.Recalculate = "recalculate", n.AttachOrder = "attach_order", n.DetachOrder = "detach_order", n.ChangeAttachedOperator = "change_attached_operator", n.SendOnlinePaymentLink = "send_online_payment_link", n.ConfirmOnlineFullPayment = "confirm_online_full_payment", n.MergeOrders = "merge_orders", n.GetHistory = "get_history", n.CloneOrder = "clone_order", n.DeleteAttachedFile = "delete_attached_file", n))(Ss || {});
6998
+ class Si {
6783
6999
  /**
6784
7000
  * Инициализирует экземпляр класса {@link OrderEditorData}.
6785
7001
  *
@@ -6846,11 +7062,11 @@ class vi {
6846
7062
  this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (t = r == null ? void 0 : r.delivery.address) == null ? void 0 : t.id, this.warehouseId = (i = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : i.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
6847
7063
  }
6848
7064
  }
6849
- class Rt extends v {
7065
+ class bt extends C {
6850
7066
  }
6851
- class bt extends v {
7067
+ class At extends C {
6852
7068
  }
6853
- class wi extends qe {
7069
+ class $i extends Fe {
6854
7070
  /**
6855
7071
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
6856
7072
  *
@@ -6878,7 +7094,7 @@ class wi extends qe {
6878
7094
  /**
6879
7095
  * @inheritDoc
6880
7096
  */
6881
- s(this, "createdAt", new A());
7097
+ s(this, "createdAt", new T());
6882
7098
  /**
6883
7099
  * @inheritDoc
6884
7100
  */
@@ -6886,7 +7102,7 @@ class wi extends qe {
6886
7102
  /**
6887
7103
  * @inheritDoc
6888
7104
  */
6889
- s(this, "deliveryDate", new A());
7105
+ s(this, "deliveryDate", new T());
6890
7106
  /**
6891
7107
  * @inheritDoc
6892
7108
  */
@@ -6914,7 +7130,7 @@ class wi extends qe {
6914
7130
  /**
6915
7131
  * @inheritDoc
6916
7132
  */
6917
- s(this, "attachedAt", new A());
7133
+ s(this, "attachedAt", new T());
6918
7134
  /**
6919
7135
  * @inheritDoc
6920
7136
  */
@@ -6951,7 +7167,7 @@ class wi extends qe {
6951
7167
  * @inheritDoc
6952
7168
  */
6953
7169
  s(this, "onlyMyRegions");
6954
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new V(u) : new Rt(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 A(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new A(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 we(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new A(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new F(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new Q(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new bt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Ne(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7170
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new X(u) : new bt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new ne(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 q(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 ve(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new T(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new F(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new J(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new At(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;
6955
7171
  }
6956
7172
  /**
6957
7173
  * @inheritDoc
@@ -6968,7 +7184,7 @@ class wi extends qe {
6968
7184
  this.deliveryDate.from = null, this.deliveryDate.to = null;
6969
7185
  break;
6970
7186
  case "deliveryType":
6971
- this.deliveryType = new Q();
7187
+ this.deliveryType = new J();
6972
7188
  break;
6973
7189
  case "clientCities":
6974
7190
  this.clientCities = [];
@@ -7002,7 +7218,7 @@ class wi extends qe {
7002
7218
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((p = e == null ? void 0 : e.attachedAt) != null && p.to) && delete e.attachedAt, e;
7003
7219
  }
7004
7220
  }
7005
- class Rs {
7221
+ class $s {
7006
7222
  /**
7007
7223
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
7008
7224
  *
@@ -7025,10 +7241,10 @@ class Rs {
7025
7241
  * @inheritDoc
7026
7242
  */
7027
7243
  s(this, "createdAt");
7028
- this.user = new q(r == null ? void 0 : r.user), this.status = new ze(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new v(r.statusDetail) : void 0, this.createdAt = C(r == null ? void 0 : r.createdAt) ? D(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
7244
+ this.user = new q(r == null ? void 0 : r.user), this.status = new Je(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new C(r.statusDetail) : void 0, this.createdAt = R(r == null ? void 0 : r.createdAt) ? v(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
7029
7245
  }
7030
7246
  }
7031
- class Ci extends Y {
7247
+ class ki extends Y {
7032
7248
  /**
7033
7249
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
7034
7250
  *
@@ -7040,7 +7256,7 @@ class Ci extends Y {
7040
7256
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
7041
7257
  */
7042
7258
  getOrders(r, e, t, i = void 0) {
7043
- return this.getTypedPaginated(Dt, "/internal/orders", r, e, t, {}, void 0, i);
7259
+ return this.getTypedPaginated(Pt, "/internal/orders", r, e, t, {}, void 0, i);
7044
7260
  }
7045
7261
  /**
7046
7262
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -7053,7 +7269,7 @@ class Ci extends Y {
7053
7269
  getOrdersCount(r, e = void 0) {
7054
7270
  return this.get(
7055
7271
  "/internal/orders/count",
7056
- r ? { filters: JSON.stringify((r instanceof Z ? r : new Z(r)).toPrimitive()) } : {},
7272
+ r ? { filters: JSON.stringify((r instanceof re ? r : new re(r)).toPrimitive()) } : {},
7057
7273
  void 0,
7058
7274
  void 0,
7059
7275
  e
@@ -7094,12 +7310,12 @@ class Ci extends Y {
7094
7310
  * @see /doc/api/internal#/operations/api_internal_client_orders_create
7095
7311
  */
7096
7312
  createClientOrder(r, e, t, i, o = {}) {
7097
- const c = k().config.dateFormats.api;
7313
+ const c = L().config.dateFormats.api;
7098
7314
  return this.post(
7099
7315
  `/internal/clients/${r}/orders/${e}`,
7100
7316
  {
7101
7317
  ...t,
7102
- deliveryDate: L(t.deliveryDate, c),
7318
+ deliveryDate: k(t.deliveryDate, c),
7103
7319
  items: i != null && i.length ? i : void 0
7104
7320
  },
7105
7321
  (u) => _.instanceListInitializer(I, u.data),
@@ -7169,12 +7385,12 @@ class Ci extends Y {
7169
7385
  * @see /doc/api/internal#/Заказы/api_internal_orders_update
7170
7386
  */
7171
7387
  updateOrder(r, e, t = {}) {
7172
- const i = k().config.dateFormats.api;
7388
+ const i = L().config.dateFormats.api;
7173
7389
  return this.patch(
7174
7390
  `/internal/orders/${r}`,
7175
7391
  {
7176
7392
  ...e,
7177
- deliveryDate: e.deliveryDate ? L(e.deliveryDate, i) : void 0
7393
+ deliveryDate: e.deliveryDate ? k(e.deliveryDate, i) : void 0
7178
7394
  },
7179
7395
  (o) => new I(o.data),
7180
7396
  t
@@ -7253,7 +7469,7 @@ class Ci extends Y {
7253
7469
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
7254
7470
  */
7255
7471
  getOrderStatusHistory(r) {
7256
- return this.getTypedList(Rs, `/internal/orders/${r}/history`);
7472
+ return this.getTypedList($s, `/internal/orders/${r}/history`);
7257
7473
  }
7258
7474
  /**
7259
7475
  * Возвращает содержимое печатной формы заказа в формате HTML.
@@ -7382,11 +7598,11 @@ class Ci extends Y {
7382
7598
  * @see /doc/api/internal#/operations/api_internal_orders_delivery_get_cost
7383
7599
  */
7384
7600
  getDeliveryCost(r, e, t, i = void 0) {
7385
- const o = k().config.dateFormats.api;
7601
+ const o = L().config.dateFormats.api;
7386
7602
  return this.get(
7387
7603
  `/internal/orders/delivery/${r}/cost`,
7388
7604
  {
7389
- date: L(e, o),
7605
+ date: k(e, o),
7390
7606
  warehouse_id: t
7391
7607
  },
7392
7608
  (c) => c.data,
@@ -7395,8 +7611,8 @@ class Ci extends Y {
7395
7611
  );
7396
7612
  }
7397
7613
  }
7398
- const Di = Symbol("currentOrder");
7399
- class lr {
7614
+ const Li = Symbol("currentOrder");
7615
+ class pr {
7400
7616
  /**
7401
7617
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
7402
7618
  *
@@ -7423,12 +7639,12 @@ class lr {
7423
7639
  * Источник клиентской цены.
7424
7640
  */
7425
7641
  s(this, "source");
7426
- this.client = new se(r == null ? void 0 : r.client), this.product = new N(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) ?? dr.Product;
7642
+ this.client = new ne(r == null ? void 0 : r.client), this.product = new N(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) ?? $r.Product;
7427
7643
  }
7428
7644
  }
7429
- const ur = (n) => {
7645
+ const hr = (n) => {
7430
7646
  var r, e, t, i, o;
7431
- return n ? Vr(
7647
+ return n ? Zr(
7432
7648
  {
7433
7649
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
7434
7650
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -7437,13 +7653,13 @@ const ur = (n) => {
7437
7653
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
7438
7654
  hideNotActive: n.hideNotActive
7439
7655
  },
7440
- (c) => T(c) || (W(c) || br(c)) && ye(c)
7656
+ (c) => a(c) || (z(c) || Ar(c)) && V(c)
7441
7657
  ) : {};
7442
- }, jr = (n) => {
7658
+ }, Yr = (n) => {
7443
7659
  const r = {};
7444
7660
  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;
7445
7661
  };
7446
- class Ri extends h {
7662
+ class Oi extends h {
7447
7663
  /**
7448
7664
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
7449
7665
  *
@@ -7457,10 +7673,10 @@ class Ri extends h {
7457
7673
  return this.get(
7458
7674
  `/internal/price/products/${r}/analyze`,
7459
7675
  {
7460
- ...jr(e),
7461
- filters: ur(t)
7676
+ ...Yr(e),
7677
+ filters: hr(t)
7462
7678
  },
7463
- (i) => _.instanceListInitializer(lr, i.data)
7679
+ (i) => _.instanceListInitializer(pr, i.data)
7464
7680
  );
7465
7681
  }
7466
7682
  /**
@@ -7476,10 +7692,10 @@ class Ri extends h {
7476
7692
  return this.get(
7477
7693
  `/internal/price/categories/${r}/analyze`,
7478
7694
  {
7479
- ...jr(e),
7480
- filters: ur(t)
7695
+ ...Yr(e),
7696
+ filters: hr(t)
7481
7697
  },
7482
- (i) => _.instanceListInitializer(lr, i.data)
7698
+ (i) => _.instanceListInitializer(pr, i.data)
7483
7699
  );
7484
7700
  }
7485
7701
  /**
@@ -7498,13 +7714,13 @@ class Ri extends h {
7498
7714
  `/internal/price/categories/${r}/analyze/square`,
7499
7715
  {
7500
7716
  ...e,
7501
- filters: ur(t)
7717
+ filters: hr(t)
7502
7718
  },
7503
- (i) => _.instanceListInitializer(lr, i.data)
7719
+ (i) => _.instanceListInitializer(pr, i.data)
7504
7720
  );
7505
7721
  }
7506
7722
  }
7507
- class bs {
7723
+ class ks {
7508
7724
  /**
7509
7725
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
7510
7726
  *
@@ -7551,10 +7767,10 @@ class bs {
7551
7767
  * @inheritDoc
7552
7768
  */
7553
7769
  s(this, "currency");
7554
- 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 xe(r.product) : void 0, this.client = r.client ? new q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new j(r.currency) : void 0;
7770
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = R(r.costDate) ? v(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Ne(r.product) : void 0, this.client = r.client ? new q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new j(r.currency) : void 0;
7555
7771
  }
7556
7772
  }
7557
- class Ps extends xe {
7773
+ class Ls extends Ne {
7558
7774
  /**
7559
7775
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
7560
7776
  *
@@ -7566,10 +7782,10 @@ class Ps extends xe {
7566
7782
  * @inheritDoc
7567
7783
  */
7568
7784
  s(this, "history");
7569
- this.history = De(e.history, (t) => new bs(t));
7785
+ this.history = De(e.history, (t) => new ks(t));
7570
7786
  }
7571
7787
  }
7572
- class bi extends h {
7788
+ class Ii extends h {
7573
7789
  /**
7574
7790
  * Возвращает данные об истории изменения цен.
7575
7791
  *
@@ -7579,21 +7795,21 @@ class bi extends h {
7579
7795
  */
7580
7796
  getProductPriceHistory(r) {
7581
7797
  var o, c, u, p, g;
7582
- const e = k().config.dateFormats.api, t = Vr(
7583
- Ie(r, {
7798
+ const e = L().config.dateFormats.api, t = Zr(
7799
+ _e(r, {
7584
7800
  costDate: {
7585
- from: hr((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7586
- to: hr((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7801
+ from: fr((o = r.costDate) == null ? void 0 : o.from) ? k(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7802
+ to: fr((u = r.costDate) == null ? void 0 : u.to) ? k(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7587
7803
  }
7588
7804
  }),
7589
- (y) => T(y) || (W(y) || br(y)) && ye(y)
7805
+ (y) => a(y) || (z(y) || Ar(y)) && V(y)
7590
7806
  ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
7591
7807
  return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((y) => [
7592
- new Ps(Ie(y[0], { history: y }))
7808
+ new Ls(_e(y[0], { history: y }))
7593
7809
  ]);
7594
7810
  }
7595
7811
  }
7596
- class Gr {
7812
+ class Er {
7597
7813
  /**
7598
7814
  * Инициализирует экземпляр класса {@link RecommendationsList}.
7599
7815
  *
@@ -7608,10 +7824,10 @@ class Gr {
7608
7824
  * Список рекомендованных категорий продуктов.
7609
7825
  */
7610
7826
  s(this, "productCategories", []);
7611
- r != null && r.products && (this.products = r.products.map((e) => new xe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new xe(e)));
7827
+ r != null && r.products && (this.products = r.products.map((e) => new Ne(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Ne(e)));
7612
7828
  }
7613
7829
  }
7614
- class Pi extends h {
7830
+ class xi extends h {
7615
7831
  /**
7616
7832
  * Возвращает данные о рекомендациях указанной категории продуктов.
7617
7833
  *
@@ -7619,7 +7835,7 @@ class Pi extends h {
7619
7835
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
7620
7836
  */
7621
7837
  getProductCategoryRecommendations(r) {
7622
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Gr(e.data));
7838
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Er(e.data));
7623
7839
  }
7624
7840
  /**
7625
7841
  * Возвращает данные о рекомендациях указанного продукта.
@@ -7628,7 +7844,7 @@ class Pi extends h {
7628
7844
  * @see /docs/api#/operations/api_internal_recommendations_product_get
7629
7845
  */
7630
7846
  getProductRecommendations(r) {
7631
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Gr(e.data));
7847
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Er(e.data));
7632
7848
  }
7633
7849
  /**
7634
7850
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -7657,12 +7873,12 @@ class Pi extends h {
7657
7873
  });
7658
7874
  }
7659
7875
  }
7660
- var Ts = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(Ts || {}), As = /* @__PURE__ */ ((n) => (n.CanceledBy1c = "canceled_by1c", n.CanceledByClient = "canceled_by_client", n.FinishedNotApproved = "finished_not_approved", n.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", n.WillWaiting = "will_waiting", n))(As || {});
7661
- class ds extends v {
7876
+ var Os = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(Os || {}), Is = /* @__PURE__ */ ((n) => (n.CanceledBy1c = "canceled_by1c", n.CanceledByClient = "canceled_by_client", n.FinishedNotApproved = "finished_not_approved", n.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", n.WillWaiting = "will_waiting", n))(Is || {});
7877
+ class xs extends C {
7662
7878
  }
7663
- class Ss extends v {
7879
+ class _s extends C {
7664
7880
  }
7665
- class Yr extends v {
7881
+ class Qr extends C {
7666
7882
  /**
7667
7883
  * Инициализирует экземпляр класса {@link CityWithUserRegion}.
7668
7884
  *
@@ -7675,18 +7891,18 @@ class Yr extends v {
7675
7891
  * @inheritDoc
7676
7892
  */
7677
7893
  s(this, "userRegions");
7678
- this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new Ye(i))) ?? [];
7894
+ this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new Ve(i))) ?? [];
7679
7895
  }
7680
7896
  }
7681
- class $s extends v {
7897
+ class qs extends C {
7682
7898
  }
7683
- class ks extends v {
7899
+ class Ns extends C {
7684
7900
  }
7685
- class Ls extends v {
7901
+ class Us extends C {
7686
7902
  }
7687
- class Os extends v {
7903
+ class Fs extends C {
7688
7904
  }
7689
- class Ti {
7905
+ class _i {
7690
7906
  /**
7691
7907
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
7692
7908
  *
@@ -7705,9 +7921,9 @@ class Ti {
7705
7921
  return r.id === 0 && r.slug === "-undefined-";
7706
7922
  }
7707
7923
  }
7708
- class Pt extends v {
7924
+ class Tt extends C {
7709
7925
  }
7710
- const H = class H extends _e {
7926
+ const B = class B extends Ue {
7711
7927
  /**
7712
7928
  * Исключает из списка записей справочника местоположений служебную запись
7713
7929
  * неизвестного региона или города.
@@ -7715,7 +7931,7 @@ const H = class H extends _e {
7715
7931
  * @param locations Записи справочника местоположений.
7716
7932
  */
7717
7933
  static withoutUnknownLocation(r) {
7718
- return r.filter((e) => e.id !== H.unknownLocationId);
7934
+ return r.filter((e) => e.id !== B.unknownLocationId);
7719
7935
  }
7720
7936
  /**
7721
7937
  * Возвращает {@link Promise} для получения данных указанного справочника.
@@ -7725,26 +7941,26 @@ const H = class H extends _e {
7725
7941
  * и использовать в случае аналогичных запросов.
7726
7942
  */
7727
7943
  getReference(r, e = !1) {
7728
- return this.getTypedDataArrayRequester(ds, `/internal/references/${r}`, e);
7944
+ return this.getTypedDataArrayRequester(xs, `/internal/references/${r}`, e);
7729
7945
  }
7730
7946
  /**
7731
7947
  * Возвращает {@link Promise} для получения справочника данных о канале
7732
7948
  * первичного интереса.
7733
7949
  */
7734
7950
  getChannelPrimaryInterest() {
7735
- return this.getTypedDataArrayRequester(mt, "/internal/references/channel-primary-interest", !0);
7951
+ return this.getTypedDataArrayRequester(at, "/internal/references/channel-primary-interest", !0);
7736
7952
  }
7737
7953
  /**
7738
7954
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
7739
7955
  */
7740
7956
  getContactPositions() {
7741
- return this.getTypedDataArrayRequester($s, "/internal/references/contact-position", !0);
7957
+ return this.getTypedDataArrayRequester(qs, "/internal/references/contact-position", !0);
7742
7958
  }
7743
7959
  /**
7744
7960
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
7745
7961
  */
7746
7962
  getCuratedDirection() {
7747
- return this.getTypedDataArrayRequester($r, "/internal/references/curated-direction", !0);
7963
+ return this.getTypedDataArrayRequester(Or, "/internal/references/curated-direction", !0);
7748
7964
  }
7749
7965
  /**
7750
7966
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -7763,43 +7979,43 @@ const H = class H extends _e {
7763
7979
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
7764
7980
  */
7765
7981
  getOpf() {
7766
- return this.getTypedDataArrayRequester(re, "/public/references/opf", !0);
7982
+ return this.getTypedDataArrayRequester(se, "/public/references/opf", !0);
7767
7983
  }
7768
7984
  /**
7769
7985
  * Возвращает {@link Promise} для получения справочника операторов.
7770
7986
  */
7771
7987
  getOperators() {
7772
- return this.getTypedDataArrayRequester(Rt, "/internal/references/operator", !0);
7988
+ return this.getTypedDataArrayRequester(bt, "/internal/references/operator", !0);
7773
7989
  }
7774
7990
  /**
7775
7991
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
7776
7992
  */
7777
7993
  getOrderPaymentStatuses() {
7778
- return this.getTypedDataArrayRequester(ks, "/public/references/order-payment-status", !0);
7994
+ return this.getTypedDataArrayRequester(Ns, "/public/references/order-payment-status", !0);
7779
7995
  }
7780
7996
  /**
7781
7997
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
7782
7998
  */
7783
7999
  getOrderStatuses() {
7784
- return this.getTypedDataArrayRequester(ze, "/internal/references/order-status", !0);
8000
+ return this.getTypedDataArrayRequester(Je, "/internal/references/order-status", !0);
7785
8001
  }
7786
8002
  /**
7787
8003
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
7788
8004
  */
7789
8005
  getOrderStatusDetails() {
7790
- return this.getTypedDataArrayRequester(Ls, "/internal/references/order-status-detail", !0);
8006
+ return this.getTypedDataArrayRequester(Us, "/internal/references/order-status-detail", !0);
7791
8007
  }
7792
8008
  /**
7793
8009
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
7794
8010
  */
7795
8011
  getPaymentTypes() {
7796
- return this.getTypedDataArrayRequester(bt, "/public/references/payment-type", !0);
8012
+ return this.getTypedDataArrayRequester(At, "/public/references/payment-type", !0);
7797
8013
  }
7798
8014
  /**
7799
8015
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
7800
8016
  */
7801
8017
  getResourceTypes() {
7802
- return this.getTypedDataArrayRequester(Pt, "/internal/references/resource-type", !0);
8018
+ return this.getTypedDataArrayRequester(Tt, "/internal/references/resource-type", !0);
7803
8019
  }
7804
8020
  /**
7805
8021
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -7811,7 +8027,7 @@ const H = class H extends _e {
7811
8027
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
7812
8028
  */
7813
8029
  getSourcePrimaryInterest() {
7814
- return this.getTypedDataArrayRequester(yt, "/internal/references/source-primary-interest", !0);
8030
+ return this.getTypedDataArrayRequester(wt, "/internal/references/source-primary-interest", !0);
7815
8031
  }
7816
8032
  /**
7817
8033
  * Выполняет поиск данных о городах по терму в названии.
@@ -7819,7 +8035,7 @@ const H = class H extends _e {
7819
8035
  * @param term Терм поиска.
7820
8036
  */
7821
8037
  searchCity(r) {
7822
- return this.getTypedDataArrayRequester(we, `/internal/references/city-with-region-and-country/search?term=${r}`);
8038
+ return this.getTypedDataArrayRequester(ve, `/internal/references/city-with-region-and-country/search?term=${r}`);
7823
8039
  }
7824
8040
  /**
7825
8041
  * Выполняет поиск данных о регионах по терму в названии.
@@ -7827,7 +8043,7 @@ const H = class H extends _e {
7827
8043
  * @param term Терм поиска.
7828
8044
  */
7829
8045
  searchRegion(r) {
7830
- return this.getTypedDataArrayRequester(ve, `/internal/references/region-with-country/search?term=${r}`);
8046
+ return this.getTypedDataArrayRequester(we, `/internal/references/region-with-country/search?term=${r}`);
7831
8047
  }
7832
8048
  /**
7833
8049
  * Возвращает {@link Promise} для получения справочника регионов указанной страны.
@@ -7837,8 +8053,8 @@ const H = class H extends _e {
7837
8053
  * @param countryId Идентификатор страны.
7838
8054
  */
7839
8055
  getRegionsByCountry(r) {
7840
- return this.getTypedDataArrayRequester(ve, "/internal/references/region", !1, { params: { countryId: r } }).then(
7841
- (e) => H.withoutUnknownLocation(e)
8056
+ return this.getTypedDataArrayRequester(we, "/internal/references/region", !1, { params: { countryId: r } }).then(
8057
+ (e) => B.withoutUnknownLocation(e)
7842
8058
  );
7843
8059
  }
7844
8060
  /**
@@ -7849,8 +8065,8 @@ const H = class H extends _e {
7849
8065
  * @param regionId Идентификатор региона.
7850
8066
  */
7851
8067
  getCitiesByRegion(r) {
7852
- return this.getTypedDataArrayRequester(Ss, "/internal/references/city", !1, { params: { regionId: r } }).then(
7853
- (e) => H.withoutUnknownLocation(e)
8068
+ return this.getTypedDataArrayRequester(_s, "/internal/references/city", !1, { params: { regionId: r } }).then(
8069
+ (e) => B.withoutUnknownLocation(e)
7854
8070
  );
7855
8071
  }
7856
8072
  /**
@@ -7860,8 +8076,8 @@ const H = class H extends _e {
7860
8076
  * @param regionId Идентификатор региона.
7861
8077
  */
7862
8078
  getCitiesWithUserRegionByRegion(r) {
7863
- return this.getTypedDataArrayRequester(Yr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
7864
- (e) => H.withoutUnknownLocation(e)
8079
+ return this.getTypedDataArrayRequester(Qr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
8080
+ (e) => B.withoutUnknownLocation(e)
7865
8081
  );
7866
8082
  }
7867
8083
  /**
@@ -7874,12 +8090,12 @@ const H = class H extends _e {
7874
8090
  */
7875
8091
  searchCityWithRegion(r, e, t = void 0) {
7876
8092
  return this.getTypedDataArrayRequester(
7877
- we,
8093
+ ve,
7878
8094
  "/internal/references/city-with-region/search",
7879
8095
  !1,
7880
8096
  { term: r, ...e ? { params: { countryId: e } } : {} },
7881
8097
  t
7882
- ).then((i) => H.withoutUnknownLocation(i));
8098
+ ).then((i) => B.withoutUnknownLocation(i));
7883
8099
  }
7884
8100
  /**
7885
8101
  * Выполняет поиск данных о городах по терму в названии с данными
@@ -7889,8 +8105,8 @@ const H = class H extends _e {
7889
8105
  * @param signal Сигнал отмены запроса.
7890
8106
  */
7891
8107
  searchCityWithUserRegion(r, e = void 0) {
7892
- return this.getTypedDataArrayRequester(Yr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
7893
- (t) => H.withoutUnknownLocation(t)
8108
+ return this.getTypedDataArrayRequester(Qr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8109
+ (t) => B.withoutUnknownLocation(t)
7894
8110
  );
7895
8111
  }
7896
8112
  /**
@@ -7905,41 +8121,41 @@ const H = class H extends _e {
7905
8121
  * Возвращает {@link Promise} для получения справочника типов доставки.
7906
8122
  */
7907
8123
  getDeliveryTypes() {
7908
- return this.getTypedDataArrayRequester(Q, "/internal/references/delivery-type", !0);
8124
+ return this.getTypedDataArrayRequester(J, "/internal/references/delivery-type", !0);
7909
8125
  }
7910
8126
  /**
7911
8127
  * Возвращает {@link Promise} для получения справочника складов.
7912
8128
  */
7913
8129
  getWarehouses() {
7914
- return this.getTypedDataArrayRequester(Ne, "/public/references/warehouse", !0);
8130
+ return this.getTypedDataArrayRequester(Me, "/public/references/warehouse", !0);
7915
8131
  }
7916
8132
  /**
7917
8133
  * Возвращает {@link Promise} для получения справочника типов свойств.
7918
8134
  */
7919
8135
  getPropertyTypes() {
7920
- return this.getTypedDataArrayRequester(ut, "/internal/references/property-type", !0);
8136
+ return this.getTypedDataArrayRequester(ht, "/internal/references/property-type", !0);
7921
8137
  }
7922
8138
  /**
7923
8139
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
7924
8140
  */
7925
8141
  getPriceCoefficients() {
7926
- return this.getTypedDataArrayRequester(Ge, "/internal/references/price-coefficient", !0);
8142
+ return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
7927
8143
  }
7928
8144
  /**
7929
8145
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
7930
8146
  */
7931
8147
  getProductFileType() {
7932
- return this.getTypedDataArrayRequester(Os, "/public/references/product-file-type", !0);
8148
+ return this.getTypedDataArrayRequester(Fs, "/public/references/product-file-type", !0);
7933
8149
  }
7934
8150
  };
7935
8151
  /**
7936
8152
  * Идентификатор служебных записей справочников регионов и городов,
7937
8153
  * обозначающих неизвестное местоположение.
7938
8154
  */
7939
- s(H, "unknownLocationId", 1);
7940
- let d = H;
7941
- const S = te("common.references_private", () => {
7942
- const n = a({}), r = a(void 0), e = a(void 0), t = a(void 0), i = a(void 0), o = a(void 0), c = a(void 0), u = a(void 0), p = a(void 0), g = a(void 0), y = a(void 0), R = a(void 0), Pe = a(void 0), Te = a(void 0), ie = a(void 0), ne = a(void 0), Ee = a(void 0), Qe = a(void 0), Je = a(void 0), l = a(void 0);
8155
+ s(B, "unknownLocationId", 1);
8156
+ let d = B;
8157
+ const S = ie("common.references_private", () => {
8158
+ const n = w({}), r = w(void 0), e = w(void 0), t = w(void 0), i = w(void 0), o = w(void 0), c = w(void 0), u = w(void 0), p = w(void 0), g = w(void 0), y = w(void 0), P = w(void 0), Ae = w(void 0), Te = w(void 0), oe = w(void 0), ce = w(void 0), Ke = w(void 0), Xe = w(void 0), Ze = w(void 0), l = w(void 0);
7943
8159
  return {
7944
8160
  /**
7945
8161
  * Список загружаемых/загруженных на данный момент значений.
@@ -7988,11 +8204,11 @@ const S = te("common.references_private", () => {
7988
8204
  /**
7989
8205
  * Справочник типов оплаты заказов.
7990
8206
  */
7991
- paymentTypeReference: R,
8207
+ paymentTypeReference: P,
7992
8208
  /**
7993
8209
  * Справочник групп партнеров.
7994
8210
  */
7995
- partnerGroupReference: Pe,
8211
+ partnerGroupReference: Ae,
7996
8212
  /**
7997
8213
  * Справочник типов файлов продукктов/категорий.
7998
8214
  */
@@ -8000,124 +8216,124 @@ const S = te("common.references_private", () => {
8000
8216
  /**
8001
8217
  * Справочник типов ресурсов.
8002
8218
  */
8003
- resourceTypesReference: ie,
8219
+ resourceTypesReference: oe,
8004
8220
  /**
8005
8221
  * Справочник направлений продаж.
8006
8222
  */
8007
- salesDirectionsReference: ne,
8223
+ salesDirectionsReference: ce,
8008
8224
  /**
8009
8225
  * Справочник источников первичного интереса.
8010
8226
  */
8011
- sourcePrimaryInterestReference: Ee,
8227
+ sourcePrimaryInterestReference: Ke,
8012
8228
  /**
8013
8229
  * Справочник складов.
8014
8230
  */
8015
- warehousesReference: Qe,
8231
+ warehousesReference: Xe,
8016
8232
  /**
8017
8233
  * Справочник типов свойств.
8018
8234
  */
8019
- propertyTypesReference: Je,
8235
+ propertyTypesReference: Ze,
8020
8236
  /**
8021
8237
  * Справочник коэффициентов цен.
8022
8238
  */
8023
8239
  priceCoefficientsReference: l
8024
8240
  };
8025
- }), Ai = te("common.references", () => {
8026
- const n = P(() => {
8241
+ }), qi = ie("common.references", () => {
8242
+ const n = A(() => {
8027
8243
  const l = S();
8028
8244
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
8029
8245
  l.channelPrimaryInterestReference = f;
8030
- }).catch(w)), l.channelPrimaryInterestReference;
8031
- }), r = P(() => {
8246
+ }).catch(D)), l.channelPrimaryInterestReference;
8247
+ }), r = A(() => {
8032
8248
  const l = S();
8033
8249
  return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(d).getContactPositions().then((f) => {
8034
8250
  l.contactPositionsReference = f;
8035
- }).catch(w)), l.contactPositionsReference;
8036
- }), e = P(() => {
8251
+ }).catch(D)), l.contactPositionsReference;
8252
+ }), e = A(() => {
8037
8253
  const l = S();
8038
8254
  return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(d).getCurrency().then((f) => {
8039
8255
  l.currencyReference = f;
8040
- }).catch(w)), l.currencyReference;
8041
- }), t = P(() => {
8256
+ }).catch(D)), l.currencyReference;
8257
+ }), t = A(() => {
8042
8258
  const l = S();
8043
8259
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(d).getOpf().then((f) => {
8044
8260
  l.opfReference = f;
8045
- }).catch(w)), l.opfReference;
8046
- }), i = P(() => {
8261
+ }).catch(D)), l.opfReference;
8262
+ }), i = A(() => {
8047
8263
  const l = S();
8048
8264
  return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(d).getOperators().then((f) => {
8049
8265
  l.operatorReference = f;
8050
- }).catch(w)), l.operatorReference;
8051
- }), o = P(() => {
8266
+ }).catch(D)), l.operatorReference;
8267
+ }), o = A(() => {
8052
8268
  const l = S();
8053
8269
  return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(d).getOrderPaymentStatuses().then((f) => {
8054
8270
  l.orderPaymentStatusReference = f;
8055
- }).catch(w)), l.orderPaymentStatusReference;
8056
- }), c = P(() => {
8271
+ }).catch(D)), l.orderPaymentStatusReference;
8272
+ }), c = A(() => {
8057
8273
  const l = S();
8058
8274
  return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(d).getOrderStatuses().then((f) => {
8059
8275
  l.orderStatusReference = f;
8060
- }).catch(w)), l.orderStatusReference;
8061
- }), u = P(() => {
8276
+ }).catch(D)), l.orderStatusReference;
8277
+ }), u = A(() => {
8062
8278
  const l = S();
8063
8279
  return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(d).getOrderStatusDetails().then((f) => {
8064
8280
  l.orderStatusDetailReference = f;
8065
- }).catch(w)), l.orderStatusDetailReference;
8066
- }), p = P(() => {
8281
+ }).catch(D)), l.orderStatusDetailReference;
8282
+ }), p = A(() => {
8067
8283
  const l = S();
8068
8284
  return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(d).getPaymentTypes().then((f) => {
8069
8285
  l.paymentTypeReference = f;
8070
- }).catch(w)), l.paymentTypeReference;
8071
- }), g = P(() => {
8286
+ }).catch(D)), l.paymentTypeReference;
8287
+ }), g = A(() => {
8072
8288
  const l = S();
8073
8289
  return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(d).getPartnerGroup().then((f) => {
8074
8290
  l.partnerGroupReference = f;
8075
- }).catch(w)), l.partnerGroupReference;
8076
- }), y = P(() => {
8291
+ }).catch(D)), l.partnerGroupReference;
8292
+ }), y = A(() => {
8077
8293
  const l = S();
8078
8294
  return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(d).getProductFileType().then((f) => {
8079
8295
  l.productFileTypeReference = f;
8080
- }).catch(w)), l.productFileTypeReference;
8081
- }), R = P(() => {
8296
+ }).catch(D)), l.productFileTypeReference;
8297
+ }), P = A(() => {
8082
8298
  const l = S();
8083
8299
  return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(d).getResourceTypes().then((f) => {
8084
8300
  l.resourceTypesReference = f;
8085
- }).catch(w)), l.resourceTypesReference;
8086
- }), Pe = P(() => {
8301
+ }).catch(D)), l.resourceTypesReference;
8302
+ }), Ae = A(() => {
8087
8303
  const l = S();
8088
8304
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(d).getSalesDirections().then((f) => {
8089
8305
  l.salesDirectionsReference = f;
8090
- }).catch(w)), l.salesDirectionsReference;
8091
- }), Te = P(() => {
8306
+ }).catch(D)), l.salesDirectionsReference;
8307
+ }), Te = A(() => {
8092
8308
  const l = S();
8093
8309
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(d).getSourcePrimaryInterest().then((f) => {
8094
8310
  l.sourcePrimaryInterestReference = f;
8095
- }).catch(w)), l.sourcePrimaryInterestReference;
8096
- }), ie = P(() => {
8311
+ }).catch(D)), l.sourcePrimaryInterestReference;
8312
+ }), oe = A(() => {
8097
8313
  const l = S();
8098
8314
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(d).getDeliveryTypes().then((f) => {
8099
8315
  l.deliveryTypeReference = f;
8100
- }).catch(w)), l.deliveryTypeReference;
8101
- }), ne = P(() => {
8316
+ }).catch(D)), l.deliveryTypeReference;
8317
+ }), ce = A(() => {
8102
8318
  const l = S();
8103
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(wt).getManagers().then((f) => {
8319
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Dt).getManagers().then((f) => {
8104
8320
  l.managersList = f;
8105
- }).catch(w)), l.managersList;
8106
- }), Ee = P(() => {
8321
+ }).catch(D)), l.managersList;
8322
+ }), Ke = A(() => {
8107
8323
  const l = S();
8108
8324
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
8109
8325
  l.warehousesReference = f;
8110
- }).catch(w)), l.warehousesReference;
8111
- }), Qe = P(() => {
8326
+ }).catch(D)), l.warehousesReference;
8327
+ }), Xe = A(() => {
8112
8328
  const l = S();
8113
8329
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
8114
8330
  l.propertyTypesReference = f;
8115
- }).catch(w)), l.propertyTypesReference;
8116
- }), Je = P(() => {
8331
+ }).catch(D)), l.propertyTypesReference;
8332
+ }), Ze = A(() => {
8117
8333
  const l = S();
8118
8334
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
8119
8335
  l.priceCoefficientsReference = f;
8120
- }).catch(w)), l.priceCoefficientsReference;
8336
+ }).catch(D)), l.priceCoefficientsReference;
8121
8337
  });
8122
8338
  return {
8123
8339
  /**
@@ -8167,11 +8383,11 @@ const S = te("common.references_private", () => {
8167
8383
  /**
8168
8384
  * Справочник типов ресурсов.
8169
8385
  */
8170
- resourceTypesReference: R,
8386
+ resourceTypesReference: P,
8171
8387
  /**
8172
8388
  * Справочник направлений продаж.
8173
8389
  */
8174
- salesDirectionsReference: Pe,
8390
+ salesDirectionsReference: Ae,
8175
8391
  /**
8176
8392
  * Справочник каналов первичного интереса.
8177
8393
  */
@@ -8179,26 +8395,26 @@ const S = te("common.references_private", () => {
8179
8395
  /**
8180
8396
  * Справочник типов доставки.
8181
8397
  */
8182
- deliveryTypeReference: ie,
8398
+ deliveryTypeReference: oe,
8183
8399
  /**
8184
8400
  * Список менеджеров.
8185
8401
  */
8186
- managersList: ne,
8402
+ managersList: ce,
8187
8403
  /**
8188
8404
  * Справочник складов.
8189
8405
  */
8190
- warehousesReference: Ee,
8406
+ warehousesReference: Ke,
8191
8407
  /**
8192
8408
  * Справочник типов свойств.
8193
8409
  */
8194
- propertyTypesReference: Qe,
8410
+ propertyTypesReference: Xe,
8195
8411
  /**
8196
8412
  * Справочник коэффициентов цен.
8197
8413
  */
8198
- priceCoefficientsReference: Je
8414
+ priceCoefficientsReference: Ze
8199
8415
  };
8200
8416
  });
8201
- class Is {
8417
+ class Ms {
8202
8418
  /**
8203
8419
  * Инициализирует экземпляр класса {@link MetaTagItem}.
8204
8420
  *
@@ -8216,7 +8432,7 @@ class Is {
8216
8432
  this.name = r.name, this.content = r.content;
8217
8433
  }
8218
8434
  }
8219
- class zr {
8435
+ class Vr {
8220
8436
  /**
8221
8437
  * Инициализирует экземпляр класса {@link Seo}.
8222
8438
  *
@@ -8256,10 +8472,10 @@ class zr {
8256
8472
  */
8257
8473
  s(this, "tags");
8258
8474
  var e;
8259
- this.resourceType = new Pt(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new Is(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8475
+ this.resourceType = new Tt(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new Ms(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8260
8476
  }
8261
8477
  }
8262
- class di extends h {
8478
+ class Ni extends h {
8263
8479
  /**
8264
8480
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
8265
8481
  *
@@ -8267,7 +8483,7 @@ class di extends h {
8267
8483
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
8268
8484
  */
8269
8485
  getResourceSeoData(r, e) {
8270
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new zr(t.data));
8486
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Vr(t.data));
8271
8487
  }
8272
8488
  /**
8273
8489
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -8278,7 +8494,7 @@ class di extends h {
8278
8494
  * в случае ошибок в запросах.
8279
8495
  */
8280
8496
  saveResourceSeoData(r, e = {}) {
8281
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new zr(t.data), e);
8497
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Vr(t.data), e);
8282
8498
  }
8283
8499
  /**
8284
8500
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -8290,7 +8506,7 @@ class di extends h {
8290
8506
  return this.delete(`/internal/seo/${r.slug}/${e}`);
8291
8507
  }
8292
8508
  }
8293
- class Si extends h {
8509
+ class Ui extends h {
8294
8510
  /**
8295
8511
  * Возвращает подсказки по адресам.
8296
8512
  *
@@ -8337,8 +8553,8 @@ class Si extends h {
8337
8553
  });
8338
8554
  }
8339
8555
  }
8340
- var Tt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(Tt || {});
8341
- class xs extends lt {
8556
+ var dt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(dt || {});
8557
+ class Hs extends pt {
8342
8558
  /**
8343
8559
  * Инициализирует экземпляр класса {@link User}.
8344
8560
  *
@@ -8362,15 +8578,15 @@ class xs extends lt {
8362
8578
  * Роль ценообразования текущего пользователя.
8363
8579
  */
8364
8580
  s(this, "pricingRole");
8365
- 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 ot(e.pricingRole) : void 0;
8581
+ 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 lt(e.pricingRole) : void 0;
8366
8582
  }
8367
8583
  }
8368
- class $i extends h {
8584
+ class Fi extends h {
8369
8585
  /**
8370
8586
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
8371
8587
  */
8372
8588
  constructor() {
8373
- super(), this.baseUrl = `${k().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
8589
+ super(), this.baseUrl = `${L().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
8374
8590
  }
8375
8591
  /**
8376
8592
  * Функция для получения обновленных токенов доступа.
@@ -8381,17 +8597,17 @@ class $i extends h {
8381
8597
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
8382
8598
  }
8383
8599
  }
8384
- class _s extends h {
8600
+ class Bs extends h {
8385
8601
  /**
8386
8602
  * Возвращает данные о текущем пользователе.
8387
8603
  */
8388
8604
  // eslint-disable-next-line class-methods-use-this
8389
8605
  getCurrentUser() {
8390
- return this.get("/internal/users/info", {}, (r) => new xs(r.data), !0);
8606
+ return this.get("/internal/users/info", {}, (r) => new Hs(r.data), !0);
8391
8607
  }
8392
8608
  }
8393
- const Cr = te("common.user_state_private", () => {
8394
- const n = a({}), r = a(void 0), e = a(void 0);
8609
+ const Rr = ie("common.user_state_private", () => {
8610
+ const n = w({}), r = w(void 0), e = w(void 0);
8395
8611
  return {
8396
8612
  /**
8397
8613
  * Список загружаемых/загруженных на данный момент значений.
@@ -8407,23 +8623,23 @@ const Cr = te("common.user_state_private", () => {
8407
8623
  currentManager: e
8408
8624
  };
8409
8625
  });
8410
- function Er(n) {
8411
- const r = Cr();
8412
- (n == null ? void 0 : n.type) !== Tt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(wt).getManager(n.id).then((e) => {
8626
+ function Jr(n) {
8627
+ const r = Rr();
8628
+ (n == null ? void 0 : n.type) !== dt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Dt).getManager(n.id).then((e) => {
8413
8629
  r.currentManager = e;
8414
- }).catch(w).finally(() => {
8630
+ }).catch(D).finally(() => {
8415
8631
  r.dataLoaderList.currentManager = !1;
8416
8632
  }));
8417
8633
  }
8418
- const ki = te("common.user_state", () => {
8419
- const n = P(() => {
8420
- const e = Cr();
8421
- return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(_s).getCurrentUser().then((t) => {
8422
- e.currentUser = t, Er(t);
8423
- }).catch(w).finally(() => {
8634
+ const Mi = ie("common.user_state", () => {
8635
+ const n = A(() => {
8636
+ const e = Rr();
8637
+ return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(Bs).getCurrentUser().then((t) => {
8638
+ e.currentUser = t, Jr(t);
8639
+ }).catch(D).finally(() => {
8424
8640
  e.dataLoaderList.currentUser = !1;
8425
8641
  })), e.currentUser;
8426
- }), r = P(() => (Er(n.value), Cr().currentManager));
8642
+ }), r = A(() => (Jr(n.value), Rr().currentManager));
8427
8643
  return {
8428
8644
  /**
8429
8645
  * Данные о текущем пользователе.
@@ -8435,7 +8651,7 @@ const ki = te("common.user_state", () => {
8435
8651
  currentManager: r
8436
8652
  };
8437
8653
  });
8438
- class Dr {
8654
+ class Pr {
8439
8655
  /**
8440
8656
  * Инициализирует экземпляр класса {@link UserRegionEmployee}.
8441
8657
  *
@@ -8453,7 +8669,7 @@ class Dr {
8453
8669
  this.user = new q(r == null ? void 0 : r.user), this.salesDirection = new F(r == null ? void 0 : r.salesDirection);
8454
8670
  }
8455
8671
  }
8456
- class pr extends Ye {
8672
+ class gr extends Ve {
8457
8673
  /**
8458
8674
  * Инициализирует экземпляр класса {@link UserRegion}.
8459
8675
  *
@@ -8470,10 +8686,10 @@ class pr extends Ye {
8470
8686
  * @inheritDoc
8471
8687
  */
8472
8688
  s(this, "users");
8473
- this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new we(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Dr(o))) ?? [];
8689
+ this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new ve(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Pr(o))) ?? [];
8474
8690
  }
8475
8691
  }
8476
- class Li extends qe {
8692
+ class Hi extends Fe {
8477
8693
  /**
8478
8694
  * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
8479
8695
  *
@@ -8509,7 +8725,7 @@ class Li extends qe {
8509
8725
  return this;
8510
8726
  }
8511
8727
  }
8512
- class Oi extends Y {
8728
+ class Bi extends Y {
8513
8729
  /**
8514
8730
  * Возвращает список регионов пользователей.
8515
8731
  *
@@ -8520,7 +8736,7 @@ class Oi extends Y {
8520
8736
  * @see /doc/api/internal#/operations/api_internal_user_region_get_list
8521
8737
  */
8522
8738
  getRegionsList(r, e, t) {
8523
- return this.getTypedPaginated(Ye, "/internal/users/regions", r, e, t);
8739
+ return this.getTypedPaginated(Ve, "/internal/users/regions", r, e, t);
8524
8740
  }
8525
8741
  /**
8526
8742
  * Возвращает полные данные о регионе пользователей.
@@ -8530,7 +8746,7 @@ class Oi extends Y {
8530
8746
  * @see /doc/api/internal#/operations/api_internal_user_region_get
8531
8747
  */
8532
8748
  getRegion(r) {
8533
- return this.get(`/internal/users/regions/${r}`, {}, (e) => new pr(e.data));
8749
+ return this.get(`/internal/users/regions/${r}`, {}, (e) => new gr(e.data));
8534
8750
  }
8535
8751
  /**
8536
8752
  * Создаёт новый регион пользователей.
@@ -8543,7 +8759,7 @@ class Oi extends Y {
8543
8759
  * @see /doc/api/internal#/operations/api_internal_user_region_create
8544
8760
  */
8545
8761
  createRegion(r, e = {}) {
8546
- return this.post("/internal/users/regions", r, (t) => new pr(t.data), e);
8762
+ return this.post("/internal/users/regions", r, (t) => new gr(t.data), e);
8547
8763
  }
8548
8764
  /**
8549
8765
  * Изменяет данные о регионе пользователей.
@@ -8557,7 +8773,7 @@ class Oi extends Y {
8557
8773
  * @see /doc/api/internal#/operations/api_internal_user_region_change
8558
8774
  */
8559
8775
  updateRegion(r, e, t = {}) {
8560
- return this.patch(`/internal/users/regions/${r}`, e, (i) => new pr(i.data), t);
8776
+ return this.patch(`/internal/users/regions/${r}`, e, (i) => new gr(i.data), t);
8561
8777
  }
8562
8778
  /**
8563
8779
  * Удаляет регион пользователей.
@@ -8577,7 +8793,7 @@ class Oi extends Y {
8577
8793
  * @see /doc/api/internal#/operations/api_internal_user_region_user_get_list
8578
8794
  */
8579
8795
  getRegionEmployees(r) {
8580
- return this.getTypedList(Dr, `/internal/users/regions/${r}/users`);
8796
+ return this.getTypedList(Pr, `/internal/users/regions/${r}/users`);
8581
8797
  }
8582
8798
  /**
8583
8799
  * Закрепляет сотрудника за регионом по указанному направлению продаж.
@@ -8589,7 +8805,7 @@ class Oi extends Y {
8589
8805
  * @see /doc/api/internal#/operations/api_internal_user_region_user_add
8590
8806
  */
8591
8807
  attachRegionEmployee(r, e, t) {
8592
- return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Dr(i.data));
8808
+ return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Pr(i.data));
8593
8809
  }
8594
8810
  /**
8595
8811
  * Открепляет сотрудника от региона по указанному направлению продаж.
@@ -8608,7 +8824,7 @@ class Oi extends Y {
8608
8824
  });
8609
8825
  }
8610
8826
  }
8611
- class Ii {
8827
+ class Wi {
8612
8828
  /**
8613
8829
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
8614
8830
  *
@@ -8632,190 +8848,198 @@ class Ii {
8632
8848
  }
8633
8849
  }
8634
8850
  export {
8635
- ds as AnyReference,
8636
- rs as AppBaseConfig,
8851
+ xs as AnyReference,
8852
+ ns as AppBaseConfig,
8637
8853
  vr as BankAccount,
8638
8854
  Y as BasePaginationProvider,
8639
- ir as BlogPost,
8640
- mr as BlogPostMediaFile,
8641
- He as BlogPostMediaTypeEnum,
8642
- Be as BlogPostPublicationStatusEnum,
8643
- me as BlogPostShortInfo,
8644
- js as BlogPostsListFilters,
8645
- yr as BlogProvider,
8646
- os as CalculationTypeEnum,
8855
+ or as BlogPost,
8856
+ yr as BlogPostMediaFile,
8857
+ Ge as BlogPostMediaTypeEnum,
8858
+ Ye as BlogPostPublicationStatusEnum,
8859
+ ye as BlogPostShortInfo,
8860
+ Js as BlogPostsListFilters,
8861
+ ar as BlogProvider,
8862
+ ps as CalculationTypeEnum,
8647
8863
  m as CalendarHelper,
8648
- $e as Cart,
8649
- Ys as CartProvider,
8650
- Es as CatalogProvider,
8651
- rt as CatalogableItem,
8652
- z as Category,
8653
- hs as CategoryFilter,
8654
- Mr as CategoryFilterSetting,
8655
- ps as CategoryFilterValue,
8656
- Fr as CategoryPricingRule,
8657
- mt as ChannelPrimaryInterest,
8658
- Ss as City,
8659
- we as CityWithRegionAndCountry,
8660
- Yr as CityWithUserRegion,
8661
- Wr as Client,
8662
- ys as ClientAdditionalData,
8663
- We as ClientCategory,
8664
- M as ClientDataProvider,
8665
- Qs as ClientPriceProvider,
8666
- Js as ClientPriceTemplateProvider,
8667
- J as ClientProduct,
8668
- Xs as ClientProductCategoryDataProvider,
8669
- Zs as ClientProductDataProvider,
8670
- se as ClientShortInfo,
8671
- gs as ClientsAdditionalDataRequestTypeEnum,
8672
- ii as ClientsListFilters,
8673
- xe as CodedIdentity,
8674
- ci as ConfiguratorProvider,
8675
- vs as ConfiguratorsEnum,
8676
- wr as Contact,
8677
- nt as ContactLinks,
8678
- ee as ContactPerson,
8679
- as as ContactPersonRelated,
8680
- $s as ContactPosition,
8681
- cr as ContactRelation,
8682
- ht as ContragentBase,
8683
- je as ContragentFactory,
8684
- gt as ContragentIc,
8685
- fs as ContragentPerson,
8686
- ms as ContragentUlNr,
8687
- ft as ContragentUlR,
8688
- dr as CostSourceEnum,
8864
+ ke as Cart,
8865
+ Xs as CartProvider,
8866
+ ei as CatalogProvider,
8867
+ it as CatalogableItem,
8868
+ E as Category,
8869
+ ys as CategoryFilter,
8870
+ Wr as CategoryFilterSetting,
8871
+ ms as CategoryFilterValue,
8872
+ Br as CategoryPricingRule,
8873
+ at as ChannelPrimaryInterest,
8874
+ _s as City,
8875
+ ve as CityWithRegionAndCountry,
8876
+ Qr as CityWithUserRegion,
8877
+ Gr as Client,
8878
+ Cs as ClientAdditionalData,
8879
+ Ee as ClientCategory,
8880
+ H as ClientDataProvider,
8881
+ ri as ClientPriceProvider,
8882
+ ti as ClientPriceTemplateProvider,
8883
+ K as ClientProduct,
8884
+ ni as ClientProductCategoryDataProvider,
8885
+ oi as ClientProductDataProvider,
8886
+ ne as ClientShortInfo,
8887
+ as as ClientsAdditionalDataRequestTypeEnum,
8888
+ hi as ClientsListFilters,
8889
+ Ne as CodedIdentity,
8890
+ mi as ConfiguratorProvider,
8891
+ Rs as ConfiguratorsEnum,
8892
+ Cr as Contact,
8893
+ ct as ContactLinks,
8894
+ te as ContactPerson,
8895
+ Ds as ContactPersonRelated,
8896
+ qs as ContactPosition,
8897
+ ur as ContactRelation,
8898
+ ft as ContragentBase,
8899
+ Qe as ContragentFactory,
8900
+ mt as ContragentIc,
8901
+ ws as ContragentPerson,
8902
+ vs as ContragentUlNr,
8903
+ yt as ContragentUlR,
8904
+ $r as CostSourceEnum,
8689
8905
  ae as Country,
8690
- $r as CuratedDirection,
8691
- kr as Curator,
8906
+ Or as CuratedDirection,
8907
+ Ir as Curator,
8692
8908
  j as Currency,
8693
- Si as DataSuggestionProvider,
8694
- pi as DateTimeProvider,
8695
- pt as DeletableNamedIdentity,
8696
- Oe as DeliveryAddress,
8697
- Q as DeliveryType,
8698
- Kr as DetailedJwtPayload,
8699
- Kt as DeviceTypeResolutionConfig,
8700
- ts as DiscountShortInfo,
8701
- Ii as FieldValidationResultData,
8702
- Z as FilterGroup,
8703
- Nr as FilterItem,
8704
- Tr as FilterOpEnum,
8705
- us as FilterSettings,
8706
- et as GeoCoordinates,
8707
- is as HiddenCatalogableItem,
8708
- _e as HttpCachedRequester,
8709
- Xt as HttpParamsConfig,
8909
+ Ui as DataSuggestionProvider,
8910
+ Dr as DateHelper,
8911
+ Ci as DateTimeProvider,
8912
+ gt as DeletableNamedIdentity,
8913
+ xe as DeliveryAddress,
8914
+ J as DeliveryType,
8915
+ et as DetailedJwtPayload,
8916
+ rs as DeviceTypeResolutionConfig,
8917
+ os as DiscountShortInfo,
8918
+ Wi as FieldValidationResultData,
8919
+ re as FilterGroup,
8920
+ Mr as FilterItem,
8921
+ dr as FilterOpEnum,
8922
+ fs as FilterSettings,
8923
+ st as GeoCoordinates,
8924
+ ls as HiddenCatalogableItem,
8925
+ Ue as HttpCachedRequester,
8926
+ ts as HttpParamsConfig,
8710
8927
  h as HttpRequester,
8711
8928
  G as Identity,
8712
- ns as Image,
8929
+ us as Image,
8713
8930
  Re as JwtPayload,
8714
- V as Manager,
8715
- Sr as ManagerCommon,
8716
- mi as ManagerDataFactory,
8717
- wt as ManagerDataProvider,
8718
- Is as MetaTagItem,
8931
+ X as Manager,
8932
+ Lr as ManagerCommon,
8933
+ bi as ManagerDataFactory,
8934
+ Dt as ManagerDataProvider,
8935
+ Ms as MetaTagItem,
8719
8936
  O as NamedIdentity,
8720
- ue as Offer,
8721
- Ct as OfferShortInfo,
8722
- ai as OffersDataProvider,
8723
- yi as OffersListFilters,
8724
- Rt as Operator,
8725
- re as Opf,
8726
- E as OpfEnum,
8937
+ M as Offer,
8938
+ As as OfferActualization,
8939
+ Ie as OfferActualizationStatus,
8940
+ di as OfferHelper,
8941
+ Rt as OfferShortInfo,
8942
+ Ti as OffersDataProvider,
8943
+ Ai as OffersListFilters,
8944
+ bt as Operator,
8945
+ se as Opf,
8946
+ Q as OpfEnum,
8727
8947
  I as Order,
8728
- Ds as OrderAction,
8729
- vi as OrderEditorData,
8730
- Dt as OrderInfo,
8731
- Cs as OrderItem,
8732
- tt as OrderItemBase,
8733
- ks as OrderPaymentStatus,
8734
- at as OrderShortInfo,
8735
- ze as OrderStatus,
8736
- Ls as OrderStatusDetail,
8737
- As as OrderStatusDetailEnum,
8738
- Ts as OrderStatusEnum,
8739
- Rs as OrderStatusHistoryInfo,
8740
- Ci as OrdersDataProvider,
8741
- wi as OrdersListFilters,
8742
- qe as PaginationFiltersBase,
8948
+ Ss as OrderAction,
8949
+ Si as OrderEditorData,
8950
+ Pt as OrderInfo,
8951
+ ds as OrderItem,
8952
+ nt as OrderItemBase,
8953
+ Ns as OrderPaymentStatus,
8954
+ vt as OrderShortInfo,
8955
+ Je as OrderStatus,
8956
+ Us as OrderStatusDetail,
8957
+ Is as OrderStatusDetailEnum,
8958
+ Os as OrderStatusEnum,
8959
+ $s as OrderStatusHistoryInfo,
8960
+ ki as OrdersDataProvider,
8961
+ $i as OrdersListFilters,
8962
+ Fe as PaginationFiltersBase,
8743
8963
  Ce as PartnerGroup,
8744
- bt as PaymentType,
8745
- Me as PreferencesStorageProvider,
8746
- lr as PriceAnalyze,
8747
- Ri as PriceAnalyzeProvider,
8748
- Ge as PriceCoefficient,
8749
- Zr as PriceCoefficientEnum,
8750
- bi as PriceHistoryDataProvider,
8751
- bs as PriceHistoryItem,
8752
- he as PriceTemplate,
8753
- nr as PriceTemplateCategory,
8754
- ke as PriceTemplateClient,
8755
- ct as PriceTemplateICatalogableItem,
8756
- or as PriceTemplateProduct,
8757
- ei as PriceTemplateProvider,
8758
- Le as PricingRole,
8759
- ri as PricingRoleProvider,
8760
- ar as PrimaryCatalogableItem,
8964
+ At as PaymentType,
8965
+ je as PreferencesStorageProvider,
8966
+ pr as PriceAnalyze,
8967
+ Oi as PriceAnalyzeProvider,
8968
+ Pe as PriceCoefficient,
8969
+ tt as PriceCoefficientEnum,
8970
+ Ii as PriceHistoryDataProvider,
8971
+ ks as PriceHistoryItem,
8972
+ ge as PriceTemplate,
8973
+ cr as PriceTemplateCategory,
8974
+ Le as PriceTemplateClient,
8975
+ ut as PriceTemplateICatalogableItem,
8976
+ lr as PriceTemplateProduct,
8977
+ ci as PriceTemplateProvider,
8978
+ Oe as PricingRole,
8979
+ li as PricingRoleProvider,
8980
+ wr as PrimaryCatalogableItem,
8761
8981
  N as Product,
8762
- Vs as ProductCategoryDataProvider,
8763
- Ks as ProductDataProvider,
8764
- Os as ProductFileType,
8765
- it as ProductFilterTypeEnum,
8766
- Ar as ProductPriceCoefficient,
8767
- Ps as ProductPriceHistory,
8768
- Ur as ProductUnit,
8769
- ti as PropertiesProvider,
8770
- ge as Property,
8771
- ut as PropertyType,
8772
- cs as PropertyTypeEnum,
8773
- le as PropertyValue,
8774
- Pi as RecommendationsDataProvider,
8775
- Gr as RecommendationsList,
8776
- v as Reference,
8777
- Ti as ReferenceDataFactory,
8982
+ si as ProductCategoryDataProvider,
8983
+ ii as ProductDataProvider,
8984
+ Fs as ProductFileType,
8985
+ ot as ProductFilterTypeEnum,
8986
+ Sr as ProductPriceCoefficient,
8987
+ Ls as ProductPriceHistory,
8988
+ Hr as ProductUnit,
8989
+ Ts as ProfstroyOfferItem,
8990
+ ui as PropertiesProvider,
8991
+ fe as Property,
8992
+ ht as PropertyType,
8993
+ hs as PropertyTypeEnum,
8994
+ pe as PropertyValue,
8995
+ xi as RecommendationsDataProvider,
8996
+ Er as RecommendationsList,
8997
+ C as Reference,
8998
+ _i as ReferenceDataFactory,
8778
8999
  d as ReferenceDataProvider,
8779
- ve as Region,
8780
- Pt as ResourceType,
8781
- hi as STANDARD_PERIOD_GROUPS,
8782
- gi as STANDARD_PERIOD_SECTIONS,
9000
+ we as Region,
9001
+ Tt as ResourceType,
9002
+ Di as STANDARD_PERIOD_GROUPS,
9003
+ Ri as STANDARD_PERIOD_SECTIONS,
8783
9004
  F as SalesDirection,
8784
- Zt as SentryConfig,
8785
- zr as Seo,
8786
- di as SeoDataProvider,
8787
- yt as SourcePrimaryInterest,
8788
- ss as StockCount,
8789
- li as TableDataPagination,
8790
- ws as TableDataPaginationRequestParams,
8791
- ui as TableDataSortRequestParams,
8792
- si as TemplateProductCategoryDataProvider,
8793
- zs as TemplatesListFilters,
9005
+ ss as SentryConfig,
9006
+ Vr as Seo,
9007
+ Ni as SeoDataProvider,
9008
+ wt as SourcePrimaryInterest,
9009
+ cs as StockCount,
9010
+ yi as TableDataPagination,
9011
+ Ps as TableDataPaginationRequestParams,
9012
+ ai as TableDataSortRequestParams,
9013
+ pi as TemplateProductCategoryDataProvider,
9014
+ Zs as TemplatesListFilters,
8794
9015
  _ as TypedInstanceFactory,
8795
- vt as UnitsHelper,
8796
- ni as UnknownClientDataProvider,
8797
- Xr as UpdatableNamedIdentity,
8798
- xs as User,
8799
- $i as UserAuthDataProvider,
8800
- lt as UserCommonInfo,
8801
- _s as UserDataProvider,
8802
- ot as UserPricingRole,
8803
- pr as UserRegion,
8804
- Dr as UserRegionEmployee,
8805
- Oi as UserRegionProvider,
8806
- Ye as UserRegionShortInfo,
8807
- Li as UserRegionsListFilters,
9016
+ Ct as UnitsHelper,
9017
+ gi as UnknownClientDataProvider,
9018
+ rt as UpdatableNamedIdentity,
9019
+ Hs as User,
9020
+ Fi as UserAuthDataProvider,
9021
+ pt as UserCommonInfo,
9022
+ Bs as UserDataProvider,
9023
+ lt as UserPricingRole,
9024
+ gr as UserRegion,
9025
+ Pr as UserRegionEmployee,
9026
+ Bi as UserRegionProvider,
9027
+ Ve as UserRegionShortInfo,
9028
+ Hi as UserRegionsListFilters,
8808
9029
  q as UserShortInfo,
8809
- Tt as UserTypeEnum,
8810
- oi as VersionConfig,
8811
- Ne as Warehouse,
8812
- es as WebSocketConfig,
8813
- Di as currentOrderInjectionKey,
8814
- Hr as findCatalogItemByIdRecursive,
8815
- Br as flattenCatalogItems,
8816
- fi as pluralize,
8817
- sr as useAuthStateStore,
8818
- k as useBaseConfigStateStore,
8819
- Ai as useReferencesStore,
8820
- ki as useUserStateStore
9030
+ dt as UserTypeEnum,
9031
+ fi as VersionConfig,
9032
+ Me as Warehouse,
9033
+ is as WebSocketConfig,
9034
+ Li as currentOrderInjectionKey,
9035
+ wi as daysAgoIso,
9036
+ zr as findCatalogItemByIdRecursive,
9037
+ jr as flattenCatalogItems,
9038
+ Pi as formatPercentChange,
9039
+ vi as formatRelativeDate,
9040
+ bs as pluralize,
9041
+ nr as useAuthStateStore,
9042
+ L as useBaseConfigStateStore,
9043
+ qi as useReferencesStore,
9044
+ Mi as useUserStateStore
8821
9045
  };