@snabcentr/common-lib 3.5.0 → 3.6.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 (46) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +2 -2
  3. package/dist/sc-common-lib.js +1077 -889
  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/days-ago-iso.d.ts +7 -0
  8. package/dist/src/date-time/helpers/days-ago-iso.d.ts.map +1 -0
  9. package/dist/src/date-time/helpers/format-relative-date.d.ts +7 -0
  10. package/dist/src/date-time/helpers/format-relative-date.d.ts.map +1 -0
  11. package/dist/src/date-time/helpers/index.d.ts +2 -0
  12. package/dist/src/date-time/helpers/index.d.ts.map +1 -1
  13. package/dist/src/faq/classes/faq-group.d.ts +14 -0
  14. package/dist/src/faq/classes/faq-group.d.ts.map +1 -0
  15. package/dist/src/faq/classes/faq.d.ts +34 -0
  16. package/dist/src/faq/classes/faq.d.ts.map +1 -0
  17. package/dist/src/faq/classes/index.d.ts +3 -0
  18. package/dist/src/faq/classes/index.d.ts.map +1 -0
  19. package/dist/src/faq/index.d.ts +4 -0
  20. package/dist/src/faq/index.d.ts.map +1 -0
  21. package/dist/src/faq/interfaces/i-faq-group-save-data.d.ts +10 -0
  22. package/dist/src/faq/interfaces/i-faq-group-save-data.d.ts.map +1 -0
  23. package/dist/src/faq/interfaces/i-faq-group.d.ts +7 -0
  24. package/dist/src/faq/interfaces/i-faq-group.d.ts.map +1 -0
  25. package/dist/src/faq/interfaces/i-faq-save-data.d.ts +18 -0
  26. package/dist/src/faq/interfaces/i-faq-save-data.d.ts.map +1 -0
  27. package/dist/src/faq/interfaces/i-faq.d.ts +20 -0
  28. package/dist/src/faq/interfaces/i-faq.d.ts.map +1 -0
  29. package/dist/src/faq/interfaces/index.d.ts +5 -0
  30. package/dist/src/faq/interfaces/index.d.ts.map +1 -0
  31. package/dist/src/faq/providers/faq-provider.d.ts +99 -0
  32. package/dist/src/faq/providers/faq-provider.d.ts.map +1 -0
  33. package/dist/src/faq/providers/index.d.ts +2 -0
  34. package/dist/src/faq/providers/index.d.ts.map +1 -0
  35. package/dist/src/helpers/format-percent-change.d.ts +7 -0
  36. package/dist/src/helpers/format-percent-change.d.ts.map +1 -0
  37. package/dist/src/helpers/index.d.ts +1 -0
  38. package/dist/src/helpers/index.d.ts.map +1 -1
  39. package/dist/src/index.d.ts +1 -0
  40. package/dist/src/index.d.ts.map +1 -1
  41. package/dist/src/references/classes/price-coefficient.d.ts.map +1 -1
  42. package/dist/src/system/classes/named-identity.d.ts +4 -0
  43. package/dist/src/system/classes/named-identity.d.ts.map +1 -1
  44. package/dist/src/system/interfaces/i-named-identity.d.ts +4 -0
  45. package/dist/src/system/interfaces/i-named-identity.d.ts.map +1 -1
  46. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- var It = Object.defineProperty;
2
- var xt = (n, r, e) => r in n ? It(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var s = (n, r, e) => xt(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as tt } from "jwt-decode";
5
- import { merge as xe, isNil as a, isEmpty as Z, noop as C, mapValues as st, isArray as z, every as _t, split as qt, isString as O, startsWith as Nt, endsWith as Ut, includes as Ft, isFunction as Sr, map as De, isObject as $r, isError as Ur, toLower as Mt, isDate as vr, isPlainObject as Ht, isUndefined as He, constant as Bt, toUpper as Wt, cloneDeep as zt, forEach as Et, omitBy as it } from "lodash-es";
6
- import { objectToCamel as kr, objectToSnake as Fr } from "ts-case-convert";
7
- import { defineStore as se } from "pinia";
8
- import { ref as v, markRaw as jt, computed as R } from "vue";
9
- import { isAfter as Mr, parseISO as I, startOfToday as wr, isValid as Gt, format as $, endOfMonth as L, addMonths as A, differenceInCalendarMonths as Yt, startOfMonth as U, getDate as Hr, getDaysInMonth as Qt, endOfDay as W, startOfDay as he, setDate as Vt, startOfWeek as K, addWeeks as Cr, differenceInCalendarDays as rr, addDays as X, addBusinessDays as Jt, startOfYear as le, endOfYear as de, endOfWeek as Ae, endOfTomorrow as Kt, startOfTomorrow as Xt, endOfYesterday as Zt, startOfYesterday as es, endOfToday as rs, startOfQuarter as Se, endOfQuarter as Be, subDays as tr, addYears as sr, addQuarters as ir, subYears as nr, subQuarters as or, subMonths as cr, subWeeks as Br, addSeconds as ts } from "date-fns";
10
- import ss, { CanceledError as is } from "axios";
11
- class Pe {
1
+ var qt = Object.defineProperty;
2
+ var _t = (n, r, e) => r in n ? qt(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 it } from "jwt-decode";
5
+ import { merge as qe, isNil as a, isEmpty as Q, noop as C, mapValues as nt, isArray as G, every as Nt, split as Ft, isString as I, startsWith as Ut, endsWith as Mt, includes as Ht, isFunction as kr, map as V, isObject as Lr, isError as Mr, toLower as Bt, isDate as Dr, isPlainObject as Wt, isUndefined as Be, constant as zt, toUpper as Gt, cloneDeep as Et, forEach as jt, round as Yt, omitBy as ot } from "lodash-es";
6
+ import { objectToCamel as Or, objectToSnake as Hr } from "ts-case-convert";
7
+ import { defineStore as ie } from "pinia";
8
+ import { ref as w, markRaw as Qt, computed as R } from "vue";
9
+ import { isAfter as Br, parseISO as k, startOfToday as _e, isValid as Vt, format as A, endOfMonth as O, addMonths as $, differenceInCalendarMonths as Jt, startOfMonth as F, getDate as Wr, getDaysInMonth as Kt, endOfDay as z, startOfDay as me, setDate as Xt, startOfWeek as Z, addWeeks as Pr, differenceInCalendarDays as Ge, addDays as ee, subDays as Ee, addBusinessDays as Zt, startOfYear as he, endOfYear as $e, endOfWeek as Ae, endOfTomorrow as es, startOfTomorrow as rs, endOfYesterday as ts, startOfYesterday as ss, endOfToday as is, startOfQuarter as Se, endOfQuarter as We, addYears as or, addQuarters as cr, subYears as lr, subQuarters as ur, subMonths as pr, subWeeks as zr, addSeconds as ns } from "date-fns";
10
+ import os, { CanceledError as cs } from "axios";
11
+ class be {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -99,7 +99,7 @@ class Pe {
99
99
  * @inheritDoc
100
100
  */
101
101
  s(this, "email", "");
102
- xe(this, r);
102
+ qe(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -107,11 +107,11 @@ class Pe {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = tt(r), t = new Pe(kr(e));
110
+ const e = it(r), t = new be(Or(e));
111
111
  return t.resourceAccess = e.resource_access, t;
112
112
  }
113
113
  }
114
- class nt extends Pe {
114
+ class ct extends be {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -143,7 +143,7 @@ class nt extends Pe {
143
143
  * @inheritDoc
144
144
  */
145
145
  s(this, "address");
146
- xe(this, e);
146
+ qe(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -151,11 +151,11 @@ class nt extends Pe {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- const t = tt(e), i = new nt(kr(t));
154
+ const t = it(e), i = new ct(Or(t));
155
155
  return i.resourceAccess = t.resource_access, i;
156
156
  }
157
157
  }
158
- class ns {
158
+ class ls {
159
159
  /**
160
160
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
161
161
  *
@@ -177,7 +177,7 @@ class ns {
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 os {
180
+ class us {
181
181
  /**
182
182
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
183
183
  *
@@ -199,7 +199,7 @@ class os {
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 cs {
202
+ class ps {
203
203
  /**
204
204
  * Инициализирует экземпляр класса {@link SentryConfig}.
205
205
  *
@@ -244,7 +244,7 @@ class cs {
244
244
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
245
245
  }
246
246
  }
247
- class ls {
247
+ class hs {
248
248
  /**
249
249
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
250
250
  *
@@ -283,7 +283,7 @@ class ls {
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 us {
286
+ class gs {
287
287
  /**
288
288
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
289
289
  *
@@ -327,18 +327,18 @@ class us {
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 os(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ns(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new cs({
330
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new us(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ls(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new ps({
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 ls(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 hs(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 S = se("common.config", () => {
341
- const n = v(new us());
340
+ const S = ie("common.config", () => {
341
+ const n = w(new gs());
342
342
  return {
343
343
  /**
344
344
  * Конфигурационные данные приложения.
@@ -356,11 +356,11 @@ const S = se("common.config", () => {
356
356
  * @param appConfig Конфигурация приложения.
357
357
  */
358
358
  setConfig: (t) => {
359
- n.value = xe(n.value, t);
359
+ n.value = qe(n.value, t);
360
360
  }
361
361
  };
362
362
  });
363
- class We {
363
+ class je {
364
364
  /**
365
365
  * Возвращает актуальные и не просроченные данные из хранилища.
366
366
  *
@@ -379,8 +379,8 @@ class We {
379
379
  if (e)
380
380
  try {
381
381
  const t = JSON.parse(e);
382
- if (!t.availableFor || Mr(I(t.availableFor) || wr(), /* @__PURE__ */ new Date())) {
383
- if (a(t.data) || Z(t.data))
382
+ if (!t.availableFor || Br(k(t.availableFor) || _e(), /* @__PURE__ */ new Date())) {
383
+ if (a(t.data) || Q(t.data))
384
384
  throw new Error("Data is empty");
385
385
  return t.data;
386
386
  }
@@ -403,7 +403,7 @@ class We {
403
403
  static saveActualDataToStorage(r, e, t) {
404
404
  if (this.isLocalStorageAvailable())
405
405
  try {
406
- if (a(e) || Z(e))
406
+ if (a(e) || Q(e))
407
407
  throw new Error("Data is empty");
408
408
  const i = JSON.stringify({
409
409
  availableFor: t,
@@ -454,7 +454,7 @@ class We {
454
454
  const i = localStorage.getItem(t);
455
455
  if (i) {
456
456
  const o = JSON.parse(i);
457
- o.availableFor && !Mr(I(o.availableFor) || wr(), /* @__PURE__ */ new Date()) && r.push(t);
457
+ o.availableFor && !Br(k(o.availableFor) || _e(), /* @__PURE__ */ new Date()) && r.push(t);
458
458
  }
459
459
  } catch {
460
460
  r.push(t);
@@ -470,19 +470,19 @@ class We {
470
470
  }
471
471
  }
472
472
  }
473
- function Wr(n) {
473
+ function Gr(n) {
474
474
  try {
475
- const r = Pe.getJwtPayload(n);
475
+ const r = be.getJwtPayload(n);
476
476
  return new Date(r.exp * 1e3);
477
477
  } catch {
478
478
  return;
479
479
  }
480
480
  }
481
- const ue = se("common.auth_state_private", () => {
482
- const n = v(
481
+ const ge = ie("common.auth_state_private", () => {
482
+ const n = w(
483
483
  (() => {
484
484
  var u;
485
- const o = We.getActualDataFromStorage(
485
+ const o = je.getActualDataFromStorage(
486
486
  "sc.token"
487
487
  /* JwtToken */
488
488
  );
@@ -491,11 +491,11 @@ const ue = se("common.auth_state_private", () => {
491
491
  const c = (u = S().config.devMode) == null ? void 0 : u.initAuthBearerToken;
492
492
  return c ? Promise.resolve(c) : void 0;
493
493
  })()
494
- ), r = v(void 0), e = v(void 0), t = jt(/* @__PURE__ */ new Map());
494
+ ), r = w(void 0), e = w(void 0), t = Qt(/* @__PURE__ */ new Map());
495
495
  function i() {
496
496
  e.value = void 0, a(n.value) || n.value.then((o) => {
497
- const c = Pe.getJwtPayload(o);
498
- e.value = c.exp * 1e3 > Date.now() ? st(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
+ const c = be.getJwtPayload(o);
498
+ e.value = c.exp * 1e3 > Date.now() ? nt(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
499
499
  }).catch(C);
500
500
  }
501
501
  return {
@@ -520,47 +520,47 @@ const ue = se("common.auth_state_private", () => {
520
520
  */
521
521
  recalculateUserPermissions: i
522
522
  };
523
- }), lr = se("common.auth_state", () => {
523
+ }), hr = ie("common.auth_state", () => {
524
524
  const n = R(() => {
525
- const o = ue();
525
+ const o = ge();
526
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), We.saveActualDataToStorage("sc.token", u, Wr(u)), o.recalculateUserPermissions();
529
+ o.jwtToken = Promise.resolve(u), je.saveActualDataToStorage("sc.token", u, Gr(u)), o.recalculateUserPermissions();
530
530
  }).catch(C);
531
531
  }
532
532
  return o.jwtToken;
533
533
  });
534
534
  function r(o) {
535
- ue().jwtTokenUpdater = o;
535
+ ge().jwtTokenUpdater = o;
536
536
  }
537
537
  function e(o) {
538
- const c = ue();
539
- c.jwtToken = Promise.resolve(o), We.saveActualDataToStorage("sc.token", o, Wr(o)), c.recalculateUserPermissions();
538
+ const c = ge();
539
+ c.jwtToken = Promise.resolve(o), je.saveActualDataToStorage("sc.token", o, Gr(o)), c.recalculateUserPermissions();
540
540
  }
541
541
  function t() {
542
- const o = ue();
543
- o.jwtToken = void 0, o.userPermissions = void 0, We.saveActualDataToStorage("sc.token", void 0);
542
+ const o = ge();
543
+ o.jwtToken = void 0, o.userPermissions = void 0, je.saveActualDataToStorage("sc.token", void 0);
544
544
  }
545
545
  function i(o) {
546
- const c = ue();
546
+ const c = ge();
547
547
  !a(c.jwtToken) && a(c.userPermissions) && c.jwtToken.then((g) => {
548
- const y = Pe.getJwtPayload(g);
549
- c.userPermissions = y.exp * 1e3 > Date.now() ? st(y.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
548
+ const y = be.getJwtPayload(g);
549
+ c.userPermissions = y.exp * 1e3 > Date.now() ? nt(y.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
550
550
  }).catch(C);
551
- const u = z(o) ? o.join(" && ") : o;
551
+ const u = G(o) ? o.join(" && ") : o;
552
552
  if (c.userPermissionsComputedRefs.has(u))
553
553
  return c.userPermissionsComputedRefs.get(u);
554
554
  const p = R(() => {
555
555
  const g = (y) => {
556
- var ce;
557
- const D = qt(y, ".");
556
+ var pe;
557
+ const D = Ft(y, ".");
558
558
  if (D.length < 2)
559
559
  return !1;
560
- const [be, Te] = D, oe = (ce = ue().userPermissions) == null ? void 0 : ce[be];
561
- return z(oe) && oe.includes(Te);
560
+ const [de, Te] = D, ue = (pe = ge().userPermissions) == null ? void 0 : pe[de];
561
+ return G(ue) && ue.includes(Te);
562
562
  };
563
- return z(o) ? _t(o, (y) => g(y)) : g(o);
563
+ return G(o) ? Nt(o, (y) => g(y)) : g(o);
564
564
  });
565
565
  return c.userPermissionsComputedRefs.set(u, p), p;
566
566
  }
@@ -593,8 +593,8 @@ const ue = se("common.auth_state_private", () => {
593
593
  hasUserPermission: i
594
594
  };
595
595
  });
596
- var ze = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(ze || {});
597
- class Re {
596
+ var Ye = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(Ye || {});
597
+ class ne {
598
598
  /**
599
599
  * Инициализирует экземпляр класса {@link Identity}.
600
600
  *
@@ -619,7 +619,7 @@ class Re {
619
619
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : a(this.id);
620
620
  }
621
621
  }
622
- class Dr extends Re {
622
+ class Rr extends ne {
623
623
  /**
624
624
  * Инициализирует экземпляр класса {@link BlogPostMediaFile}.
625
625
  *
@@ -647,23 +647,23 @@ class Dr extends Re {
647
647
  * @inheritDoc
648
648
  */
649
649
  s(this, "urlWebp");
650
- this.mediaType = (e == null ? void 0 : e.mediaType) ?? ze.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) ?? Ye.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 === ze.Image;
656
+ return this.mediaType === Ye.Image;
657
657
  }
658
658
  /**
659
659
  * Возвращает признак того, что медиафайл является видео.
660
660
  */
661
661
  isVideo() {
662
- return this.mediaType === ze.Video;
662
+ return this.mediaType === Ye.Video;
663
663
  }
664
664
  }
665
- var Ee = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(Ee || {});
666
- class Q {
665
+ var Qe = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(Qe || {});
666
+ class J {
667
667
  /**
668
668
  * Преобразует значение даты из данных ответа в дату.
669
669
  * Строки разбираются как ISO-даты; нечитаемое значение равносильно отсутствию даты.
@@ -673,11 +673,11 @@ class Q {
673
673
  static parse(r) {
674
674
  if (a(r))
675
675
  return;
676
- const e = O(r) ? I(r) : r;
677
- return Gt(e) ? e : void 0;
676
+ const e = I(r) ? k(r) : r;
677
+ return Vt(e) ? e : void 0;
678
678
  }
679
679
  }
680
- class Ye extends Re {
680
+ class Xe extends ne {
681
681
  /**
682
682
  * Инициализирует экземпляр класса {@link CreatableIdentity}.
683
683
  *
@@ -690,10 +690,10 @@ class Ye extends Re {
690
690
  * Дата и время создания записи. Если не задана в данных, используется текущий момент.
691
691
  */
692
692
  s(this, "createdAt");
693
- this.createdAt = Q.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
693
+ this.createdAt = J.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
694
694
  }
695
695
  }
696
- class _e extends Ye {
696
+ class Ne extends Xe {
697
697
  /**
698
698
  * Инициализирует экземпляр класса {@link BlogPostShortInfo}.
699
699
  *
@@ -713,7 +713,7 @@ class _e extends Ye {
713
713
  * @inheritDoc
714
714
  */
715
715
  s(this, "publishedAt");
716
- this.slug = (e == null ? void 0 : e.slug) ?? "", this.title = (e == null ? void 0 : e.title) ?? "", this.publishedAt = _e.parseDate(e == null ? void 0 : e.publishedAt);
716
+ this.slug = (e == null ? void 0 : e.slug) ?? "", this.title = (e == null ? void 0 : e.title) ?? "", this.publishedAt = Ne.parseDate(e == null ? void 0 : e.publishedAt);
717
717
  }
718
718
  /**
719
719
  * Возвращает состояние публикации статьи по дате её публикации.
@@ -721,7 +721,7 @@ class _e extends Ye {
721
721
  * @param publishedAt Дата и время публикации статьи.
722
722
  */
723
723
  static resolvePublicationStatus(e) {
724
- return a(e) ? Ee.Draft : e.getTime() > Date.now() ? Ee.Scheduled : Ee.Published;
724
+ return a(e) ? Qe.Draft : e.getTime() > Date.now() ? Qe.Scheduled : Qe.Published;
725
725
  }
726
726
  /**
727
727
  * Возвращает описание ошибки символьного обозначения статьи либо пустую строку,
@@ -733,7 +733,7 @@ class _e extends Ye {
733
733
  * @param slug Символьное обозначение статьи.
734
734
  */
735
735
  static getSlugError(e) {
736
- return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : Nt(e, "-") || Ut(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Ft(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
736
+ return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : Ut(e, "-") || Mt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Ht(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
737
737
  }
738
738
  /**
739
739
  * Преобразует значение даты, полученное из API, в объект {@link Date}.
@@ -741,16 +741,16 @@ class _e extends Ye {
741
741
  * @param value Значение даты.
742
742
  */
743
743
  static parseDate(e) {
744
- return a(e) ? null : O(e) ? I(e) : e;
744
+ return a(e) ? null : I(e) ? k(e) : e;
745
745
  }
746
746
  /**
747
747
  * Возвращает состояние публикации статьи.
748
748
  */
749
749
  getPublicationStatus() {
750
- return _e.resolvePublicationStatus(this.publishedAt);
750
+ return Ne.resolvePublicationStatus(this.publishedAt);
751
751
  }
752
752
  }
753
- class ur extends _e {
753
+ class gr extends Ne {
754
754
  /**
755
755
  * Инициализирует экземпляр класса {@link BlogPost}.
756
756
  *
@@ -766,7 +766,7 @@ class ur extends _e {
766
766
  * @inheritDoc
767
767
  */
768
768
  s(this, "media");
769
- this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new Dr(t));
769
+ this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new Rr(t));
770
770
  }
771
771
  /**
772
772
  * Возвращает данные статьи для отправки на портал.
@@ -797,7 +797,7 @@ class ur extends _e {
797
797
  return this.media.filter((e) => e.isUnused);
798
798
  }
799
799
  }
800
- class Ue {
800
+ class Me {
801
801
  /**
802
802
  * Возвращает очищенное значение фильтров, содержащие
803
803
  * только актуальные данные.
@@ -807,7 +807,7 @@ class Ue {
807
807
  return Object.keys(this).forEach((e) => {
808
808
  const t = this[e];
809
809
  a(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
810
- O(t) && t.trim().length === 0 || Sr(t.isNewRec) && t.isNewRec() || (r[e] = t);
810
+ I(t) && t.trim().length === 0 || kr(t.isNewRec) && t.isNewRec() || (r[e] = t);
811
811
  }), r;
812
812
  }
813
813
  }
@@ -826,10 +826,10 @@ class b {
826
826
  * Окончание периода.
827
827
  */
828
828
  s(this, "to");
829
- this.from = O(r == null ? void 0 : r.from) ? I(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = O(r == null ? void 0 : r.to) ? I(r.to) : (r == null ? void 0 : r.to) ?? null;
829
+ this.from = I(r == null ? void 0 : r.from) ? k(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = I(r == null ? void 0 : r.to) ? k(r.to) : (r == null ? void 0 : r.to) ?? null;
830
830
  }
831
831
  }
832
- class ei extends Ue {
832
+ class ii extends Me {
833
833
  /**
834
834
  * Инициализирует экземпляр класса {@link BlogPostsListFilters}.
835
835
  *
@@ -931,9 +931,9 @@ class x {
931
931
  * @throws TypeError Если вместо списка данных получены данные другого типа.
932
932
  */
933
933
  static instanceListInitializer(r, e) {
934
- if (!z(e))
934
+ if (!G(e))
935
935
  throw new TypeError(`Ожидался список данных для инициализации "${r.name}", получены данные типа "${typeof e}".`);
936
- return De(e, (t) => x.instanceInitializer(r, t));
936
+ return V(e, (t) => x.instanceInitializer(r, t));
937
937
  }
938
938
  }
939
939
  const P = class P {
@@ -975,7 +975,7 @@ const P = class P {
975
975
  // eslint-disable-next-line class-methods-use-this
976
976
  s(this, "authRequestInterceptor", async (r) => {
977
977
  let e;
978
- return a(lr().jwtToken) || (e = await lr().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
978
+ return a(hr().jwtToken) || (e = await hr().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
979
979
  });
980
980
  /**
981
981
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -990,7 +990,7 @@ const P = class P {
990
990
  * @param request Данные запроса.
991
991
  */
992
992
  // eslint-disable-next-line class-methods-use-this
993
- s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Fr(r.params)), ["put", "patch", "post"].includes(Mt(r.method)) && r.data && (r.data = Fr(r.data))), r));
993
+ s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Hr(r.params)), ["put", "patch", "post"].includes(Bt(r.method)) && r.data && (r.data = Hr(r.data))), r));
994
994
  /**
995
995
  * Перехватчик ошибок ответов на запрос.
996
996
  *
@@ -999,7 +999,7 @@ const P = class P {
999
999
  s(this, "authErrorsResponseInterceptors", (r) => {
1000
1000
  var t;
1001
1001
  const e = r.rawError ? (t = r.rawError) == null ? void 0 : t.config : void 0;
1002
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (lr().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1002
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (hr().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
1003
1003
  });
1004
1004
  /**
1005
1005
  * Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
@@ -1010,7 +1010,7 @@ const P = class P {
1010
1010
  s(this, "canceledResponseInterceptor", (r) => {
1011
1011
  const e = r.rawError ?? r;
1012
1012
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
1013
- throw new is("Request canceled");
1013
+ throw new cs("Request canceled");
1014
1014
  return Promise.reject(r);
1015
1015
  });
1016
1016
  /**
@@ -1026,8 +1026,8 @@ const P = class P {
1026
1026
  * @param response Данные ответа на запрос.
1027
1027
  */
1028
1028
  // eslint-disable-next-line class-methods-use-this
1029
- s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = kr(r.data)), r));
1030
- this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = ss.create({
1029
+ s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Or(r.data)), r));
1030
+ this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = os.create({
1031
1031
  headers: {
1032
1032
  Accept: "application/json",
1033
1033
  "Content-Type": "application/json"
@@ -1102,12 +1102,12 @@ const P = class P {
1102
1102
  * @param error Данные об ошибке.
1103
1103
  */
1104
1104
  static toHttpResponseError(r) {
1105
- return $r(r) && "status" in r ? r : {
1105
+ return Lr(r) && "status" in r ? r : {
1106
1106
  status: 0,
1107
1107
  statusText: "Invalid response data",
1108
- message: Ur(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1108
+ message: Mr(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1109
1109
  headers: {},
1110
- rawError: Ur(r) ? r : new Error(String(r))
1110
+ rawError: Mr(r) ? r : new Error(String(r))
1111
1111
  };
1112
1112
  }
1113
1113
  /**
@@ -1241,8 +1241,8 @@ s(P, "requestHooks", []), /**
1241
1241
  */
1242
1242
  s(P, "responseHooks", []);
1243
1243
  let h = P;
1244
- var Lr = /* @__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))(Lr || {});
1245
- class zr {
1244
+ var Ir = /* @__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))(Ir || {});
1245
+ class Er {
1246
1246
  /**
1247
1247
  * Инициализирует экземпляр класса {@link FilterItem}.
1248
1248
  *
@@ -1261,7 +1261,7 @@ class zr {
1261
1261
  * Значение с которым сравнивается поле.
1262
1262
  */
1263
1263
  s(this, "value");
1264
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Lr.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
1264
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Ir.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
1265
1265
  }
1266
1266
  /**
1267
1267
  * Преобразует фильтр в примитивное представление для API.
@@ -1273,20 +1273,20 @@ class zr {
1273
1273
  field: this.field,
1274
1274
  op: this.op
1275
1275
  };
1276
- if (vr(this.value))
1277
- e.value = $(this.value, r);
1278
- else if (Ht(this.value)) {
1276
+ if (Dr(this.value))
1277
+ e.value = A(this.value, r);
1278
+ else if (Wt(this.value)) {
1279
1279
  const t = this.value;
1280
1280
  e.value = {
1281
- from: t.from ? $(t.from, r) : null,
1282
- to: t.to ? $(t.to, r) : null
1281
+ from: t.from ? A(t.from, r) : null,
1282
+ to: t.to ? A(t.to, r) : null
1283
1283
  };
1284
1284
  } else
1285
1285
  e.value = this.value;
1286
1286
  return e;
1287
1287
  }
1288
1288
  }
1289
- class ee {
1289
+ class re {
1290
1290
  /**
1291
1291
  * Инициализирует экземпляр класса {@link FilterGroup}.
1292
1292
  *
@@ -1306,7 +1306,7 @@ class ee {
1306
1306
  */
1307
1307
  s(this, "groups");
1308
1308
  var e, t;
1309
- 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 zr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new ee(i))) ?? [];
1309
+ 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 Er(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new re(i))) ?? [];
1310
1310
  }
1311
1311
  /**
1312
1312
  * Преобразует группу фильтров в примитивное представление для API.
@@ -1316,12 +1316,12 @@ class ee {
1316
1316
  toPrimitive() {
1317
1317
  return {
1318
1318
  groupOp: this.groupOp,
1319
- filters: this.filters.map((r) => r instanceof zr && Sr(r.toPrimitive) ? r.toPrimitive() : r),
1320
- groups: this.groups.map((r) => r instanceof ee ? r.toPrimitive() : r)
1319
+ filters: this.filters.map((r) => r instanceof Er && kr(r.toPrimitive) ? r.toPrimitive() : r),
1320
+ groups: this.groups.map((r) => r instanceof re ? r.toPrimitive() : r)
1321
1321
  };
1322
1322
  }
1323
1323
  }
1324
- class j extends h {
1324
+ class M extends h {
1325
1325
  /**
1326
1326
  * Получает пагинированный список данных.
1327
1327
  *
@@ -1339,7 +1339,7 @@ class j extends h {
1339
1339
  page: (i == null ? void 0 : i.page) ?? 1,
1340
1340
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
1341
1341
  };
1342
- return e && (g.filters = JSON.stringify((e instanceof ee ? e : new ee(e)).toPrimitive())), Z(t) || (g.sort = z(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1342
+ return e && (g.filters = JSON.stringify((e instanceof re ? e : new re(e)).toPrimitive())), Q(t) || (g.sort = G(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1343
1343
  }
1344
1344
  /**
1345
1345
  * Получает пагинированный список экземпляров указанного класса.
@@ -1369,7 +1369,7 @@ class j extends h {
1369
1369
  );
1370
1370
  }
1371
1371
  }
1372
- class Pr extends j {
1372
+ class br extends M {
1373
1373
  /**
1374
1374
  * Возвращает данные статьи блога, подготовленные для отправки на портал.
1375
1375
  *
@@ -1380,9 +1380,9 @@ class Pr extends j {
1380
1380
  */
1381
1381
  static preparePostSaveData(r) {
1382
1382
  const e = {};
1383
- if (He(r.title) || (e.title = r.title), He(r.slug) || (e.slug = r.slug), He(r.content) || (e.content = r.content), !He(r.publishedAt)) {
1383
+ if (Be(r.title) || (e.title = r.title), Be(r.slug) || (e.slug = r.slug), Be(r.content) || (e.content = r.content), !Be(r.publishedAt)) {
1384
1384
  const t = S().config.dateFormats.api;
1385
- e.publishedAt = a(r.publishedAt) ? null : $(r.publishedAt, t);
1385
+ e.publishedAt = a(r.publishedAt) ? null : A(r.publishedAt, t);
1386
1386
  }
1387
1387
  return e;
1388
1388
  }
@@ -1402,7 +1402,7 @@ class Pr extends j {
1402
1402
  return this.getPaginated("/internal/blog", r, e, t, {}, (i) => ({
1403
1403
  ...i.data,
1404
1404
  // eslint-disable-next-line lodash/prefer-lodash-method
1405
- data: i.data.data.map((o) => new _e(o))
1405
+ data: i.data.data.map((o) => new Ne(o))
1406
1406
  }));
1407
1407
  }
1408
1408
  /**
@@ -1413,7 +1413,7 @@ class Pr extends j {
1413
1413
  * @see /doc/api/internal#/operations/api_internal_blog_get
1414
1414
  */
1415
1415
  getPost(r) {
1416
- return this.get(`/internal/blog/${r}`, {}, (e) => new ur(e.data));
1416
+ return this.get(`/internal/blog/${r}`, {}, (e) => new gr(e.data));
1417
1417
  }
1418
1418
  /**
1419
1419
  * Создаёт новую статью блога.
@@ -1426,7 +1426,7 @@ class Pr extends j {
1426
1426
  * @see /doc/api/internal#/operations/api_internal_blog_create
1427
1427
  */
1428
1428
  createPost(r, e = {}) {
1429
- return this.post("/internal/blog", Pr.preparePostSaveData(r), (t) => new ur(t.data), e);
1429
+ return this.post("/internal/blog", br.preparePostSaveData(r), (t) => new gr(t.data), e);
1430
1430
  }
1431
1431
  /**
1432
1432
  * Изменяет данные о статье блога.
@@ -1440,7 +1440,7 @@ class Pr extends j {
1440
1440
  * @see /doc/api/internal#/operations/api_internal_blog_update
1441
1441
  */
1442
1442
  updatePost(r, e, t = {}) {
1443
- return this.patch(`/internal/blog/${r}`, Pr.preparePostSaveData(e), (i) => new ur(i.data), t);
1443
+ return this.patch(`/internal/blog/${r}`, br.preparePostSaveData(e), (i) => new gr(i.data), t);
1444
1444
  }
1445
1445
  /**
1446
1446
  * Удаляет статью блога.
@@ -1475,7 +1475,7 @@ class Pr extends j {
1475
1475
  i && i(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1476
1476
  }
1477
1477
  },
1478
- (c) => new Dr(c.data),
1478
+ (c) => new Rr(c.data),
1479
1479
  o
1480
1480
  );
1481
1481
  }
@@ -1495,7 +1495,7 @@ class Pr extends j {
1495
1495
  return this.patch(
1496
1496
  `/internal/blog/${r}/media/${e}`,
1497
1497
  { isCover: t },
1498
- (o) => new Dr(o.data),
1498
+ (o) => new Rr(o.data),
1499
1499
  i
1500
1500
  );
1501
1501
  }
@@ -1513,7 +1513,7 @@ class Pr extends j {
1513
1513
  return this.delete(`/internal/blog/${r}/media/${e}`);
1514
1514
  }
1515
1515
  }
1516
- class N extends Re {
1516
+ class _ extends ne {
1517
1517
  /**
1518
1518
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1519
1519
  *
@@ -1527,8 +1527,14 @@ class N extends Re {
1527
1527
  s(this, "name", "");
1528
1528
  this.name = (e == null ? void 0 : e.name) ?? "";
1529
1529
  }
1530
+ /**
1531
+ * @inheritdoc
1532
+ */
1533
+ nameOrGuid() {
1534
+ return Q(this.name) ? this.guid : this.name;
1535
+ }
1530
1536
  }
1531
- class Qe extends N {
1537
+ class Ze extends _ {
1532
1538
  /**
1533
1539
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1534
1540
  *
@@ -1544,10 +1550,10 @@ class Qe extends N {
1544
1550
  * Дата и время последнего изменения.
1545
1551
  */
1546
1552
  s(this, "updatedAt");
1547
- this.createdAt = Q.parse(e == null ? void 0 : e.createdAt), this.updatedAt = Q.parse(e == null ? void 0 : e.updatedAt);
1553
+ this.createdAt = J.parse(e == null ? void 0 : e.createdAt), this.updatedAt = J.parse(e == null ? void 0 : e.updatedAt);
1548
1554
  }
1549
1555
  }
1550
- class Ve extends Qe {
1556
+ class er extends Ze {
1551
1557
  /**
1552
1558
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1553
1559
  *
@@ -1559,10 +1565,10 @@ class Ve extends Qe {
1559
1565
  * Дата и время последнего удаления.
1560
1566
  */
1561
1567
  s(this, "deletedAt");
1562
- this.deletedAt = Q.parse(e == null ? void 0 : e.deletedAt);
1568
+ this.deletedAt = J.parse(e == null ? void 0 : e.deletedAt);
1563
1569
  }
1564
1570
  }
1565
- class _ extends N {
1571
+ class q extends _ {
1566
1572
  /**
1567
1573
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1568
1574
  *
@@ -1581,7 +1587,7 @@ class _ extends N {
1581
1587
  this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
1582
1588
  }
1583
1589
  }
1584
- class ps extends Ve {
1590
+ class fs extends er {
1585
1591
  /**
1586
1592
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1587
1593
  *
@@ -1613,10 +1619,10 @@ class ps extends Ve {
1613
1619
  * Краткие данные о пользователе.
1614
1620
  */
1615
1621
  s(this, "owner");
1616
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = O(e == null ? void 0 : e.publishedAt) ? I(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 _(e == null ? void 0 : e.owner);
1622
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = I(e == null ? void 0 : e.publishedAt) ? k(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);
1617
1623
  }
1618
1624
  }
1619
- class ge extends Qe {
1625
+ class ye extends Ze {
1620
1626
  /**
1621
1627
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1622
1628
  *
@@ -1632,11 +1638,11 @@ class ge extends Qe {
1632
1638
  * Данные о пользователе, создавшем шаблон прайс-листа.
1633
1639
  */
1634
1640
  s(this, "owner");
1635
- this.description = (e == null ? void 0 : e.description) ?? "", this.owner = e != null && e.owner ? new _(e.owner) : void 0;
1641
+ this.description = (e == null ? void 0 : e.description) ?? "", this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1636
1642
  }
1637
1643
  }
1638
- var ot = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ot || {});
1639
- class w extends N {
1644
+ var lt = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(lt || {});
1645
+ class v extends _ {
1640
1646
  /**
1641
1647
  * Инициализирует экземпляр класса {@link Reference}.
1642
1648
  *
@@ -1655,15 +1661,21 @@ class w extends N {
1655
1661
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
1656
1662
  }
1657
1663
  }
1658
- class Fe extends w {
1664
+ class oe extends v {
1659
1665
  /**
1660
1666
  * Возвращает значение справочника коэффициента розничной цены.
1661
1667
  */
1662
1668
  static getRetailPriceCoefficient() {
1663
- return { id: -2, slug: ot.Retail, name: "Розн. цена", guid: "", isNewRec: Bt(!0) };
1669
+ const r = new oe({
1670
+ id: -2,
1671
+ slug: lt.Retail,
1672
+ name: "Розн. цена",
1673
+ guid: ""
1674
+ });
1675
+ return r.isNewRec = zt(!0), r;
1664
1676
  }
1665
1677
  }
1666
- class Or {
1678
+ class xr {
1667
1679
  /**
1668
1680
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
1669
1681
  *
@@ -1690,10 +1702,10 @@ class Or {
1690
1702
  * Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
1691
1703
  */
1692
1704
  s(this, "readOnly");
1693
- this.coefficient = new Fe(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;
1705
+ this.coefficient = new oe(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
1694
1706
  }
1695
1707
  }
1696
- class ct {
1708
+ class ut {
1697
1709
  /**
1698
1710
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
1699
1711
  *
@@ -1711,9 +1723,9 @@ class ct {
1711
1723
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
1712
1724
  }
1713
1725
  }
1714
- class V extends w {
1726
+ class K extends v {
1715
1727
  }
1716
- class Me extends w {
1728
+ class He extends v {
1717
1729
  /**
1718
1730
  * Инициализирует экземпляр класса {@link Warehouse}.
1719
1731
  *
@@ -1742,10 +1754,10 @@ class Me extends w {
1742
1754
  * Координаты склада.
1743
1755
  */
1744
1756
  s(this, "coordinates");
1745
- 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 ct(e == null ? void 0 : e.coordinates);
1757
+ 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 K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new ut(e == null ? void 0 : e.coordinates);
1746
1758
  }
1747
1759
  }
1748
- class hs {
1760
+ class ms {
1749
1761
  /**
1750
1762
  * Инициализирует экземпляр класса {@link StockCount}.
1751
1763
  *
@@ -1760,10 +1772,10 @@ class hs {
1760
1772
  * Количество остатков товара на складе.
1761
1773
  */
1762
1774
  s(this, "count");
1763
- this.warehouse = new Me(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1775
+ this.warehouse = new He(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1764
1776
  }
1765
1777
  }
1766
- class E extends N {
1778
+ class E extends _ {
1767
1779
  /**
1768
1780
  * Инициализирует экземпляр класса {@link Currency}.
1769
1781
  *
@@ -1790,7 +1802,7 @@ class E extends N {
1790
1802
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
1791
1803
  }
1792
1804
  }
1793
- class Er extends N {
1805
+ class jr extends _ {
1794
1806
  /**
1795
1807
  * Инициализирует экземпляр класса {@link ProductUnit}.
1796
1808
  *
@@ -1817,7 +1829,7 @@ class Er extends N {
1817
1829
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1818
1830
  }
1819
1831
  }
1820
- class qe extends N {
1832
+ class Fe extends _ {
1821
1833
  /**
1822
1834
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1823
1835
  *
@@ -1832,7 +1844,7 @@ class qe extends N {
1832
1844
  this.code = (e == null ? void 0 : e.code) ?? "";
1833
1845
  }
1834
1846
  }
1835
- class lt extends qe {
1847
+ class pt extends Fe {
1836
1848
  /**
1837
1849
  * Инициализирует экземпляр класса {@link CatalogableItem}.
1838
1850
  *
@@ -1851,7 +1863,7 @@ class lt extends qe {
1851
1863
  this.slug = (e == null ? void 0 : e.slug) ?? "";
1852
1864
  }
1853
1865
  }
1854
- class gs extends lt {
1866
+ class ys extends pt {
1855
1867
  /**
1856
1868
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
1857
1869
  *
@@ -1866,7 +1878,7 @@ class gs extends lt {
1866
1878
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
1867
1879
  }
1868
1880
  }
1869
- class fs {
1881
+ class as {
1870
1882
  /**
1871
1883
  * Инициализирует экземпляр класса {@link Image}.
1872
1884
  *
@@ -1889,7 +1901,7 @@ class fs {
1889
1901
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
1890
1902
  }
1891
1903
  }
1892
- class Rr extends lt {
1904
+ class dr extends pt {
1893
1905
  /**
1894
1906
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
1895
1907
  *
@@ -1904,7 +1916,7 @@ class Rr extends lt {
1904
1916
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
1905
1917
  }
1906
1918
  }
1907
- class q extends gs {
1919
+ class N extends ys {
1908
1920
  /**
1909
1921
  * Инициализирует экземпляр класса {@link Product}.
1910
1922
  *
@@ -1981,9 +1993,9 @@ class q extends gs {
1981
1993
  * Список коэффициентов цен на продукт.
1982
1994
  */
1983
1995
  s(this, "priceCoefficients");
1984
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Er(e.unit) : new Er(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new E(e.currency) : new E(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = O(e == null ? void 0 : e.costDate) ? I(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 hs(p))) ?? [], this.type = "product";
1996
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new jr(e.unit) : new jr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new E(e.currency) : new E(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = I(e == null ? void 0 : e.costDate) ? k(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 ms(p))) ?? [], this.type = "product";
1985
1997
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
1986
- t && (this.category = new Rr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Rr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new fs(p, S().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Or(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1998
+ t && (this.category = new dr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new dr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new as(p, S().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new xr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1987
1999
  }
1988
2000
  /**
1989
2001
  * Возвращает признак, что это измеряемый товар.
@@ -2004,8 +2016,8 @@ class q extends gs {
2004
2016
  return this.retailCostRub ?? this.costRub;
2005
2017
  }
2006
2018
  }
2007
- var Ir = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ir || {});
2008
- class ye extends q {
2019
+ var qr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(qr || {});
2020
+ class ve extends N {
2009
2021
  /**
2010
2022
  * Инициализирует экземпляр класса {@link ClientProduct}.
2011
2023
  *
@@ -2049,10 +2061,10 @@ class ye extends q {
2049
2061
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
2050
2062
  */
2051
2063
  s(this, "isFavorite");
2052
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ir.Product, this.discount = e != null && e.discount ? new ps(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new ge(e.priceTemplate) : void 0, this.priceCoefficient = e != null && e.priceCoefficient ? new Fe(e.priceCoefficient) : void 0, this.increasePercent = e == null ? void 0 : e.increasePercent, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2064
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? qr.Product, this.discount = e != null && e.discount ? new fs(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new ye(e.priceTemplate) : void 0, this.priceCoefficient = e != null && e.priceCoefficient ? new oe(e.priceCoefficient) : void 0, this.increasePercent = e == null ? void 0 : e.increasePercent, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2053
2065
  }
2054
2066
  }
2055
- class ie extends Rr {
2067
+ class ce extends dr {
2056
2068
  /**
2057
2069
  * Инициализирует экземпляр класса {@link BaseCategory}.
2058
2070
  *
@@ -2076,10 +2088,10 @@ class ie extends Rr {
2076
2088
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
2077
2089
  */
2078
2090
  s(this, "currencyRates");
2079
- 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]) => [Wt(t), i])) : void 0;
2091
+ 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]) => [Gt(t), i])) : void 0;
2080
2092
  }
2081
2093
  }
2082
- class ut extends Re {
2094
+ class ht extends ne {
2083
2095
  /**
2084
2096
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2085
2097
  *
@@ -2155,10 +2167,10 @@ class ut extends Re {
2155
2167
  * @inheritDoc
2156
2168
  */
2157
2169
  s(this, "replacementId");
2158
- this.product = new ye(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ie(), this.currency = e.currency ? new E(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && zt(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new _(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2170
+ this.product = new ve(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ce(), this.currency = e.currency ? new E(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Et(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;
2159
2171
  }
2160
2172
  }
2161
- let xr = class extends ut {
2173
+ let _r = class extends ht {
2162
2174
  /**
2163
2175
  * Инициализирует экземпляр класса {@link OrderItem}.
2164
2176
  *
@@ -2202,10 +2214,10 @@ let xr = class extends ut {
2202
2214
  * @inheritDoc
2203
2215
  */
2204
2216
  s(this, "currency");
2205
- 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 E(e.currency);
2217
+ 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 = G(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new E(e.currency);
2206
2218
  }
2207
2219
  };
2208
- class $e {
2220
+ class ke {
2209
2221
  /**
2210
2222
  * Инициализирует экземпляр класса {@link Cart}.
2211
2223
  *
@@ -2224,10 +2236,10 @@ class $e {
2224
2236
  * @inheritDoc
2225
2237
  */
2226
2238
  s(this, "directionsSum");
2227
- this.items = r.items.map((e) => new xr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2239
+ this.items = r.items.map((e) => new _r(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2228
2240
  }
2229
2241
  }
2230
- class ti extends h {
2242
+ class oi extends h {
2231
2243
  /**
2232
2244
  * Возвращает содержимое корзины указанного клиента.
2233
2245
  *
@@ -2236,7 +2248,7 @@ class ti extends h {
2236
2248
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
2237
2249
  */
2238
2250
  getCart(r) {
2239
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new $e(e.data));
2251
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ke(e.data));
2240
2252
  }
2241
2253
  /**
2242
2254
  * Удаляет всё содержимое корзины.
@@ -2274,7 +2286,7 @@ class ti extends h {
2274
2286
  is_additional_sale: e.isAdditionalSale,
2275
2287
  ...e.configuratorParams
2276
2288
  },
2277
- (i) => new $e(i.data),
2289
+ (i) => new ke(i.data),
2278
2290
  t
2279
2291
  );
2280
2292
  }
@@ -2304,7 +2316,7 @@ class ti extends h {
2304
2316
  is_additional_sale: e.isAdditionalSale,
2305
2317
  ...e.configuratorParams
2306
2318
  },
2307
- (i) => new $e(i.data),
2319
+ (i) => new ke(i.data),
2308
2320
  t
2309
2321
  );
2310
2322
  }
@@ -2317,7 +2329,7 @@ class ti extends h {
2317
2329
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_delete_item
2318
2330
  */
2319
2331
  deleteCartItem(r, e) {
2320
- return this.delete(`internal/clients/${r.id}/cart/${e.id}`, (t) => new $e(t.data));
2332
+ return this.delete(`internal/clients/${r.id}/cart/${e.id}`, (t) => new ke(t.data));
2321
2333
  }
2322
2334
  /**
2323
2335
  * Добавляет продукты в корзину из файла CSV.
@@ -2328,7 +2340,7 @@ class ti extends h {
2328
2340
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
2329
2341
  */
2330
2342
  addCartItemFromCSV(r, e) {
2331
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (t) => new $e(t.data));
2343
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (t) => new ke(t.data));
2332
2344
  }
2333
2345
  /**
2334
2346
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -2341,8 +2353,8 @@ class ti extends h {
2341
2353
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
2342
2354
  }
2343
2355
  }
2344
- var ms = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ms || {}), ys = /* @__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))(ys || {}), pt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(pt || {});
2345
- class G extends ie {
2356
+ var ws = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ws || {}), vs = /* @__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))(vs || {}), gt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(gt || {});
2357
+ class j extends ce {
2346
2358
  /**
2347
2359
  * Инициализирует экземпляр класса {@link Category}.
2348
2360
  *
@@ -2359,10 +2371,10 @@ class G extends ie {
2359
2371
  * Список продуктов категории.
2360
2372
  */
2361
2373
  s(this, "products");
2362
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new G(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new q(o));
2374
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new j(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new N(o));
2363
2375
  }
2364
2376
  }
2365
- class ht {
2377
+ class ft {
2366
2378
  /**
2367
2379
  * Инициализирует экземпляр класса {@link ContactLinks}.
2368
2380
  *
@@ -2380,9 +2392,9 @@ class ht {
2380
2392
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
2381
2393
  }
2382
2394
  }
2383
- class F extends w {
2395
+ class U extends v {
2384
2396
  }
2385
- class _r extends Qe {
2397
+ class Nr extends Ze {
2386
2398
  /**
2387
2399
  * Инициализирует экземпляр класса {@link ManagerCommon}.
2388
2400
  *
@@ -2410,12 +2422,12 @@ class _r extends Qe {
2410
2422
  * @inheritDoc
2411
2423
  */
2412
2424
  s(this, "isRegionalDirector");
2413
- 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 ht(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2425
+ this.salesDirection = e != null && e.salesDirection ? new U(e.salesDirection) : new U(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new ft(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2414
2426
  }
2415
2427
  }
2416
- class qr extends w {
2428
+ class Fr extends v {
2417
2429
  }
2418
- class gt extends N {
2430
+ class mt extends _ {
2419
2431
  /**
2420
2432
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
2421
2433
  *
@@ -2438,7 +2450,7 @@ class gt extends N {
2438
2450
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
2439
2451
  }
2440
2452
  }
2441
- class Je extends N {
2453
+ class rr extends _ {
2442
2454
  /**
2443
2455
  * Инициализирует экземпляр класса {@link UserRegionShortInfo}.
2444
2456
  *
@@ -2453,7 +2465,7 @@ class Je extends N {
2453
2465
  this.abbr = (e == null ? void 0 : e.abbr) ?? "";
2454
2466
  }
2455
2467
  }
2456
- class J extends _r {
2468
+ class X extends Nr {
2457
2469
  /**
2458
2470
  * Инициализирует экземпляр класса {@link Manager}.
2459
2471
  *
@@ -2506,10 +2518,10 @@ class J extends _r {
2506
2518
  * Дата и время последнего входа в систему.
2507
2519
  */
2508
2520
  s(this, "lastLoginAt");
2509
- this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new gt(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new qr(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 Je(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new J(c)), this.lastLoginAt = O(e == null ? void 0 : e.lastLoginAt) ? I(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2521
+ this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new mt(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Fr(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 rr(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new X(c)), this.lastLoginAt = I(e == null ? void 0 : e.lastLoginAt) ? k(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2510
2522
  }
2511
2523
  }
2512
- class as extends ie {
2524
+ class Cs extends ce {
2513
2525
  /**
2514
2526
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
2515
2527
  *
@@ -2537,10 +2549,10 @@ class as extends ie {
2537
2549
  * Данные о менеджере за которым закреплена категория.
2538
2550
  */
2539
2551
  s(this, "manager");
2540
- 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 J(e.manager) : void 0;
2552
+ this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new X(e.manager) : void 0;
2541
2553
  }
2542
2554
  }
2543
- class je extends as {
2555
+ class Je extends Cs {
2544
2556
  /**
2545
2557
  * Инициализирует экземпляр класса {@link ClientCategory}.
2546
2558
  *
@@ -2557,10 +2569,10 @@ class je extends as {
2557
2569
  * Список продуктов категории.
2558
2570
  */
2559
2571
  s(this, "products");
2560
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new je(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new ye(o));
2572
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Je(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new ve(o));
2561
2573
  }
2562
2574
  }
2563
- class ft {
2575
+ class yt {
2564
2576
  /**
2565
2577
  * Инициализирует экземпляр класса {@link PriceCatalogableItem}.
2566
2578
  *
@@ -2575,10 +2587,10 @@ class ft {
2575
2587
  * Процент, который прибавляется к значению выбранного коэффициента.
2576
2588
  */
2577
2589
  s(this, "increasePercent");
2578
- this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Fe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2590
+ this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new oe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2579
2591
  }
2580
2592
  }
2581
- class mt extends ft {
2593
+ class at extends yt {
2582
2594
  /**
2583
2595
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
2584
2596
  *
@@ -2588,7 +2600,7 @@ class mt extends ft {
2588
2600
  super(r);
2589
2601
  }
2590
2602
  }
2591
- class pr extends mt {
2603
+ class fr extends at {
2592
2604
  /**
2593
2605
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2594
2606
  *
@@ -2600,10 +2612,10 @@ class pr extends mt {
2600
2612
  * Базовые данные о продукте.
2601
2613
  */
2602
2614
  s(this, "productCategory");
2603
- this.productCategory = new ie(e == null ? void 0 : e.productCategory);
2615
+ this.productCategory = new ce(e == null ? void 0 : e.productCategory);
2604
2616
  }
2605
2617
  }
2606
- class Nr extends N {
2618
+ class Ur extends _ {
2607
2619
  /**
2608
2620
  * Инициализирует экземпляр класса {@link Curator}.
2609
2621
  *
@@ -2623,12 +2635,12 @@ class Nr extends N {
2623
2635
  * @inheritDoc
2624
2636
  */
2625
2637
  s(this, "curatedDirection");
2626
- this.photo = e.photo, this.contacts = new ht(e.contacts), this.curatedDirection = new qr(e.curatedDirection);
2638
+ this.photo = e.photo, this.contacts = new ft(e.contacts), this.curatedDirection = new Fr(e.curatedDirection);
2627
2639
  }
2628
2640
  }
2629
- class ae extends w {
2641
+ class Ce extends v {
2630
2642
  }
2631
- class ve extends w {
2643
+ class De extends v {
2632
2644
  /**
2633
2645
  * Инициализирует экземпляр класса {@link Region}.
2634
2646
  *
@@ -2639,11 +2651,11 @@ class ve extends w {
2639
2651
  /**
2640
2652
  * Данные о стране, в которой расположен регион.
2641
2653
  */
2642
- s(this, "country", new ae());
2643
- e && (this.country = new ae(e.country));
2654
+ s(this, "country", new Ce());
2655
+ e && (this.country = new Ce(e.country));
2644
2656
  }
2645
2657
  }
2646
- class we extends w {
2658
+ class Pe extends v {
2647
2659
  /**
2648
2660
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
2649
2661
  *
@@ -2654,11 +2666,11 @@ class we extends w {
2654
2666
  /**
2655
2667
  * Данные о регионе, в котором расположен город.
2656
2668
  */
2657
- s(this, "region", new ve());
2658
- e && (this.region = new ve(e.region));
2669
+ s(this, "region", new De());
2670
+ e && (this.region = new De(e.region));
2659
2671
  }
2660
2672
  }
2661
- class yt extends Qe {
2673
+ class wt extends Ze {
2662
2674
  /**
2663
2675
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2664
2676
  *
@@ -2690,10 +2702,10 @@ class yt extends Qe {
2690
2702
  * Признак активности учетной записи пользователя.
2691
2703
  */
2692
2704
  s(this, "isActive");
2693
- 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.lastLoginAt = O(e == null ? void 0 : e.lastLoginAt) ? I(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2705
+ 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 U(e.salesDirection) : void 0, this.lastLoginAt = I(e == null ? void 0 : e.lastLoginAt) ? k(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2694
2706
  }
2695
2707
  }
2696
- class ne extends yt {
2708
+ class le extends wt {
2697
2709
  /**
2698
2710
  * Инициализирует экземпляр класса {@link Client}.
2699
2711
  *
@@ -2739,10 +2751,10 @@ class ne extends yt {
2739
2751
  * @inheritDoc
2740
2752
  */
2741
2753
  s(this, "curators");
2742
- 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 _r(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Nr(o))) ?? void 0;
2754
+ this.salesDirection = new U(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 Pe(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 Nr(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Ur(o))) ?? void 0;
2743
2755
  }
2744
2756
  }
2745
- class vs extends Ye {
2757
+ class Ds extends Xe {
2746
2758
  /**
2747
2759
  * Инициализирует экземпляр класса {@link DeletableIdentity}.
2748
2760
  *
@@ -2755,10 +2767,10 @@ class vs extends Ye {
2755
2767
  * Дата и время удаления записи.
2756
2768
  */
2757
2769
  s(this, "deletedAt");
2758
- this.deletedAt = Q.parse(e == null ? void 0 : e.deletedAt);
2770
+ this.deletedAt = J.parse(e == null ? void 0 : e.deletedAt);
2759
2771
  }
2760
2772
  }
2761
- class ke extends vs {
2773
+ class Le extends Ds {
2762
2774
  /**
2763
2775
  * Инициализирует новый экземпляр класса.
2764
2776
  *
@@ -2774,10 +2786,10 @@ class ke extends vs {
2774
2786
  * Данные шаблона прайс-листа.
2775
2787
  */
2776
2788
  s(this, "priceTemplate");
2777
- this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new ge(e == null ? void 0 : e.priceTemplate);
2789
+ this.client = new le(e == null ? void 0 : e.client), this.priceTemplate = new ye(e == null ? void 0 : e.priceTemplate);
2778
2790
  }
2779
2791
  }
2780
- class hr extends mt {
2792
+ class mr extends at {
2781
2793
  /**
2782
2794
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2783
2795
  *
@@ -2789,12 +2801,12 @@ class hr extends mt {
2789
2801
  * Базовые данные о продукте.
2790
2802
  */
2791
2803
  s(this, "product");
2792
- this.product = new q(e == null ? void 0 : e.product);
2804
+ this.product = new N(e == null ? void 0 : e.product);
2793
2805
  }
2794
2806
  }
2795
- class at extends w {
2807
+ class vt extends v {
2796
2808
  }
2797
- class fe extends N {
2809
+ class ae extends _ {
2798
2810
  /**
2799
2811
  * Инициализирует экземпляр класса {@link Property}.
2800
2812
  *
@@ -2818,10 +2830,10 @@ class fe extends N {
2818
2830
  * Признак того, что по свойству может производиться фильтрация в каталоге.
2819
2831
  */
2820
2832
  s(this, "isFilterable");
2821
- this.type = new at(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;
2833
+ this.type = new vt(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;
2822
2834
  }
2823
2835
  }
2824
- class pe {
2836
+ class fe {
2825
2837
  /**
2826
2838
  * Инициализирует экземпляр класса {@link PropertyValue}.
2827
2839
  *
@@ -2837,10 +2849,10 @@ class pe {
2837
2849
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2838
2850
  */
2839
2851
  s(this, "value");
2840
- this.property = new fe(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2852
+ this.property = new ae(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2841
2853
  }
2842
2854
  }
2843
- class si {
2855
+ class ci {
2844
2856
  /**
2845
2857
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2846
2858
  *
@@ -2905,11 +2917,11 @@ class si {
2905
2917
  return Object.keys(this).forEach((c) => {
2906
2918
  const u = this[c];
2907
2919
  // eslint-disable-next-line prettier/prettier
2908
- a(u) || O(u) && u.trim().length === 0 || Sr(u.isNewRec) && u.isNewRec() || (r[c] = u);
2920
+ a(u) || I(u) && u.trim().length === 0 || kr(u.isNewRec) && u.isNewRec() || (r[c] = u);
2909
2921
  }), !((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;
2910
2922
  }
2911
2923
  }
2912
- class vt extends ft {
2924
+ class Ct extends yt {
2913
2925
  /**
2914
2926
  * Инициализирует экземпляр класса {@link ClientPriceCatalogableItem}.
2915
2927
  *
@@ -2925,10 +2937,10 @@ class vt extends ft {
2925
2937
  * Дата и время создания записи.
2926
2938
  */
2927
2939
  s(this, "createdAt");
2928
- this.executor = e != null && e.executor ? new _(e.executor) : void 0, this.createdAt = Q.parse(e == null ? void 0 : e.createdAt);
2940
+ this.executor = e != null && e.executor ? new q(e.executor) : void 0, this.createdAt = J.parse(e == null ? void 0 : e.createdAt);
2929
2941
  }
2930
2942
  }
2931
- class gr extends vt {
2943
+ class yr extends Ct {
2932
2944
  /**
2933
2945
  * Инициализирует экземпляр класса {@link ClientPriceProduct}.
2934
2946
  *
@@ -2940,10 +2952,10 @@ class gr extends vt {
2940
2952
  * Базовые данные о продукте.
2941
2953
  */
2942
2954
  s(this, "product");
2943
- this.product = new q(e == null ? void 0 : e.product);
2955
+ this.product = new N(e == null ? void 0 : e.product);
2944
2956
  }
2945
2957
  }
2946
- class jr extends vt {
2958
+ class Yr extends Ct {
2947
2959
  /**
2948
2960
  * Инициализирует экземпляр класса {@link ClientPriceCategory}.
2949
2961
  *
@@ -2955,10 +2967,10 @@ class jr extends vt {
2955
2967
  * Базовые данные о категории.
2956
2968
  */
2957
2969
  s(this, "productCategory");
2958
- this.productCategory = new ie(e == null ? void 0 : e.productCategory);
2970
+ this.productCategory = new ce(e == null ? void 0 : e.productCategory);
2959
2971
  }
2960
2972
  }
2961
- class Le extends N {
2973
+ class Oe extends _ {
2962
2974
  /**
2963
2975
  * Инициализирует экземпляр класса {@link PricingRole}.
2964
2976
  *
@@ -2993,7 +3005,7 @@ class Le extends N {
2993
3005
  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;
2994
3006
  }
2995
3007
  }
2996
- class Gr {
3008
+ class Qr {
2997
3009
  /**
2998
3010
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2999
3011
  *
@@ -3012,10 +3024,10 @@ class Gr {
3012
3024
  * Минимальный коэффициент цены.
3013
3025
  */
3014
3026
  s(this, "minCoefficient");
3015
- this.role = new Le(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new Fe(r == null ? void 0 : r.minCoefficient);
3027
+ this.role = new Oe(r == null ? void 0 : r.role), this.category = new ce(r == null ? void 0 : r.category), this.minCoefficient = new oe(r == null ? void 0 : r.minCoefficient);
3016
3028
  }
3017
3029
  }
3018
- class ws {
3030
+ class Ps {
3019
3031
  /**
3020
3032
  * Инициализирует экземпляр класса {@link FilterSettings}.
3021
3033
  *
@@ -3048,7 +3060,7 @@ class ws {
3048
3060
  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;
3049
3061
  }
3050
3062
  }
3051
- class Yr {
3063
+ class Vr {
3052
3064
  /**
3053
3065
  * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
3054
3066
  *
@@ -3067,10 +3079,10 @@ class Yr {
3067
3079
  * @inheritDoc
3068
3080
  */
3069
3081
  s(this, "settings");
3070
- this.category = new ie(r == null ? void 0 : r.category), this.property = new fe(r == null ? void 0 : r.property), this.settings = new ws(r == null ? void 0 : r.settings);
3082
+ this.category = new ce(r == null ? void 0 : r.category), this.property = new ae(r == null ? void 0 : r.property), this.settings = new Ps(r == null ? void 0 : r.settings);
3071
3083
  }
3072
3084
  }
3073
- class Cs {
3085
+ class Rs {
3074
3086
  /**
3075
3087
  * Инициализирует экземпляр класса {@link CategoryFilterValue}.
3076
3088
  *
@@ -3088,7 +3100,7 @@ class Cs {
3088
3100
  this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
3089
3101
  }
3090
3102
  }
3091
- class Ds {
3103
+ class bs {
3092
3104
  /**
3093
3105
  * Инициализирует экземпляр класса {@link CategoryFilter}.
3094
3106
  *
@@ -3131,10 +3143,10 @@ class Ds {
3131
3143
  */
3132
3144
  s(this, "max");
3133
3145
  var e;
3134
- this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? pt.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 Cs(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3146
+ this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? gt.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 Rs(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3135
3147
  }
3136
3148
  }
3137
- class ii extends h {
3149
+ class li extends h {
3138
3150
  /**
3139
3151
  * Возвращает данные о результатах поиска категорий и товаров.
3140
3152
  *
@@ -3165,7 +3177,7 @@ class ii extends h {
3165
3177
  return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
3166
3178
  }
3167
3179
  }
3168
- class ni extends h {
3180
+ class ui extends h {
3169
3181
  /**
3170
3182
  * Импортирует цены клиента из CSV файла.
3171
3183
  *
@@ -3185,7 +3197,7 @@ class ni extends h {
3185
3197
  * @see /doc/api/internal#/operations/api_internal_client_price_categories_get_list
3186
3198
  */
3187
3199
  getCategoryPrices(r) {
3188
- return this.getTypedList(jr, `/internal/clients/${r}/price/categories`);
3200
+ return this.getTypedList(Yr, `/internal/clients/${r}/price/categories`);
3189
3201
  }
3190
3202
  /**
3191
3203
  * Возвращает цену прайс-листа клиента, установленную на категорию.
@@ -3196,7 +3208,7 @@ class ni extends h {
3196
3208
  * @see /doc/api/internal#/operations/api_internal_client_price_categories_get
3197
3209
  */
3198
3210
  getCategoryPrice(r, e) {
3199
- return this.get(`/internal/clients/${r}/price/categories/${e}`, {}, (t) => new jr(t.data));
3211
+ return this.get(`/internal/clients/${r}/price/categories/${e}`, {}, (t) => new Yr(t.data));
3200
3212
  }
3201
3213
  /**
3202
3214
  * Устанавливает цену прайс-листа клиента на категорию.
@@ -3328,7 +3340,7 @@ class ni extends h {
3328
3340
  * @see /doc/api/internal#/operations/api_internal_client_price_products_get_list
3329
3341
  */
3330
3342
  getProductPrices(r) {
3331
- return this.getTypedList(gr, `/internal/clients/${r}/price/products`);
3343
+ return this.getTypedList(yr, `/internal/clients/${r}/price/products`);
3332
3344
  }
3333
3345
  /**
3334
3346
  * Возвращает цену прайс-листа клиента, установленную на продукт.
@@ -3339,7 +3351,7 @@ class ni extends h {
3339
3351
  * @see /doc/api/internal#/operations/api_internal_client_price_products_get
3340
3352
  */
3341
3353
  getProductPrice(r, e) {
3342
- return this.get(`/internal/clients/${r}/price/products/${e}`, {}, (t) => new gr(t.data));
3354
+ return this.get(`/internal/clients/${r}/price/products/${e}`, {}, (t) => new yr(t.data));
3343
3355
  }
3344
3356
  /**
3345
3357
  * Устанавливает цену прайс-листа клиента на продукт.
@@ -3358,7 +3370,7 @@ class ni extends h {
3358
3370
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3359
3371
  increase_percent: t.value
3360
3372
  },
3361
- (o) => new gr(o.data)
3373
+ (o) => new yr(o.data)
3362
3374
  );
3363
3375
  }
3364
3376
  /**
@@ -3433,7 +3445,7 @@ class ni extends h {
3433
3445
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3434
3446
  }
3435
3447
  }
3436
- class oi extends h {
3448
+ class pi extends h {
3437
3449
  /**
3438
3450
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3439
3451
  *
@@ -3442,7 +3454,7 @@ class oi extends h {
3442
3454
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_list
3443
3455
  */
3444
3456
  getTemplateList(r) {
3445
- return this.getTypedList(ke, `/internal/clients/${r}/price/templates`);
3457
+ return this.getTypedList(Le, `/internal/clients/${r}/price/templates`);
3446
3458
  }
3447
3459
  /**
3448
3460
  * Возвращает действующий шаблон прайс листа привязанный к клиенту.
@@ -3452,7 +3464,7 @@ class oi extends h {
3452
3464
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
3453
3465
  */
3454
3466
  getActiveTemplate(r) {
3455
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new ke(e.data), !0);
3467
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new Le(e.data), !0);
3456
3468
  }
3457
3469
  /**
3458
3470
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -3468,10 +3480,10 @@ class oi extends h {
3468
3480
  return this.post(
3469
3481
  `/internal/clients/${r}/price/templates/${e}`,
3470
3482
  t && {
3471
- startAt: t.startAt && $(t.startAt, i),
3472
- endAt: t.endAt && $(t.endAt, i)
3483
+ startAt: t.startAt && A(t.startAt, i),
3484
+ endAt: t.endAt && A(t.endAt, i)
3473
3485
  },
3474
- (o) => new ke(o.data),
3486
+ (o) => new Le(o.data),
3475
3487
  {},
3476
3488
  !0
3477
3489
  );
@@ -3502,10 +3514,10 @@ class oi extends h {
3502
3514
  return this.patch(
3503
3515
  `/internal/clients/${r}/price/templates/${e}/${t}`,
3504
3516
  i && {
3505
- startAt: i.startAt && $(i.startAt, o),
3506
- endAt: i.endAt && $(i.endAt, o)
3517
+ startAt: i.startAt && A(i.startAt, o),
3518
+ endAt: i.endAt && A(i.endAt, o)
3507
3519
  },
3508
- (c) => new ke(c.data)
3520
+ (c) => new Le(c.data)
3509
3521
  );
3510
3522
  }
3511
3523
  /**
@@ -3521,7 +3533,7 @@ class oi extends h {
3521
3533
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
3522
3534
  }
3523
3535
  }
3524
- class ci extends h {
3536
+ class hi extends h {
3525
3537
  /**
3526
3538
  * Возвращает список данных о корневых категориях.
3527
3539
  *
@@ -3530,7 +3542,7 @@ class ci extends h {
3530
3542
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3531
3543
  */
3532
3544
  getRootCategoriesList(r = !1) {
3533
- return this.getTypedList(G, "/internal/catalog/categories", {
3545
+ return this.getTypedList(j, "/internal/catalog/categories", {
3534
3546
  showHidden: r
3535
3547
  });
3536
3548
  }
@@ -3550,7 +3562,7 @@ class ci extends h {
3550
3562
  showHidden: e,
3551
3563
  withNestedCategories: t
3552
3564
  },
3553
- (i) => new G(i.data)
3565
+ (i) => new j(i.data)
3554
3566
  );
3555
3567
  }
3556
3568
  /**
@@ -3559,7 +3571,7 @@ class ci extends h {
3559
3571
  * @param categoryID Идентификатор категории продуктов.
3560
3572
  */
3561
3573
  getPublicCategoryData(r) {
3562
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new G(e.data));
3574
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new j(e.data));
3563
3575
  }
3564
3576
  /**
3565
3577
  * Возвращает список продуктов категории.
@@ -3577,7 +3589,7 @@ class ci extends h {
3577
3589
  showHidden: t,
3578
3590
  withPriceCoefficients: e
3579
3591
  },
3580
- (i) => De(i.data, (o) => new q(o))
3592
+ (i) => V(i.data, (o) => new N(o))
3581
3593
  );
3582
3594
  }
3583
3595
  /**
@@ -3590,7 +3602,7 @@ class ci extends h {
3590
3602
  getCategoryProductsCoefficients(r) {
3591
3603
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
3592
3604
  const { data: t } = e;
3593
- return Et(t, (i) => i.map((o) => new Or(o))), t;
3605
+ return jt(t, (i) => i.map((o) => new xr(o))), t;
3594
3606
  });
3595
3607
  }
3596
3608
  /**
@@ -3602,14 +3614,14 @@ class ci extends h {
3602
3614
  publicSimpleSearch(r, e = 10) {
3603
3615
  return new Promise((t, i) => {
3604
3616
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3605
- t(o.categories.map((c) => new G(c)));
3617
+ t(o.categories.map((c) => new j(c)));
3606
3618
  }).catch((o) => {
3607
3619
  i(o);
3608
3620
  });
3609
3621
  });
3610
3622
  }
3611
3623
  }
3612
- class li extends j {
3624
+ class gi extends M {
3613
3625
  /**
3614
3626
  * Возвращает данные об указанном продукте.
3615
3627
  *
@@ -3619,7 +3631,7 @@ class li extends j {
3619
3631
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
3620
3632
  */
3621
3633
  getProductData(r, e = !1) {
3622
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new q(t.data));
3634
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new N(t.data));
3623
3635
  }
3624
3636
  /**
3625
3637
  * Возвращает публичные данные об указанном продукте.
@@ -3627,7 +3639,7 @@ class li extends j {
3627
3639
  * @param productId Идентификатор продукта.
3628
3640
  */
3629
3641
  getPublicProductData(r) {
3630
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new q(e.data));
3642
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new N(e.data));
3631
3643
  }
3632
3644
  /**
3633
3645
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -3640,7 +3652,7 @@ class li extends j {
3640
3652
  return this.get(
3641
3653
  `/internal/catalog/products/${r}/coefficients`,
3642
3654
  {},
3643
- (e) => De(e.data, (t) => new Or(t))
3655
+ (e) => V(e.data, (t) => new xr(t))
3644
3656
  );
3645
3657
  }
3646
3658
  /**
@@ -3654,8 +3666,8 @@ class li extends j {
3654
3666
  */
3655
3667
  getNewProducts(r, e, t = !0) {
3656
3668
  const i = S().config.dateFormats.api;
3657
- return this.getTypedPaginated(q, "/internal/catalog/products/new", void 0, void 0, e, {
3658
- period: { from: $(r, i) },
3669
+ return this.getTypedPaginated(N, "/internal/catalog/products/new", void 0, void 0, e, {
3670
+ period: { from: A(r, i) },
3659
3671
  withPriceCoefficients: t
3660
3672
  });
3661
3673
  }
@@ -3668,14 +3680,14 @@ class li extends j {
3668
3680
  publicSimpleSearch(r, e = 10) {
3669
3681
  return new Promise((t, i) => {
3670
3682
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3671
- t(o.products.map((c) => new q(c)));
3683
+ t(o.products.map((c) => new N(c)));
3672
3684
  }).catch((o) => {
3673
3685
  i(o);
3674
3686
  });
3675
3687
  });
3676
3688
  }
3677
3689
  }
3678
- class ui extends h {
3690
+ class fi extends h {
3679
3691
  /**
3680
3692
  * Возвращает список данных о корневых категориях указанного клиента.
3681
3693
  *
@@ -3685,7 +3697,7 @@ class ui extends h {
3685
3697
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3686
3698
  */
3687
3699
  getRootCategoriesList(r, e = !1) {
3688
- return this.getTypedList(je, "/internal/catalog/categories", {
3700
+ return this.getTypedList(Je, "/internal/catalog/categories", {
3689
3701
  clientId: r,
3690
3702
  showHidden: e
3691
3703
  });
@@ -3708,7 +3720,7 @@ class ui extends h {
3708
3720
  showHidden: t,
3709
3721
  withNestedCategories: i
3710
3722
  },
3711
- (o) => new je(o.data)
3723
+ (o) => new Je(o.data)
3712
3724
  );
3713
3725
  }
3714
3726
  /**
@@ -3729,11 +3741,11 @@ class ui extends h {
3729
3741
  showHidden: i,
3730
3742
  withPriceCoefficients: t
3731
3743
  },
3732
- (o) => De(o.data, (c) => new ye(c))
3744
+ (o) => V(o.data, (c) => new ve(c))
3733
3745
  );
3734
3746
  }
3735
3747
  }
3736
- class pi extends j {
3748
+ class mi extends M {
3737
3749
  /**
3738
3750
  * Возвращает данные об указанном продукте для указанного клиента.
3739
3751
  *
@@ -3750,7 +3762,7 @@ class pi extends j {
3750
3762
  clientId: e,
3751
3763
  withPriceCoefficients: t
3752
3764
  },
3753
- (i) => new ye(i.data)
3765
+ (i) => new ve(i.data)
3754
3766
  );
3755
3767
  }
3756
3768
  /**
@@ -3765,14 +3777,14 @@ class pi extends j {
3765
3777
  */
3766
3778
  getNewProducts(r, e, t, i = !0) {
3767
3779
  const o = S().config.dateFormats.api;
3768
- return this.getTypedPaginated(ye, "/internal/catalog/products/new", void 0, void 0, t, {
3780
+ return this.getTypedPaginated(ve, "/internal/catalog/products/new", void 0, void 0, t, {
3769
3781
  clientId: r,
3770
- period: { from: $(e, o) },
3782
+ period: { from: A(e, o) },
3771
3783
  withPriceCoefficients: i
3772
3784
  });
3773
3785
  }
3774
3786
  }
3775
- class hi extends j {
3787
+ class yi extends M {
3776
3788
  /**
3777
3789
  * Возвращает список шаблонов прайс-листа.
3778
3790
  *
@@ -3783,7 +3795,7 @@ class hi extends j {
3783
3795
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
3784
3796
  */
3785
3797
  getTemplateList(r, e, t) {
3786
- return this.getTypedPaginated(ge, "/internal/price/templates", r, e, t);
3798
+ return this.getTypedPaginated(ye, "/internal/price/templates", r, e, t);
3787
3799
  }
3788
3800
  /**
3789
3801
  * Создание нового шаблона прайс-листа.
@@ -3795,7 +3807,7 @@ class hi extends j {
3795
3807
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
3796
3808
  */
3797
3809
  createTemplate(r, e = {}) {
3798
- return this.post("/internal/price/templates", r, (t) => new ge(t.data), e);
3810
+ return this.post("/internal/price/templates", r, (t) => new ye(t.data), e);
3799
3811
  }
3800
3812
  /**
3801
3813
  * Возвращает данные о шаблоне прайс-листа.
@@ -3805,7 +3817,7 @@ class hi extends j {
3805
3817
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
3806
3818
  */
3807
3819
  getTemplate(r) {
3808
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new ge(e.data));
3820
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new ye(e.data));
3809
3821
  }
3810
3822
  /**
3811
3823
  * Изменяет данные о шаблоне прайс-листа.
@@ -3818,7 +3830,7 @@ class hi extends j {
3818
3830
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
3819
3831
  */
3820
3832
  updateTemplate(r, e, t = {}) {
3821
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new ge(i.data), t);
3833
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new ye(i.data), t);
3822
3834
  }
3823
3835
  /**
3824
3836
  * Удаляет данные о шаблоне прайс-листа.
@@ -3838,7 +3850,7 @@ class hi extends j {
3838
3850
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get_list
3839
3851
  */
3840
3852
  getProductTemplatePrices(r) {
3841
- return this.getTypedList(hr, `/internal/price/templates/${r}/products`);
3853
+ return this.getTypedList(mr, `/internal/price/templates/${r}/products`);
3842
3854
  }
3843
3855
  /**
3844
3856
  * Возвращает данные о цене на продукт в шаблоне прайс-листа.
@@ -3849,7 +3861,7 @@ class hi extends j {
3849
3861
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
3850
3862
  */
3851
3863
  getProductTemplatePrice(r, e) {
3852
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new hr(t.data));
3864
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new mr(t.data));
3853
3865
  }
3854
3866
  /**
3855
3867
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3868,7 +3880,7 @@ class hi extends j {
3868
3880
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3869
3881
  increase_percent: t.value
3870
3882
  },
3871
- (o) => new hr(o.data)
3883
+ (o) => new mr(o.data)
3872
3884
  );
3873
3885
  }
3874
3886
  /**
@@ -3890,7 +3902,7 @@ class hi extends j {
3890
3902
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_get_list
3891
3903
  */
3892
3904
  getCategoryTemplatePrices(r) {
3893
- return this.getTypedList(pr, `/internal/price/templates/${r}/categories`);
3905
+ return this.getTypedList(fr, `/internal/price/templates/${r}/categories`);
3894
3906
  }
3895
3907
  /**
3896
3908
  * Возвращает данные о цене на категорию продуктов в шаблоне прайс-листа.
@@ -3904,7 +3916,7 @@ class hi extends j {
3904
3916
  return this.get(
3905
3917
  `/internal/price/templates/${r}/categories/${e}`,
3906
3918
  {},
3907
- (t) => new pr(t.data)
3919
+ (t) => new fr(t.data)
3908
3920
  );
3909
3921
  }
3910
3922
  /**
@@ -3930,7 +3942,7 @@ class hi extends j {
3930
3942
  },
3931
3943
  params: i ? { recursively: !0 } : {}
3932
3944
  },
3933
- (c) => new pr(c.data)
3945
+ (c) => new fr(c.data)
3934
3946
  );
3935
3947
  }
3936
3948
  /**
@@ -3958,17 +3970,17 @@ class hi extends j {
3958
3970
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_clients_get_list
3959
3971
  */
3960
3972
  getTemplateClients(r) {
3961
- return this.getTypedList(ke, `/internal/price/templates/${r}/clients`);
3973
+ return this.getTypedList(Le, `/internal/price/templates/${r}/clients`);
3962
3974
  }
3963
3975
  }
3964
- class gi extends h {
3976
+ class ai extends h {
3965
3977
  /**
3966
3978
  * Возвращает список ролей ценообразования.
3967
3979
  *
3968
3980
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
3969
3981
  */
3970
3982
  getRoles() {
3971
- return this.getTypedList(Le, "/internal/price/roles");
3983
+ return this.getTypedList(Oe, "/internal/price/roles");
3972
3984
  }
3973
3985
  /**
3974
3986
  * Добавляет новую роль ценообразования.
@@ -3978,7 +3990,7 @@ class gi extends h {
3978
3990
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
3979
3991
  */
3980
3992
  createRole(r) {
3981
- return this.post("/internal/price/roles", r, (e) => new Le(e.data));
3993
+ return this.post("/internal/price/roles", r, (e) => new Oe(e.data));
3982
3994
  }
3983
3995
  /**
3984
3996
  * Возвращает данные роли ценообразования.
@@ -3988,7 +4000,7 @@ class gi extends h {
3988
4000
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
3989
4001
  */
3990
4002
  getRole(r) {
3991
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new Le(e.data));
4003
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new Oe(e.data));
3992
4004
  }
3993
4005
  /**
3994
4006
  * Обновляет данные роли ценообразования.
@@ -3999,7 +4011,7 @@ class gi extends h {
3999
4011
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
4000
4012
  */
4001
4013
  updateRole(r, e) {
4002
- return this.patch(`/internal/price/roles/${r}`, e, (t) => new Le(t.data));
4014
+ return this.patch(`/internal/price/roles/${r}`, e, (t) => new Oe(t.data));
4003
4015
  }
4004
4016
  /**
4005
4017
  * Удаляет роль ценообразования.
@@ -4019,7 +4031,7 @@ class gi extends h {
4019
4031
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
4020
4032
  */
4021
4033
  getCategoryRules(r) {
4022
- return this.getTypedList(Gr, `/internal/price/roles/rules/categories/${r}`);
4034
+ return this.getTypedList(Qr, `/internal/price/roles/rules/categories/${r}`);
4023
4035
  }
4024
4036
  /**
4025
4037
  * Обновляет правила для роли ценообразования по указанной категории.
@@ -4033,11 +4045,11 @@ class gi extends h {
4033
4045
  return this.patch(
4034
4046
  `/internal/price/roles/rules/categories/${r}`,
4035
4047
  e,
4036
- (t) => x.instanceListInitializer(Gr, t.data)
4048
+ (t) => x.instanceListInitializer(Qr, t.data)
4037
4049
  );
4038
4050
  }
4039
4051
  }
4040
- class fi extends j {
4052
+ class wi extends M {
4041
4053
  /**
4042
4054
  * Возвращает пагинированный список свойств.
4043
4055
  *
@@ -4048,7 +4060,7 @@ class fi extends j {
4048
4060
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get_list
4049
4061
  */
4050
4062
  getProperties(r, e, t) {
4051
- return this.getTypedPaginated(fe, "/internal/catalog/properties", r, e, t);
4063
+ return this.getTypedPaginated(ae, "/internal/catalog/properties", r, e, t);
4052
4064
  }
4053
4065
  /**
4054
4066
  * Создает новое свойство.
@@ -4064,7 +4076,7 @@ class fi extends j {
4064
4076
  ...t,
4065
4077
  type: e
4066
4078
  },
4067
- (i) => new fe(i.data)
4079
+ (i) => new ae(i.data)
4068
4080
  );
4069
4081
  }
4070
4082
  /**
@@ -4074,7 +4086,7 @@ class fi extends j {
4074
4086
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
4075
4087
  */
4076
4088
  getProperty(r) {
4077
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new fe(e.data));
4089
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ae(e.data));
4078
4090
  }
4079
4091
  /**
4080
4092
  * Обновляет существующее свойство.
@@ -4091,7 +4103,7 @@ class fi extends j {
4091
4103
  ...i,
4092
4104
  type: t
4093
4105
  },
4094
- (o) => new fe(o.data)
4106
+ (o) => new ae(o.data)
4095
4107
  );
4096
4108
  }
4097
4109
  /**
@@ -4110,7 +4122,7 @@ class fi extends j {
4110
4122
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
4111
4123
  */
4112
4124
  getProductProperties(r) {
4113
- return this.getTypedList(pe, `/internal/catalog/products/${r}/properties`);
4125
+ return this.getTypedList(fe, `/internal/catalog/products/${r}/properties`);
4114
4126
  }
4115
4127
  /**
4116
4128
  * Возвращает значение свойства продукта.
@@ -4120,7 +4132,7 @@ class fi extends j {
4120
4132
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
4121
4133
  */
4122
4134
  getProductProperty(r, e) {
4123
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new pe(t.data));
4135
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new fe(t.data));
4124
4136
  }
4125
4137
  /**
4126
4138
  * Обновляет значение свойства продукта.
@@ -4131,7 +4143,7 @@ class fi extends j {
4131
4143
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
4132
4144
  */
4133
4145
  updateProductProperty(r, e, t) {
4134
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new pe(i.data));
4146
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new fe(i.data));
4135
4147
  }
4136
4148
  /**
4137
4149
  * Удаляет значение свойства продукта.
@@ -4256,7 +4268,7 @@ class fi extends j {
4256
4268
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
4257
4269
  */
4258
4270
  getCategoryProperties(r) {
4259
- return this.getTypedList(pe, `/internal/catalog/categories/${r}/properties`);
4271
+ return this.getTypedList(fe, `/internal/catalog/categories/${r}/properties`);
4260
4272
  }
4261
4273
  /**
4262
4274
  * Возвращает значение свойства категории.
@@ -4266,7 +4278,7 @@ class fi extends j {
4266
4278
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
4267
4279
  */
4268
4280
  getCategoryProperty(r, e) {
4269
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new pe(t.data));
4281
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new fe(t.data));
4270
4282
  }
4271
4283
  /**
4272
4284
  * Обновляет значение свойства категории.
@@ -4277,7 +4289,7 @@ class fi extends j {
4277
4289
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
4278
4290
  */
4279
4291
  updateCategoryProperty(r, e, t) {
4280
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new pe(i.data));
4292
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new fe(i.data));
4281
4293
  }
4282
4294
  /**
4283
4295
  * Удаляет значение свойства категории.
@@ -4416,7 +4428,7 @@ class fi extends j {
4416
4428
  return this.get(
4417
4429
  `/internal/catalog/categories/${r}/filters`,
4418
4430
  { recursively: e },
4419
- (t) => t.data.map((i) => new Ds(i))
4431
+ (t) => t.data.map((i) => new bs(i))
4420
4432
  );
4421
4433
  }
4422
4434
  /**
@@ -4426,7 +4438,7 @@ class fi extends j {
4426
4438
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
4427
4439
  */
4428
4440
  getCategoryFilterSettings(r) {
4429
- return this.getTypedList(Yr, `/internal/catalog/categories/${r}/filter-settings`);
4441
+ return this.getTypedList(Vr, `/internal/catalog/categories/${r}/filter-settings`);
4430
4442
  }
4431
4443
  /**
4432
4444
  * Сохраняет настройки фильтра в категории.
@@ -4440,7 +4452,7 @@ class fi extends j {
4440
4452
  return this.patch(
4441
4453
  `/internal/catalog/categories/${r}/filter-settings/${e}`,
4442
4454
  t,
4443
- (i) => new Yr(i.data)
4455
+ (i) => new Vr(i.data)
4444
4456
  );
4445
4457
  }
4446
4458
  /**
@@ -4454,7 +4466,7 @@ class fi extends j {
4454
4466
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
4455
4467
  }
4456
4468
  }
4457
- class mi extends h {
4469
+ class vi extends h {
4458
4470
  /**
4459
4471
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4460
4472
  *
@@ -4464,7 +4476,7 @@ class mi extends h {
4464
4476
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
4465
4477
  */
4466
4478
  getRootCategoriesList(r, e = !1) {
4467
- return this.getTypedList(G, "/internal/catalog/categories", {
4479
+ return this.getTypedList(j, "/internal/catalog/categories", {
4468
4480
  priceTemplateId: r,
4469
4481
  showHidden: e
4470
4482
  });
@@ -4487,7 +4499,7 @@ class mi extends h {
4487
4499
  showHidden: t,
4488
4500
  withNestedCategories: i
4489
4501
  },
4490
- (o) => new G(o.data)
4502
+ (o) => new j(o.data)
4491
4503
  );
4492
4504
  }
4493
4505
  /**
@@ -4508,11 +4520,11 @@ class mi extends h {
4508
4520
  showHidden: i,
4509
4521
  withPriceCoefficients: t
4510
4522
  },
4511
- (o) => De(o.data, (c) => new q(c))
4523
+ (o) => V(o.data, (c) => new N(c))
4512
4524
  );
4513
4525
  }
4514
4526
  }
4515
- function Qr(n, r, e) {
4527
+ function Jr(n, r, e) {
4516
4528
  let t;
4517
4529
  return n.some((i) => {
4518
4530
  if (i.type === e && i.id === r)
@@ -4521,29 +4533,29 @@ function Qr(n, r, e) {
4521
4533
  return !1;
4522
4534
  const o = i;
4523
4535
  if (o.products && o.products.length > 0) {
4524
- const c = Qr(o.products, r, e);
4536
+ const c = Jr(o.products, r, e);
4525
4537
  if (c)
4526
4538
  return t = c, !0;
4527
4539
  }
4528
4540
  if (o.categories && o.categories.length > 0) {
4529
- const c = Qr(o.categories, r, e);
4541
+ const c = Jr(o.categories, r, e);
4530
4542
  if (c)
4531
4543
  return t = c, !0;
4532
4544
  }
4533
4545
  return !1;
4534
4546
  }), t;
4535
4547
  }
4536
- function Vr(n) {
4548
+ function Kr(n) {
4537
4549
  const r = [];
4538
4550
  return n.forEach((e) => {
4539
4551
  if (r.push(e), e.type === "category") {
4540
4552
  const t = e;
4541
- t.products && t.products.length > 0 && r.push(...Vr(t.products)), t.categories && t.categories.length > 0 && r.push(...Vr(t.categories));
4553
+ t.products && t.products.length > 0 && r.push(...Kr(t.products)), t.categories && t.categories.length > 0 && r.push(...Kr(t.categories));
4542
4554
  }
4543
4555
  }), r;
4544
4556
  }
4545
- var Ps = /* @__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))(Ps || {}), Y = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(Y || {});
4546
- class br extends Re {
4557
+ var ds = /* @__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))(ds || {}), Y = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(Y || {});
4558
+ class Tr extends ne {
4547
4559
  /**
4548
4560
  * Инициализирует экземпляр класса {@link BankAccount}.
4549
4561
  *
@@ -4574,7 +4586,7 @@ class br extends Re {
4574
4586
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new E(e.currency));
4575
4587
  }
4576
4588
  }
4577
- class Tr extends Ve {
4589
+ class $r extends er {
4578
4590
  /**
4579
4591
  * Инициализирует экземпляр класса {@link Contact}.
4580
4592
  *
@@ -4593,7 +4605,7 @@ class Tr extends Ve {
4593
4605
  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;
4594
4606
  }
4595
4607
  }
4596
- class re extends Tr {
4608
+ class te extends $r {
4597
4609
  /**
4598
4610
  * Инициализирует экземпляр класса {@link ContactPerson}.
4599
4611
  *
@@ -4620,12 +4632,12 @@ class re extends Tr {
4620
4632
  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;
4621
4633
  }
4622
4634
  }
4623
- class te extends w {
4635
+ class se extends v {
4624
4636
  /**
4625
4637
  * Возвращает сгенерированную запись-описание физического лица.
4626
4638
  */
4627
4639
  static generatePersonItem() {
4628
- return new te({
4640
+ return new se({
4629
4641
  id: 1,
4630
4642
  guid: "",
4631
4643
  slug: Y.Person,
@@ -4633,9 +4645,9 @@ class te extends w {
4633
4645
  });
4634
4646
  }
4635
4647
  }
4636
- class Ce extends w {
4648
+ class Re extends v {
4637
4649
  }
4638
- class wt extends Ve {
4650
+ class Dt extends er {
4639
4651
  /**
4640
4652
  * Инициализирует экземпляр класса {@link ContragentBase}.
4641
4653
  *
@@ -4647,11 +4659,11 @@ class wt extends Ve {
4647
4659
  /**
4648
4660
  * Данные об организационно-правовой форме.
4649
4661
  */
4650
- s(this, "opf", te.generatePersonItem());
4662
+ s(this, "opf", se.generatePersonItem());
4651
4663
  /**
4652
4664
  * Группа партнеров (направление деятельности).
4653
4665
  */
4654
- s(this, "partnerGroup", new Ce());
4666
+ s(this, "partnerGroup", new Re());
4655
4667
  /**
4656
4668
  * Список контактных лиц контрагента.
4657
4669
  */
@@ -4677,22 +4689,22 @@ class wt extends Ve {
4677
4689
  */
4678
4690
  s(this, "updater");
4679
4691
  if (e) {
4680
- if (this.opf = new te(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.creator = e.creator ? new _(e.creator) : void 0, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Ce(e.partnerGroup)), e.contacts) {
4692
+ if (this.opf = new se(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.creator = e.creator ? new q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Re(e.partnerGroup)), e.contacts) {
4681
4693
  const t = [];
4682
4694
  e.contacts.forEach((i) => {
4683
- t.push(new re(i));
4695
+ t.push(new te(i));
4684
4696
  }), this.contacts = t;
4685
4697
  }
4686
4698
  if (e.bankAccounts) {
4687
4699
  const t = [];
4688
4700
  e.bankAccounts.forEach((i) => {
4689
- t.push(new br(i));
4701
+ t.push(new Tr(i));
4690
4702
  }), this.bankAccounts = t;
4691
4703
  }
4692
4704
  }
4693
4705
  }
4694
4706
  }
4695
- class Rs extends wt {
4707
+ class Ts extends Dt {
4696
4708
  /**
4697
4709
  * Инициализирует экземпляр класса {@link ContragentPerson}.
4698
4710
  *
@@ -4702,7 +4714,7 @@ class Rs extends wt {
4702
4714
  super(r);
4703
4715
  }
4704
4716
  }
4705
- class Ct extends wt {
4717
+ class Pt extends Dt {
4706
4718
  /**
4707
4719
  * Инициализирует экземпляр класса {@link ContragentIc}.
4708
4720
  *
@@ -4745,7 +4757,7 @@ class Ct extends wt {
4745
4757
  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 ?? "");
4746
4758
  }
4747
4759
  }
4748
- class Dt extends Ct {
4760
+ class Rt extends Pt {
4749
4761
  /**
4750
4762
  * Инициализирует экземпляр класса {@link ContragentUlR}.
4751
4763
  *
@@ -4760,7 +4772,7 @@ class Dt extends Ct {
4760
4772
  e && (this.kpp = e.kpp ?? "");
4761
4773
  }
4762
4774
  }
4763
- class bs extends Dt {
4775
+ class $s extends Rt {
4764
4776
  /**
4765
4777
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
4766
4778
  *
@@ -4771,7 +4783,7 @@ class bs extends Dt {
4771
4783
  /**
4772
4784
  * Страна регистрации юридического лица нерезидента.
4773
4785
  */
4774
- s(this, "registrationCountry", new ae());
4786
+ s(this, "registrationCountry", new Ce());
4775
4787
  /**
4776
4788
  * Регистрационный номер юридического лица нерезидента.
4777
4789
  */
@@ -4780,10 +4792,10 @@ class bs extends Dt {
4780
4792
  * Налоговый номер юридического лица нерезидента.
4781
4793
  */
4782
4794
  s(this, "taxNumber", "");
4783
- e && (this.registrationCountry = new ae(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4795
+ e && (this.registrationCountry = new Ce(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4784
4796
  }
4785
4797
  }
4786
- class Ge {
4798
+ class Ke {
4787
4799
  /**
4788
4800
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
4789
4801
  *
@@ -4792,17 +4804,17 @@ class Ge {
4792
4804
  static createInstance(r) {
4793
4805
  switch (r.opf.slug) {
4794
4806
  case Y.Ic:
4795
- return new Ct(r);
4807
+ return new Pt(r);
4796
4808
  case Y.UlR:
4797
- return new Dt(r);
4809
+ return new Rt(r);
4798
4810
  case Y.UlNr:
4799
- return new bs(r);
4811
+ return new $s(r);
4800
4812
  default:
4801
- return new Rs(r);
4813
+ return new Ts(r);
4802
4814
  }
4803
4815
  }
4804
4816
  }
4805
- class Ie extends Ve {
4817
+ class xe extends er {
4806
4818
  /**
4807
4819
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4808
4820
  *
@@ -4839,14 +4851,14 @@ class Ie extends Ve {
4839
4851
  * Признак того, что указанный адрес является адресом транспортной компании.
4840
4852
  */
4841
4853
  s(this, "isTransportCompanyAddress");
4842
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ct(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new re(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;
4854
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ut(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;
4843
4855
  }
4844
4856
  }
4845
- class Pt extends w {
4857
+ class bt extends v {
4846
4858
  }
4847
- class Rt extends w {
4859
+ class dt extends v {
4848
4860
  }
4849
- class Jr extends ne {
4861
+ class Xr extends le {
4850
4862
  /**
4851
4863
  * Инициализирует экземпляр класса {@link Client}.
4852
4864
  *
@@ -4896,10 +4908,10 @@ class Jr extends ne {
4896
4908
  * @inheritDoc
4897
4909
  */
4898
4910
  s(this, "extraData");
4899
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => Ge.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 re(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Ie(u))) ?? [], this.channelPrimaryInterest = new Pt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Rt(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 Me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4911
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => Ke.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new te(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new xe(u))) ?? [], this.channelPrimaryInterest = new bt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new dt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new He(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4900
4912
  }
4901
4913
  }
4902
- class yi extends Ue {
4914
+ class Ci extends Me {
4903
4915
  /**
4904
4916
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4905
4917
  *
@@ -5012,7 +5024,7 @@ class yi extends Ue {
5012
5024
  * @inheritDoc
5013
5025
  */
5014
5026
  s(this, "noOrdersPeriod", new b());
5015
- 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((D) => new we(D)), 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 b(e == null ? void 0 : e.createdAt), this.lastLoginDate = new b(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new J(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new Nr(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new F(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new te(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((D) => new Ce(D)), this.contact = new Tr(e == null ? void 0 : e.contact), this.lastOrder = {
5027
+ 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((D) => new Pe(D)), this.region = new De(e == null ? void 0 : e.region), this.country = new Ce(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 b(e == null ? void 0 : e.createdAt), this.lastLoginDate = new b(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new X(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new Ur(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new U(D)), 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 K(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new Re(D)), this.contact = new $r(e == null ? void 0 : e.contact), this.lastOrder = {
5016
5028
  createdAt: new b((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
5017
5029
  creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
5018
5030
  isApproved: (y = e == null ? void 0 : e.lastOrder) == null ? void 0 : y.isApproved
@@ -5027,7 +5039,7 @@ class yi extends Ue {
5027
5039
  this.cities = [];
5028
5040
  break;
5029
5041
  case "region":
5030
- this.region = new ve();
5042
+ this.region = new De();
5031
5043
  break;
5032
5044
  case "isActive":
5033
5045
  this.isActive = !0;
@@ -5054,16 +5066,16 @@ class yi extends Ue {
5054
5066
  this.salesDirections = [];
5055
5067
  break;
5056
5068
  case "contragentType":
5057
- this.contragentType = new te();
5069
+ this.contragentType = new se();
5058
5070
  break;
5059
5071
  case "preferredDeliveryType":
5060
- this.preferredDeliveryType = new V();
5072
+ this.preferredDeliveryType = new K();
5061
5073
  break;
5062
5074
  case "partnerGroups":
5063
5075
  this.partnerGroups = [];
5064
5076
  break;
5065
5077
  case "contact":
5066
- this.contact = new Tr();
5078
+ this.contact = new $r();
5067
5079
  break;
5068
5080
  default:
5069
5081
  this[e] = void 0;
@@ -5080,7 +5092,7 @@ class yi extends Ue {
5080
5092
  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;
5081
5093
  }
5082
5094
  }
5083
- class bt extends Ye {
5095
+ class Tt extends Xe {
5084
5096
  /**
5085
5097
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
5086
5098
  *
@@ -5092,10 +5104,10 @@ class bt extends Ye {
5092
5104
  * @inheritDoc
5093
5105
  */
5094
5106
  s(this, "creator");
5095
- this.creator = new _(e == null ? void 0 : e.creator);
5107
+ this.creator = new q(e == null ? void 0 : e.creator);
5096
5108
  }
5097
5109
  }
5098
- class Ts extends N {
5110
+ class As extends _ {
5099
5111
  /**
5100
5112
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
5101
5113
  *
@@ -5132,10 +5144,10 @@ class Ts extends N {
5132
5144
  * @inheritDoc
5133
5145
  */
5134
5146
  s(this, "curators");
5135
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new re(u))) ?? void 0, this.lastOrder = e.lastOrder ? new bt(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 _r(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Nr(u))) ?? void 0;
5147
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new te(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Tt(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Re(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new K(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new U(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Nr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Ur(u))) ?? void 0;
5136
5148
  }
5137
5149
  }
5138
- class fr extends Re {
5150
+ class ar extends ne {
5139
5151
  /**
5140
5152
  * Инициализирует экземпляр класса {@link ContactRelation}.
5141
5153
  *
@@ -5150,7 +5162,7 @@ class fr extends Re {
5150
5162
  this.isPrimary = e.isPrimary;
5151
5163
  }
5152
5164
  }
5153
- class ds extends re {
5165
+ class Ss extends te {
5154
5166
  /**
5155
5167
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
5156
5168
  *
@@ -5175,10 +5187,10 @@ class ds extends re {
5175
5187
  */
5176
5188
  addresses: []
5177
5189
  });
5178
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new fr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new fr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new fr(t))));
5190
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new ar(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new ar(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new ar(t))));
5179
5191
  }
5180
5192
  }
5181
- class H extends j {
5193
+ class B extends M {
5182
5194
  /**
5183
5195
  * Преобразует данные о клиенте в данные требуемые для запроса.
5184
5196
  *
@@ -5317,7 +5329,7 @@ class H extends j {
5317
5329
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
5318
5330
  */
5319
5331
  getClient(r) {
5320
- return this.get(`/internal/clients/${r}`, {}, (e) => new Jr(e.data));
5332
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Xr(e.data));
5321
5333
  }
5322
5334
  /**
5323
5335
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -5331,7 +5343,7 @@ class H extends j {
5331
5343
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_list
5332
5344
  */
5333
5345
  getClientsList(r, e, t, i, o = void 0) {
5334
- return this.getTypedPaginated(ne, "/internal/clients", r, e, t, i, void 0, o);
5346
+ return this.getTypedPaginated(le, "/internal/clients", r, e, t, i, void 0, o);
5335
5347
  }
5336
5348
  /**
5337
5349
  * Выполняет поиск клиентов по терму в строке.
@@ -5353,7 +5365,7 @@ class H extends j {
5353
5365
  return this.getClientsList({
5354
5366
  groupOp: "and",
5355
5367
  groups: [],
5356
- filters: [{ field: "phone", op: Lr.Contains, value: r }]
5368
+ filters: [{ field: "phone", op: Ir.Contains, value: r }]
5357
5369
  });
5358
5370
  }
5359
5371
  /**
@@ -5368,7 +5380,7 @@ class H extends j {
5368
5380
  return this.post(
5369
5381
  "/internal/clients/additional-data",
5370
5382
  { clients: t, requested_data_types: e },
5371
- (i) => x.instanceListInitializer(Ts, i.data)
5383
+ (i) => x.instanceListInitializer(As, i.data)
5372
5384
  );
5373
5385
  }
5374
5386
  /**
@@ -5378,7 +5390,7 @@ class H extends j {
5378
5390
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_get_all_contact_list
5379
5391
  */
5380
5392
  getAllClientContacts(r) {
5381
- return this.getTypedList(ds, `/internal/clients/${r}/contacts/all`);
5393
+ return this.getTypedList(Ss, `/internal/clients/${r}/contacts/all`);
5382
5394
  }
5383
5395
  /**
5384
5396
  * Создаёт нового клиента на основе указанных данных.
@@ -5388,7 +5400,7 @@ class H extends j {
5388
5400
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
5389
5401
  */
5390
5402
  createClientCommonData(r, e = {}) {
5391
- return this.post("/internal/clients", H.transformClientDataToRequest(r), (t) => new Jr(t.data), e);
5403
+ return this.post("/internal/clients", B.transformClientDataToRequest(r), (t) => new Xr(t.data), e);
5392
5404
  }
5393
5405
  /**
5394
5406
  * Обновляет данные указанного клиента.
@@ -5398,7 +5410,7 @@ class H extends j {
5398
5410
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
5399
5411
  */
5400
5412
  updateClientCommonData(r, e = {}) {
5401
- return this.patch(`/internal/clients/${r.id}`, H.transformClientDataToRequest(r), void 0, e);
5413
+ return this.patch(`/internal/clients/${r.id}`, B.transformClientDataToRequest(r), void 0, e);
5402
5414
  }
5403
5415
  /**
5404
5416
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -5527,8 +5539,8 @@ class H extends j {
5527
5539
  createContragentClientData(r, e, t = {}) {
5528
5540
  return this.post(
5529
5541
  `/internal/clients/${r}/contragents`,
5530
- H.transformContragentClientDataToRequest(e),
5531
- (i) => Ge.createInstance(i.data),
5542
+ B.transformContragentClientDataToRequest(e),
5543
+ (i) => Ke.createInstance(i.data),
5532
5544
  t
5533
5545
  );
5534
5546
  }
@@ -5543,8 +5555,8 @@ class H extends j {
5543
5555
  updateContragentClientData(r, e, t = {}) {
5544
5556
  return this.patch(
5545
5557
  `/internal/clients/${r}/contragents/${e.id}`,
5546
- H.transformContragentClientDataToRequest(e),
5547
- (i) => Ge.createInstance(i.data),
5558
+ B.transformContragentClientDataToRequest(e),
5559
+ (i) => Ke.createInstance(i.data),
5548
5560
  t
5549
5561
  );
5550
5562
  }
@@ -5565,7 +5577,7 @@ class H extends j {
5565
5577
  * @see /doc/api/internal#/operations/api_internal_client_delivery_address_get_list
5566
5578
  */
5567
5579
  getClientDeliveryAddresses(r) {
5568
- return this.getTypedList(Ie, `/internal/clients/${r}/delivery-addresses`);
5580
+ return this.getTypedList(xe, `/internal/clients/${r}/delivery-addresses`);
5569
5581
  }
5570
5582
  /**
5571
5583
  * Создаёт новую запись об адресе доставки клиента.
@@ -5578,8 +5590,8 @@ class H extends j {
5578
5590
  createClientDeliveryAddress(r, e, t = {}) {
5579
5591
  return this.post(
5580
5592
  `/internal/clients/${r}/delivery-addresses`,
5581
- H.transformClientDeliveryAddressToRequest(e),
5582
- (i) => new Ie(i.data),
5593
+ B.transformClientDeliveryAddressToRequest(e),
5594
+ (i) => new xe(i.data),
5583
5595
  t
5584
5596
  );
5585
5597
  }
@@ -5594,8 +5606,8 @@ class H extends j {
5594
5606
  updateClientDeliveryAddress(r, e, t = {}) {
5595
5607
  return this.patch(
5596
5608
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
5597
- H.transformClientDeliveryAddressToRequest(e),
5598
- (i) => new Ie(i.data),
5609
+ B.transformClientDeliveryAddressToRequest(e),
5610
+ (i) => new xe(i.data),
5599
5611
  t
5600
5612
  );
5601
5613
  }
@@ -5621,8 +5633,8 @@ class H extends j {
5621
5633
  createContragentBankAccount(r, e, t, i = {}) {
5622
5634
  return this.post(
5623
5635
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
5624
- H.transformClientContragentBankAccountToRequest(t),
5625
- (o) => new br(o.data),
5636
+ B.transformClientContragentBankAccountToRequest(t),
5637
+ (o) => new Tr(o.data),
5626
5638
  i
5627
5639
  );
5628
5640
  }
@@ -5638,8 +5650,8 @@ class H extends j {
5638
5650
  updateContragentBankAccount(r, e, t, i = {}) {
5639
5651
  return this.patch(
5640
5652
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
5641
- H.transformClientContragentBankAccountToRequest(t),
5642
- (o) => new br(o.data),
5653
+ B.transformClientContragentBankAccountToRequest(t),
5654
+ (o) => new Tr(o.data),
5643
5655
  i
5644
5656
  );
5645
5657
  }
@@ -5695,7 +5707,7 @@ class H extends j {
5695
5707
  comment: e.comment,
5696
5708
  not_disturb: e.notDisturb
5697
5709
  },
5698
- (i) => new re(i.data),
5710
+ (i) => new te(i.data),
5699
5711
  t
5700
5712
  );
5701
5713
  }
@@ -5832,7 +5844,7 @@ class H extends j {
5832
5844
  comment: e.comment,
5833
5845
  ...t
5834
5846
  };
5835
- 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 re(p.data), i);
5847
+ 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);
5836
5848
  }
5837
5849
  /**
5838
5850
  * Устанавливает признак основного контактного лица.
@@ -5861,7 +5873,7 @@ class H extends j {
5861
5873
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5862
5874
  }
5863
5875
  }
5864
- class ai extends h {
5876
+ class Di extends h {
5865
5877
  /**
5866
5878
  * Выполняет проверку занят ли указанный номер телефона.
5867
5879
  *
@@ -5875,7 +5887,7 @@ class ai extends h {
5875
5887
  });
5876
5888
  }
5877
5889
  }
5878
- class vi {
5890
+ class Pi {
5879
5891
  /**
5880
5892
  * Инициализирует экземпляр класса {@link VersionConfig}.
5881
5893
  *
@@ -5894,11 +5906,11 @@ class vi {
5894
5906
  * Текущая версия приложения.
5895
5907
  */
5896
5908
  s(this, "version");
5897
- this.date = O(r == null ? void 0 : r.date) ? I(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";
5909
+ this.date = I(r == null ? void 0 : r.date) ? k(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";
5898
5910
  }
5899
5911
  }
5900
- var As = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(As || {});
5901
- class wi extends h {
5912
+ var ks = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(ks || {});
5913
+ class Ri extends h {
5902
5914
  /**
5903
5915
  * Возвращает настройки указанного конфигуратора для указанной категории.
5904
5916
  *
@@ -5928,7 +5940,7 @@ class wi extends h {
5928
5940
  const o = this.get(
5929
5941
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5930
5942
  { params: t, client_id: e },
5931
- (u) => new q(u.data)
5943
+ (u) => new N(u.data)
5932
5944
  );
5933
5945
  return o.catch((u) => {
5934
5946
  this.errorResponseHandler(u, i);
@@ -5989,7 +6001,7 @@ class wi extends h {
5989
6001
  });
5990
6002
  }
5991
6003
  }
5992
- class Ss {
6004
+ class Ls {
5993
6005
  /**
5994
6006
  * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5995
6007
  *
@@ -6007,7 +6019,7 @@ class Ss {
6007
6019
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
6008
6020
  }
6009
6021
  }
6010
- class Ci extends Ss {
6022
+ class bi extends Ls {
6011
6023
  /**
6012
6024
  * Инициализирует экземпляр класса {@link TableDataPagination}.
6013
6025
  *
@@ -6038,7 +6050,7 @@ class Ci extends Ss {
6038
6050
  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;
6039
6051
  }
6040
6052
  }
6041
- class Di {
6053
+ class di {
6042
6054
  /**
6043
6055
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
6044
6056
  *
@@ -6090,7 +6102,7 @@ class m {
6090
6102
  * @param date Дата.
6091
6103
  */
6092
6104
  static endOfHalfYear(r) {
6093
- return L(new Date(r.getFullYear(), r.getMonth() < 6 ? 5 : 11, 1));
6105
+ return O(new Date(r.getFullYear(), r.getMonth() < 6 ? 5 : 11, 1));
6094
6106
  }
6095
6107
  /**
6096
6108
  * Возвращает дату, сдвинутую на указанное число полугодий.
@@ -6099,7 +6111,7 @@ class m {
6099
6111
  * @param amount Смещение в полугодиях, может быть отрицательным.
6100
6112
  */
6101
6113
  static addHalfYears(r, e) {
6102
- return A(r, e * 6);
6114
+ return $(r, e * 6);
6103
6115
  }
6104
6116
  /**
6105
6117
  * Возвращает интервал «сдвинутый период до такой же даты»: от начала сдвинутого периода до конца дня
@@ -6111,8 +6123,8 @@ class m {
6111
6123
  * @param date Опорная дата.
6112
6124
  */
6113
6125
  static intervalTillSameDate(r, e, t) {
6114
- const i = Yt(U(t), U(r)), o = U(A(e, i)), c = Math.min(Hr(t), Qt(o));
6115
- return { from: he(e), to: W(Vt(o, c)) };
6126
+ const i = Jt(F(t), F(r)), o = F($(e, i)), c = Math.min(Wr(t), Kt(o));
6127
+ return { from: me(e), to: z(Xt(o, c)) };
6116
6128
  }
6117
6129
  /**
6118
6130
  * Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
@@ -6121,8 +6133,8 @@ class m {
6121
6133
  * @param shiftWeeks Смещение в неделях, может быть отрицательным.
6122
6134
  */
6123
6135
  static weekTillSameWeekday(r, e) {
6124
- const t = K(Cr(r, e), { weekStartsOn: 1 }), i = rr(r, K(r, { weekStartsOn: 1 }));
6125
- return { from: t, to: W(X(t, i)) };
6136
+ const t = Z(Pr(r, e), { weekStartsOn: 1 }), i = Ge(r, Z(r, { weekStartsOn: 1 }));
6137
+ return { from: t, to: z(ee(t, i)) };
6126
6138
  }
6127
6139
  /**
6128
6140
  * Возвращает интервал «сдвинутая декада до такого же номера дня»; если в целевой декаде дня с таким
@@ -6132,8 +6144,8 @@ class m {
6132
6144
  * @param shift Смещение в декадах, может быть отрицательным.
6133
6145
  */
6134
6146
  static decadeTillSameDayNumber(r, e) {
6135
- const [t] = m.shiftedDecadeBounds(r, 0), i = rr(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = rr(c, o) + 1;
6136
- return { from: o, to: W(X(o, Math.min(i, u) - 1)) };
6147
+ const [t] = m.shiftedDecadeBounds(r, 0), i = Ge(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = Ge(c, o) + 1;
6148
+ return { from: o, to: z(ee(o, Math.min(i, u) - 1)) };
6137
6149
  }
6138
6150
  /**
6139
6151
  * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
@@ -6142,38 +6154,58 @@ class m {
6142
6154
  * @param shift Смещение в декадах, может быть отрицательным.
6143
6155
  */
6144
6156
  static shiftedDecadeBounds(r, e) {
6145
- const t = Hr(r);
6157
+ const t = Wr(r);
6146
6158
  let i = 2;
6147
6159
  t <= 10 ? i = 0 : t <= 20 && (i = 1);
6148
- const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = U(A(r, c)), g = X(p, u * 10), y = u === 2 ? L(p) : W(X(g, 9));
6160
+ const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = F($(r, c)), g = ee(p, u * 10), y = u === 2 ? O(p) : z(ee(g, 9));
6149
6161
  return [g, y];
6150
6162
  }
6151
6163
  }
6152
- class Pi {
6164
+ function Ti(n) {
6165
+ return A(Ee(_e(), n), "yyyy-MM-dd");
6166
+ }
6167
+ function Os(n, r) {
6168
+ const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6169
+ return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6170
+ }
6171
+ function $i(n) {
6172
+ const r = k(n), e = Ge(_e(), r);
6173
+ switch (!0) {
6174
+ case e === 0:
6175
+ return "Сегодня";
6176
+ case e === 1:
6177
+ return "Вчера";
6178
+ case e < 0:
6179
+ return n;
6180
+ default:
6181
+ return `${e} ${Os(e, ["день", "дня", "дней"])} назад`;
6182
+ }
6183
+ }
6184
+ class Ai {
6153
6185
  /**
6154
6186
  * Возвращает предустановленные диапазоны дат.
6155
6187
  *
6156
6188
  * @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
6157
6189
  */
6158
6190
  static defaultDateRanges(r) {
6159
- const e = Jt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = le(r === void 0 ? t : new Date(r, 0, 1)), o = de(i);
6191
+ const e = Zt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = he(r === void 0 ? t : new Date(r, 0, 1)), o = $e(i);
6160
6192
  return {
6161
6193
  // 'Следующий рабочий день' - это значение по-умолчанию
6162
- nextWorkingDay: { label: "Следующий рабочий день", from: he(e), to: W(e) },
6163
- today: { label: "Сегодня", from: wr(), to: rs() },
6164
- yesterday: { label: "Вчера", from: es(), to: Zt() },
6165
- tomorrow: { label: "Завтра", from: Xt(), to: Kt() },
6166
- currentWeek: { label: "Неделя", from: K(t, { weekStartsOn: 1 }), to: Ae(t, { weekStartsOn: 1 }) },
6167
- currentMonth: { label: "Месяц", from: U(t), to: L(t) },
6168
- oneMonth: { label: "1 месяц", from: i, to: L(i) },
6169
- threeMonths: { label: "3 месяца", from: i, to: L(A(i, 2)) },
6170
- nineMonths: { label: "9 месяцев", from: i, to: L(A(i, 8)) },
6171
- firstQuarter: { label: "I квартал", from: i, to: L(A(i, 2)) },
6172
- secondQuarter: { label: "II квартал", from: A(i, 3), to: L(A(i, 5)) },
6173
- thirdQuarter: { label: "III квартал", from: A(i, 6), to: L(A(i, 8)) },
6174
- fourthQuarter: { label: "IV квартал", from: A(i, 9), to: L(A(i, 11)) },
6175
- firstHalfYear: { label: "I полугодие", from: i, to: L(A(i, 5)) },
6176
- secondHalfYear: { label: "II полугодие", from: A(i, 6), to: o },
6194
+ nextWorkingDay: { label: "Следующий рабочий день", from: me(e), to: z(e) },
6195
+ today: { label: "Сегодня", from: _e(), to: is() },
6196
+ yesterday: { label: "Вчера", from: ss(), to: ts() },
6197
+ tomorrow: { label: "Завтра", from: rs(), to: es() },
6198
+ currentWeek: { label: "Неделя", from: Z(t, { weekStartsOn: 1 }), to: Ae(t, { weekStartsOn: 1 }) },
6199
+ currentMonth: { label: "Месяц", from: F(t), to: O(t) },
6200
+ oneMonth: { label: "1 месяц", from: i, to: O(i) },
6201
+ threeMonths: { label: "3 месяца", from: i, to: O($(i, 2)) },
6202
+ nineMonths: { label: "9 месяцев", from: i, to: O($(i, 8)) },
6203
+ firstQuarter: { label: "I квартал", from: i, to: O($(i, 2)) },
6204
+ secondQuarter: { label: "II квартал", from: $(i, 3), to: O($(i, 5)) },
6205
+ thirdQuarter: { label: "III квартал", from: $(i, 6), to: O($(i, 8)) },
6206
+ fourthQuarter: { label: "IV квартал", from: $(i, 9), to: O($(i, 11)) },
6207
+ firstHalfYear: { label: "I полугодие", from: i, to: O($(i, 5)) },
6208
+ secondHalfYear: { label: "II полугодие", from: $(i, 6), to: o },
6177
6209
  currentYear: { label: "12 месяцев", from: i, to: o }
6178
6210
  };
6179
6211
  }
@@ -6185,23 +6217,23 @@ class Pi {
6185
6217
  * @param now Опорная дата «сейчас»; по умолчанию текущая.
6186
6218
  */
6187
6219
  static standardPeriods(r = /* @__PURE__ */ new Date()) {
6188
- 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), D = m.addHalfYears(r, 1);
6220
+ const e = { weekStartsOn: 1 }, t = me(r), i = z(r), o = m.decadeInterval(r), c = F(r), u = Se(r), p = m.startOfHalfYear(r), g = he(r), y = m.addHalfYears(r, -1), D = m.addHalfYears(r, 1);
6189
6221
  return {
6190
- yesterday: { label: "Вчера", group: "day", from: he(tr(r, 1)), to: W(tr(r, 1)) },
6222
+ yesterday: { label: "Вчера", group: "day", from: me(Ee(r, 1)), to: z(Ee(r, 1)) },
6191
6223
  today: { label: "Сегодня", group: "day", from: t, to: i },
6192
- tomorrow: { label: "Завтра", group: "day", from: he(X(r, 1)), to: W(X(r, 1)) },
6193
- lastWeek: { label: "Прошлая неделя", group: "week", from: K(Br(r, 1), e), to: Ae(Br(r, 1), e) },
6194
- thisWeek: { label: "Эта неделя", group: "week", from: K(r, e), to: Ae(r, e) },
6195
- nextWeek: { label: "Следующая неделя", group: "week", from: K(Cr(r, 1), e), to: Ae(Cr(r, 1), e) },
6224
+ tomorrow: { label: "Завтра", group: "day", from: me(ee(r, 1)), to: z(ee(r, 1)) },
6225
+ lastWeek: { label: "Прошлая неделя", group: "week", from: Z(zr(r, 1), e), to: Ae(zr(r, 1), e) },
6226
+ thisWeek: { label: "Эта неделя", group: "week", from: Z(r, e), to: Ae(r, e) },
6227
+ nextWeek: { label: "Следующая неделя", group: "week", from: Z(Pr(r, 1), e), to: Ae(Pr(r, 1), e) },
6196
6228
  lastTenDays: { label: "Прошлая декада", group: "decade", ...m.shiftDecadeInterval(r, -1) },
6197
6229
  thisTenDays: { label: "Эта декада", group: "decade", ...o },
6198
6230
  nextTenDays: { label: "Следующая декада", group: "decade", ...m.shiftDecadeInterval(r, 1) },
6199
- lastMonth: { label: "Прошлый месяц", group: "month", from: U(cr(r, 1)), to: L(cr(r, 1)) },
6200
- thisMonth: { label: "Этот месяц", group: "month", from: c, to: L(r) },
6201
- nextMonth: { label: "Следующий месяц", group: "month", from: U(A(r, 1)), to: L(A(r, 1)) },
6202
- lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Se(or(r, 1)), to: Be(or(r, 1)) },
6203
- thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Be(r) },
6204
- nextQuarter: { label: "Следующий квартал", group: "quarter", from: Se(ir(r, 1)), to: Be(ir(r, 1)) },
6231
+ lastMonth: { label: "Прошлый месяц", group: "month", from: F(pr(r, 1)), to: O(pr(r, 1)) },
6232
+ thisMonth: { label: "Этот месяц", group: "month", from: c, to: O(r) },
6233
+ nextMonth: { label: "Следующий месяц", group: "month", from: F($(r, 1)), to: O($(r, 1)) },
6234
+ lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Se(ur(r, 1)), to: We(ur(r, 1)) },
6235
+ thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: We(r) },
6236
+ nextQuarter: { label: "Следующий квартал", group: "quarter", from: Se(cr(r, 1)), to: We(cr(r, 1)) },
6205
6237
  lastHalfYear: {
6206
6238
  label: "Прошлое полугодие",
6207
6239
  group: "halfYear",
@@ -6210,10 +6242,10 @@ class Pi {
6210
6242
  },
6211
6243
  thisHalfYear: { label: "Это полугодие", group: "halfYear", from: p, to: m.endOfHalfYear(r) },
6212
6244
  nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: m.startOfHalfYear(D), to: m.endOfHalfYear(D) },
6213
- lastYear: { label: "Прошлый год", group: "year", from: le(nr(r, 1)), to: de(nr(r, 1)) },
6214
- thisYear: { label: "Этот год", group: "year", from: g, to: de(r) },
6215
- nextYear: { label: "Следующий год", group: "year", from: le(sr(r, 1)), to: de(sr(r, 1)) },
6216
- fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: K(r, e), to: i },
6245
+ lastYear: { label: "Прошлый год", group: "year", from: he(lr(r, 1)), to: $e(lr(r, 1)) },
6246
+ thisYear: { label: "Этот год", group: "year", from: g, to: $e(r) },
6247
+ nextYear: { label: "Следующий год", group: "year", from: he(or(r, 1)), to: $e(or(r, 1)) },
6248
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: Z(r, e), to: i },
6217
6249
  fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
6218
6250
  fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
6219
6251
  fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: i },
@@ -6221,10 +6253,10 @@ class Pi {
6221
6253
  fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: i },
6222
6254
  tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: Ae(r, e) },
6223
6255
  tillEndOfThisTenDays: { label: "До конца этой декады", group: "other", section: "tillEnd", from: t, to: o.to },
6224
- tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: L(r) },
6225
- tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: t, to: Be(r) },
6256
+ tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: O(r) },
6257
+ tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: t, to: We(r) },
6226
6258
  tillEndOfThisHalfYear: { label: "До конца этого полугодия", group: "other", section: "tillEnd", from: t, to: m.endOfHalfYear(r) },
6227
- tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: de(r) },
6259
+ tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: $e(r) },
6228
6260
  lastWeekTillSameWeekDay: { label: "Прошлая неделя, до такого же дня недели", group: "other", section: "lastTillSame", ...m.weekTillSameWeekday(r, -1) },
6229
6261
  lastTenDaysTillSameDayNumber: {
6230
6262
  label: "Прошлая декада, до такого же номера дня",
@@ -6236,13 +6268,13 @@ class Pi {
6236
6268
  label: "Прошлый месяц, до такой же даты",
6237
6269
  group: "other",
6238
6270
  section: "lastTillSame",
6239
- ...m.intervalTillSameDate(c, U(cr(r, 1)), r)
6271
+ ...m.intervalTillSameDate(c, F(pr(r, 1)), r)
6240
6272
  },
6241
6273
  lastQuarterTillSameDate: {
6242
6274
  label: "Прошлый квартал, до такой же даты",
6243
6275
  group: "other",
6244
6276
  section: "lastTillSame",
6245
- ...m.intervalTillSameDate(u, Se(or(r, 1)), r)
6277
+ ...m.intervalTillSameDate(u, Se(ur(r, 1)), r)
6246
6278
  },
6247
6279
  lastHalfYearTillSameDate: {
6248
6280
  label: "Прошлое полугодие, до такой же даты",
@@ -6254,7 +6286,7 @@ class Pi {
6254
6286
  label: "Прошлый год, до такой же даты",
6255
6287
  group: "other",
6256
6288
  section: "lastTillSame",
6257
- ...m.intervalTillSameDate(g, le(nr(r, 1)), r)
6289
+ ...m.intervalTillSameDate(g, he(lr(r, 1)), r)
6258
6290
  },
6259
6291
  nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...m.weekTillSameWeekday(r, 1) },
6260
6292
  nextTenDaysTillSameDayNumber: {
@@ -6267,13 +6299,13 @@ class Pi {
6267
6299
  label: "Следующий месяц, до такой же даты",
6268
6300
  group: "other",
6269
6301
  section: "nextTillSame",
6270
- ...m.intervalTillSameDate(c, U(A(r, 1)), r)
6302
+ ...m.intervalTillSameDate(c, F($(r, 1)), r)
6271
6303
  },
6272
6304
  nextQuarterTillSameDate: {
6273
6305
  label: "Следующий квартал, до такой же даты",
6274
6306
  group: "other",
6275
6307
  section: "nextTillSame",
6276
- ...m.intervalTillSameDate(u, Se(ir(r, 1)), r)
6308
+ ...m.intervalTillSameDate(u, Se(cr(r, 1)), r)
6277
6309
  },
6278
6310
  nextHalfYearTillSameDate: {
6279
6311
  label: "Следующее полугодие, до такой же даты",
@@ -6285,14 +6317,14 @@ class Pi {
6285
6317
  label: "Следующий год, до такой же даты",
6286
6318
  group: "other",
6287
6319
  section: "nextTillSame",
6288
- ...m.intervalTillSameDate(g, le(sr(r, 1)), r)
6320
+ ...m.intervalTillSameDate(g, he(or(r, 1)), r)
6289
6321
  },
6290
- last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: he(tr(r, 6)), to: i },
6291
- next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: W(X(r, 6)) }
6322
+ last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: me(Ee(r, 6)), to: i },
6323
+ next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: z(ee(r, 6)) }
6292
6324
  };
6293
6325
  }
6294
6326
  }
6295
- const Ri = [
6327
+ const Si = [
6296
6328
  { key: "day", label: "День" },
6297
6329
  { key: "week", label: "Неделя" },
6298
6330
  { key: "decade", label: "Декада" },
@@ -6301,14 +6333,168 @@ const Ri = [
6301
6333
  { key: "halfYear", label: "Полугодие" },
6302
6334
  { key: "year", label: "Год" },
6303
6335
  { key: "other", label: "Прочее" }
6304
- ], bi = [
6336
+ ], ki = [
6305
6337
  { key: "fromBeginning", label: "С начала периода" },
6306
6338
  { key: "tillEnd", label: "До конца периода" },
6307
6339
  { key: "lastTillSame", label: "Прошлые, до такой же даты" },
6308
6340
  { key: "nextTillSame", label: "Следующие, до такой же даты" },
6309
6341
  { key: "rollingDays", label: "7 дней" }
6310
6342
  ];
6311
- class Tt {
6343
+ class Ve extends _ {
6344
+ /**
6345
+ * Инициализирует экземпляр класса {@link FaqGroup}.
6346
+ *
6347
+ * @param data Данные для первоначальной инициализации.
6348
+ */
6349
+ constructor(r) {
6350
+ super(r);
6351
+ }
6352
+ }
6353
+ class ze extends ne {
6354
+ /**
6355
+ * Инициализирует экземпляр класса {@link Faq}.
6356
+ *
6357
+ * Портал не передаёт поле групп, если вопрос не относится ни к одной группе.
6358
+ *
6359
+ * @param data Данные для первоначальной инициализации.
6360
+ */
6361
+ constructor(e) {
6362
+ super(e, -1);
6363
+ /**
6364
+ * @inheritDoc
6365
+ */
6366
+ s(this, "question");
6367
+ /**
6368
+ * @inheritDoc
6369
+ */
6370
+ s(this, "answer");
6371
+ /**
6372
+ * @inheritDoc
6373
+ */
6374
+ s(this, "groups");
6375
+ this.question = (e == null ? void 0 : e.question) ?? "", this.answer = (e == null ? void 0 : e.answer) ?? "", this.groups = V((e == null ? void 0 : e.groups) ?? [], (t) => new Ve(t));
6376
+ }
6377
+ /**
6378
+ * Возвращает данные вопроса для отправки на портал.
6379
+ */
6380
+ toSaveData() {
6381
+ return {
6382
+ question: this.question,
6383
+ answer: this.answer,
6384
+ groups: V(this.groups, "id")
6385
+ };
6386
+ }
6387
+ }
6388
+ class Li extends M {
6389
+ /**
6390
+ * Возвращает список часто задаваемых вопросов.
6391
+ *
6392
+ * @param groupId Идентификатор группы, вопросы которой необходимо получить. Если не задан, возвращаются все вопросы.
6393
+ * @param paginationParams Параметры пагинации.
6394
+ *
6395
+ * @see /doc/api/internal#/operations/api_internal_faq_get_list
6396
+ */
6397
+ getFaqList(r, e) {
6398
+ return this.getTypedPaginated(ze, "/internal/faq", void 0, void 0, e, a(r) ? {} : { group: r });
6399
+ }
6400
+ /**
6401
+ * Возвращает данные о часто задаваемом вопросе.
6402
+ *
6403
+ * @param faqId Идентификатор вопроса.
6404
+ *
6405
+ * @see /doc/api/internal#/operations/api_internal_faq_get
6406
+ */
6407
+ getFaq(r) {
6408
+ return this.get(`/internal/faq/${r}`, {}, (e) => new ze(e.data));
6409
+ }
6410
+ /**
6411
+ * Создаёт новый часто задаваемый вопрос.
6412
+ *
6413
+ * @param data Данные для создания вопроса.
6414
+ * @param validationFieldResultData Список полей, для которых необходимо
6415
+ * установить данные об ошибках валидации
6416
+ * в случае ошибок в запросах.
6417
+ *
6418
+ * @see /doc/api/internal#/operations/api_internal_faq_create
6419
+ */
6420
+ createFaq(r, e = {}) {
6421
+ return this.post("/internal/faq", r, (t) => new ze(t.data), e);
6422
+ }
6423
+ /**
6424
+ * Изменяет данные о часто задаваемом вопросе.
6425
+ *
6426
+ * @param faqId Идентификатор вопроса.
6427
+ * @param data Данные для изменения вопроса.
6428
+ * @param validationFieldResultData Список полей, для которых необходимо
6429
+ * установить данные об ошибках валидации
6430
+ * в случае ошибок в запросах.
6431
+ *
6432
+ * @see /doc/api/internal#/operations/api_internal_faq_update
6433
+ */
6434
+ updateFaq(r, e, t = {}) {
6435
+ return this.patch(`/internal/faq/${r}`, e, (i) => new ze(i.data), t);
6436
+ }
6437
+ /**
6438
+ * Удаляет часто задаваемый вопрос.
6439
+ *
6440
+ * @param faqId Идентификатор вопроса.
6441
+ *
6442
+ * @see /doc/api/internal#/operations/api_internal_faq_delete
6443
+ */
6444
+ removeFaq(r) {
6445
+ return this.delete(`/internal/faq/${r}`);
6446
+ }
6447
+ /**
6448
+ * Возвращает список групп часто задаваемых вопросов.
6449
+ *
6450
+ * @see /doc/api/internal#/operations/api_internal_faq_groups_get_list
6451
+ */
6452
+ getGroupsList() {
6453
+ return this.getTypedList(Ve, "/internal/faq/groups");
6454
+ }
6455
+ /**
6456
+ * Создаёт новую группу часто задаваемых вопросов.
6457
+ *
6458
+ * @param data Данные для создания группы.
6459
+ * @param validationFieldResultData Список полей, для которых необходимо
6460
+ * установить данные об ошибках валидации
6461
+ * в случае ошибок в запросах.
6462
+ *
6463
+ * @see /doc/api/internal#/operations/api_internal_faq_groups_create
6464
+ */
6465
+ createGroup(r, e = {}) {
6466
+ return this.post("/internal/faq/groups", r, (t) => new Ve(t.data), e);
6467
+ }
6468
+ /**
6469
+ * Изменяет данные о группе часто задаваемых вопросов.
6470
+ *
6471
+ * @param groupId Идентификатор группы.
6472
+ * @param data Данные для изменения группы.
6473
+ * @param validationFieldResultData Список полей, для которых необходимо
6474
+ * установить данные об ошибках валидации
6475
+ * в случае ошибок в запросах.
6476
+ *
6477
+ * @see /doc/api/internal#/operations/api_internal_faq_groups_update
6478
+ */
6479
+ updateGroup(r, e, t = {}) {
6480
+ return this.patch(`/internal/faq/groups/${r}`, e, (i) => new Ve(i.data), t);
6481
+ }
6482
+ /**
6483
+ * Удаляет группу часто задаваемых вопросов. Вопросы группы при этом не удаляются.
6484
+ *
6485
+ * @param groupId Идентификатор группы.
6486
+ *
6487
+ * @see /doc/api/internal#/operations/api_internal_faq_groups_delete
6488
+ */
6489
+ removeGroup(r) {
6490
+ return this.delete(`/internal/faq/groups/${r}`);
6491
+ }
6492
+ }
6493
+ function Oi(n) {
6494
+ const r = Yt(n * 100);
6495
+ return `${r >= 0 ? "+" : ""}${r}%`;
6496
+ }
6497
+ class $t {
6312
6498
  /**
6313
6499
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
6314
6500
  *
@@ -6324,7 +6510,7 @@ class Tt {
6324
6510
  */
6325
6511
  static getProductMultiplicity(r) {
6326
6512
  var e, t;
6327
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Tt.productIsMeasurable(r) ? r.properties.minCount : 1;
6513
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !$t.productIsMeasurable(r) ? r.properties.minCount : 1;
6328
6514
  }
6329
6515
  /**
6330
6516
  * Возвращает кратность длины для указанного товара.
@@ -6336,7 +6522,7 @@ class Tt {
6336
6522
  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;
6337
6523
  }
6338
6524
  }
6339
- const me = class me extends h {
6525
+ const we = class we extends h {
6340
6526
  /**
6341
6527
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
6342
6528
  */
@@ -6356,7 +6542,7 @@ const me = class me extends h {
6356
6542
  */
6357
6543
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6358
6544
  static getCachedResponse(e) {
6359
- const t = me.responseDataCache.get(e);
6545
+ const t = we.responseDataCache.get(e);
6360
6546
  if (t && t.validTo > /* @__PURE__ */ new Date())
6361
6547
  return t.val;
6362
6548
  }
@@ -6367,8 +6553,8 @@ const me = class me extends h {
6367
6553
  * @param data Данные для кэширования.
6368
6554
  */
6369
6555
  cacheResponse(e, t) {
6370
- me.responseDataCache.set(e, {
6371
- validTo: ts(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6556
+ we.responseDataCache.set(e, {
6557
+ validTo: ns(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6372
6558
  val: t
6373
6559
  });
6374
6560
  }
@@ -6384,25 +6570,21 @@ const me = class me extends h {
6384
6570
  */
6385
6571
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6386
6572
  getTypedDataArrayRequester(e, t, i = !1, o = {}, c = void 0) {
6387
- const u = t + (Z(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? me.getCachedResponse(u) : void 0;
6573
+ const u = t + (Q(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? we.getCachedResponse(u) : void 0;
6388
6574
  return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (i && g && this.cacheResponse(u, g), g));
6389
6575
  }
6390
6576
  };
6391
6577
  /**
6392
6578
  * Кэш результатов запросов.
6393
6579
  */
6394
- s(me, "responseDataCache", /* @__PURE__ */ new Map());
6395
- let Ne = me;
6396
- function Ti(n, r) {
6397
- const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6398
- return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6399
- }
6400
- class di {
6580
+ s(we, "responseDataCache", /* @__PURE__ */ new Map());
6581
+ let Ue = we;
6582
+ class Ii {
6401
6583
  /**
6402
6584
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
6403
6585
  */
6404
6586
  static generateUndefinedManagerInstance() {
6405
- return new J({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6587
+ return new X({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6406
6588
  }
6407
6589
  /**
6408
6590
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -6413,15 +6595,15 @@ class di {
6413
6595
  return r.id === 0 && r.guid === "-undefined-";
6414
6596
  }
6415
6597
  }
6416
- class dt extends Ne {
6598
+ class At extends Ue {
6417
6599
  /**
6418
6600
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
6419
6601
  */
6420
6602
  async getManagers() {
6421
- const r = "/internal/managers", e = Ne.getCachedResponse(r);
6603
+ const r = "/internal/managers", e = Ue.getCachedResponse(r);
6422
6604
  if (e)
6423
6605
  return e;
6424
- const t = await this.get(r), i = x.instanceListInitializer(J, t.data);
6606
+ const t = await this.get(r), i = x.instanceListInitializer(X, t.data);
6425
6607
  return this.cacheResponse(r, i), i;
6426
6608
  }
6427
6609
  /**
@@ -6432,11 +6614,11 @@ class dt extends Ne {
6432
6614
  * @see /doc/api/internal#/operations/api_internal_managers_get
6433
6615
  */
6434
6616
  getManager(r) {
6435
- return this.get(`/internal/managers/${r}`, {}, (e) => new J(e.data));
6617
+ return this.get(`/internal/managers/${r}`, {}, (e) => new X(e.data));
6436
6618
  }
6437
6619
  }
6438
- var Oe = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(Oe || {});
6439
- class $s {
6620
+ var Ie = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(Ie || {});
6621
+ class Is {
6440
6622
  /**
6441
6623
  * Инициализирует экземпляр класса {@link OfferActualization}.
6442
6624
  *
@@ -6459,13 +6641,13 @@ class $s {
6459
6641
  * @inheritDoc
6460
6642
  */
6461
6643
  s(this, "error");
6462
- this.status = (r == null ? void 0 : r.status) ?? Oe.Processing, this.actualizedAt = Q.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = Q.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
6644
+ this.status = (r == null ? void 0 : r.status) ?? Ie.Processing, this.actualizedAt = J.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = J.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
6463
6645
  }
6464
6646
  /**
6465
6647
  * @inheritDoc
6466
6648
  */
6467
6649
  get isProcessing() {
6468
- return this.status === Oe.Processing;
6650
+ return this.status === Ie.Processing;
6469
6651
  }
6470
6652
  /**
6471
6653
  * @inheritDoc
@@ -6483,16 +6665,16 @@ class $s {
6483
6665
  * @inheritDoc
6484
6666
  */
6485
6667
  isOutdatedAt(r) {
6486
- return this.status !== Oe.Completed || a(this.actualizedAt) ? !0 : !a(this.expiresAt) && this.expiresAt.getTime() < r.getTime();
6668
+ return this.status !== Ie.Completed || a(this.actualizedAt) ? !0 : !a(this.expiresAt) && this.expiresAt.getTime() < r.getTime();
6487
6669
  }
6488
6670
  /**
6489
6671
  * @inheritDoc
6490
6672
  */
6491
6673
  isOrderAllowedAt(r) {
6492
- return this.status === Oe.Completed && !this.isOutdatedAt(r);
6674
+ return this.status === Ie.Completed && !this.isOutdatedAt(r);
6493
6675
  }
6494
6676
  }
6495
- class At extends Ye {
6677
+ class St extends Xe {
6496
6678
  /**
6497
6679
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
6498
6680
  *
@@ -6524,10 +6706,10 @@ class At extends Ye {
6524
6706
  * @inheritDoc
6525
6707
  */
6526
6708
  s(this, "file");
6527
- this.name = e == null ? void 0 : e.name, 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 $s(e.actualization), this.file = e == null ? void 0 : e.file;
6709
+ this.name = e == null ? void 0 : e.name, this.client = new le(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 Is(e.actualization), this.file = e == null ? void 0 : e.file;
6528
6710
  }
6529
6711
  }
6530
- class ks extends xr {
6712
+ class xs extends _r {
6531
6713
  /**
6532
6714
  * Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
6533
6715
  *
@@ -6563,10 +6745,10 @@ class ks extends xr {
6563
6745
  * @inheritDoc
6564
6746
  */
6565
6747
  get isOrderable() {
6566
- return !this.isProductStub && !this.isIgnored && Z(this.lineError);
6748
+ return !this.isProductStub && !this.isIgnored && Q(this.lineError);
6567
6749
  }
6568
6750
  }
6569
- class M extends At {
6751
+ class H extends St {
6570
6752
  /**
6571
6753
  * Инициализирует экземпляр класса {@link Offer}.
6572
6754
  *
@@ -6583,11 +6765,11 @@ class M extends At {
6583
6765
  */
6584
6766
  s(this, "products");
6585
6767
  this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
6586
- (t) => e.isProfstroy ? new ks(t) : new xr(t)
6768
+ (t) => e.isProfstroy ? new xs(t) : new _r(t)
6587
6769
  );
6588
6770
  }
6589
6771
  }
6590
- class Ai extends Ue {
6772
+ class xi extends Me {
6591
6773
  /**
6592
6774
  * Инициализирует экземпляр класса {@link OffersListFilters}.
6593
6775
  *
@@ -6628,9 +6810,9 @@ class Ai extends Ue {
6628
6810
  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;
6629
6811
  }
6630
6812
  }
6631
- class Ke extends w {
6813
+ class tr extends v {
6632
6814
  }
6633
- class St extends bt {
6815
+ class kt extends Tt {
6634
6816
  /**
6635
6817
  * Инициализирует экземпляр класса {@link OrderInfo}.
6636
6818
  *
@@ -6691,19 +6873,19 @@ class St extends bt {
6691
6873
  * @inheritDoc
6692
6874
  */
6693
6875
  s(this, "isLargeOrder");
6694
- this.client = new ne(e == null ? void 0 : e.client), this.payment = {
6876
+ this.client = new le(e == null ? void 0 : e.client), this.payment = {
6695
6877
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
6696
6878
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
6697
6879
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
6698
6880
  }, this.delivery = {
6699
6881
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
6700
- date: O((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? I(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
6701
- address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new Ie(e.delivery.address) : void 0,
6702
- warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new Me(e.delivery.warehouse) : void 0
6703
- }, this.attachedUser = e != null && e.attachedUser ? new _(e == null ? void 0 : e.attachedUser) : void 0, this.status = new Ke(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = O(e == null ? void 0 : e.attachedAt) ? I(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;
6882
+ date: I((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? k(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
6883
+ address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new xe(e.delivery.address) : void 0,
6884
+ warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new He(e.delivery.warehouse) : void 0
6885
+ }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new tr(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new v(e.statusDetail) : void 0, this.salesDirection = new U(e == null ? void 0 : e.salesDirection), this.attachedAt = I(e == null ? void 0 : e.attachedAt) ? k(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;
6704
6886
  }
6705
6887
  }
6706
- class Ls extends ut {
6888
+ class qs extends ht {
6707
6889
  /**
6708
6890
  * Инициализирует экземпляр класса {@link OrderItem}.
6709
6891
  *
@@ -6760,10 +6942,10 @@ class Ls extends ut {
6760
6942
  * Продукт, которым заменена текущая запись.
6761
6943
  */
6762
6944
  s(this, "replacement");
6763
- this.product = new ye(e.product), this.currency = new E(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"));
6945
+ this.product = new ve(e.product), this.currency = new E(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 = G(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"));
6764
6946
  }
6765
6947
  }
6766
- class k extends St {
6948
+ class L extends kt {
6767
6949
  /**
6768
6950
  * Инициализирует экземпляр класса {@link Order}.
6769
6951
  *
@@ -6827,11 +7009,11 @@ class k extends St {
6827
7009
  this.products = (e.products ?? []).map((i) => {
6828
7010
  var c;
6829
7011
  const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
6830
- return new Ls(i, o);
6831
- }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ge.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new Ke(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
7012
+ return new qs(i, o);
7013
+ }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ke.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 tr(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6832
7014
  }
6833
7015
  }
6834
- class Si extends j {
7016
+ class qi extends M {
6835
7017
  /**
6836
7018
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
6837
7019
  *
@@ -6843,7 +7025,7 @@ class Si extends j {
6843
7025
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
6844
7026
  */
6845
7027
  getOffers(r, e, t, i = void 0) {
6846
- return this.getTypedPaginated(At, "/internal/orders/offers", r, e, t, {}, void 0, i);
7028
+ return this.getTypedPaginated(St, "/internal/orders/offers", r, e, t, {}, void 0, i);
6847
7029
  }
6848
7030
  /**
6849
7031
  * Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
@@ -6862,7 +7044,7 @@ class Si extends j {
6862
7044
  name: e,
6863
7045
  items: t != null && t.length ? t : void 0
6864
7046
  },
6865
- (i) => new M(i.data)
7047
+ (i) => new H(i.data)
6866
7048
  );
6867
7049
  }
6868
7050
  /**
@@ -6878,7 +7060,7 @@ class Si extends j {
6878
7060
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_profstroy
6879
7061
  */
6880
7062
  createProfstroyOffer(r, e, t, i = {}) {
6881
- return this.post(`/internal/orders/offers/${r}/profstroy`, { file: e, name: t }, (o) => new M(o.data), i);
7063
+ return this.post(`/internal/orders/offers/${r}/profstroy`, { file: e, name: t }, (o) => new H(o.data), i);
6882
7064
  }
6883
7065
  /**
6884
7066
  * Запускает актуализацию заказа-черновика, созданного из файла «Профстрой»: текущий состав записи
@@ -6889,7 +7071,7 @@ class Si extends j {
6889
7071
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_profstroy_actualize
6890
7072
  */
6891
7073
  actualizeProfstroyOffer(r) {
6892
- return this.post(`/internal/orders/offers/${r}/profstroy/actualize`, {}, (e) => new M(e.data));
7074
+ return this.post(`/internal/orders/offers/${r}/profstroy/actualize`, {}, (e) => new H(e.data));
6893
7075
  }
6894
7076
  /**
6895
7077
  * Пересобирает заказ-черновик из ранее сохранённого файла «Профстрой»: состав записи формируется заново,
@@ -6900,7 +7082,7 @@ class Si extends j {
6900
7082
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_profstroy_reload
6901
7083
  */
6902
7084
  reloadProfstroyOffer(r) {
6903
- return this.post(`/internal/orders/offers/${r}/profstroy/reload`, {}, (e) => new M(e.data));
7085
+ return this.post(`/internal/orders/offers/${r}/profstroy/reload`, {}, (e) => new H(e.data));
6904
7086
  }
6905
7087
  /**
6906
7088
  * Возвращает данные заказа-черновика с указанным идентификатором.
@@ -6910,7 +7092,7 @@ class Si extends j {
6910
7092
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get
6911
7093
  */
6912
7094
  getOffer(r) {
6913
- return this.get(`/internal/orders/offers/${r}`, {}, (e) => new M(e.data));
7095
+ return this.get(`/internal/orders/offers/${r}`, {}, (e) => new H(e.data));
6914
7096
  }
6915
7097
  /**
6916
7098
  * Обновляет данные заказа-черновика и возвращает обновлённые данные.
@@ -6921,7 +7103,7 @@ class Si extends j {
6921
7103
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_change
6922
7104
  */
6923
7105
  updateOffer(r, e) {
6924
- return this.patch(`/internal/orders/offers/${r}`, { name: e }, (t) => new M(t.data));
7106
+ return this.patch(`/internal/orders/offers/${r}`, { name: e }, (t) => new H(t.data));
6925
7107
  }
6926
7108
  /**
6927
7109
  * Удаляет заказ-черновик.
@@ -6952,10 +7134,10 @@ class Si extends j {
6952
7134
  `/internal/orders/offers/${r}/create-order`,
6953
7135
  {
6954
7136
  ...e,
6955
- deliveryDate: e.deliveryDate ? $(e.deliveryDate, o) : void 0,
7137
+ deliveryDate: e.deliveryDate ? A(e.deliveryDate, o) : void 0,
6956
7138
  items: t != null && t.length ? t : void 0
6957
7139
  },
6958
- (c) => x.instanceListInitializer(k, c.data),
7140
+ (c) => x.instanceListInitializer(L, c.data),
6959
7141
  i
6960
7142
  );
6961
7143
  }
@@ -6984,7 +7166,7 @@ class Si extends j {
6984
7166
  is_additional_sale: e.isAdditionalSale,
6985
7167
  ...e.configuratorParams
6986
7168
  },
6987
- (i) => new M(i.data),
7169
+ (i) => new H(i.data),
6988
7170
  t
6989
7171
  );
6990
7172
  }
@@ -7014,7 +7196,7 @@ class Si extends j {
7014
7196
  is_additional_sale: t.isAdditionalSale,
7015
7197
  ...t.configuratorParams
7016
7198
  },
7017
- (o) => new M(o.data),
7199
+ (o) => new H(o.data),
7018
7200
  i
7019
7201
  );
7020
7202
  }
@@ -7027,7 +7209,7 @@ class Si extends j {
7027
7209
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_product_delete
7028
7210
  */
7029
7211
  deleteOfferProduct(r, e) {
7030
- return this.delete(`/internal/orders/offers/${r}/products/${e}`, (t) => new M(t.data));
7212
+ return this.delete(`/internal/orders/offers/${r}/products/${e}`, (t) => new H(t.data));
7031
7213
  }
7032
7214
  /**
7033
7215
  * Возвращает содержимое печатной формы заказа-черновика в формате HTML.
@@ -7067,7 +7249,7 @@ class Si extends j {
7067
7249
  return this.post(`/internal/orders/offers/${r}/send`, e);
7068
7250
  }
7069
7251
  }
7070
- class $i {
7252
+ class _i {
7071
7253
  /**
7072
7254
  * Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
7073
7255
  *
@@ -7086,8 +7268,8 @@ class $i {
7086
7268
  return !a(r) && r.isProfstroy === !0 && !a(r.actualization);
7087
7269
  }
7088
7270
  }
7089
- var Os = /* @__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))(Os || {});
7090
- class ki {
7271
+ var _s = /* @__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))(_s || {});
7272
+ class Ni {
7091
7273
  /**
7092
7274
  * Инициализирует экземпляр класса {@link OrderEditorData}.
7093
7275
  *
@@ -7154,11 +7336,11 @@ class ki {
7154
7336
  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;
7155
7337
  }
7156
7338
  }
7157
- class $t extends w {
7339
+ class Lt extends v {
7158
7340
  }
7159
- class kt extends w {
7341
+ class Ot extends v {
7160
7342
  }
7161
- class Li extends Ue {
7343
+ class Fi extends Me {
7162
7344
  /**
7163
7345
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
7164
7346
  *
@@ -7259,7 +7441,7 @@ class Li extends Ue {
7259
7441
  * @inheritDoc
7260
7442
  */
7261
7443
  s(this, "onlyMyRegions");
7262
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new J(u) : new $t(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 b(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new _(e.creator) : void 0, this.deliveryDate = new b(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 b(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 kt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Me(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7444
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new X(u) : new Lt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new le(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new b(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 Pe(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 b(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new U(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new K(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Ot(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new He(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7263
7445
  }
7264
7446
  /**
7265
7447
  * @inheritDoc
@@ -7276,7 +7458,7 @@ class Li extends Ue {
7276
7458
  this.deliveryDate.from = null, this.deliveryDate.to = null;
7277
7459
  break;
7278
7460
  case "deliveryType":
7279
- this.deliveryType = new V();
7461
+ this.deliveryType = new K();
7280
7462
  break;
7281
7463
  case "clientCities":
7282
7464
  this.clientCities = [];
@@ -7310,7 +7492,7 @@ class Li extends Ue {
7310
7492
  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;
7311
7493
  }
7312
7494
  }
7313
- class Is {
7495
+ class Ns {
7314
7496
  /**
7315
7497
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
7316
7498
  *
@@ -7333,10 +7515,10 @@ class Is {
7333
7515
  * @inheritDoc
7334
7516
  */
7335
7517
  s(this, "createdAt");
7336
- this.user = new _(r == null ? void 0 : r.user), this.status = new Ke(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = O(r == null ? void 0 : r.createdAt) ? I(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
7518
+ this.user = new q(r == null ? void 0 : r.user), this.status = new tr(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new v(r.statusDetail) : void 0, this.createdAt = I(r == null ? void 0 : r.createdAt) ? k(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
7337
7519
  }
7338
7520
  }
7339
- class Oi extends j {
7521
+ class Ui extends M {
7340
7522
  /**
7341
7523
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
7342
7524
  *
@@ -7348,7 +7530,7 @@ class Oi extends j {
7348
7530
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
7349
7531
  */
7350
7532
  getOrders(r, e, t, i = void 0) {
7351
- return this.getTypedPaginated(St, "/internal/orders", r, e, t, {}, void 0, i);
7533
+ return this.getTypedPaginated(kt, "/internal/orders", r, e, t, {}, void 0, i);
7352
7534
  }
7353
7535
  /**
7354
7536
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -7361,7 +7543,7 @@ class Oi extends j {
7361
7543
  getOrdersCount(r, e = void 0) {
7362
7544
  return this.get(
7363
7545
  "/internal/orders/count",
7364
- r ? { filters: JSON.stringify((r instanceof ee ? r : new ee(r)).toPrimitive()) } : {},
7546
+ r ? { filters: JSON.stringify((r instanceof re ? r : new re(r)).toPrimitive()) } : {},
7365
7547
  void 0,
7366
7548
  void 0,
7367
7549
  e
@@ -7384,7 +7566,7 @@ class Oi extends j {
7384
7566
  * @see /doc/api/internal#/Заказы/api_internal_orders_get
7385
7567
  */
7386
7568
  getOrder(r) {
7387
- return this.get(`/internal/orders/${r}`, {}, (e) => new k(e.data));
7569
+ return this.get(`/internal/orders/${r}`, {}, (e) => new L(e.data));
7388
7570
  }
7389
7571
  /**
7390
7572
  * Создаёт заказы клиента из содержимого корзины текущего пользователя.
@@ -7408,10 +7590,10 @@ class Oi extends j {
7408
7590
  `/internal/clients/${r}/orders`,
7409
7591
  {
7410
7592
  ...e,
7411
- deliveryDate: $(e.deliveryDate, o),
7593
+ deliveryDate: A(e.deliveryDate, o),
7412
7594
  items: t != null && t.length ? t : void 0
7413
7595
  },
7414
- (c) => x.instanceListInitializer(k, c.data),
7596
+ (c) => x.instanceListInitializer(L, c.data),
7415
7597
  i
7416
7598
  );
7417
7599
  }
@@ -7423,7 +7605,7 @@ class Oi extends j {
7423
7605
  * @see /doc/api/internal#/Заказы/api_internal_orders_attach
7424
7606
  */
7425
7607
  attachOrder(r) {
7426
- return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new k(e.data));
7608
+ return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new L(e.data));
7427
7609
  }
7428
7610
  /**
7429
7611
  * Открепляет указанный заказ от оператора и возвращает полные данные заказа.
@@ -7433,7 +7615,7 @@ class Oi extends j {
7433
7615
  * @see /doc/api/internal#/Заказы/api_internal_orders_detach
7434
7616
  */
7435
7617
  detachOrder(r) {
7436
- return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new k(e.data));
7618
+ return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new L(e.data));
7437
7619
  }
7438
7620
  /**
7439
7621
  * Объединяет указанные заказы в базовый заказ и возвращает обновлённые данные базового заказа.
@@ -7444,7 +7626,7 @@ class Oi extends j {
7444
7626
  * @see /doc/api/internal#/Заказы/api_internal_orders_merge
7445
7627
  */
7446
7628
  mergeOrders(r, e) {
7447
- return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new k(t.data));
7629
+ return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new L(t.data));
7448
7630
  }
7449
7631
  /**
7450
7632
  * Пересчитывает стоимость корзины указанного заказа и возвращает обновлённые данные заказа.
@@ -7454,7 +7636,7 @@ class Oi extends j {
7454
7636
  * @see /doc/api/internal#/Заказы/api_internal_orders_recalculate
7455
7637
  */
7456
7638
  recalculateOrder(r) {
7457
- return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new k(e.data));
7639
+ return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new L(e.data));
7458
7640
  }
7459
7641
  /**
7460
7642
  * Копирует товары указанного заказа в текущую корзину пользователя.
@@ -7483,9 +7665,9 @@ class Oi extends j {
7483
7665
  `/internal/orders/${r}`,
7484
7666
  {
7485
7667
  ...e,
7486
- deliveryDate: e.deliveryDate ? $(e.deliveryDate, i) : void 0
7668
+ deliveryDate: e.deliveryDate ? A(e.deliveryDate, i) : void 0
7487
7669
  },
7488
- (o) => new k(o.data),
7670
+ (o) => new L(o.data),
7489
7671
  t
7490
7672
  );
7491
7673
  }
@@ -7515,7 +7697,7 @@ class Oi extends j {
7515
7697
  is_additional_sale: e.isAdditionalSale,
7516
7698
  ...e.configuratorParams
7517
7699
  },
7518
- (i) => new k(i.data),
7700
+ (i) => new L(i.data),
7519
7701
  t
7520
7702
  );
7521
7703
  }
@@ -7538,7 +7720,7 @@ class Oi extends j {
7538
7720
  status: e,
7539
7721
  statusDetail: t
7540
7722
  },
7541
- (o) => new k(o.data),
7723
+ (o) => new L(o.data),
7542
7724
  i
7543
7725
  );
7544
7726
  }
@@ -7552,7 +7734,7 @@ class Oi extends j {
7552
7734
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
7553
7735
  */
7554
7736
  changeOrderStatusDetail(r, e) {
7555
- return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new k(t.data));
7737
+ return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new L(t.data));
7556
7738
  }
7557
7739
  /**
7558
7740
  * Возвращает историю изменения статусов заказа.
@@ -7562,7 +7744,7 @@ class Oi extends j {
7562
7744
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
7563
7745
  */
7564
7746
  getOrderStatusHistory(r) {
7565
- return this.getTypedList(Is, `/internal/orders/${r}/history`);
7747
+ return this.getTypedList(Ns, `/internal/orders/${r}/history`);
7566
7748
  }
7567
7749
  /**
7568
7750
  * Возвращает содержимое печатной формы заказа в формате HTML.
@@ -7606,7 +7788,7 @@ class Oi extends j {
7606
7788
  * @see /doc/api/internal#/Заказы/api_internal_orders_change_attached_operator
7607
7789
  */
7608
7790
  changeAttachedOperator(r, e) {
7609
- return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new k(t.data));
7791
+ return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new L(t.data));
7610
7792
  }
7611
7793
  /**
7612
7794
  * Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
@@ -7616,7 +7798,7 @@ class Oi extends j {
7616
7798
  * @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
7617
7799
  */
7618
7800
  deleteOrderAttachedFile(r) {
7619
- return this.delete(`/internal/orders/${r}/file/attached`, (e) => new k(e.data));
7801
+ return this.delete(`/internal/orders/${r}/file/attached`, (e) => new L(e.data));
7620
7802
  }
7621
7803
  /**
7622
7804
  * Удаляет продукт из заказа и возвращает обновлённые данные заказа.
@@ -7627,7 +7809,7 @@ class Oi extends j {
7627
7809
  * @see /doc/api/internal#/operations/api_internal_orders_product_delete
7628
7810
  */
7629
7811
  deleteOrderProduct(r, e) {
7630
- return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new k(t.data));
7812
+ return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new L(t.data));
7631
7813
  }
7632
7814
  /**
7633
7815
  * Изменяет продукт заказа и возвращает обновлённые данные заказа.
@@ -7656,7 +7838,7 @@ class Oi extends j {
7656
7838
  is_additional_sale: t.isAdditionalSale,
7657
7839
  ...t.configuratorParams
7658
7840
  },
7659
- (o) => new k(o.data),
7841
+ (o) => new L(o.data),
7660
7842
  i
7661
7843
  );
7662
7844
  }
@@ -7695,7 +7877,7 @@ class Oi extends j {
7695
7877
  return this.get(
7696
7878
  `/internal/orders/delivery/${r}/cost`,
7697
7879
  {
7698
- date: $(e, o),
7880
+ date: A(e, o),
7699
7881
  warehouse_id: t
7700
7882
  },
7701
7883
  (c) => c.data,
@@ -7704,8 +7886,8 @@ class Oi extends j {
7704
7886
  );
7705
7887
  }
7706
7888
  }
7707
- const Ii = Symbol("currentOrder");
7708
- class mr {
7889
+ const Mi = Symbol("currentOrder");
7890
+ class wr {
7709
7891
  /**
7710
7892
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
7711
7893
  *
@@ -7732,12 +7914,12 @@ class mr {
7732
7914
  * Источник клиентской цены.
7733
7915
  */
7734
7916
  s(this, "source");
7735
- this.client = new ne(r == null ? void 0 : r.client), this.product = new q(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) ?? Ir.Product;
7917
+ this.client = new le(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) ?? qr.Product;
7736
7918
  }
7737
7919
  }
7738
- const yr = (n) => {
7920
+ const vr = (n) => {
7739
7921
  var r, e, t, i, o;
7740
- return n ? it(
7922
+ return n ? ot(
7741
7923
  {
7742
7924
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
7743
7925
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -7746,13 +7928,13 @@ const yr = (n) => {
7746
7928
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
7747
7929
  hideNotActive: n.hideNotActive
7748
7930
  },
7749
- (c) => a(c) || (z(c) || $r(c)) && Z(c)
7931
+ (c) => a(c) || (G(c) || Lr(c)) && Q(c)
7750
7932
  ) : {};
7751
- }, Kr = (n) => {
7933
+ }, Zr = (n) => {
7752
7934
  const r = {};
7753
7935
  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;
7754
7936
  };
7755
- class xi extends h {
7937
+ class Hi extends h {
7756
7938
  /**
7757
7939
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
7758
7940
  *
@@ -7766,10 +7948,10 @@ class xi extends h {
7766
7948
  return this.get(
7767
7949
  `/internal/price/products/${r}/analyze`,
7768
7950
  {
7769
- ...Kr(e),
7770
- filters: yr(t)
7951
+ ...Zr(e),
7952
+ filters: vr(t)
7771
7953
  },
7772
- (i) => x.instanceListInitializer(mr, i.data)
7954
+ (i) => x.instanceListInitializer(wr, i.data)
7773
7955
  );
7774
7956
  }
7775
7957
  /**
@@ -7785,10 +7967,10 @@ class xi extends h {
7785
7967
  return this.get(
7786
7968
  `/internal/price/categories/${r}/analyze`,
7787
7969
  {
7788
- ...Kr(e),
7789
- filters: yr(t)
7970
+ ...Zr(e),
7971
+ filters: vr(t)
7790
7972
  },
7791
- (i) => x.instanceListInitializer(mr, i.data)
7973
+ (i) => x.instanceListInitializer(wr, i.data)
7792
7974
  );
7793
7975
  }
7794
7976
  /**
@@ -7807,13 +7989,13 @@ class xi extends h {
7807
7989
  `/internal/price/categories/${r}/analyze/square`,
7808
7990
  {
7809
7991
  ...e,
7810
- filters: yr(t)
7992
+ filters: vr(t)
7811
7993
  },
7812
- (i) => x.instanceListInitializer(mr, i.data)
7994
+ (i) => x.instanceListInitializer(wr, i.data)
7813
7995
  );
7814
7996
  }
7815
7997
  }
7816
- class xs {
7998
+ class Fs {
7817
7999
  /**
7818
8000
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
7819
8001
  *
@@ -7860,10 +8042,10 @@ class xs {
7860
8042
  * @inheritDoc
7861
8043
  */
7862
8044
  s(this, "currency");
7863
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = O(r.costDate) ? I(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new qe(r.product) : void 0, this.client = r.client ? new _(r.client) : void 0, this.executor = r.executor ? new _(r.executor) : void 0, this.currency = r.currency ? new E(r.currency) : void 0;
8045
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = I(r.costDate) ? k(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Fe(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 E(r.currency) : void 0;
7864
8046
  }
7865
8047
  }
7866
- class _s extends qe {
8048
+ class Us extends Fe {
7867
8049
  /**
7868
8050
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
7869
8051
  *
@@ -7875,10 +8057,10 @@ class _s extends qe {
7875
8057
  * @inheritDoc
7876
8058
  */
7877
8059
  s(this, "history");
7878
- this.history = De(e.history, (t) => new xs(t));
8060
+ this.history = V(e.history, (t) => new Fs(t));
7879
8061
  }
7880
8062
  }
7881
- class _i extends h {
8063
+ class Bi extends h {
7882
8064
  /**
7883
8065
  * Возвращает данные об истории изменения цен.
7884
8066
  *
@@ -7888,21 +8070,21 @@ class _i extends h {
7888
8070
  */
7889
8071
  getProductPriceHistory(r) {
7890
8072
  var o, c, u, p, g;
7891
- const e = S().config.dateFormats.api, t = it(
7892
- xe(r, {
8073
+ const e = S().config.dateFormats.api, t = ot(
8074
+ qe(r, {
7893
8075
  costDate: {
7894
- from: vr((o = r.costDate) == null ? void 0 : o.from) ? $(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7895
- to: vr((u = r.costDate) == null ? void 0 : u.to) ? $(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
8076
+ from: Dr((o = r.costDate) == null ? void 0 : o.from) ? A(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
8077
+ to: Dr((u = r.costDate) == null ? void 0 : u.to) ? A(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7896
8078
  }
7897
8079
  }),
7898
- (y) => a(y) || (z(y) || $r(y)) && Z(y)
8080
+ (y) => a(y) || (G(y) || Lr(y)) && Q(y)
7899
8081
  ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
7900
8082
  return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((y) => [
7901
- new _s(xe(y[0], { history: y }))
8083
+ new Us(qe(y[0], { history: y }))
7902
8084
  ]);
7903
8085
  }
7904
8086
  }
7905
- class Xr {
8087
+ class et {
7906
8088
  /**
7907
8089
  * Инициализирует экземпляр класса {@link RecommendationsList}.
7908
8090
  *
@@ -7917,10 +8099,10 @@ class Xr {
7917
8099
  * Список рекомендованных категорий продуктов.
7918
8100
  */
7919
8101
  s(this, "productCategories", []);
7920
- r != null && r.products && (this.products = r.products.map((e) => new qe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new qe(e)));
8102
+ r != null && r.products && (this.products = r.products.map((e) => new Fe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Fe(e)));
7921
8103
  }
7922
8104
  }
7923
- class qi extends h {
8105
+ class Wi extends h {
7924
8106
  /**
7925
8107
  * Возвращает данные о рекомендациях указанной категории продуктов.
7926
8108
  *
@@ -7928,7 +8110,7 @@ class qi extends h {
7928
8110
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
7929
8111
  */
7930
8112
  getProductCategoryRecommendations(r) {
7931
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Xr(e.data));
8113
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new et(e.data));
7932
8114
  }
7933
8115
  /**
7934
8116
  * Возвращает данные о рекомендациях указанного продукта.
@@ -7937,7 +8119,7 @@ class qi extends h {
7937
8119
  * @see /docs/api#/operations/api_internal_recommendations_product_get
7938
8120
  */
7939
8121
  getProductRecommendations(r) {
7940
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Xr(e.data));
8122
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new et(e.data));
7941
8123
  }
7942
8124
  /**
7943
8125
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -7966,12 +8148,12 @@ class qi extends h {
7966
8148
  });
7967
8149
  }
7968
8150
  }
7969
- var qs = /* @__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))(qs || {}), Ns = /* @__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))(Ns || {});
7970
- class Us extends w {
8151
+ var Ms = /* @__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))(Ms || {}), Hs = /* @__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))(Hs || {});
8152
+ class Bs extends v {
7971
8153
  }
7972
- class Fs extends w {
8154
+ class Ws extends v {
7973
8155
  }
7974
- class Zr extends w {
8156
+ class rt extends v {
7975
8157
  /**
7976
8158
  * Инициализирует экземпляр класса {@link CityWithUserRegion}.
7977
8159
  *
@@ -7984,18 +8166,18 @@ class Zr extends w {
7984
8166
  * @inheritDoc
7985
8167
  */
7986
8168
  s(this, "userRegions");
7987
- this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new Je(i))) ?? [];
8169
+ this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new rr(i))) ?? [];
7988
8170
  }
7989
8171
  }
7990
- class Ms extends w {
8172
+ class zs extends v {
7991
8173
  }
7992
- class Hs extends w {
8174
+ class Gs extends v {
7993
8175
  }
7994
- class Bs extends w {
8176
+ class Es extends v {
7995
8177
  }
7996
- class Ws extends w {
8178
+ class js extends v {
7997
8179
  }
7998
- class Ni {
8180
+ class zi {
7999
8181
  /**
8000
8182
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
8001
8183
  *
@@ -8014,9 +8196,9 @@ class Ni {
8014
8196
  return r.id === 0 && r.slug === "-undefined-";
8015
8197
  }
8016
8198
  }
8017
- class Lt extends w {
8199
+ class It extends v {
8018
8200
  }
8019
- const B = class B extends Ne {
8201
+ const W = class W extends Ue {
8020
8202
  /**
8021
8203
  * Исключает из списка записей справочника местоположений служебную запись
8022
8204
  * неизвестного региона или города.
@@ -8024,7 +8206,7 @@ const B = class B extends Ne {
8024
8206
  * @param locations Записи справочника местоположений.
8025
8207
  */
8026
8208
  static withoutUnknownLocation(r) {
8027
- return r.filter((e) => e.id !== B.unknownLocationId);
8209
+ return r.filter((e) => e.id !== W.unknownLocationId);
8028
8210
  }
8029
8211
  /**
8030
8212
  * Возвращает {@link Promise} для получения данных указанного справочника.
@@ -8034,26 +8216,26 @@ const B = class B extends Ne {
8034
8216
  * и использовать в случае аналогичных запросов.
8035
8217
  */
8036
8218
  getReference(r, e = !1) {
8037
- return this.getTypedDataArrayRequester(Us, `/internal/references/${r}`, e);
8219
+ return this.getTypedDataArrayRequester(Bs, `/internal/references/${r}`, e);
8038
8220
  }
8039
8221
  /**
8040
8222
  * Возвращает {@link Promise} для получения справочника данных о канале
8041
8223
  * первичного интереса.
8042
8224
  */
8043
8225
  getChannelPrimaryInterest() {
8044
- return this.getTypedDataArrayRequester(Pt, "/internal/references/channel-primary-interest", !0);
8226
+ return this.getTypedDataArrayRequester(bt, "/internal/references/channel-primary-interest", !0);
8045
8227
  }
8046
8228
  /**
8047
8229
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
8048
8230
  */
8049
8231
  getContactPositions() {
8050
- return this.getTypedDataArrayRequester(Ms, "/internal/references/contact-position", !0);
8232
+ return this.getTypedDataArrayRequester(zs, "/internal/references/contact-position", !0);
8051
8233
  }
8052
8234
  /**
8053
8235
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
8054
8236
  */
8055
8237
  getCuratedDirection() {
8056
- return this.getTypedDataArrayRequester(qr, "/internal/references/curated-direction", !0);
8238
+ return this.getTypedDataArrayRequester(Fr, "/internal/references/curated-direction", !0);
8057
8239
  }
8058
8240
  /**
8059
8241
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -8066,61 +8248,61 @@ const B = class B extends Ne {
8066
8248
  * групп партнеров (направлений деятельности).
8067
8249
  */
8068
8250
  getPartnerGroup() {
8069
- return this.getTypedDataArrayRequester(Ce, "/internal/references/partner-group", !0);
8251
+ return this.getTypedDataArrayRequester(Re, "/internal/references/partner-group", !0);
8070
8252
  }
8071
8253
  /**
8072
8254
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
8073
8255
  */
8074
8256
  getOpf() {
8075
- return this.getTypedDataArrayRequester(te, "/public/references/opf", !0);
8257
+ return this.getTypedDataArrayRequester(se, "/public/references/opf", !0);
8076
8258
  }
8077
8259
  /**
8078
8260
  * Возвращает {@link Promise} для получения справочника операторов.
8079
8261
  */
8080
8262
  getOperators() {
8081
- return this.getTypedDataArrayRequester($t, "/internal/references/operator", !0);
8263
+ return this.getTypedDataArrayRequester(Lt, "/internal/references/operator", !0);
8082
8264
  }
8083
8265
  /**
8084
8266
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
8085
8267
  */
8086
8268
  getOrderPaymentStatuses() {
8087
- return this.getTypedDataArrayRequester(Hs, "/public/references/order-payment-status", !0);
8269
+ return this.getTypedDataArrayRequester(Gs, "/public/references/order-payment-status", !0);
8088
8270
  }
8089
8271
  /**
8090
8272
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
8091
8273
  */
8092
8274
  getOrderStatuses() {
8093
- return this.getTypedDataArrayRequester(Ke, "/internal/references/order-status", !0);
8275
+ return this.getTypedDataArrayRequester(tr, "/internal/references/order-status", !0);
8094
8276
  }
8095
8277
  /**
8096
8278
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
8097
8279
  */
8098
8280
  getOrderStatusDetails() {
8099
- return this.getTypedDataArrayRequester(Bs, "/internal/references/order-status-detail", !0);
8281
+ return this.getTypedDataArrayRequester(Es, "/internal/references/order-status-detail", !0);
8100
8282
  }
8101
8283
  /**
8102
8284
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
8103
8285
  */
8104
8286
  getPaymentTypes() {
8105
- return this.getTypedDataArrayRequester(kt, "/public/references/payment-type", !0);
8287
+ return this.getTypedDataArrayRequester(Ot, "/public/references/payment-type", !0);
8106
8288
  }
8107
8289
  /**
8108
8290
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
8109
8291
  */
8110
8292
  getResourceTypes() {
8111
- return this.getTypedDataArrayRequester(Lt, "/internal/references/resource-type", !0);
8293
+ return this.getTypedDataArrayRequester(It, "/internal/references/resource-type", !0);
8112
8294
  }
8113
8295
  /**
8114
8296
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
8115
8297
  */
8116
8298
  getSalesDirections() {
8117
- return this.getTypedDataArrayRequester(F, "/public/references/sales-direction", !0);
8299
+ return this.getTypedDataArrayRequester(U, "/public/references/sales-direction", !0);
8118
8300
  }
8119
8301
  /**
8120
8302
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
8121
8303
  */
8122
8304
  getSourcePrimaryInterest() {
8123
- return this.getTypedDataArrayRequester(Rt, "/internal/references/source-primary-interest", !0);
8305
+ return this.getTypedDataArrayRequester(dt, "/internal/references/source-primary-interest", !0);
8124
8306
  }
8125
8307
  /**
8126
8308
  * Выполняет поиск данных о городах по терму в названии.
@@ -8128,7 +8310,7 @@ const B = class B extends Ne {
8128
8310
  * @param term Терм поиска.
8129
8311
  */
8130
8312
  searchCity(r) {
8131
- return this.getTypedDataArrayRequester(we, `/internal/references/city-with-region-and-country/search?term=${r}`);
8313
+ return this.getTypedDataArrayRequester(Pe, `/internal/references/city-with-region-and-country/search?term=${r}`);
8132
8314
  }
8133
8315
  /**
8134
8316
  * Выполняет поиск данных о регионах по терму в названии.
@@ -8136,7 +8318,7 @@ const B = class B extends Ne {
8136
8318
  * @param term Терм поиска.
8137
8319
  */
8138
8320
  searchRegion(r) {
8139
- return this.getTypedDataArrayRequester(ve, `/internal/references/region-with-country/search?term=${r}`);
8321
+ return this.getTypedDataArrayRequester(De, `/internal/references/region-with-country/search?term=${r}`);
8140
8322
  }
8141
8323
  /**
8142
8324
  * Возвращает {@link Promise} для получения справочника регионов указанной страны.
@@ -8146,8 +8328,8 @@ const B = class B extends Ne {
8146
8328
  * @param countryId Идентификатор страны.
8147
8329
  */
8148
8330
  getRegionsByCountry(r) {
8149
- return this.getTypedDataArrayRequester(ve, "/internal/references/region", !1, { params: { countryId: r } }).then(
8150
- (e) => B.withoutUnknownLocation(e)
8331
+ return this.getTypedDataArrayRequester(De, "/internal/references/region", !1, { params: { countryId: r } }).then(
8332
+ (e) => W.withoutUnknownLocation(e)
8151
8333
  );
8152
8334
  }
8153
8335
  /**
@@ -8158,8 +8340,8 @@ const B = class B extends Ne {
8158
8340
  * @param regionId Идентификатор региона.
8159
8341
  */
8160
8342
  getCitiesByRegion(r) {
8161
- return this.getTypedDataArrayRequester(Fs, "/internal/references/city", !1, { params: { regionId: r } }).then(
8162
- (e) => B.withoutUnknownLocation(e)
8343
+ return this.getTypedDataArrayRequester(Ws, "/internal/references/city", !1, { params: { regionId: r } }).then(
8344
+ (e) => W.withoutUnknownLocation(e)
8163
8345
  );
8164
8346
  }
8165
8347
  /**
@@ -8169,8 +8351,8 @@ const B = class B extends Ne {
8169
8351
  * @param regionId Идентификатор региона.
8170
8352
  */
8171
8353
  getCitiesWithUserRegionByRegion(r) {
8172
- return this.getTypedDataArrayRequester(Zr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
8173
- (e) => B.withoutUnknownLocation(e)
8354
+ return this.getTypedDataArrayRequester(rt, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
8355
+ (e) => W.withoutUnknownLocation(e)
8174
8356
  );
8175
8357
  }
8176
8358
  /**
@@ -8183,12 +8365,12 @@ const B = class B extends Ne {
8183
8365
  */
8184
8366
  searchCityWithRegion(r, e, t = void 0) {
8185
8367
  return this.getTypedDataArrayRequester(
8186
- we,
8368
+ Pe,
8187
8369
  "/internal/references/city-with-region/search",
8188
8370
  !1,
8189
8371
  { term: r, ...e ? { params: { countryId: e } } : {} },
8190
8372
  t
8191
- ).then((i) => B.withoutUnknownLocation(i));
8373
+ ).then((i) => W.withoutUnknownLocation(i));
8192
8374
  }
8193
8375
  /**
8194
8376
  * Выполняет поиск данных о городах по терму в названии с данными
@@ -8198,8 +8380,8 @@ const B = class B extends Ne {
8198
8380
  * @param signal Сигнал отмены запроса.
8199
8381
  */
8200
8382
  searchCityWithUserRegion(r, e = void 0) {
8201
- return this.getTypedDataArrayRequester(Zr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8202
- (t) => B.withoutUnknownLocation(t)
8383
+ return this.getTypedDataArrayRequester(rt, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
8384
+ (t) => W.withoutUnknownLocation(t)
8203
8385
  );
8204
8386
  }
8205
8387
  /**
@@ -8208,47 +8390,47 @@ const B = class B extends Ne {
8208
8390
  * @param term Терм поиска.
8209
8391
  */
8210
8392
  searchCountry(r) {
8211
- return this.getTypedDataArrayRequester(ae, `/internal/references/country/search?term=${r}`);
8393
+ return this.getTypedDataArrayRequester(Ce, `/internal/references/country/search?term=${r}`);
8212
8394
  }
8213
8395
  /**
8214
8396
  * Возвращает {@link Promise} для получения справочника типов доставки.
8215
8397
  */
8216
8398
  getDeliveryTypes() {
8217
- return this.getTypedDataArrayRequester(V, "/internal/references/delivery-type", !0);
8399
+ return this.getTypedDataArrayRequester(K, "/internal/references/delivery-type", !0);
8218
8400
  }
8219
8401
  /**
8220
8402
  * Возвращает {@link Promise} для получения справочника складов.
8221
8403
  */
8222
8404
  getWarehouses() {
8223
- return this.getTypedDataArrayRequester(Me, "/public/references/warehouse", !0);
8405
+ return this.getTypedDataArrayRequester(He, "/public/references/warehouse", !0);
8224
8406
  }
8225
8407
  /**
8226
8408
  * Возвращает {@link Promise} для получения справочника типов свойств.
8227
8409
  */
8228
8410
  getPropertyTypes() {
8229
- return this.getTypedDataArrayRequester(at, "/internal/references/property-type", !0);
8411
+ return this.getTypedDataArrayRequester(vt, "/internal/references/property-type", !0);
8230
8412
  }
8231
8413
  /**
8232
8414
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
8233
8415
  */
8234
8416
  getPriceCoefficients() {
8235
- return this.getTypedDataArrayRequester(Fe, "/internal/references/price-coefficient", !0);
8417
+ return this.getTypedDataArrayRequester(oe, "/internal/references/price-coefficient", !0);
8236
8418
  }
8237
8419
  /**
8238
8420
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
8239
8421
  */
8240
8422
  getProductFileType() {
8241
- return this.getTypedDataArrayRequester(Ws, "/public/references/product-file-type", !0);
8423
+ return this.getTypedDataArrayRequester(js, "/public/references/product-file-type", !0);
8242
8424
  }
8243
8425
  };
8244
8426
  /**
8245
8427
  * Идентификатор служебных записей справочников регионов и городов,
8246
8428
  * обозначающих неизвестное местоположение.
8247
8429
  */
8248
- s(B, "unknownLocationId", 1);
8249
- let T = B;
8250
- const d = se("common.references_private", () => {
8251
- const n = v({}), r = v(void 0), e = v(void 0), t = v(void 0), i = v(void 0), o = v(void 0), c = v(void 0), u = v(void 0), p = v(void 0), g = v(void 0), y = v(void 0), D = v(void 0), be = v(void 0), Te = v(void 0), oe = v(void 0), ce = v(void 0), Xe = v(void 0), Ze = v(void 0), er = v(void 0), l = v(void 0);
8430
+ s(W, "unknownLocationId", 1);
8431
+ let d = W;
8432
+ const T = ie("common.references_private", () => {
8433
+ 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), D = w(void 0), de = w(void 0), Te = w(void 0), ue = w(void 0), pe = w(void 0), sr = w(void 0), ir = w(void 0), nr = w(void 0), l = w(void 0);
8252
8434
  return {
8253
8435
  /**
8254
8436
  * Список загружаемых/загруженных на данный момент значений.
@@ -8301,7 +8483,7 @@ const d = se("common.references_private", () => {
8301
8483
  /**
8302
8484
  * Справочник групп партнеров.
8303
8485
  */
8304
- partnerGroupReference: be,
8486
+ partnerGroupReference: de,
8305
8487
  /**
8306
8488
  * Справочник типов файлов продукктов/категорий.
8307
8489
  */
@@ -8309,122 +8491,122 @@ const d = se("common.references_private", () => {
8309
8491
  /**
8310
8492
  * Справочник типов ресурсов.
8311
8493
  */
8312
- resourceTypesReference: oe,
8494
+ resourceTypesReference: ue,
8313
8495
  /**
8314
8496
  * Справочник направлений продаж.
8315
8497
  */
8316
- salesDirectionsReference: ce,
8498
+ salesDirectionsReference: pe,
8317
8499
  /**
8318
8500
  * Справочник источников первичного интереса.
8319
8501
  */
8320
- sourcePrimaryInterestReference: Xe,
8502
+ sourcePrimaryInterestReference: sr,
8321
8503
  /**
8322
8504
  * Справочник складов.
8323
8505
  */
8324
- warehousesReference: Ze,
8506
+ warehousesReference: ir,
8325
8507
  /**
8326
8508
  * Справочник типов свойств.
8327
8509
  */
8328
- propertyTypesReference: er,
8510
+ propertyTypesReference: nr,
8329
8511
  /**
8330
8512
  * Справочник коэффициентов цен.
8331
8513
  */
8332
8514
  priceCoefficientsReference: l
8333
8515
  };
8334
- }), Ui = se("common.references", () => {
8516
+ }), Gi = ie("common.references", () => {
8335
8517
  const n = R(() => {
8336
- const l = d();
8337
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((f) => {
8518
+ const l = T();
8519
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
8338
8520
  l.channelPrimaryInterestReference = f;
8339
8521
  }).catch(C)), l.channelPrimaryInterestReference;
8340
8522
  }), r = R(() => {
8341
- const l = d();
8342
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((f) => {
8523
+ const l = T();
8524
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(d).getContactPositions().then((f) => {
8343
8525
  l.contactPositionsReference = f;
8344
8526
  }).catch(C)), l.contactPositionsReference;
8345
8527
  }), e = R(() => {
8346
- const l = d();
8347
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((f) => {
8528
+ const l = T();
8529
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(d).getCurrency().then((f) => {
8348
8530
  l.currencyReference = f;
8349
8531
  }).catch(C)), l.currencyReference;
8350
8532
  }), t = R(() => {
8351
- const l = d();
8352
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((f) => {
8533
+ const l = T();
8534
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(d).getOpf().then((f) => {
8353
8535
  l.opfReference = f;
8354
8536
  }).catch(C)), l.opfReference;
8355
8537
  }), i = R(() => {
8356
- const l = d();
8357
- return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(T).getOperators().then((f) => {
8538
+ const l = T();
8539
+ return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(d).getOperators().then((f) => {
8358
8540
  l.operatorReference = f;
8359
8541
  }).catch(C)), l.operatorReference;
8360
8542
  }), o = R(() => {
8361
- const l = d();
8362
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((f) => {
8543
+ const l = T();
8544
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(d).getOrderPaymentStatuses().then((f) => {
8363
8545
  l.orderPaymentStatusReference = f;
8364
8546
  }).catch(C)), l.orderPaymentStatusReference;
8365
8547
  }), c = R(() => {
8366
- const l = d();
8367
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((f) => {
8548
+ const l = T();
8549
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(d).getOrderStatuses().then((f) => {
8368
8550
  l.orderStatusReference = f;
8369
8551
  }).catch(C)), l.orderStatusReference;
8370
8552
  }), u = R(() => {
8371
- const l = d();
8372
- return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(T).getOrderStatusDetails().then((f) => {
8553
+ const l = T();
8554
+ return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(d).getOrderStatusDetails().then((f) => {
8373
8555
  l.orderStatusDetailReference = f;
8374
8556
  }).catch(C)), l.orderStatusDetailReference;
8375
8557
  }), p = R(() => {
8376
- const l = d();
8377
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((f) => {
8558
+ const l = T();
8559
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(d).getPaymentTypes().then((f) => {
8378
8560
  l.paymentTypeReference = f;
8379
8561
  }).catch(C)), l.paymentTypeReference;
8380
8562
  }), g = R(() => {
8381
- const l = d();
8382
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((f) => {
8563
+ const l = T();
8564
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(d).getPartnerGroup().then((f) => {
8383
8565
  l.partnerGroupReference = f;
8384
8566
  }).catch(C)), l.partnerGroupReference;
8385
8567
  }), y = R(() => {
8386
- const l = d();
8387
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((f) => {
8568
+ const l = T();
8569
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(d).getProductFileType().then((f) => {
8388
8570
  l.productFileTypeReference = f;
8389
8571
  }).catch(C)), l.productFileTypeReference;
8390
8572
  }), D = R(() => {
8391
- const l = d();
8392
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((f) => {
8573
+ const l = T();
8574
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(d).getResourceTypes().then((f) => {
8393
8575
  l.resourceTypesReference = f;
8394
8576
  }).catch(C)), l.resourceTypesReference;
8395
- }), be = R(() => {
8396
- const l = d();
8397
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((f) => {
8577
+ }), de = R(() => {
8578
+ const l = T();
8579
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(d).getSalesDirections().then((f) => {
8398
8580
  l.salesDirectionsReference = f;
8399
8581
  }).catch(C)), l.salesDirectionsReference;
8400
8582
  }), Te = R(() => {
8401
- const l = d();
8402
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((f) => {
8583
+ const l = T();
8584
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(d).getSourcePrimaryInterest().then((f) => {
8403
8585
  l.sourcePrimaryInterestReference = f;
8404
8586
  }).catch(C)), l.sourcePrimaryInterestReference;
8405
- }), oe = R(() => {
8406
- const l = d();
8407
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((f) => {
8587
+ }), ue = R(() => {
8588
+ const l = T();
8589
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(d).getDeliveryTypes().then((f) => {
8408
8590
  l.deliveryTypeReference = f;
8409
8591
  }).catch(C)), l.deliveryTypeReference;
8410
- }), ce = R(() => {
8411
- const l = d();
8412
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(dt).getManagers().then((f) => {
8592
+ }), pe = R(() => {
8593
+ const l = T();
8594
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(At).getManagers().then((f) => {
8413
8595
  l.managersList = f;
8414
8596
  }).catch(C)), l.managersList;
8415
- }), Xe = R(() => {
8416
- const l = d();
8417
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((f) => {
8597
+ }), sr = R(() => {
8598
+ const l = T();
8599
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
8418
8600
  l.warehousesReference = f;
8419
8601
  }).catch(C)), l.warehousesReference;
8420
- }), Ze = R(() => {
8421
- const l = d();
8422
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((f) => {
8602
+ }), ir = R(() => {
8603
+ const l = T();
8604
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
8423
8605
  l.propertyTypesReference = f;
8424
8606
  }).catch(C)), l.propertyTypesReference;
8425
- }), er = R(() => {
8426
- const l = d();
8427
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((f) => {
8607
+ }), nr = R(() => {
8608
+ const l = T();
8609
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
8428
8610
  l.priceCoefficientsReference = f;
8429
8611
  }).catch(C)), l.priceCoefficientsReference;
8430
8612
  });
@@ -8480,7 +8662,7 @@ const d = se("common.references_private", () => {
8480
8662
  /**
8481
8663
  * Справочник направлений продаж.
8482
8664
  */
8483
- salesDirectionsReference: be,
8665
+ salesDirectionsReference: de,
8484
8666
  /**
8485
8667
  * Справочник каналов первичного интереса.
8486
8668
  */
@@ -8488,26 +8670,26 @@ const d = se("common.references_private", () => {
8488
8670
  /**
8489
8671
  * Справочник типов доставки.
8490
8672
  */
8491
- deliveryTypeReference: oe,
8673
+ deliveryTypeReference: ue,
8492
8674
  /**
8493
8675
  * Список менеджеров.
8494
8676
  */
8495
- managersList: ce,
8677
+ managersList: pe,
8496
8678
  /**
8497
8679
  * Справочник складов.
8498
8680
  */
8499
- warehousesReference: Xe,
8681
+ warehousesReference: sr,
8500
8682
  /**
8501
8683
  * Справочник типов свойств.
8502
8684
  */
8503
- propertyTypesReference: Ze,
8685
+ propertyTypesReference: ir,
8504
8686
  /**
8505
8687
  * Справочник коэффициентов цен.
8506
8688
  */
8507
- priceCoefficientsReference: er
8689
+ priceCoefficientsReference: nr
8508
8690
  };
8509
8691
  });
8510
- class zs {
8692
+ class Ys {
8511
8693
  /**
8512
8694
  * Инициализирует экземпляр класса {@link MetaTagItem}.
8513
8695
  *
@@ -8525,7 +8707,7 @@ class zs {
8525
8707
  this.name = r.name, this.content = r.content;
8526
8708
  }
8527
8709
  }
8528
- class et {
8710
+ class tt {
8529
8711
  /**
8530
8712
  * Инициализирует экземпляр класса {@link Seo}.
8531
8713
  *
@@ -8565,10 +8747,10 @@ class et {
8565
8747
  */
8566
8748
  s(this, "tags");
8567
8749
  var e;
8568
- this.resourceType = new Lt(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 zs(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8750
+ this.resourceType = new It(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 Ys(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8569
8751
  }
8570
8752
  }
8571
- class Fi extends h {
8753
+ class Ei extends h {
8572
8754
  /**
8573
8755
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
8574
8756
  *
@@ -8576,7 +8758,7 @@ class Fi extends h {
8576
8758
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
8577
8759
  */
8578
8760
  getResourceSeoData(r, e) {
8579
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new et(t.data));
8761
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new tt(t.data));
8580
8762
  }
8581
8763
  /**
8582
8764
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -8587,7 +8769,7 @@ class Fi extends h {
8587
8769
  * в случае ошибок в запросах.
8588
8770
  */
8589
8771
  saveResourceSeoData(r, e = {}) {
8590
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new et(t.data), e);
8772
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new tt(t.data), e);
8591
8773
  }
8592
8774
  /**
8593
8775
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -8599,7 +8781,7 @@ class Fi extends h {
8599
8781
  return this.delete(`/internal/seo/${r.slug}/${e}`);
8600
8782
  }
8601
8783
  }
8602
- class Mi extends h {
8784
+ class ji extends h {
8603
8785
  /**
8604
8786
  * Возвращает подсказки по адресам.
8605
8787
  *
@@ -8646,8 +8828,8 @@ class Mi extends h {
8646
8828
  });
8647
8829
  }
8648
8830
  }
8649
- var Ot = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(Ot || {});
8650
- class Es extends yt {
8831
+ var xt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(xt || {});
8832
+ class Qs extends wt {
8651
8833
  /**
8652
8834
  * Инициализирует экземпляр класса {@link User}.
8653
8835
  *
@@ -8671,10 +8853,10 @@ class Es extends yt {
8671
8853
  * Роль ценообразования текущего пользователя.
8672
8854
  */
8673
8855
  s(this, "pricingRole");
8674
- 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 gt(e.pricingRole) : void 0;
8856
+ 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 mt(e.pricingRole) : void 0;
8675
8857
  }
8676
8858
  }
8677
- class Hi extends h {
8859
+ class Yi extends h {
8678
8860
  /**
8679
8861
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
8680
8862
  */
@@ -8690,17 +8872,17 @@ class Hi extends h {
8690
8872
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
8691
8873
  }
8692
8874
  }
8693
- class js extends h {
8875
+ class Vs extends h {
8694
8876
  /**
8695
8877
  * Возвращает данные о текущем пользователе.
8696
8878
  */
8697
8879
  // eslint-disable-next-line class-methods-use-this
8698
8880
  getCurrentUser() {
8699
- return this.get("/internal/users/info", {}, (r) => new Es(r.data), !0);
8881
+ return this.get("/internal/users/info", {}, (r) => new Qs(r.data), !0);
8700
8882
  }
8701
8883
  }
8702
- const dr = se("common.user_state_private", () => {
8703
- const n = v({}), r = v(void 0), e = v(void 0);
8884
+ const Ar = ie("common.user_state_private", () => {
8885
+ const n = w({}), r = w(void 0), e = w(void 0);
8704
8886
  return {
8705
8887
  /**
8706
8888
  * Список загружаемых/загруженных на данный момент значений.
@@ -8716,23 +8898,23 @@ const dr = se("common.user_state_private", () => {
8716
8898
  currentManager: e
8717
8899
  };
8718
8900
  });
8719
- function rt(n) {
8720
- const r = dr();
8721
- (n == null ? void 0 : n.type) !== Ot.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(dt).getManager(n.id).then((e) => {
8901
+ function st(n) {
8902
+ const r = Ar();
8903
+ (n == null ? void 0 : n.type) !== xt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(At).getManager(n.id).then((e) => {
8722
8904
  r.currentManager = e;
8723
8905
  }).catch(C).finally(() => {
8724
8906
  r.dataLoaderList.currentManager = !1;
8725
8907
  }));
8726
8908
  }
8727
- const Bi = se("common.user_state", () => {
8909
+ const Qi = ie("common.user_state", () => {
8728
8910
  const n = R(() => {
8729
- const e = dr();
8730
- return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(js).getCurrentUser().then((t) => {
8731
- e.currentUser = t, rt(t);
8911
+ const e = Ar();
8912
+ return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(Vs).getCurrentUser().then((t) => {
8913
+ e.currentUser = t, st(t);
8732
8914
  }).catch(C).finally(() => {
8733
8915
  e.dataLoaderList.currentUser = !1;
8734
8916
  })), e.currentUser;
8735
- }), r = R(() => (rt(n.value), dr().currentManager));
8917
+ }), r = R(() => (st(n.value), Ar().currentManager));
8736
8918
  return {
8737
8919
  /**
8738
8920
  * Данные о текущем пользователе.
@@ -8744,7 +8926,7 @@ const Bi = se("common.user_state", () => {
8744
8926
  currentManager: r
8745
8927
  };
8746
8928
  });
8747
- class Ar {
8929
+ class Sr {
8748
8930
  /**
8749
8931
  * Инициализирует экземпляр класса {@link UserRegionEmployee}.
8750
8932
  *
@@ -8759,10 +8941,10 @@ class Ar {
8759
8941
  * @inheritDoc
8760
8942
  */
8761
8943
  s(this, "salesDirection");
8762
- this.user = new _(r == null ? void 0 : r.user), this.salesDirection = new F(r == null ? void 0 : r.salesDirection);
8944
+ this.user = new q(r == null ? void 0 : r.user), this.salesDirection = new U(r == null ? void 0 : r.salesDirection);
8763
8945
  }
8764
8946
  }
8765
- class ar extends Je {
8947
+ class Cr extends rr {
8766
8948
  /**
8767
8949
  * Инициализирует экземпляр класса {@link UserRegion}.
8768
8950
  *
@@ -8779,10 +8961,10 @@ class ar extends Je {
8779
8961
  * @inheritDoc
8780
8962
  */
8781
8963
  s(this, "users");
8782
- 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 Ar(o))) ?? [];
8964
+ this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new Pe(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Sr(o))) ?? [];
8783
8965
  }
8784
8966
  }
8785
- class Wi extends Ue {
8967
+ class Vi extends Me {
8786
8968
  /**
8787
8969
  * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
8788
8970
  *
@@ -8818,7 +9000,7 @@ class Wi extends Ue {
8818
9000
  return this;
8819
9001
  }
8820
9002
  }
8821
- class zi extends j {
9003
+ class Ji extends M {
8822
9004
  /**
8823
9005
  * Возвращает список регионов пользователей.
8824
9006
  *
@@ -8829,7 +9011,7 @@ class zi extends j {
8829
9011
  * @see /doc/api/internal#/operations/api_internal_user_region_get_list
8830
9012
  */
8831
9013
  getRegionsList(r, e, t) {
8832
- return this.getTypedPaginated(Je, "/internal/users/regions", r, e, t);
9014
+ return this.getTypedPaginated(rr, "/internal/users/regions", r, e, t);
8833
9015
  }
8834
9016
  /**
8835
9017
  * Возвращает полные данные о регионе пользователей.
@@ -8839,7 +9021,7 @@ class zi extends j {
8839
9021
  * @see /doc/api/internal#/operations/api_internal_user_region_get
8840
9022
  */
8841
9023
  getRegion(r) {
8842
- return this.get(`/internal/users/regions/${r}`, {}, (e) => new ar(e.data));
9024
+ return this.get(`/internal/users/regions/${r}`, {}, (e) => new Cr(e.data));
8843
9025
  }
8844
9026
  /**
8845
9027
  * Создаёт новый регион пользователей.
@@ -8852,7 +9034,7 @@ class zi extends j {
8852
9034
  * @see /doc/api/internal#/operations/api_internal_user_region_create
8853
9035
  */
8854
9036
  createRegion(r, e = {}) {
8855
- return this.post("/internal/users/regions", r, (t) => new ar(t.data), e);
9037
+ return this.post("/internal/users/regions", r, (t) => new Cr(t.data), e);
8856
9038
  }
8857
9039
  /**
8858
9040
  * Изменяет данные о регионе пользователей.
@@ -8866,7 +9048,7 @@ class zi extends j {
8866
9048
  * @see /doc/api/internal#/operations/api_internal_user_region_change
8867
9049
  */
8868
9050
  updateRegion(r, e, t = {}) {
8869
- return this.patch(`/internal/users/regions/${r}`, e, (i) => new ar(i.data), t);
9051
+ return this.patch(`/internal/users/regions/${r}`, e, (i) => new Cr(i.data), t);
8870
9052
  }
8871
9053
  /**
8872
9054
  * Удаляет регион пользователей.
@@ -8886,7 +9068,7 @@ class zi extends j {
8886
9068
  * @see /doc/api/internal#/operations/api_internal_user_region_user_get_list
8887
9069
  */
8888
9070
  getRegionEmployees(r) {
8889
- return this.getTypedList(Ar, `/internal/users/regions/${r}/users`);
9071
+ return this.getTypedList(Sr, `/internal/users/regions/${r}/users`);
8890
9072
  }
8891
9073
  /**
8892
9074
  * Закрепляет сотрудника за регионом по указанному направлению продаж.
@@ -8898,7 +9080,7 @@ class zi extends j {
8898
9080
  * @see /doc/api/internal#/operations/api_internal_user_region_user_add
8899
9081
  */
8900
9082
  attachRegionEmployee(r, e, t) {
8901
- return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Ar(i.data));
9083
+ return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Sr(i.data));
8902
9084
  }
8903
9085
  /**
8904
9086
  * Открепляет сотрудника от региона по указанному направлению продаж.
@@ -8917,7 +9099,7 @@ class zi extends j {
8917
9099
  });
8918
9100
  }
8919
9101
  }
8920
- class Ei {
9102
+ class Ki {
8921
9103
  /**
8922
9104
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
8923
9105
  *
@@ -8941,201 +9123,207 @@ class Ei {
8941
9123
  }
8942
9124
  }
8943
9125
  export {
8944
- Us as AnyReference,
8945
- us as AppBaseConfig,
8946
- br as BankAccount,
8947
- j as BasePaginationProvider,
8948
- ur as BlogPost,
8949
- Dr as BlogPostMediaFile,
8950
- ze as BlogPostMediaTypeEnum,
8951
- Ee as BlogPostPublicationStatusEnum,
8952
- _e as BlogPostShortInfo,
8953
- ei as BlogPostsListFilters,
8954
- Pr as BlogProvider,
8955
- ms as CalculationTypeEnum,
9126
+ Bs as AnyReference,
9127
+ gs as AppBaseConfig,
9128
+ Tr as BankAccount,
9129
+ M as BasePaginationProvider,
9130
+ gr as BlogPost,
9131
+ Rr as BlogPostMediaFile,
9132
+ Ye as BlogPostMediaTypeEnum,
9133
+ Qe as BlogPostPublicationStatusEnum,
9134
+ Ne as BlogPostShortInfo,
9135
+ ii as BlogPostsListFilters,
9136
+ br as BlogProvider,
9137
+ ws as CalculationTypeEnum,
8956
9138
  m as CalendarHelper,
8957
- $e as Cart,
8958
- ti as CartProvider,
8959
- ii as CatalogProvider,
8960
- lt as CatalogableItem,
8961
- G as Category,
8962
- Ds as CategoryFilter,
8963
- Yr as CategoryFilterSetting,
8964
- Cs as CategoryFilterValue,
8965
- Gr as CategoryPricingRule,
8966
- Pt as ChannelPrimaryInterest,
8967
- Fs as City,
8968
- we as CityWithRegionAndCountry,
8969
- Zr as CityWithUserRegion,
8970
- Jr as Client,
8971
- Ts as ClientAdditionalData,
8972
- je as ClientCategory,
8973
- H as ClientDataProvider,
8974
- vt as ClientPriceCatalogableItem,
8975
- jr as ClientPriceCategory,
8976
- gr as ClientPriceProduct,
8977
- ni as ClientPriceProvider,
8978
- oi as ClientPriceTemplateProvider,
8979
- ye as ClientProduct,
8980
- ui as ClientProductCategoryDataProvider,
8981
- pi as ClientProductDataProvider,
8982
- ne as ClientShortInfo,
8983
- Ps as ClientsAdditionalDataRequestTypeEnum,
8984
- yi as ClientsListFilters,
8985
- qe as CodedIdentity,
8986
- wi as ConfiguratorProvider,
8987
- As as ConfiguratorsEnum,
8988
- Tr as Contact,
8989
- ht as ContactLinks,
8990
- re as ContactPerson,
8991
- ds as ContactPersonRelated,
8992
- Ms as ContactPosition,
8993
- fr as ContactRelation,
8994
- wt as ContragentBase,
8995
- Ge as ContragentFactory,
8996
- Ct as ContragentIc,
8997
- Rs as ContragentPerson,
8998
- bs as ContragentUlNr,
8999
- Dt as ContragentUlR,
9000
- Ir as CostSourceEnum,
9001
- ae as Country,
9002
- Ye as CreatableIdentity,
9003
- qr as CuratedDirection,
9004
- Nr as Curator,
9139
+ ke as Cart,
9140
+ oi as CartProvider,
9141
+ li as CatalogProvider,
9142
+ pt as CatalogableItem,
9143
+ j as Category,
9144
+ bs as CategoryFilter,
9145
+ Vr as CategoryFilterSetting,
9146
+ Rs as CategoryFilterValue,
9147
+ Qr as CategoryPricingRule,
9148
+ bt as ChannelPrimaryInterest,
9149
+ Ws as City,
9150
+ Pe as CityWithRegionAndCountry,
9151
+ rt as CityWithUserRegion,
9152
+ Xr as Client,
9153
+ As as ClientAdditionalData,
9154
+ Je as ClientCategory,
9155
+ B as ClientDataProvider,
9156
+ Ct as ClientPriceCatalogableItem,
9157
+ Yr as ClientPriceCategory,
9158
+ yr as ClientPriceProduct,
9159
+ ui as ClientPriceProvider,
9160
+ pi as ClientPriceTemplateProvider,
9161
+ ve as ClientProduct,
9162
+ fi as ClientProductCategoryDataProvider,
9163
+ mi as ClientProductDataProvider,
9164
+ le as ClientShortInfo,
9165
+ ds as ClientsAdditionalDataRequestTypeEnum,
9166
+ Ci as ClientsListFilters,
9167
+ Fe as CodedIdentity,
9168
+ Ri as ConfiguratorProvider,
9169
+ ks as ConfiguratorsEnum,
9170
+ $r as Contact,
9171
+ ft as ContactLinks,
9172
+ te as ContactPerson,
9173
+ Ss as ContactPersonRelated,
9174
+ zs as ContactPosition,
9175
+ ar as ContactRelation,
9176
+ Dt as ContragentBase,
9177
+ Ke as ContragentFactory,
9178
+ Pt as ContragentIc,
9179
+ Ts as ContragentPerson,
9180
+ $s as ContragentUlNr,
9181
+ Rt as ContragentUlR,
9182
+ qr as CostSourceEnum,
9183
+ Ce as Country,
9184
+ Xe as CreatableIdentity,
9185
+ Fr as CuratedDirection,
9186
+ Ur as Curator,
9005
9187
  E as Currency,
9006
- Mi as DataSuggestionProvider,
9007
- Q as DateHelper,
9008
- Pi as DateTimeProvider,
9009
- vs as DeletableIdentity,
9010
- Ve as DeletableNamedIdentity,
9011
- Ie as DeliveryAddress,
9012
- V as DeliveryType,
9013
- nt as DetailedJwtPayload,
9014
- ns as DeviceTypeResolutionConfig,
9015
- ps as DiscountShortInfo,
9016
- Ei as FieldValidationResultData,
9017
- ee as FilterGroup,
9018
- zr as FilterItem,
9019
- Lr as FilterOpEnum,
9020
- ws as FilterSettings,
9021
- ct as GeoCoordinates,
9022
- gs as HiddenCatalogableItem,
9023
- Ne as HttpCachedRequester,
9024
- os as HttpParamsConfig,
9188
+ ji as DataSuggestionProvider,
9189
+ J as DateHelper,
9190
+ Ai as DateTimeProvider,
9191
+ Ds as DeletableIdentity,
9192
+ er as DeletableNamedIdentity,
9193
+ xe as DeliveryAddress,
9194
+ K as DeliveryType,
9195
+ ct as DetailedJwtPayload,
9196
+ ls as DeviceTypeResolutionConfig,
9197
+ fs as DiscountShortInfo,
9198
+ ze as Faq,
9199
+ Ve as FaqGroup,
9200
+ Li as FaqProvider,
9201
+ Ki as FieldValidationResultData,
9202
+ re as FilterGroup,
9203
+ Er as FilterItem,
9204
+ Ir as FilterOpEnum,
9205
+ Ps as FilterSettings,
9206
+ ut as GeoCoordinates,
9207
+ ys as HiddenCatalogableItem,
9208
+ Ue as HttpCachedRequester,
9209
+ us as HttpParamsConfig,
9025
9210
  h as HttpRequester,
9026
- Re as Identity,
9027
- fs as Image,
9028
- Pe as JwtPayload,
9029
- J as Manager,
9030
- _r as ManagerCommon,
9031
- di as ManagerDataFactory,
9032
- dt as ManagerDataProvider,
9033
- zs as MetaTagItem,
9034
- N as NamedIdentity,
9035
- M as Offer,
9036
- $s as OfferActualization,
9037
- Oe as OfferActualizationStatus,
9038
- $i as OfferHelper,
9039
- At as OfferShortInfo,
9040
- Si as OffersDataProvider,
9041
- Ai as OffersListFilters,
9042
- $t as Operator,
9043
- te as Opf,
9211
+ ne as Identity,
9212
+ as as Image,
9213
+ be as JwtPayload,
9214
+ X as Manager,
9215
+ Nr as ManagerCommon,
9216
+ Ii as ManagerDataFactory,
9217
+ At as ManagerDataProvider,
9218
+ Ys as MetaTagItem,
9219
+ _ as NamedIdentity,
9220
+ H as Offer,
9221
+ Is as OfferActualization,
9222
+ Ie as OfferActualizationStatus,
9223
+ _i as OfferHelper,
9224
+ St as OfferShortInfo,
9225
+ qi as OffersDataProvider,
9226
+ xi as OffersListFilters,
9227
+ Lt as Operator,
9228
+ se as Opf,
9044
9229
  Y as OpfEnum,
9045
- k as Order,
9046
- Os as OrderAction,
9047
- ki as OrderEditorData,
9048
- St as OrderInfo,
9049
- Ls as OrderItem,
9050
- ut as OrderItemBase,
9051
- Hs as OrderPaymentStatus,
9052
- bt as OrderShortInfo,
9053
- Ke as OrderStatus,
9054
- Bs as OrderStatusDetail,
9055
- Ns as OrderStatusDetailEnum,
9056
- qs as OrderStatusEnum,
9057
- Is as OrderStatusHistoryInfo,
9058
- Oi as OrdersDataProvider,
9059
- Li as OrdersListFilters,
9060
- Ue as PaginationFiltersBase,
9061
- Ce as PartnerGroup,
9062
- kt as PaymentType,
9063
- We as PreferencesStorageProvider,
9064
- mr as PriceAnalyze,
9065
- xi as PriceAnalyzeProvider,
9066
- ft as PriceCatalogableItem,
9067
- Fe as PriceCoefficient,
9068
- ot as PriceCoefficientEnum,
9069
- _i as PriceHistoryDataProvider,
9070
- xs as PriceHistoryItem,
9071
- ge as PriceTemplate,
9072
- pr as PriceTemplateCategory,
9073
- ke as PriceTemplateClient,
9074
- mt as PriceTemplateICatalogableItem,
9075
- hr as PriceTemplateProduct,
9076
- hi as PriceTemplateProvider,
9077
- Le as PricingRole,
9078
- gi as PricingRoleProvider,
9079
- Rr as PrimaryCatalogableItem,
9080
- q as Product,
9081
- ci as ProductCategoryDataProvider,
9082
- li as ProductDataProvider,
9083
- Ws as ProductFileType,
9084
- pt as ProductFilterTypeEnum,
9085
- Or as ProductPriceCoefficient,
9086
- _s as ProductPriceHistory,
9087
- Er as ProductUnit,
9088
- ks as ProfstroyOfferItem,
9089
- fi as PropertiesProvider,
9090
- fe as Property,
9091
- at as PropertyType,
9092
- ys as PropertyTypeEnum,
9093
- pe as PropertyValue,
9094
- qi as RecommendationsDataProvider,
9095
- Xr as RecommendationsList,
9096
- w as Reference,
9097
- Ni as ReferenceDataFactory,
9098
- T as ReferenceDataProvider,
9099
- ve as Region,
9100
- Lt as ResourceType,
9101
- Ri as STANDARD_PERIOD_GROUPS,
9102
- bi as STANDARD_PERIOD_SECTIONS,
9103
- F as SalesDirection,
9104
- cs as SentryConfig,
9105
- et as Seo,
9106
- Fi as SeoDataProvider,
9107
- Rt as SourcePrimaryInterest,
9108
- hs as StockCount,
9109
- Ci as TableDataPagination,
9110
- Ss as TableDataPaginationRequestParams,
9111
- Di as TableDataSortRequestParams,
9112
- mi as TemplateProductCategoryDataProvider,
9113
- si as TemplatesListFilters,
9230
+ L as Order,
9231
+ _s as OrderAction,
9232
+ Ni as OrderEditorData,
9233
+ kt as OrderInfo,
9234
+ qs as OrderItem,
9235
+ ht as OrderItemBase,
9236
+ Gs as OrderPaymentStatus,
9237
+ Tt as OrderShortInfo,
9238
+ tr as OrderStatus,
9239
+ Es as OrderStatusDetail,
9240
+ Hs as OrderStatusDetailEnum,
9241
+ Ms as OrderStatusEnum,
9242
+ Ns as OrderStatusHistoryInfo,
9243
+ Ui as OrdersDataProvider,
9244
+ Fi as OrdersListFilters,
9245
+ Me as PaginationFiltersBase,
9246
+ Re as PartnerGroup,
9247
+ Ot as PaymentType,
9248
+ je as PreferencesStorageProvider,
9249
+ wr as PriceAnalyze,
9250
+ Hi as PriceAnalyzeProvider,
9251
+ yt as PriceCatalogableItem,
9252
+ oe as PriceCoefficient,
9253
+ lt as PriceCoefficientEnum,
9254
+ Bi as PriceHistoryDataProvider,
9255
+ Fs as PriceHistoryItem,
9256
+ ye as PriceTemplate,
9257
+ fr as PriceTemplateCategory,
9258
+ Le as PriceTemplateClient,
9259
+ at as PriceTemplateICatalogableItem,
9260
+ mr as PriceTemplateProduct,
9261
+ yi as PriceTemplateProvider,
9262
+ Oe as PricingRole,
9263
+ ai as PricingRoleProvider,
9264
+ dr as PrimaryCatalogableItem,
9265
+ N as Product,
9266
+ hi as ProductCategoryDataProvider,
9267
+ gi as ProductDataProvider,
9268
+ js as ProductFileType,
9269
+ gt as ProductFilterTypeEnum,
9270
+ xr as ProductPriceCoefficient,
9271
+ Us as ProductPriceHistory,
9272
+ jr as ProductUnit,
9273
+ xs as ProfstroyOfferItem,
9274
+ wi as PropertiesProvider,
9275
+ ae as Property,
9276
+ vt as PropertyType,
9277
+ vs as PropertyTypeEnum,
9278
+ fe as PropertyValue,
9279
+ Wi as RecommendationsDataProvider,
9280
+ et as RecommendationsList,
9281
+ v as Reference,
9282
+ zi as ReferenceDataFactory,
9283
+ d as ReferenceDataProvider,
9284
+ De as Region,
9285
+ It as ResourceType,
9286
+ Si as STANDARD_PERIOD_GROUPS,
9287
+ ki as STANDARD_PERIOD_SECTIONS,
9288
+ U as SalesDirection,
9289
+ ps as SentryConfig,
9290
+ tt as Seo,
9291
+ Ei as SeoDataProvider,
9292
+ dt as SourcePrimaryInterest,
9293
+ ms as StockCount,
9294
+ bi as TableDataPagination,
9295
+ Ls as TableDataPaginationRequestParams,
9296
+ di as TableDataSortRequestParams,
9297
+ vi as TemplateProductCategoryDataProvider,
9298
+ ci as TemplatesListFilters,
9114
9299
  x as TypedInstanceFactory,
9115
- Tt as UnitsHelper,
9116
- ai as UnknownClientDataProvider,
9117
- Qe as UpdatableNamedIdentity,
9118
- Es as User,
9119
- Hi as UserAuthDataProvider,
9120
- yt as UserCommonInfo,
9121
- js as UserDataProvider,
9122
- gt as UserPricingRole,
9123
- ar as UserRegion,
9124
- Ar as UserRegionEmployee,
9125
- zi as UserRegionProvider,
9126
- Je as UserRegionShortInfo,
9127
- Wi as UserRegionsListFilters,
9128
- _ as UserShortInfo,
9129
- Ot as UserTypeEnum,
9130
- vi as VersionConfig,
9131
- Me as Warehouse,
9132
- ls as WebSocketConfig,
9133
- Ii as currentOrderInjectionKey,
9134
- Qr as findCatalogItemByIdRecursive,
9135
- Vr as flattenCatalogItems,
9136
- Ti as pluralize,
9137
- lr as useAuthStateStore,
9300
+ $t as UnitsHelper,
9301
+ Di as UnknownClientDataProvider,
9302
+ Ze as UpdatableNamedIdentity,
9303
+ Qs as User,
9304
+ Yi as UserAuthDataProvider,
9305
+ wt as UserCommonInfo,
9306
+ Vs as UserDataProvider,
9307
+ mt as UserPricingRole,
9308
+ Cr as UserRegion,
9309
+ Sr as UserRegionEmployee,
9310
+ Ji as UserRegionProvider,
9311
+ rr as UserRegionShortInfo,
9312
+ Vi as UserRegionsListFilters,
9313
+ q as UserShortInfo,
9314
+ xt as UserTypeEnum,
9315
+ Pi as VersionConfig,
9316
+ He as Warehouse,
9317
+ hs as WebSocketConfig,
9318
+ Mi as currentOrderInjectionKey,
9319
+ Ti as daysAgoIso,
9320
+ Jr as findCatalogItemByIdRecursive,
9321
+ Kr as flattenCatalogItems,
9322
+ Oi as formatPercentChange,
9323
+ $i as formatRelativeDate,
9324
+ Os as pluralize,
9325
+ hr as useAuthStateStore,
9138
9326
  S as useBaseConfigStateStore,
9139
- Ui as useReferencesStore,
9140
- Bi as useUserStateStore
9327
+ Gi as useReferencesStore,
9328
+ Qi as useUserStateStore
9141
9329
  };