@snabcentr/common-lib 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +3 -9
  3. package/dist/sc-common-lib.js +945 -756
  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/index.d.ts +1 -0
  10. package/dist/src/date-time/helpers/index.d.ts.map +1 -1
  11. package/dist/src/offers/classes/index.d.ts +2 -0
  12. package/dist/src/offers/classes/index.d.ts.map +1 -1
  13. package/dist/src/offers/classes/offer-actualization.d.ts +50 -0
  14. package/dist/src/offers/classes/offer-actualization.d.ts.map +1 -0
  15. package/dist/src/offers/classes/offer-short-info.d.ts +14 -0
  16. package/dist/src/offers/classes/offer-short-info.d.ts.map +1 -1
  17. package/dist/src/offers/classes/offer.d.ts.map +1 -1
  18. package/dist/src/offers/classes/profstroy-offer-item.d.ts +38 -0
  19. package/dist/src/offers/classes/profstroy-offer-item.d.ts.map +1 -0
  20. package/dist/src/offers/enums/index.d.ts +2 -0
  21. package/dist/src/offers/enums/index.d.ts.map +1 -0
  22. package/dist/src/offers/enums/offer-actualization-status.d.ts +22 -0
  23. package/dist/src/offers/enums/offer-actualization-status.d.ts.map +1 -0
  24. package/dist/src/offers/helpers/index.d.ts +2 -0
  25. package/dist/src/offers/helpers/index.d.ts.map +1 -0
  26. package/dist/src/offers/helpers/offer-helper.d.ts +22 -0
  27. package/dist/src/offers/helpers/offer-helper.d.ts.map +1 -0
  28. package/dist/src/offers/index.d.ts +2 -0
  29. package/dist/src/offers/index.d.ts.map +1 -1
  30. package/dist/src/offers/interfaces/i-offer-actualization.d.ts +49 -0
  31. package/dist/src/offers/interfaces/i-offer-actualization.d.ts.map +1 -0
  32. package/dist/src/offers/interfaces/i-offer-short-info.d.ts +14 -0
  33. package/dist/src/offers/interfaces/i-offer-short-info.d.ts.map +1 -1
  34. package/dist/src/offers/interfaces/i-profstroy-offer-file.d.ts +14 -0
  35. package/dist/src/offers/interfaces/i-profstroy-offer-file.d.ts.map +1 -0
  36. package/dist/src/offers/interfaces/i-profstroy-offer-item.d.ts +32 -0
  37. package/dist/src/offers/interfaces/i-profstroy-offer-item.d.ts.map +1 -0
  38. package/dist/src/offers/interfaces/i-profstroy-offer.d.ts +21 -0
  39. package/dist/src/offers/interfaces/i-profstroy-offer.d.ts.map +1 -0
  40. package/dist/src/offers/interfaces/index.d.ts +4 -0
  41. package/dist/src/offers/interfaces/index.d.ts.map +1 -1
  42. package/dist/src/offers/providers/offers-data-provider.d.ts +32 -0
  43. package/dist/src/offers/providers/offers-data-provider.d.ts.map +1 -1
  44. package/dist/src/orders/classes/order-info.d.ts +4 -0
  45. package/dist/src/orders/classes/order-info.d.ts.map +1 -1
  46. package/dist/src/orders/interfaces/i-order-info.d.ts +5 -0
  47. package/dist/src/orders/interfaces/i-order-info.d.ts.map +1 -1
  48. 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 xe, isNil as a, isEmpty as ee, noop as C, mapValues as Xr, isArray as z, every as kt, split as Lt, startsWith as Ot, endsWith as It, includes as xt, isString as D, isFunction as br, map as De, isObject as Ar, isError as xr, toLower as _t, isDate as gr, isPlainObject as qt, isUndefined as Fe, constant as Nt, toUpper as Ut, cloneDeep as Ft, forEach as Mt, 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 Ht, computed as A } from "vue";
9
+ import { isAfter as qr, parseISO as R, startOfToday as fr, format as L, endOfMonth as x, addMonths as $, differenceInCalendarMonths as Bt, startOfMonth as U, getDate as Nr, getDaysInMonth as Wt, endOfDay as W, startOfDay as he, setDate as zt, startOfWeek as X, addWeeks as mr, differenceInCalendarDays as Ke, addDays as Z, isValid as jt, addBusinessDays as Gt, startOfYear as le, endOfYear as Te, endOfWeek as de, endOfTomorrow as Yt, startOfTomorrow as Et, endOfYesterday as Qt, startOfYesterday as Vt, endOfToday as Jt, startOfQuarter as Se, endOfQuarter as Me, subDays as Xe, addYears as Ze, addQuarters as er, subYears as rr, subQuarters as tr, subMonths as sr, subWeeks as Ur, addSeconds as Kt } from "date-fns";
10
+ import Xt, { CanceledError as Zt } 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
+ xe(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
+ xe(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 es {
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 rs {
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 ts {
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 ss {
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 is {
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 rs(r == null ? void 0 : r.http), this.deviceTypeByResolution = new es(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new ts({
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 ss(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 k = ie("common.config", () => {
341
+ const n = w(new is());
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 = xe(n.value, t);
360
360
  }
361
361
  };
362
362
  });
363
- class Me {
363
+ class He {
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(R(t.availableFor) || fr(), /* @__PURE__ */ new Date())) {
383
+ if (a(t.data) || ee(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) || ee(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(R(o.availableFor) || fr(), /* @__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,11 +478,11 @@ 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 = He.getActualDataFromStorage(
486
486
  "sc.token"
487
487
  /* JwtToken */
488
488
  );
@@ -491,12 +491,12 @@ const ce = te("common.auth_state_private", () => {
491
491
  const c = (u = k().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 = Ht(/* @__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(C);
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
+ }), ir = 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), He.saveActualDataToStorage("sc.token", u, Fr(u)), o.recalculateUserPermissions();
530
+ }).catch(C);
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), He.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, He.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(C);
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 [be, Ae] = P, oe = (ce = ue().userPermissions) == null ? void 0 : ce[be];
561
+ return z(oe) && oe.includes(Ae);
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 Be = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(Be || {});
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) ?? Be.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 === Be.Image;
657
657
  }
658
658
  /**
659
659
  * Возвращает признак того, что медиафайл является видео.
660
660
  */
661
661
  isVideo() {
662
- return this.mediaType === He.Video;
662
+ return this.mediaType === Be.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 We = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(We || {});
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) ? We.Draft : e.getTime() > Date.now() ? We.Scheduled : We.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 : D(e) ? R(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 nr 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 Ne {
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
+ D(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 = D(r == null ? void 0 : r.from) ? R(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = D(r == null ? void 0 : r.to) ? R(r.to) : (r == null ? void 0 : r.to) ?? null;
804
804
  }
805
805
  }
806
- class js extends qe {
806
+ class Qs extends Ne {
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
  }
@@ -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", C);
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(ir().jwtToken) || (e = await ir().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) : (ir().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 Zt("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 = Xt.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", C), /**
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.
@@ -1247,9 +1247,9 @@ class Nr {
1247
1247
  field: this.field,
1248
1248
  op: this.op
1249
1249
  };
1250
- if (hr(this.value))
1250
+ if (gr(this.value))
1251
1251
  e.value = L(this.value, r);
1252
- else if (xt(this.value)) {
1252
+ else if (qt(this.value)) {
1253
1253
  const t = this.value;
1254
1254
  e.value = {
1255
1255
  from: t.from ? L(t.from, r) : null,
@@ -1260,7 +1260,7 @@ class Nr {
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())), ee(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)) {
1357
+ if (Fe(r.title) || (e.title = r.title), Fe(r.slug) || (e.slug = r.slug), Fe(r.content) || (e.content = r.content), !Fe(r.publishedAt)) {
1358
1358
  const t = k().config.dateFormats.api;
1359
- e.publishedAt = T(r.publishedAt) ? null : L(r.publishedAt, t);
1359
+ e.publishedAt = a(r.publishedAt) ? null : L(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 nr(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 nr(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 nr(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
  }
@@ -1521,7 +1521,7 @@ class q extends O {
1521
1521
  this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
1522
1522
  }
1523
1523
  }
1524
- class ts extends O {
1524
+ class ns extends O {
1525
1525
  /**
1526
1526
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1527
1527
  *
@@ -1557,10 +1557,10 @@ class ts extends O {
1557
1557
  * Дата и время удаления.
1558
1558
  */
1559
1559
  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;
1560
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = D(e == null ? void 0 : e.publishedAt) ? R(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new q(e == null ? void 0 : e.owner), this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1561
1561
  }
1562
1562
  }
1563
- class Xr extends O {
1563
+ class rt extends O {
1564
1564
  /**
1565
1565
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1566
1566
  *
@@ -1572,10 +1572,10 @@ class Xr extends O {
1572
1572
  * Дата и время последнего изменения.
1573
1573
  */
1574
1574
  s(this, "updatedAt");
1575
- this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? D(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1575
+ this.updatedAt = D(e == null ? void 0 : e.updatedAt) ? R(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1576
1576
  }
1577
1577
  }
1578
- class he extends Xr {
1578
+ class ge extends rt {
1579
1579
  /**
1580
1580
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1581
1581
  *
@@ -1595,10 +1595,10 @@ class he extends Xr {
1595
1595
  * Данные о пользователе, создавшем шаблон прайс-листа.
1596
1596
  */
1597
1597
  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;
1598
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1599
1599
  }
1600
1600
  }
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 || {});
1601
+ var tt = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(tt || {});
1602
1602
  class v extends O {
1603
1603
  /**
1604
1604
  * Инициализирует экземпляр класса {@link Reference}.
@@ -1623,10 +1623,10 @@ class Ge extends v {
1623
1623
  * Возвращает значение справочника коэффициента розничной цены.
1624
1624
  */
1625
1625
  static getRetailPriceCoefficient() {
1626
- return { id: -2, slug: Zr.Retail, name: "Розн. цена", guid: "", isNewRec: _t(!0) };
1626
+ return { id: -2, slug: tt.Retail, name: "Розн. цена", guid: "", isNewRec: Nt(!0) };
1627
1627
  }
1628
1628
  }
1629
- class Ar {
1629
+ class Sr {
1630
1630
  /**
1631
1631
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
1632
1632
  *
@@ -1656,7 +1656,7 @@ class Ar {
1656
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;
1657
1657
  }
1658
1658
  }
1659
- class et {
1659
+ class st {
1660
1660
  /**
1661
1661
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
1662
1662
  *
@@ -1674,9 +1674,9 @@ class et {
1674
1674
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
1675
1675
  }
1676
1676
  }
1677
- class Q extends v {
1677
+ class V extends v {
1678
1678
  }
1679
- class Ne extends v {
1679
+ class Ue extends v {
1680
1680
  /**
1681
1681
  * Инициализирует экземпляр класса {@link Warehouse}.
1682
1682
  *
@@ -1705,10 +1705,10 @@ class Ne extends v {
1705
1705
  * Координаты склада.
1706
1706
  */
1707
1707
  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);
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 V(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new st(e == null ? void 0 : e.coordinates);
1709
1709
  }
1710
1710
  }
1711
- class ss {
1711
+ class os {
1712
1712
  /**
1713
1713
  * Инициализирует экземпляр класса {@link StockCount}.
1714
1714
  *
@@ -1723,7 +1723,7 @@ class ss {
1723
1723
  * Количество остатков товара на складе.
1724
1724
  */
1725
1725
  s(this, "count");
1726
- this.warehouse = new Ne(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1726
+ this.warehouse = new Ue(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1727
1727
  }
1728
1728
  }
1729
1729
  class j extends O {
@@ -1753,7 +1753,7 @@ class j extends O {
1753
1753
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
1754
1754
  }
1755
1755
  }
1756
- class Ur extends O {
1756
+ class Hr extends O {
1757
1757
  /**
1758
1758
  * Инициализирует экземпляр класса {@link ProductUnit}.
1759
1759
  *
@@ -1780,7 +1780,7 @@ class Ur extends O {
1780
1780
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1781
1781
  }
1782
1782
  }
1783
- class xe extends O {
1783
+ class _e extends O {
1784
1784
  /**
1785
1785
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1786
1786
  *
@@ -1795,7 +1795,7 @@ class xe extends O {
1795
1795
  this.code = (e == null ? void 0 : e.code) ?? "";
1796
1796
  }
1797
1797
  }
1798
- class rt extends xe {
1798
+ class it extends _e {
1799
1799
  /**
1800
1800
  * Инициализирует экземпляр класса {@link CatalogableItem}.
1801
1801
  *
@@ -1814,7 +1814,7 @@ class rt extends xe {
1814
1814
  this.slug = (e == null ? void 0 : e.slug) ?? "";
1815
1815
  }
1816
1816
  }
1817
- class is extends rt {
1817
+ class cs extends it {
1818
1818
  /**
1819
1819
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
1820
1820
  *
@@ -1829,7 +1829,7 @@ class is extends rt {
1829
1829
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
1830
1830
  }
1831
1831
  }
1832
- class ns {
1832
+ class ls {
1833
1833
  /**
1834
1834
  * Инициализирует экземпляр класса {@link Image}.
1835
1835
  *
@@ -1852,7 +1852,7 @@ class ns {
1852
1852
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
1853
1853
  }
1854
1854
  }
1855
- class ar extends rt {
1855
+ class wr extends it {
1856
1856
  /**
1857
1857
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
1858
1858
  *
@@ -1867,7 +1867,7 @@ class ar extends rt {
1867
1867
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
1868
1868
  }
1869
1869
  }
1870
- class N extends is {
1870
+ class N extends cs {
1871
1871
  /**
1872
1872
  * Инициализирует экземпляр класса {@link Product}.
1873
1873
  *
@@ -1944,9 +1944,9 @@ class N extends is {
1944
1944
  * Список коэффициентов цен на продукт.
1945
1945
  */
1946
1946
  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";
1947
+ 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 = D(e == null ? void 0 : e.costDate) ? R(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new os(p))) ?? [], this.type = "product";
1948
1948
  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);
1949
+ 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 ls(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 Sr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1950
1950
  }
1951
1951
  /**
1952
1952
  * Возвращает признак, что это измеряемый товар.
@@ -1967,7 +1967,7 @@ class N extends is {
1967
1967
  return this.retailCostRub ?? this.costRub;
1968
1968
  }
1969
1969
  }
1970
- var dr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(dr || {});
1970
+ var $r = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))($r || {});
1971
1971
  class J extends N {
1972
1972
  /**
1973
1973
  * Инициализирует экземпляр класса {@link ClientProduct}.
@@ -2004,10 +2004,10 @@ class J extends N {
2004
2004
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
2005
2005
  */
2006
2006
  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;
2007
+ 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 ns(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
2008
  }
2009
2009
  }
2010
- class be extends ar {
2010
+ class Pe extends wr {
2011
2011
  /**
2012
2012
  * Инициализирует экземпляр класса {@link BaseCategory}.
2013
2013
  *
@@ -2031,10 +2031,10 @@ class be extends ar {
2031
2031
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
2032
2032
  */
2033
2033
  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;
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]) => [Ut(t), i])) : void 0;
2035
2035
  }
2036
2036
  }
2037
- class tt extends G {
2037
+ class nt extends G {
2038
2038
  /**
2039
2039
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2040
2040
  *
@@ -2110,10 +2110,10 @@ class tt extends G {
2110
2110
  * @inheritDoc
2111
2111
  */
2112
2112
  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;
2113
+ this.product = new J(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new Pe(), 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
2114
  }
2115
2115
  }
2116
- let st = class extends tt {
2116
+ let kr = class extends nt {
2117
2117
  /**
2118
2118
  * Инициализирует экземпляр класса {@link OrderItem}.
2119
2119
  *
@@ -2157,7 +2157,7 @@ let st = class extends tt {
2157
2157
  * @inheritDoc
2158
2158
  */
2159
2159
  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);
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 = z(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new j(e.currency);
2161
2161
  }
2162
2162
  };
2163
2163
  class $e {
@@ -2179,10 +2179,10 @@ class $e {
2179
2179
  * @inheritDoc
2180
2180
  */
2181
2181
  s(this, "directionsSum");
2182
- this.items = r.items.map((e) => new st(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2182
+ this.items = r.items.map((e) => new kr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2183
2183
  }
2184
2184
  }
2185
- class Ys extends h {
2185
+ class Js extends h {
2186
2186
  /**
2187
2187
  * Возвращает содержимое корзины указанного клиента.
2188
2188
  *
@@ -2296,8 +2296,8 @@ class Ys extends h {
2296
2296
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
2297
2297
  }
2298
2298
  }
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 {
2299
+ var us = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(us || {}), ps = /* @__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))(ps || {}), ot = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(ot || {});
2300
+ class E extends Pe {
2301
2301
  /**
2302
2302
  * Инициализирует экземпляр класса {@link Category}.
2303
2303
  *
@@ -2314,10 +2314,10 @@ class z extends be {
2314
2314
  * Список продуктов категории.
2315
2315
  */
2316
2316
  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));
2317
+ 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
2318
  }
2319
2319
  }
2320
- class nt {
2320
+ class ct {
2321
2321
  /**
2322
2322
  * Инициализирует экземпляр класса {@link ContactLinks}.
2323
2323
  *
@@ -2337,7 +2337,7 @@ class nt {
2337
2337
  }
2338
2338
  class F extends v {
2339
2339
  }
2340
- class Sr extends O {
2340
+ class Lr extends O {
2341
2341
  /**
2342
2342
  * Инициализирует экземпляр класса {@link ManagerCommon}.
2343
2343
  *
@@ -2365,12 +2365,12 @@ class Sr extends O {
2365
2365
  * @inheritDoc
2366
2366
  */
2367
2367
  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;
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 ct(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2369
2369
  }
2370
2370
  }
2371
- class $r extends v {
2371
+ class Or extends v {
2372
2372
  }
2373
- class ot extends O {
2373
+ class lt extends O {
2374
2374
  /**
2375
2375
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
2376
2376
  *
@@ -2408,7 +2408,7 @@ class Ye extends O {
2408
2408
  this.abbr = (e == null ? void 0 : e.abbr) ?? "";
2409
2409
  }
2410
2410
  }
2411
- class V extends Sr {
2411
+ class K extends Lr {
2412
2412
  /**
2413
2413
  * Инициализирует экземпляр класса {@link Manager}.
2414
2414
  *
@@ -2465,10 +2465,10 @@ class V extends Sr {
2465
2465
  * Дата и время последнего входа в систему.
2466
2466
  */
2467
2467
  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;
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 = D(e == null ? void 0 : e.createdAt) ? R(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 Ye(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new K(c)), this.lastLoginAt = D(e == null ? void 0 : e.lastLoginAt) ? R(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2469
2469
  }
2470
2470
  }
2471
- class ls extends be {
2471
+ class hs extends Pe {
2472
2472
  /**
2473
2473
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
2474
2474
  *
@@ -2496,10 +2496,10 @@ class ls extends be {
2496
2496
  * Данные о менеджере за которым закреплена категория.
2497
2497
  */
2498
2498
  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;
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 K(e.manager) : void 0;
2500
2500
  }
2501
2501
  }
2502
- class We extends ls {
2502
+ class ze extends hs {
2503
2503
  /**
2504
2504
  * Инициализирует экземпляр класса {@link ClientCategory}.
2505
2505
  *
@@ -2516,10 +2516,10 @@ class We extends ls {
2516
2516
  * Список продуктов категории.
2517
2517
  */
2518
2518
  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));
2519
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new ze(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
2520
2520
  }
2521
2521
  }
2522
- class ct {
2522
+ class ut {
2523
2523
  /**
2524
2524
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
2525
2525
  *
@@ -2537,7 +2537,7 @@ class ct {
2537
2537
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Ge(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2538
2538
  }
2539
2539
  }
2540
- class nr extends ct {
2540
+ class or extends ut {
2541
2541
  /**
2542
2542
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2543
2543
  *
@@ -2549,10 +2549,10 @@ class nr extends ct {
2549
2549
  * Базовые данные о продукте.
2550
2550
  */
2551
2551
  s(this, "productCategory");
2552
- this.productCategory = new be(e == null ? void 0 : e.productCategory);
2552
+ this.productCategory = new Pe(e == null ? void 0 : e.productCategory);
2553
2553
  }
2554
2554
  }
2555
- class kr extends O {
2555
+ class Ir extends O {
2556
2556
  /**
2557
2557
  * Инициализирует экземпляр класса {@link Curator}.
2558
2558
  *
@@ -2572,12 +2572,12 @@ class kr extends O {
2572
2572
  * @inheritDoc
2573
2573
  */
2574
2574
  s(this, "curatedDirection");
2575
- this.photo = e.photo, this.contacts = new nt(e.contacts), this.curatedDirection = new $r(e.curatedDirection);
2575
+ this.photo = e.photo, this.contacts = new ct(e.contacts), this.curatedDirection = new Or(e.curatedDirection);
2576
2576
  }
2577
2577
  }
2578
2578
  class ae extends v {
2579
2579
  }
2580
- class ve extends v {
2580
+ class we extends v {
2581
2581
  /**
2582
2582
  * Инициализирует экземпляр класса {@link Region}.
2583
2583
  *
@@ -2592,7 +2592,7 @@ class ve extends v {
2592
2592
  e && (this.country = new ae(e.country));
2593
2593
  }
2594
2594
  }
2595
- class we extends v {
2595
+ class ve extends v {
2596
2596
  /**
2597
2597
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
2598
2598
  *
@@ -2603,11 +2603,11 @@ class we extends v {
2603
2603
  /**
2604
2604
  * Данные о регионе, в котором расположен город.
2605
2605
  */
2606
- s(this, "region", new ve());
2607
- e && (this.region = new ve(e.region));
2606
+ s(this, "region", new we());
2607
+ e && (this.region = new we(e.region));
2608
2608
  }
2609
2609
  }
2610
- class lt extends O {
2610
+ class pt extends O {
2611
2611
  /**
2612
2612
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2613
2613
  *
@@ -2643,10 +2643,10 @@ class lt extends O {
2643
2643
  * Признак активности учетной записи пользователя.
2644
2644
  */
2645
2645
  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;
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 = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = D(e == null ? void 0 : e.lastLoginAt) ? R(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2647
2647
  }
2648
2648
  }
2649
- class se extends lt {
2649
+ class ne extends pt {
2650
2650
  /**
2651
2651
  * Инициализирует экземпляр класса {@link Client}.
2652
2652
  *
@@ -2692,7 +2692,7 @@ class se extends lt {
2692
2692
  * @inheritDoc
2693
2693
  */
2694
2694
  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;
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 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
2696
  }
2697
2697
  }
2698
2698
  class ke extends G {
@@ -2719,10 +2719,10 @@ class ke extends G {
2719
2719
  * Данные шаблона прайс-листа.
2720
2720
  */
2721
2721
  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);
2722
+ this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(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
2723
  }
2724
2724
  }
2725
- class or extends ct {
2725
+ class cr extends ut {
2726
2726
  /**
2727
2727
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2728
2728
  *
@@ -2737,9 +2737,9 @@ class or extends ct {
2737
2737
  this.product = new N(e == null ? void 0 : e.product);
2738
2738
  }
2739
2739
  }
2740
- class ut extends v {
2740
+ class ht extends v {
2741
2741
  }
2742
- class ge extends O {
2742
+ class fe extends O {
2743
2743
  /**
2744
2744
  * Инициализирует экземпляр класса {@link Property}.
2745
2745
  *
@@ -2763,10 +2763,10 @@ class ge extends O {
2763
2763
  * Признак того, что по свойству может производиться фильтрация в каталоге.
2764
2764
  */
2765
2765
  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;
2766
+ 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
2767
  }
2768
2768
  }
2769
- class le {
2769
+ class pe {
2770
2770
  /**
2771
2771
  * Инициализирует экземпляр класса {@link PropertyValue}.
2772
2772
  *
@@ -2782,10 +2782,10 @@ class le {
2782
2782
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2783
2783
  */
2784
2784
  s(this, "value");
2785
- this.property = new ge(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2785
+ this.property = new fe(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2786
2786
  }
2787
2787
  }
2788
- class zs {
2788
+ class Ks {
2789
2789
  /**
2790
2790
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2791
2791
  *
@@ -2811,12 +2811,12 @@ class zs {
2811
2811
  /**
2812
2812
  * Период создания.
2813
2813
  */
2814
- s(this, "createdAt", new A());
2814
+ s(this, "createdAt", new T());
2815
2815
  /**
2816
2816
  * Период изменения.
2817
2817
  */
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);
2818
+ s(this, "updatedAt", new T());
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 T(r == null ? void 0 : r.createdAt), this.updatedAt = new T(r == null ? void 0 : r.updatedAt);
2820
2820
  }
2821
2821
  /**
2822
2822
  * Выполняет сброс указанного фильтра в значение по умолчанию.
@@ -2850,7 +2850,7 @@ class zs {
2850
2850
  return Object.keys(this).forEach((c) => {
2851
2851
  const u = this[c];
2852
2852
  // eslint-disable-next-line prettier/prettier
2853
- T(u) || C(u) && u.trim().length === 0 || Rr(u.isNewRec) && u.isNewRec() || (r[c] = u);
2853
+ a(u) || D(u) && u.trim().length === 0 || br(u.isNewRec) && u.isNewRec() || (r[c] = u);
2854
2854
  }), !((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
2855
  }
2856
2856
  }
@@ -2889,7 +2889,7 @@ class Le extends O {
2889
2889
  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
2890
  }
2891
2891
  }
2892
- class Fr {
2892
+ class Br {
2893
2893
  /**
2894
2894
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2895
2895
  *
@@ -2908,10 +2908,10 @@ class Fr {
2908
2908
  * Минимальный коэффициент цены.
2909
2909
  */
2910
2910
  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);
2911
+ this.role = new Le(r == null ? void 0 : r.role), this.category = new Pe(r == null ? void 0 : r.category), this.minCoefficient = new Ge(r == null ? void 0 : r.minCoefficient);
2912
2912
  }
2913
2913
  }
2914
- class us {
2914
+ class gs {
2915
2915
  /**
2916
2916
  * Инициализирует экземпляр класса {@link FilterSettings}.
2917
2917
  *
@@ -2944,7 +2944,7 @@ class us {
2944
2944
  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
2945
  }
2946
2946
  }
2947
- class Mr {
2947
+ class Wr {
2948
2948
  /**
2949
2949
  * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
2950
2950
  *
@@ -2963,10 +2963,10 @@ class Mr {
2963
2963
  * @inheritDoc
2964
2964
  */
2965
2965
  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);
2966
+ this.category = new Pe(r == null ? void 0 : r.category), this.property = new fe(r == null ? void 0 : r.property), this.settings = new gs(r == null ? void 0 : r.settings);
2967
2967
  }
2968
2968
  }
2969
- class ps {
2969
+ class fs {
2970
2970
  /**
2971
2971
  * Инициализирует экземпляр класса {@link CategoryFilterValue}.
2972
2972
  *
@@ -2984,7 +2984,7 @@ class ps {
2984
2984
  this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
2985
2985
  }
2986
2986
  }
2987
- class hs {
2987
+ class ms {
2988
2988
  /**
2989
2989
  * Инициализирует экземпляр класса {@link CategoryFilter}.
2990
2990
  *
@@ -3027,10 +3027,10 @@ class hs {
3027
3027
  */
3028
3028
  s(this, "max");
3029
3029
  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;
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) ?? 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 fs(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3031
3031
  }
3032
3032
  }
3033
- class Es extends h {
3033
+ class Xs extends h {
3034
3034
  /**
3035
3035
  * Возвращает данные о результатах поиска категорий и товаров.
3036
3036
  *
@@ -3061,7 +3061,7 @@ class Es extends h {
3061
3061
  return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
3062
3062
  }
3063
3063
  }
3064
- class Qs extends h {
3064
+ class Zs extends h {
3065
3065
  /**
3066
3066
  * Импортирует цены клиента из CSV файла.
3067
3067
  *
@@ -3260,7 +3260,7 @@ class Qs extends h {
3260
3260
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3261
3261
  }
3262
3262
  }
3263
- class Js extends h {
3263
+ class ei extends h {
3264
3264
  /**
3265
3265
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3266
3266
  *
@@ -3348,7 +3348,7 @@ class Js extends h {
3348
3348
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
3349
3349
  }
3350
3350
  }
3351
- class Vs extends h {
3351
+ class ri extends h {
3352
3352
  /**
3353
3353
  * Возвращает список данных о корневых категориях.
3354
3354
  *
@@ -3357,7 +3357,7 @@ class Vs extends h {
3357
3357
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3358
3358
  */
3359
3359
  getRootCategoriesList(r = !1) {
3360
- return this.getTypedList(z, "/internal/catalog/categories", {
3360
+ return this.getTypedList(E, "/internal/catalog/categories", {
3361
3361
  showHidden: r
3362
3362
  });
3363
3363
  }
@@ -3377,7 +3377,7 @@ class Vs extends h {
3377
3377
  showHidden: e,
3378
3378
  withNestedCategories: t
3379
3379
  },
3380
- (i) => new z(i.data)
3380
+ (i) => new E(i.data)
3381
3381
  );
3382
3382
  }
3383
3383
  /**
@@ -3386,7 +3386,7 @@ class Vs extends h {
3386
3386
  * @param categoryID Идентификатор категории продуктов.
3387
3387
  */
3388
3388
  getPublicCategoryData(r) {
3389
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new z(e.data));
3389
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new E(e.data));
3390
3390
  }
3391
3391
  /**
3392
3392
  * Возвращает список продуктов категории.
@@ -3417,7 +3417,7 @@ class Vs extends h {
3417
3417
  getCategoryProductsCoefficients(r) {
3418
3418
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
3419
3419
  const { data: t } = e;
3420
- return Ut(t, (i) => i.map((o) => new Ar(o))), t;
3420
+ return Mt(t, (i) => i.map((o) => new Sr(o))), t;
3421
3421
  });
3422
3422
  }
3423
3423
  /**
@@ -3429,14 +3429,14 @@ class Vs extends h {
3429
3429
  publicSimpleSearch(r, e = 10) {
3430
3430
  return new Promise((t, i) => {
3431
3431
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3432
- t(o.categories.map((c) => new z(c)));
3432
+ t(o.categories.map((c) => new E(c)));
3433
3433
  }).catch((o) => {
3434
3434
  i(o);
3435
3435
  });
3436
3436
  });
3437
3437
  }
3438
3438
  }
3439
- class Ks extends Y {
3439
+ class ti extends Y {
3440
3440
  /**
3441
3441
  * Возвращает данные об указанном продукте.
3442
3442
  *
@@ -3467,7 +3467,7 @@ class Ks extends Y {
3467
3467
  return this.get(
3468
3468
  `/internal/catalog/products/${r}/coefficients`,
3469
3469
  {},
3470
- (e) => De(e.data, (t) => new Ar(t))
3470
+ (e) => De(e.data, (t) => new Sr(t))
3471
3471
  );
3472
3472
  }
3473
3473
  /**
@@ -3502,7 +3502,7 @@ class Ks extends Y {
3502
3502
  });
3503
3503
  }
3504
3504
  }
3505
- class Xs extends h {
3505
+ class si extends h {
3506
3506
  /**
3507
3507
  * Возвращает список данных о корневых категориях указанного клиента.
3508
3508
  *
@@ -3512,7 +3512,7 @@ class Xs extends h {
3512
3512
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3513
3513
  */
3514
3514
  getRootCategoriesList(r, e = !1) {
3515
- return this.getTypedList(We, "/internal/catalog/categories", {
3515
+ return this.getTypedList(ze, "/internal/catalog/categories", {
3516
3516
  clientId: r,
3517
3517
  showHidden: e
3518
3518
  });
@@ -3535,7 +3535,7 @@ class Xs extends h {
3535
3535
  showHidden: t,
3536
3536
  withNestedCategories: i
3537
3537
  },
3538
- (o) => new We(o.data)
3538
+ (o) => new ze(o.data)
3539
3539
  );
3540
3540
  }
3541
3541
  /**
@@ -3560,7 +3560,7 @@ class Xs extends h {
3560
3560
  );
3561
3561
  }
3562
3562
  }
3563
- class Zs extends Y {
3563
+ class ii extends Y {
3564
3564
  /**
3565
3565
  * Возвращает данные об указанном продукте для указанного клиента.
3566
3566
  *
@@ -3599,7 +3599,7 @@ class Zs extends Y {
3599
3599
  });
3600
3600
  }
3601
3601
  }
3602
- class ei extends Y {
3602
+ class ni extends Y {
3603
3603
  /**
3604
3604
  * Возвращает список шаблонов прайс-листа.
3605
3605
  *
@@ -3610,7 +3610,7 @@ class ei extends Y {
3610
3610
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
3611
3611
  */
3612
3612
  getTemplateList(r, e, t) {
3613
- return this.getTypedPaginated(he, "/internal/price/templates", r, e, t);
3613
+ return this.getTypedPaginated(ge, "/internal/price/templates", r, e, t);
3614
3614
  }
3615
3615
  /**
3616
3616
  * Создание нового шаблона прайс-листа.
@@ -3622,7 +3622,7 @@ class ei extends Y {
3622
3622
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
3623
3623
  */
3624
3624
  createTemplate(r, e = {}) {
3625
- return this.post("/internal/price/templates", r, (t) => new he(t.data), e);
3625
+ return this.post("/internal/price/templates", r, (t) => new ge(t.data), e);
3626
3626
  }
3627
3627
  /**
3628
3628
  * Возвращает данные о шаблоне прайс-листа.
@@ -3632,7 +3632,7 @@ class ei extends Y {
3632
3632
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
3633
3633
  */
3634
3634
  getTemplate(r) {
3635
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new he(e.data));
3635
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new ge(e.data));
3636
3636
  }
3637
3637
  /**
3638
3638
  * Изменяет данные о шаблоне прайс-листа.
@@ -3645,7 +3645,7 @@ class ei extends Y {
3645
3645
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
3646
3646
  */
3647
3647
  updateTemplate(r, e, t = {}) {
3648
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new he(i.data), t);
3648
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new ge(i.data), t);
3649
3649
  }
3650
3650
  /**
3651
3651
  * Удаляет данные о шаблоне прайс-листа.
@@ -3665,7 +3665,7 @@ class ei extends Y {
3665
3665
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get_list
3666
3666
  */
3667
3667
  getProductTemplatePrices(r) {
3668
- return this.getTypedList(or, `/internal/price/templates/${r}/products`);
3668
+ return this.getTypedList(cr, `/internal/price/templates/${r}/products`);
3669
3669
  }
3670
3670
  /**
3671
3671
  * Возвращает данные о цене на продукт в шаблоне прайс-листа.
@@ -3676,7 +3676,7 @@ class ei extends Y {
3676
3676
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
3677
3677
  */
3678
3678
  getProductTemplatePrice(r, e) {
3679
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new or(t.data));
3679
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new cr(t.data));
3680
3680
  }
3681
3681
  /**
3682
3682
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3695,7 +3695,7 @@ class ei extends Y {
3695
3695
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3696
3696
  increase_percent: t.value
3697
3697
  },
3698
- (o) => new or(o.data)
3698
+ (o) => new cr(o.data)
3699
3699
  );
3700
3700
  }
3701
3701
  /**
@@ -3717,7 +3717,7 @@ class ei extends Y {
3717
3717
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_get_list
3718
3718
  */
3719
3719
  getCategoryTemplatePrices(r) {
3720
- return this.getTypedList(nr, `/internal/price/templates/${r}/categories`);
3720
+ return this.getTypedList(or, `/internal/price/templates/${r}/categories`);
3721
3721
  }
3722
3722
  /**
3723
3723
  * Возвращает данные о цене на категорию продуктов в шаблоне прайс-листа.
@@ -3731,7 +3731,7 @@ class ei extends Y {
3731
3731
  return this.get(
3732
3732
  `/internal/price/templates/${r}/categories/${e}`,
3733
3733
  {},
3734
- (t) => new nr(t.data)
3734
+ (t) => new or(t.data)
3735
3735
  );
3736
3736
  }
3737
3737
  /**
@@ -3757,7 +3757,7 @@ class ei extends Y {
3757
3757
  },
3758
3758
  params: i ? { recursively: !0 } : {}
3759
3759
  },
3760
- (c) => new nr(c.data)
3760
+ (c) => new or(c.data)
3761
3761
  );
3762
3762
  }
3763
3763
  /**
@@ -3788,7 +3788,7 @@ class ei extends Y {
3788
3788
  return this.getTypedList(ke, `/internal/price/templates/${r}/clients`);
3789
3789
  }
3790
3790
  }
3791
- class ri extends h {
3791
+ class oi extends h {
3792
3792
  /**
3793
3793
  * Возвращает список ролей ценообразования.
3794
3794
  *
@@ -3846,7 +3846,7 @@ class ri extends h {
3846
3846
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
3847
3847
  */
3848
3848
  getCategoryRules(r) {
3849
- return this.getTypedList(Fr, `/internal/price/roles/rules/categories/${r}`);
3849
+ return this.getTypedList(Br, `/internal/price/roles/rules/categories/${r}`);
3850
3850
  }
3851
3851
  /**
3852
3852
  * Обновляет правила для роли ценообразования по указанной категории.
@@ -3860,11 +3860,11 @@ class ri extends h {
3860
3860
  return this.patch(
3861
3861
  `/internal/price/roles/rules/categories/${r}`,
3862
3862
  e,
3863
- (t) => _.instanceListInitializer(Fr, t.data)
3863
+ (t) => _.instanceListInitializer(Br, t.data)
3864
3864
  );
3865
3865
  }
3866
3866
  }
3867
- class ti extends Y {
3867
+ class ci extends Y {
3868
3868
  /**
3869
3869
  * Возвращает пагинированный список свойств.
3870
3870
  *
@@ -3875,7 +3875,7 @@ class ti extends Y {
3875
3875
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get_list
3876
3876
  */
3877
3877
  getProperties(r, e, t) {
3878
- return this.getTypedPaginated(ge, "/internal/catalog/properties", r, e, t);
3878
+ return this.getTypedPaginated(fe, "/internal/catalog/properties", r, e, t);
3879
3879
  }
3880
3880
  /**
3881
3881
  * Создает новое свойство.
@@ -3891,7 +3891,7 @@ class ti extends Y {
3891
3891
  ...t,
3892
3892
  type: e
3893
3893
  },
3894
- (i) => new ge(i.data)
3894
+ (i) => new fe(i.data)
3895
3895
  );
3896
3896
  }
3897
3897
  /**
@@ -3901,7 +3901,7 @@ class ti extends Y {
3901
3901
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3902
3902
  */
3903
3903
  getProperty(r) {
3904
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ge(e.data));
3904
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new fe(e.data));
3905
3905
  }
3906
3906
  /**
3907
3907
  * Обновляет существующее свойство.
@@ -3918,7 +3918,7 @@ class ti extends Y {
3918
3918
  ...i,
3919
3919
  type: t
3920
3920
  },
3921
- (o) => new ge(o.data)
3921
+ (o) => new fe(o.data)
3922
3922
  );
3923
3923
  }
3924
3924
  /**
@@ -3937,7 +3937,7 @@ class ti extends Y {
3937
3937
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3938
3938
  */
3939
3939
  getProductProperties(r) {
3940
- return this.getTypedList(le, `/internal/catalog/products/${r}/properties`);
3940
+ return this.getTypedList(pe, `/internal/catalog/products/${r}/properties`);
3941
3941
  }
3942
3942
  /**
3943
3943
  * Возвращает значение свойства продукта.
@@ -3947,7 +3947,7 @@ class ti extends Y {
3947
3947
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3948
3948
  */
3949
3949
  getProductProperty(r, e) {
3950
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new le(t.data));
3950
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new pe(t.data));
3951
3951
  }
3952
3952
  /**
3953
3953
  * Обновляет значение свойства продукта.
@@ -3958,7 +3958,7 @@ class ti extends Y {
3958
3958
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3959
3959
  */
3960
3960
  updateProductProperty(r, e, t) {
3961
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new le(i.data));
3961
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new pe(i.data));
3962
3962
  }
3963
3963
  /**
3964
3964
  * Удаляет значение свойства продукта.
@@ -4083,7 +4083,7 @@ class ti extends Y {
4083
4083
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
4084
4084
  */
4085
4085
  getCategoryProperties(r) {
4086
- return this.getTypedList(le, `/internal/catalog/categories/${r}/properties`);
4086
+ return this.getTypedList(pe, `/internal/catalog/categories/${r}/properties`);
4087
4087
  }
4088
4088
  /**
4089
4089
  * Возвращает значение свойства категории.
@@ -4093,7 +4093,7 @@ class ti extends Y {
4093
4093
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
4094
4094
  */
4095
4095
  getCategoryProperty(r, e) {
4096
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new le(t.data));
4096
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new pe(t.data));
4097
4097
  }
4098
4098
  /**
4099
4099
  * Обновляет значение свойства категории.
@@ -4104,7 +4104,7 @@ class ti extends Y {
4104
4104
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
4105
4105
  */
4106
4106
  updateCategoryProperty(r, e, t) {
4107
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new le(i.data));
4107
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new pe(i.data));
4108
4108
  }
4109
4109
  /**
4110
4110
  * Удаляет значение свойства категории.
@@ -4243,7 +4243,7 @@ class ti extends Y {
4243
4243
  return this.get(
4244
4244
  `/internal/catalog/categories/${r}/filters`,
4245
4245
  { recursively: e },
4246
- (t) => t.data.map((i) => new hs(i))
4246
+ (t) => t.data.map((i) => new ms(i))
4247
4247
  );
4248
4248
  }
4249
4249
  /**
@@ -4253,7 +4253,7 @@ class ti extends Y {
4253
4253
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
4254
4254
  */
4255
4255
  getCategoryFilterSettings(r) {
4256
- return this.getTypedList(Mr, `/internal/catalog/categories/${r}/filter-settings`);
4256
+ return this.getTypedList(Wr, `/internal/catalog/categories/${r}/filter-settings`);
4257
4257
  }
4258
4258
  /**
4259
4259
  * Сохраняет настройки фильтра в категории.
@@ -4267,7 +4267,7 @@ class ti extends Y {
4267
4267
  return this.patch(
4268
4268
  `/internal/catalog/categories/${r}/filter-settings/${e}`,
4269
4269
  t,
4270
- (i) => new Mr(i.data)
4270
+ (i) => new Wr(i.data)
4271
4271
  );
4272
4272
  }
4273
4273
  /**
@@ -4281,7 +4281,7 @@ class ti extends Y {
4281
4281
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
4282
4282
  }
4283
4283
  }
4284
- class si extends h {
4284
+ class li extends h {
4285
4285
  /**
4286
4286
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4287
4287
  *
@@ -4291,7 +4291,7 @@ class si extends h {
4291
4291
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
4292
4292
  */
4293
4293
  getRootCategoriesList(r, e = !1) {
4294
- return this.getTypedList(z, "/internal/catalog/categories", {
4294
+ return this.getTypedList(E, "/internal/catalog/categories", {
4295
4295
  priceTemplateId: r,
4296
4296
  showHidden: e
4297
4297
  });
@@ -4314,7 +4314,7 @@ class si extends h {
4314
4314
  showHidden: t,
4315
4315
  withNestedCategories: i
4316
4316
  },
4317
- (o) => new z(o.data)
4317
+ (o) => new E(o.data)
4318
4318
  );
4319
4319
  }
4320
4320
  /**
@@ -4339,7 +4339,7 @@ class si extends h {
4339
4339
  );
4340
4340
  }
4341
4341
  }
4342
- function Hr(n, r, e) {
4342
+ function zr(n, r, e) {
4343
4343
  let t;
4344
4344
  return n.some((i) => {
4345
4345
  if (i.type === e && i.id === r)
@@ -4348,28 +4348,28 @@ function Hr(n, r, e) {
4348
4348
  return !1;
4349
4349
  const o = i;
4350
4350
  if (o.products && o.products.length > 0) {
4351
- const c = Hr(o.products, r, e);
4351
+ const c = zr(o.products, r, e);
4352
4352
  if (c)
4353
4353
  return t = c, !0;
4354
4354
  }
4355
4355
  if (o.categories && o.categories.length > 0) {
4356
- const c = Hr(o.categories, r, e);
4356
+ const c = zr(o.categories, r, e);
4357
4357
  if (c)
4358
4358
  return t = c, !0;
4359
4359
  }
4360
4360
  return !1;
4361
4361
  }), t;
4362
4362
  }
4363
- function Br(n) {
4363
+ function jr(n) {
4364
4364
  const r = [];
4365
4365
  return n.forEach((e) => {
4366
4366
  if (r.push(e), e.type === "category") {
4367
4367
  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));
4368
+ t.products && t.products.length > 0 && r.push(...jr(t.products)), t.categories && t.categories.length > 0 && r.push(...jr(t.categories));
4369
4369
  }
4370
4370
  }), r;
4371
4371
  }
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 || {});
4372
+ var ys = /* @__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))(ys || {}), Q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(Q || {});
4373
4373
  class vr extends G {
4374
4374
  /**
4375
4375
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -4401,7 +4401,7 @@ class vr extends G {
4401
4401
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new j(e.currency));
4402
4402
  }
4403
4403
  }
4404
- class wr extends O {
4404
+ class Cr extends O {
4405
4405
  /**
4406
4406
  * Инициализирует экземпляр класса {@link Contact}.
4407
4407
  *
@@ -4420,7 +4420,7 @@ class wr extends O {
4420
4420
  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
4421
  }
4422
4422
  }
4423
- class ee extends wr {
4423
+ class te extends Cr {
4424
4424
  /**
4425
4425
  * Инициализирует экземпляр класса {@link ContactPerson}.
4426
4426
  *
@@ -4452,25 +4452,25 @@ class ee extends wr {
4452
4452
  * Дата и время последнего удаления.
4453
4453
  */
4454
4454
  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;
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 = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4456
4456
  }
4457
4457
  }
4458
- class re extends v {
4458
+ class se extends v {
4459
4459
  /**
4460
4460
  * Возвращает сгенерированную запись-описание физического лица.
4461
4461
  */
4462
4462
  static generatePersonItem() {
4463
- return new re({
4463
+ return new se({
4464
4464
  id: 1,
4465
4465
  guid: "",
4466
- slug: E.Person,
4466
+ slug: Q.Person,
4467
4467
  name: ""
4468
4468
  });
4469
4469
  }
4470
4470
  }
4471
4471
  class Ce extends v {
4472
4472
  }
4473
- class pt extends Xr {
4473
+ class gt extends rt {
4474
4474
  /**
4475
4475
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
4476
4476
  *
@@ -4482,10 +4482,10 @@ class pt extends Xr {
4482
4482
  * Дата и время последнего удаления.
4483
4483
  */
4484
4484
  s(this, "deletedAt");
4485
- this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4485
+ this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4486
4486
  }
4487
4487
  }
4488
- class ht extends pt {
4488
+ class ft extends gt {
4489
4489
  /**
4490
4490
  * Инициализирует экземпляр класса {@link ContragentBase}.
4491
4491
  *
@@ -4497,7 +4497,7 @@ class ht extends pt {
4497
4497
  /**
4498
4498
  * Данные об организационно-правовой форме.
4499
4499
  */
4500
- s(this, "opf", re.generatePersonItem());
4500
+ s(this, "opf", se.generatePersonItem());
4501
4501
  /**
4502
4502
  * Группа партнеров (направление деятельности).
4503
4503
  */
@@ -4531,10 +4531,10 @@ class ht extends pt {
4531
4531
  */
4532
4532
  s(this, "updater");
4533
4533
  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) {
4534
+ if (this.opf = new se(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(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
4535
  const t = [];
4536
4536
  e.contacts.forEach((i) => {
4537
- t.push(new ee(i));
4537
+ t.push(new te(i));
4538
4538
  }), this.contacts = t;
4539
4539
  }
4540
4540
  if (e.bankAccounts) {
@@ -4546,7 +4546,7 @@ class ht extends pt {
4546
4546
  }
4547
4547
  }
4548
4548
  }
4549
- class fs extends ht {
4549
+ class as extends ft {
4550
4550
  /**
4551
4551
  * Инициализирует экземпляр класса {@link ContragentPerson}.
4552
4552
  *
@@ -4556,7 +4556,7 @@ class fs extends ht {
4556
4556
  super(r);
4557
4557
  }
4558
4558
  }
4559
- class gt extends ht {
4559
+ class mt extends ft {
4560
4560
  /**
4561
4561
  * Инициализирует экземпляр класса {@link ContragentIc}.
4562
4562
  *
@@ -4599,7 +4599,7 @@ class gt extends ht {
4599
4599
  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
4600
  }
4601
4601
  }
4602
- class ft extends gt {
4602
+ class yt extends mt {
4603
4603
  /**
4604
4604
  * Инициализирует экземпляр класса {@link ContragentUlR}.
4605
4605
  *
@@ -4614,7 +4614,7 @@ class ft extends gt {
4614
4614
  e && (this.kpp = e.kpp ?? "");
4615
4615
  }
4616
4616
  }
4617
- class ms extends ft {
4617
+ class ws extends yt {
4618
4618
  /**
4619
4619
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
4620
4620
  *
@@ -4645,18 +4645,18 @@ class je {
4645
4645
  */
4646
4646
  static createInstance(r) {
4647
4647
  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);
4648
+ case Q.Ic:
4649
+ return new mt(r);
4650
+ case Q.UlR:
4651
+ return new yt(r);
4652
+ case Q.UlNr:
4653
+ return new ws(r);
4654
4654
  default:
4655
- return new fs(r);
4655
+ return new as(r);
4656
4656
  }
4657
4657
  }
4658
4658
  }
4659
- class Oe extends pt {
4659
+ class Ie extends gt {
4660
4660
  /**
4661
4661
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4662
4662
  *
@@ -4693,14 +4693,14 @@ class Oe extends pt {
4693
4693
  * Признак того, что указанный адрес является адресом транспортной компании.
4694
4694
  */
4695
4695
  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;
4696
+ 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
4697
  }
4698
4698
  }
4699
- class mt extends v {
4699
+ class at extends v {
4700
4700
  }
4701
- class yt extends v {
4701
+ class wt extends v {
4702
4702
  }
4703
- class Wr extends se {
4703
+ class Gr extends ne {
4704
4704
  /**
4705
4705
  * Инициализирует экземпляр класса {@link Client}.
4706
4706
  *
@@ -4750,10 +4750,10 @@ class Wr extends se {
4750
4750
  * @inheritDoc
4751
4751
  */
4752
4752
  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) ?? {};
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 te(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Ie(u))) ?? [], this.channelPrimaryInterest = new at(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new wt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new V(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ue(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4754
4754
  }
4755
4755
  }
4756
- class ii extends qe {
4756
+ class ui extends Ne {
4757
4757
  /**
4758
4758
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4759
4759
  *
@@ -4809,11 +4809,11 @@ class ii extends qe {
4809
4809
  /**
4810
4810
  * @inheritDoc
4811
4811
  */
4812
- s(this, "createdAt", new A());
4812
+ s(this, "createdAt", new T());
4813
4813
  /**
4814
4814
  * @inheritDoc
4815
4815
  */
4816
- s(this, "lastLoginDate", new A());
4816
+ s(this, "lastLoginDate", new T());
4817
4817
  /**
4818
4818
  * @inheritDoc
4819
4819
  */
@@ -4865,12 +4865,12 @@ class ii extends qe {
4865
4865
  /**
4866
4866
  * @inheritDoc
4867
4867
  */
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),
4868
+ s(this, "noOrdersPeriod", new T());
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((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 K(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 V(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 = {
4870
+ createdAt: new T((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4871
4871
  creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
4872
4872
  isApproved: (y = e == null ? void 0 : e.lastOrder) == null ? void 0 : y.isApproved
4873
- }, this.noOrdersPeriod = new A(e == null ? void 0 : e.noOrdersPeriod);
4873
+ }, this.noOrdersPeriod = new T(e == null ? void 0 : e.noOrdersPeriod);
4874
4874
  }
4875
4875
  /**
4876
4876
  * @inheritDoc
@@ -4881,7 +4881,7 @@ class ii extends qe {
4881
4881
  this.cities = [];
4882
4882
  break;
4883
4883
  case "region":
4884
- this.region = new ve();
4884
+ this.region = new we();
4885
4885
  break;
4886
4886
  case "isActive":
4887
4887
  this.isActive = !0;
@@ -4908,16 +4908,16 @@ class ii extends qe {
4908
4908
  this.salesDirections = [];
4909
4909
  break;
4910
4910
  case "contragentType":
4911
- this.contragentType = new re();
4911
+ this.contragentType = new se();
4912
4912
  break;
4913
4913
  case "preferredDeliveryType":
4914
- this.preferredDeliveryType = new Q();
4914
+ this.preferredDeliveryType = new V();
4915
4915
  break;
4916
4916
  case "partnerGroups":
4917
4917
  this.partnerGroups = [];
4918
4918
  break;
4919
4919
  case "contact":
4920
- this.contact = new wr();
4920
+ this.contact = new Cr();
4921
4921
  break;
4922
4922
  default:
4923
4923
  this[e] = void 0;
@@ -4934,7 +4934,7 @@ class ii extends qe {
4934
4934
  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
4935
  }
4936
4936
  }
4937
- class at extends G {
4937
+ class vt extends G {
4938
4938
  /**
4939
4939
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4940
4940
  *
@@ -4950,10 +4950,10 @@ class at extends G {
4950
4950
  * @inheritDoc
4951
4951
  */
4952
4952
  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);
4953
+ this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator);
4954
4954
  }
4955
4955
  }
4956
- class ys extends O {
4956
+ class vs extends O {
4957
4957
  /**
4958
4958
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4959
4959
  *
@@ -4990,10 +4990,10 @@ class ys extends O {
4990
4990
  * @inheritDoc
4991
4991
  */
4992
4992
  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;
4993
+ 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 V(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
4994
  }
4995
4995
  }
4996
- class cr extends G {
4996
+ class lr extends G {
4997
4997
  /**
4998
4998
  * Инициализирует экземпляр класса {@link ContactRelation}.
4999
4999
  *
@@ -5008,7 +5008,7 @@ class cr extends G {
5008
5008
  this.isPrimary = e.isPrimary;
5009
5009
  }
5010
5010
  }
5011
- class as extends ee {
5011
+ class Cs extends te {
5012
5012
  /**
5013
5013
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
5014
5014
  *
@@ -5033,10 +5033,10 @@ class as extends ee {
5033
5033
  */
5034
5034
  addresses: []
5035
5035
  });
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))));
5036
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new lr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new lr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new lr(t))));
5037
5037
  }
5038
5038
  }
5039
- class M extends Y {
5039
+ class H extends Y {
5040
5040
  /**
5041
5041
  * Преобразует данные о клиенте в данные требуемые для запроса.
5042
5042
  *
@@ -5068,7 +5068,7 @@ class M extends Y {
5068
5068
  let e;
5069
5069
  const t = r, i = r, o = r;
5070
5070
  switch (r.opf.slug) {
5071
- case E.Ic:
5071
+ case Q.Ic:
5072
5072
  e = {
5073
5073
  opf: t.opf.slug,
5074
5074
  name: t.name,
@@ -5085,7 +5085,7 @@ class M extends Y {
5085
5085
  actual_address: t.actualAddress
5086
5086
  };
5087
5087
  break;
5088
- case E.UlR:
5088
+ case Q.UlR:
5089
5089
  e = {
5090
5090
  opf: i.opf.slug,
5091
5091
  name: i.name,
@@ -5103,7 +5103,7 @@ class M extends Y {
5103
5103
  actual_address: i.actualAddress
5104
5104
  };
5105
5105
  break;
5106
- case E.UlNr:
5106
+ case Q.UlNr:
5107
5107
  e = {
5108
5108
  opf: o.opf.slug,
5109
5109
  name: o.name,
@@ -5175,7 +5175,7 @@ class M extends Y {
5175
5175
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
5176
5176
  */
5177
5177
  getClient(r) {
5178
- return this.get(`/internal/clients/${r}`, {}, (e) => new Wr(e.data));
5178
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Gr(e.data));
5179
5179
  }
5180
5180
  /**
5181
5181
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -5189,7 +5189,7 @@ class M extends Y {
5189
5189
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_list
5190
5190
  */
5191
5191
  getClientsList(r, e, t, i, o = void 0) {
5192
- return this.getTypedPaginated(se, "/internal/clients", r, e, t, i, void 0, o);
5192
+ return this.getTypedPaginated(ne, "/internal/clients", r, e, t, i, void 0, o);
5193
5193
  }
5194
5194
  /**
5195
5195
  * Выполняет поиск клиентов по терму в строке.
@@ -5211,7 +5211,7 @@ class M extends Y {
5211
5211
  return this.getClientsList({
5212
5212
  groupOp: "and",
5213
5213
  groups: [],
5214
- filters: [{ field: "phone", op: Tr.Contains, value: r }]
5214
+ filters: [{ field: "phone", op: dr.Contains, value: r }]
5215
5215
  });
5216
5216
  }
5217
5217
  /**
@@ -5226,7 +5226,7 @@ class M extends Y {
5226
5226
  return this.post(
5227
5227
  "/internal/clients/additional-data",
5228
5228
  { clients: t, requested_data_types: e },
5229
- (i) => _.instanceListInitializer(ys, i.data)
5229
+ (i) => _.instanceListInitializer(vs, i.data)
5230
5230
  );
5231
5231
  }
5232
5232
  /**
@@ -5236,7 +5236,7 @@ class M extends Y {
5236
5236
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_get_all_contact_list
5237
5237
  */
5238
5238
  getAllClientContacts(r) {
5239
- return this.getTypedList(as, `/internal/clients/${r}/contacts/all`);
5239
+ return this.getTypedList(Cs, `/internal/clients/${r}/contacts/all`);
5240
5240
  }
5241
5241
  /**
5242
5242
  * Создаёт нового клиента на основе указанных данных.
@@ -5246,7 +5246,7 @@ class M extends Y {
5246
5246
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
5247
5247
  */
5248
5248
  createClientCommonData(r, e = {}) {
5249
- return this.post("/internal/clients", M.transformClientDataToRequest(r), (t) => new Wr(t.data), e);
5249
+ return this.post("/internal/clients", H.transformClientDataToRequest(r), (t) => new Gr(t.data), e);
5250
5250
  }
5251
5251
  /**
5252
5252
  * Обновляет данные указанного клиента.
@@ -5256,7 +5256,7 @@ class M extends Y {
5256
5256
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
5257
5257
  */
5258
5258
  updateClientCommonData(r, e = {}) {
5259
- return this.patch(`/internal/clients/${r.id}`, M.transformClientDataToRequest(r), void 0, e);
5259
+ return this.patch(`/internal/clients/${r.id}`, H.transformClientDataToRequest(r), void 0, e);
5260
5260
  }
5261
5261
  /**
5262
5262
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -5385,7 +5385,7 @@ class M extends Y {
5385
5385
  createContragentClientData(r, e, t = {}) {
5386
5386
  return this.post(
5387
5387
  `/internal/clients/${r}/contragents`,
5388
- M.transformContragentClientDataToRequest(e),
5388
+ H.transformContragentClientDataToRequest(e),
5389
5389
  (i) => je.createInstance(i.data),
5390
5390
  t
5391
5391
  );
@@ -5401,7 +5401,7 @@ class M extends Y {
5401
5401
  updateContragentClientData(r, e, t = {}) {
5402
5402
  return this.patch(
5403
5403
  `/internal/clients/${r}/contragents/${e.id}`,
5404
- M.transformContragentClientDataToRequest(e),
5404
+ H.transformContragentClientDataToRequest(e),
5405
5405
  (i) => je.createInstance(i.data),
5406
5406
  t
5407
5407
  );
@@ -5423,7 +5423,7 @@ class M extends Y {
5423
5423
  * @see /doc/api/internal#/operations/api_internal_client_delivery_address_get_list
5424
5424
  */
5425
5425
  getClientDeliveryAddresses(r) {
5426
- return this.getTypedList(Oe, `/internal/clients/${r}/delivery-addresses`);
5426
+ return this.getTypedList(Ie, `/internal/clients/${r}/delivery-addresses`);
5427
5427
  }
5428
5428
  /**
5429
5429
  * Создаёт новую запись об адресе доставки клиента.
@@ -5436,8 +5436,8 @@ class M extends Y {
5436
5436
  createClientDeliveryAddress(r, e, t = {}) {
5437
5437
  return this.post(
5438
5438
  `/internal/clients/${r}/delivery-addresses`,
5439
- M.transformClientDeliveryAddressToRequest(e),
5440
- (i) => new Oe(i.data),
5439
+ H.transformClientDeliveryAddressToRequest(e),
5440
+ (i) => new Ie(i.data),
5441
5441
  t
5442
5442
  );
5443
5443
  }
@@ -5452,8 +5452,8 @@ class M extends Y {
5452
5452
  updateClientDeliveryAddress(r, e, t = {}) {
5453
5453
  return this.patch(
5454
5454
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
5455
- M.transformClientDeliveryAddressToRequest(e),
5456
- (i) => new Oe(i.data),
5455
+ H.transformClientDeliveryAddressToRequest(e),
5456
+ (i) => new Ie(i.data),
5457
5457
  t
5458
5458
  );
5459
5459
  }
@@ -5479,7 +5479,7 @@ class M extends Y {
5479
5479
  createContragentBankAccount(r, e, t, i = {}) {
5480
5480
  return this.post(
5481
5481
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
5482
- M.transformClientContragentBankAccountToRequest(t),
5482
+ H.transformClientContragentBankAccountToRequest(t),
5483
5483
  (o) => new vr(o.data),
5484
5484
  i
5485
5485
  );
@@ -5496,7 +5496,7 @@ class M extends Y {
5496
5496
  updateContragentBankAccount(r, e, t, i = {}) {
5497
5497
  return this.patch(
5498
5498
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
5499
- M.transformClientContragentBankAccountToRequest(t),
5499
+ H.transformClientContragentBankAccountToRequest(t),
5500
5500
  (o) => new vr(o.data),
5501
5501
  i
5502
5502
  );
@@ -5553,7 +5553,7 @@ class M extends Y {
5553
5553
  comment: e.comment,
5554
5554
  not_disturb: e.notDisturb
5555
5555
  },
5556
- (i) => new ee(i.data),
5556
+ (i) => new te(i.data),
5557
5557
  t
5558
5558
  );
5559
5559
  }
@@ -5690,7 +5690,7 @@ class M extends Y {
5690
5690
  comment: e.comment,
5691
5691
  ...t
5692
5692
  };
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);
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 te(p.data), i);
5694
5694
  }
5695
5695
  /**
5696
5696
  * Устанавливает признак основного контактного лица.
@@ -5719,7 +5719,7 @@ class M extends Y {
5719
5719
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5720
5720
  }
5721
5721
  }
5722
- class ni extends h {
5722
+ class pi extends h {
5723
5723
  /**
5724
5724
  * Выполняет проверку занят ли указанный номер телефона.
5725
5725
  *
@@ -5733,7 +5733,7 @@ class ni extends h {
5733
5733
  });
5734
5734
  }
5735
5735
  }
5736
- class oi {
5736
+ class hi {
5737
5737
  /**
5738
5738
  * Инициализирует экземпляр класса {@link VersionConfig}.
5739
5739
  *
@@ -5752,11 +5752,11 @@ class oi {
5752
5752
  * Текущая версия приложения.
5753
5753
  */
5754
5754
  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";
5755
+ this.date = D(r == null ? void 0 : r.date) ? R(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5756
5756
  }
5757
5757
  }
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 {
5758
+ var Ds = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Ds || {});
5759
+ class gi extends h {
5760
5760
  /**
5761
5761
  * Возвращает настройки указанного конфигуратора для указанной категории.
5762
5762
  *
@@ -5847,7 +5847,7 @@ class ci extends h {
5847
5847
  });
5848
5848
  }
5849
5849
  }
5850
- class ws {
5850
+ class Rs {
5851
5851
  /**
5852
5852
  * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5853
5853
  *
@@ -5865,7 +5865,7 @@ class ws {
5865
5865
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
5866
5866
  }
5867
5867
  }
5868
- class li extends ws {
5868
+ class fi extends Rs {
5869
5869
  /**
5870
5870
  * Инициализирует экземпляр класса {@link TableDataPagination}.
5871
5871
  *
@@ -5896,7 +5896,7 @@ class li extends ws {
5896
5896
  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
5897
  }
5898
5898
  }
5899
- class ui {
5899
+ class mi {
5900
5900
  /**
5901
5901
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
5902
5902
  *
@@ -5969,8 +5969,8 @@ class m {
5969
5969
  * @param date Опорная дата.
5970
5970
  */
5971
5971
  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)) };
5972
+ const i = Bt(U(t), U(r)), o = U($(e, i)), c = Math.min(Nr(t), Wt(o));
5973
+ return { from: he(e), to: W(zt(o, c)) };
5974
5974
  }
5975
5975
  /**
5976
5976
  * Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
@@ -5979,8 +5979,8 @@ class m {
5979
5979
  * @param shiftWeeks Смещение в неделях, может быть отрицательным.
5980
5980
  */
5981
5981
  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)) };
5982
+ const t = X(mr(r, e), { weekStartsOn: 1 }), i = Ke(r, X(r, { weekStartsOn: 1 }));
5983
+ return { from: t, to: W(Z(t, i)) };
5984
5984
  }
5985
5985
  /**
5986
5986
  * Возвращает интервал «сдвинутая декада до такого же номера дня»; если в целевой декаде дня с таким
@@ -5990,8 +5990,8 @@ class m {
5990
5990
  * @param shift Смещение в декадах, может быть отрицательным.
5991
5991
  */
5992
5992
  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)) };
5993
+ const [t] = m.shiftedDecadeBounds(r, 0), i = Ke(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = Ke(c, o) + 1;
5994
+ return { from: o, to: W(Z(o, Math.min(i, u) - 1)) };
5995
5995
  }
5996
5996
  /**
5997
5997
  * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
@@ -6000,28 +6000,42 @@ class m {
6000
6000
  * @param shift Смещение в декадах, может быть отрицательным.
6001
6001
  */
6002
6002
  static shiftedDecadeBounds(r, e) {
6003
- const t = xr(r);
6003
+ const t = Nr(r);
6004
6004
  let i = 2;
6005
6005
  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));
6006
+ const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = U($(r, c)), g = Z(p, u * 10), y = u === 2 ? x(p) : W(Z(g, 9));
6007
6007
  return [g, y];
6008
6008
  }
6009
6009
  }
6010
- class pi {
6010
+ class Dr {
6011
+ /**
6012
+ * Преобразует значение даты из данных ответа в дату.
6013
+ * Строки разбираются как ISO-даты; нечитаемое значение равносильно отсутствию даты.
6014
+ *
6015
+ * @param value Значение даты: дата, строка в формате ISO или пустое значение.
6016
+ */
6017
+ static parse(r) {
6018
+ if (a(r))
6019
+ return;
6020
+ const e = D(r) ? R(r) : r;
6021
+ return jt(e) ? e : void 0;
6022
+ }
6023
+ }
6024
+ class yi {
6011
6025
  /**
6012
6026
  * Возвращает предустановленные диапазоны дат.
6013
6027
  *
6014
6028
  * @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
6015
6029
  */
6016
6030
  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);
6031
+ const e = Gt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = le(r === void 0 ? t : new Date(r, 0, 1)), o = Te(i);
6018
6032
  return {
6019
6033
  // 'Следующий рабочий день' - это значение по-умолчанию
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 }) },
6034
+ nextWorkingDay: { label: "Следующий рабочий день", from: he(e), to: W(e) },
6035
+ today: { label: "Сегодня", from: fr(), to: Jt() },
6036
+ yesterday: { label: "Вчера", from: Vt(), to: Qt() },
6037
+ tomorrow: { label: "Завтра", from: Et(), to: Yt() },
6038
+ currentWeek: { label: "Неделя", from: X(t, { weekStartsOn: 1 }), to: de(t, { weekStartsOn: 1 }) },
6025
6039
  currentMonth: { label: "Месяц", from: U(t), to: x(t) },
6026
6040
  oneMonth: { label: "1 месяц", from: i, to: x(i) },
6027
6041
  threeMonths: { label: "3 месяца", from: i, to: x($(i, 2)) },
@@ -6043,23 +6057,23 @@ class pi {
6043
6057
  * @param now Опорная дата «сейчас»; по умолчанию текущая.
6044
6058
  */
6045
6059
  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);
6060
+ const e = { weekStartsOn: 1 }, t = he(r), i = W(r), o = m.decadeInterval(r), c = U(r), u = Se(r), p = m.startOfHalfYear(r), g = le(r), y = m.addHalfYears(r, -1), P = m.addHalfYears(r, 1);
6047
6061
  return {
6048
- yesterday: { label: "Вчера", group: "day", from: pe(Ke(r, 1)), to: B(Ke(r, 1)) },
6062
+ yesterday: { label: "Вчера", group: "day", from: he(Xe(r, 1)), to: W(Xe(r, 1)) },
6049
6063
  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) },
6064
+ tomorrow: { label: "Завтра", group: "day", from: he(Z(r, 1)), to: W(Z(r, 1)) },
6065
+ lastWeek: { label: "Прошлая неделя", group: "week", from: X(Ur(r, 1), e), to: de(Ur(r, 1), e) },
6066
+ thisWeek: { label: "Эта неделя", group: "week", from: X(r, e), to: de(r, e) },
6067
+ nextWeek: { label: "Следующая неделя", group: "week", from: X(mr(r, 1), e), to: de(mr(r, 1), e) },
6054
6068
  lastTenDays: { label: "Прошлая декада", group: "decade", ...m.shiftDecadeInterval(r, -1) },
6055
6069
  thisTenDays: { label: "Эта декада", group: "decade", ...o },
6056
6070
  nextTenDays: { label: "Следующая декада", group: "decade", ...m.shiftDecadeInterval(r, 1) },
6057
- lastMonth: { label: "Прошлый месяц", group: "month", from: U(tr(r, 1)), to: x(tr(r, 1)) },
6071
+ lastMonth: { label: "Прошлый месяц", group: "month", from: U(sr(r, 1)), to: x(sr(r, 1)) },
6058
6072
  thisMonth: { label: "Этот месяц", group: "month", from: c, to: x(r) },
6059
6073
  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)) },
6074
+ lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Se(tr(r, 1)), to: Me(tr(r, 1)) },
6075
+ thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Me(r) },
6076
+ nextQuarter: { label: "Следующий квартал", group: "quarter", from: Se(er(r, 1)), to: Me(er(r, 1)) },
6063
6077
  lastHalfYear: {
6064
6078
  label: "Прошлое полугодие",
6065
6079
  group: "halfYear",
@@ -6067,11 +6081,11 @@ class pi {
6067
6081
  to: m.endOfHalfYear(y)
6068
6082
  },
6069
6083
  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 },
6084
+ nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: m.startOfHalfYear(P), to: m.endOfHalfYear(P) },
6085
+ lastYear: { label: "Прошлый год", group: "year", from: le(rr(r, 1)), to: Te(rr(r, 1)) },
6086
+ thisYear: { label: "Этот год", group: "year", from: g, to: Te(r) },
6087
+ nextYear: { label: "Следующий год", group: "year", from: le(Ze(r, 1)), to: Te(Ze(r, 1)) },
6088
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: X(r, e), to: i },
6075
6089
  fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
6076
6090
  fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
6077
6091
  fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: i },
@@ -6080,9 +6094,9 @@ class pi {
6080
6094
  tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: de(r, e) },
6081
6095
  tillEndOfThisTenDays: { label: "До конца этой декады", group: "other", section: "tillEnd", from: t, to: o.to },
6082
6096
  tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: x(r) },
6083
- tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: t, to: Fe(r) },
6097
+ tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: t, to: Me(r) },
6084
6098
  tillEndOfThisHalfYear: { label: "До конца этого полугодия", group: "other", section: "tillEnd", from: t, to: m.endOfHalfYear(r) },
6085
- tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: Ae(r) },
6099
+ tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: Te(r) },
6086
6100
  lastWeekTillSameWeekDay: { label: "Прошлая неделя, до такого же дня недели", group: "other", section: "lastTillSame", ...m.weekTillSameWeekday(r, -1) },
6087
6101
  lastTenDaysTillSameDayNumber: {
6088
6102
  label: "Прошлая декада, до такого же номера дня",
@@ -6094,13 +6108,13 @@ class pi {
6094
6108
  label: "Прошлый месяц, до такой же даты",
6095
6109
  group: "other",
6096
6110
  section: "lastTillSame",
6097
- ...m.intervalTillSameDate(c, U(tr(r, 1)), r)
6111
+ ...m.intervalTillSameDate(c, U(sr(r, 1)), r)
6098
6112
  },
6099
6113
  lastQuarterTillSameDate: {
6100
6114
  label: "Прошлый квартал, до такой же даты",
6101
6115
  group: "other",
6102
6116
  section: "lastTillSame",
6103
- ...m.intervalTillSameDate(u, Se(rr(r, 1)), r)
6117
+ ...m.intervalTillSameDate(u, Se(tr(r, 1)), r)
6104
6118
  },
6105
6119
  lastHalfYearTillSameDate: {
6106
6120
  label: "Прошлое полугодие, до такой же даты",
@@ -6112,7 +6126,7 @@ class pi {
6112
6126
  label: "Прошлый год, до такой же даты",
6113
6127
  group: "other",
6114
6128
  section: "lastTillSame",
6115
- ...m.intervalTillSameDate(g, oe(er(r, 1)), r)
6129
+ ...m.intervalTillSameDate(g, le(rr(r, 1)), r)
6116
6130
  },
6117
6131
  nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...m.weekTillSameWeekday(r, 1) },
6118
6132
  nextTenDaysTillSameDayNumber: {
@@ -6131,26 +6145,26 @@ class pi {
6131
6145
  label: "Следующий квартал, до такой же даты",
6132
6146
  group: "other",
6133
6147
  section: "nextTillSame",
6134
- ...m.intervalTillSameDate(u, Se(Ze(r, 1)), r)
6148
+ ...m.intervalTillSameDate(u, Se(er(r, 1)), r)
6135
6149
  },
6136
6150
  nextHalfYearTillSameDate: {
6137
6151
  label: "Следующее полугодие, до такой же даты",
6138
6152
  group: "other",
6139
6153
  section: "nextTillSame",
6140
- ...m.intervalTillSameDate(p, m.startOfHalfYear(R), r)
6154
+ ...m.intervalTillSameDate(p, m.startOfHalfYear(P), r)
6141
6155
  },
6142
6156
  nextYearTillSameDate: {
6143
6157
  label: "Следующий год, до такой же даты",
6144
6158
  group: "other",
6145
6159
  section: "nextTillSame",
6146
- ...m.intervalTillSameDate(g, oe(Xe(r, 1)), r)
6160
+ ...m.intervalTillSameDate(g, le(Ze(r, 1)), r)
6147
6161
  },
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)) }
6162
+ last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: he(Xe(r, 6)), to: i },
6163
+ next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: W(Z(r, 6)) }
6150
6164
  };
6151
6165
  }
6152
6166
  }
6153
- const hi = [
6167
+ const ai = [
6154
6168
  { key: "day", label: "День" },
6155
6169
  { key: "week", label: "Неделя" },
6156
6170
  { key: "decade", label: "Декада" },
@@ -6159,14 +6173,14 @@ const hi = [
6159
6173
  { key: "halfYear", label: "Полугодие" },
6160
6174
  { key: "year", label: "Год" },
6161
6175
  { key: "other", label: "Прочее" }
6162
- ], gi = [
6176
+ ], wi = [
6163
6177
  { key: "fromBeginning", label: "С начала периода" },
6164
6178
  { key: "tillEnd", label: "До конца периода" },
6165
6179
  { key: "lastTillSame", label: "Прошлые, до такой же даты" },
6166
6180
  { key: "nextTillSame", label: "Следующие, до такой же даты" },
6167
6181
  { key: "rollingDays", label: "7 дней" }
6168
6182
  ];
6169
- class vt {
6183
+ class Ct {
6170
6184
  /**
6171
6185
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
6172
6186
  *
@@ -6182,7 +6196,7 @@ class vt {
6182
6196
  */
6183
6197
  static getProductMultiplicity(r) {
6184
6198
  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;
6199
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Ct.productIsMeasurable(r) ? r.properties.minCount : 1;
6186
6200
  }
6187
6201
  /**
6188
6202
  * Возвращает кратность длины для указанного товара.
@@ -6194,7 +6208,7 @@ class vt {
6194
6208
  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
6209
  }
6196
6210
  }
6197
- const fe = class fe extends h {
6211
+ const me = class me extends h {
6198
6212
  /**
6199
6213
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
6200
6214
  */
@@ -6214,7 +6228,7 @@ const fe = class fe extends h {
6214
6228
  */
6215
6229
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6216
6230
  static getCachedResponse(e) {
6217
- const t = fe.responseDataCache.get(e);
6231
+ const t = me.responseDataCache.get(e);
6218
6232
  if (t && t.validTo > /* @__PURE__ */ new Date())
6219
6233
  return t.val;
6220
6234
  }
@@ -6225,8 +6239,8 @@ const fe = class fe extends h {
6225
6239
  * @param data Данные для кэширования.
6226
6240
  */
6227
6241
  cacheResponse(e, t) {
6228
- fe.responseDataCache.set(e, {
6229
- validTo: Qt(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6242
+ me.responseDataCache.set(e, {
6243
+ validTo: Kt(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6230
6244
  val: t
6231
6245
  });
6232
6246
  }
@@ -6242,25 +6256,25 @@ const fe = class fe extends h {
6242
6256
  */
6243
6257
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6244
6258
  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;
6259
+ const u = t + (ee(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? me.getCachedResponse(u) : void 0;
6246
6260
  return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (i && g && this.cacheResponse(u, g), g));
6247
6261
  }
6248
6262
  };
6249
6263
  /**
6250
6264
  * Кэш результатов запросов.
6251
6265
  */
6252
- s(fe, "responseDataCache", /* @__PURE__ */ new Map());
6253
- let _e = fe;
6254
- function fi(n, r) {
6266
+ s(me, "responseDataCache", /* @__PURE__ */ new Map());
6267
+ let qe = me;
6268
+ function vi(n, r) {
6255
6269
  const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6256
6270
  return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6257
6271
  }
6258
- class mi {
6272
+ class Ci {
6259
6273
  /**
6260
6274
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
6261
6275
  */
6262
6276
  static generateUndefinedManagerInstance() {
6263
- return new V({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6277
+ return new K({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6264
6278
  }
6265
6279
  /**
6266
6280
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -6271,15 +6285,15 @@ class mi {
6271
6285
  return r.id === 0 && r.guid === "-undefined-";
6272
6286
  }
6273
6287
  }
6274
- class wt extends _e {
6288
+ class Dt extends qe {
6275
6289
  /**
6276
6290
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
6277
6291
  */
6278
6292
  async getManagers() {
6279
- const r = "/internal/managers", e = _e.getCachedResponse(r);
6293
+ const r = "/internal/managers", e = qe.getCachedResponse(r);
6280
6294
  if (e)
6281
6295
  return e;
6282
- const t = await this.get(r), i = _.instanceListInitializer(V, t.data);
6296
+ const t = await this.get(r), i = _.instanceListInitializer(K, t.data);
6283
6297
  return this.cacheResponse(r, i), i;
6284
6298
  }
6285
6299
  /**
@@ -6290,10 +6304,67 @@ class wt extends _e {
6290
6304
  * @see /doc/api/internal#/operations/api_internal_managers_get
6291
6305
  */
6292
6306
  getManager(r) {
6293
- return this.get(`/internal/managers/${r}`, {}, (e) => new V(e.data));
6307
+ return this.get(`/internal/managers/${r}`, {}, (e) => new K(e.data));
6294
6308
  }
6295
6309
  }
6296
- class Ct extends G {
6310
+ var Oe = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(Oe || {});
6311
+ class Ps {
6312
+ /**
6313
+ * Инициализирует экземпляр класса {@link OfferActualization}.
6314
+ *
6315
+ * @param data Данные для первоначальной инициализации.
6316
+ */
6317
+ constructor(r) {
6318
+ /**
6319
+ * @inheritDoc
6320
+ */
6321
+ s(this, "status");
6322
+ /**
6323
+ * @inheritDoc
6324
+ */
6325
+ s(this, "actualizedAt");
6326
+ /**
6327
+ * @inheritDoc
6328
+ */
6329
+ s(this, "expiresAt");
6330
+ /**
6331
+ * @inheritDoc
6332
+ */
6333
+ s(this, "error");
6334
+ this.status = (r == null ? void 0 : r.status) ?? Oe.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;
6335
+ }
6336
+ /**
6337
+ * @inheritDoc
6338
+ */
6339
+ get isProcessing() {
6340
+ return this.status === Oe.Processing;
6341
+ }
6342
+ /**
6343
+ * @inheritDoc
6344
+ */
6345
+ get isOutdated() {
6346
+ return this.isOutdatedAt(/* @__PURE__ */ new Date());
6347
+ }
6348
+ /**
6349
+ * @inheritDoc
6350
+ */
6351
+ get isOrderAllowed() {
6352
+ return this.isOrderAllowedAt(/* @__PURE__ */ new Date());
6353
+ }
6354
+ /**
6355
+ * @inheritDoc
6356
+ */
6357
+ isOutdatedAt(r) {
6358
+ return this.status !== Oe.Completed || a(this.actualizedAt) ? !0 : !a(this.expiresAt) && this.expiresAt.getTime() < r.getTime();
6359
+ }
6360
+ /**
6361
+ * @inheritDoc
6362
+ */
6363
+ isOrderAllowedAt(r) {
6364
+ return this.status === Oe.Completed && !this.isOutdatedAt(r);
6365
+ }
6366
+ }
6367
+ class Rt extends G {
6297
6368
  /**
6298
6369
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
6299
6370
  *
@@ -6317,10 +6388,61 @@ class Ct extends G {
6317
6388
  * @inheritDoc
6318
6389
  */
6319
6390
  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;
6391
+ /**
6392
+ * @inheritDoc
6393
+ */
6394
+ s(this, "isProfstroy");
6395
+ /**
6396
+ * @inheritDoc
6397
+ */
6398
+ s(this, "actualization");
6399
+ /**
6400
+ * @inheritDoc
6401
+ */
6402
+ s(this, "file");
6403
+ 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 Ps(e.actualization), this.file = e == null ? void 0 : e.file;
6321
6404
  }
6322
6405
  }
6323
- class ue extends Ct {
6406
+ class bs extends kr {
6407
+ /**
6408
+ * Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
6409
+ *
6410
+ * @param data Данные для первоначальной инициализации.
6411
+ */
6412
+ constructor(e) {
6413
+ super(e);
6414
+ /**
6415
+ * @inheritDoc
6416
+ */
6417
+ s(this, "groupName");
6418
+ /**
6419
+ * @inheritDoc
6420
+ */
6421
+ s(this, "supplierSku");
6422
+ /**
6423
+ * @inheritDoc
6424
+ */
6425
+ s(this, "isIgnored");
6426
+ /**
6427
+ * @inheritDoc
6428
+ */
6429
+ s(this, "lineError");
6430
+ this.groupName = e.groupName, this.supplierSku = e.supplierSku ?? e.product.supplierSku, this.isIgnored = e.isIgnored, this.lineError = e.lineError;
6431
+ }
6432
+ /**
6433
+ * @inheritDoc
6434
+ */
6435
+ get isProductStub() {
6436
+ return a(this.product.id);
6437
+ }
6438
+ /**
6439
+ * @inheritDoc
6440
+ */
6441
+ get isOrderable() {
6442
+ return !this.isProductStub && !this.isIgnored && ee(this.lineError);
6443
+ }
6444
+ }
6445
+ class M extends Rt {
6324
6446
  /**
6325
6447
  * Инициализирует экземпляр класса {@link Offer}.
6326
6448
  *
@@ -6336,10 +6458,12 @@ class ue extends Ct {
6336
6458
  * @inheritDoc
6337
6459
  */
6338
6460
  s(this, "products");
6339
- this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new st(t));
6461
+ this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
6462
+ (t) => e.isProfstroy ? new bs(t) : new kr(t)
6463
+ );
6340
6464
  }
6341
6465
  }
6342
- class yi extends qe {
6466
+ class Di extends Ne {
6343
6467
  /**
6344
6468
  * Инициализирует экземпляр класса {@link OffersListFilters}.
6345
6469
  *
@@ -6362,8 +6486,8 @@ class yi extends qe {
6362
6486
  /**
6363
6487
  * @inheritDoc
6364
6488
  */
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);
6489
+ s(this, "createdAt", new T());
6490
+ 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
6491
  }
6368
6492
  /**
6369
6493
  * @inheritDoc
@@ -6380,9 +6504,9 @@ class yi extends qe {
6380
6504
  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
6505
  }
6382
6506
  }
6383
- class ze extends v {
6507
+ class Ee extends v {
6384
6508
  }
6385
- class Dt extends at {
6509
+ class Pt extends vt {
6386
6510
  /**
6387
6511
  * Инициализирует экземпляр класса {@link OrderInfo}.
6388
6512
  *
@@ -6427,6 +6551,10 @@ class Dt extends at {
6427
6551
  * @inheritDoc
6428
6552
  */
6429
6553
  s(this, "isOnOrder");
6554
+ /**
6555
+ * @inheritDoc
6556
+ */
6557
+ s(this, "isProfstroy");
6430
6558
  /**
6431
6559
  * @inheritDoc
6432
6560
  */
@@ -6439,19 +6567,19 @@ class Dt extends at {
6439
6567
  * @inheritDoc
6440
6568
  */
6441
6569
  s(this, "isLargeOrder");
6442
- this.client = new se(e == null ? void 0 : e.client), this.payment = {
6570
+ this.client = new ne(e == null ? void 0 : e.client), this.payment = {
6443
6571
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
6444
6572
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
6445
6573
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
6446
6574
  }, this.delivery = {
6447
6575
  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;
6576
+ date: D((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? R(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
6577
+ address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new Ie(e.delivery.address) : void 0,
6578
+ warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new Ue(e.delivery.warehouse) : void 0
6579
+ }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new Ee(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 = D(e == null ? void 0 : e.attachedAt) ? R(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.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
6580
  }
6453
6581
  }
6454
- class Cs extends tt {
6582
+ class As extends nt {
6455
6583
  /**
6456
6584
  * Инициализирует экземпляр класса {@link OrderItem}.
6457
6585
  *
@@ -6508,10 +6636,10 @@ class Cs extends tt {
6508
6636
  * Продукт, которым заменена текущая запись.
6509
6637
  */
6510
6638
  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"));
6639
+ 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 = 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
6640
  }
6513
6641
  }
6514
- class I extends Dt {
6642
+ class I extends Pt {
6515
6643
  /**
6516
6644
  * Инициализирует экземпляр класса {@link Order}.
6517
6645
  *
@@ -6575,11 +6703,11 @@ class I extends Dt {
6575
6703
  this.products = (e.products ?? []).map((i) => {
6576
6704
  var c;
6577
6705
  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;
6706
+ return new As(i, o);
6707
+ }), 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 Ee(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6580
6708
  }
6581
6709
  }
6582
- class ai extends Y {
6710
+ class Ri extends Y {
6583
6711
  /**
6584
6712
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
6585
6713
  *
@@ -6591,7 +6719,7 @@ class ai extends Y {
6591
6719
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
6592
6720
  */
6593
6721
  getOffers(r, e, t, i = void 0) {
6594
- return this.getTypedPaginated(Ct, "/internal/orders/offers", r, e, t, {}, void 0, i);
6722
+ return this.getTypedPaginated(Rt, "/internal/orders/offers", r, e, t, {}, void 0, i);
6595
6723
  }
6596
6724
  /**
6597
6725
  * Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
@@ -6610,9 +6738,46 @@ class ai extends Y {
6610
6738
  name: e,
6611
6739
  items: t != null && t.length ? t : void 0
6612
6740
  },
6613
- (i) => new ue(i.data)
6741
+ (i) => new M(i.data)
6614
6742
  );
6615
6743
  }
6744
+ /**
6745
+ * Создаёт заказ-черновик из файла выгрузки программы «Профстрой» и запускает его обработку.
6746
+ * Обработка выполняется в фоне: запись возвращается в статусе актуализации «выполняется».
6747
+ *
6748
+ * @param clientId Идентификатор клиента.
6749
+ * @param file Файл выгрузки программы «Профстрой».
6750
+ * @param name Название создаваемой записи.
6751
+ * @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках
6752
+ * валидации в случае ошибок в запросах.
6753
+ *
6754
+ * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_profstroy
6755
+ */
6756
+ createProfstroyOffer(r, e, t, i = {}) {
6757
+ return this.post(`/internal/orders/offers/${r}/profstroy`, { file: e, name: t }, (o) => new M(o.data), i);
6758
+ }
6759
+ /**
6760
+ * Запускает актуализацию заказа-черновика, созданного из файла «Профстрой»: текущий состав записи
6761
+ * повторно отправляется в 1С без повторной обработки файла. Выполняется в фоне.
6762
+ *
6763
+ * @param offerId Идентификатор записи заказа-черновика.
6764
+ *
6765
+ * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_profstroy_actualize
6766
+ */
6767
+ actualizeProfstroyOffer(r) {
6768
+ return this.post(`/internal/orders/offers/${r}/profstroy/actualize`, {}, (e) => new M(e.data));
6769
+ }
6770
+ /**
6771
+ * Пересобирает заказ-черновик из ранее сохранённого файла «Профстрой»: состав записи формируется заново,
6772
+ * внесённые вручную изменения количества и удалённые позиции при этом теряются. Выполняется в фоне.
6773
+ *
6774
+ * @param offerId Идентификатор записи заказа-черновика.
6775
+ *
6776
+ * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_profstroy_reload
6777
+ */
6778
+ reloadProfstroyOffer(r) {
6779
+ return this.post(`/internal/orders/offers/${r}/profstroy/reload`, {}, (e) => new M(e.data));
6780
+ }
6616
6781
  /**
6617
6782
  * Возвращает данные заказа-черновика с указанным идентификатором.
6618
6783
  *
@@ -6621,7 +6786,7 @@ class ai extends Y {
6621
6786
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get
6622
6787
  */
6623
6788
  getOffer(r) {
6624
- return this.get(`/internal/orders/offers/${r}`, {}, (e) => new ue(e.data));
6789
+ return this.get(`/internal/orders/offers/${r}`, {}, (e) => new M(e.data));
6625
6790
  }
6626
6791
  /**
6627
6792
  * Обновляет данные заказа-черновика и возвращает обновлённые данные.
@@ -6632,7 +6797,7 @@ class ai extends Y {
6632
6797
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_change
6633
6798
  */
6634
6799
  updateOffer(r, e) {
6635
- return this.patch(`/internal/orders/offers/${r}`, { name: e }, (t) => new ue(t.data));
6800
+ return this.patch(`/internal/orders/offers/${r}`, { name: e }, (t) => new M(t.data));
6636
6801
  }
6637
6802
  /**
6638
6803
  * Удаляет заказ-черновик.
@@ -6695,7 +6860,7 @@ class ai extends Y {
6695
6860
  is_additional_sale: e.isAdditionalSale,
6696
6861
  ...e.configuratorParams
6697
6862
  },
6698
- (i) => new ue(i.data),
6863
+ (i) => new M(i.data),
6699
6864
  t
6700
6865
  );
6701
6866
  }
@@ -6725,7 +6890,7 @@ class ai extends Y {
6725
6890
  is_additional_sale: t.isAdditionalSale,
6726
6891
  ...t.configuratorParams
6727
6892
  },
6728
- (o) => new ue(o.data),
6893
+ (o) => new M(o.data),
6729
6894
  i
6730
6895
  );
6731
6896
  }
@@ -6738,7 +6903,7 @@ class ai extends Y {
6738
6903
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_product_delete
6739
6904
  */
6740
6905
  deleteOfferProduct(r, e) {
6741
- return this.delete(`/internal/orders/offers/${r}/products/${e}`, (t) => new ue(t.data));
6906
+ return this.delete(`/internal/orders/offers/${r}/products/${e}`, (t) => new M(t.data));
6742
6907
  }
6743
6908
  /**
6744
6909
  * Возвращает содержимое печатной формы заказа-черновика в формате HTML.
@@ -6778,8 +6943,27 @@ class ai extends Y {
6778
6943
  return this.post(`/internal/orders/offers/${r}/send`, e);
6779
6944
  }
6780
6945
  }
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 {
6946
+ class Pi {
6947
+ /**
6948
+ * Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
6949
+ *
6950
+ * @param offer Данные записи заказа-черновика.
6951
+ */
6952
+ static isProfstroy(r) {
6953
+ return !!(r != null && r.isProfstroy);
6954
+ }
6955
+ /**
6956
+ * Возвращает признак того, что полные данные записи относятся к заявке Профстрой,
6957
+ * уточняя тип записи для доступа к данным актуализации и позициям заявки.
6958
+ *
6959
+ * @param offer Полные данные записи заказа-черновика.
6960
+ */
6961
+ static isProfstroyOffer(r) {
6962
+ return !a(r) && r.isProfstroy === !0 && !a(r.actualization);
6963
+ }
6964
+ }
6965
+ var Ts = /* @__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))(Ts || {});
6966
+ class bi {
6783
6967
  /**
6784
6968
  * Инициализирует экземпляр класса {@link OrderEditorData}.
6785
6969
  *
@@ -6846,11 +7030,11 @@ class vi {
6846
7030
  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
7031
  }
6848
7032
  }
6849
- class Rt extends v {
6850
- }
6851
7033
  class bt extends v {
6852
7034
  }
6853
- class wi extends qe {
7035
+ class At extends v {
7036
+ }
7037
+ class Ai extends Ne {
6854
7038
  /**
6855
7039
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
6856
7040
  *
@@ -6878,7 +7062,7 @@ class wi extends qe {
6878
7062
  /**
6879
7063
  * @inheritDoc
6880
7064
  */
6881
- s(this, "createdAt", new A());
7065
+ s(this, "createdAt", new T());
6882
7066
  /**
6883
7067
  * @inheritDoc
6884
7068
  */
@@ -6886,7 +7070,7 @@ class wi extends qe {
6886
7070
  /**
6887
7071
  * @inheritDoc
6888
7072
  */
6889
- s(this, "deliveryDate", new A());
7073
+ s(this, "deliveryDate", new T());
6890
7074
  /**
6891
7075
  * @inheritDoc
6892
7076
  */
@@ -6914,7 +7098,7 @@ class wi extends qe {
6914
7098
  /**
6915
7099
  * @inheritDoc
6916
7100
  */
6917
- s(this, "attachedAt", new A());
7101
+ s(this, "attachedAt", new T());
6918
7102
  /**
6919
7103
  * @inheritDoc
6920
7104
  */
@@ -6951,7 +7135,7 @@ class wi extends qe {
6951
7135
  * @inheritDoc
6952
7136
  */
6953
7137
  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;
7138
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new K(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 V(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 Ue(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6955
7139
  }
6956
7140
  /**
6957
7141
  * @inheritDoc
@@ -6968,7 +7152,7 @@ class wi extends qe {
6968
7152
  this.deliveryDate.from = null, this.deliveryDate.to = null;
6969
7153
  break;
6970
7154
  case "deliveryType":
6971
- this.deliveryType = new Q();
7155
+ this.deliveryType = new V();
6972
7156
  break;
6973
7157
  case "clientCities":
6974
7158
  this.clientCities = [];
@@ -7002,7 +7186,7 @@ class wi extends qe {
7002
7186
  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
7187
  }
7004
7188
  }
7005
- class Rs {
7189
+ class ds {
7006
7190
  /**
7007
7191
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
7008
7192
  *
@@ -7025,10 +7209,10 @@ class Rs {
7025
7209
  * @inheritDoc
7026
7210
  */
7027
7211
  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();
7212
+ this.user = new q(r == null ? void 0 : r.user), this.status = new Ee(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new v(r.statusDetail) : void 0, this.createdAt = D(r == null ? void 0 : r.createdAt) ? R(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
7029
7213
  }
7030
7214
  }
7031
- class Ci extends Y {
7215
+ class Ti extends Y {
7032
7216
  /**
7033
7217
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
7034
7218
  *
@@ -7040,7 +7224,7 @@ class Ci extends Y {
7040
7224
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
7041
7225
  */
7042
7226
  getOrders(r, e, t, i = void 0) {
7043
- return this.getTypedPaginated(Dt, "/internal/orders", r, e, t, {}, void 0, i);
7227
+ return this.getTypedPaginated(Pt, "/internal/orders", r, e, t, {}, void 0, i);
7044
7228
  }
7045
7229
  /**
7046
7230
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -7053,7 +7237,7 @@ class Ci extends Y {
7053
7237
  getOrdersCount(r, e = void 0) {
7054
7238
  return this.get(
7055
7239
  "/internal/orders/count",
7056
- r ? { filters: JSON.stringify((r instanceof Z ? r : new Z(r)).toPrimitive()) } : {},
7240
+ r ? { filters: JSON.stringify((r instanceof re ? r : new re(r)).toPrimitive()) } : {},
7057
7241
  void 0,
7058
7242
  void 0,
7059
7243
  e
@@ -7254,7 +7438,7 @@ class Ci extends Y {
7254
7438
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
7255
7439
  */
7256
7440
  getOrderStatusHistory(r) {
7257
- return this.getTypedList(Rs, `/internal/orders/${r}/history`);
7441
+ return this.getTypedList(ds, `/internal/orders/${r}/history`);
7258
7442
  }
7259
7443
  /**
7260
7444
  * Возвращает содержимое печатной формы заказа в формате HTML.
@@ -7396,8 +7580,8 @@ class Ci extends Y {
7396
7580
  );
7397
7581
  }
7398
7582
  }
7399
- const Di = Symbol("currentOrder");
7400
- class lr {
7583
+ const di = Symbol("currentOrder");
7584
+ class ur {
7401
7585
  /**
7402
7586
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
7403
7587
  *
@@ -7424,12 +7608,12 @@ class lr {
7424
7608
  * Источник клиентской цены.
7425
7609
  */
7426
7610
  s(this, "source");
7427
- 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;
7611
+ 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;
7428
7612
  }
7429
7613
  }
7430
- const ur = (n) => {
7614
+ const pr = (n) => {
7431
7615
  var r, e, t, i, o;
7432
- return n ? Vr(
7616
+ return n ? Zr(
7433
7617
  {
7434
7618
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
7435
7619
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -7438,13 +7622,13 @@ const ur = (n) => {
7438
7622
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
7439
7623
  hideNotActive: n.hideNotActive
7440
7624
  },
7441
- (c) => T(c) || (W(c) || br(c)) && ye(c)
7625
+ (c) => a(c) || (z(c) || Ar(c)) && ee(c)
7442
7626
  ) : {};
7443
- }, jr = (n) => {
7627
+ }, Yr = (n) => {
7444
7628
  const r = {};
7445
7629
  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;
7446
7630
  };
7447
- class Ri extends h {
7631
+ class Si extends h {
7448
7632
  /**
7449
7633
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
7450
7634
  *
@@ -7458,10 +7642,10 @@ class Ri extends h {
7458
7642
  return this.get(
7459
7643
  `/internal/price/products/${r}/analyze`,
7460
7644
  {
7461
- ...jr(e),
7462
- filters: ur(t)
7645
+ ...Yr(e),
7646
+ filters: pr(t)
7463
7647
  },
7464
- (i) => _.instanceListInitializer(lr, i.data)
7648
+ (i) => _.instanceListInitializer(ur, i.data)
7465
7649
  );
7466
7650
  }
7467
7651
  /**
@@ -7477,10 +7661,10 @@ class Ri extends h {
7477
7661
  return this.get(
7478
7662
  `/internal/price/categories/${r}/analyze`,
7479
7663
  {
7480
- ...jr(e),
7481
- filters: ur(t)
7664
+ ...Yr(e),
7665
+ filters: pr(t)
7482
7666
  },
7483
- (i) => _.instanceListInitializer(lr, i.data)
7667
+ (i) => _.instanceListInitializer(ur, i.data)
7484
7668
  );
7485
7669
  }
7486
7670
  /**
@@ -7499,13 +7683,13 @@ class Ri extends h {
7499
7683
  `/internal/price/categories/${r}/analyze/square`,
7500
7684
  {
7501
7685
  ...e,
7502
- filters: ur(t)
7686
+ filters: pr(t)
7503
7687
  },
7504
- (i) => _.instanceListInitializer(lr, i.data)
7688
+ (i) => _.instanceListInitializer(ur, i.data)
7505
7689
  );
7506
7690
  }
7507
7691
  }
7508
- class bs {
7692
+ class Ss {
7509
7693
  /**
7510
7694
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
7511
7695
  *
@@ -7552,10 +7736,10 @@ class bs {
7552
7736
  * @inheritDoc
7553
7737
  */
7554
7738
  s(this, "currency");
7555
- 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;
7739
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = D(r.costDate) ? R(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new _e(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;
7556
7740
  }
7557
7741
  }
7558
- class Ps extends xe {
7742
+ class $s extends _e {
7559
7743
  /**
7560
7744
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
7561
7745
  *
@@ -7567,10 +7751,10 @@ class Ps extends xe {
7567
7751
  * @inheritDoc
7568
7752
  */
7569
7753
  s(this, "history");
7570
- this.history = De(e.history, (t) => new bs(t));
7754
+ this.history = De(e.history, (t) => new Ss(t));
7571
7755
  }
7572
7756
  }
7573
- class bi extends h {
7757
+ class $i extends h {
7574
7758
  /**
7575
7759
  * Возвращает данные об истории изменения цен.
7576
7760
  *
@@ -7580,21 +7764,21 @@ class bi extends h {
7580
7764
  */
7581
7765
  getProductPriceHistory(r) {
7582
7766
  var o, c, u, p, g;
7583
- const e = k().config.dateFormats.api, t = Vr(
7584
- Ie(r, {
7767
+ const e = k().config.dateFormats.api, t = Zr(
7768
+ xe(r, {
7585
7769
  costDate: {
7586
- from: hr((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7587
- to: hr((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7770
+ from: gr((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7771
+ to: gr((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7588
7772
  }
7589
7773
  }),
7590
- (y) => T(y) || (W(y) || br(y)) && ye(y)
7774
+ (y) => a(y) || (z(y) || Ar(y)) && ee(y)
7591
7775
  ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
7592
7776
  return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((y) => [
7593
- new Ps(Ie(y[0], { history: y }))
7777
+ new $s(xe(y[0], { history: y }))
7594
7778
  ]);
7595
7779
  }
7596
7780
  }
7597
- class Gr {
7781
+ class Er {
7598
7782
  /**
7599
7783
  * Инициализирует экземпляр класса {@link RecommendationsList}.
7600
7784
  *
@@ -7609,10 +7793,10 @@ class Gr {
7609
7793
  * Список рекомендованных категорий продуктов.
7610
7794
  */
7611
7795
  s(this, "productCategories", []);
7612
- 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)));
7796
+ r != null && r.products && (this.products = r.products.map((e) => new _e(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new _e(e)));
7613
7797
  }
7614
7798
  }
7615
- class Pi extends h {
7799
+ class ki extends h {
7616
7800
  /**
7617
7801
  * Возвращает данные о рекомендациях указанной категории продуктов.
7618
7802
  *
@@ -7620,7 +7804,7 @@ class Pi extends h {
7620
7804
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
7621
7805
  */
7622
7806
  getProductCategoryRecommendations(r) {
7623
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Gr(e.data));
7807
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Er(e.data));
7624
7808
  }
7625
7809
  /**
7626
7810
  * Возвращает данные о рекомендациях указанного продукта.
@@ -7629,7 +7813,7 @@ class Pi extends h {
7629
7813
  * @see /docs/api#/operations/api_internal_recommendations_product_get
7630
7814
  */
7631
7815
  getProductRecommendations(r) {
7632
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Gr(e.data));
7816
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Er(e.data));
7633
7817
  }
7634
7818
  /**
7635
7819
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -7658,12 +7842,12 @@ class Pi extends h {
7658
7842
  });
7659
7843
  }
7660
7844
  }
7661
- 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 || {});
7662
- class ds extends v {
7845
+ var ks = /* @__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))(ks || {}), Ls = /* @__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))(Ls || {});
7846
+ class Os extends v {
7663
7847
  }
7664
- class Ss extends v {
7848
+ class Is extends v {
7665
7849
  }
7666
- class Yr extends v {
7850
+ class Qr extends v {
7667
7851
  /**
7668
7852
  * Инициализирует экземпляр класса {@link CityWithUserRegion}.
7669
7853
  *
@@ -7679,15 +7863,15 @@ class Yr extends v {
7679
7863
  this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new Ye(i))) ?? [];
7680
7864
  }
7681
7865
  }
7682
- class $s extends v {
7866
+ class xs extends v {
7683
7867
  }
7684
- class ks extends v {
7868
+ class _s extends v {
7685
7869
  }
7686
- class Ls extends v {
7870
+ class qs extends v {
7687
7871
  }
7688
- class Os extends v {
7872
+ class Ns extends v {
7689
7873
  }
7690
- class Ti {
7874
+ class Li {
7691
7875
  /**
7692
7876
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
7693
7877
  *
@@ -7706,9 +7890,9 @@ class Ti {
7706
7890
  return r.id === 0 && r.slug === "-undefined-";
7707
7891
  }
7708
7892
  }
7709
- class Pt extends v {
7893
+ class Tt extends v {
7710
7894
  }
7711
- const H = class H extends _e {
7895
+ const B = class B extends qe {
7712
7896
  /**
7713
7897
  * Исключает из списка записей справочника местоположений служебную запись
7714
7898
  * неизвестного региона или города.
@@ -7716,7 +7900,7 @@ const H = class H extends _e {
7716
7900
  * @param locations Записи справочника местоположений.
7717
7901
  */
7718
7902
  static withoutUnknownLocation(r) {
7719
- return r.filter((e) => e.id !== H.unknownLocationId);
7903
+ return r.filter((e) => e.id !== B.unknownLocationId);
7720
7904
  }
7721
7905
  /**
7722
7906
  * Возвращает {@link Promise} для получения данных указанного справочника.
@@ -7726,26 +7910,26 @@ const H = class H extends _e {
7726
7910
  * и использовать в случае аналогичных запросов.
7727
7911
  */
7728
7912
  getReference(r, e = !1) {
7729
- return this.getTypedDataArrayRequester(ds, `/internal/references/${r}`, e);
7913
+ return this.getTypedDataArrayRequester(Os, `/internal/references/${r}`, e);
7730
7914
  }
7731
7915
  /**
7732
7916
  * Возвращает {@link Promise} для получения справочника данных о канале
7733
7917
  * первичного интереса.
7734
7918
  */
7735
7919
  getChannelPrimaryInterest() {
7736
- return this.getTypedDataArrayRequester(mt, "/internal/references/channel-primary-interest", !0);
7920
+ return this.getTypedDataArrayRequester(at, "/internal/references/channel-primary-interest", !0);
7737
7921
  }
7738
7922
  /**
7739
7923
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
7740
7924
  */
7741
7925
  getContactPositions() {
7742
- return this.getTypedDataArrayRequester($s, "/internal/references/contact-position", !0);
7926
+ return this.getTypedDataArrayRequester(xs, "/internal/references/contact-position", !0);
7743
7927
  }
7744
7928
  /**
7745
7929
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
7746
7930
  */
7747
7931
  getCuratedDirection() {
7748
- return this.getTypedDataArrayRequester($r, "/internal/references/curated-direction", !0);
7932
+ return this.getTypedDataArrayRequester(Or, "/internal/references/curated-direction", !0);
7749
7933
  }
7750
7934
  /**
7751
7935
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -7764,43 +7948,43 @@ const H = class H extends _e {
7764
7948
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
7765
7949
  */
7766
7950
  getOpf() {
7767
- return this.getTypedDataArrayRequester(re, "/public/references/opf", !0);
7951
+ return this.getTypedDataArrayRequester(se, "/public/references/opf", !0);
7768
7952
  }
7769
7953
  /**
7770
7954
  * Возвращает {@link Promise} для получения справочника операторов.
7771
7955
  */
7772
7956
  getOperators() {
7773
- return this.getTypedDataArrayRequester(Rt, "/internal/references/operator", !0);
7957
+ return this.getTypedDataArrayRequester(bt, "/internal/references/operator", !0);
7774
7958
  }
7775
7959
  /**
7776
7960
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
7777
7961
  */
7778
7962
  getOrderPaymentStatuses() {
7779
- return this.getTypedDataArrayRequester(ks, "/public/references/order-payment-status", !0);
7963
+ return this.getTypedDataArrayRequester(_s, "/public/references/order-payment-status", !0);
7780
7964
  }
7781
7965
  /**
7782
7966
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
7783
7967
  */
7784
7968
  getOrderStatuses() {
7785
- return this.getTypedDataArrayRequester(ze, "/internal/references/order-status", !0);
7969
+ return this.getTypedDataArrayRequester(Ee, "/internal/references/order-status", !0);
7786
7970
  }
7787
7971
  /**
7788
7972
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
7789
7973
  */
7790
7974
  getOrderStatusDetails() {
7791
- return this.getTypedDataArrayRequester(Ls, "/internal/references/order-status-detail", !0);
7975
+ return this.getTypedDataArrayRequester(qs, "/internal/references/order-status-detail", !0);
7792
7976
  }
7793
7977
  /**
7794
7978
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
7795
7979
  */
7796
7980
  getPaymentTypes() {
7797
- return this.getTypedDataArrayRequester(bt, "/public/references/payment-type", !0);
7981
+ return this.getTypedDataArrayRequester(At, "/public/references/payment-type", !0);
7798
7982
  }
7799
7983
  /**
7800
7984
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
7801
7985
  */
7802
7986
  getResourceTypes() {
7803
- return this.getTypedDataArrayRequester(Pt, "/internal/references/resource-type", !0);
7987
+ return this.getTypedDataArrayRequester(Tt, "/internal/references/resource-type", !0);
7804
7988
  }
7805
7989
  /**
7806
7990
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -7812,7 +7996,7 @@ const H = class H extends _e {
7812
7996
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
7813
7997
  */
7814
7998
  getSourcePrimaryInterest() {
7815
- return this.getTypedDataArrayRequester(yt, "/internal/references/source-primary-interest", !0);
7999
+ return this.getTypedDataArrayRequester(wt, "/internal/references/source-primary-interest", !0);
7816
8000
  }
7817
8001
  /**
7818
8002
  * Выполняет поиск данных о городах по терму в названии.
@@ -7820,7 +8004,7 @@ const H = class H extends _e {
7820
8004
  * @param term Терм поиска.
7821
8005
  */
7822
8006
  searchCity(r) {
7823
- return this.getTypedDataArrayRequester(we, `/internal/references/city-with-region-and-country/search?term=${r}`);
8007
+ return this.getTypedDataArrayRequester(ve, `/internal/references/city-with-region-and-country/search?term=${r}`);
7824
8008
  }
7825
8009
  /**
7826
8010
  * Выполняет поиск данных о регионах по терму в названии.
@@ -7828,7 +8012,7 @@ const H = class H extends _e {
7828
8012
  * @param term Терм поиска.
7829
8013
  */
7830
8014
  searchRegion(r) {
7831
- return this.getTypedDataArrayRequester(ve, `/internal/references/region-with-country/search?term=${r}`);
8015
+ return this.getTypedDataArrayRequester(we, `/internal/references/region-with-country/search?term=${r}`);
7832
8016
  }
7833
8017
  /**
7834
8018
  * Возвращает {@link Promise} для получения справочника регионов указанной страны.
@@ -7838,8 +8022,8 @@ const H = class H extends _e {
7838
8022
  * @param countryId Идентификатор страны.
7839
8023
  */
7840
8024
  getRegionsByCountry(r) {
7841
- return this.getTypedDataArrayRequester(ve, "/internal/references/region", !1, { params: { countryId: r } }).then(
7842
- (e) => H.withoutUnknownLocation(e)
8025
+ return this.getTypedDataArrayRequester(we, "/internal/references/region", !1, { params: { countryId: r } }).then(
8026
+ (e) => B.withoutUnknownLocation(e)
7843
8027
  );
7844
8028
  }
7845
8029
  /**
@@ -7850,8 +8034,8 @@ const H = class H extends _e {
7850
8034
  * @param regionId Идентификатор региона.
7851
8035
  */
7852
8036
  getCitiesByRegion(r) {
7853
- return this.getTypedDataArrayRequester(Ss, "/internal/references/city", !1, { params: { regionId: r } }).then(
7854
- (e) => H.withoutUnknownLocation(e)
8037
+ return this.getTypedDataArrayRequester(Is, "/internal/references/city", !1, { params: { regionId: r } }).then(
8038
+ (e) => B.withoutUnknownLocation(e)
7855
8039
  );
7856
8040
  }
7857
8041
  /**
@@ -7861,8 +8045,8 @@ const H = class H extends _e {
7861
8045
  * @param regionId Идентификатор региона.
7862
8046
  */
7863
8047
  getCitiesWithUserRegionByRegion(r) {
7864
- return this.getTypedDataArrayRequester(Yr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
7865
- (e) => H.withoutUnknownLocation(e)
8048
+ return this.getTypedDataArrayRequester(Qr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
8049
+ (e) => B.withoutUnknownLocation(e)
7866
8050
  );
7867
8051
  }
7868
8052
  /**
@@ -7875,12 +8059,12 @@ const H = class H extends _e {
7875
8059
  */
7876
8060
  searchCityWithRegion(r, e, t = void 0) {
7877
8061
  return this.getTypedDataArrayRequester(
7878
- we,
8062
+ ve,
7879
8063
  "/internal/references/city-with-region/search",
7880
8064
  !1,
7881
8065
  { term: r, ...e ? { params: { countryId: e } } : {} },
7882
8066
  t
7883
- ).then((i) => H.withoutUnknownLocation(i));
8067
+ ).then((i) => B.withoutUnknownLocation(i));
7884
8068
  }
7885
8069
  /**
7886
8070
  * Выполняет поиск данных о городах по терму в названии с данными
@@ -7890,8 +8074,8 @@ const H = class H extends _e {
7890
8074
  * @param signal Сигнал отмены запроса.
7891
8075
  */
7892
8076
  searchCityWithUserRegion(r, e = void 0) {
7893
- return this.getTypedDataArrayRequester(Yr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
7894
- (t) => H.withoutUnknownLocation(t)
8077
+ return this.getTypedDataArrayRequester(Qr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8078
+ (t) => B.withoutUnknownLocation(t)
7895
8079
  );
7896
8080
  }
7897
8081
  /**
@@ -7906,19 +8090,19 @@ const H = class H extends _e {
7906
8090
  * Возвращает {@link Promise} для получения справочника типов доставки.
7907
8091
  */
7908
8092
  getDeliveryTypes() {
7909
- return this.getTypedDataArrayRequester(Q, "/internal/references/delivery-type", !0);
8093
+ return this.getTypedDataArrayRequester(V, "/internal/references/delivery-type", !0);
7910
8094
  }
7911
8095
  /**
7912
8096
  * Возвращает {@link Promise} для получения справочника складов.
7913
8097
  */
7914
8098
  getWarehouses() {
7915
- return this.getTypedDataArrayRequester(Ne, "/public/references/warehouse", !0);
8099
+ return this.getTypedDataArrayRequester(Ue, "/public/references/warehouse", !0);
7916
8100
  }
7917
8101
  /**
7918
8102
  * Возвращает {@link Promise} для получения справочника типов свойств.
7919
8103
  */
7920
8104
  getPropertyTypes() {
7921
- return this.getTypedDataArrayRequester(ut, "/internal/references/property-type", !0);
8105
+ return this.getTypedDataArrayRequester(ht, "/internal/references/property-type", !0);
7922
8106
  }
7923
8107
  /**
7924
8108
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -7930,17 +8114,17 @@ const H = class H extends _e {
7930
8114
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
7931
8115
  */
7932
8116
  getProductFileType() {
7933
- return this.getTypedDataArrayRequester(Os, "/public/references/product-file-type", !0);
8117
+ return this.getTypedDataArrayRequester(Ns, "/public/references/product-file-type", !0);
7934
8118
  }
7935
8119
  };
7936
8120
  /**
7937
8121
  * Идентификатор служебных записей справочников регионов и городов,
7938
8122
  * обозначающих неизвестное местоположение.
7939
8123
  */
7940
- s(H, "unknownLocationId", 1);
7941
- let d = H;
7942
- const S = te("common.references_private", () => {
7943
- 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);
8124
+ s(B, "unknownLocationId", 1);
8125
+ let d = B;
8126
+ const S = ie("common.references_private", () => {
8127
+ 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), be = w(void 0), Ae = w(void 0), oe = w(void 0), ce = w(void 0), Qe = w(void 0), Ve = w(void 0), Je = w(void 0), l = w(void 0);
7944
8128
  return {
7945
8129
  /**
7946
8130
  * Список загружаемых/загруженных на данный момент значений.
@@ -7989,31 +8173,31 @@ const S = te("common.references_private", () => {
7989
8173
  /**
7990
8174
  * Справочник типов оплаты заказов.
7991
8175
  */
7992
- paymentTypeReference: R,
8176
+ paymentTypeReference: P,
7993
8177
  /**
7994
8178
  * Справочник групп партнеров.
7995
8179
  */
7996
- partnerGroupReference: Pe,
8180
+ partnerGroupReference: be,
7997
8181
  /**
7998
8182
  * Справочник типов файлов продукктов/категорий.
7999
8183
  */
8000
- productFileTypeReference: Te,
8184
+ productFileTypeReference: Ae,
8001
8185
  /**
8002
8186
  * Справочник типов ресурсов.
8003
8187
  */
8004
- resourceTypesReference: ie,
8188
+ resourceTypesReference: oe,
8005
8189
  /**
8006
8190
  * Справочник направлений продаж.
8007
8191
  */
8008
- salesDirectionsReference: ne,
8192
+ salesDirectionsReference: ce,
8009
8193
  /**
8010
8194
  * Справочник источников первичного интереса.
8011
8195
  */
8012
- sourcePrimaryInterestReference: Ee,
8196
+ sourcePrimaryInterestReference: Qe,
8013
8197
  /**
8014
8198
  * Справочник складов.
8015
8199
  */
8016
- warehousesReference: Qe,
8200
+ warehousesReference: Ve,
8017
8201
  /**
8018
8202
  * Справочник типов свойств.
8019
8203
  */
@@ -8023,102 +8207,102 @@ const S = te("common.references_private", () => {
8023
8207
  */
8024
8208
  priceCoefficientsReference: l
8025
8209
  };
8026
- }), Ai = te("common.references", () => {
8027
- const n = P(() => {
8210
+ }), Oi = ie("common.references", () => {
8211
+ const n = A(() => {
8028
8212
  const l = S();
8029
8213
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
8030
8214
  l.channelPrimaryInterestReference = f;
8031
- }).catch(w)), l.channelPrimaryInterestReference;
8032
- }), r = P(() => {
8215
+ }).catch(C)), l.channelPrimaryInterestReference;
8216
+ }), r = A(() => {
8033
8217
  const l = S();
8034
8218
  return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(d).getContactPositions().then((f) => {
8035
8219
  l.contactPositionsReference = f;
8036
- }).catch(w)), l.contactPositionsReference;
8037
- }), e = P(() => {
8220
+ }).catch(C)), l.contactPositionsReference;
8221
+ }), e = A(() => {
8038
8222
  const l = S();
8039
8223
  return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(d).getCurrency().then((f) => {
8040
8224
  l.currencyReference = f;
8041
- }).catch(w)), l.currencyReference;
8042
- }), t = P(() => {
8225
+ }).catch(C)), l.currencyReference;
8226
+ }), t = A(() => {
8043
8227
  const l = S();
8044
8228
  return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(d).getOpf().then((f) => {
8045
8229
  l.opfReference = f;
8046
- }).catch(w)), l.opfReference;
8047
- }), i = P(() => {
8230
+ }).catch(C)), l.opfReference;
8231
+ }), i = A(() => {
8048
8232
  const l = S();
8049
8233
  return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(d).getOperators().then((f) => {
8050
8234
  l.operatorReference = f;
8051
- }).catch(w)), l.operatorReference;
8052
- }), o = P(() => {
8235
+ }).catch(C)), l.operatorReference;
8236
+ }), o = A(() => {
8053
8237
  const l = S();
8054
8238
  return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(d).getOrderPaymentStatuses().then((f) => {
8055
8239
  l.orderPaymentStatusReference = f;
8056
- }).catch(w)), l.orderPaymentStatusReference;
8057
- }), c = P(() => {
8240
+ }).catch(C)), l.orderPaymentStatusReference;
8241
+ }), c = A(() => {
8058
8242
  const l = S();
8059
8243
  return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(d).getOrderStatuses().then((f) => {
8060
8244
  l.orderStatusReference = f;
8061
- }).catch(w)), l.orderStatusReference;
8062
- }), u = P(() => {
8245
+ }).catch(C)), l.orderStatusReference;
8246
+ }), u = A(() => {
8063
8247
  const l = S();
8064
8248
  return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(d).getOrderStatusDetails().then((f) => {
8065
8249
  l.orderStatusDetailReference = f;
8066
- }).catch(w)), l.orderStatusDetailReference;
8067
- }), p = P(() => {
8250
+ }).catch(C)), l.orderStatusDetailReference;
8251
+ }), p = A(() => {
8068
8252
  const l = S();
8069
8253
  return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(d).getPaymentTypes().then((f) => {
8070
8254
  l.paymentTypeReference = f;
8071
- }).catch(w)), l.paymentTypeReference;
8072
- }), g = P(() => {
8255
+ }).catch(C)), l.paymentTypeReference;
8256
+ }), g = A(() => {
8073
8257
  const l = S();
8074
8258
  return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(d).getPartnerGroup().then((f) => {
8075
8259
  l.partnerGroupReference = f;
8076
- }).catch(w)), l.partnerGroupReference;
8077
- }), y = P(() => {
8260
+ }).catch(C)), l.partnerGroupReference;
8261
+ }), y = A(() => {
8078
8262
  const l = S();
8079
8263
  return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(d).getProductFileType().then((f) => {
8080
8264
  l.productFileTypeReference = f;
8081
- }).catch(w)), l.productFileTypeReference;
8082
- }), R = P(() => {
8265
+ }).catch(C)), l.productFileTypeReference;
8266
+ }), P = A(() => {
8083
8267
  const l = S();
8084
8268
  return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(d).getResourceTypes().then((f) => {
8085
8269
  l.resourceTypesReference = f;
8086
- }).catch(w)), l.resourceTypesReference;
8087
- }), Pe = P(() => {
8270
+ }).catch(C)), l.resourceTypesReference;
8271
+ }), be = A(() => {
8088
8272
  const l = S();
8089
8273
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(d).getSalesDirections().then((f) => {
8090
8274
  l.salesDirectionsReference = f;
8091
- }).catch(w)), l.salesDirectionsReference;
8092
- }), Te = P(() => {
8275
+ }).catch(C)), l.salesDirectionsReference;
8276
+ }), Ae = A(() => {
8093
8277
  const l = S();
8094
8278
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(d).getSourcePrimaryInterest().then((f) => {
8095
8279
  l.sourcePrimaryInterestReference = f;
8096
- }).catch(w)), l.sourcePrimaryInterestReference;
8097
- }), ie = P(() => {
8280
+ }).catch(C)), l.sourcePrimaryInterestReference;
8281
+ }), oe = A(() => {
8098
8282
  const l = S();
8099
8283
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(d).getDeliveryTypes().then((f) => {
8100
8284
  l.deliveryTypeReference = f;
8101
- }).catch(w)), l.deliveryTypeReference;
8102
- }), ne = P(() => {
8285
+ }).catch(C)), l.deliveryTypeReference;
8286
+ }), ce = A(() => {
8103
8287
  const l = S();
8104
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(wt).getManagers().then((f) => {
8288
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Dt).getManagers().then((f) => {
8105
8289
  l.managersList = f;
8106
- }).catch(w)), l.managersList;
8107
- }), Ee = P(() => {
8290
+ }).catch(C)), l.managersList;
8291
+ }), Qe = A(() => {
8108
8292
  const l = S();
8109
8293
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
8110
8294
  l.warehousesReference = f;
8111
- }).catch(w)), l.warehousesReference;
8112
- }), Qe = P(() => {
8295
+ }).catch(C)), l.warehousesReference;
8296
+ }), Ve = A(() => {
8113
8297
  const l = S();
8114
8298
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
8115
8299
  l.propertyTypesReference = f;
8116
- }).catch(w)), l.propertyTypesReference;
8117
- }), Je = P(() => {
8300
+ }).catch(C)), l.propertyTypesReference;
8301
+ }), Je = A(() => {
8118
8302
  const l = S();
8119
8303
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
8120
8304
  l.priceCoefficientsReference = f;
8121
- }).catch(w)), l.priceCoefficientsReference;
8305
+ }).catch(C)), l.priceCoefficientsReference;
8122
8306
  });
8123
8307
  return {
8124
8308
  /**
@@ -8168,38 +8352,38 @@ const S = te("common.references_private", () => {
8168
8352
  /**
8169
8353
  * Справочник типов ресурсов.
8170
8354
  */
8171
- resourceTypesReference: R,
8355
+ resourceTypesReference: P,
8172
8356
  /**
8173
8357
  * Справочник направлений продаж.
8174
8358
  */
8175
- salesDirectionsReference: Pe,
8359
+ salesDirectionsReference: be,
8176
8360
  /**
8177
8361
  * Справочник каналов первичного интереса.
8178
8362
  */
8179
- sourcePrimaryInterestsReference: Te,
8363
+ sourcePrimaryInterestsReference: Ae,
8180
8364
  /**
8181
8365
  * Справочник типов доставки.
8182
8366
  */
8183
- deliveryTypeReference: ie,
8367
+ deliveryTypeReference: oe,
8184
8368
  /**
8185
8369
  * Список менеджеров.
8186
8370
  */
8187
- managersList: ne,
8371
+ managersList: ce,
8188
8372
  /**
8189
8373
  * Справочник складов.
8190
8374
  */
8191
- warehousesReference: Ee,
8375
+ warehousesReference: Qe,
8192
8376
  /**
8193
8377
  * Справочник типов свойств.
8194
8378
  */
8195
- propertyTypesReference: Qe,
8379
+ propertyTypesReference: Ve,
8196
8380
  /**
8197
8381
  * Справочник коэффициентов цен.
8198
8382
  */
8199
8383
  priceCoefficientsReference: Je
8200
8384
  };
8201
8385
  });
8202
- class Is {
8386
+ class Us {
8203
8387
  /**
8204
8388
  * Инициализирует экземпляр класса {@link MetaTagItem}.
8205
8389
  *
@@ -8217,7 +8401,7 @@ class Is {
8217
8401
  this.name = r.name, this.content = r.content;
8218
8402
  }
8219
8403
  }
8220
- class zr {
8404
+ class Vr {
8221
8405
  /**
8222
8406
  * Инициализирует экземпляр класса {@link Seo}.
8223
8407
  *
@@ -8257,10 +8441,10 @@ class zr {
8257
8441
  */
8258
8442
  s(this, "tags");
8259
8443
  var e;
8260
- 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;
8444
+ 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 Us(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8261
8445
  }
8262
8446
  }
8263
- class di extends h {
8447
+ class Ii extends h {
8264
8448
  /**
8265
8449
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
8266
8450
  *
@@ -8268,7 +8452,7 @@ class di extends h {
8268
8452
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
8269
8453
  */
8270
8454
  getResourceSeoData(r, e) {
8271
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new zr(t.data));
8455
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Vr(t.data));
8272
8456
  }
8273
8457
  /**
8274
8458
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -8279,7 +8463,7 @@ class di extends h {
8279
8463
  * в случае ошибок в запросах.
8280
8464
  */
8281
8465
  saveResourceSeoData(r, e = {}) {
8282
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new zr(t.data), e);
8466
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Vr(t.data), e);
8283
8467
  }
8284
8468
  /**
8285
8469
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -8291,7 +8475,7 @@ class di extends h {
8291
8475
  return this.delete(`/internal/seo/${r.slug}/${e}`);
8292
8476
  }
8293
8477
  }
8294
- class Si extends h {
8478
+ class xi extends h {
8295
8479
  /**
8296
8480
  * Возвращает подсказки по адресам.
8297
8481
  *
@@ -8338,8 +8522,8 @@ class Si extends h {
8338
8522
  });
8339
8523
  }
8340
8524
  }
8341
- 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 || {});
8342
- class xs extends lt {
8525
+ 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 || {});
8526
+ class Fs extends pt {
8343
8527
  /**
8344
8528
  * Инициализирует экземпляр класса {@link User}.
8345
8529
  *
@@ -8363,10 +8547,10 @@ class xs extends lt {
8363
8547
  * Роль ценообразования текущего пользователя.
8364
8548
  */
8365
8549
  s(this, "pricingRole");
8366
- 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;
8550
+ 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;
8367
8551
  }
8368
8552
  }
8369
- class $i extends h {
8553
+ class _i extends h {
8370
8554
  /**
8371
8555
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
8372
8556
  */
@@ -8382,17 +8566,17 @@ class $i extends h {
8382
8566
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
8383
8567
  }
8384
8568
  }
8385
- class _s extends h {
8569
+ class Ms extends h {
8386
8570
  /**
8387
8571
  * Возвращает данные о текущем пользователе.
8388
8572
  */
8389
8573
  // eslint-disable-next-line class-methods-use-this
8390
8574
  getCurrentUser() {
8391
- return this.get("/internal/users/info", {}, (r) => new xs(r.data), !0);
8575
+ return this.get("/internal/users/info", {}, (r) => new Fs(r.data), !0);
8392
8576
  }
8393
8577
  }
8394
- const Cr = te("common.user_state_private", () => {
8395
- const n = a({}), r = a(void 0), e = a(void 0);
8578
+ const Rr = ie("common.user_state_private", () => {
8579
+ const n = w({}), r = w(void 0), e = w(void 0);
8396
8580
  return {
8397
8581
  /**
8398
8582
  * Список загружаемых/загруженных на данный момент значений.
@@ -8408,23 +8592,23 @@ const Cr = te("common.user_state_private", () => {
8408
8592
  currentManager: e
8409
8593
  };
8410
8594
  });
8411
- function Er(n) {
8412
- const r = Cr();
8413
- (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) => {
8595
+ function Jr(n) {
8596
+ const r = Rr();
8597
+ (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) => {
8414
8598
  r.currentManager = e;
8415
- }).catch(w).finally(() => {
8599
+ }).catch(C).finally(() => {
8416
8600
  r.dataLoaderList.currentManager = !1;
8417
8601
  }));
8418
8602
  }
8419
- const ki = te("common.user_state", () => {
8420
- const n = P(() => {
8421
- const e = Cr();
8422
- return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(_s).getCurrentUser().then((t) => {
8423
- e.currentUser = t, Er(t);
8424
- }).catch(w).finally(() => {
8603
+ const qi = ie("common.user_state", () => {
8604
+ const n = A(() => {
8605
+ const e = Rr();
8606
+ return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(Ms).getCurrentUser().then((t) => {
8607
+ e.currentUser = t, Jr(t);
8608
+ }).catch(C).finally(() => {
8425
8609
  e.dataLoaderList.currentUser = !1;
8426
8610
  })), e.currentUser;
8427
- }), r = P(() => (Er(n.value), Cr().currentManager));
8611
+ }), r = A(() => (Jr(n.value), Rr().currentManager));
8428
8612
  return {
8429
8613
  /**
8430
8614
  * Данные о текущем пользователе.
@@ -8436,7 +8620,7 @@ const ki = te("common.user_state", () => {
8436
8620
  currentManager: r
8437
8621
  };
8438
8622
  });
8439
- class Dr {
8623
+ class Pr {
8440
8624
  /**
8441
8625
  * Инициализирует экземпляр класса {@link UserRegionEmployee}.
8442
8626
  *
@@ -8454,7 +8638,7 @@ class Dr {
8454
8638
  this.user = new q(r == null ? void 0 : r.user), this.salesDirection = new F(r == null ? void 0 : r.salesDirection);
8455
8639
  }
8456
8640
  }
8457
- class pr extends Ye {
8641
+ class hr extends Ye {
8458
8642
  /**
8459
8643
  * Инициализирует экземпляр класса {@link UserRegion}.
8460
8644
  *
@@ -8471,10 +8655,10 @@ class pr extends Ye {
8471
8655
  * @inheritDoc
8472
8656
  */
8473
8657
  s(this, "users");
8474
- 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))) ?? [];
8658
+ 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))) ?? [];
8475
8659
  }
8476
8660
  }
8477
- class Li extends qe {
8661
+ class Ni extends Ne {
8478
8662
  /**
8479
8663
  * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
8480
8664
  *
@@ -8510,7 +8694,7 @@ class Li extends qe {
8510
8694
  return this;
8511
8695
  }
8512
8696
  }
8513
- class Oi extends Y {
8697
+ class Ui extends Y {
8514
8698
  /**
8515
8699
  * Возвращает список регионов пользователей.
8516
8700
  *
@@ -8531,7 +8715,7 @@ class Oi extends Y {
8531
8715
  * @see /doc/api/internal#/operations/api_internal_user_region_get
8532
8716
  */
8533
8717
  getRegion(r) {
8534
- return this.get(`/internal/users/regions/${r}`, {}, (e) => new pr(e.data));
8718
+ return this.get(`/internal/users/regions/${r}`, {}, (e) => new hr(e.data));
8535
8719
  }
8536
8720
  /**
8537
8721
  * Создаёт новый регион пользователей.
@@ -8544,7 +8728,7 @@ class Oi extends Y {
8544
8728
  * @see /doc/api/internal#/operations/api_internal_user_region_create
8545
8729
  */
8546
8730
  createRegion(r, e = {}) {
8547
- return this.post("/internal/users/regions", r, (t) => new pr(t.data), e);
8731
+ return this.post("/internal/users/regions", r, (t) => new hr(t.data), e);
8548
8732
  }
8549
8733
  /**
8550
8734
  * Изменяет данные о регионе пользователей.
@@ -8558,7 +8742,7 @@ class Oi extends Y {
8558
8742
  * @see /doc/api/internal#/operations/api_internal_user_region_change
8559
8743
  */
8560
8744
  updateRegion(r, e, t = {}) {
8561
- return this.patch(`/internal/users/regions/${r}`, e, (i) => new pr(i.data), t);
8745
+ return this.patch(`/internal/users/regions/${r}`, e, (i) => new hr(i.data), t);
8562
8746
  }
8563
8747
  /**
8564
8748
  * Удаляет регион пользователей.
@@ -8578,7 +8762,7 @@ class Oi extends Y {
8578
8762
  * @see /doc/api/internal#/operations/api_internal_user_region_user_get_list
8579
8763
  */
8580
8764
  getRegionEmployees(r) {
8581
- return this.getTypedList(Dr, `/internal/users/regions/${r}/users`);
8765
+ return this.getTypedList(Pr, `/internal/users/regions/${r}/users`);
8582
8766
  }
8583
8767
  /**
8584
8768
  * Закрепляет сотрудника за регионом по указанному направлению продаж.
@@ -8590,7 +8774,7 @@ class Oi extends Y {
8590
8774
  * @see /doc/api/internal#/operations/api_internal_user_region_user_add
8591
8775
  */
8592
8776
  attachRegionEmployee(r, e, t) {
8593
- return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Dr(i.data));
8777
+ return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Pr(i.data));
8594
8778
  }
8595
8779
  /**
8596
8780
  * Открепляет сотрудника от региона по указанному направлению продаж.
@@ -8609,7 +8793,7 @@ class Oi extends Y {
8609
8793
  });
8610
8794
  }
8611
8795
  }
8612
- class Ii {
8796
+ class Fi {
8613
8797
  /**
8614
8798
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
8615
8799
  *
@@ -8633,190 +8817,195 @@ class Ii {
8633
8817
  }
8634
8818
  }
8635
8819
  export {
8636
- ds as AnyReference,
8637
- rs as AppBaseConfig,
8820
+ Os as AnyReference,
8821
+ is as AppBaseConfig,
8638
8822
  vr as BankAccount,
8639
8823
  Y as BasePaginationProvider,
8640
- ir as BlogPost,
8641
- mr as BlogPostMediaFile,
8642
- He as BlogPostMediaTypeEnum,
8643
- Be as BlogPostPublicationStatusEnum,
8644
- me as BlogPostShortInfo,
8645
- js as BlogPostsListFilters,
8646
- yr as BlogProvider,
8647
- os as CalculationTypeEnum,
8824
+ nr as BlogPost,
8825
+ yr as BlogPostMediaFile,
8826
+ Be as BlogPostMediaTypeEnum,
8827
+ We as BlogPostPublicationStatusEnum,
8828
+ ye as BlogPostShortInfo,
8829
+ Qs as BlogPostsListFilters,
8830
+ ar as BlogProvider,
8831
+ us as CalculationTypeEnum,
8648
8832
  m as CalendarHelper,
8649
8833
  $e as Cart,
8650
- Ys as CartProvider,
8651
- Es as CatalogProvider,
8652
- rt as CatalogableItem,
8653
- z as Category,
8654
- hs as CategoryFilter,
8655
- Mr as CategoryFilterSetting,
8656
- ps as CategoryFilterValue,
8657
- Fr as CategoryPricingRule,
8658
- mt as ChannelPrimaryInterest,
8659
- Ss as City,
8660
- we as CityWithRegionAndCountry,
8661
- Yr as CityWithUserRegion,
8662
- Wr as Client,
8663
- ys as ClientAdditionalData,
8664
- We as ClientCategory,
8665
- M as ClientDataProvider,
8666
- Qs as ClientPriceProvider,
8667
- Js as ClientPriceTemplateProvider,
8834
+ Js as CartProvider,
8835
+ Xs as CatalogProvider,
8836
+ it as CatalogableItem,
8837
+ E as Category,
8838
+ ms as CategoryFilter,
8839
+ Wr as CategoryFilterSetting,
8840
+ fs as CategoryFilterValue,
8841
+ Br as CategoryPricingRule,
8842
+ at as ChannelPrimaryInterest,
8843
+ Is as City,
8844
+ ve as CityWithRegionAndCountry,
8845
+ Qr as CityWithUserRegion,
8846
+ Gr as Client,
8847
+ vs as ClientAdditionalData,
8848
+ ze as ClientCategory,
8849
+ H as ClientDataProvider,
8850
+ Zs as ClientPriceProvider,
8851
+ ei as ClientPriceTemplateProvider,
8668
8852
  J as ClientProduct,
8669
- Xs as ClientProductCategoryDataProvider,
8670
- Zs as ClientProductDataProvider,
8671
- se as ClientShortInfo,
8672
- gs as ClientsAdditionalDataRequestTypeEnum,
8673
- ii as ClientsListFilters,
8674
- xe as CodedIdentity,
8675
- ci as ConfiguratorProvider,
8676
- vs as ConfiguratorsEnum,
8677
- wr as Contact,
8678
- nt as ContactLinks,
8679
- ee as ContactPerson,
8680
- as as ContactPersonRelated,
8681
- $s as ContactPosition,
8682
- cr as ContactRelation,
8683
- ht as ContragentBase,
8853
+ si as ClientProductCategoryDataProvider,
8854
+ ii as ClientProductDataProvider,
8855
+ ne as ClientShortInfo,
8856
+ ys as ClientsAdditionalDataRequestTypeEnum,
8857
+ ui as ClientsListFilters,
8858
+ _e as CodedIdentity,
8859
+ gi as ConfiguratorProvider,
8860
+ Ds as ConfiguratorsEnum,
8861
+ Cr as Contact,
8862
+ ct as ContactLinks,
8863
+ te as ContactPerson,
8864
+ Cs as ContactPersonRelated,
8865
+ xs as ContactPosition,
8866
+ lr as ContactRelation,
8867
+ ft as ContragentBase,
8684
8868
  je as ContragentFactory,
8685
- gt as ContragentIc,
8686
- fs as ContragentPerson,
8687
- ms as ContragentUlNr,
8688
- ft as ContragentUlR,
8689
- dr as CostSourceEnum,
8869
+ mt as ContragentIc,
8870
+ as as ContragentPerson,
8871
+ ws as ContragentUlNr,
8872
+ yt as ContragentUlR,
8873
+ $r as CostSourceEnum,
8690
8874
  ae as Country,
8691
- $r as CuratedDirection,
8692
- kr as Curator,
8875
+ Or as CuratedDirection,
8876
+ Ir as Curator,
8693
8877
  j as Currency,
8694
- Si as DataSuggestionProvider,
8695
- pi as DateTimeProvider,
8696
- pt as DeletableNamedIdentity,
8697
- Oe as DeliveryAddress,
8698
- Q as DeliveryType,
8699
- Kr as DetailedJwtPayload,
8700
- Kt as DeviceTypeResolutionConfig,
8701
- ts as DiscountShortInfo,
8702
- Ii as FieldValidationResultData,
8703
- Z as FilterGroup,
8704
- Nr as FilterItem,
8705
- Tr as FilterOpEnum,
8706
- us as FilterSettings,
8707
- et as GeoCoordinates,
8708
- is as HiddenCatalogableItem,
8709
- _e as HttpCachedRequester,
8710
- Xt as HttpParamsConfig,
8878
+ xi as DataSuggestionProvider,
8879
+ Dr as DateHelper,
8880
+ yi as DateTimeProvider,
8881
+ gt as DeletableNamedIdentity,
8882
+ Ie as DeliveryAddress,
8883
+ V as DeliveryType,
8884
+ et as DetailedJwtPayload,
8885
+ es as DeviceTypeResolutionConfig,
8886
+ ns as DiscountShortInfo,
8887
+ Fi as FieldValidationResultData,
8888
+ re as FilterGroup,
8889
+ Mr as FilterItem,
8890
+ dr as FilterOpEnum,
8891
+ gs as FilterSettings,
8892
+ st as GeoCoordinates,
8893
+ cs as HiddenCatalogableItem,
8894
+ qe as HttpCachedRequester,
8895
+ rs as HttpParamsConfig,
8711
8896
  h as HttpRequester,
8712
8897
  G as Identity,
8713
- ns as Image,
8898
+ ls as Image,
8714
8899
  Re as JwtPayload,
8715
- V as Manager,
8716
- Sr as ManagerCommon,
8717
- mi as ManagerDataFactory,
8718
- wt as ManagerDataProvider,
8719
- Is as MetaTagItem,
8900
+ K as Manager,
8901
+ Lr as ManagerCommon,
8902
+ Ci as ManagerDataFactory,
8903
+ Dt as ManagerDataProvider,
8904
+ Us as MetaTagItem,
8720
8905
  O as NamedIdentity,
8721
- ue as Offer,
8722
- Ct as OfferShortInfo,
8723
- ai as OffersDataProvider,
8724
- yi as OffersListFilters,
8725
- Rt as Operator,
8726
- re as Opf,
8727
- E as OpfEnum,
8906
+ M as Offer,
8907
+ Ps as OfferActualization,
8908
+ Oe as OfferActualizationStatus,
8909
+ Pi as OfferHelper,
8910
+ Rt as OfferShortInfo,
8911
+ Ri as OffersDataProvider,
8912
+ Di as OffersListFilters,
8913
+ bt as Operator,
8914
+ se as Opf,
8915
+ Q as OpfEnum,
8728
8916
  I as Order,
8729
- Ds as OrderAction,
8730
- vi as OrderEditorData,
8731
- Dt as OrderInfo,
8732
- Cs as OrderItem,
8733
- tt as OrderItemBase,
8734
- ks as OrderPaymentStatus,
8735
- at as OrderShortInfo,
8736
- ze as OrderStatus,
8737
- Ls as OrderStatusDetail,
8738
- As as OrderStatusDetailEnum,
8739
- Ts as OrderStatusEnum,
8740
- Rs as OrderStatusHistoryInfo,
8741
- Ci as OrdersDataProvider,
8742
- wi as OrdersListFilters,
8743
- qe as PaginationFiltersBase,
8917
+ Ts as OrderAction,
8918
+ bi as OrderEditorData,
8919
+ Pt as OrderInfo,
8920
+ As as OrderItem,
8921
+ nt as OrderItemBase,
8922
+ _s as OrderPaymentStatus,
8923
+ vt as OrderShortInfo,
8924
+ Ee as OrderStatus,
8925
+ qs as OrderStatusDetail,
8926
+ Ls as OrderStatusDetailEnum,
8927
+ ks as OrderStatusEnum,
8928
+ ds as OrderStatusHistoryInfo,
8929
+ Ti as OrdersDataProvider,
8930
+ Ai as OrdersListFilters,
8931
+ Ne as PaginationFiltersBase,
8744
8932
  Ce as PartnerGroup,
8745
- bt as PaymentType,
8746
- Me as PreferencesStorageProvider,
8747
- lr as PriceAnalyze,
8748
- Ri as PriceAnalyzeProvider,
8933
+ At as PaymentType,
8934
+ He as PreferencesStorageProvider,
8935
+ ur as PriceAnalyze,
8936
+ Si as PriceAnalyzeProvider,
8749
8937
  Ge as PriceCoefficient,
8750
- Zr as PriceCoefficientEnum,
8751
- bi as PriceHistoryDataProvider,
8752
- bs as PriceHistoryItem,
8753
- he as PriceTemplate,
8754
- nr as PriceTemplateCategory,
8938
+ tt as PriceCoefficientEnum,
8939
+ $i as PriceHistoryDataProvider,
8940
+ Ss as PriceHistoryItem,
8941
+ ge as PriceTemplate,
8942
+ or as PriceTemplateCategory,
8755
8943
  ke as PriceTemplateClient,
8756
- ct as PriceTemplateICatalogableItem,
8757
- or as PriceTemplateProduct,
8758
- ei as PriceTemplateProvider,
8944
+ ut as PriceTemplateICatalogableItem,
8945
+ cr as PriceTemplateProduct,
8946
+ ni as PriceTemplateProvider,
8759
8947
  Le as PricingRole,
8760
- ri as PricingRoleProvider,
8761
- ar as PrimaryCatalogableItem,
8948
+ oi as PricingRoleProvider,
8949
+ wr as PrimaryCatalogableItem,
8762
8950
  N as Product,
8763
- Vs as ProductCategoryDataProvider,
8764
- Ks as ProductDataProvider,
8765
- Os as ProductFileType,
8766
- it as ProductFilterTypeEnum,
8767
- Ar as ProductPriceCoefficient,
8768
- Ps as ProductPriceHistory,
8769
- Ur as ProductUnit,
8770
- ti as PropertiesProvider,
8771
- ge as Property,
8772
- ut as PropertyType,
8773
- cs as PropertyTypeEnum,
8774
- le as PropertyValue,
8775
- Pi as RecommendationsDataProvider,
8776
- Gr as RecommendationsList,
8951
+ ri as ProductCategoryDataProvider,
8952
+ ti as ProductDataProvider,
8953
+ Ns as ProductFileType,
8954
+ ot as ProductFilterTypeEnum,
8955
+ Sr as ProductPriceCoefficient,
8956
+ $s as ProductPriceHistory,
8957
+ Hr as ProductUnit,
8958
+ bs as ProfstroyOfferItem,
8959
+ ci as PropertiesProvider,
8960
+ fe as Property,
8961
+ ht as PropertyType,
8962
+ ps as PropertyTypeEnum,
8963
+ pe as PropertyValue,
8964
+ ki as RecommendationsDataProvider,
8965
+ Er as RecommendationsList,
8777
8966
  v as Reference,
8778
- Ti as ReferenceDataFactory,
8967
+ Li as ReferenceDataFactory,
8779
8968
  d as ReferenceDataProvider,
8780
- ve as Region,
8781
- Pt as ResourceType,
8782
- hi as STANDARD_PERIOD_GROUPS,
8783
- gi as STANDARD_PERIOD_SECTIONS,
8969
+ we as Region,
8970
+ Tt as ResourceType,
8971
+ ai as STANDARD_PERIOD_GROUPS,
8972
+ wi as STANDARD_PERIOD_SECTIONS,
8784
8973
  F as SalesDirection,
8785
- Zt as SentryConfig,
8786
- zr as Seo,
8787
- di as SeoDataProvider,
8788
- yt as SourcePrimaryInterest,
8789
- ss as StockCount,
8790
- li as TableDataPagination,
8791
- ws as TableDataPaginationRequestParams,
8792
- ui as TableDataSortRequestParams,
8793
- si as TemplateProductCategoryDataProvider,
8794
- zs as TemplatesListFilters,
8974
+ ts as SentryConfig,
8975
+ Vr as Seo,
8976
+ Ii as SeoDataProvider,
8977
+ wt as SourcePrimaryInterest,
8978
+ os as StockCount,
8979
+ fi as TableDataPagination,
8980
+ Rs as TableDataPaginationRequestParams,
8981
+ mi as TableDataSortRequestParams,
8982
+ li as TemplateProductCategoryDataProvider,
8983
+ Ks as TemplatesListFilters,
8795
8984
  _ as TypedInstanceFactory,
8796
- vt as UnitsHelper,
8797
- ni as UnknownClientDataProvider,
8798
- Xr as UpdatableNamedIdentity,
8799
- xs as User,
8800
- $i as UserAuthDataProvider,
8801
- lt as UserCommonInfo,
8802
- _s as UserDataProvider,
8803
- ot as UserPricingRole,
8804
- pr as UserRegion,
8805
- Dr as UserRegionEmployee,
8806
- Oi as UserRegionProvider,
8985
+ Ct as UnitsHelper,
8986
+ pi as UnknownClientDataProvider,
8987
+ rt as UpdatableNamedIdentity,
8988
+ Fs as User,
8989
+ _i as UserAuthDataProvider,
8990
+ pt as UserCommonInfo,
8991
+ Ms as UserDataProvider,
8992
+ lt as UserPricingRole,
8993
+ hr as UserRegion,
8994
+ Pr as UserRegionEmployee,
8995
+ Ui as UserRegionProvider,
8807
8996
  Ye as UserRegionShortInfo,
8808
- Li as UserRegionsListFilters,
8997
+ Ni as UserRegionsListFilters,
8809
8998
  q as UserShortInfo,
8810
- Tt as UserTypeEnum,
8811
- oi as VersionConfig,
8812
- Ne as Warehouse,
8813
- es as WebSocketConfig,
8814
- Di as currentOrderInjectionKey,
8815
- Hr as findCatalogItemByIdRecursive,
8816
- Br as flattenCatalogItems,
8817
- fi as pluralize,
8818
- sr as useAuthStateStore,
8999
+ dt as UserTypeEnum,
9000
+ hi as VersionConfig,
9001
+ Ue as Warehouse,
9002
+ ss as WebSocketConfig,
9003
+ di as currentOrderInjectionKey,
9004
+ zr as findCatalogItemByIdRecursive,
9005
+ jr as flattenCatalogItems,
9006
+ vi as pluralize,
9007
+ ir as useAuthStateStore,
8819
9008
  k as useBaseConfigStateStore,
8820
- Ai as useReferencesStore,
8821
- ki as useUserStateStore
9009
+ Oi as useReferencesStore,
9010
+ qi as useUserStateStore
8822
9011
  };