@snabcentr/common-lib 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,13 +2,13 @@ var It = Object.defineProperty;
2
2
  var xt = (n, r, e) => r in n ? It(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
3
  var s = (n, r, e) => xt(n, typeof r != "symbol" ? r + "" : r, e);
4
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";
5
+ import { merge as _e, isNil as a, isEmpty as Q, noop as C, mapValues as st, isArray as z, every as _t, split as qt, isString as I, startsWith as Nt, endsWith as Ut, includes as Ft, isFunction as $r, map as Pe, isObject as Sr, isError as Ur, toLower as Mt, isDate as wr, isPlainObject as Ht, isUndefined as Be, constant as Bt, toUpper as Wt, cloneDeep as zt, forEach as Et, round as jt, omitBy as it } from "lodash-es";
6
6
  import { objectToCamel as kr, objectToSnake as Fr } from "ts-case-convert";
7
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 {
8
+ import { ref as v, markRaw as Gt, computed as R } from "vue";
9
+ import { isAfter as Mr, parseISO as k, startOfToday as qe, isValid as Yt, format as $, endOfMonth as O, addMonths as A, differenceInCalendarMonths as Qt, startOfMonth as U, getDate as Hr, getDaysInMonth as Vt, endOfDay as W, startOfDay as ge, setDate as Jt, startOfWeek as X, addWeeks as Cr, differenceInCalendarDays as ze, addDays as Z, subDays as Ee, addBusinessDays as Kt, startOfYear as ue, endOfYear as Ae, endOfWeek as $e, endOfTomorrow as Xt, startOfTomorrow as Zt, endOfYesterday as es, startOfYesterday as rs, endOfToday as ts, startOfQuarter as Se, endOfQuarter as We, addYears as ir, addQuarters as nr, subYears as or, subQuarters as cr, subMonths as lr, subWeeks as Br, addSeconds as ss } from "date-fns";
10
+ import is, { CanceledError as ns } from "axios";
11
+ class Re {
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
+ _e(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 = tt(r), t = new Re(kr(e));
111
111
  return t.resourceAccess = e.resource_access, t;
112
112
  }
113
113
  }
114
- class nt extends Pe {
114
+ class nt extends Re {
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
+ _e(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -155,7 +155,7 @@ class nt extends Pe {
155
155
  return i.resourceAccess = t.resource_access, i;
156
156
  }
157
157
  }
158
- class ns {
158
+ class os {
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 cs {
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 ls {
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 us {
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 ps {
287
287
  /**
288
288
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
289
289
  *
@@ -327,10 +327,10 @@ 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 cs(r == null ? void 0 : r.http), this.deviceTypeByResolution = new os(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new ls({
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 us(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"
@@ -338,7 +338,7 @@ class us {
338
338
  }
339
339
  }
340
340
  const S = se("common.config", () => {
341
- const n = v(new us());
341
+ const n = v(new ps());
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 = _e(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 || Mr(k(t.availableFor) || qe(), /* @__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 && !Mr(k(o.availableFor) || qe(), /* @__PURE__ */ new Date()) && r.push(t);
458
458
  }
459
459
  } catch {
460
460
  r.push(t);
@@ -472,17 +472,17 @@ class We {
472
472
  }
473
473
  function Wr(n) {
474
474
  try {
475
- const r = Pe.getJwtPayload(n);
475
+ const r = Re.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", () => {
481
+ const pe = se("common.auth_state_private", () => {
482
482
  const n = v(
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,10 +491,10 @@ 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 = v(void 0), e = v(void 0), t = Gt(/* @__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);
497
+ const c = Re.getJwtPayload(o);
498
498
  e.value = c.exp * 1e3 > Date.now() ? st(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
499
499
  }).catch(C);
500
500
  }
@@ -520,32 +520,32 @@ const ue = se("common.auth_state_private", () => {
520
520
  */
521
521
  recalculateUserPermissions: i
522
522
  };
523
- }), lr = se("common.auth_state", () => {
523
+ }), ur = se("common.auth_state", () => {
524
524
  const n = R(() => {
525
- const o = ue();
525
+ const o = pe();
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, Wr(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
+ pe().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 = pe();
539
+ c.jwtToken = Promise.resolve(o), je.saveActualDataToStorage("sc.token", o, Wr(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 = pe();
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 = pe();
547
547
  !a(c.jwtToken) && a(c.userPermissions) && c.jwtToken.then((g) => {
548
- const y = Pe.getJwtPayload(g);
548
+ const y = Re.getJwtPayload(g);
549
549
  c.userPermissions = y.exp * 1e3 > Date.now() ? st(y.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
550
550
  }).catch(C);
551
551
  const u = z(o) ? o.join(" && ") : o;
@@ -553,12 +553,12 @@ const ue = se("common.auth_state_private", () => {
553
553
  return c.userPermissionsComputedRefs.get(u);
554
554
  const p = R(() => {
555
555
  const g = (y) => {
556
- var ce;
556
+ var le;
557
557
  const D = qt(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, ce = (le = pe().userPermissions) == null ? void 0 : le[de];
561
+ return z(ce) && ce.includes(Te);
562
562
  };
563
563
  return z(o) ? _t(o, (y) => g(y)) : g(o);
564
564
  });
@@ -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 Ge = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(Ge || {});
597
+ class be {
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 Dr extends be {
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) ?? Ge.Image, this.isCover = (e == null ? void 0 : e.isCover) ?? !1, this.isUnused = (e == null ? void 0 : e.isUnused) ?? !1, this.url = (e == null ? void 0 : e.url) ?? "", this.urlWebp = e == null ? void 0 : e.urlWebp;
651
651
  }
652
652
  /**
653
653
  * Возвращает признак того, что медиафайл является изображением.
654
654
  */
655
655
  isImage() {
656
- return this.mediaType === ze.Image;
656
+ return this.mediaType === Ge.Image;
657
657
  }
658
658
  /**
659
659
  * Возвращает признак того, что медиафайл является видео.
660
660
  */
661
661
  isVideo() {
662
- return this.mediaType === ze.Video;
662
+ return this.mediaType === Ge.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 Ye = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(Ye || {});
666
+ class V {
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 Yt(e) ? e : void 0;
678
678
  }
679
679
  }
680
- class Ye extends Re {
680
+ class Je extends be {
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 = V.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
694
694
  }
695
695
  }
696
- class _e extends Ye {
696
+ class Ne extends Je {
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) ? Ye.Draft : e.getTime() > Date.now() ? Ye.Scheduled : Ye.Published;
725
725
  }
726
726
  /**
727
727
  * Возвращает описание ошибки символьного обозначения статьи либо пустую строку,
@@ -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 pr extends Ne {
754
754
  /**
755
755
  * Инициализирует экземпляр класса {@link BlogPost}.
756
756
  *
@@ -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 || $r(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 ti extends Me {
833
833
  /**
834
834
  * Инициализирует экземпляр класса {@link BlogPostsListFilters}.
835
835
  *
@@ -933,7 +933,7 @@ class x {
933
933
  static instanceListInitializer(r, e) {
934
934
  if (!z(e))
935
935
  throw new TypeError(`Ожидался список данных для инициализации "${r.name}", получены данные типа "${typeof e}".`);
936
- return De(e, (t) => x.instanceInitializer(r, t));
936
+ return Pe(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(ur().jwtToken) || (e = await ur().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
979
979
  });
980
980
  /**
981
981
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -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) : (ur().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 ns("Request canceled");
1014
1014
  return Promise.reject(r);
1015
1015
  });
1016
1016
  /**
@@ -1027,7 +1027,7 @@ const P = class P {
1027
1027
  */
1028
1028
  // eslint-disable-next-line class-methods-use-this
1029
1029
  s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = kr(r.data)), r));
1030
- this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = ss.create({
1030
+ this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = is.create({
1031
1031
  headers: {
1032
1032
  Accept: "application/json",
1033
1033
  "Content-Type": "application/json"
@@ -1102,7 +1102,7 @@ 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 Sr(r) && "status" in r ? r : {
1106
1106
  status: 0,
1107
1107
  statusText: "Invalid response data",
1108
1108
  message: Ur(r) ? r.message : "Не удалось обработать данные ответа сервера.",
@@ -1273,7 +1273,7 @@ class zr {
1273
1273
  field: this.field,
1274
1274
  op: this.op
1275
1275
  };
1276
- if (vr(this.value))
1276
+ if (wr(this.value))
1277
1277
  e.value = $(this.value, r);
1278
1278
  else if (Ht(this.value)) {
1279
1279
  const t = this.value;
@@ -1316,7 +1316,7 @@ 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),
1319
+ filters: this.filters.map((r) => r instanceof zr && $r(r.toPrimitive) ? r.toPrimitive() : r),
1320
1320
  groups: this.groups.map((r) => r instanceof ee ? r.toPrimitive() : r)
1321
1321
  };
1322
1322
  }
@@ -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 ee ? e : new ee(e)).toPrimitive())), Q(t) || (g.sort = z(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1343
1343
  }
1344
1344
  /**
1345
1345
  * Получает пагинированный список экземпляров указанного класса.
@@ -1380,7 +1380,7 @@ 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
1385
  e.publishedAt = a(r.publishedAt) ? null : $(r.publishedAt, t);
1386
1386
  }
@@ -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 pr(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", Pr.preparePostSaveData(r), (t) => new pr(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}`, Pr.preparePostSaveData(e), (i) => new pr(i.data), t);
1444
1444
  }
1445
1445
  /**
1446
1446
  * Удаляет статью блога.
@@ -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 N extends be {
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 Ke extends N {
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 = V.parse(e == null ? void 0 : e.createdAt), this.updatedAt = V.parse(e == null ? void 0 : e.updatedAt);
1548
1554
  }
1549
1555
  }
1550
- class Ve extends Qe {
1556
+ class Xe extends Ke {
1551
1557
  /**
1552
1558
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1553
1559
  *
@@ -1559,7 +1565,7 @@ 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 = V.parse(e == null ? void 0 : e.deletedAt);
1563
1569
  }
1564
1570
  }
1565
1571
  class _ extends N {
@@ -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 hs extends Xe {
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 _(e == null ? void 0 : e.owner);
1617
1623
  }
1618
1624
  }
1619
- class ge extends Qe {
1625
+ class fe extends Ke {
1620
1626
  /**
1621
1627
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1622
1628
  *
@@ -1655,12 +1661,18 @@ 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 ie extends w {
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 ie({
1670
+ id: -2,
1671
+ slug: ot.Retail,
1672
+ name: "Розн. цена",
1673
+ guid: ""
1674
+ });
1675
+ return r.isNewRec = Bt(!0), r;
1664
1676
  }
1665
1677
  }
1666
1678
  class Or {
@@ -1690,7 +1702,7 @@ 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 ie(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
1708
  class ct {
@@ -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 J extends w {
1715
1727
  }
1716
- class Me extends w {
1728
+ class He extends w {
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 J(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new ct(e == null ? void 0 : e.coordinates);
1746
1758
  }
1747
1759
  }
1748
- class hs {
1760
+ class gs {
1749
1761
  /**
1750
1762
  * Инициализирует экземпляр класса {@link StockCount}.
1751
1763
  *
@@ -1760,7 +1772,7 @@ 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
1778
  class E extends N {
@@ -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 Ue extends N {
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 lt extends Ue {
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 fs extends lt {
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 ms {
1870
1882
  /**
1871
1883
  * Инициализирует экземпляр класса {@link Image}.
1872
1884
  *
@@ -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 q extends fs {
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 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 = 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 gs(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 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 ms(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);
1987
1999
  }
1988
2000
  /**
1989
2001
  * Возвращает признак, что это измеряемый товар.
@@ -2005,7 +2017,7 @@ class q extends gs {
2005
2017
  }
2006
2018
  }
2007
2019
  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 {
2020
+ class ae extends q {
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) ?? Ir.Product, this.discount = e != null && e.discount ? new hs(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new fe(e.priceTemplate) : void 0, this.priceCoefficient = e != null && e.priceCoefficient ? new ie(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 ne extends Rr {
2056
2068
  /**
2057
2069
  * Инициализирует экземпляр класса {@link BaseCategory}.
2058
2070
  *
@@ -2079,7 +2091,7 @@ class ie extends Rr {
2079
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]) => [Wt(t), i])) : void 0;
2080
2092
  }
2081
2093
  }
2082
- class ut extends Re {
2094
+ class ut extends be {
2083
2095
  /**
2084
2096
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2085
2097
  *
@@ -2155,7 +2167,7 @@ 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 ae(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ne(), 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;
2159
2171
  }
2160
2172
  }
2161
2173
  let xr = class extends ut {
@@ -2205,7 +2217,7 @@ let xr = class extends ut {
2205
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 = z(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
  *
@@ -2227,7 +2239,7 @@ class $e {
2227
2239
  this.items = r.items.map((e) => new xr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2228
2240
  }
2229
2241
  }
2230
- class ti extends h {
2242
+ class ii 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 ys = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ys || {}), as = /* @__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))(as || {}), pt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(pt || {});
2357
+ class G extends ne {
2346
2358
  /**
2347
2359
  * Инициализирует экземпляр класса {@link Category}.
2348
2360
  *
@@ -2382,7 +2394,7 @@ class ht {
2382
2394
  }
2383
2395
  class F extends w {
2384
2396
  }
2385
- class _r extends Qe {
2397
+ class _r extends Ke {
2386
2398
  /**
2387
2399
  * Инициализирует экземпляр класса {@link ManagerCommon}.
2388
2400
  *
@@ -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 Ze extends N {
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 K extends _r {
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 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 Ze(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new K(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 vs extends ne {
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 K(e.manager) : void 0;
2541
2553
  }
2542
2554
  }
2543
- class je extends as {
2555
+ class Qe extends vs {
2544
2556
  /**
2545
2557
  * Инициализирует экземпляр класса {@link ClientCategory}.
2546
2558
  *
@@ -2557,7 +2569,7 @@ 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 Qe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new ae(o));
2561
2573
  }
2562
2574
  }
2563
2575
  class ft {
@@ -2575,7 +2587,7 @@ 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 ie(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2579
2591
  }
2580
2592
  }
2581
2593
  class mt extends ft {
@@ -2588,7 +2600,7 @@ class mt extends ft {
2588
2600
  super(r);
2589
2601
  }
2590
2602
  }
2591
- class pr extends mt {
2603
+ class hr extends mt {
2592
2604
  /**
2593
2605
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2594
2606
  *
@@ -2600,7 +2612,7 @@ 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 ne(e == null ? void 0 : e.productCategory);
2604
2616
  }
2605
2617
  }
2606
2618
  class Nr extends N {
@@ -2626,9 +2638,9 @@ class Nr extends N {
2626
2638
  this.photo = e.photo, this.contacts = new ht(e.contacts), this.curatedDirection = new qr(e.curatedDirection);
2627
2639
  }
2628
2640
  }
2629
- class ae extends w {
2630
- }
2631
2641
  class ve extends w {
2642
+ }
2643
+ class we extends w {
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 ve());
2655
+ e && (this.country = new ve(e.country));
2644
2656
  }
2645
2657
  }
2646
- class we extends w {
2658
+ class Ce extends w {
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 we());
2670
+ e && (this.region = new we(e.region));
2659
2671
  }
2660
2672
  }
2661
- class yt extends Qe {
2673
+ class yt extends Ke {
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 F(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 oe extends yt {
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 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 Ce(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;
2743
2755
  }
2744
2756
  }
2745
- class vs extends Ye {
2757
+ class ws extends Je {
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 = V.parse(e == null ? void 0 : e.deletedAt);
2759
2771
  }
2760
2772
  }
2761
- class ke extends vs {
2773
+ class Le extends ws {
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 oe(e == null ? void 0 : e.client), this.priceTemplate = new fe(e == null ? void 0 : e.priceTemplate);
2778
2790
  }
2779
2791
  }
2780
- class hr extends mt {
2792
+ class gr extends mt {
2781
2793
  /**
2782
2794
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2783
2795
  *
@@ -2794,7 +2806,7 @@ class hr extends mt {
2794
2806
  }
2795
2807
  class at extends w {
2796
2808
  }
2797
- class fe extends N {
2809
+ class me extends N {
2798
2810
  /**
2799
2811
  * Инициализирует экземпляр класса {@link Property}.
2800
2812
  *
@@ -2821,7 +2833,7 @@ class fe extends N {
2821
2833
  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;
2822
2834
  }
2823
2835
  }
2824
- class pe {
2836
+ class he {
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 me(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2841
2853
  }
2842
2854
  }
2843
- class si {
2855
+ class ni {
2844
2856
  /**
2845
2857
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2846
2858
  *
@@ -2905,7 +2917,7 @@ 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 || $r(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
  }
@@ -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 _(e.executor) : void 0, this.createdAt = V.parse(e == null ? void 0 : e.createdAt);
2929
2941
  }
2930
2942
  }
2931
- class gr extends vt {
2943
+ class fr extends vt {
2932
2944
  /**
2933
2945
  * Инициализирует экземпляр класса {@link ClientPriceProduct}.
2934
2946
  *
@@ -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 ne(e == null ? void 0 : e.productCategory);
2959
2971
  }
2960
2972
  }
2961
- class Le extends N {
2973
+ class Oe extends N {
2962
2974
  /**
2963
2975
  * Инициализирует экземпляр класса {@link PricingRole}.
2964
2976
  *
@@ -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 ne(r == null ? void 0 : r.category), this.minCoefficient = new ie(r == null ? void 0 : r.minCoefficient);
3016
3028
  }
3017
3029
  }
3018
- class ws {
3030
+ class Cs {
3019
3031
  /**
3020
3032
  * Инициализирует экземпляр класса {@link FilterSettings}.
3021
3033
  *
@@ -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 ne(r == null ? void 0 : r.category), this.property = new me(r == null ? void 0 : r.property), this.settings = new Cs(r == null ? void 0 : r.settings);
3071
3083
  }
3072
3084
  }
3073
- class Cs {
3085
+ class Ds {
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 Ps {
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) ?? 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 Ds(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 oi 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 ci extends h {
3169
3181
  /**
3170
3182
  * Импортирует цены клиента из CSV файла.
3171
3183
  *
@@ -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(fr, `/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 fr(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 fr(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 li 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
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -3471,7 +3483,7 @@ class oi extends h {
3471
3483
  startAt: t.startAt && $(t.startAt, i),
3472
3484
  endAt: t.endAt && $(t.endAt, i)
3473
3485
  },
3474
- (o) => new ke(o.data),
3486
+ (o) => new Le(o.data),
3475
3487
  {},
3476
3488
  !0
3477
3489
  );
@@ -3505,7 +3517,7 @@ class oi extends h {
3505
3517
  startAt: i.startAt && $(i.startAt, o),
3506
3518
  endAt: i.endAt && $(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 ui extends h {
3525
3537
  /**
3526
3538
  * Возвращает список данных о корневых категориях.
3527
3539
  *
@@ -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) => Pe(i.data, (o) => new q(o))
3581
3593
  );
3582
3594
  }
3583
3595
  /**
@@ -3609,7 +3621,7 @@ class ci extends h {
3609
3621
  });
3610
3622
  }
3611
3623
  }
3612
- class li extends j {
3624
+ class pi extends j {
3613
3625
  /**
3614
3626
  * Возвращает данные об указанном продукте.
3615
3627
  *
@@ -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) => Pe(e.data, (t) => new Or(t))
3644
3656
  );
3645
3657
  }
3646
3658
  /**
@@ -3675,7 +3687,7 @@ class li extends j {
3675
3687
  });
3676
3688
  }
3677
3689
  }
3678
- class ui extends h {
3690
+ class hi 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(Qe, "/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 Qe(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) => Pe(o.data, (c) => new ae(c))
3733
3745
  );
3734
3746
  }
3735
3747
  }
3736
- class pi extends j {
3748
+ class gi extends j {
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 ae(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(ae, "/internal/catalog/products/new", void 0, void 0, t, {
3769
3781
  clientId: r,
3770
3782
  period: { from: $(e, o) },
3771
3783
  withPriceCoefficients: i
3772
3784
  });
3773
3785
  }
3774
3786
  }
3775
- class hi extends j {
3787
+ class fi extends j {
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(fe, "/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 fe(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 fe(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 fe(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(gr, `/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 gr(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 gr(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(hr, `/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 hr(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 hr(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 mi 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
  * Удаляет роль ценообразования.
@@ -4037,7 +4049,7 @@ class gi extends h {
4037
4049
  );
4038
4050
  }
4039
4051
  }
4040
- class fi extends j {
4052
+ class yi extends j {
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(me, "/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 me(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 me(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 me(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(he, `/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 he(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 he(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(he, `/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 he(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 he(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 Ps(i))
4420
4432
  );
4421
4433
  }
4422
4434
  /**
@@ -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 ai extends h {
4458
4470
  /**
4459
4471
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4460
4472
  *
@@ -4508,7 +4520,7 @@ 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) => Pe(o.data, (c) => new q(c))
4512
4524
  );
4513
4525
  }
4514
4526
  }
@@ -4542,8 +4554,8 @@ function Vr(n) {
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 Rs = /* @__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))(Rs || {}), Y = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(Y || {});
4558
+ class br extends be {
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 dr extends Xe {
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 re extends dr {
4597
4609
  /**
4598
4610
  * Инициализирует экземпляр класса {@link ContactPerson}.
4599
4611
  *
@@ -4633,9 +4645,9 @@ class te extends w {
4633
4645
  });
4634
4646
  }
4635
4647
  }
4636
- class Ce extends w {
4648
+ class De extends w {
4637
4649
  }
4638
- class wt extends Ve {
4650
+ class wt extends Xe {
4639
4651
  /**
4640
4652
  * Инициализирует экземпляр класса {@link ContragentBase}.
4641
4653
  *
@@ -4651,7 +4663,7 @@ class wt extends Ve {
4651
4663
  /**
4652
4664
  * Группа партнеров (направление деятельности).
4653
4665
  */
4654
- s(this, "partnerGroup", new Ce());
4666
+ s(this, "partnerGroup", new De());
4655
4667
  /**
4656
4668
  * Список контактных лиц контрагента.
4657
4669
  */
@@ -4677,7 +4689,7 @@ 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 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 De(e.partnerGroup)), e.contacts) {
4681
4693
  const t = [];
4682
4694
  e.contacts.forEach((i) => {
4683
4695
  t.push(new re(i));
@@ -4692,7 +4704,7 @@ class wt extends Ve {
4692
4704
  }
4693
4705
  }
4694
4706
  }
4695
- class Rs extends wt {
4707
+ class bs extends wt {
4696
4708
  /**
4697
4709
  * Инициализирует экземпляр класса {@link ContragentPerson}.
4698
4710
  *
@@ -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 ds extends Dt {
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 ve());
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 ve(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4784
4796
  }
4785
4797
  }
4786
- class Ge {
4798
+ class Ve {
4787
4799
  /**
4788
4800
  * Инициализирует и возвращает экземпляр класса с данными о контрагенте.
4789
4801
  *
@@ -4796,13 +4808,13 @@ class Ge {
4796
4808
  case Y.UlR:
4797
4809
  return new Dt(r);
4798
4810
  case Y.UlNr:
4799
- return new bs(r);
4811
+ return new ds(r);
4800
4812
  default:
4801
- return new Rs(r);
4813
+ return new bs(r);
4802
4814
  }
4803
4815
  }
4804
4816
  }
4805
- class Ie extends Ve {
4817
+ class xe extends Xe {
4806
4818
  /**
4807
4819
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4808
4820
  *
@@ -4846,7 +4858,7 @@ class Pt extends w {
4846
4858
  }
4847
4859
  class Rt extends w {
4848
4860
  }
4849
- class Jr extends ne {
4861
+ class Jr extends oe {
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) => Ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new De(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 xe(u))) ?? [], this.channelPrimaryInterest = new Pt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Rt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new He(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4900
4912
  }
4901
4913
  }
4902
- class yi extends Ue {
4914
+ class vi 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 Ce(D)), this.region = new we(e == null ? void 0 : e.region), this.country = new ve(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 K(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 J(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new De(D)), this.contact = new dr(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 we();
5031
5043
  break;
5032
5044
  case "isActive":
5033
5045
  this.isActive = !0;
@@ -5057,13 +5069,13 @@ class yi extends Ue {
5057
5069
  this.contragentType = new te();
5058
5070
  break;
5059
5071
  case "preferredDeliveryType":
5060
- this.preferredDeliveryType = new V();
5072
+ this.preferredDeliveryType = new J();
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 dr();
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 bt extends Je {
5084
5096
  /**
5085
5097
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
5086
5098
  *
@@ -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 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 De(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new J(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new _r(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Nr(u))) ?? void 0;
5136
5148
  }
5137
5149
  }
5138
- class fr extends Re {
5150
+ class mr extends be {
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 As extends re {
5154
5166
  /**
5155
5167
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
5156
5168
  *
@@ -5175,7 +5187,7 @@ 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 mr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new mr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new mr(t))));
5179
5191
  }
5180
5192
  }
5181
5193
  class H extends j {
@@ -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(oe, "/internal/clients", r, e, t, i, void 0, o);
5335
5347
  }
5336
5348
  /**
5337
5349
  * Выполняет поиск клиентов по терму в строке.
@@ -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(As, `/internal/clients/${r}/contacts/all`);
5382
5394
  }
5383
5395
  /**
5384
5396
  * Создаёт нового клиента на основе указанных данных.
@@ -5528,7 +5540,7 @@ class H extends j {
5528
5540
  return this.post(
5529
5541
  `/internal/clients/${r}/contragents`,
5530
5542
  H.transformContragentClientDataToRequest(e),
5531
- (i) => Ge.createInstance(i.data),
5543
+ (i) => Ve.createInstance(i.data),
5532
5544
  t
5533
5545
  );
5534
5546
  }
@@ -5544,7 +5556,7 @@ class H extends j {
5544
5556
  return this.patch(
5545
5557
  `/internal/clients/${r}/contragents/${e.id}`,
5546
5558
  H.transformContragentClientDataToRequest(e),
5547
- (i) => Ge.createInstance(i.data),
5559
+ (i) => Ve.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
  * Создаёт новую запись об адресе доставки клиента.
@@ -5579,7 +5591,7 @@ class H extends j {
5579
5591
  return this.post(
5580
5592
  `/internal/clients/${r}/delivery-addresses`,
5581
5593
  H.transformClientDeliveryAddressToRequest(e),
5582
- (i) => new Ie(i.data),
5594
+ (i) => new xe(i.data),
5583
5595
  t
5584
5596
  );
5585
5597
  }
@@ -5595,7 +5607,7 @@ class H extends j {
5595
5607
  return this.patch(
5596
5608
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
5597
5609
  H.transformClientDeliveryAddressToRequest(e),
5598
- (i) => new Ie(i.data),
5610
+ (i) => new xe(i.data),
5599
5611
  t
5600
5612
  );
5601
5613
  }
@@ -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 wi 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 Ci {
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 $s = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))($s || {});
5913
+ class Di extends h {
5902
5914
  /**
5903
5915
  * Возвращает настройки указанного конфигуратора для указанной категории.
5904
5916
  *
@@ -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 Pi extends Ss {
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 Ri {
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
  * Возвращает дату, сдвинутую на указанное число полугодий.
@@ -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 = Qt(U(t), U(r)), o = U(A(e, i)), c = Math.min(Hr(t), Vt(o));
6127
+ return { from: ge(e), to: W(Jt(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 = X(Cr(r, e), { weekStartsOn: 1 }), i = ze(r, X(r, { weekStartsOn: 1 }));
6137
+ return { from: t, to: W(Z(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 = ze(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = ze(c, o) + 1;
6148
+ return { from: o, to: W(Z(o, Math.min(i, u) - 1)) };
6137
6149
  }
6138
6150
  /**
6139
6151
  * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
@@ -6145,34 +6157,54 @@ class m {
6145
6157
  const t = Hr(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 = U(A(r, c)), g = Z(p, u * 10), y = u === 2 ? O(p) : W(Z(g, 9));
6149
6161
  return [g, y];
6150
6162
  }
6151
6163
  }
6152
- class Pi {
6164
+ function bi(n) {
6165
+ return $(Ee(qe(), n), "yyyy-MM-dd");
6166
+ }
6167
+ function ks(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 di(n) {
6172
+ const r = k(n), e = ze(qe(), 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} ${ks(e, ["день", "дня", "дней"])} назад`;
6182
+ }
6183
+ }
6184
+ class Ti {
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 = Kt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = ue(r === void 0 ? t : new Date(r, 0, 1)), o = Ae(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)) },
6194
+ nextWorkingDay: { label: "Следующий рабочий день", from: ge(e), to: W(e) },
6195
+ today: { label: "Сегодня", from: qe(), to: ts() },
6196
+ yesterday: { label: "Вчера", from: rs(), to: es() },
6197
+ tomorrow: { label: "Завтра", from: Zt(), to: Xt() },
6198
+ currentWeek: { label: "Неделя", from: X(t, { weekStartsOn: 1 }), to: $e(t, { weekStartsOn: 1 }) },
6199
+ currentMonth: { label: "Месяц", from: U(t), to: O(t) },
6200
+ oneMonth: { label: "1 месяц", from: i, to: O(i) },
6201
+ threeMonths: { label: "3 месяца", from: i, to: O(A(i, 2)) },
6202
+ nineMonths: { label: "9 месяцев", from: i, to: O(A(i, 8)) },
6203
+ firstQuarter: { label: "I квартал", from: i, to: O(A(i, 2)) },
6204
+ secondQuarter: { label: "II квартал", from: A(i, 3), to: O(A(i, 5)) },
6205
+ thirdQuarter: { label: "III квартал", from: A(i, 6), to: O(A(i, 8)) },
6206
+ fourthQuarter: { label: "IV квартал", from: A(i, 9), to: O(A(i, 11)) },
6207
+ firstHalfYear: { label: "I полугодие", from: i, to: O(A(i, 5)) },
6176
6208
  secondHalfYear: { label: "II полугодие", from: A(i, 6), to: o },
6177
6209
  currentYear: { label: "12 месяцев", from: i, to: o }
6178
6210
  };
@@ -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 = ge(r), i = W(r), o = m.decadeInterval(r), c = U(r), u = Se(r), p = m.startOfHalfYear(r), g = ue(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: ge(Ee(r, 1)), to: W(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: ge(Z(r, 1)), to: W(Z(r, 1)) },
6225
+ lastWeek: { label: "Прошлая неделя", group: "week", from: X(Br(r, 1), e), to: $e(Br(r, 1), e) },
6226
+ thisWeek: { label: "Эта неделя", group: "week", from: X(r, e), to: $e(r, e) },
6227
+ nextWeek: { label: "Следующая неделя", group: "week", from: X(Cr(r, 1), e), to: $e(Cr(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: U(lr(r, 1)), to: O(lr(r, 1)) },
6232
+ thisMonth: { label: "Этот месяц", group: "month", from: c, to: O(r) },
6233
+ nextMonth: { label: "Следующий месяц", group: "month", from: U(A(r, 1)), to: O(A(r, 1)) },
6234
+ lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Se(cr(r, 1)), to: We(cr(r, 1)) },
6235
+ thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: We(r) },
6236
+ nextQuarter: { label: "Следующий квартал", group: "quarter", from: Se(nr(r, 1)), to: We(nr(r, 1)) },
6205
6237
  lastHalfYear: {
6206
6238
  label: "Прошлое полугодие",
6207
6239
  group: "halfYear",
@@ -6210,21 +6242,21 @@ 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: ue(or(r, 1)), to: Ae(or(r, 1)) },
6246
+ thisYear: { label: "Этот год", group: "year", from: g, to: Ae(r) },
6247
+ nextYear: { label: "Следующий год", group: "year", from: ue(ir(r, 1)), to: Ae(ir(r, 1)) },
6248
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: X(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 },
6220
6252
  fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: i },
6221
6253
  fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: i },
6222
- tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: Ae(r, e) },
6254
+ tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: $e(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: Ae(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, U(lr(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(cr(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, ue(or(r, 1)), r)
6258
6290
  },
6259
6291
  nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...m.weekTillSameWeekday(r, 1) },
6260
6292
  nextTenDaysTillSameDayNumber: {
@@ -6273,7 +6305,7 @@ class Pi {
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(nr(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, ue(ir(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: ge(Ee(r, 6)), to: i },
6323
+ next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: W(Z(r, 6)) }
6292
6324
  };
6293
6325
  }
6294
6326
  }
6295
- const Ri = [
6327
+ const Ai = [
6296
6328
  { key: "day", label: "День" },
6297
6329
  { key: "week", label: "Неделя" },
6298
6330
  { key: "decade", label: "Декада" },
@@ -6301,14 +6333,18 @@ const Ri = [
6301
6333
  { key: "halfYear", label: "Полугодие" },
6302
6334
  { key: "year", label: "Год" },
6303
6335
  { key: "other", label: "Прочее" }
6304
- ], bi = [
6336
+ ], $i = [
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
+ function Si(n) {
6344
+ const r = jt(n * 100);
6345
+ return `${r >= 0 ? "+" : ""}${r}%`;
6346
+ }
6347
+ class dt {
6312
6348
  /**
6313
6349
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
6314
6350
  *
@@ -6324,7 +6360,7 @@ class Tt {
6324
6360
  */
6325
6361
  static getProductMultiplicity(r) {
6326
6362
  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;
6363
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !dt.productIsMeasurable(r) ? r.properties.minCount : 1;
6328
6364
  }
6329
6365
  /**
6330
6366
  * Возвращает кратность длины для указанного товара.
@@ -6336,7 +6372,7 @@ class Tt {
6336
6372
  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
6373
  }
6338
6374
  }
6339
- const me = class me extends h {
6375
+ const ye = class ye extends h {
6340
6376
  /**
6341
6377
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
6342
6378
  */
@@ -6356,7 +6392,7 @@ const me = class me extends h {
6356
6392
  */
6357
6393
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6358
6394
  static getCachedResponse(e) {
6359
- const t = me.responseDataCache.get(e);
6395
+ const t = ye.responseDataCache.get(e);
6360
6396
  if (t && t.validTo > /* @__PURE__ */ new Date())
6361
6397
  return t.val;
6362
6398
  }
@@ -6367,8 +6403,8 @@ const me = class me extends h {
6367
6403
  * @param data Данные для кэширования.
6368
6404
  */
6369
6405
  cacheResponse(e, t) {
6370
- me.responseDataCache.set(e, {
6371
- validTo: ts(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6406
+ ye.responseDataCache.set(e, {
6407
+ validTo: ss(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6372
6408
  val: t
6373
6409
  });
6374
6410
  }
@@ -6384,25 +6420,21 @@ const me = class me extends h {
6384
6420
  */
6385
6421
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6386
6422
  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;
6423
+ const u = t + (Q(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? ye.getCachedResponse(u) : void 0;
6388
6424
  return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (i && g && this.cacheResponse(u, g), g));
6389
6425
  }
6390
6426
  };
6391
6427
  /**
6392
6428
  * Кэш результатов запросов.
6393
6429
  */
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 {
6430
+ s(ye, "responseDataCache", /* @__PURE__ */ new Map());
6431
+ let Fe = ye;
6432
+ class ki {
6401
6433
  /**
6402
6434
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
6403
6435
  */
6404
6436
  static generateUndefinedManagerInstance() {
6405
- return new J({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6437
+ return new K({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6406
6438
  }
6407
6439
  /**
6408
6440
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -6413,15 +6445,15 @@ class di {
6413
6445
  return r.id === 0 && r.guid === "-undefined-";
6414
6446
  }
6415
6447
  }
6416
- class dt extends Ne {
6448
+ class Tt extends Fe {
6417
6449
  /**
6418
6450
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
6419
6451
  */
6420
6452
  async getManagers() {
6421
- const r = "/internal/managers", e = Ne.getCachedResponse(r);
6453
+ const r = "/internal/managers", e = Fe.getCachedResponse(r);
6422
6454
  if (e)
6423
6455
  return e;
6424
- const t = await this.get(r), i = x.instanceListInitializer(J, t.data);
6456
+ const t = await this.get(r), i = x.instanceListInitializer(K, t.data);
6425
6457
  return this.cacheResponse(r, i), i;
6426
6458
  }
6427
6459
  /**
@@ -6432,11 +6464,11 @@ class dt extends Ne {
6432
6464
  * @see /doc/api/internal#/operations/api_internal_managers_get
6433
6465
  */
6434
6466
  getManager(r) {
6435
- return this.get(`/internal/managers/${r}`, {}, (e) => new J(e.data));
6467
+ return this.get(`/internal/managers/${r}`, {}, (e) => new K(e.data));
6436
6468
  }
6437
6469
  }
6438
- var Oe = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(Oe || {});
6439
- class $s {
6470
+ var Ie = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(Ie || {});
6471
+ class Ls {
6440
6472
  /**
6441
6473
  * Инициализирует экземпляр класса {@link OfferActualization}.
6442
6474
  *
@@ -6459,13 +6491,13 @@ class $s {
6459
6491
  * @inheritDoc
6460
6492
  */
6461
6493
  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;
6494
+ this.status = (r == null ? void 0 : r.status) ?? Ie.Processing, this.actualizedAt = V.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = V.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
6463
6495
  }
6464
6496
  /**
6465
6497
  * @inheritDoc
6466
6498
  */
6467
6499
  get isProcessing() {
6468
- return this.status === Oe.Processing;
6500
+ return this.status === Ie.Processing;
6469
6501
  }
6470
6502
  /**
6471
6503
  * @inheritDoc
@@ -6483,16 +6515,16 @@ class $s {
6483
6515
  * @inheritDoc
6484
6516
  */
6485
6517
  isOutdatedAt(r) {
6486
- return this.status !== Oe.Completed || a(this.actualizedAt) ? !0 : !a(this.expiresAt) && this.expiresAt.getTime() < r.getTime();
6518
+ return this.status !== Ie.Completed || a(this.actualizedAt) ? !0 : !a(this.expiresAt) && this.expiresAt.getTime() < r.getTime();
6487
6519
  }
6488
6520
  /**
6489
6521
  * @inheritDoc
6490
6522
  */
6491
6523
  isOrderAllowedAt(r) {
6492
- return this.status === Oe.Completed && !this.isOutdatedAt(r);
6524
+ return this.status === Ie.Completed && !this.isOutdatedAt(r);
6493
6525
  }
6494
6526
  }
6495
- class At extends Ye {
6527
+ class At extends Je {
6496
6528
  /**
6497
6529
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
6498
6530
  *
@@ -6524,10 +6556,10 @@ class At extends Ye {
6524
6556
  * @inheritDoc
6525
6557
  */
6526
6558
  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;
6559
+ this.name = e == null ? void 0 : e.name, this.client = new oe(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 Ls(e.actualization), this.file = e == null ? void 0 : e.file;
6528
6560
  }
6529
6561
  }
6530
- class ks extends xr {
6562
+ class Os extends xr {
6531
6563
  /**
6532
6564
  * Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
6533
6565
  *
@@ -6563,7 +6595,7 @@ class ks extends xr {
6563
6595
  * @inheritDoc
6564
6596
  */
6565
6597
  get isOrderable() {
6566
- return !this.isProductStub && !this.isIgnored && Z(this.lineError);
6598
+ return !this.isProductStub && !this.isIgnored && Q(this.lineError);
6567
6599
  }
6568
6600
  }
6569
6601
  class M extends At {
@@ -6583,11 +6615,11 @@ class M extends At {
6583
6615
  */
6584
6616
  s(this, "products");
6585
6617
  this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
6586
- (t) => e.isProfstroy ? new ks(t) : new xr(t)
6618
+ (t) => e.isProfstroy ? new Os(t) : new xr(t)
6587
6619
  );
6588
6620
  }
6589
6621
  }
6590
- class Ai extends Ue {
6622
+ class Li extends Me {
6591
6623
  /**
6592
6624
  * Инициализирует экземпляр класса {@link OffersListFilters}.
6593
6625
  *
@@ -6628,9 +6660,9 @@ class Ai extends Ue {
6628
6660
  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
6661
  }
6630
6662
  }
6631
- class Ke extends w {
6663
+ class er extends w {
6632
6664
  }
6633
- class St extends bt {
6665
+ class $t extends bt {
6634
6666
  /**
6635
6667
  * Инициализирует экземпляр класса {@link OrderInfo}.
6636
6668
  *
@@ -6691,19 +6723,19 @@ class St extends bt {
6691
6723
  * @inheritDoc
6692
6724
  */
6693
6725
  s(this, "isLargeOrder");
6694
- this.client = new ne(e == null ? void 0 : e.client), this.payment = {
6726
+ this.client = new oe(e == null ? void 0 : e.client), this.payment = {
6695
6727
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
6696
6728
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
6697
6729
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
6698
6730
  }, this.delivery = {
6699
6731
  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;
6732
+ 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(),
6733
+ address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new xe(e.delivery.address) : void 0,
6734
+ warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new He(e.delivery.warehouse) : void 0
6735
+ }, this.attachedUser = e != null && e.attachedUser ? new _(e == null ? void 0 : e.attachedUser) : void 0, this.status = new er(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 = 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
6736
  }
6705
6737
  }
6706
- class Ls extends ut {
6738
+ class Is extends ut {
6707
6739
  /**
6708
6740
  * Инициализирует экземпляр класса {@link OrderItem}.
6709
6741
  *
@@ -6760,10 +6792,10 @@ class Ls extends ut {
6760
6792
  * Продукт, которым заменена текущая запись.
6761
6793
  */
6762
6794
  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"));
6795
+ this.product = new ae(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"));
6764
6796
  }
6765
6797
  }
6766
- class k extends St {
6798
+ class L extends $t {
6767
6799
  /**
6768
6800
  * Инициализирует экземпляр класса {@link Order}.
6769
6801
  *
@@ -6827,11 +6859,11 @@ class k extends St {
6827
6859
  this.products = (e.products ?? []).map((i) => {
6828
6860
  var c;
6829
6861
  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;
6862
+ return new Is(i, o);
6863
+ }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ve.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new er(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6832
6864
  }
6833
6865
  }
6834
- class Si extends j {
6866
+ class Oi extends j {
6835
6867
  /**
6836
6868
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
6837
6869
  *
@@ -6955,7 +6987,7 @@ class Si extends j {
6955
6987
  deliveryDate: e.deliveryDate ? $(e.deliveryDate, o) : void 0,
6956
6988
  items: t != null && t.length ? t : void 0
6957
6989
  },
6958
- (c) => x.instanceListInitializer(k, c.data),
6990
+ (c) => x.instanceListInitializer(L, c.data),
6959
6991
  i
6960
6992
  );
6961
6993
  }
@@ -7067,7 +7099,7 @@ class Si extends j {
7067
7099
  return this.post(`/internal/orders/offers/${r}/send`, e);
7068
7100
  }
7069
7101
  }
7070
- class $i {
7102
+ class Ii {
7071
7103
  /**
7072
7104
  * Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
7073
7105
  *
@@ -7086,8 +7118,8 @@ class $i {
7086
7118
  return !a(r) && r.isProfstroy === !0 && !a(r.actualization);
7087
7119
  }
7088
7120
  }
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 {
7121
+ var xs = /* @__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))(xs || {});
7122
+ class xi {
7091
7123
  /**
7092
7124
  * Инициализирует экземпляр класса {@link OrderEditorData}.
7093
7125
  *
@@ -7154,11 +7186,11 @@ class ki {
7154
7186
  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
7187
  }
7156
7188
  }
7157
- class $t extends w {
7189
+ class St extends w {
7158
7190
  }
7159
7191
  class kt extends w {
7160
7192
  }
7161
- class Li extends Ue {
7193
+ class _i extends Me {
7162
7194
  /**
7163
7195
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
7164
7196
  *
@@ -7259,7 +7291,7 @@ class Li extends Ue {
7259
7291
  * @inheritDoc
7260
7292
  */
7261
7293
  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;
7294
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new K(u) : new St(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new oe(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 Ce(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 J(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 He(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
7263
7295
  }
7264
7296
  /**
7265
7297
  * @inheritDoc
@@ -7276,7 +7308,7 @@ class Li extends Ue {
7276
7308
  this.deliveryDate.from = null, this.deliveryDate.to = null;
7277
7309
  break;
7278
7310
  case "deliveryType":
7279
- this.deliveryType = new V();
7311
+ this.deliveryType = new J();
7280
7312
  break;
7281
7313
  case "clientCities":
7282
7314
  this.clientCities = [];
@@ -7310,7 +7342,7 @@ class Li extends Ue {
7310
7342
  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
7343
  }
7312
7344
  }
7313
- class Is {
7345
+ class _s {
7314
7346
  /**
7315
7347
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
7316
7348
  *
@@ -7333,10 +7365,10 @@ class Is {
7333
7365
  * @inheritDoc
7334
7366
  */
7335
7367
  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();
7368
+ this.user = new _(r == null ? void 0 : r.user), this.status = new er(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(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
7369
  }
7338
7370
  }
7339
- class Oi extends j {
7371
+ class qi extends j {
7340
7372
  /**
7341
7373
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
7342
7374
  *
@@ -7348,7 +7380,7 @@ class Oi extends j {
7348
7380
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
7349
7381
  */
7350
7382
  getOrders(r, e, t, i = void 0) {
7351
- return this.getTypedPaginated(St, "/internal/orders", r, e, t, {}, void 0, i);
7383
+ return this.getTypedPaginated($t, "/internal/orders", r, e, t, {}, void 0, i);
7352
7384
  }
7353
7385
  /**
7354
7386
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -7384,7 +7416,7 @@ class Oi extends j {
7384
7416
  * @see /doc/api/internal#/Заказы/api_internal_orders_get
7385
7417
  */
7386
7418
  getOrder(r) {
7387
- return this.get(`/internal/orders/${r}`, {}, (e) => new k(e.data));
7419
+ return this.get(`/internal/orders/${r}`, {}, (e) => new L(e.data));
7388
7420
  }
7389
7421
  /**
7390
7422
  * Создаёт заказы клиента из содержимого корзины текущего пользователя.
@@ -7411,7 +7443,7 @@ class Oi extends j {
7411
7443
  deliveryDate: $(e.deliveryDate, o),
7412
7444
  items: t != null && t.length ? t : void 0
7413
7445
  },
7414
- (c) => x.instanceListInitializer(k, c.data),
7446
+ (c) => x.instanceListInitializer(L, c.data),
7415
7447
  i
7416
7448
  );
7417
7449
  }
@@ -7423,7 +7455,7 @@ class Oi extends j {
7423
7455
  * @see /doc/api/internal#/Заказы/api_internal_orders_attach
7424
7456
  */
7425
7457
  attachOrder(r) {
7426
- return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new k(e.data));
7458
+ return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new L(e.data));
7427
7459
  }
7428
7460
  /**
7429
7461
  * Открепляет указанный заказ от оператора и возвращает полные данные заказа.
@@ -7433,7 +7465,7 @@ class Oi extends j {
7433
7465
  * @see /doc/api/internal#/Заказы/api_internal_orders_detach
7434
7466
  */
7435
7467
  detachOrder(r) {
7436
- return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new k(e.data));
7468
+ return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new L(e.data));
7437
7469
  }
7438
7470
  /**
7439
7471
  * Объединяет указанные заказы в базовый заказ и возвращает обновлённые данные базового заказа.
@@ -7444,7 +7476,7 @@ class Oi extends j {
7444
7476
  * @see /doc/api/internal#/Заказы/api_internal_orders_merge
7445
7477
  */
7446
7478
  mergeOrders(r, e) {
7447
- return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new k(t.data));
7479
+ return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new L(t.data));
7448
7480
  }
7449
7481
  /**
7450
7482
  * Пересчитывает стоимость корзины указанного заказа и возвращает обновлённые данные заказа.
@@ -7454,7 +7486,7 @@ class Oi extends j {
7454
7486
  * @see /doc/api/internal#/Заказы/api_internal_orders_recalculate
7455
7487
  */
7456
7488
  recalculateOrder(r) {
7457
- return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new k(e.data));
7489
+ return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new L(e.data));
7458
7490
  }
7459
7491
  /**
7460
7492
  * Копирует товары указанного заказа в текущую корзину пользователя.
@@ -7485,7 +7517,7 @@ class Oi extends j {
7485
7517
  ...e,
7486
7518
  deliveryDate: e.deliveryDate ? $(e.deliveryDate, i) : void 0
7487
7519
  },
7488
- (o) => new k(o.data),
7520
+ (o) => new L(o.data),
7489
7521
  t
7490
7522
  );
7491
7523
  }
@@ -7515,7 +7547,7 @@ class Oi extends j {
7515
7547
  is_additional_sale: e.isAdditionalSale,
7516
7548
  ...e.configuratorParams
7517
7549
  },
7518
- (i) => new k(i.data),
7550
+ (i) => new L(i.data),
7519
7551
  t
7520
7552
  );
7521
7553
  }
@@ -7538,7 +7570,7 @@ class Oi extends j {
7538
7570
  status: e,
7539
7571
  statusDetail: t
7540
7572
  },
7541
- (o) => new k(o.data),
7573
+ (o) => new L(o.data),
7542
7574
  i
7543
7575
  );
7544
7576
  }
@@ -7552,7 +7584,7 @@ class Oi extends j {
7552
7584
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
7553
7585
  */
7554
7586
  changeOrderStatusDetail(r, e) {
7555
- return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new k(t.data));
7587
+ return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new L(t.data));
7556
7588
  }
7557
7589
  /**
7558
7590
  * Возвращает историю изменения статусов заказа.
@@ -7562,7 +7594,7 @@ class Oi extends j {
7562
7594
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
7563
7595
  */
7564
7596
  getOrderStatusHistory(r) {
7565
- return this.getTypedList(Is, `/internal/orders/${r}/history`);
7597
+ return this.getTypedList(_s, `/internal/orders/${r}/history`);
7566
7598
  }
7567
7599
  /**
7568
7600
  * Возвращает содержимое печатной формы заказа в формате HTML.
@@ -7606,7 +7638,7 @@ class Oi extends j {
7606
7638
  * @see /doc/api/internal#/Заказы/api_internal_orders_change_attached_operator
7607
7639
  */
7608
7640
  changeAttachedOperator(r, e) {
7609
- return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new k(t.data));
7641
+ return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new L(t.data));
7610
7642
  }
7611
7643
  /**
7612
7644
  * Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
@@ -7616,7 +7648,7 @@ class Oi extends j {
7616
7648
  * @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
7617
7649
  */
7618
7650
  deleteOrderAttachedFile(r) {
7619
- return this.delete(`/internal/orders/${r}/file/attached`, (e) => new k(e.data));
7651
+ return this.delete(`/internal/orders/${r}/file/attached`, (e) => new L(e.data));
7620
7652
  }
7621
7653
  /**
7622
7654
  * Удаляет продукт из заказа и возвращает обновлённые данные заказа.
@@ -7627,7 +7659,7 @@ class Oi extends j {
7627
7659
  * @see /doc/api/internal#/operations/api_internal_orders_product_delete
7628
7660
  */
7629
7661
  deleteOrderProduct(r, e) {
7630
- return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new k(t.data));
7662
+ return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new L(t.data));
7631
7663
  }
7632
7664
  /**
7633
7665
  * Изменяет продукт заказа и возвращает обновлённые данные заказа.
@@ -7656,7 +7688,7 @@ class Oi extends j {
7656
7688
  is_additional_sale: t.isAdditionalSale,
7657
7689
  ...t.configuratorParams
7658
7690
  },
7659
- (o) => new k(o.data),
7691
+ (o) => new L(o.data),
7660
7692
  i
7661
7693
  );
7662
7694
  }
@@ -7704,8 +7736,8 @@ class Oi extends j {
7704
7736
  );
7705
7737
  }
7706
7738
  }
7707
- const Ii = Symbol("currentOrder");
7708
- class mr {
7739
+ const Ni = Symbol("currentOrder");
7740
+ class yr {
7709
7741
  /**
7710
7742
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
7711
7743
  *
@@ -7732,10 +7764,10 @@ class mr {
7732
7764
  * Источник клиентской цены.
7733
7765
  */
7734
7766
  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;
7767
+ this.client = new oe(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;
7736
7768
  }
7737
7769
  }
7738
- const yr = (n) => {
7770
+ const ar = (n) => {
7739
7771
  var r, e, t, i, o;
7740
7772
  return n ? it(
7741
7773
  {
@@ -7746,13 +7778,13 @@ const yr = (n) => {
7746
7778
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
7747
7779
  hideNotActive: n.hideNotActive
7748
7780
  },
7749
- (c) => a(c) || (z(c) || $r(c)) && Z(c)
7781
+ (c) => a(c) || (z(c) || Sr(c)) && Q(c)
7750
7782
  ) : {};
7751
7783
  }, Kr = (n) => {
7752
7784
  const r = {};
7753
7785
  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
7786
  };
7755
- class xi extends h {
7787
+ class Ui extends h {
7756
7788
  /**
7757
7789
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
7758
7790
  *
@@ -7767,9 +7799,9 @@ class xi extends h {
7767
7799
  `/internal/price/products/${r}/analyze`,
7768
7800
  {
7769
7801
  ...Kr(e),
7770
- filters: yr(t)
7802
+ filters: ar(t)
7771
7803
  },
7772
- (i) => x.instanceListInitializer(mr, i.data)
7804
+ (i) => x.instanceListInitializer(yr, i.data)
7773
7805
  );
7774
7806
  }
7775
7807
  /**
@@ -7786,9 +7818,9 @@ class xi extends h {
7786
7818
  `/internal/price/categories/${r}/analyze`,
7787
7819
  {
7788
7820
  ...Kr(e),
7789
- filters: yr(t)
7821
+ filters: ar(t)
7790
7822
  },
7791
- (i) => x.instanceListInitializer(mr, i.data)
7823
+ (i) => x.instanceListInitializer(yr, i.data)
7792
7824
  );
7793
7825
  }
7794
7826
  /**
@@ -7807,13 +7839,13 @@ class xi extends h {
7807
7839
  `/internal/price/categories/${r}/analyze/square`,
7808
7840
  {
7809
7841
  ...e,
7810
- filters: yr(t)
7842
+ filters: ar(t)
7811
7843
  },
7812
- (i) => x.instanceListInitializer(mr, i.data)
7844
+ (i) => x.instanceListInitializer(yr, i.data)
7813
7845
  );
7814
7846
  }
7815
7847
  }
7816
- class xs {
7848
+ class qs {
7817
7849
  /**
7818
7850
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
7819
7851
  *
@@ -7860,10 +7892,10 @@ class xs {
7860
7892
  * @inheritDoc
7861
7893
  */
7862
7894
  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;
7895
+ 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 Ue(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;
7864
7896
  }
7865
7897
  }
7866
- class _s extends qe {
7898
+ class Ns extends Ue {
7867
7899
  /**
7868
7900
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
7869
7901
  *
@@ -7875,10 +7907,10 @@ class _s extends qe {
7875
7907
  * @inheritDoc
7876
7908
  */
7877
7909
  s(this, "history");
7878
- this.history = De(e.history, (t) => new xs(t));
7910
+ this.history = Pe(e.history, (t) => new qs(t));
7879
7911
  }
7880
7912
  }
7881
- class _i extends h {
7913
+ class Fi extends h {
7882
7914
  /**
7883
7915
  * Возвращает данные об истории изменения цен.
7884
7916
  *
@@ -7889,16 +7921,16 @@ class _i extends h {
7889
7921
  getProductPriceHistory(r) {
7890
7922
  var o, c, u, p, g;
7891
7923
  const e = S().config.dateFormats.api, t = it(
7892
- xe(r, {
7924
+ _e(r, {
7893
7925
  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
7926
+ from: wr((o = r.costDate) == null ? void 0 : o.from) ? $(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7927
+ to: wr((u = r.costDate) == null ? void 0 : u.to) ? $(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7896
7928
  }
7897
7929
  }),
7898
- (y) => a(y) || (z(y) || $r(y)) && Z(y)
7930
+ (y) => a(y) || (z(y) || Sr(y)) && Q(y)
7899
7931
  ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
7900
7932
  return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((y) => [
7901
- new _s(xe(y[0], { history: y }))
7933
+ new Ns(_e(y[0], { history: y }))
7902
7934
  ]);
7903
7935
  }
7904
7936
  }
@@ -7917,10 +7949,10 @@ class Xr {
7917
7949
  * Список рекомендованных категорий продуктов.
7918
7950
  */
7919
7951
  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)));
7952
+ r != null && r.products && (this.products = r.products.map((e) => new Ue(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Ue(e)));
7921
7953
  }
7922
7954
  }
7923
- class qi extends h {
7955
+ class Mi extends h {
7924
7956
  /**
7925
7957
  * Возвращает данные о рекомендациях указанной категории продуктов.
7926
7958
  *
@@ -7966,10 +7998,10 @@ class qi extends h {
7966
7998
  });
7967
7999
  }
7968
8000
  }
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 {
8001
+ var Us = /* @__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))(Us || {}), Fs = /* @__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))(Fs || {});
8002
+ class Ms extends w {
7971
8003
  }
7972
- class Fs extends w {
8004
+ class Hs extends w {
7973
8005
  }
7974
8006
  class Zr extends w {
7975
8007
  /**
@@ -7984,18 +8016,18 @@ class Zr extends w {
7984
8016
  * @inheritDoc
7985
8017
  */
7986
8018
  s(this, "userRegions");
7987
- this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new Je(i))) ?? [];
8019
+ this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new Ze(i))) ?? [];
7988
8020
  }
7989
8021
  }
7990
- class Ms extends w {
7991
- }
7992
- class Hs extends w {
7993
- }
7994
8022
  class Bs extends w {
7995
8023
  }
7996
8024
  class Ws extends w {
7997
8025
  }
7998
- class Ni {
8026
+ class zs extends w {
8027
+ }
8028
+ class Es extends w {
8029
+ }
8030
+ class Hi {
7999
8031
  /**
8000
8032
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
8001
8033
  *
@@ -8016,7 +8048,7 @@ class Ni {
8016
8048
  }
8017
8049
  class Lt extends w {
8018
8050
  }
8019
- const B = class B extends Ne {
8051
+ const B = class B extends Fe {
8020
8052
  /**
8021
8053
  * Исключает из списка записей справочника местоположений служебную запись
8022
8054
  * неизвестного региона или города.
@@ -8034,7 +8066,7 @@ const B = class B extends Ne {
8034
8066
  * и использовать в случае аналогичных запросов.
8035
8067
  */
8036
8068
  getReference(r, e = !1) {
8037
- return this.getTypedDataArrayRequester(Us, `/internal/references/${r}`, e);
8069
+ return this.getTypedDataArrayRequester(Ms, `/internal/references/${r}`, e);
8038
8070
  }
8039
8071
  /**
8040
8072
  * Возвращает {@link Promise} для получения справочника данных о канале
@@ -8047,7 +8079,7 @@ const B = class B extends Ne {
8047
8079
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
8048
8080
  */
8049
8081
  getContactPositions() {
8050
- return this.getTypedDataArrayRequester(Ms, "/internal/references/contact-position", !0);
8082
+ return this.getTypedDataArrayRequester(Bs, "/internal/references/contact-position", !0);
8051
8083
  }
8052
8084
  /**
8053
8085
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
@@ -8066,7 +8098,7 @@ const B = class B extends Ne {
8066
8098
  * групп партнеров (направлений деятельности).
8067
8099
  */
8068
8100
  getPartnerGroup() {
8069
- return this.getTypedDataArrayRequester(Ce, "/internal/references/partner-group", !0);
8101
+ return this.getTypedDataArrayRequester(De, "/internal/references/partner-group", !0);
8070
8102
  }
8071
8103
  /**
8072
8104
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
@@ -8078,25 +8110,25 @@ const B = class B extends Ne {
8078
8110
  * Возвращает {@link Promise} для получения справочника операторов.
8079
8111
  */
8080
8112
  getOperators() {
8081
- return this.getTypedDataArrayRequester($t, "/internal/references/operator", !0);
8113
+ return this.getTypedDataArrayRequester(St, "/internal/references/operator", !0);
8082
8114
  }
8083
8115
  /**
8084
8116
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
8085
8117
  */
8086
8118
  getOrderPaymentStatuses() {
8087
- return this.getTypedDataArrayRequester(Hs, "/public/references/order-payment-status", !0);
8119
+ return this.getTypedDataArrayRequester(Ws, "/public/references/order-payment-status", !0);
8088
8120
  }
8089
8121
  /**
8090
8122
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
8091
8123
  */
8092
8124
  getOrderStatuses() {
8093
- return this.getTypedDataArrayRequester(Ke, "/internal/references/order-status", !0);
8125
+ return this.getTypedDataArrayRequester(er, "/internal/references/order-status", !0);
8094
8126
  }
8095
8127
  /**
8096
8128
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
8097
8129
  */
8098
8130
  getOrderStatusDetails() {
8099
- return this.getTypedDataArrayRequester(Bs, "/internal/references/order-status-detail", !0);
8131
+ return this.getTypedDataArrayRequester(zs, "/internal/references/order-status-detail", !0);
8100
8132
  }
8101
8133
  /**
8102
8134
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
@@ -8128,7 +8160,7 @@ const B = class B extends Ne {
8128
8160
  * @param term Терм поиска.
8129
8161
  */
8130
8162
  searchCity(r) {
8131
- return this.getTypedDataArrayRequester(we, `/internal/references/city-with-region-and-country/search?term=${r}`);
8163
+ return this.getTypedDataArrayRequester(Ce, `/internal/references/city-with-region-and-country/search?term=${r}`);
8132
8164
  }
8133
8165
  /**
8134
8166
  * Выполняет поиск данных о регионах по терму в названии.
@@ -8136,7 +8168,7 @@ const B = class B extends Ne {
8136
8168
  * @param term Терм поиска.
8137
8169
  */
8138
8170
  searchRegion(r) {
8139
- return this.getTypedDataArrayRequester(ve, `/internal/references/region-with-country/search?term=${r}`);
8171
+ return this.getTypedDataArrayRequester(we, `/internal/references/region-with-country/search?term=${r}`);
8140
8172
  }
8141
8173
  /**
8142
8174
  * Возвращает {@link Promise} для получения справочника регионов указанной страны.
@@ -8146,7 +8178,7 @@ const B = class B extends Ne {
8146
8178
  * @param countryId Идентификатор страны.
8147
8179
  */
8148
8180
  getRegionsByCountry(r) {
8149
- return this.getTypedDataArrayRequester(ve, "/internal/references/region", !1, { params: { countryId: r } }).then(
8181
+ return this.getTypedDataArrayRequester(we, "/internal/references/region", !1, { params: { countryId: r } }).then(
8150
8182
  (e) => B.withoutUnknownLocation(e)
8151
8183
  );
8152
8184
  }
@@ -8158,7 +8190,7 @@ const B = class B extends Ne {
8158
8190
  * @param regionId Идентификатор региона.
8159
8191
  */
8160
8192
  getCitiesByRegion(r) {
8161
- return this.getTypedDataArrayRequester(Fs, "/internal/references/city", !1, { params: { regionId: r } }).then(
8193
+ return this.getTypedDataArrayRequester(Hs, "/internal/references/city", !1, { params: { regionId: r } }).then(
8162
8194
  (e) => B.withoutUnknownLocation(e)
8163
8195
  );
8164
8196
  }
@@ -8183,7 +8215,7 @@ const B = class B extends Ne {
8183
8215
  */
8184
8216
  searchCityWithRegion(r, e, t = void 0) {
8185
8217
  return this.getTypedDataArrayRequester(
8186
- we,
8218
+ Ce,
8187
8219
  "/internal/references/city-with-region/search",
8188
8220
  !1,
8189
8221
  { term: r, ...e ? { params: { countryId: e } } : {} },
@@ -8208,19 +8240,19 @@ const B = class B extends Ne {
8208
8240
  * @param term Терм поиска.
8209
8241
  */
8210
8242
  searchCountry(r) {
8211
- return this.getTypedDataArrayRequester(ae, `/internal/references/country/search?term=${r}`);
8243
+ return this.getTypedDataArrayRequester(ve, `/internal/references/country/search?term=${r}`);
8212
8244
  }
8213
8245
  /**
8214
8246
  * Возвращает {@link Promise} для получения справочника типов доставки.
8215
8247
  */
8216
8248
  getDeliveryTypes() {
8217
- return this.getTypedDataArrayRequester(V, "/internal/references/delivery-type", !0);
8249
+ return this.getTypedDataArrayRequester(J, "/internal/references/delivery-type", !0);
8218
8250
  }
8219
8251
  /**
8220
8252
  * Возвращает {@link Promise} для получения справочника складов.
8221
8253
  */
8222
8254
  getWarehouses() {
8223
- return this.getTypedDataArrayRequester(Me, "/public/references/warehouse", !0);
8255
+ return this.getTypedDataArrayRequester(He, "/public/references/warehouse", !0);
8224
8256
  }
8225
8257
  /**
8226
8258
  * Возвращает {@link Promise} для получения справочника типов свойств.
@@ -8232,13 +8264,13 @@ const B = class B extends Ne {
8232
8264
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
8233
8265
  */
8234
8266
  getPriceCoefficients() {
8235
- return this.getTypedDataArrayRequester(Fe, "/internal/references/price-coefficient", !0);
8267
+ return this.getTypedDataArrayRequester(ie, "/internal/references/price-coefficient", !0);
8236
8268
  }
8237
8269
  /**
8238
8270
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
8239
8271
  */
8240
8272
  getProductFileType() {
8241
- return this.getTypedDataArrayRequester(Ws, "/public/references/product-file-type", !0);
8273
+ return this.getTypedDataArrayRequester(Es, "/public/references/product-file-type", !0);
8242
8274
  }
8243
8275
  };
8244
8276
  /**
@@ -8246,9 +8278,9 @@ const B = class B extends Ne {
8246
8278
  * обозначающих неизвестное местоположение.
8247
8279
  */
8248
8280
  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);
8281
+ let d = B;
8282
+ const T = se("common.references_private", () => {
8283
+ 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), de = v(void 0), Te = v(void 0), ce = v(void 0), le = v(void 0), rr = v(void 0), tr = v(void 0), sr = v(void 0), l = v(void 0);
8252
8284
  return {
8253
8285
  /**
8254
8286
  * Список загружаемых/загруженных на данный момент значений.
@@ -8301,7 +8333,7 @@ const d = se("common.references_private", () => {
8301
8333
  /**
8302
8334
  * Справочник групп партнеров.
8303
8335
  */
8304
- partnerGroupReference: be,
8336
+ partnerGroupReference: de,
8305
8337
  /**
8306
8338
  * Справочник типов файлов продукктов/категорий.
8307
8339
  */
@@ -8309,122 +8341,122 @@ const d = se("common.references_private", () => {
8309
8341
  /**
8310
8342
  * Справочник типов ресурсов.
8311
8343
  */
8312
- resourceTypesReference: oe,
8344
+ resourceTypesReference: ce,
8313
8345
  /**
8314
8346
  * Справочник направлений продаж.
8315
8347
  */
8316
- salesDirectionsReference: ce,
8348
+ salesDirectionsReference: le,
8317
8349
  /**
8318
8350
  * Справочник источников первичного интереса.
8319
8351
  */
8320
- sourcePrimaryInterestReference: Xe,
8352
+ sourcePrimaryInterestReference: rr,
8321
8353
  /**
8322
8354
  * Справочник складов.
8323
8355
  */
8324
- warehousesReference: Ze,
8356
+ warehousesReference: tr,
8325
8357
  /**
8326
8358
  * Справочник типов свойств.
8327
8359
  */
8328
- propertyTypesReference: er,
8360
+ propertyTypesReference: sr,
8329
8361
  /**
8330
8362
  * Справочник коэффициентов цен.
8331
8363
  */
8332
8364
  priceCoefficientsReference: l
8333
8365
  };
8334
- }), Ui = se("common.references", () => {
8366
+ }), Bi = se("common.references", () => {
8335
8367
  const n = R(() => {
8336
- const l = d();
8337
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((f) => {
8368
+ const l = T();
8369
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
8338
8370
  l.channelPrimaryInterestReference = f;
8339
8371
  }).catch(C)), l.channelPrimaryInterestReference;
8340
8372
  }), r = R(() => {
8341
- const l = d();
8342
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((f) => {
8373
+ const l = T();
8374
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(d).getContactPositions().then((f) => {
8343
8375
  l.contactPositionsReference = f;
8344
8376
  }).catch(C)), l.contactPositionsReference;
8345
8377
  }), e = R(() => {
8346
- const l = d();
8347
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((f) => {
8378
+ const l = T();
8379
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(d).getCurrency().then((f) => {
8348
8380
  l.currencyReference = f;
8349
8381
  }).catch(C)), l.currencyReference;
8350
8382
  }), t = R(() => {
8351
- const l = d();
8352
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((f) => {
8383
+ const l = T();
8384
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(d).getOpf().then((f) => {
8353
8385
  l.opfReference = f;
8354
8386
  }).catch(C)), l.opfReference;
8355
8387
  }), i = R(() => {
8356
- const l = d();
8357
- return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(T).getOperators().then((f) => {
8388
+ const l = T();
8389
+ return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(d).getOperators().then((f) => {
8358
8390
  l.operatorReference = f;
8359
8391
  }).catch(C)), l.operatorReference;
8360
8392
  }), o = R(() => {
8361
- const l = d();
8362
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((f) => {
8393
+ const l = T();
8394
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(d).getOrderPaymentStatuses().then((f) => {
8363
8395
  l.orderPaymentStatusReference = f;
8364
8396
  }).catch(C)), l.orderPaymentStatusReference;
8365
8397
  }), c = R(() => {
8366
- const l = d();
8367
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((f) => {
8398
+ const l = T();
8399
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(d).getOrderStatuses().then((f) => {
8368
8400
  l.orderStatusReference = f;
8369
8401
  }).catch(C)), l.orderStatusReference;
8370
8402
  }), u = R(() => {
8371
- const l = d();
8372
- return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(T).getOrderStatusDetails().then((f) => {
8403
+ const l = T();
8404
+ return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(d).getOrderStatusDetails().then((f) => {
8373
8405
  l.orderStatusDetailReference = f;
8374
8406
  }).catch(C)), l.orderStatusDetailReference;
8375
8407
  }), p = R(() => {
8376
- const l = d();
8377
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((f) => {
8408
+ const l = T();
8409
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(d).getPaymentTypes().then((f) => {
8378
8410
  l.paymentTypeReference = f;
8379
8411
  }).catch(C)), l.paymentTypeReference;
8380
8412
  }), g = R(() => {
8381
- const l = d();
8382
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((f) => {
8413
+ const l = T();
8414
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(d).getPartnerGroup().then((f) => {
8383
8415
  l.partnerGroupReference = f;
8384
8416
  }).catch(C)), l.partnerGroupReference;
8385
8417
  }), y = R(() => {
8386
- const l = d();
8387
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((f) => {
8418
+ const l = T();
8419
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(d).getProductFileType().then((f) => {
8388
8420
  l.productFileTypeReference = f;
8389
8421
  }).catch(C)), l.productFileTypeReference;
8390
8422
  }), D = R(() => {
8391
- const l = d();
8392
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((f) => {
8423
+ const l = T();
8424
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(d).getResourceTypes().then((f) => {
8393
8425
  l.resourceTypesReference = f;
8394
8426
  }).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) => {
8427
+ }), de = R(() => {
8428
+ const l = T();
8429
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(d).getSalesDirections().then((f) => {
8398
8430
  l.salesDirectionsReference = f;
8399
8431
  }).catch(C)), l.salesDirectionsReference;
8400
8432
  }), Te = R(() => {
8401
- const l = d();
8402
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((f) => {
8433
+ const l = T();
8434
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(d).getSourcePrimaryInterest().then((f) => {
8403
8435
  l.sourcePrimaryInterestReference = f;
8404
8436
  }).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) => {
8437
+ }), ce = R(() => {
8438
+ const l = T();
8439
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(d).getDeliveryTypes().then((f) => {
8408
8440
  l.deliveryTypeReference = f;
8409
8441
  }).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) => {
8442
+ }), le = R(() => {
8443
+ const l = T();
8444
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Tt).getManagers().then((f) => {
8413
8445
  l.managersList = f;
8414
8446
  }).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) => {
8447
+ }), rr = R(() => {
8448
+ const l = T();
8449
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
8418
8450
  l.warehousesReference = f;
8419
8451
  }).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) => {
8452
+ }), tr = R(() => {
8453
+ const l = T();
8454
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
8423
8455
  l.propertyTypesReference = f;
8424
8456
  }).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) => {
8457
+ }), sr = R(() => {
8458
+ const l = T();
8459
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
8428
8460
  l.priceCoefficientsReference = f;
8429
8461
  }).catch(C)), l.priceCoefficientsReference;
8430
8462
  });
@@ -8480,7 +8512,7 @@ const d = se("common.references_private", () => {
8480
8512
  /**
8481
8513
  * Справочник направлений продаж.
8482
8514
  */
8483
- salesDirectionsReference: be,
8515
+ salesDirectionsReference: de,
8484
8516
  /**
8485
8517
  * Справочник каналов первичного интереса.
8486
8518
  */
@@ -8488,26 +8520,26 @@ const d = se("common.references_private", () => {
8488
8520
  /**
8489
8521
  * Справочник типов доставки.
8490
8522
  */
8491
- deliveryTypeReference: oe,
8523
+ deliveryTypeReference: ce,
8492
8524
  /**
8493
8525
  * Список менеджеров.
8494
8526
  */
8495
- managersList: ce,
8527
+ managersList: le,
8496
8528
  /**
8497
8529
  * Справочник складов.
8498
8530
  */
8499
- warehousesReference: Xe,
8531
+ warehousesReference: rr,
8500
8532
  /**
8501
8533
  * Справочник типов свойств.
8502
8534
  */
8503
- propertyTypesReference: Ze,
8535
+ propertyTypesReference: tr,
8504
8536
  /**
8505
8537
  * Справочник коэффициентов цен.
8506
8538
  */
8507
- priceCoefficientsReference: er
8539
+ priceCoefficientsReference: sr
8508
8540
  };
8509
8541
  });
8510
- class zs {
8542
+ class js {
8511
8543
  /**
8512
8544
  * Инициализирует экземпляр класса {@link MetaTagItem}.
8513
8545
  *
@@ -8565,10 +8597,10 @@ class et {
8565
8597
  */
8566
8598
  s(this, "tags");
8567
8599
  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;
8600
+ 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 js(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8569
8601
  }
8570
8602
  }
8571
- class Fi extends h {
8603
+ class Wi extends h {
8572
8604
  /**
8573
8605
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
8574
8606
  *
@@ -8599,7 +8631,7 @@ class Fi extends h {
8599
8631
  return this.delete(`/internal/seo/${r.slug}/${e}`);
8600
8632
  }
8601
8633
  }
8602
- class Mi extends h {
8634
+ class zi extends h {
8603
8635
  /**
8604
8636
  * Возвращает подсказки по адресам.
8605
8637
  *
@@ -8647,7 +8679,7 @@ class Mi extends h {
8647
8679
  }
8648
8680
  }
8649
8681
  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 {
8682
+ class Gs extends yt {
8651
8683
  /**
8652
8684
  * Инициализирует экземпляр класса {@link User}.
8653
8685
  *
@@ -8674,7 +8706,7 @@ class Es extends yt {
8674
8706
  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;
8675
8707
  }
8676
8708
  }
8677
- class Hi extends h {
8709
+ class Ei extends h {
8678
8710
  /**
8679
8711
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
8680
8712
  */
@@ -8690,16 +8722,16 @@ class Hi extends h {
8690
8722
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
8691
8723
  }
8692
8724
  }
8693
- class js extends h {
8725
+ class Ys extends h {
8694
8726
  /**
8695
8727
  * Возвращает данные о текущем пользователе.
8696
8728
  */
8697
8729
  // eslint-disable-next-line class-methods-use-this
8698
8730
  getCurrentUser() {
8699
- return this.get("/internal/users/info", {}, (r) => new Es(r.data), !0);
8731
+ return this.get("/internal/users/info", {}, (r) => new Gs(r.data), !0);
8700
8732
  }
8701
8733
  }
8702
- const dr = se("common.user_state_private", () => {
8734
+ const Tr = se("common.user_state_private", () => {
8703
8735
  const n = v({}), r = v(void 0), e = v(void 0);
8704
8736
  return {
8705
8737
  /**
@@ -8717,22 +8749,22 @@ const dr = se("common.user_state_private", () => {
8717
8749
  };
8718
8750
  });
8719
8751
  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) => {
8752
+ const r = Tr();
8753
+ (n == null ? void 0 : n.type) !== Ot.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Tt).getManager(n.id).then((e) => {
8722
8754
  r.currentManager = e;
8723
8755
  }).catch(C).finally(() => {
8724
8756
  r.dataLoaderList.currentManager = !1;
8725
8757
  }));
8726
8758
  }
8727
- const Bi = se("common.user_state", () => {
8759
+ const ji = se("common.user_state", () => {
8728
8760
  const n = R(() => {
8729
- const e = dr();
8730
- return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(js).getCurrentUser().then((t) => {
8761
+ const e = Tr();
8762
+ return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(Ys).getCurrentUser().then((t) => {
8731
8763
  e.currentUser = t, rt(t);
8732
8764
  }).catch(C).finally(() => {
8733
8765
  e.dataLoaderList.currentUser = !1;
8734
8766
  })), e.currentUser;
8735
- }), r = R(() => (rt(n.value), dr().currentManager));
8767
+ }), r = R(() => (rt(n.value), Tr().currentManager));
8736
8768
  return {
8737
8769
  /**
8738
8770
  * Данные о текущем пользователе.
@@ -8762,7 +8794,7 @@ class Ar {
8762
8794
  this.user = new _(r == null ? void 0 : r.user), this.salesDirection = new F(r == null ? void 0 : r.salesDirection);
8763
8795
  }
8764
8796
  }
8765
- class ar extends Je {
8797
+ class vr extends Ze {
8766
8798
  /**
8767
8799
  * Инициализирует экземпляр класса {@link UserRegion}.
8768
8800
  *
@@ -8779,10 +8811,10 @@ class ar extends Je {
8779
8811
  * @inheritDoc
8780
8812
  */
8781
8813
  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))) ?? [];
8814
+ this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new Ce(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Ar(o))) ?? [];
8783
8815
  }
8784
8816
  }
8785
- class Wi extends Ue {
8817
+ class Gi extends Me {
8786
8818
  /**
8787
8819
  * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
8788
8820
  *
@@ -8818,7 +8850,7 @@ class Wi extends Ue {
8818
8850
  return this;
8819
8851
  }
8820
8852
  }
8821
- class zi extends j {
8853
+ class Yi extends j {
8822
8854
  /**
8823
8855
  * Возвращает список регионов пользователей.
8824
8856
  *
@@ -8829,7 +8861,7 @@ class zi extends j {
8829
8861
  * @see /doc/api/internal#/operations/api_internal_user_region_get_list
8830
8862
  */
8831
8863
  getRegionsList(r, e, t) {
8832
- return this.getTypedPaginated(Je, "/internal/users/regions", r, e, t);
8864
+ return this.getTypedPaginated(Ze, "/internal/users/regions", r, e, t);
8833
8865
  }
8834
8866
  /**
8835
8867
  * Возвращает полные данные о регионе пользователей.
@@ -8839,7 +8871,7 @@ class zi extends j {
8839
8871
  * @see /doc/api/internal#/operations/api_internal_user_region_get
8840
8872
  */
8841
8873
  getRegion(r) {
8842
- return this.get(`/internal/users/regions/${r}`, {}, (e) => new ar(e.data));
8874
+ return this.get(`/internal/users/regions/${r}`, {}, (e) => new vr(e.data));
8843
8875
  }
8844
8876
  /**
8845
8877
  * Создаёт новый регион пользователей.
@@ -8852,7 +8884,7 @@ class zi extends j {
8852
8884
  * @see /doc/api/internal#/operations/api_internal_user_region_create
8853
8885
  */
8854
8886
  createRegion(r, e = {}) {
8855
- return this.post("/internal/users/regions", r, (t) => new ar(t.data), e);
8887
+ return this.post("/internal/users/regions", r, (t) => new vr(t.data), e);
8856
8888
  }
8857
8889
  /**
8858
8890
  * Изменяет данные о регионе пользователей.
@@ -8866,7 +8898,7 @@ class zi extends j {
8866
8898
  * @see /doc/api/internal#/operations/api_internal_user_region_change
8867
8899
  */
8868
8900
  updateRegion(r, e, t = {}) {
8869
- return this.patch(`/internal/users/regions/${r}`, e, (i) => new ar(i.data), t);
8901
+ return this.patch(`/internal/users/regions/${r}`, e, (i) => new vr(i.data), t);
8870
8902
  }
8871
8903
  /**
8872
8904
  * Удаляет регион пользователей.
@@ -8917,7 +8949,7 @@ class zi extends j {
8917
8949
  });
8918
8950
  }
8919
8951
  }
8920
- class Ei {
8952
+ class Qi {
8921
8953
  /**
8922
8954
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
8923
8955
  *
@@ -8941,201 +8973,204 @@ class Ei {
8941
8973
  }
8942
8974
  }
8943
8975
  export {
8944
- Us as AnyReference,
8945
- us as AppBaseConfig,
8976
+ Ms as AnyReference,
8977
+ ps as AppBaseConfig,
8946
8978
  br as BankAccount,
8947
8979
  j as BasePaginationProvider,
8948
- ur as BlogPost,
8980
+ pr as BlogPost,
8949
8981
  Dr as BlogPostMediaFile,
8950
- ze as BlogPostMediaTypeEnum,
8951
- Ee as BlogPostPublicationStatusEnum,
8952
- _e as BlogPostShortInfo,
8953
- ei as BlogPostsListFilters,
8982
+ Ge as BlogPostMediaTypeEnum,
8983
+ Ye as BlogPostPublicationStatusEnum,
8984
+ Ne as BlogPostShortInfo,
8985
+ ti as BlogPostsListFilters,
8954
8986
  Pr as BlogProvider,
8955
- ms as CalculationTypeEnum,
8987
+ ys as CalculationTypeEnum,
8956
8988
  m as CalendarHelper,
8957
- $e as Cart,
8958
- ti as CartProvider,
8959
- ii as CatalogProvider,
8989
+ ke as Cart,
8990
+ ii as CartProvider,
8991
+ oi as CatalogProvider,
8960
8992
  lt as CatalogableItem,
8961
8993
  G as Category,
8962
- Ds as CategoryFilter,
8994
+ Ps as CategoryFilter,
8963
8995
  Yr as CategoryFilterSetting,
8964
- Cs as CategoryFilterValue,
8996
+ Ds as CategoryFilterValue,
8965
8997
  Gr as CategoryPricingRule,
8966
8998
  Pt as ChannelPrimaryInterest,
8967
- Fs as City,
8968
- we as CityWithRegionAndCountry,
8999
+ Hs as City,
9000
+ Ce as CityWithRegionAndCountry,
8969
9001
  Zr as CityWithUserRegion,
8970
9002
  Jr as Client,
8971
9003
  Ts as ClientAdditionalData,
8972
- je as ClientCategory,
9004
+ Qe as ClientCategory,
8973
9005
  H as ClientDataProvider,
8974
9006
  vt as ClientPriceCatalogableItem,
8975
9007
  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,
9008
+ fr as ClientPriceProduct,
9009
+ ci as ClientPriceProvider,
9010
+ li as ClientPriceTemplateProvider,
9011
+ ae as ClientProduct,
9012
+ hi as ClientProductCategoryDataProvider,
9013
+ gi as ClientProductDataProvider,
9014
+ oe as ClientShortInfo,
9015
+ Rs as ClientsAdditionalDataRequestTypeEnum,
9016
+ vi as ClientsListFilters,
9017
+ Ue as CodedIdentity,
9018
+ Di as ConfiguratorProvider,
9019
+ $s as ConfiguratorsEnum,
9020
+ dr as Contact,
8989
9021
  ht as ContactLinks,
8990
9022
  re as ContactPerson,
8991
- ds as ContactPersonRelated,
8992
- Ms as ContactPosition,
8993
- fr as ContactRelation,
9023
+ As as ContactPersonRelated,
9024
+ Bs as ContactPosition,
9025
+ mr as ContactRelation,
8994
9026
  wt as ContragentBase,
8995
- Ge as ContragentFactory,
9027
+ Ve as ContragentFactory,
8996
9028
  Ct as ContragentIc,
8997
- Rs as ContragentPerson,
8998
- bs as ContragentUlNr,
9029
+ bs as ContragentPerson,
9030
+ ds as ContragentUlNr,
8999
9031
  Dt as ContragentUlR,
9000
9032
  Ir as CostSourceEnum,
9001
- ae as Country,
9002
- Ye as CreatableIdentity,
9033
+ ve as Country,
9034
+ Je as CreatableIdentity,
9003
9035
  qr as CuratedDirection,
9004
9036
  Nr as Curator,
9005
9037
  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,
9038
+ zi as DataSuggestionProvider,
9039
+ V as DateHelper,
9040
+ Ti as DateTimeProvider,
9041
+ ws as DeletableIdentity,
9042
+ Xe as DeletableNamedIdentity,
9043
+ xe as DeliveryAddress,
9044
+ J as DeliveryType,
9013
9045
  nt as DetailedJwtPayload,
9014
- ns as DeviceTypeResolutionConfig,
9015
- ps as DiscountShortInfo,
9016
- Ei as FieldValidationResultData,
9046
+ os as DeviceTypeResolutionConfig,
9047
+ hs as DiscountShortInfo,
9048
+ Qi as FieldValidationResultData,
9017
9049
  ee as FilterGroup,
9018
9050
  zr as FilterItem,
9019
9051
  Lr as FilterOpEnum,
9020
- ws as FilterSettings,
9052
+ Cs as FilterSettings,
9021
9053
  ct as GeoCoordinates,
9022
- gs as HiddenCatalogableItem,
9023
- Ne as HttpCachedRequester,
9024
- os as HttpParamsConfig,
9054
+ fs as HiddenCatalogableItem,
9055
+ Fe as HttpCachedRequester,
9056
+ cs as HttpParamsConfig,
9025
9057
  h as HttpRequester,
9026
- Re as Identity,
9027
- fs as Image,
9028
- Pe as JwtPayload,
9029
- J as Manager,
9058
+ be as Identity,
9059
+ ms as Image,
9060
+ Re as JwtPayload,
9061
+ K as Manager,
9030
9062
  _r as ManagerCommon,
9031
- di as ManagerDataFactory,
9032
- dt as ManagerDataProvider,
9033
- zs as MetaTagItem,
9063
+ ki as ManagerDataFactory,
9064
+ Tt as ManagerDataProvider,
9065
+ js as MetaTagItem,
9034
9066
  N as NamedIdentity,
9035
9067
  M as Offer,
9036
- $s as OfferActualization,
9037
- Oe as OfferActualizationStatus,
9038
- $i as OfferHelper,
9068
+ Ls as OfferActualization,
9069
+ Ie as OfferActualizationStatus,
9070
+ Ii as OfferHelper,
9039
9071
  At as OfferShortInfo,
9040
- Si as OffersDataProvider,
9041
- Ai as OffersListFilters,
9042
- $t as Operator,
9072
+ Oi as OffersDataProvider,
9073
+ Li as OffersListFilters,
9074
+ St as Operator,
9043
9075
  te as Opf,
9044
9076
  Y as OpfEnum,
9045
- k as Order,
9046
- Os as OrderAction,
9047
- ki as OrderEditorData,
9048
- St as OrderInfo,
9049
- Ls as OrderItem,
9077
+ L as Order,
9078
+ xs as OrderAction,
9079
+ xi as OrderEditorData,
9080
+ $t as OrderInfo,
9081
+ Is as OrderItem,
9050
9082
  ut as OrderItemBase,
9051
- Hs as OrderPaymentStatus,
9083
+ Ws as OrderPaymentStatus,
9052
9084
  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,
9085
+ er as OrderStatus,
9086
+ zs as OrderStatusDetail,
9087
+ Fs as OrderStatusDetailEnum,
9088
+ Us as OrderStatusEnum,
9089
+ _s as OrderStatusHistoryInfo,
9090
+ qi as OrdersDataProvider,
9091
+ _i as OrdersListFilters,
9092
+ Me as PaginationFiltersBase,
9093
+ De as PartnerGroup,
9062
9094
  kt as PaymentType,
9063
- We as PreferencesStorageProvider,
9064
- mr as PriceAnalyze,
9065
- xi as PriceAnalyzeProvider,
9095
+ je as PreferencesStorageProvider,
9096
+ yr as PriceAnalyze,
9097
+ Ui as PriceAnalyzeProvider,
9066
9098
  ft as PriceCatalogableItem,
9067
- Fe as PriceCoefficient,
9099
+ ie as PriceCoefficient,
9068
9100
  ot as PriceCoefficientEnum,
9069
- _i as PriceHistoryDataProvider,
9070
- xs as PriceHistoryItem,
9071
- ge as PriceTemplate,
9072
- pr as PriceTemplateCategory,
9073
- ke as PriceTemplateClient,
9101
+ Fi as PriceHistoryDataProvider,
9102
+ qs as PriceHistoryItem,
9103
+ fe as PriceTemplate,
9104
+ hr as PriceTemplateCategory,
9105
+ Le as PriceTemplateClient,
9074
9106
  mt as PriceTemplateICatalogableItem,
9075
- hr as PriceTemplateProduct,
9076
- hi as PriceTemplateProvider,
9077
- Le as PricingRole,
9078
- gi as PricingRoleProvider,
9107
+ gr as PriceTemplateProduct,
9108
+ fi as PriceTemplateProvider,
9109
+ Oe as PricingRole,
9110
+ mi as PricingRoleProvider,
9079
9111
  Rr as PrimaryCatalogableItem,
9080
9112
  q as Product,
9081
- ci as ProductCategoryDataProvider,
9082
- li as ProductDataProvider,
9083
- Ws as ProductFileType,
9113
+ ui as ProductCategoryDataProvider,
9114
+ pi as ProductDataProvider,
9115
+ Es as ProductFileType,
9084
9116
  pt as ProductFilterTypeEnum,
9085
9117
  Or as ProductPriceCoefficient,
9086
- _s as ProductPriceHistory,
9118
+ Ns as ProductPriceHistory,
9087
9119
  Er as ProductUnit,
9088
- ks as ProfstroyOfferItem,
9089
- fi as PropertiesProvider,
9090
- fe as Property,
9120
+ Os as ProfstroyOfferItem,
9121
+ yi as PropertiesProvider,
9122
+ me as Property,
9091
9123
  at as PropertyType,
9092
- ys as PropertyTypeEnum,
9093
- pe as PropertyValue,
9094
- qi as RecommendationsDataProvider,
9124
+ as as PropertyTypeEnum,
9125
+ he as PropertyValue,
9126
+ Mi as RecommendationsDataProvider,
9095
9127
  Xr as RecommendationsList,
9096
9128
  w as Reference,
9097
- Ni as ReferenceDataFactory,
9098
- T as ReferenceDataProvider,
9099
- ve as Region,
9129
+ Hi as ReferenceDataFactory,
9130
+ d as ReferenceDataProvider,
9131
+ we as Region,
9100
9132
  Lt as ResourceType,
9101
- Ri as STANDARD_PERIOD_GROUPS,
9102
- bi as STANDARD_PERIOD_SECTIONS,
9133
+ Ai as STANDARD_PERIOD_GROUPS,
9134
+ $i as STANDARD_PERIOD_SECTIONS,
9103
9135
  F as SalesDirection,
9104
- cs as SentryConfig,
9136
+ ls as SentryConfig,
9105
9137
  et as Seo,
9106
- Fi as SeoDataProvider,
9138
+ Wi as SeoDataProvider,
9107
9139
  Rt as SourcePrimaryInterest,
9108
- hs as StockCount,
9109
- Ci as TableDataPagination,
9140
+ gs as StockCount,
9141
+ Pi as TableDataPagination,
9110
9142
  Ss as TableDataPaginationRequestParams,
9111
- Di as TableDataSortRequestParams,
9112
- mi as TemplateProductCategoryDataProvider,
9113
- si as TemplatesListFilters,
9143
+ Ri as TableDataSortRequestParams,
9144
+ ai as TemplateProductCategoryDataProvider,
9145
+ ni as TemplatesListFilters,
9114
9146
  x as TypedInstanceFactory,
9115
- Tt as UnitsHelper,
9116
- ai as UnknownClientDataProvider,
9117
- Qe as UpdatableNamedIdentity,
9118
- Es as User,
9119
- Hi as UserAuthDataProvider,
9147
+ dt as UnitsHelper,
9148
+ wi as UnknownClientDataProvider,
9149
+ Ke as UpdatableNamedIdentity,
9150
+ Gs as User,
9151
+ Ei as UserAuthDataProvider,
9120
9152
  yt as UserCommonInfo,
9121
- js as UserDataProvider,
9153
+ Ys as UserDataProvider,
9122
9154
  gt as UserPricingRole,
9123
- ar as UserRegion,
9155
+ vr as UserRegion,
9124
9156
  Ar as UserRegionEmployee,
9125
- zi as UserRegionProvider,
9126
- Je as UserRegionShortInfo,
9127
- Wi as UserRegionsListFilters,
9157
+ Yi as UserRegionProvider,
9158
+ Ze as UserRegionShortInfo,
9159
+ Gi as UserRegionsListFilters,
9128
9160
  _ as UserShortInfo,
9129
9161
  Ot as UserTypeEnum,
9130
- vi as VersionConfig,
9131
- Me as Warehouse,
9132
- ls as WebSocketConfig,
9133
- Ii as currentOrderInjectionKey,
9162
+ Ci as VersionConfig,
9163
+ He as Warehouse,
9164
+ us as WebSocketConfig,
9165
+ Ni as currentOrderInjectionKey,
9166
+ bi as daysAgoIso,
9134
9167
  Qr as findCatalogItemByIdRecursive,
9135
9168
  Vr as flattenCatalogItems,
9136
- Ti as pluralize,
9137
- lr as useAuthStateStore,
9169
+ Si as formatPercentChange,
9170
+ di as formatRelativeDate,
9171
+ ks as pluralize,
9172
+ ur as useAuthStateStore,
9138
9173
  S as useBaseConfigStateStore,
9139
- Ui as useReferencesStore,
9140
- Bi as useUserStateStore
9174
+ Bi as useReferencesStore,
9175
+ ji as useUserStateStore
9141
9176
  };