@snabcentr/common-lib 2.21.0 → 2.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- var Rt = Object.defineProperty;
2
- var bt = (n, r, e) => r in n ? Rt(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var s = (n, r, e) => bt(n, typeof r != "symbol" ? r + "" : r, e);
4
- import { jwtDecode as zr } from "jwt-decode";
5
- import { merge as Oe, isNil as T, isEmpty as me, noop as w, mapValues as Er, isArray as W, every as Pt, split as Tt, startsWith as At, endsWith as dt, includes as St, isString as D, isFunction as Cr, map as Ce, isObject as Dr, isError as kr, toLower as $t, isDate as pr, isPlainObject as kt, isUndefined as Ue, constant as Lt, toUpper as Ot, cloneDeep as It, forEach as xt, omitBy as Qr } from "lodash-es";
6
- import { objectToCamel as Rr, objectToSnake as Lr } from "ts-case-convert";
7
- import { defineStore as ee } from "pinia";
8
- import { ref as v, markRaw as _t, computed as P } from "vue";
9
- import { isAfter as Or, parseISO as R, startOfToday as hr, format as x, endOfMonth as O, addMonths as $, differenceInCalendarMonths as qt, startOfMonth as N, getDate as Ir, getDaysInMonth as Nt, endOfDay as B, startOfDay as ue, setDate as Ut, startOfWeek as Q, addWeeks as gr, differenceInCalendarDays as Je, addDays as J, addBusinessDays as Ft, startOfYear as ne, endOfYear as Te, endOfWeek as Ae, endOfTomorrow as Ht, startOfTomorrow as Mt, endOfYesterday as Bt, startOfYesterday as Wt, endOfToday as jt, startOfQuarter as de, endOfQuarter as Fe, subDays as Ve, addYears as Ke, addQuarters as Xe, subYears as Ze, subQuarters as er, subMonths as rr, subWeeks as xr, addSeconds as Gt } from "date-fns";
10
- import Yt, { CanceledError as zt } from "axios";
11
- class De {
1
+ var At = Object.defineProperty;
2
+ var dt = (n, r, e) => r in n ? At(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var s = (n, r, e) => dt(n, typeof r != "symbol" ? r + "" : r, e);
4
+ import { jwtDecode as Qr } from "jwt-decode";
5
+ import { merge as Ie, isNil as T, isEmpty as ye, noop as w, mapValues as Jr, isArray as W, every as St, split as $t, startsWith as kt, endsWith as Lt, includes as Ot, isString as C, isFunction as Rr, map as De, isObject as br, isError as Lr, toLower as It, isDate as hr, isPlainObject as xt, isUndefined as Ue, constant as _t, toUpper as qt, cloneDeep as Nt, forEach as Ut, omitBy as Vr } from "lodash-es";
6
+ import { objectToCamel as Pr, objectToSnake as Or } from "ts-case-convert";
7
+ import { defineStore as te } from "pinia";
8
+ import { ref as a, markRaw as Ft, computed as P } from "vue";
9
+ import { isAfter as Ir, parseISO as D, startOfToday as gr, format as L, endOfMonth as x, addMonths as $, differenceInCalendarMonths as Mt, startOfMonth as U, getDate as xr, getDaysInMonth as Ht, endOfDay as B, startOfDay as pe, setDate as Bt, startOfWeek as K, addWeeks as fr, differenceInCalendarDays as Ve, addDays as X, addBusinessDays as Wt, startOfYear as oe, endOfYear as Ae, endOfWeek as de, endOfTomorrow as jt, startOfTomorrow as Gt, endOfYesterday as Yt, startOfYesterday as zt, endOfToday as Et, startOfQuarter as Se, endOfQuarter as Fe, subDays as Ke, addYears as Xe, addQuarters as Ze, subYears as er, subQuarters as rr, subMonths as tr, subWeeks as _r, addSeconds as Qt } from "date-fns";
10
+ import Jt, { CanceledError as Vt } from "axios";
11
+ class Re {
12
12
  /**
13
13
  * Инициализирует экземпляр класса {@link JwtPayload}.
14
14
  *
@@ -99,7 +99,7 @@ class De {
99
99
  * @inheritDoc
100
100
  */
101
101
  s(this, "email", "");
102
- Oe(this, r);
102
+ Ie(this, r);
103
103
  }
104
104
  /**
105
105
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -107,11 +107,11 @@ class De {
107
107
  * @param jwtToken JWT-ключ доступа.
108
108
  */
109
109
  static getJwtPayload(r) {
110
- const e = zr(r), t = new De(Rr(e));
110
+ const e = Qr(r), t = new Re(Pr(e));
111
111
  return t.resourceAccess = e.resource_access, t;
112
112
  }
113
113
  }
114
- class Jr extends De {
114
+ class Kr extends Re {
115
115
  /**
116
116
  * Инициализирует экземпляр класса {@link DetailedJwtPayload}.
117
117
  *
@@ -143,7 +143,7 @@ class Jr extends De {
143
143
  * @inheritDoc
144
144
  */
145
145
  s(this, "address");
146
- Oe(this, e);
146
+ Ie(this, e);
147
147
  }
148
148
  /**
149
149
  * Возвращает данные полезной нагрузки для указанного JWT-токена.
@@ -151,11 +151,11 @@ class Jr extends De {
151
151
  * @param jwtToken JWT-ключ доступа.
152
152
  */
153
153
  static getJwtPayload(e) {
154
- const t = zr(e), i = new Jr(Rr(t));
154
+ const t = Qr(e), i = new Kr(Pr(t));
155
155
  return i.resourceAccess = t.resource_access, i;
156
156
  }
157
157
  }
158
- class Et {
158
+ class Kt {
159
159
  /**
160
160
  * Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
161
161
  *
@@ -177,7 +177,7 @@ class Et {
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 Qt {
180
+ class Xt {
181
181
  /**
182
182
  * Инициализирует экземпляр класса {@link HttpParamsConfig}.
183
183
  *
@@ -199,7 +199,7 @@ class Qt {
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 Jt {
202
+ class Zt {
203
203
  /**
204
204
  * Инициализирует экземпляр класса {@link SentryConfig}.
205
205
  *
@@ -244,7 +244,7 @@ class Jt {
244
244
  }, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
245
245
  }
246
246
  }
247
- class Vt {
247
+ class es {
248
248
  /**
249
249
  * Инициализирует экземпляр класса {@link WebSocketConfig}.
250
250
  *
@@ -283,7 +283,7 @@ class Vt {
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 Kt {
286
+ class rs {
287
287
  /**
288
288
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
289
289
  *
@@ -327,18 +327,18 @@ class Kt {
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 Qt(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Et(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Jt({
330
+ this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Xt(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Kt(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Zt({
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 Vt(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 es(r.websocket) : void 0, this.dateFormats = {
334
334
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
335
335
  uiDate: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
336
336
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
337
337
  };
338
338
  }
339
339
  }
340
- const I = ee("common.config", () => {
341
- const n = v(new Kt());
340
+ const k = te("common.config", () => {
341
+ const n = a(new rs());
342
342
  return {
343
343
  /**
344
344
  * Конфигурационные данные приложения.
@@ -356,11 +356,11 @@ const I = ee("common.config", () => {
356
356
  * @param appConfig Конфигурация приложения.
357
357
  */
358
358
  setConfig: (t) => {
359
- n.value = Oe(n.value, t);
359
+ n.value = Ie(n.value, t);
360
360
  }
361
361
  };
362
362
  });
363
- class He {
363
+ class Me {
364
364
  /**
365
365
  * Возвращает актуальные и не просроченные данные из хранилища.
366
366
  *
@@ -379,8 +379,8 @@ class He {
379
379
  if (e)
380
380
  try {
381
381
  const t = JSON.parse(e);
382
- if (!t.availableFor || Or(R(t.availableFor) || hr(), /* @__PURE__ */ new Date())) {
383
- if (T(t.data) || me(t.data))
382
+ if (!t.availableFor || Ir(D(t.availableFor) || gr(), /* @__PURE__ */ new Date())) {
383
+ if (T(t.data) || ye(t.data))
384
384
  throw new Error("Data is empty");
385
385
  return t.data;
386
386
  }
@@ -403,7 +403,7 @@ class He {
403
403
  static saveActualDataToStorage(r, e, t) {
404
404
  if (this.isLocalStorageAvailable())
405
405
  try {
406
- if (T(e) || me(e))
406
+ if (T(e) || ye(e))
407
407
  throw new Error("Data is empty");
408
408
  const i = JSON.stringify({
409
409
  availableFor: t,
@@ -454,7 +454,7 @@ class He {
454
454
  const i = localStorage.getItem(t);
455
455
  if (i) {
456
456
  const o = JSON.parse(i);
457
- o.availableFor && !Or(R(o.availableFor) || hr(), /* @__PURE__ */ new Date()) && r.push(t);
457
+ o.availableFor && !Ir(D(o.availableFor) || gr(), /* @__PURE__ */ new Date()) && r.push(t);
458
458
  }
459
459
  } catch {
460
460
  r.push(t);
@@ -470,32 +470,32 @@ class He {
470
470
  }
471
471
  }
472
472
  }
473
- function _r(n) {
473
+ function qr(n) {
474
474
  try {
475
- const r = De.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 oe = ee("common.auth_state_private", () => {
482
- const n = v(
481
+ const ce = te("common.auth_state_private", () => {
482
+ const n = a(
483
483
  (() => {
484
484
  var u;
485
- const o = He.getActualDataFromStorage(
485
+ const o = Me.getActualDataFromStorage(
486
486
  "sc.token"
487
487
  /* JwtToken */
488
488
  );
489
489
  if (o)
490
490
  return Promise.resolve(o);
491
- const c = (u = I().config.devMode) == null ? void 0 : u.initAuthBearerToken;
491
+ const c = (u = k().config.devMode) == null ? void 0 : u.initAuthBearerToken;
492
492
  return c ? Promise.resolve(c) : void 0;
493
493
  })()
494
- ), r = v(void 0), e = v(void 0), t = _t(/* @__PURE__ */ new Map());
494
+ ), r = a(void 0), e = a(void 0), t = Ft(/* @__PURE__ */ new Map());
495
495
  function i() {
496
496
  e.value = void 0, T(n.value) || n.value.then((o) => {
497
- const c = De.getJwtPayload(o);
498
- e.value = c.exp * 1e3 > Date.now() ? Er(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
497
+ const c = Re.getJwtPayload(o);
498
+ e.value = c.exp * 1e3 > Date.now() ? Jr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
499
499
  }).catch(w);
500
500
  }
501
501
  return {
@@ -520,47 +520,47 @@ const oe = ee("common.auth_state_private", () => {
520
520
  */
521
521
  recalculateUserPermissions: i
522
522
  };
523
- }), tr = ee("common.auth_state", () => {
523
+ }), sr = te("common.auth_state", () => {
524
524
  const n = P(() => {
525
- const o = oe();
525
+ const o = ce();
526
526
  if (T(o.jwtToken) && !T(o.jwtTokenUpdater)) {
527
527
  const c = o.jwtTokenUpdater();
528
528
  o.jwtToken = c, c.then((u) => {
529
- o.jwtToken = Promise.resolve(u), He.saveActualDataToStorage("sc.token", u, _r(u)), o.recalculateUserPermissions();
529
+ o.jwtToken = Promise.resolve(u), Me.saveActualDataToStorage("sc.token", u, qr(u)), o.recalculateUserPermissions();
530
530
  }).catch(w);
531
531
  }
532
532
  return o.jwtToken;
533
533
  });
534
534
  function r(o) {
535
- oe().jwtTokenUpdater = o;
535
+ ce().jwtTokenUpdater = o;
536
536
  }
537
537
  function e(o) {
538
- const c = oe();
539
- c.jwtToken = Promise.resolve(o), He.saveActualDataToStorage("sc.token", o, _r(o)), c.recalculateUserPermissions();
538
+ const c = ce();
539
+ c.jwtToken = Promise.resolve(o), Me.saveActualDataToStorage("sc.token", o, qr(o)), c.recalculateUserPermissions();
540
540
  }
541
541
  function t() {
542
- const o = oe();
543
- o.jwtToken = void 0, o.userPermissions = void 0, He.saveActualDataToStorage("sc.token", void 0);
542
+ const o = ce();
543
+ o.jwtToken = void 0, o.userPermissions = void 0, Me.saveActualDataToStorage("sc.token", void 0);
544
544
  }
545
545
  function i(o) {
546
- const c = oe();
546
+ const c = ce();
547
547
  !T(c.jwtToken) && T(c.userPermissions) && c.jwtToken.then((g) => {
548
- const y = De.getJwtPayload(g);
549
- c.userPermissions = y.exp * 1e3 > Date.now() ? Er(y.resourceAccess, (C) => (C == null ? void 0 : C.roles) ?? []) : void 0;
548
+ const y = Re.getJwtPayload(g);
549
+ c.userPermissions = y.exp * 1e3 > Date.now() ? Jr(y.resourceAccess, (R) => (R == null ? void 0 : R.roles) ?? []) : void 0;
550
550
  }).catch(w);
551
551
  const u = W(o) ? o.join(" && ") : o;
552
552
  if (c.userPermissionsComputedRefs.has(u))
553
553
  return c.userPermissionsComputedRefs.get(u);
554
554
  const p = P(() => {
555
555
  const g = (y) => {
556
- var ie;
557
- const C = Tt(y, ".");
558
- if (C.length < 2)
556
+ var ne;
557
+ const R = $t(y, ".");
558
+ if (R.length < 2)
559
559
  return !1;
560
- const [be, Pe] = C, se = (ie = oe().userPermissions) == null ? void 0 : ie[be];
561
- return W(se) && se.includes(Pe);
560
+ const [Pe, Te] = R, ie = (ne = ce().userPermissions) == null ? void 0 : ne[Pe];
561
+ return W(ie) && ie.includes(Te);
562
562
  };
563
- return W(o) ? Pt(o, (y) => g(y)) : g(o);
563
+ return W(o) ? St(o, (y) => g(y)) : g(o);
564
564
  });
565
565
  return c.userPermissionsComputedRefs.set(u, p), p;
566
566
  }
@@ -593,7 +593,7 @@ const oe = ee("common.auth_state_private", () => {
593
593
  hasUserPermission: i
594
594
  };
595
595
  });
596
- var Me = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(Me || {});
596
+ var He = /* @__PURE__ */ ((n) => (n.Image = "image", n.Video = "video", n))(He || {});
597
597
  class G {
598
598
  /**
599
599
  * Инициализирует экземпляр класса {@link Identity}.
@@ -619,7 +619,7 @@ class G {
619
619
  return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : T(this.id);
620
620
  }
621
621
  }
622
- class fr extends G {
622
+ class mr extends G {
623
623
  /**
624
624
  * Инициализирует экземпляр класса {@link BlogPostMediaFile}.
625
625
  *
@@ -647,23 +647,23 @@ class fr extends G {
647
647
  * @inheritDoc
648
648
  */
649
649
  s(this, "urlWebp");
650
- this.mediaType = (e == null ? void 0 : e.mediaType) ?? Me.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) ?? He.Image, this.isCover = (e == null ? void 0 : e.isCover) ?? !1, this.isUnused = (e == null ? void 0 : e.isUnused) ?? !1, this.url = (e == null ? void 0 : e.url) ?? "", this.urlWebp = e == null ? void 0 : e.urlWebp;
651
651
  }
652
652
  /**
653
653
  * Возвращает признак того, что медиафайл является изображением.
654
654
  */
655
655
  isImage() {
656
- return this.mediaType === Me.Image;
656
+ return this.mediaType === He.Image;
657
657
  }
658
658
  /**
659
659
  * Возвращает признак того, что медиафайл является видео.
660
660
  */
661
661
  isVideo() {
662
- return this.mediaType === Me.Video;
662
+ return this.mediaType === He.Video;
663
663
  }
664
664
  }
665
665
  var Be = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(Be || {});
666
- class fe extends G {
666
+ class me extends G {
667
667
  /**
668
668
  * Инициализирует экземпляр класса {@link BlogPostShortInfo}.
669
669
  *
@@ -687,7 +687,7 @@ class fe extends G {
687
687
  * @inheritDoc
688
688
  */
689
689
  s(this, "createdAt");
690
- this.slug = (e == null ? void 0 : e.slug) ?? "", this.title = (e == null ? void 0 : e.title) ?? "", this.publishedAt = fe.parseDate(e == null ? void 0 : e.publishedAt), this.createdAt = fe.parseDate(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
690
+ this.slug = (e == null ? void 0 : e.slug) ?? "", this.title = (e == null ? void 0 : e.title) ?? "", this.publishedAt = me.parseDate(e == null ? void 0 : e.publishedAt), this.createdAt = me.parseDate(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
691
691
  }
692
692
  /**
693
693
  * Возвращает состояние публикации статьи по дате её публикации.
@@ -707,7 +707,7 @@ class fe extends G {
707
707
  * @param slug Символьное обозначение статьи.
708
708
  */
709
709
  static getSlugError(e) {
710
- return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : At(e, "-") || dt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : St(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
710
+ return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : kt(e, "-") || Lt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Ot(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
711
711
  }
712
712
  /**
713
713
  * Преобразует значение даты, полученное из API, в объект {@link Date}.
@@ -715,16 +715,16 @@ class fe extends G {
715
715
  * @param value Значение даты.
716
716
  */
717
717
  static parseDate(e) {
718
- return T(e) ? null : D(e) ? R(e) : e;
718
+ return T(e) ? null : C(e) ? D(e) : e;
719
719
  }
720
720
  /**
721
721
  * Возвращает состояние публикации статьи.
722
722
  */
723
723
  getPublicationStatus() {
724
- return fe.resolvePublicationStatus(this.publishedAt);
724
+ return me.resolvePublicationStatus(this.publishedAt);
725
725
  }
726
726
  }
727
- class sr extends fe {
727
+ class ir extends me {
728
728
  /**
729
729
  * Инициализирует экземпляр класса {@link BlogPost}.
730
730
  *
@@ -740,7 +740,7 @@ class sr extends fe {
740
740
  * @inheritDoc
741
741
  */
742
742
  s(this, "media");
743
- this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new fr(t));
743
+ this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new mr(t));
744
744
  }
745
745
  /**
746
746
  * Возвращает данные статьи для отправки на портал.
@@ -771,7 +771,7 @@ class sr extends fe {
771
771
  return this.media.filter((e) => e.isUnused);
772
772
  }
773
773
  }
774
- class _e {
774
+ class qe {
775
775
  /**
776
776
  * Возвращает очищенное значение фильтров, содержащие
777
777
  * только актуальные данные.
@@ -781,7 +781,7 @@ class _e {
781
781
  return Object.keys(this).forEach((e) => {
782
782
  const t = this[e];
783
783
  T(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
784
- D(t) && t.trim().length === 0 || Cr(t.isNewRec) && t.isNewRec() || (r[e] = t);
784
+ C(t) && t.trim().length === 0 || Rr(t.isNewRec) && t.isNewRec() || (r[e] = t);
785
785
  }), r;
786
786
  }
787
787
  }
@@ -800,10 +800,10 @@ class A {
800
800
  * Окончание периода.
801
801
  */
802
802
  s(this, "to");
803
- this.from = D(r == null ? void 0 : r.from) ? R(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = D(r == null ? void 0 : r.to) ? R(r.to) : (r == null ? void 0 : r.to) ?? null;
803
+ this.from = C(r == null ? void 0 : r.from) ? D(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? D(r.to) : (r == null ? void 0 : r.to) ?? null;
804
804
  }
805
805
  }
806
- class Ws extends _e {
806
+ class js extends qe {
807
807
  /**
808
808
  * Инициализирует экземпляр класса {@link BlogPostsListFilters}.
809
809
  *
@@ -907,7 +907,7 @@ class _ {
907
907
  static instanceListInitializer(r, e) {
908
908
  if (!W(e))
909
909
  throw new TypeError(`Ожидался список данных для инициализации "${r.name}", получены данные типа "${typeof e}".`);
910
- return Ce(e, (t) => _.instanceInitializer(r, t));
910
+ return De(e, (t) => _.instanceInitializer(r, t));
911
911
  }
912
912
  }
913
913
  const b = class b {
@@ -922,7 +922,7 @@ const b = class b {
922
922
  /**
923
923
  * Базовый URL путь для выполнения запросов.
924
924
  */
925
- s(this, "baseUrl", `${I().config.http.portalApiUrl}/api`);
925
+ s(this, "baseUrl", `${k().config.http.portalApiUrl}/api`);
926
926
  /**
927
927
  * Обработчик ошибок выполнения запросов текущего экземпляра класса.
928
928
  *
@@ -949,7 +949,7 @@ const b = class b {
949
949
  // eslint-disable-next-line class-methods-use-this
950
950
  s(this, "authRequestInterceptor", async (r) => {
951
951
  let e;
952
- return T(tr().jwtToken) || (e = await tr().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
952
+ return T(sr().jwtToken) || (e = await sr().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
953
953
  });
954
954
  /**
955
955
  * Перехватчик запроса для вызова пользовательских хуков.
@@ -964,7 +964,7 @@ const b = class b {
964
964
  * @param request Данные запроса.
965
965
  */
966
966
  // eslint-disable-next-line class-methods-use-this
967
- s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Lr(r.params)), ["put", "patch", "post"].includes($t(r.method)) && r.data && (r.data = Lr(r.data))), r));
967
+ s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Or(r.params)), ["put", "patch", "post"].includes(It(r.method)) && r.data && (r.data = Or(r.data))), r));
968
968
  /**
969
969
  * Перехватчик ошибок ответов на запрос.
970
970
  *
@@ -973,7 +973,7 @@ const b = class b {
973
973
  s(this, "authErrorsResponseInterceptors", (r) => {
974
974
  var t;
975
975
  const e = r.rawError ? (t = r.rawError) == null ? void 0 : t.config : void 0;
976
- return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (tr().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
976
+ return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (sr().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
977
977
  });
978
978
  /**
979
979
  * Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
@@ -984,7 +984,7 @@ const b = class b {
984
984
  s(this, "canceledResponseInterceptor", (r) => {
985
985
  const e = r.rawError ?? r;
986
986
  if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
987
- throw new zt("Request canceled");
987
+ throw new Vt("Request canceled");
988
988
  return Promise.reject(r);
989
989
  });
990
990
  /**
@@ -1000,8 +1000,8 @@ const b = class b {
1000
1000
  * @param response Данные ответа на запрос.
1001
1001
  */
1002
1002
  // eslint-disable-next-line class-methods-use-this
1003
- s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Rr(r.data)), r));
1004
- this.errorResponseHandler = b.defaultErrorsResponseHandler, this.httpClient = Yt.create({
1003
+ s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Pr(r.data)), r));
1004
+ this.errorResponseHandler = b.defaultErrorsResponseHandler, this.httpClient = Jt.create({
1005
1005
  headers: {
1006
1006
  Accept: "application/json",
1007
1007
  "Content-Type": "application/json"
@@ -1076,12 +1076,12 @@ const b = class b {
1076
1076
  * @param error Данные об ошибке.
1077
1077
  */
1078
1078
  static toHttpResponseError(r) {
1079
- return Dr(r) && "status" in r ? r : {
1079
+ return br(r) && "status" in r ? r : {
1080
1080
  status: 0,
1081
1081
  statusText: "Invalid response data",
1082
- message: kr(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1082
+ message: Lr(r) ? r.message : "Не удалось обработать данные ответа сервера.",
1083
1083
  headers: {},
1084
- rawError: kr(r) ? r : new Error(String(r))
1084
+ rawError: Lr(r) ? r : new Error(String(r))
1085
1085
  };
1086
1086
  }
1087
1087
  /**
@@ -1215,8 +1215,8 @@ s(b, "requestHooks", []), /**
1215
1215
  */
1216
1216
  s(b, "responseHooks", []);
1217
1217
  let h = b;
1218
- var br = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(br || {});
1219
- class qr {
1218
+ var Tr = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Tr || {});
1219
+ class Nr {
1220
1220
  /**
1221
1221
  * Инициализирует экземпляр класса {@link FilterItem}.
1222
1222
  *
@@ -1235,7 +1235,7 @@ class qr {
1235
1235
  * Значение с которым сравнивается поле.
1236
1236
  */
1237
1237
  s(this, "value");
1238
- this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? br.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
1238
+ this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Tr.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
1239
1239
  }
1240
1240
  /**
1241
1241
  * Преобразует фильтр в примитивное представление для API.
@@ -1243,24 +1243,24 @@ class qr {
1243
1243
  * @returns Примитивное представление фильтра.
1244
1244
  */
1245
1245
  toPrimitive() {
1246
- const r = I().config.dateFormats.api, e = {
1246
+ const r = k().config.dateFormats.api, e = {
1247
1247
  field: this.field,
1248
1248
  op: this.op
1249
1249
  };
1250
- if (pr(this.value))
1251
- e.value = x(this.value, r);
1252
- else if (kt(this.value)) {
1250
+ if (hr(this.value))
1251
+ e.value = L(this.value, r);
1252
+ else if (xt(this.value)) {
1253
1253
  const t = this.value;
1254
1254
  e.value = {
1255
- from: t.from ? x(t.from, r) : null,
1256
- to: t.to ? x(t.to, r) : null
1255
+ from: t.from ? L(t.from, r) : null,
1256
+ to: t.to ? L(t.to, r) : null
1257
1257
  };
1258
1258
  } else
1259
1259
  e.value = this.value;
1260
1260
  return e;
1261
1261
  }
1262
1262
  }
1263
- class V {
1263
+ class Z {
1264
1264
  /**
1265
1265
  * Инициализирует экземпляр класса {@link FilterGroup}.
1266
1266
  *
@@ -1280,7 +1280,7 @@ class V {
1280
1280
  */
1281
1281
  s(this, "groups");
1282
1282
  var e, t;
1283
- this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new qr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new V(i))) ?? [];
1283
+ this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Nr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new Z(i))) ?? [];
1284
1284
  }
1285
1285
  /**
1286
1286
  * Преобразует группу фильтров в примитивное представление для API.
@@ -1290,12 +1290,12 @@ class V {
1290
1290
  toPrimitive() {
1291
1291
  return {
1292
1292
  groupOp: this.groupOp,
1293
- filters: this.filters.map((r) => r instanceof qr && Cr(r.toPrimitive) ? r.toPrimitive() : r),
1294
- groups: this.groups.map((r) => r instanceof V ? r.toPrimitive() : r)
1293
+ filters: this.filters.map((r) => r instanceof Nr && Rr(r.toPrimitive) ? r.toPrimitive() : r),
1294
+ groups: this.groups.map((r) => r instanceof Z ? r.toPrimitive() : r)
1295
1295
  };
1296
1296
  }
1297
1297
  }
1298
- class re extends h {
1298
+ class Y extends h {
1299
1299
  /**
1300
1300
  * Получает пагинированный список данных.
1301
1301
  *
@@ -1313,7 +1313,7 @@ class re extends h {
1313
1313
  page: (i == null ? void 0 : i.page) ?? 1,
1314
1314
  perPage: (i == null ? void 0 : i.pageSize) ?? 10
1315
1315
  };
1316
- return e && (g.filters = JSON.stringify((e instanceof V ? e : new V(e)).toPrimitive())), me(t) || (g.sort = W(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1316
+ return e && (g.filters = JSON.stringify((e instanceof Z ? e : new Z(e)).toPrimitive())), ye(t) || (g.sort = W(t) ? t : [t]), o && (g = { ...g, ...o }), this.get(r, g, c, u, p);
1317
1317
  }
1318
1318
  /**
1319
1319
  * Получает пагинированный список экземпляров указанного класса.
@@ -1343,7 +1343,7 @@ class re extends h {
1343
1343
  );
1344
1344
  }
1345
1345
  }
1346
- class mr extends re {
1346
+ class yr extends Y {
1347
1347
  /**
1348
1348
  * Возвращает данные статьи блога, подготовленные для отправки на портал.
1349
1349
  *
@@ -1355,8 +1355,8 @@ class mr extends re {
1355
1355
  static preparePostSaveData(r) {
1356
1356
  const e = {};
1357
1357
  if (Ue(r.title) || (e.title = r.title), Ue(r.slug) || (e.slug = r.slug), Ue(r.content) || (e.content = r.content), !Ue(r.publishedAt)) {
1358
- const t = I().config.dateFormats.api;
1359
- e.publishedAt = T(r.publishedAt) ? null : x(r.publishedAt, t);
1358
+ const t = k().config.dateFormats.api;
1359
+ e.publishedAt = T(r.publishedAt) ? null : L(r.publishedAt, t);
1360
1360
  }
1361
1361
  return e;
1362
1362
  }
@@ -1376,7 +1376,7 @@ class mr extends re {
1376
1376
  return this.getPaginated("/internal/blog", r, e, t, {}, (i) => ({
1377
1377
  ...i.data,
1378
1378
  // eslint-disable-next-line lodash/prefer-lodash-method
1379
- data: i.data.data.map((o) => new fe(o))
1379
+ data: i.data.data.map((o) => new me(o))
1380
1380
  }));
1381
1381
  }
1382
1382
  /**
@@ -1387,7 +1387,7 @@ class mr extends re {
1387
1387
  * @see /doc/api/internal#/operations/api_internal_blog_get
1388
1388
  */
1389
1389
  getPost(r) {
1390
- return this.get(`/internal/blog/${r}`, {}, (e) => new sr(e.data));
1390
+ return this.get(`/internal/blog/${r}`, {}, (e) => new ir(e.data));
1391
1391
  }
1392
1392
  /**
1393
1393
  * Создаёт новую статью блога.
@@ -1400,7 +1400,7 @@ class mr extends re {
1400
1400
  * @see /doc/api/internal#/operations/api_internal_blog_create
1401
1401
  */
1402
1402
  createPost(r, e = {}) {
1403
- return this.post("/internal/blog", mr.preparePostSaveData(r), (t) => new sr(t.data), e);
1403
+ return this.post("/internal/blog", yr.preparePostSaveData(r), (t) => new ir(t.data), e);
1404
1404
  }
1405
1405
  /**
1406
1406
  * Изменяет данные о статье блога.
@@ -1414,7 +1414,7 @@ class mr extends re {
1414
1414
  * @see /doc/api/internal#/operations/api_internal_blog_update
1415
1415
  */
1416
1416
  updatePost(r, e, t = {}) {
1417
- return this.patch(`/internal/blog/${r}`, mr.preparePostSaveData(e), (i) => new sr(i.data), t);
1417
+ return this.patch(`/internal/blog/${r}`, yr.preparePostSaveData(e), (i) => new ir(i.data), t);
1418
1418
  }
1419
1419
  /**
1420
1420
  * Удаляет статью блога.
@@ -1449,7 +1449,7 @@ class mr extends re {
1449
1449
  i && i(c.total ? Math.round(c.loaded / c.total * 100) : 0);
1450
1450
  }
1451
1451
  },
1452
- (c) => new fr(c.data),
1452
+ (c) => new mr(c.data),
1453
1453
  o
1454
1454
  );
1455
1455
  }
@@ -1469,7 +1469,7 @@ class mr extends re {
1469
1469
  return this.patch(
1470
1470
  `/internal/blog/${r}/media/${e}`,
1471
1471
  { isCover: t },
1472
- (o) => new fr(o.data),
1472
+ (o) => new mr(o.data),
1473
1473
  i
1474
1474
  );
1475
1475
  }
@@ -1487,7 +1487,7 @@ class mr extends re {
1487
1487
  return this.delete(`/internal/blog/${r}/media/${e}`);
1488
1488
  }
1489
1489
  }
1490
- class k extends G {
1490
+ class O extends G {
1491
1491
  /**
1492
1492
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1493
1493
  *
@@ -1502,7 +1502,7 @@ class k extends G {
1502
1502
  this.name = (e == null ? void 0 : e.name) ?? "";
1503
1503
  }
1504
1504
  }
1505
- class q extends k {
1505
+ class q extends O {
1506
1506
  /**
1507
1507
  * Инициализирует экземпляр класса {@link UserShortInfo}.
1508
1508
  *
@@ -1521,7 +1521,7 @@ class q extends k {
1521
1521
  this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
1522
1522
  }
1523
1523
  }
1524
- class Xt extends k {
1524
+ class ts extends O {
1525
1525
  /**
1526
1526
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
1527
1527
  *
@@ -1557,10 +1557,10 @@ class Xt extends k {
1557
1557
  * Дата и время удаления.
1558
1558
  */
1559
1559
  s(this, "deletedAt");
1560
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = D(e == null ? void 0 : e.publishedAt) ? R(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new q(e == null ? void 0 : e.owner), this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1560
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? D(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new q(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt;
1561
1561
  }
1562
1562
  }
1563
- class Vr extends k {
1563
+ class Xr extends O {
1564
1564
  /**
1565
1565
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
1566
1566
  *
@@ -1572,10 +1572,10 @@ class Vr extends k {
1572
1572
  * Дата и время последнего изменения.
1573
1573
  */
1574
1574
  s(this, "updatedAt");
1575
- this.updatedAt = D(e == null ? void 0 : e.updatedAt) ? R(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1575
+ this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? D(e.updatedAt) : e == null ? void 0 : e.updatedAt;
1576
1576
  }
1577
1577
  }
1578
- class pe extends Vr {
1578
+ class he extends Xr {
1579
1579
  /**
1580
1580
  * Инициализирует экземпляр класса {@link PriceTemplate}.
1581
1581
  *
@@ -1595,11 +1595,11 @@ class pe extends Vr {
1595
1595
  * Данные о пользователе, создавшем шаблон прайс-листа.
1596
1596
  */
1597
1597
  s(this, "owner");
1598
- this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1598
+ this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.owner = e != null && e.owner ? new q(e.owner) : void 0;
1599
1599
  }
1600
1600
  }
1601
- var Kr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Kr || {});
1602
- class a extends k {
1601
+ var Zr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Zr || {});
1602
+ class v extends O {
1603
1603
  /**
1604
1604
  * Инициализирует экземпляр класса {@link Reference}.
1605
1605
  *
@@ -1618,15 +1618,15 @@ class a extends k {
1618
1618
  this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
1619
1619
  }
1620
1620
  }
1621
- class Ge extends a {
1621
+ class Ge extends v {
1622
1622
  /**
1623
1623
  * Возвращает значение справочника коэффициента розничной цены.
1624
1624
  */
1625
1625
  static getRetailPriceCoefficient() {
1626
- return { id: -2, slug: Kr.Retail, name: "Розн. цена", guid: "", isNewRec: Lt(!0) };
1626
+ return { id: -2, slug: Zr.Retail, name: "Розн. цена", guid: "", isNewRec: _t(!0) };
1627
1627
  }
1628
1628
  }
1629
- class Pr {
1629
+ class Ar {
1630
1630
  /**
1631
1631
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
1632
1632
  *
@@ -1656,7 +1656,7 @@ class Pr {
1656
1656
  this.coefficient = new Ge(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
1657
1657
  }
1658
1658
  }
1659
- class Xr {
1659
+ class et {
1660
1660
  /**
1661
1661
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
1662
1662
  *
@@ -1674,9 +1674,9 @@ class Xr {
1674
1674
  this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
1675
1675
  }
1676
1676
  }
1677
- class E extends a {
1677
+ class Q extends v {
1678
1678
  }
1679
- class qe extends a {
1679
+ class Ne extends v {
1680
1680
  /**
1681
1681
  * Инициализирует экземпляр класса {@link Warehouse}.
1682
1682
  *
@@ -1705,10 +1705,10 @@ class qe extends a {
1705
1705
  * Координаты склада.
1706
1706
  */
1707
1707
  s(this, "coordinates");
1708
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new E(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Xr(e == null ? void 0 : e.coordinates);
1708
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new Q(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new et(e == null ? void 0 : e.coordinates);
1709
1709
  }
1710
1710
  }
1711
- class Zt {
1711
+ class ss {
1712
1712
  /**
1713
1713
  * Инициализирует экземпляр класса {@link StockCount}.
1714
1714
  *
@@ -1723,10 +1723,10 @@ class Zt {
1723
1723
  * Количество остатков товара на складе.
1724
1724
  */
1725
1725
  s(this, "count");
1726
- this.warehouse = new qe(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1726
+ this.warehouse = new Ne(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
1727
1727
  }
1728
1728
  }
1729
- class j extends k {
1729
+ class j extends O {
1730
1730
  /**
1731
1731
  * Инициализирует экземпляр класса {@link Currency}.
1732
1732
  *
@@ -1753,7 +1753,7 @@ class j extends k {
1753
1753
  e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
1754
1754
  }
1755
1755
  }
1756
- class Nr extends k {
1756
+ class Ur extends O {
1757
1757
  /**
1758
1758
  * Инициализирует экземпляр класса {@link ProductUnit}.
1759
1759
  *
@@ -1780,7 +1780,7 @@ class Nr extends k {
1780
1780
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1781
1781
  }
1782
1782
  }
1783
- class Ie extends k {
1783
+ class xe extends O {
1784
1784
  /**
1785
1785
  * Инициализирует экземпляр класса {@link NamedIdentity}.
1786
1786
  *
@@ -1795,7 +1795,7 @@ class Ie extends k {
1795
1795
  this.code = (e == null ? void 0 : e.code) ?? "";
1796
1796
  }
1797
1797
  }
1798
- class Zr extends Ie {
1798
+ class rt extends xe {
1799
1799
  /**
1800
1800
  * Инициализирует экземпляр класса {@link CatalogableItem}.
1801
1801
  *
@@ -1814,7 +1814,7 @@ class Zr extends Ie {
1814
1814
  this.slug = (e == null ? void 0 : e.slug) ?? "";
1815
1815
  }
1816
1816
  }
1817
- class es extends Zr {
1817
+ class is extends rt {
1818
1818
  /**
1819
1819
  * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
1820
1820
  *
@@ -1829,7 +1829,7 @@ class es extends Zr {
1829
1829
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
1830
1830
  }
1831
1831
  }
1832
- class rs {
1832
+ class ns {
1833
1833
  /**
1834
1834
  * Инициализирует экземпляр класса {@link Image}.
1835
1835
  *
@@ -1852,7 +1852,7 @@ class rs {
1852
1852
  this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
1853
1853
  }
1854
1854
  }
1855
- class yr extends Zr {
1855
+ class ar extends rt {
1856
1856
  /**
1857
1857
  * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
1858
1858
  *
@@ -1867,7 +1867,7 @@ class yr extends Zr {
1867
1867
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
1868
1868
  }
1869
1869
  }
1870
- class U extends es {
1870
+ class N extends is {
1871
1871
  /**
1872
1872
  * Инициализирует экземпляр класса {@link Product}.
1873
1873
  *
@@ -1944,9 +1944,9 @@ class U extends es {
1944
1944
  * Список коэффициентов цен на продукт.
1945
1945
  */
1946
1946
  s(this, "priceCoefficients");
1947
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Nr(e.unit) : new Nr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new j(e.currency) : new j(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = D(e == null ? void 0 : e.costDate) ? R(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new Zt(p))) ?? [], this.type = "product";
1947
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ur(e.unit) : new Ur(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new j(e.currency) : new j(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? D(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new ss(p))) ?? [], this.type = "product";
1948
1948
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
1949
- t && (this.category = new yr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new yr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new rs(p, I().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 Pr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1949
+ t && (this.category = new ar({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new ar(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new ns(p, k().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Ar(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1950
1950
  }
1951
1951
  /**
1952
1952
  * Возвращает признак, что это измеряемый товар.
@@ -1967,8 +1967,8 @@ class U extends es {
1967
1967
  return this.retailCostRub ?? this.costRub;
1968
1968
  }
1969
1969
  }
1970
- var Tr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Tr || {});
1971
- class K extends U {
1970
+ var dr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(dr || {});
1971
+ class J extends N {
1972
1972
  /**
1973
1973
  * Инициализирует экземпляр класса {@link ClientProduct}.
1974
1974
  *
@@ -2004,10 +2004,10 @@ class K extends U {
2004
2004
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
2005
2005
  */
2006
2006
  s(this, "isFavorite");
2007
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Tr.Product, this.discount = e != null && e.discount ? new Xt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new pe(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2007
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? dr.Product, this.discount = e != null && e.discount ? new ts(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new he(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
2008
2008
  }
2009
2009
  }
2010
- class Re extends yr {
2010
+ class be extends ar {
2011
2011
  /**
2012
2012
  * Инициализирует экземпляр класса {@link BaseCategory}.
2013
2013
  *
@@ -2031,10 +2031,10 @@ class Re extends yr {
2031
2031
  * Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
2032
2032
  */
2033
2033
  s(this, "currencyRates");
2034
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([t, i]) => [Ot(t), i])) : void 0;
2034
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([t, i]) => [qt(t), i])) : void 0;
2035
2035
  }
2036
2036
  }
2037
- class et extends G {
2037
+ class tt extends G {
2038
2038
  /**
2039
2039
  * Инициализирует экземпляр класса {@link OrderItemBase}.
2040
2040
  *
@@ -2110,10 +2110,10 @@ class et extends G {
2110
2110
  * @inheritDoc
2111
2111
  */
2112
2112
  s(this, "replacementId");
2113
- this.product = new K(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new Re(), this.currency = e.currency ? new j(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && It(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new q(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2113
+ this.product = new J(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new be(), this.currency = e.currency ? new j(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Nt(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new q(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
2114
2114
  }
2115
2115
  }
2116
- let rt = class extends et {
2116
+ let st = class extends tt {
2117
2117
  /**
2118
2118
  * Инициализирует экземпляр класса {@link OrderItem}.
2119
2119
  *
@@ -2160,7 +2160,7 @@ let rt = class extends et {
2160
2160
  this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new j(e.currency);
2161
2161
  }
2162
2162
  };
2163
- class Se {
2163
+ class $e {
2164
2164
  /**
2165
2165
  * Инициализирует экземпляр класса {@link Cart}.
2166
2166
  *
@@ -2179,10 +2179,10 @@ class Se {
2179
2179
  * @inheritDoc
2180
2180
  */
2181
2181
  s(this, "directionsSum");
2182
- this.items = r.items.map((e) => new rt(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2182
+ this.items = r.items.map((e) => new st(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
2183
2183
  }
2184
2184
  }
2185
- class Gs extends h {
2185
+ class Ys extends h {
2186
2186
  /**
2187
2187
  * Возвращает содержимое корзины указанного клиента.
2188
2188
  *
@@ -2191,7 +2191,7 @@ class Gs extends h {
2191
2191
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_get
2192
2192
  */
2193
2193
  getCart(r) {
2194
- return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new Se(e.data));
2194
+ return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new $e(e.data));
2195
2195
  }
2196
2196
  /**
2197
2197
  * Удаляет всё содержимое корзины.
@@ -2229,7 +2229,7 @@ class Gs extends h {
2229
2229
  is_additional_sale: e.isAdditionalSale,
2230
2230
  ...e.configuratorParams
2231
2231
  },
2232
- (i) => new Se(i.data),
2232
+ (i) => new $e(i.data),
2233
2233
  t
2234
2234
  );
2235
2235
  }
@@ -2259,7 +2259,7 @@ class Gs extends h {
2259
2259
  is_additional_sale: e.isAdditionalSale,
2260
2260
  ...e.configuratorParams
2261
2261
  },
2262
- (i) => new Se(i.data),
2262
+ (i) => new $e(i.data),
2263
2263
  t
2264
2264
  );
2265
2265
  }
@@ -2272,7 +2272,7 @@ class Gs extends h {
2272
2272
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_delete_item
2273
2273
  */
2274
2274
  deleteCartItem(r, e) {
2275
- return this.delete(`internal/clients/${r.id}/cart/${e.id}`, (t) => new Se(t.data));
2275
+ return this.delete(`internal/clients/${r.id}/cart/${e.id}`, (t) => new $e(t.data));
2276
2276
  }
2277
2277
  /**
2278
2278
  * Добавляет продукты в корзину из файла CSV.
@@ -2283,7 +2283,7 @@ class Gs extends h {
2283
2283
  * @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
2284
2284
  */
2285
2285
  addCartItemFromCSV(r, e) {
2286
- return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (t) => new Se(t.data));
2286
+ return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (t) => new $e(t.data));
2287
2287
  }
2288
2288
  /**
2289
2289
  * Возвращает пример CSV файла для добавления продуктов в корзину.
@@ -2296,8 +2296,8 @@ class Gs extends h {
2296
2296
  return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
2297
2297
  }
2298
2298
  }
2299
- var ts = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ts || {}), ss = /* @__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))(ss || {}), tt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(tt || {});
2300
- class Y extends Re {
2299
+ var os = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(os || {}), cs = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(cs || {}), it = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(it || {});
2300
+ class z extends be {
2301
2301
  /**
2302
2302
  * Инициализирует экземпляр класса {@link Category}.
2303
2303
  *
@@ -2314,10 +2314,10 @@ class Y extends Re {
2314
2314
  * Список продуктов категории.
2315
2315
  */
2316
2316
  s(this, "products");
2317
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Y(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new U(o));
2317
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new N(o));
2318
2318
  }
2319
2319
  }
2320
- class st {
2320
+ class nt {
2321
2321
  /**
2322
2322
  * Инициализирует экземпляр класса {@link ContactLinks}.
2323
2323
  *
@@ -2335,9 +2335,9 @@ class st {
2335
2335
  this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
2336
2336
  }
2337
2337
  }
2338
- class F extends a {
2338
+ class F extends v {
2339
2339
  }
2340
- class Ar extends k {
2340
+ class Sr extends O {
2341
2341
  /**
2342
2342
  * Инициализирует экземпляр класса {@link ManagerCommon}.
2343
2343
  *
@@ -2365,12 +2365,12 @@ class Ar extends k {
2365
2365
  * @inheritDoc
2366
2366
  */
2367
2367
  s(this, "isRegionalDirector");
2368
- this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : new F(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new st(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2368
+ this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : new F(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new nt(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
2369
2369
  }
2370
2370
  }
2371
- class dr extends a {
2371
+ class $r extends v {
2372
2372
  }
2373
- class it extends k {
2373
+ class ot extends O {
2374
2374
  /**
2375
2375
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
2376
2376
  *
@@ -2393,14 +2393,29 @@ class it extends k {
2393
2393
  this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
2394
2394
  }
2395
2395
  }
2396
- class Ne extends Ar {
2396
+ class Ye extends O {
2397
+ /**
2398
+ * Инициализирует экземпляр класса {@link UserRegionShortInfo}.
2399
+ *
2400
+ * @param data Данные для первоначальной инициализации.
2401
+ */
2402
+ constructor(e) {
2403
+ super(e);
2404
+ /**
2405
+ * @inheritDoc
2406
+ */
2407
+ s(this, "abbr");
2408
+ this.abbr = (e == null ? void 0 : e.abbr) ?? "";
2409
+ }
2410
+ }
2411
+ class V extends Sr {
2397
2412
  /**
2398
2413
  * Инициализирует экземпляр класса {@link Manager}.
2399
2414
  *
2400
2415
  * @param data Данные для первоначальной инициализации.
2401
2416
  */
2402
2417
  constructor(e) {
2403
- var t;
2418
+ var t, i, o;
2404
2419
  super(e);
2405
2420
  /**
2406
2421
  * Признак активности учетной записи менеджера.
@@ -2430,10 +2445,30 @@ class Ne extends Ar {
2430
2445
  * Список направлений кураторства.
2431
2446
  */
2432
2447
  s(this, "curatedDirections");
2433
- this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new it(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((i) => new dr(i))) ?? [];
2448
+ /**
2449
+ * Признак того, что менеджер должен видеть все цены.
2450
+ */
2451
+ s(this, "showAllCosts");
2452
+ /**
2453
+ * Признак того, что менеджер может входить как оператор.
2454
+ */
2455
+ s(this, "authAsOperator");
2456
+ /**
2457
+ * Список регионов, за которые отвечает менеджер.
2458
+ */
2459
+ s(this, "managerRegions");
2460
+ /**
2461
+ * Список подчинённых менеджеров.
2462
+ */
2463
+ s(this, "managers");
2464
+ /**
2465
+ * Дата и время последнего входа в систему.
2466
+ */
2467
+ s(this, "lastLoginAt");
2468
+ this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new ot(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new $r(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (i = e == null ? void 0 : e.managerRegions) == null ? void 0 : i.map((c) => new Ye(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new V(c)), this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? D(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
2434
2469
  }
2435
2470
  }
2436
- class is extends Re {
2471
+ class ls extends be {
2437
2472
  /**
2438
2473
  * Инициализирует экземпляр класса {@link BaseClientCategory}.
2439
2474
  *
@@ -2461,10 +2496,10 @@ class is extends Re {
2461
2496
  * Данные о менеджере за которым закреплена категория.
2462
2497
  */
2463
2498
  s(this, "manager");
2464
- 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 Ne(e.manager) : void 0;
2499
+ this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new V(e.manager) : void 0;
2465
2500
  }
2466
2501
  }
2467
- class We extends is {
2502
+ class We extends ls {
2468
2503
  /**
2469
2504
  * Инициализирует экземпляр класса {@link ClientCategory}.
2470
2505
  *
@@ -2481,10 +2516,10 @@ class We extends is {
2481
2516
  * Список продуктов категории.
2482
2517
  */
2483
2518
  s(this, "products");
2484
- this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new We(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
2519
+ this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new We(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
2485
2520
  }
2486
2521
  }
2487
- class nt {
2522
+ class ct {
2488
2523
  /**
2489
2524
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
2490
2525
  *
@@ -2502,7 +2537,7 @@ class nt {
2502
2537
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Ge(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
2503
2538
  }
2504
2539
  }
2505
- class ir extends nt {
2540
+ class nr extends ct {
2506
2541
  /**
2507
2542
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2508
2543
  *
@@ -2514,10 +2549,10 @@ class ir extends nt {
2514
2549
  * Базовые данные о продукте.
2515
2550
  */
2516
2551
  s(this, "productCategory");
2517
- this.productCategory = new Re(e == null ? void 0 : e.productCategory);
2552
+ this.productCategory = new be(e == null ? void 0 : e.productCategory);
2518
2553
  }
2519
2554
  }
2520
- class Sr extends k {
2555
+ class kr extends O {
2521
2556
  /**
2522
2557
  * Инициализирует экземпляр класса {@link Curator}.
2523
2558
  *
@@ -2537,12 +2572,12 @@ class Sr extends k {
2537
2572
  * @inheritDoc
2538
2573
  */
2539
2574
  s(this, "curatedDirection");
2540
- this.photo = e.photo, this.contacts = new st(e.contacts), this.curatedDirection = new dr(e.curatedDirection);
2575
+ this.photo = e.photo, this.contacts = new nt(e.contacts), this.curatedDirection = new $r(e.curatedDirection);
2541
2576
  }
2542
2577
  }
2543
- class ye extends a {
2578
+ class ae extends v {
2544
2579
  }
2545
- class ae extends a {
2580
+ class ve extends v {
2546
2581
  /**
2547
2582
  * Инициализирует экземпляр класса {@link Region}.
2548
2583
  *
@@ -2553,11 +2588,11 @@ class ae extends a {
2553
2588
  /**
2554
2589
  * Данные о стране, в которой расположен регион.
2555
2590
  */
2556
- s(this, "country", new ye());
2557
- e && (this.country = new ye(e.country));
2591
+ s(this, "country", new ae());
2592
+ e && (this.country = new ae(e.country));
2558
2593
  }
2559
2594
  }
2560
- class ve extends a {
2595
+ class we extends v {
2561
2596
  /**
2562
2597
  * Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
2563
2598
  *
@@ -2568,11 +2603,11 @@ class ve extends a {
2568
2603
  /**
2569
2604
  * Данные о регионе, в котором расположен город.
2570
2605
  */
2571
- s(this, "region", new ae());
2572
- e && (this.region = new ae(e.region));
2606
+ s(this, "region", new ve());
2607
+ e && (this.region = new ve(e.region));
2573
2608
  }
2574
2609
  }
2575
- class ot extends k {
2610
+ class lt extends O {
2576
2611
  /**
2577
2612
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2578
2613
  *
@@ -2608,10 +2643,10 @@ class ot extends k {
2608
2643
  * Признак активности учетной записи пользователя.
2609
2644
  */
2610
2645
  s(this, "isActive");
2611
- this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : void 0, this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = D(e == null ? void 0 : e.lastLoginAt) ? R(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2646
+ this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? D(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2612
2647
  }
2613
2648
  }
2614
- class te extends ot {
2649
+ class se extends lt {
2615
2650
  /**
2616
2651
  * Инициализирует экземпляр класса {@link Client}.
2617
2652
  *
@@ -2657,10 +2692,10 @@ class te extends ot {
2657
2692
  * @inheritDoc
2658
2693
  */
2659
2694
  s(this, "curators");
2660
- this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new ve(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new Ar(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Sr(o))) ?? void 0;
2695
+ this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new we(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new Sr(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new kr(o))) ?? void 0;
2661
2696
  }
2662
2697
  }
2663
- class $e extends G {
2698
+ class ke extends G {
2664
2699
  /**
2665
2700
  * Инициализирует новый экземпляр класса.
2666
2701
  *
@@ -2684,10 +2719,10 @@ class $e extends G {
2684
2719
  * Данные шаблона прайс-листа.
2685
2720
  */
2686
2721
  s(this, "priceTemplate");
2687
- this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new te(e == null ? void 0 : e.client), this.priceTemplate = new pe(e == null ? void 0 : e.priceTemplate);
2722
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new se(e == null ? void 0 : e.client), this.priceTemplate = new he(e == null ? void 0 : e.priceTemplate);
2688
2723
  }
2689
2724
  }
2690
- class nr extends nt {
2725
+ class or extends ct {
2691
2726
  /**
2692
2727
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2693
2728
  *
@@ -2699,12 +2734,12 @@ class nr extends nt {
2699
2734
  * Базовые данные о продукте.
2700
2735
  */
2701
2736
  s(this, "product");
2702
- this.product = new U(e == null ? void 0 : e.product);
2737
+ this.product = new N(e == null ? void 0 : e.product);
2703
2738
  }
2704
2739
  }
2705
- class ct extends a {
2740
+ class ut extends v {
2706
2741
  }
2707
- class he extends k {
2742
+ class ge extends O {
2708
2743
  /**
2709
2744
  * Инициализирует экземпляр класса {@link Property}.
2710
2745
  *
@@ -2728,10 +2763,10 @@ class he extends k {
2728
2763
  * Признак того, что по свойству может производиться фильтрация в каталоге.
2729
2764
  */
2730
2765
  s(this, "isFilterable");
2731
- this.type = new ct(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata, this.isFilterable = e == null ? void 0 : e.isFilterable;
2766
+ this.type = new ut(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata, this.isFilterable = e == null ? void 0 : e.isFilterable;
2732
2767
  }
2733
2768
  }
2734
- class ce {
2769
+ class le {
2735
2770
  /**
2736
2771
  * Инициализирует экземпляр класса {@link PropertyValue}.
2737
2772
  *
@@ -2747,10 +2782,10 @@ class ce {
2747
2782
  * Может быть строкой, числом, boolean, диапазоном или JSON объектом.
2748
2783
  */
2749
2784
  s(this, "value");
2750
- this.property = new he(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2785
+ this.property = new ge(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
2751
2786
  }
2752
2787
  }
2753
- class Ys {
2788
+ class zs {
2754
2789
  /**
2755
2790
  * Инициализирует экземпляр класса {@link TemplatesListFilters}.
2756
2791
  *
@@ -2815,11 +2850,11 @@ class Ys {
2815
2850
  return Object.keys(this).forEach((c) => {
2816
2851
  const u = this[c];
2817
2852
  // eslint-disable-next-line prettier/prettier
2818
- T(u) || D(u) && u.trim().length === 0 || Cr(u.isNewRec) && u.isNewRec() || (r[c] = u);
2853
+ T(u) || C(u) && u.trim().length === 0 || Rr(u.isNewRec) && u.isNewRec() || (r[c] = u);
2819
2854
  }), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
2820
2855
  }
2821
2856
  }
2822
- class ke extends k {
2857
+ class Le extends O {
2823
2858
  /**
2824
2859
  * Инициализирует экземпляр класса {@link PricingRole}.
2825
2860
  *
@@ -2854,7 +2889,7 @@ class ke extends k {
2854
2889
  this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
2855
2890
  }
2856
2891
  }
2857
- class Ur {
2892
+ class Fr {
2858
2893
  /**
2859
2894
  * Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
2860
2895
  *
@@ -2873,10 +2908,10 @@ class Ur {
2873
2908
  * Минимальный коэффициент цены.
2874
2909
  */
2875
2910
  s(this, "minCoefficient");
2876
- this.role = new ke(r == null ? void 0 : r.role), this.category = new Re(r == null ? void 0 : r.category), this.minCoefficient = new Ge(r == null ? void 0 : r.minCoefficient);
2911
+ this.role = new Le(r == null ? void 0 : r.role), this.category = new be(r == null ? void 0 : r.category), this.minCoefficient = new Ge(r == null ? void 0 : r.minCoefficient);
2877
2912
  }
2878
2913
  }
2879
- class ns {
2914
+ class us {
2880
2915
  /**
2881
2916
  * Инициализирует экземпляр класса {@link FilterSettings}.
2882
2917
  *
@@ -2909,7 +2944,7 @@ class ns {
2909
2944
  this.isFake = (r == null ? void 0 : r.isFake) ?? !1, this.isHidden = (r == null ? void 0 : r.isHidden) ?? !1, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.type = (r == null ? void 0 : r.type) ?? null, this.ord = (r == null ? void 0 : r.ord) ?? 0;
2910
2945
  }
2911
2946
  }
2912
- class Fr {
2947
+ class Mr {
2913
2948
  /**
2914
2949
  * Инициализирует экземпляр класса {@link CategoryFilterSetting}.
2915
2950
  *
@@ -2928,10 +2963,10 @@ class Fr {
2928
2963
  * @inheritDoc
2929
2964
  */
2930
2965
  s(this, "settings");
2931
- this.category = new Re(r == null ? void 0 : r.category), this.property = new he(r == null ? void 0 : r.property), this.settings = new ns(r == null ? void 0 : r.settings);
2966
+ this.category = new be(r == null ? void 0 : r.category), this.property = new ge(r == null ? void 0 : r.property), this.settings = new us(r == null ? void 0 : r.settings);
2932
2967
  }
2933
2968
  }
2934
- class os {
2969
+ class ps {
2935
2970
  /**
2936
2971
  * Инициализирует экземпляр класса {@link CategoryFilterValue}.
2937
2972
  *
@@ -2949,7 +2984,7 @@ class os {
2949
2984
  this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
2950
2985
  }
2951
2986
  }
2952
- class cs {
2987
+ class hs {
2953
2988
  /**
2954
2989
  * Инициализирует экземпляр класса {@link CategoryFilter}.
2955
2990
  *
@@ -2992,10 +3027,10 @@ class cs {
2992
3027
  */
2993
3028
  s(this, "max");
2994
3029
  var e;
2995
- this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? tt.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 os(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
3030
+ this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? it.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new ps(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
2996
3031
  }
2997
3032
  }
2998
- class zs extends h {
3033
+ class Es extends h {
2999
3034
  /**
3000
3035
  * Возвращает данные о результатах поиска категорий и товаров.
3001
3036
  *
@@ -3022,11 +3057,11 @@ class zs extends h {
3022
3057
  */
3023
3058
  // eslint-disable-next-line class-methods-use-this
3024
3059
  getPriceExportLink(r = "csv", e = !1, t = void 0, i = void 0) {
3025
- let c = `${I().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3060
+ let c = `${k().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
3026
3061
  return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
3027
3062
  }
3028
3063
  }
3029
- class Es extends h {
3064
+ class Qs extends h {
3030
3065
  /**
3031
3066
  * Импортирует цены клиента из CSV файла.
3032
3067
  *
@@ -3150,7 +3185,7 @@ class Es extends h {
3150
3185
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3151
3186
  increase_percent: t.value
3152
3187
  },
3153
- (o) => new K(o.data)
3188
+ (o) => new J(o.data)
3154
3189
  );
3155
3190
  }
3156
3191
  /**
@@ -3162,7 +3197,7 @@ class Es extends h {
3162
3197
  * @see /doc/api/internal#/operations/api_internal_client_price_products_remove
3163
3198
  */
3164
3199
  removeProductPrice(r, e) {
3165
- return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new K(t.data));
3200
+ return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new J(t.data));
3166
3201
  }
3167
3202
  /**
3168
3203
  * Добавляет указанный продукт в список товаров для дополнительных продаж.
@@ -3225,7 +3260,7 @@ class Es extends h {
3225
3260
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
3226
3261
  }
3227
3262
  }
3228
- class Qs extends h {
3263
+ class Js extends h {
3229
3264
  /**
3230
3265
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
3231
3266
  *
@@ -3234,7 +3269,7 @@ class Qs extends h {
3234
3269
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_list
3235
3270
  */
3236
3271
  getTemplateList(r) {
3237
- return this.getTypedList($e, `/internal/clients/${r}/price/templates`);
3272
+ return this.getTypedList(ke, `/internal/clients/${r}/price/templates`);
3238
3273
  }
3239
3274
  /**
3240
3275
  * Возвращает действующий шаблон прайс листа привязанный к клиенту.
@@ -3244,7 +3279,7 @@ class Qs extends h {
3244
3279
  * @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
3245
3280
  */
3246
3281
  getActiveTemplate(r) {
3247
- return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new $e(e.data), !0);
3282
+ return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new ke(e.data), !0);
3248
3283
  }
3249
3284
  /**
3250
3285
  * Добавляет связь между клиентом и шаблоном прайс-листа.
@@ -3256,14 +3291,14 @@ class Qs extends h {
3256
3291
  * @see /doc/api/internal#/operations/api_internal_client_price_template_attach
3257
3292
  */
3258
3293
  attachTemplate(r, e, t) {
3259
- const i = I().config.dateFormats.api;
3294
+ const i = k().config.dateFormats.api;
3260
3295
  return this.post(
3261
3296
  `/internal/clients/${r}/price/templates/${e}`,
3262
3297
  t && {
3263
- startAt: t.startAt && x(t.startAt, i),
3264
- endAt: t.endAt && x(t.endAt, i)
3298
+ startAt: t.startAt && L(t.startAt, i),
3299
+ endAt: t.endAt && L(t.endAt, i)
3265
3300
  },
3266
- (o) => new $e(o.data),
3301
+ (o) => new ke(o.data),
3267
3302
  {},
3268
3303
  !0
3269
3304
  );
@@ -3290,14 +3325,14 @@ class Qs extends h {
3290
3325
  * @see /doc/api/internal#/operations/api_internal_client_price_template_change
3291
3326
  */
3292
3327
  changeTemplate(r, e, t, i) {
3293
- const o = I().config.dateFormats.api;
3328
+ const o = k().config.dateFormats.api;
3294
3329
  return this.patch(
3295
3330
  `/internal/clients/${r}/price/templates/${e}/${t}`,
3296
3331
  i && {
3297
- startAt: i.startAt && x(i.startAt, o),
3298
- endAt: i.endAt && x(i.endAt, o)
3332
+ startAt: i.startAt && L(i.startAt, o),
3333
+ endAt: i.endAt && L(i.endAt, o)
3299
3334
  },
3300
- (c) => new $e(c.data)
3335
+ (c) => new ke(c.data)
3301
3336
  );
3302
3337
  }
3303
3338
  /**
@@ -3313,7 +3348,7 @@ class Qs extends h {
3313
3348
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
3314
3349
  }
3315
3350
  }
3316
- class Js extends h {
3351
+ class Vs extends h {
3317
3352
  /**
3318
3353
  * Возвращает список данных о корневых категориях.
3319
3354
  *
@@ -3322,7 +3357,7 @@ class Js extends h {
3322
3357
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
3323
3358
  */
3324
3359
  getRootCategoriesList(r = !1) {
3325
- return this.getTypedList(Y, "/internal/catalog/categories", {
3360
+ return this.getTypedList(z, "/internal/catalog/categories", {
3326
3361
  showHidden: r
3327
3362
  });
3328
3363
  }
@@ -3342,7 +3377,7 @@ class Js extends h {
3342
3377
  showHidden: e,
3343
3378
  withNestedCategories: t
3344
3379
  },
3345
- (i) => new Y(i.data)
3380
+ (i) => new z(i.data)
3346
3381
  );
3347
3382
  }
3348
3383
  /**
@@ -3351,7 +3386,7 @@ class Js extends h {
3351
3386
  * @param categoryID Идентификатор категории продуктов.
3352
3387
  */
3353
3388
  getPublicCategoryData(r) {
3354
- return this.get(`/public/catalog/categories/${r}`, {}, (e) => new Y(e.data));
3389
+ return this.get(`/public/catalog/categories/${r}`, {}, (e) => new z(e.data));
3355
3390
  }
3356
3391
  /**
3357
3392
  * Возвращает список продуктов категории.
@@ -3369,7 +3404,7 @@ class Js extends h {
3369
3404
  showHidden: t,
3370
3405
  withPriceCoefficients: e
3371
3406
  },
3372
- (i) => Ce(i.data, (o) => new U(o))
3407
+ (i) => De(i.data, (o) => new N(o))
3373
3408
  );
3374
3409
  }
3375
3410
  /**
@@ -3382,7 +3417,7 @@ class Js extends h {
3382
3417
  getCategoryProductsCoefficients(r) {
3383
3418
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
3384
3419
  const { data: t } = e;
3385
- return xt(t, (i) => i.map((o) => new Pr(o))), t;
3420
+ return Ut(t, (i) => i.map((o) => new Ar(o))), t;
3386
3421
  });
3387
3422
  }
3388
3423
  /**
@@ -3394,14 +3429,14 @@ class Js extends h {
3394
3429
  publicSimpleSearch(r, e = 10) {
3395
3430
  return new Promise((t, i) => {
3396
3431
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3397
- t(o.categories.map((c) => new Y(c)));
3432
+ t(o.categories.map((c) => new z(c)));
3398
3433
  }).catch((o) => {
3399
3434
  i(o);
3400
3435
  });
3401
3436
  });
3402
3437
  }
3403
3438
  }
3404
- class Vs extends h {
3439
+ class Ks extends Y {
3405
3440
  /**
3406
3441
  * Возвращает данные об указанном продукте.
3407
3442
  *
@@ -3411,7 +3446,7 @@ class Vs extends h {
3411
3446
  * @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
3412
3447
  */
3413
3448
  getProductData(r, e = !1) {
3414
- return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new U(t.data));
3449
+ return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new N(t.data));
3415
3450
  }
3416
3451
  /**
3417
3452
  * Возвращает публичные данные об указанном продукте.
@@ -3419,7 +3454,7 @@ class Vs extends h {
3419
3454
  * @param productId Идентификатор продукта.
3420
3455
  */
3421
3456
  getPublicProductData(r) {
3422
- return this.get(`/public/catalog/products/${r}`, {}, (e) => new U(e.data));
3457
+ return this.get(`/public/catalog/products/${r}`, {}, (e) => new N(e.data));
3423
3458
  }
3424
3459
  /**
3425
3460
  * Возвращает данные о коэффициентах цен для указанного продукта.
@@ -3432,9 +3467,25 @@ class Vs extends h {
3432
3467
  return this.get(
3433
3468
  `/internal/catalog/products/${r}/coefficients`,
3434
3469
  {},
3435
- (e) => Ce(e.data, (t) => new Pr(t))
3470
+ (e) => De(e.data, (t) => new Ar(t))
3436
3471
  );
3437
3472
  }
3473
+ /**
3474
+ * Возвращает данные о новых продуктах каталога, появившихся начиная с указанной даты.
3475
+ *
3476
+ * @param periodFrom Дата начала периода, с которого продукты считаются новыми.
3477
+ * @param paginationParams Параметры пагинации.
3478
+ * @param withPriceCoefficients Признак того, что необходимо включить в ответ данные о коэффициентах цен на продукты.
3479
+ *
3480
+ * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3481
+ */
3482
+ getNewProducts(r, e, t = !0) {
3483
+ const i = k().config.dateFormats.api;
3484
+ return this.getTypedPaginated(N, "/internal/catalog/products/new", void 0, void 0, e, {
3485
+ period: { from: L(r, i) },
3486
+ withPriceCoefficients: t
3487
+ });
3488
+ }
3438
3489
  /**
3439
3490
  * Выполняет публичный поиск данных о продуктах по терму.
3440
3491
  *
@@ -3444,14 +3495,14 @@ class Vs extends h {
3444
3495
  publicSimpleSearch(r, e = 10) {
3445
3496
  return new Promise((t, i) => {
3446
3497
  this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
3447
- t(o.products.map((c) => new U(c)));
3498
+ t(o.products.map((c) => new N(c)));
3448
3499
  }).catch((o) => {
3449
3500
  i(o);
3450
3501
  });
3451
3502
  });
3452
3503
  }
3453
3504
  }
3454
- class Ks extends h {
3505
+ class Xs extends h {
3455
3506
  /**
3456
3507
  * Возвращает список данных о корневых категориях указанного клиента.
3457
3508
  *
@@ -3505,11 +3556,11 @@ class Ks extends h {
3505
3556
  showHidden: i,
3506
3557
  withPriceCoefficients: t
3507
3558
  },
3508
- (o) => Ce(o.data, (c) => new K(c))
3559
+ (o) => De(o.data, (c) => new J(c))
3509
3560
  );
3510
3561
  }
3511
3562
  }
3512
- class Xs extends h {
3563
+ class Zs extends Y {
3513
3564
  /**
3514
3565
  * Возвращает данные об указанном продукте для указанного клиента.
3515
3566
  *
@@ -3526,11 +3577,29 @@ class Xs extends h {
3526
3577
  clientId: e,
3527
3578
  withPriceCoefficients: t
3528
3579
  },
3529
- (i) => new K(i.data)
3580
+ (i) => new J(i.data)
3530
3581
  );
3531
3582
  }
3583
+ /**
3584
+ * Возвращает данные о новых продуктах каталога для указанного клиента, появившихся начиная с указанной даты.
3585
+ *
3586
+ * @param clientId Идентификатор клиента.
3587
+ * @param periodFrom Дата начала периода, с которого продукты считаются новыми.
3588
+ * @param paginationParams Параметры пагинации.
3589
+ * @param withPriceCoefficients Признак того, что необходимо включить в ответ данные о коэффициентах цен на продукты.
3590
+ *
3591
+ * @see /doc/api/internal#/Каталог/api_internal_catalog_new_products_by_period_get
3592
+ */
3593
+ getNewProducts(r, e, t, i = !0) {
3594
+ const o = k().config.dateFormats.api;
3595
+ return this.getTypedPaginated(J, "/internal/catalog/products/new", void 0, void 0, t, {
3596
+ clientId: r,
3597
+ period: { from: L(e, o) },
3598
+ withPriceCoefficients: i
3599
+ });
3600
+ }
3532
3601
  }
3533
- class Zs extends re {
3602
+ class ei extends Y {
3534
3603
  /**
3535
3604
  * Возвращает список шаблонов прайс-листа.
3536
3605
  *
@@ -3541,7 +3610,7 @@ class Zs extends re {
3541
3610
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
3542
3611
  */
3543
3612
  getTemplateList(r, e, t) {
3544
- return this.getTypedPaginated(pe, "/internal/price/templates", r, e, t);
3613
+ return this.getTypedPaginated(he, "/internal/price/templates", r, e, t);
3545
3614
  }
3546
3615
  /**
3547
3616
  * Создание нового шаблона прайс-листа.
@@ -3553,7 +3622,7 @@ class Zs extends re {
3553
3622
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
3554
3623
  */
3555
3624
  createTemplate(r, e = {}) {
3556
- return this.post("/internal/price/templates", r, (t) => new pe(t.data), e);
3625
+ return this.post("/internal/price/templates", r, (t) => new he(t.data), e);
3557
3626
  }
3558
3627
  /**
3559
3628
  * Возвращает данные о шаблоне прайс-листа.
@@ -3563,7 +3632,7 @@ class Zs extends re {
3563
3632
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
3564
3633
  */
3565
3634
  getTemplate(r) {
3566
- return this.get(`/internal/price/templates/${r}`, {}, (e) => new pe(e.data));
3635
+ return this.get(`/internal/price/templates/${r}`, {}, (e) => new he(e.data));
3567
3636
  }
3568
3637
  /**
3569
3638
  * Изменяет данные о шаблоне прайс-листа.
@@ -3576,7 +3645,7 @@ class Zs extends re {
3576
3645
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
3577
3646
  */
3578
3647
  updateTemplate(r, e, t = {}) {
3579
- return this.patch(`/internal/price/templates/${r}`, e, (i) => new pe(i.data), t);
3648
+ return this.patch(`/internal/price/templates/${r}`, e, (i) => new he(i.data), t);
3580
3649
  }
3581
3650
  /**
3582
3651
  * Удаляет данные о шаблоне прайс-листа.
@@ -3596,7 +3665,7 @@ class Zs extends re {
3596
3665
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get_list
3597
3666
  */
3598
3667
  getProductTemplatePrices(r) {
3599
- return this.getTypedList(nr, `/internal/price/templates/${r}/products`);
3668
+ return this.getTypedList(or, `/internal/price/templates/${r}/products`);
3600
3669
  }
3601
3670
  /**
3602
3671
  * Возвращает данные о цене на продукт в шаблоне прайс-листа.
@@ -3607,7 +3676,7 @@ class Zs extends re {
3607
3676
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
3608
3677
  */
3609
3678
  getProductTemplatePrice(r, e) {
3610
- return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new nr(t.data));
3679
+ return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new or(t.data));
3611
3680
  }
3612
3681
  /**
3613
3682
  * Сохраняет цену на продукт в шаблоне прайс-листа.
@@ -3626,7 +3695,7 @@ class Zs extends re {
3626
3695
  price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
3627
3696
  increase_percent: t.value
3628
3697
  },
3629
- (o) => new nr(o.data)
3698
+ (o) => new or(o.data)
3630
3699
  );
3631
3700
  }
3632
3701
  /**
@@ -3648,7 +3717,7 @@ class Zs extends re {
3648
3717
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_get_list
3649
3718
  */
3650
3719
  getCategoryTemplatePrices(r) {
3651
- return this.getTypedList(ir, `/internal/price/templates/${r}/categories`);
3720
+ return this.getTypedList(nr, `/internal/price/templates/${r}/categories`);
3652
3721
  }
3653
3722
  /**
3654
3723
  * Возвращает данные о цене на категорию продуктов в шаблоне прайс-листа.
@@ -3662,7 +3731,7 @@ class Zs extends re {
3662
3731
  return this.get(
3663
3732
  `/internal/price/templates/${r}/categories/${e}`,
3664
3733
  {},
3665
- (t) => new ir(t.data)
3734
+ (t) => new nr(t.data)
3666
3735
  );
3667
3736
  }
3668
3737
  /**
@@ -3688,7 +3757,7 @@ class Zs extends re {
3688
3757
  },
3689
3758
  params: i ? { recursively: !0 } : {}
3690
3759
  },
3691
- (c) => new ir(c.data)
3760
+ (c) => new nr(c.data)
3692
3761
  );
3693
3762
  }
3694
3763
  /**
@@ -3716,17 +3785,17 @@ class Zs extends re {
3716
3785
  * @see /doc/api/internal#/operations/api_internal_catalog_price_template_clients_get_list
3717
3786
  */
3718
3787
  getTemplateClients(r) {
3719
- return this.getTypedList($e, `/internal/price/templates/${r}/clients`);
3788
+ return this.getTypedList(ke, `/internal/price/templates/${r}/clients`);
3720
3789
  }
3721
3790
  }
3722
- class ei extends h {
3791
+ class ri extends h {
3723
3792
  /**
3724
3793
  * Возвращает список ролей ценообразования.
3725
3794
  *
3726
3795
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
3727
3796
  */
3728
3797
  getRoles() {
3729
- return this.getTypedList(ke, "/internal/price/roles");
3798
+ return this.getTypedList(Le, "/internal/price/roles");
3730
3799
  }
3731
3800
  /**
3732
3801
  * Добавляет новую роль ценообразования.
@@ -3736,7 +3805,7 @@ class ei extends h {
3736
3805
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
3737
3806
  */
3738
3807
  createRole(r) {
3739
- return this.post("/internal/price/roles", r, (e) => new ke(e.data));
3808
+ return this.post("/internal/price/roles", r, (e) => new Le(e.data));
3740
3809
  }
3741
3810
  /**
3742
3811
  * Возвращает данные роли ценообразования.
@@ -3746,7 +3815,7 @@ class ei extends h {
3746
3815
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
3747
3816
  */
3748
3817
  getRole(r) {
3749
- return this.get(`/internal/price/roles/${r}`, {}, (e) => new ke(e.data));
3818
+ return this.get(`/internal/price/roles/${r}`, {}, (e) => new Le(e.data));
3750
3819
  }
3751
3820
  /**
3752
3821
  * Обновляет данные роли ценообразования.
@@ -3757,7 +3826,7 @@ class ei extends h {
3757
3826
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
3758
3827
  */
3759
3828
  updateRole(r, e) {
3760
- return this.patch(`/internal/price/roles/${r}`, e, (t) => new ke(t.data));
3829
+ return this.patch(`/internal/price/roles/${r}`, e, (t) => new Le(t.data));
3761
3830
  }
3762
3831
  /**
3763
3832
  * Удаляет роль ценообразования.
@@ -3777,7 +3846,7 @@ class ei extends h {
3777
3846
  * @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
3778
3847
  */
3779
3848
  getCategoryRules(r) {
3780
- return this.getTypedList(Ur, `/internal/price/roles/rules/categories/${r}`);
3849
+ return this.getTypedList(Fr, `/internal/price/roles/rules/categories/${r}`);
3781
3850
  }
3782
3851
  /**
3783
3852
  * Обновляет правила для роли ценообразования по указанной категории.
@@ -3791,11 +3860,11 @@ class ei extends h {
3791
3860
  return this.patch(
3792
3861
  `/internal/price/roles/rules/categories/${r}`,
3793
3862
  e,
3794
- (t) => _.instanceListInitializer(Ur, t.data)
3863
+ (t) => _.instanceListInitializer(Fr, t.data)
3795
3864
  );
3796
3865
  }
3797
3866
  }
3798
- class ri extends re {
3867
+ class ti extends Y {
3799
3868
  /**
3800
3869
  * Возвращает пагинированный список свойств.
3801
3870
  *
@@ -3806,7 +3875,7 @@ class ri extends re {
3806
3875
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get_list
3807
3876
  */
3808
3877
  getProperties(r, e, t) {
3809
- return this.getTypedPaginated(he, "/internal/catalog/properties", r, e, t);
3878
+ return this.getTypedPaginated(ge, "/internal/catalog/properties", r, e, t);
3810
3879
  }
3811
3880
  /**
3812
3881
  * Создает новое свойство.
@@ -3822,7 +3891,7 @@ class ri extends re {
3822
3891
  ...t,
3823
3892
  type: e
3824
3893
  },
3825
- (i) => new he(i.data)
3894
+ (i) => new ge(i.data)
3826
3895
  );
3827
3896
  }
3828
3897
  /**
@@ -3832,7 +3901,7 @@ class ri extends re {
3832
3901
  * @see /doc/api/internal#/operations/api_internal_catalog_properties_get
3833
3902
  */
3834
3903
  getProperty(r) {
3835
- return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new he(e.data));
3904
+ return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ge(e.data));
3836
3905
  }
3837
3906
  /**
3838
3907
  * Обновляет существующее свойство.
@@ -3849,7 +3918,7 @@ class ri extends re {
3849
3918
  ...i,
3850
3919
  type: t
3851
3920
  },
3852
- (o) => new he(o.data)
3921
+ (o) => new ge(o.data)
3853
3922
  );
3854
3923
  }
3855
3924
  /**
@@ -3868,7 +3937,7 @@ class ri extends re {
3868
3937
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
3869
3938
  */
3870
3939
  getProductProperties(r) {
3871
- return this.getTypedList(ce, `/internal/catalog/products/${r}/properties`);
3940
+ return this.getTypedList(le, `/internal/catalog/products/${r}/properties`);
3872
3941
  }
3873
3942
  /**
3874
3943
  * Возвращает значение свойства продукта.
@@ -3878,7 +3947,7 @@ class ri extends re {
3878
3947
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
3879
3948
  */
3880
3949
  getProductProperty(r, e) {
3881
- return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new ce(t.data));
3950
+ return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new le(t.data));
3882
3951
  }
3883
3952
  /**
3884
3953
  * Обновляет значение свойства продукта.
@@ -3889,7 +3958,7 @@ class ri extends re {
3889
3958
  * @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
3890
3959
  */
3891
3960
  updateProductProperty(r, e, t) {
3892
- return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new ce(i.data));
3961
+ return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new le(i.data));
3893
3962
  }
3894
3963
  /**
3895
3964
  * Удаляет значение свойства продукта.
@@ -4014,7 +4083,7 @@ class ri extends re {
4014
4083
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
4015
4084
  */
4016
4085
  getCategoryProperties(r) {
4017
- return this.getTypedList(ce, `/internal/catalog/categories/${r}/properties`);
4086
+ return this.getTypedList(le, `/internal/catalog/categories/${r}/properties`);
4018
4087
  }
4019
4088
  /**
4020
4089
  * Возвращает значение свойства категории.
@@ -4024,7 +4093,7 @@ class ri extends re {
4024
4093
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
4025
4094
  */
4026
4095
  getCategoryProperty(r, e) {
4027
- return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new ce(t.data));
4096
+ return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new le(t.data));
4028
4097
  }
4029
4098
  /**
4030
4099
  * Обновляет значение свойства категории.
@@ -4035,7 +4104,7 @@ class ri extends re {
4035
4104
  * @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
4036
4105
  */
4037
4106
  updateCategoryProperty(r, e, t) {
4038
- return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new ce(i.data));
4107
+ return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new le(i.data));
4039
4108
  }
4040
4109
  /**
4041
4110
  * Удаляет значение свойства категории.
@@ -4174,7 +4243,7 @@ class ri extends re {
4174
4243
  return this.get(
4175
4244
  `/internal/catalog/categories/${r}/filters`,
4176
4245
  { recursively: e },
4177
- (t) => t.data.map((i) => new cs(i))
4246
+ (t) => t.data.map((i) => new hs(i))
4178
4247
  );
4179
4248
  }
4180
4249
  /**
@@ -4184,7 +4253,7 @@ class ri extends re {
4184
4253
  * @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
4185
4254
  */
4186
4255
  getCategoryFilterSettings(r) {
4187
- return this.getTypedList(Fr, `/internal/catalog/categories/${r}/filter-settings`);
4256
+ return this.getTypedList(Mr, `/internal/catalog/categories/${r}/filter-settings`);
4188
4257
  }
4189
4258
  /**
4190
4259
  * Сохраняет настройки фильтра в категории.
@@ -4198,7 +4267,7 @@ class ri extends re {
4198
4267
  return this.patch(
4199
4268
  `/internal/catalog/categories/${r}/filter-settings/${e}`,
4200
4269
  t,
4201
- (i) => new Fr(i.data)
4270
+ (i) => new Mr(i.data)
4202
4271
  );
4203
4272
  }
4204
4273
  /**
@@ -4212,7 +4281,7 @@ class ri extends re {
4212
4281
  return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
4213
4282
  }
4214
4283
  }
4215
- class ti extends h {
4284
+ class si extends h {
4216
4285
  /**
4217
4286
  * Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
4218
4287
  *
@@ -4222,7 +4291,7 @@ class ti extends h {
4222
4291
  * @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
4223
4292
  */
4224
4293
  getRootCategoriesList(r, e = !1) {
4225
- return this.getTypedList(Y, "/internal/catalog/categories", {
4294
+ return this.getTypedList(z, "/internal/catalog/categories", {
4226
4295
  priceTemplateId: r,
4227
4296
  showHidden: e
4228
4297
  });
@@ -4245,7 +4314,7 @@ class ti extends h {
4245
4314
  showHidden: t,
4246
4315
  withNestedCategories: i
4247
4316
  },
4248
- (o) => new Y(o.data)
4317
+ (o) => new z(o.data)
4249
4318
  );
4250
4319
  }
4251
4320
  /**
@@ -4266,7 +4335,7 @@ class ti extends h {
4266
4335
  showHidden: i,
4267
4336
  withPriceCoefficients: t
4268
4337
  },
4269
- (o) => Ce(o.data, (c) => new U(c))
4338
+ (o) => De(o.data, (c) => new N(c))
4270
4339
  );
4271
4340
  }
4272
4341
  }
@@ -4291,17 +4360,17 @@ function Hr(n, r, e) {
4291
4360
  return !1;
4292
4361
  }), t;
4293
4362
  }
4294
- function Mr(n) {
4363
+ function Br(n) {
4295
4364
  const r = [];
4296
4365
  return n.forEach((e) => {
4297
4366
  if (r.push(e), e.type === "category") {
4298
4367
  const t = e;
4299
- t.products && t.products.length > 0 && r.push(...Mr(t.products)), t.categories && t.categories.length > 0 && r.push(...Mr(t.categories));
4368
+ t.products && t.products.length > 0 && r.push(...Br(t.products)), t.categories && t.categories.length > 0 && r.push(...Br(t.categories));
4300
4369
  }
4301
4370
  }), r;
4302
4371
  }
4303
- var ls = /* @__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))(ls || {}), z = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(z || {});
4304
- class ar extends G {
4372
+ var gs = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(gs || {}), E = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(E || {});
4373
+ class vr extends G {
4305
4374
  /**
4306
4375
  * Инициализирует экземпляр класса {@link BankAccount}.
4307
4376
  *
@@ -4332,7 +4401,7 @@ class ar extends G {
4332
4401
  e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new j(e.currency));
4333
4402
  }
4334
4403
  }
4335
- class vr extends k {
4404
+ class wr extends O {
4336
4405
  /**
4337
4406
  * Инициализирует экземпляр класса {@link Contact}.
4338
4407
  *
@@ -4351,7 +4420,7 @@ class vr extends k {
4351
4420
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
4352
4421
  }
4353
4422
  }
4354
- class X extends vr {
4423
+ class ee extends wr {
4355
4424
  /**
4356
4425
  * Инициализирует экземпляр класса {@link ContactPerson}.
4357
4426
  *
@@ -4383,25 +4452,25 @@ class X extends vr {
4383
4452
  * Дата и время последнего удаления.
4384
4453
  */
4385
4454
  s(this, "deletedAt");
4386
- this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4455
+ this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4387
4456
  }
4388
4457
  }
4389
- class Z extends a {
4458
+ class re extends v {
4390
4459
  /**
4391
4460
  * Возвращает сгенерированную запись-описание физического лица.
4392
4461
  */
4393
4462
  static generatePersonItem() {
4394
- return new Z({
4463
+ return new re({
4395
4464
  id: 1,
4396
4465
  guid: "",
4397
- slug: z.Person,
4466
+ slug: E.Person,
4398
4467
  name: ""
4399
4468
  });
4400
4469
  }
4401
4470
  }
4402
- class we extends a {
4471
+ class Ce extends v {
4403
4472
  }
4404
- class lt extends Vr {
4473
+ class pt extends Xr {
4405
4474
  /**
4406
4475
  * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
4407
4476
  *
@@ -4413,10 +4482,10 @@ class lt extends Vr {
4413
4482
  * Дата и время последнего удаления.
4414
4483
  */
4415
4484
  s(this, "deletedAt");
4416
- this.deletedAt = D(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4485
+ this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? D(e.deletedAt) : e == null ? void 0 : e.deletedAt;
4417
4486
  }
4418
4487
  }
4419
- class ut extends lt {
4488
+ class ht extends pt {
4420
4489
  /**
4421
4490
  * Инициализирует экземпляр класса {@link ContragentBase}.
4422
4491
  *
@@ -4428,11 +4497,11 @@ class ut extends lt {
4428
4497
  /**
4429
4498
  * Данные об организационно-правовой форме.
4430
4499
  */
4431
- s(this, "opf", Z.generatePersonItem());
4500
+ s(this, "opf", re.generatePersonItem());
4432
4501
  /**
4433
4502
  * Группа партнеров (направление деятельности).
4434
4503
  */
4435
- s(this, "partnerGroup", new we());
4504
+ s(this, "partnerGroup", new Ce());
4436
4505
  /**
4437
4506
  * Список контактных лиц контрагента.
4438
4507
  */
@@ -4462,22 +4531,22 @@ class ut extends lt {
4462
4531
  */
4463
4532
  s(this, "updater");
4464
4533
  if (e) {
4465
- if (this.opf = new Z(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new we(e.partnerGroup)), e.contacts) {
4534
+ if (this.opf = new re(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Ce(e.partnerGroup)), e.contacts) {
4466
4535
  const t = [];
4467
4536
  e.contacts.forEach((i) => {
4468
- t.push(new X(i));
4537
+ t.push(new ee(i));
4469
4538
  }), this.contacts = t;
4470
4539
  }
4471
4540
  if (e.bankAccounts) {
4472
4541
  const t = [];
4473
4542
  e.bankAccounts.forEach((i) => {
4474
- t.push(new ar(i));
4543
+ t.push(new vr(i));
4475
4544
  }), this.bankAccounts = t;
4476
4545
  }
4477
4546
  }
4478
4547
  }
4479
4548
  }
4480
- class us extends ut {
4549
+ class fs extends ht {
4481
4550
  /**
4482
4551
  * Инициализирует экземпляр класса {@link ContragentPerson}.
4483
4552
  *
@@ -4487,7 +4556,7 @@ class us extends ut {
4487
4556
  super(r);
4488
4557
  }
4489
4558
  }
4490
- class pt extends ut {
4559
+ class gt extends ht {
4491
4560
  /**
4492
4561
  * Инициализирует экземпляр класса {@link ContragentIc}.
4493
4562
  *
@@ -4530,7 +4599,7 @@ class pt extends ut {
4530
4599
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
4531
4600
  }
4532
4601
  }
4533
- class ht extends pt {
4602
+ class ft extends gt {
4534
4603
  /**
4535
4604
  * Инициализирует экземпляр класса {@link ContragentUlR}.
4536
4605
  *
@@ -4545,7 +4614,7 @@ class ht extends pt {
4545
4614
  e && (this.kpp = e.kpp ?? "");
4546
4615
  }
4547
4616
  }
4548
- class ps extends ht {
4617
+ class ms extends ft {
4549
4618
  /**
4550
4619
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
4551
4620
  *
@@ -4556,7 +4625,7 @@ class ps extends ht {
4556
4625
  /**
4557
4626
  * Страна регистрации юридического лица нерезидента.
4558
4627
  */
4559
- s(this, "registrationCountry", new ye());
4628
+ s(this, "registrationCountry", new ae());
4560
4629
  /**
4561
4630
  * Регистрационный номер юридического лица нерезидента.
4562
4631
  */
@@ -4565,7 +4634,7 @@ class ps extends ht {
4565
4634
  * Налоговый номер юридического лица нерезидента.
4566
4635
  */
4567
4636
  s(this, "taxNumber", "");
4568
- e && (this.registrationCountry = new ye(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4637
+ e && (this.registrationCountry = new ae(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
4569
4638
  }
4570
4639
  }
4571
4640
  class je {
@@ -4576,18 +4645,18 @@ class je {
4576
4645
  */
4577
4646
  static createInstance(r) {
4578
4647
  switch (r.opf.slug) {
4579
- case z.Ic:
4580
- return new pt(r);
4581
- case z.UlR:
4582
- return new ht(r);
4583
- case z.UlNr:
4584
- return new ps(r);
4648
+ case E.Ic:
4649
+ return new gt(r);
4650
+ case E.UlR:
4651
+ return new ft(r);
4652
+ case E.UlNr:
4653
+ return new ms(r);
4585
4654
  default:
4586
- return new us(r);
4655
+ return new fs(r);
4587
4656
  }
4588
4657
  }
4589
4658
  }
4590
- class Le extends lt {
4659
+ class Oe extends pt {
4591
4660
  /**
4592
4661
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4593
4662
  *
@@ -4624,14 +4693,14 @@ class Le extends lt {
4624
4693
  * Признак того, что указанный адрес является адресом транспортной компании.
4625
4694
  */
4626
4695
  s(this, "isTransportCompanyAddress");
4627
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Xr(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new X(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4696
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new et(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new ee(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4628
4697
  }
4629
4698
  }
4630
- class gt extends a {
4699
+ class mt extends v {
4631
4700
  }
4632
- class ft extends a {
4701
+ class yt extends v {
4633
4702
  }
4634
- class Br extends te {
4703
+ class Wr extends se {
4635
4704
  /**
4636
4705
  * Инициализирует экземпляр класса {@link Client}.
4637
4706
  *
@@ -4681,10 +4750,10 @@ class Br extends te {
4681
4750
  * @inheritDoc
4682
4751
  */
4683
4752
  s(this, "extraData");
4684
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => je.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new we(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new X(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Le(u))) ?? [], this.channelPrimaryInterest = new gt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new ft(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new E(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new qe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4753
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => je.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new ee(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Oe(u))) ?? [], this.channelPrimaryInterest = new mt(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new yt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Q(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ne(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4685
4754
  }
4686
4755
  }
4687
- class si extends _e {
4756
+ class ii extends qe {
4688
4757
  /**
4689
4758
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4690
4759
  *
@@ -4797,7 +4866,7 @@ class si extends _e {
4797
4866
  * @inheritDoc
4798
4867
  */
4799
4868
  s(this, "noOrdersPeriod", new A());
4800
- 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((C) => new ve(C)), this.region = new ae(e == null ? void 0 : e.region), this.country = new ye(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((C) => new Ne(C))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((C) => new Sr(C))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((C) => new F(C)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new Z(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new E(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((C) => new we(C)), this.contact = new vr(e == null ? void 0 : e.contact), this.lastOrder = {
4869
+ this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((R) => new we(R)), this.region = new ve(e == null ? void 0 : e.region), this.country = new ae(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((R) => new V(R))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((R) => new kr(R))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((R) => new F(R)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new re(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new Q(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((R) => new Ce(R)), this.contact = new wr(e == null ? void 0 : e.contact), this.lastOrder = {
4801
4870
  createdAt: new A((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4802
4871
  creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
4803
4872
  isApproved: (y = e == null ? void 0 : e.lastOrder) == null ? void 0 : y.isApproved
@@ -4812,7 +4881,7 @@ class si extends _e {
4812
4881
  this.cities = [];
4813
4882
  break;
4814
4883
  case "region":
4815
- this.region = new ae();
4884
+ this.region = new ve();
4816
4885
  break;
4817
4886
  case "isActive":
4818
4887
  this.isActive = !0;
@@ -4839,16 +4908,16 @@ class si extends _e {
4839
4908
  this.salesDirections = [];
4840
4909
  break;
4841
4910
  case "contragentType":
4842
- this.contragentType = new Z();
4911
+ this.contragentType = new re();
4843
4912
  break;
4844
4913
  case "preferredDeliveryType":
4845
- this.preferredDeliveryType = new E();
4914
+ this.preferredDeliveryType = new Q();
4846
4915
  break;
4847
4916
  case "partnerGroups":
4848
4917
  this.partnerGroups = [];
4849
4918
  break;
4850
4919
  case "contact":
4851
- this.contact = new vr();
4920
+ this.contact = new wr();
4852
4921
  break;
4853
4922
  default:
4854
4923
  this[e] = void 0;
@@ -4865,7 +4934,7 @@ class si extends _e {
4865
4934
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
4866
4935
  }
4867
4936
  }
4868
- class mt extends G {
4937
+ class at extends G {
4869
4938
  /**
4870
4939
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4871
4940
  *
@@ -4881,10 +4950,10 @@ class mt extends G {
4881
4950
  * @inheritDoc
4882
4951
  */
4883
4952
  s(this, "creator");
4884
- this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator);
4953
+ this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator);
4885
4954
  }
4886
4955
  }
4887
- class hs extends k {
4956
+ class ys extends O {
4888
4957
  /**
4889
4958
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4890
4959
  *
@@ -4921,10 +4990,10 @@ class hs extends k {
4921
4990
  * @inheritDoc
4922
4991
  */
4923
4992
  s(this, "curators");
4924
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new X(u))) ?? void 0, this.lastOrder = e.lastOrder ? new mt(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new we(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new E(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 Ar(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Sr(u))) ?? void 0;
4993
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new ee(u))) ?? void 0, this.lastOrder = e.lastOrder ? new at(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new Q(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Sr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new kr(u))) ?? void 0;
4925
4994
  }
4926
4995
  }
4927
- class or extends G {
4996
+ class cr extends G {
4928
4997
  /**
4929
4998
  * Инициализирует экземпляр класса {@link ContactRelation}.
4930
4999
  *
@@ -4939,7 +5008,7 @@ class or extends G {
4939
5008
  this.isPrimary = e.isPrimary;
4940
5009
  }
4941
5010
  }
4942
- class gs extends X {
5011
+ class as extends ee {
4943
5012
  /**
4944
5013
  * Инициализирует экземпляр класса {@link ContactPersonRelated}.
4945
5014
  *
@@ -4964,10 +5033,10 @@ class gs extends X {
4964
5033
  */
4965
5034
  addresses: []
4966
5035
  });
4967
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new or(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new or(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new or(t))));
5036
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new cr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new cr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new cr(t))));
4968
5037
  }
4969
5038
  }
4970
- class H extends re {
5039
+ class M extends Y {
4971
5040
  /**
4972
5041
  * Преобразует данные о клиенте в данные требуемые для запроса.
4973
5042
  *
@@ -4999,7 +5068,7 @@ class H extends re {
4999
5068
  let e;
5000
5069
  const t = r, i = r, o = r;
5001
5070
  switch (r.opf.slug) {
5002
- case z.Ic:
5071
+ case E.Ic:
5003
5072
  e = {
5004
5073
  opf: t.opf.slug,
5005
5074
  name: t.name,
@@ -5016,7 +5085,7 @@ class H extends re {
5016
5085
  actual_address: t.actualAddress
5017
5086
  };
5018
5087
  break;
5019
- case z.UlR:
5088
+ case E.UlR:
5020
5089
  e = {
5021
5090
  opf: i.opf.slug,
5022
5091
  name: i.name,
@@ -5034,7 +5103,7 @@ class H extends re {
5034
5103
  actual_address: i.actualAddress
5035
5104
  };
5036
5105
  break;
5037
- case z.UlNr:
5106
+ case E.UlNr:
5038
5107
  e = {
5039
5108
  opf: o.opf.slug,
5040
5109
  name: o.name,
@@ -5106,7 +5175,7 @@ class H extends re {
5106
5175
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
5107
5176
  */
5108
5177
  getClient(r) {
5109
- return this.get(`/internal/clients/${r}`, {}, (e) => new Br(e.data));
5178
+ return this.get(`/internal/clients/${r}`, {}, (e) => new Wr(e.data));
5110
5179
  }
5111
5180
  /**
5112
5181
  * Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
@@ -5120,7 +5189,7 @@ class H extends re {
5120
5189
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_list
5121
5190
  */
5122
5191
  getClientsList(r, e, t, i, o = void 0) {
5123
- return this.getTypedPaginated(te, "/internal/clients", r, e, t, i, void 0, o);
5192
+ return this.getTypedPaginated(se, "/internal/clients", r, e, t, i, void 0, o);
5124
5193
  }
5125
5194
  /**
5126
5195
  * Выполняет поиск клиентов по терму в строке.
@@ -5142,7 +5211,7 @@ class H extends re {
5142
5211
  return this.getClientsList({
5143
5212
  groupOp: "and",
5144
5213
  groups: [],
5145
- filters: [{ field: "phone", op: br.Contains, value: r }]
5214
+ filters: [{ field: "phone", op: Tr.Contains, value: r }]
5146
5215
  });
5147
5216
  }
5148
5217
  /**
@@ -5157,7 +5226,7 @@ class H extends re {
5157
5226
  return this.post(
5158
5227
  "/internal/clients/additional-data",
5159
5228
  { clients: t, requested_data_types: e },
5160
- (i) => _.instanceListInitializer(hs, i.data)
5229
+ (i) => _.instanceListInitializer(ys, i.data)
5161
5230
  );
5162
5231
  }
5163
5232
  /**
@@ -5167,7 +5236,7 @@ class H extends re {
5167
5236
  * @see /doc/api/internal#/Контакты/api_internal_client_contact_get_all_contact_list
5168
5237
  */
5169
5238
  getAllClientContacts(r) {
5170
- return this.getTypedList(gs, `/internal/clients/${r}/contacts/all`);
5239
+ return this.getTypedList(as, `/internal/clients/${r}/contacts/all`);
5171
5240
  }
5172
5241
  /**
5173
5242
  * Создаёт нового клиента на основе указанных данных.
@@ -5177,7 +5246,7 @@ class H extends re {
5177
5246
  * @see /doc/api/internal#/Клиенты/api_internal_client_create
5178
5247
  */
5179
5248
  createClientCommonData(r, e = {}) {
5180
- return this.post("/internal/clients", H.transformClientDataToRequest(r), (t) => new Br(t.data), e);
5249
+ return this.post("/internal/clients", M.transformClientDataToRequest(r), (t) => new Wr(t.data), e);
5181
5250
  }
5182
5251
  /**
5183
5252
  * Обновляет данные указанного клиента.
@@ -5187,7 +5256,7 @@ class H extends re {
5187
5256
  * @see /doc/api/internal#/Клиенты/api_internal_client_change
5188
5257
  */
5189
5258
  updateClientCommonData(r, e = {}) {
5190
- return this.patch(`/internal/clients/${r.id}`, H.transformClientDataToRequest(r), void 0, e);
5259
+ return this.patch(`/internal/clients/${r.id}`, M.transformClientDataToRequest(r), void 0, e);
5191
5260
  }
5192
5261
  /**
5193
5262
  * Обновляет данные "Не беспокоить" указанного клиента.
@@ -5316,7 +5385,7 @@ class H extends re {
5316
5385
  createContragentClientData(r, e, t = {}) {
5317
5386
  return this.post(
5318
5387
  `/internal/clients/${r}/contragents`,
5319
- H.transformContragentClientDataToRequest(e),
5388
+ M.transformContragentClientDataToRequest(e),
5320
5389
  (i) => je.createInstance(i.data),
5321
5390
  t
5322
5391
  );
@@ -5332,7 +5401,7 @@ class H extends re {
5332
5401
  updateContragentClientData(r, e, t = {}) {
5333
5402
  return this.patch(
5334
5403
  `/internal/clients/${r}/contragents/${e.id}`,
5335
- H.transformContragentClientDataToRequest(e),
5404
+ M.transformContragentClientDataToRequest(e),
5336
5405
  (i) => je.createInstance(i.data),
5337
5406
  t
5338
5407
  );
@@ -5354,7 +5423,7 @@ class H extends re {
5354
5423
  * @see /doc/api/internal#/operations/api_internal_client_delivery_address_get_list
5355
5424
  */
5356
5425
  getClientDeliveryAddresses(r) {
5357
- return this.getTypedList(Le, `/internal/clients/${r}/delivery-addresses`);
5426
+ return this.getTypedList(Oe, `/internal/clients/${r}/delivery-addresses`);
5358
5427
  }
5359
5428
  /**
5360
5429
  * Создаёт новую запись об адресе доставки клиента.
@@ -5367,8 +5436,8 @@ class H extends re {
5367
5436
  createClientDeliveryAddress(r, e, t = {}) {
5368
5437
  return this.post(
5369
5438
  `/internal/clients/${r}/delivery-addresses`,
5370
- H.transformClientDeliveryAddressToRequest(e),
5371
- (i) => new Le(i.data),
5439
+ M.transformClientDeliveryAddressToRequest(e),
5440
+ (i) => new Oe(i.data),
5372
5441
  t
5373
5442
  );
5374
5443
  }
@@ -5383,8 +5452,8 @@ class H extends re {
5383
5452
  updateClientDeliveryAddress(r, e, t = {}) {
5384
5453
  return this.patch(
5385
5454
  `/internal/clients/${r}/delivery-addresses/${e.id}`,
5386
- H.transformClientDeliveryAddressToRequest(e),
5387
- (i) => new Le(i.data),
5455
+ M.transformClientDeliveryAddressToRequest(e),
5456
+ (i) => new Oe(i.data),
5388
5457
  t
5389
5458
  );
5390
5459
  }
@@ -5410,8 +5479,8 @@ class H extends re {
5410
5479
  createContragentBankAccount(r, e, t, i = {}) {
5411
5480
  return this.post(
5412
5481
  `/internal/clients/${r}/contragents/${e}/bank-accounts`,
5413
- H.transformClientContragentBankAccountToRequest(t),
5414
- (o) => new ar(o.data),
5482
+ M.transformClientContragentBankAccountToRequest(t),
5483
+ (o) => new vr(o.data),
5415
5484
  i
5416
5485
  );
5417
5486
  }
@@ -5427,8 +5496,8 @@ class H extends re {
5427
5496
  updateContragentBankAccount(r, e, t, i = {}) {
5428
5497
  return this.patch(
5429
5498
  `/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
5430
- H.transformClientContragentBankAccountToRequest(t),
5431
- (o) => new ar(o.data),
5499
+ M.transformClientContragentBankAccountToRequest(t),
5500
+ (o) => new vr(o.data),
5432
5501
  i
5433
5502
  );
5434
5503
  }
@@ -5484,7 +5553,7 @@ class H extends re {
5484
5553
  comment: e.comment,
5485
5554
  not_disturb: e.notDisturb
5486
5555
  },
5487
- (i) => new X(i.data),
5556
+ (i) => new ee(i.data),
5488
5557
  t
5489
5558
  );
5490
5559
  }
@@ -5621,7 +5690,7 @@ class H extends re {
5621
5690
  comment: e.comment,
5622
5691
  ...t
5623
5692
  };
5624
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new X(p.data), i);
5693
+ return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new ee(p.data), i);
5625
5694
  }
5626
5695
  /**
5627
5696
  * Устанавливает признак основного контактного лица.
@@ -5650,7 +5719,7 @@ class H extends re {
5650
5719
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5651
5720
  }
5652
5721
  }
5653
- class ii extends h {
5722
+ class ni extends h {
5654
5723
  /**
5655
5724
  * Выполняет проверку занят ли указанный номер телефона.
5656
5725
  *
@@ -5664,7 +5733,7 @@ class ii extends h {
5664
5733
  });
5665
5734
  }
5666
5735
  }
5667
- class ni {
5736
+ class oi {
5668
5737
  /**
5669
5738
  * Инициализирует экземпляр класса {@link VersionConfig}.
5670
5739
  *
@@ -5683,11 +5752,11 @@ class ni {
5683
5752
  * Текущая версия приложения.
5684
5753
  */
5685
5754
  s(this, "version");
5686
- this.date = D(r == null ? void 0 : r.date) ? R(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5755
+ this.date = C(r == null ? void 0 : r.date) ? D(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5687
5756
  }
5688
5757
  }
5689
- var fs = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(fs || {});
5690
- class oi extends h {
5758
+ var vs = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(vs || {});
5759
+ class ci extends h {
5691
5760
  /**
5692
5761
  * Возвращает настройки указанного конфигуратора для указанной категории.
5693
5762
  *
@@ -5717,7 +5786,7 @@ class oi extends h {
5717
5786
  const o = this.get(
5718
5787
  `internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
5719
5788
  { params: t, client_id: e },
5720
- (u) => new U(u.data)
5789
+ (u) => new N(u.data)
5721
5790
  );
5722
5791
  return o.catch((u) => {
5723
5792
  this.errorResponseHandler(u, i);
@@ -5778,7 +5847,7 @@ class oi extends h {
5778
5847
  });
5779
5848
  }
5780
5849
  }
5781
- class ms {
5850
+ class ws {
5782
5851
  /**
5783
5852
  * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5784
5853
  *
@@ -5796,7 +5865,7 @@ class ms {
5796
5865
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
5797
5866
  }
5798
5867
  }
5799
- class ci extends ms {
5868
+ class li extends ws {
5800
5869
  /**
5801
5870
  * Инициализирует экземпляр класса {@link TableDataPagination}.
5802
5871
  *
@@ -5827,7 +5896,7 @@ class ci extends ms {
5827
5896
  this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
5828
5897
  }
5829
5898
  }
5830
- class li {
5899
+ class ui {
5831
5900
  /**
5832
5901
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
5833
5902
  *
@@ -5879,7 +5948,7 @@ class m {
5879
5948
  * @param date Дата.
5880
5949
  */
5881
5950
  static endOfHalfYear(r) {
5882
- return O(new Date(r.getFullYear(), r.getMonth() < 6 ? 5 : 11, 1));
5951
+ return x(new Date(r.getFullYear(), r.getMonth() < 6 ? 5 : 11, 1));
5883
5952
  }
5884
5953
  /**
5885
5954
  * Возвращает дату, сдвинутую на указанное число полугодий.
@@ -5900,8 +5969,8 @@ class m {
5900
5969
  * @param date Опорная дата.
5901
5970
  */
5902
5971
  static intervalTillSameDate(r, e, t) {
5903
- const i = qt(N(t), N(r)), o = N($(e, i)), c = Math.min(Ir(t), Nt(o));
5904
- return { from: ue(e), to: B(Ut(o, c)) };
5972
+ const i = Mt(U(t), U(r)), o = U($(e, i)), c = Math.min(xr(t), Ht(o));
5973
+ return { from: pe(e), to: B(Bt(o, c)) };
5905
5974
  }
5906
5975
  /**
5907
5976
  * Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
@@ -5910,8 +5979,8 @@ class m {
5910
5979
  * @param shiftWeeks Смещение в неделях, может быть отрицательным.
5911
5980
  */
5912
5981
  static weekTillSameWeekday(r, e) {
5913
- const t = Q(gr(r, e), { weekStartsOn: 1 }), i = Je(r, Q(r, { weekStartsOn: 1 }));
5914
- return { from: t, to: B(J(t, i)) };
5982
+ const t = K(fr(r, e), { weekStartsOn: 1 }), i = Ve(r, K(r, { weekStartsOn: 1 }));
5983
+ return { from: t, to: B(X(t, i)) };
5915
5984
  }
5916
5985
  /**
5917
5986
  * Возвращает интервал «сдвинутая декада до такого же номера дня»; если в целевой декаде дня с таким
@@ -5921,8 +5990,8 @@ class m {
5921
5990
  * @param shift Смещение в декадах, может быть отрицательным.
5922
5991
  */
5923
5992
  static decadeTillSameDayNumber(r, e) {
5924
- const [t] = m.shiftedDecadeBounds(r, 0), i = Je(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = Je(c, o) + 1;
5925
- return { from: o, to: B(J(o, Math.min(i, u) - 1)) };
5993
+ const [t] = m.shiftedDecadeBounds(r, 0), i = Ve(r, t) + 1, [o, c] = m.shiftedDecadeBounds(r, e), u = Ve(c, o) + 1;
5994
+ return { from: o, to: B(X(o, Math.min(i, u) - 1)) };
5926
5995
  }
5927
5996
  /**
5928
5997
  * Возвращает пару «начало и конец декады», отстоящей от декады указанной даты на заданное число декад.
@@ -5931,37 +6000,37 @@ class m {
5931
6000
  * @param shift Смещение в декадах, может быть отрицательным.
5932
6001
  */
5933
6002
  static shiftedDecadeBounds(r, e) {
5934
- const t = Ir(r);
6003
+ const t = xr(r);
5935
6004
  let i = 2;
5936
6005
  t <= 10 ? i = 0 : t <= 20 && (i = 1);
5937
- const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = N($(r, c)), g = J(p, u * 10), y = u === 2 ? O(p) : B(J(g, 9));
6006
+ const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = U($(r, c)), g = X(p, u * 10), y = u === 2 ? x(p) : B(X(g, 9));
5938
6007
  return [g, y];
5939
6008
  }
5940
6009
  }
5941
- class ui {
6010
+ class pi {
5942
6011
  /**
5943
6012
  * Возвращает предустановленные диапазоны дат.
5944
6013
  *
5945
6014
  * @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
5946
6015
  */
5947
6016
  static defaultDateRanges(r) {
5948
- const e = Ft(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = ne(r === void 0 ? t : new Date(r, 0, 1)), o = Te(i);
6017
+ const e = Wt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = oe(r === void 0 ? t : new Date(r, 0, 1)), o = Ae(i);
5949
6018
  return {
5950
6019
  // 'Следующий рабочий день' - это значение по-умолчанию
5951
- nextWorkingDay: { label: "Следующий рабочий день", from: ue(e), to: B(e) },
5952
- today: { label: "Сегодня", from: hr(), to: jt() },
5953
- yesterday: { label: "Вчера", from: Wt(), to: Bt() },
5954
- tomorrow: { label: "Завтра", from: Mt(), to: Ht() },
5955
- currentWeek: { label: "Неделя", from: Q(t, { weekStartsOn: 1 }), to: Ae(t, { weekStartsOn: 1 }) },
5956
- currentMonth: { label: "Месяц", from: N(t), to: O(t) },
5957
- oneMonth: { label: "1 месяц", from: i, to: O(i) },
5958
- threeMonths: { label: "3 месяца", from: i, to: O($(i, 2)) },
5959
- nineMonths: { label: "9 месяцев", from: i, to: O($(i, 8)) },
5960
- firstQuarter: { label: "I квартал", from: i, to: O($(i, 2)) },
5961
- secondQuarter: { label: "II квартал", from: $(i, 3), to: O($(i, 5)) },
5962
- thirdQuarter: { label: "III квартал", from: $(i, 6), to: O($(i, 8)) },
5963
- fourthQuarter: { label: "IV квартал", from: $(i, 9), to: O($(i, 11)) },
5964
- firstHalfYear: { label: "I полугодие", from: i, to: O($(i, 5)) },
6020
+ nextWorkingDay: { label: "Следующий рабочий день", from: pe(e), to: B(e) },
6021
+ today: { label: "Сегодня", from: gr(), to: Et() },
6022
+ yesterday: { label: "Вчера", from: zt(), to: Yt() },
6023
+ tomorrow: { label: "Завтра", from: Gt(), to: jt() },
6024
+ currentWeek: { label: "Неделя", from: K(t, { weekStartsOn: 1 }), to: de(t, { weekStartsOn: 1 }) },
6025
+ currentMonth: { label: "Месяц", from: U(t), to: x(t) },
6026
+ oneMonth: { label: "1 месяц", from: i, to: x(i) },
6027
+ threeMonths: { label: "3 месяца", from: i, to: x($(i, 2)) },
6028
+ nineMonths: { label: "9 месяцев", from: i, to: x($(i, 8)) },
6029
+ firstQuarter: { label: "I квартал", from: i, to: x($(i, 2)) },
6030
+ secondQuarter: { label: "II квартал", from: $(i, 3), to: x($(i, 5)) },
6031
+ thirdQuarter: { label: "III квартал", from: $(i, 6), to: x($(i, 8)) },
6032
+ fourthQuarter: { label: "IV квартал", from: $(i, 9), to: x($(i, 11)) },
6033
+ firstHalfYear: { label: "I полугодие", from: i, to: x($(i, 5)) },
5965
6034
  secondHalfYear: { label: "II полугодие", from: $(i, 6), to: o },
5966
6035
  currentYear: { label: "12 месяцев", from: i, to: o }
5967
6036
  };
@@ -5974,23 +6043,23 @@ class ui {
5974
6043
  * @param now Опорная дата «сейчас»; по умолчанию текущая.
5975
6044
  */
5976
6045
  static standardPeriods(r = /* @__PURE__ */ new Date()) {
5977
- const e = { weekStartsOn: 1 }, t = ue(r), i = B(r), o = m.decadeInterval(r), c = N(r), u = de(r), p = m.startOfHalfYear(r), g = ne(r), y = m.addHalfYears(r, -1), C = m.addHalfYears(r, 1);
6046
+ const e = { weekStartsOn: 1 }, t = pe(r), i = B(r), o = m.decadeInterval(r), c = U(r), u = Se(r), p = m.startOfHalfYear(r), g = oe(r), y = m.addHalfYears(r, -1), R = m.addHalfYears(r, 1);
5978
6047
  return {
5979
- yesterday: { label: "Вчера", group: "day", from: ue(Ve(r, 1)), to: B(Ve(r, 1)) },
6048
+ yesterday: { label: "Вчера", group: "day", from: pe(Ke(r, 1)), to: B(Ke(r, 1)) },
5980
6049
  today: { label: "Сегодня", group: "day", from: t, to: i },
5981
- tomorrow: { label: "Завтра", group: "day", from: ue(J(r, 1)), to: B(J(r, 1)) },
5982
- lastWeek: { label: "Прошлая неделя", group: "week", from: Q(xr(r, 1), e), to: Ae(xr(r, 1), e) },
5983
- thisWeek: { label: "Эта неделя", group: "week", from: Q(r, e), to: Ae(r, e) },
5984
- nextWeek: { label: "Следующая неделя", group: "week", from: Q(gr(r, 1), e), to: Ae(gr(r, 1), e) },
6050
+ tomorrow: { label: "Завтра", group: "day", from: pe(X(r, 1)), to: B(X(r, 1)) },
6051
+ lastWeek: { label: "Прошлая неделя", group: "week", from: K(_r(r, 1), e), to: de(_r(r, 1), e) },
6052
+ thisWeek: { label: "Эта неделя", group: "week", from: K(r, e), to: de(r, e) },
6053
+ nextWeek: { label: "Следующая неделя", group: "week", from: K(fr(r, 1), e), to: de(fr(r, 1), e) },
5985
6054
  lastTenDays: { label: "Прошлая декада", group: "decade", ...m.shiftDecadeInterval(r, -1) },
5986
6055
  thisTenDays: { label: "Эта декада", group: "decade", ...o },
5987
6056
  nextTenDays: { label: "Следующая декада", group: "decade", ...m.shiftDecadeInterval(r, 1) },
5988
- lastMonth: { label: "Прошлый месяц", group: "month", from: N(rr(r, 1)), to: O(rr(r, 1)) },
5989
- thisMonth: { label: "Этот месяц", group: "month", from: c, to: O(r) },
5990
- nextMonth: { label: "Следующий месяц", group: "month", from: N($(r, 1)), to: O($(r, 1)) },
5991
- lastQuarter: { label: "Прошлый квартал", group: "quarter", from: de(er(r, 1)), to: Fe(er(r, 1)) },
6057
+ lastMonth: { label: "Прошлый месяц", group: "month", from: U(tr(r, 1)), to: x(tr(r, 1)) },
6058
+ thisMonth: { label: "Этот месяц", group: "month", from: c, to: x(r) },
6059
+ nextMonth: { label: "Следующий месяц", group: "month", from: U($(r, 1)), to: x($(r, 1)) },
6060
+ lastQuarter: { label: "Прошлый квартал", group: "quarter", from: Se(rr(r, 1)), to: Fe(rr(r, 1)) },
5992
6061
  thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Fe(r) },
5993
- nextQuarter: { label: "Следующий квартал", group: "quarter", from: de(Xe(r, 1)), to: Fe(Xe(r, 1)) },
6062
+ nextQuarter: { label: "Следующий квартал", group: "quarter", from: Se(Ze(r, 1)), to: Fe(Ze(r, 1)) },
5994
6063
  lastHalfYear: {
5995
6064
  label: "Прошлое полугодие",
5996
6065
  group: "halfYear",
@@ -5998,22 +6067,22 @@ class ui {
5998
6067
  to: m.endOfHalfYear(y)
5999
6068
  },
6000
6069
  thisHalfYear: { label: "Это полугодие", group: "halfYear", from: p, to: m.endOfHalfYear(r) },
6001
- nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: m.startOfHalfYear(C), to: m.endOfHalfYear(C) },
6002
- lastYear: { label: "Прошлый год", group: "year", from: ne(Ze(r, 1)), to: Te(Ze(r, 1)) },
6003
- thisYear: { label: "Этот год", group: "year", from: g, to: Te(r) },
6004
- nextYear: { label: "Следующий год", group: "year", from: ne(Ke(r, 1)), to: Te(Ke(r, 1)) },
6005
- fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: Q(r, e), to: i },
6070
+ nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: m.startOfHalfYear(R), to: m.endOfHalfYear(R) },
6071
+ lastYear: { label: "Прошлый год", group: "year", from: oe(er(r, 1)), to: Ae(er(r, 1)) },
6072
+ thisYear: { label: "Этот год", group: "year", from: g, to: Ae(r) },
6073
+ nextYear: { label: "Следующий год", group: "year", from: oe(Xe(r, 1)), to: Ae(Xe(r, 1)) },
6074
+ fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: K(r, e), to: i },
6006
6075
  fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
6007
6076
  fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
6008
6077
  fromBeginningOfThisQuarter: { label: "С начала этого квартала", group: "other", section: "fromBeginning", from: u, to: i },
6009
6078
  fromBeginningOfThisHalfYear: { label: "С начала этого полугодия", group: "other", section: "fromBeginning", from: p, to: i },
6010
6079
  fromBeginningOfThisYear: { label: "С начала этого года", group: "other", section: "fromBeginning", from: g, to: i },
6011
- tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: Ae(r, e) },
6080
+ tillEndOfThisWeek: { label: "До конца этой недели", group: "other", section: "tillEnd", from: t, to: de(r, e) },
6012
6081
  tillEndOfThisTenDays: { label: "До конца этой декады", group: "other", section: "tillEnd", from: t, to: o.to },
6013
- tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: O(r) },
6082
+ tillEndOfThisMonth: { label: "До конца этого месяца", group: "other", section: "tillEnd", from: t, to: x(r) },
6014
6083
  tillEndOfThisQuarter: { label: "До конца этого квартала", group: "other", section: "tillEnd", from: t, to: Fe(r) },
6015
6084
  tillEndOfThisHalfYear: { label: "До конца этого полугодия", group: "other", section: "tillEnd", from: t, to: m.endOfHalfYear(r) },
6016
- tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: Te(r) },
6085
+ tillEndOfThisYear: { label: "До конца этого года", group: "other", section: "tillEnd", from: t, to: Ae(r) },
6017
6086
  lastWeekTillSameWeekDay: { label: "Прошлая неделя, до такого же дня недели", group: "other", section: "lastTillSame", ...m.weekTillSameWeekday(r, -1) },
6018
6087
  lastTenDaysTillSameDayNumber: {
6019
6088
  label: "Прошлая декада, до такого же номера дня",
@@ -6025,13 +6094,13 @@ class ui {
6025
6094
  label: "Прошлый месяц, до такой же даты",
6026
6095
  group: "other",
6027
6096
  section: "lastTillSame",
6028
- ...m.intervalTillSameDate(c, N(rr(r, 1)), r)
6097
+ ...m.intervalTillSameDate(c, U(tr(r, 1)), r)
6029
6098
  },
6030
6099
  lastQuarterTillSameDate: {
6031
6100
  label: "Прошлый квартал, до такой же даты",
6032
6101
  group: "other",
6033
6102
  section: "lastTillSame",
6034
- ...m.intervalTillSameDate(u, de(er(r, 1)), r)
6103
+ ...m.intervalTillSameDate(u, Se(rr(r, 1)), r)
6035
6104
  },
6036
6105
  lastHalfYearTillSameDate: {
6037
6106
  label: "Прошлое полугодие, до такой же даты",
@@ -6043,7 +6112,7 @@ class ui {
6043
6112
  label: "Прошлый год, до такой же даты",
6044
6113
  group: "other",
6045
6114
  section: "lastTillSame",
6046
- ...m.intervalTillSameDate(g, ne(Ze(r, 1)), r)
6115
+ ...m.intervalTillSameDate(g, oe(er(r, 1)), r)
6047
6116
  },
6048
6117
  nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...m.weekTillSameWeekday(r, 1) },
6049
6118
  nextTenDaysTillSameDayNumber: {
@@ -6056,32 +6125,32 @@ class ui {
6056
6125
  label: "Следующий месяц, до такой же даты",
6057
6126
  group: "other",
6058
6127
  section: "nextTillSame",
6059
- ...m.intervalTillSameDate(c, N($(r, 1)), r)
6128
+ ...m.intervalTillSameDate(c, U($(r, 1)), r)
6060
6129
  },
6061
6130
  nextQuarterTillSameDate: {
6062
6131
  label: "Следующий квартал, до такой же даты",
6063
6132
  group: "other",
6064
6133
  section: "nextTillSame",
6065
- ...m.intervalTillSameDate(u, de(Xe(r, 1)), r)
6134
+ ...m.intervalTillSameDate(u, Se(Ze(r, 1)), r)
6066
6135
  },
6067
6136
  nextHalfYearTillSameDate: {
6068
6137
  label: "Следующее полугодие, до такой же даты",
6069
6138
  group: "other",
6070
6139
  section: "nextTillSame",
6071
- ...m.intervalTillSameDate(p, m.startOfHalfYear(C), r)
6140
+ ...m.intervalTillSameDate(p, m.startOfHalfYear(R), r)
6072
6141
  },
6073
6142
  nextYearTillSameDate: {
6074
6143
  label: "Следующий год, до такой же даты",
6075
6144
  group: "other",
6076
6145
  section: "nextTillSame",
6077
- ...m.intervalTillSameDate(g, ne(Ke(r, 1)), r)
6146
+ ...m.intervalTillSameDate(g, oe(Xe(r, 1)), r)
6078
6147
  },
6079
- last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: ue(Ve(r, 6)), to: i },
6080
- next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: B(J(r, 6)) }
6148
+ last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: pe(Ke(r, 6)), to: i },
6149
+ next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: B(X(r, 6)) }
6081
6150
  };
6082
6151
  }
6083
6152
  }
6084
- const pi = [
6153
+ const hi = [
6085
6154
  { key: "day", label: "День" },
6086
6155
  { key: "week", label: "Неделя" },
6087
6156
  { key: "decade", label: "Декада" },
@@ -6090,14 +6159,14 @@ const pi = [
6090
6159
  { key: "halfYear", label: "Полугодие" },
6091
6160
  { key: "year", label: "Год" },
6092
6161
  { key: "other", label: "Прочее" }
6093
- ], hi = [
6162
+ ], gi = [
6094
6163
  { key: "fromBeginning", label: "С начала периода" },
6095
6164
  { key: "tillEnd", label: "До конца периода" },
6096
6165
  { key: "lastTillSame", label: "Прошлые, до такой же даты" },
6097
6166
  { key: "nextTillSame", label: "Следующие, до такой же даты" },
6098
6167
  { key: "rollingDays", label: "7 дней" }
6099
6168
  ];
6100
- class yt {
6169
+ class vt {
6101
6170
  /**
6102
6171
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
6103
6172
  *
@@ -6113,7 +6182,7 @@ class yt {
6113
6182
  */
6114
6183
  static getProductMultiplicity(r) {
6115
6184
  var e, t;
6116
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !yt.productIsMeasurable(r) ? r.properties.minCount : 1;
6185
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !vt.productIsMeasurable(r) ? r.properties.minCount : 1;
6117
6186
  }
6118
6187
  /**
6119
6188
  * Возвращает кратность длины для указанного товара.
@@ -6125,7 +6194,7 @@ class yt {
6125
6194
  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;
6126
6195
  }
6127
6196
  }
6128
- const ge = class ge extends h {
6197
+ const fe = class fe extends h {
6129
6198
  /**
6130
6199
  * Инициализирует экземпляр класса {@link HttpCachedRequester}.
6131
6200
  */
@@ -6135,7 +6204,7 @@ const ge = class ge extends h {
6135
6204
  * Время кэширования данных ответов на запросы (секунд).
6136
6205
  */
6137
6206
  s(this, "responseDataCacheTimeout");
6138
- this.responseDataCacheTimeout = I().config.http.responseDataCacheTimeout;
6207
+ this.responseDataCacheTimeout = k().config.http.responseDataCacheTimeout;
6139
6208
  }
6140
6209
  /**
6141
6210
  * Возвращает кэшированные данные.
@@ -6145,7 +6214,7 @@ const ge = class ge extends h {
6145
6214
  */
6146
6215
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6147
6216
  static getCachedResponse(e) {
6148
- const t = ge.responseDataCache.get(e);
6217
+ const t = fe.responseDataCache.get(e);
6149
6218
  if (t && t.validTo > /* @__PURE__ */ new Date())
6150
6219
  return t.val;
6151
6220
  }
@@ -6156,8 +6225,8 @@ const ge = class ge extends h {
6156
6225
  * @param data Данные для кэширования.
6157
6226
  */
6158
6227
  cacheResponse(e, t) {
6159
- ge.responseDataCache.set(e, {
6160
- validTo: Gt(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6228
+ fe.responseDataCache.set(e, {
6229
+ validTo: Qt(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
6161
6230
  val: t
6162
6231
  });
6163
6232
  }
@@ -6173,25 +6242,25 @@ const ge = class ge extends h {
6173
6242
  */
6174
6243
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
6175
6244
  getTypedDataArrayRequester(e, t, i = !1, o = {}, c = void 0) {
6176
- const u = t + (me(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? ge.getCachedResponse(u) : void 0;
6245
+ const u = t + (ye(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? fe.getCachedResponse(u) : void 0;
6177
6246
  return p ? Promise.resolve(p) : this.getTypedList(e, t, o, !1, c).then((g) => (i && g && this.cacheResponse(u, g), g));
6178
6247
  }
6179
6248
  };
6180
6249
  /**
6181
6250
  * Кэш результатов запросов.
6182
6251
  */
6183
- s(ge, "responseDataCache", /* @__PURE__ */ new Map());
6184
- let xe = ge;
6185
- function gi(n, r) {
6252
+ s(fe, "responseDataCache", /* @__PURE__ */ new Map());
6253
+ let _e = fe;
6254
+ function fi(n, r) {
6186
6255
  const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
6187
6256
  return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
6188
6257
  }
6189
- class fi {
6258
+ class mi {
6190
6259
  /**
6191
6260
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
6192
6261
  */
6193
6262
  static generateUndefinedManagerInstance() {
6194
- return new Ne({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6263
+ return new V({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
6195
6264
  }
6196
6265
  /**
6197
6266
  * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
@@ -6202,19 +6271,29 @@ class fi {
6202
6271
  return r.id === 0 && r.guid === "-undefined-";
6203
6272
  }
6204
6273
  }
6205
- class ys extends xe {
6274
+ class wt extends _e {
6206
6275
  /**
6207
6276
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
6208
6277
  */
6209
6278
  async getManagers() {
6210
- const r = "/internal/managers", e = xe.getCachedResponse(r);
6279
+ const r = "/internal/managers", e = _e.getCachedResponse(r);
6211
6280
  if (e)
6212
6281
  return e;
6213
- const t = await this.get(r), i = _.instanceListInitializer(Ne, t.data);
6282
+ const t = await this.get(r), i = _.instanceListInitializer(V, t.data);
6214
6283
  return this.cacheResponse(r, i), i;
6215
6284
  }
6285
+ /**
6286
+ * Возвращает {@link Promise} для получения полных данных о менеджере с указанным идентификатором.
6287
+ *
6288
+ * @param managerId Идентификатор менеджера.
6289
+ *
6290
+ * @see /doc/api/internal#/operations/api_internal_managers_get
6291
+ */
6292
+ getManager(r) {
6293
+ return this.get(`/internal/managers/${r}`, {}, (e) => new V(e.data));
6294
+ }
6216
6295
  }
6217
- class at extends G {
6296
+ class Ct extends G {
6218
6297
  /**
6219
6298
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
6220
6299
  *
@@ -6238,10 +6317,10 @@ class at extends G {
6238
6317
  * @inheritDoc
6239
6318
  */
6240
6319
  s(this, "sum");
6241
- this.name = e == null ? void 0 : e.name, this.createdAt = D(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new te(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum;
6320
+ this.name = e == null ? void 0 : e.name, this.createdAt = C(e == null ? void 0 : e.createdAt) ? D(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new se(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum;
6242
6321
  }
6243
6322
  }
6244
- class le extends at {
6323
+ class ue extends Ct {
6245
6324
  /**
6246
6325
  * Инициализирует экземпляр класса {@link Offer}.
6247
6326
  *
@@ -6257,10 +6336,10 @@ class le extends at {
6257
6336
  * @inheritDoc
6258
6337
  */
6259
6338
  s(this, "products");
6260
- this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new rt(t));
6339
+ this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new st(t));
6261
6340
  }
6262
6341
  }
6263
- class mi extends _e {
6342
+ class yi extends qe {
6264
6343
  /**
6265
6344
  * Инициализирует экземпляр класса {@link OffersListFilters}.
6266
6345
  *
@@ -6301,9 +6380,9 @@ class mi extends _e {
6301
6380
  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;
6302
6381
  }
6303
6382
  }
6304
- class Ye extends a {
6383
+ class ze extends v {
6305
6384
  }
6306
- class vt extends mt {
6385
+ class Dt extends at {
6307
6386
  /**
6308
6387
  * Инициализирует экземпляр класса {@link OrderInfo}.
6309
6388
  *
@@ -6360,19 +6439,19 @@ class vt extends mt {
6360
6439
  * @inheritDoc
6361
6440
  */
6362
6441
  s(this, "isLargeOrder");
6363
- this.client = new te(e == null ? void 0 : e.client), this.payment = {
6442
+ this.client = new se(e == null ? void 0 : e.client), this.payment = {
6364
6443
  type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
6365
6444
  status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
6366
6445
  onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
6367
6446
  }, this.delivery = {
6368
6447
  type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
6369
- date: D((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? R(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
6370
- address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new Le(e.delivery.address) : void 0,
6371
- warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new qe(e.delivery.warehouse) : void 0
6372
- }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new Ye(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new a(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = D(e == null ? void 0 : e.attachedAt) ? R(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.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;
6448
+ date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? D(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
6449
+ address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new Oe(e.delivery.address) : void 0,
6450
+ warehouse: (y = e == null ? void 0 : e.delivery) != null && y.warehouse ? new Ne(e.delivery.warehouse) : void 0
6451
+ }, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new ze(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new v(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = C(e == null ? void 0 : e.attachedAt) ? D(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
6373
6452
  }
6374
6453
  }
6375
- class as extends et {
6454
+ class Cs extends tt {
6376
6455
  /**
6377
6456
  * Инициализирует экземпляр класса {@link OrderItem}.
6378
6457
  *
@@ -6429,10 +6508,10 @@ class as extends et {
6429
6508
  * Продукт, которым заменена текущая запись.
6430
6509
  */
6431
6510
  s(this, "replacement");
6432
- this.product = new K(e.product), this.currency = new j(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
6511
+ this.product = new J(e.product), this.currency = new j(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
6433
6512
  }
6434
6513
  }
6435
- class L extends vt {
6514
+ class I extends Dt {
6436
6515
  /**
6437
6516
  * Инициализирует экземпляр класса {@link Order}.
6438
6517
  *
@@ -6496,11 +6575,11 @@ class L extends vt {
6496
6575
  this.products = (e.products ?? []).map((i) => {
6497
6576
  var c;
6498
6577
  const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
6499
- return new as(i, o);
6500
- }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? je.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new a(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new Ye(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6578
+ return new Cs(i, o);
6579
+ }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? je.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new v(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new ze(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
6501
6580
  }
6502
6581
  }
6503
- class yi extends re {
6582
+ class ai extends Y {
6504
6583
  /**
6505
6584
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
6506
6585
  *
@@ -6512,7 +6591,7 @@ class yi extends re {
6512
6591
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
6513
6592
  */
6514
6593
  getOffers(r, e, t, i = void 0) {
6515
- return this.getTypedPaginated(at, "/internal/orders/offers", r, e, t, {}, void 0, i);
6594
+ return this.getTypedPaginated(Ct, "/internal/orders/offers", r, e, t, {}, void 0, i);
6516
6595
  }
6517
6596
  /**
6518
6597
  * Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
@@ -6531,7 +6610,7 @@ class yi extends re {
6531
6610
  name: e,
6532
6611
  items: t != null && t.length ? t : void 0
6533
6612
  },
6534
- (i) => new le(i.data)
6613
+ (i) => new ue(i.data)
6535
6614
  );
6536
6615
  }
6537
6616
  /**
@@ -6542,7 +6621,7 @@ class yi extends re {
6542
6621
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get
6543
6622
  */
6544
6623
  getOffer(r) {
6545
- return this.get(`/internal/orders/offers/${r}`, {}, (e) => new le(e.data));
6624
+ return this.get(`/internal/orders/offers/${r}`, {}, (e) => new ue(e.data));
6546
6625
  }
6547
6626
  /**
6548
6627
  * Обновляет данные заказа-черновика и возвращает обновлённые данные.
@@ -6553,7 +6632,7 @@ class yi extends re {
6553
6632
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_change
6554
6633
  */
6555
6634
  updateOffer(r, e) {
6556
- return this.patch(`/internal/orders/offers/${r}`, { name: e }, (t) => new le(t.data));
6635
+ return this.patch(`/internal/orders/offers/${r}`, { name: e }, (t) => new ue(t.data));
6557
6636
  }
6558
6637
  /**
6559
6638
  * Удаляет заказ-черновик.
@@ -6579,15 +6658,15 @@ class yi extends re {
6579
6658
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_create_order
6580
6659
  */
6581
6660
  createOrderFromDraft(r, e, t, i = {}) {
6582
- const o = I().config.dateFormats.api;
6661
+ const o = k().config.dateFormats.api;
6583
6662
  return this.post(
6584
6663
  `/internal/orders/offers/${r}/create-order`,
6585
6664
  {
6586
6665
  ...e,
6587
- deliveryDate: e.deliveryDate ? x(e.deliveryDate, o) : void 0,
6666
+ deliveryDate: e.deliveryDate ? L(e.deliveryDate, o) : void 0,
6588
6667
  items: t != null && t.length ? t : void 0
6589
6668
  },
6590
- (c) => _.instanceListInitializer(L, c.data),
6669
+ (c) => _.instanceListInitializer(I, c.data),
6591
6670
  i
6592
6671
  );
6593
6672
  }
@@ -6616,7 +6695,7 @@ class yi extends re {
6616
6695
  is_additional_sale: e.isAdditionalSale,
6617
6696
  ...e.configuratorParams
6618
6697
  },
6619
- (i) => new le(i.data),
6698
+ (i) => new ue(i.data),
6620
6699
  t
6621
6700
  );
6622
6701
  }
@@ -6646,7 +6725,7 @@ class yi extends re {
6646
6725
  is_additional_sale: t.isAdditionalSale,
6647
6726
  ...t.configuratorParams
6648
6727
  },
6649
- (o) => new le(o.data),
6728
+ (o) => new ue(o.data),
6650
6729
  i
6651
6730
  );
6652
6731
  }
@@ -6659,7 +6738,7 @@ class yi extends re {
6659
6738
  * @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_product_delete
6660
6739
  */
6661
6740
  deleteOfferProduct(r, e) {
6662
- return this.delete(`/internal/orders/offers/${r}/products/${e}`, (t) => new le(t.data));
6741
+ return this.delete(`/internal/orders/offers/${r}/products/${e}`, (t) => new ue(t.data));
6663
6742
  }
6664
6743
  /**
6665
6744
  * Возвращает содержимое печатной формы заказа-черновика в формате HTML.
@@ -6699,8 +6778,8 @@ class yi extends re {
6699
6778
  return this.post(`/internal/orders/offers/${r}/send`, e);
6700
6779
  }
6701
6780
  }
6702
- var vs = /* @__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))(vs || {});
6703
- class ai {
6781
+ var Ds = /* @__PURE__ */ ((n) => (n.View = "view", n.Share = "share", n.EditTags = "edit_tags", n.SaveOrderIgnoredProducts = "save_order_ignored_products", n.ChangeStatus = "change_status", n.ChangeProducts = "change_products", n.ChangeOrderParameters = "change_order_parameters", n.Recalculate = "recalculate", n.AttachOrder = "attach_order", n.DetachOrder = "detach_order", n.ChangeAttachedOperator = "change_attached_operator", n.SendOnlinePaymentLink = "send_online_payment_link", n.ConfirmOnlineFullPayment = "confirm_online_full_payment", n.MergeOrders = "merge_orders", n.GetHistory = "get_history", n.CloneOrder = "clone_order", n.DeleteAttachedFile = "delete_attached_file", n))(Ds || {});
6782
+ class vi {
6704
6783
  /**
6705
6784
  * Инициализирует экземпляр класса {@link OrderEditorData}.
6706
6785
  *
@@ -6767,11 +6846,11 @@ class ai {
6767
6846
  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;
6768
6847
  }
6769
6848
  }
6770
- class wt extends a {
6849
+ class Rt extends v {
6771
6850
  }
6772
- class Ct extends a {
6851
+ class bt extends v {
6773
6852
  }
6774
- class vi extends _e {
6853
+ class wi extends qe {
6775
6854
  /**
6776
6855
  * Инициализирует экземпляр класса {@link OrdersListFilters}.
6777
6856
  *
@@ -6872,7 +6951,7 @@ class vi extends _e {
6872
6951
  * @inheritDoc
6873
6952
  */
6874
6953
  s(this, "onlyMyRegions");
6875
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Ne(u) : new wt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new te(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new A(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new ve(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new A(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new F(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new E(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Ct(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new qe(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6954
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new V(u) : new Rt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new se(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new A(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new we(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new A(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new F(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new Q(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new bt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Ne(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6876
6955
  }
6877
6956
  /**
6878
6957
  * @inheritDoc
@@ -6889,7 +6968,7 @@ class vi extends _e {
6889
6968
  this.deliveryDate.from = null, this.deliveryDate.to = null;
6890
6969
  break;
6891
6970
  case "deliveryType":
6892
- this.deliveryType = new E();
6971
+ this.deliveryType = new Q();
6893
6972
  break;
6894
6973
  case "clientCities":
6895
6974
  this.clientCities = [];
@@ -6923,7 +7002,7 @@ class vi extends _e {
6923
7002
  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;
6924
7003
  }
6925
7004
  }
6926
- class ws {
7005
+ class Rs {
6927
7006
  /**
6928
7007
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
6929
7008
  *
@@ -6946,10 +7025,10 @@ class ws {
6946
7025
  * @inheritDoc
6947
7026
  */
6948
7027
  s(this, "createdAt");
6949
- this.user = new q(r == null ? void 0 : r.user), this.status = new Ye(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new a(r.statusDetail) : void 0, this.createdAt = D(r == null ? void 0 : r.createdAt) ? R(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
7028
+ this.user = new q(r == null ? void 0 : r.user), this.status = new ze(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new v(r.statusDetail) : void 0, this.createdAt = C(r == null ? void 0 : r.createdAt) ? D(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6950
7029
  }
6951
7030
  }
6952
- class wi extends re {
7031
+ class Ci extends Y {
6953
7032
  /**
6954
7033
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
6955
7034
  *
@@ -6961,7 +7040,7 @@ class wi extends re {
6961
7040
  * @see /doc/api/internal#/Заказы/api_internal_orders_get_list
6962
7041
  */
6963
7042
  getOrders(r, e, t, i = void 0) {
6964
- return this.getTypedPaginated(vt, "/internal/orders", r, e, t, {}, void 0, i);
7043
+ return this.getTypedPaginated(Dt, "/internal/orders", r, e, t, {}, void 0, i);
6965
7044
  }
6966
7045
  /**
6967
7046
  * Возвращает количество заказов, соответствующих указанным фильтрам.
@@ -6974,7 +7053,7 @@ class wi extends re {
6974
7053
  getOrdersCount(r, e = void 0) {
6975
7054
  return this.get(
6976
7055
  "/internal/orders/count",
6977
- r ? { filters: JSON.stringify((r instanceof V ? r : new V(r)).toPrimitive()) } : {},
7056
+ r ? { filters: JSON.stringify((r instanceof Z ? r : new Z(r)).toPrimitive()) } : {},
6978
7057
  void 0,
6979
7058
  void 0,
6980
7059
  e
@@ -6997,7 +7076,7 @@ class wi extends re {
6997
7076
  * @see /doc/api/internal#/Заказы/api_internal_orders_get
6998
7077
  */
6999
7078
  getOrder(r) {
7000
- return this.get(`/internal/orders/${r}`, {}, (e) => new L(e.data));
7079
+ return this.get(`/internal/orders/${r}`, {}, (e) => new I(e.data));
7001
7080
  }
7002
7081
  /**
7003
7082
  * Создаёт новый заказ клиента из содержимого корзины текущего пользователя.
@@ -7015,15 +7094,15 @@ class wi extends re {
7015
7094
  * @see /doc/api/internal#/operations/api_internal_client_orders_create
7016
7095
  */
7017
7096
  createClientOrder(r, e, t, i, o = {}) {
7018
- const c = I().config.dateFormats.api;
7097
+ const c = k().config.dateFormats.api;
7019
7098
  return this.post(
7020
7099
  `/internal/clients/${r}/orders/${e}`,
7021
7100
  {
7022
7101
  ...t,
7023
- deliveryDate: x(t.deliveryDate, c),
7102
+ deliveryDate: L(t.deliveryDate, c),
7024
7103
  items: i != null && i.length ? i : void 0
7025
7104
  },
7026
- (u) => _.instanceListInitializer(L, u.data),
7105
+ (u) => _.instanceListInitializer(I, u.data),
7027
7106
  o
7028
7107
  );
7029
7108
  }
@@ -7035,7 +7114,7 @@ class wi extends re {
7035
7114
  * @see /doc/api/internal#/Заказы/api_internal_orders_attach
7036
7115
  */
7037
7116
  attachOrder(r) {
7038
- return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new L(e.data));
7117
+ return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new I(e.data));
7039
7118
  }
7040
7119
  /**
7041
7120
  * Открепляет указанный заказ от оператора и возвращает полные данные заказа.
@@ -7045,7 +7124,7 @@ class wi extends re {
7045
7124
  * @see /doc/api/internal#/Заказы/api_internal_orders_detach
7046
7125
  */
7047
7126
  detachOrder(r) {
7048
- return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new L(e.data));
7127
+ return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new I(e.data));
7049
7128
  }
7050
7129
  /**
7051
7130
  * Объединяет указанные заказы в базовый заказ и возвращает обновлённые данные базового заказа.
@@ -7056,7 +7135,7 @@ class wi extends re {
7056
7135
  * @see /doc/api/internal#/Заказы/api_internal_orders_merge
7057
7136
  */
7058
7137
  mergeOrders(r, e) {
7059
- return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new L(t.data));
7138
+ return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new I(t.data));
7060
7139
  }
7061
7140
  /**
7062
7141
  * Пересчитывает стоимость корзины указанного заказа и возвращает обновлённые данные заказа.
@@ -7066,7 +7145,7 @@ class wi extends re {
7066
7145
  * @see /doc/api/internal#/Заказы/api_internal_orders_recalculate
7067
7146
  */
7068
7147
  recalculateOrder(r) {
7069
- return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new L(e.data));
7148
+ return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new I(e.data));
7070
7149
  }
7071
7150
  /**
7072
7151
  * Копирует товары указанного заказа в текущую корзину пользователя.
@@ -7090,14 +7169,14 @@ class wi extends re {
7090
7169
  * @see /doc/api/internal#/Заказы/api_internal_orders_update
7091
7170
  */
7092
7171
  updateOrder(r, e, t = {}) {
7093
- const i = I().config.dateFormats.api;
7172
+ const i = k().config.dateFormats.api;
7094
7173
  return this.patch(
7095
7174
  `/internal/orders/${r}`,
7096
7175
  {
7097
7176
  ...e,
7098
- deliveryDate: e.deliveryDate ? x(e.deliveryDate, i) : void 0
7177
+ deliveryDate: e.deliveryDate ? L(e.deliveryDate, i) : void 0
7099
7178
  },
7100
- (o) => new L(o.data),
7179
+ (o) => new I(o.data),
7101
7180
  t
7102
7181
  );
7103
7182
  }
@@ -7127,7 +7206,7 @@ class wi extends re {
7127
7206
  is_additional_sale: e.isAdditionalSale,
7128
7207
  ...e.configuratorParams
7129
7208
  },
7130
- (i) => new L(i.data),
7209
+ (i) => new I(i.data),
7131
7210
  t
7132
7211
  );
7133
7212
  }
@@ -7150,7 +7229,7 @@ class wi extends re {
7150
7229
  status: e,
7151
7230
  statusDetail: t
7152
7231
  },
7153
- (o) => new L(o.data),
7232
+ (o) => new I(o.data),
7154
7233
  i
7155
7234
  );
7156
7235
  }
@@ -7164,7 +7243,7 @@ class wi extends re {
7164
7243
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_change
7165
7244
  */
7166
7245
  changeOrderStatusDetail(r, e) {
7167
- return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new L(t.data));
7246
+ return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new I(t.data));
7168
7247
  }
7169
7248
  /**
7170
7249
  * Возвращает историю изменения статусов заказа.
@@ -7174,7 +7253,7 @@ class wi extends re {
7174
7253
  * @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
7175
7254
  */
7176
7255
  getOrderStatusHistory(r) {
7177
- return this.getTypedList(ws, `/internal/orders/${r}/history`);
7256
+ return this.getTypedList(Rs, `/internal/orders/${r}/history`);
7178
7257
  }
7179
7258
  /**
7180
7259
  * Возвращает содержимое печатной формы заказа в формате HTML.
@@ -7218,7 +7297,7 @@ class wi extends re {
7218
7297
  * @see /doc/api/internal#/Заказы/api_internal_orders_change_attached_operator
7219
7298
  */
7220
7299
  changeAttachedOperator(r, e) {
7221
- return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new L(t.data));
7300
+ return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new I(t.data));
7222
7301
  }
7223
7302
  /**
7224
7303
  * Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
@@ -7228,7 +7307,7 @@ class wi extends re {
7228
7307
  * @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
7229
7308
  */
7230
7309
  deleteOrderAttachedFile(r) {
7231
- return this.delete(`/internal/orders/${r}/file/attached`, (e) => new L(e.data));
7310
+ return this.delete(`/internal/orders/${r}/file/attached`, (e) => new I(e.data));
7232
7311
  }
7233
7312
  /**
7234
7313
  * Удаляет продукт из заказа и возвращает обновлённые данные заказа.
@@ -7239,7 +7318,7 @@ class wi extends re {
7239
7318
  * @see /doc/api/internal#/operations/api_internal_orders_product_delete
7240
7319
  */
7241
7320
  deleteOrderProduct(r, e) {
7242
- return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new L(t.data));
7321
+ return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new I(t.data));
7243
7322
  }
7244
7323
  /**
7245
7324
  * Изменяет продукт заказа и возвращает обновлённые данные заказа.
@@ -7268,7 +7347,7 @@ class wi extends re {
7268
7347
  is_additional_sale: t.isAdditionalSale,
7269
7348
  ...t.configuratorParams
7270
7349
  },
7271
- (o) => new L(o.data),
7350
+ (o) => new I(o.data),
7272
7351
  i
7273
7352
  );
7274
7353
  }
@@ -7303,11 +7382,11 @@ class wi extends re {
7303
7382
  * @see /doc/api/internal#/operations/api_internal_orders_delivery_get_cost
7304
7383
  */
7305
7384
  getDeliveryCost(r, e, t, i = void 0) {
7306
- const o = I().config.dateFormats.api;
7385
+ const o = k().config.dateFormats.api;
7307
7386
  return this.get(
7308
7387
  `/internal/orders/delivery/${r}/cost`,
7309
7388
  {
7310
- date: x(e, o),
7389
+ date: L(e, o),
7311
7390
  warehouse_id: t
7312
7391
  },
7313
7392
  (c) => c.data,
@@ -7316,8 +7395,8 @@ class wi extends re {
7316
7395
  );
7317
7396
  }
7318
7397
  }
7319
- const Ci = Symbol("currentOrder");
7320
- class cr {
7398
+ const Di = Symbol("currentOrder");
7399
+ class lr {
7321
7400
  /**
7322
7401
  * Инициализирует экземпляр класса {@link PriceAnalyze}.
7323
7402
  *
@@ -7344,12 +7423,12 @@ class cr {
7344
7423
  * Источник клиентской цены.
7345
7424
  */
7346
7425
  s(this, "source");
7347
- this.client = new te(r == null ? void 0 : r.client), this.product = new U(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) ?? Tr.Product;
7426
+ this.client = new se(r == null ? void 0 : r.client), this.product = new N(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? dr.Product;
7348
7427
  }
7349
7428
  }
7350
- const lr = (n) => {
7429
+ const ur = (n) => {
7351
7430
  var r, e, t, i, o;
7352
- return n ? Qr(
7431
+ return n ? Vr(
7353
7432
  {
7354
7433
  cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
7355
7434
  clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
@@ -7358,13 +7437,13 @@ const lr = (n) => {
7358
7437
  salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
7359
7438
  hideNotActive: n.hideNotActive
7360
7439
  },
7361
- (c) => T(c) || (W(c) || Dr(c)) && me(c)
7440
+ (c) => T(c) || (W(c) || br(c)) && ye(c)
7362
7441
  ) : {};
7363
- }, Wr = (n) => {
7442
+ }, jr = (n) => {
7364
7443
  const r = {};
7365
7444
  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;
7366
7445
  };
7367
- class Di extends h {
7446
+ class Ri extends h {
7368
7447
  /**
7369
7448
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
7370
7449
  *
@@ -7378,10 +7457,10 @@ class Di extends h {
7378
7457
  return this.get(
7379
7458
  `/internal/price/products/${r}/analyze`,
7380
7459
  {
7381
- ...Wr(e),
7382
- filters: lr(t)
7460
+ ...jr(e),
7461
+ filters: ur(t)
7383
7462
  },
7384
- (i) => _.instanceListInitializer(cr, i.data)
7463
+ (i) => _.instanceListInitializer(lr, i.data)
7385
7464
  );
7386
7465
  }
7387
7466
  /**
@@ -7397,10 +7476,10 @@ class Di extends h {
7397
7476
  return this.get(
7398
7477
  `/internal/price/categories/${r}/analyze`,
7399
7478
  {
7400
- ...Wr(e),
7401
- filters: lr(t)
7479
+ ...jr(e),
7480
+ filters: ur(t)
7402
7481
  },
7403
- (i) => _.instanceListInitializer(cr, i.data)
7482
+ (i) => _.instanceListInitializer(lr, i.data)
7404
7483
  );
7405
7484
  }
7406
7485
  /**
@@ -7419,13 +7498,13 @@ class Di extends h {
7419
7498
  `/internal/price/categories/${r}/analyze/square`,
7420
7499
  {
7421
7500
  ...e,
7422
- filters: lr(t)
7501
+ filters: ur(t)
7423
7502
  },
7424
- (i) => _.instanceListInitializer(cr, i.data)
7503
+ (i) => _.instanceListInitializer(lr, i.data)
7425
7504
  );
7426
7505
  }
7427
7506
  }
7428
- class Cs {
7507
+ class bs {
7429
7508
  /**
7430
7509
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
7431
7510
  *
@@ -7472,10 +7551,10 @@ class Cs {
7472
7551
  * @inheritDoc
7473
7552
  */
7474
7553
  s(this, "currency");
7475
- this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = D(r.costDate) ? R(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Ie(r.product) : void 0, this.client = r.client ? new q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new j(r.currency) : void 0;
7554
+ this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? D(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new xe(r.product) : void 0, this.client = r.client ? new q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new j(r.currency) : void 0;
7476
7555
  }
7477
7556
  }
7478
- class Ds extends Ie {
7557
+ class Ps extends xe {
7479
7558
  /**
7480
7559
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
7481
7560
  *
@@ -7487,10 +7566,10 @@ class Ds extends Ie {
7487
7566
  * @inheritDoc
7488
7567
  */
7489
7568
  s(this, "history");
7490
- this.history = Ce(e.history, (t) => new Cs(t));
7569
+ this.history = De(e.history, (t) => new bs(t));
7491
7570
  }
7492
7571
  }
7493
- class Ri extends h {
7572
+ class bi extends h {
7494
7573
  /**
7495
7574
  * Возвращает данные об истории изменения цен.
7496
7575
  *
@@ -7500,21 +7579,21 @@ class Ri extends h {
7500
7579
  */
7501
7580
  getProductPriceHistory(r) {
7502
7581
  var o, c, u, p, g;
7503
- const e = I().config.dateFormats.api, t = Qr(
7504
- Oe(r, {
7582
+ const e = k().config.dateFormats.api, t = Vr(
7583
+ Ie(r, {
7505
7584
  costDate: {
7506
- from: pr((o = r.costDate) == null ? void 0 : o.from) ? x(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7507
- to: pr((u = r.costDate) == null ? void 0 : u.to) ? x(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7585
+ from: hr((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
7586
+ to: hr((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
7508
7587
  }
7509
7588
  }),
7510
- (y) => T(y) || (W(y) || Dr(y)) && me(y)
7589
+ (y) => T(y) || (W(y) || br(y)) && ye(y)
7511
7590
  ), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
7512
7591
  return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((y) => [
7513
- new Ds(Oe(y[0], { history: y }))
7592
+ new Ps(Ie(y[0], { history: y }))
7514
7593
  ]);
7515
7594
  }
7516
7595
  }
7517
- class jr {
7596
+ class Gr {
7518
7597
  /**
7519
7598
  * Инициализирует экземпляр класса {@link RecommendationsList}.
7520
7599
  *
@@ -7529,10 +7608,10 @@ class jr {
7529
7608
  * Список рекомендованных категорий продуктов.
7530
7609
  */
7531
7610
  s(this, "productCategories", []);
7532
- r != null && r.products && (this.products = r.products.map((e) => new Ie(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Ie(e)));
7611
+ r != null && r.products && (this.products = r.products.map((e) => new xe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new xe(e)));
7533
7612
  }
7534
7613
  }
7535
- class bi extends h {
7614
+ class Pi extends h {
7536
7615
  /**
7537
7616
  * Возвращает данные о рекомендациях указанной категории продуктов.
7538
7617
  *
@@ -7540,7 +7619,7 @@ class bi extends h {
7540
7619
  * @see /docs/api#/operations/api_internal_recommendations_product_category_get
7541
7620
  */
7542
7621
  getProductCategoryRecommendations(r) {
7543
- return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new jr(e.data));
7622
+ return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Gr(e.data));
7544
7623
  }
7545
7624
  /**
7546
7625
  * Возвращает данные о рекомендациях указанного продукта.
@@ -7549,7 +7628,7 @@ class bi extends h {
7549
7628
  * @see /docs/api#/operations/api_internal_recommendations_product_get
7550
7629
  */
7551
7630
  getProductRecommendations(r) {
7552
- return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new jr(e.data));
7631
+ return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Gr(e.data));
7553
7632
  }
7554
7633
  /**
7555
7634
  * Выполняет сохранение данных о рекомендуемых категориях продуктов.
@@ -7578,27 +7657,12 @@ class bi extends h {
7578
7657
  });
7579
7658
  }
7580
7659
  }
7581
- var Rs = /* @__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))(Rs || {}), bs = /* @__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))(bs || {});
7582
- class Ps extends a {
7660
+ var Ts = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(Ts || {}), As = /* @__PURE__ */ ((n) => (n.CanceledBy1c = "canceled_by1c", n.CanceledByClient = "canceled_by_client", n.FinishedNotApproved = "finished_not_approved", n.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", n.WillWaiting = "will_waiting", n))(As || {});
7661
+ class ds extends v {
7583
7662
  }
7584
- class Ts extends a {
7585
- }
7586
- class $r extends k {
7587
- /**
7588
- * Инициализирует экземпляр класса {@link UserRegionShortInfo}.
7589
- *
7590
- * @param data Данные для первоначальной инициализации.
7591
- */
7592
- constructor(e) {
7593
- super(e);
7594
- /**
7595
- * @inheritDoc
7596
- */
7597
- s(this, "abbr");
7598
- this.abbr = (e == null ? void 0 : e.abbr) ?? "";
7599
- }
7663
+ class Ss extends v {
7600
7664
  }
7601
- class Gr extends a {
7665
+ class Yr extends v {
7602
7666
  /**
7603
7667
  * Инициализирует экземпляр класса {@link CityWithUserRegion}.
7604
7668
  *
@@ -7611,18 +7675,18 @@ class Gr extends a {
7611
7675
  * @inheritDoc
7612
7676
  */
7613
7677
  s(this, "userRegions");
7614
- this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new $r(i))) ?? [];
7678
+ this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new Ye(i))) ?? [];
7615
7679
  }
7616
7680
  }
7617
- class As extends a {
7681
+ class $s extends v {
7618
7682
  }
7619
- class ds extends a {
7683
+ class ks extends v {
7620
7684
  }
7621
- class Ss extends a {
7685
+ class Ls extends v {
7622
7686
  }
7623
- class $s extends a {
7687
+ class Os extends v {
7624
7688
  }
7625
- class Pi {
7689
+ class Ti {
7626
7690
  /**
7627
7691
  * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
7628
7692
  *
@@ -7641,9 +7705,9 @@ class Pi {
7641
7705
  return r.id === 0 && r.slug === "-undefined-";
7642
7706
  }
7643
7707
  }
7644
- class Dt extends a {
7708
+ class Pt extends v {
7645
7709
  }
7646
- const M = class M extends xe {
7710
+ const H = class H extends _e {
7647
7711
  /**
7648
7712
  * Исключает из списка записей справочника местоположений служебную запись
7649
7713
  * неизвестного региона или города.
@@ -7651,7 +7715,7 @@ const M = class M extends xe {
7651
7715
  * @param locations Записи справочника местоположений.
7652
7716
  */
7653
7717
  static withoutUnknownLocation(r) {
7654
- return r.filter((e) => e.id !== M.unknownLocationId);
7718
+ return r.filter((e) => e.id !== H.unknownLocationId);
7655
7719
  }
7656
7720
  /**
7657
7721
  * Возвращает {@link Promise} для получения данных указанного справочника.
@@ -7661,26 +7725,26 @@ const M = class M extends xe {
7661
7725
  * и использовать в случае аналогичных запросов.
7662
7726
  */
7663
7727
  getReference(r, e = !1) {
7664
- return this.getTypedDataArrayRequester(Ps, `/internal/references/${r}`, e);
7728
+ return this.getTypedDataArrayRequester(ds, `/internal/references/${r}`, e);
7665
7729
  }
7666
7730
  /**
7667
7731
  * Возвращает {@link Promise} для получения справочника данных о канале
7668
7732
  * первичного интереса.
7669
7733
  */
7670
7734
  getChannelPrimaryInterest() {
7671
- return this.getTypedDataArrayRequester(gt, "/internal/references/channel-primary-interest", !0);
7735
+ return this.getTypedDataArrayRequester(mt, "/internal/references/channel-primary-interest", !0);
7672
7736
  }
7673
7737
  /**
7674
7738
  * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
7675
7739
  */
7676
7740
  getContactPositions() {
7677
- return this.getTypedDataArrayRequester(As, "/internal/references/contact-position", !0);
7741
+ return this.getTypedDataArrayRequester($s, "/internal/references/contact-position", !0);
7678
7742
  }
7679
7743
  /**
7680
7744
  * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
7681
7745
  */
7682
7746
  getCuratedDirection() {
7683
- return this.getTypedDataArrayRequester(dr, "/internal/references/curated-direction", !0);
7747
+ return this.getTypedDataArrayRequester($r, "/internal/references/curated-direction", !0);
7684
7748
  }
7685
7749
  /**
7686
7750
  * Возвращает {@link Promise} для получения справочника списка валют.
@@ -7693,49 +7757,49 @@ const M = class M extends xe {
7693
7757
  * групп партнеров (направлений деятельности).
7694
7758
  */
7695
7759
  getPartnerGroup() {
7696
- return this.getTypedDataArrayRequester(we, "/internal/references/partner-group", !0);
7760
+ return this.getTypedDataArrayRequester(Ce, "/internal/references/partner-group", !0);
7697
7761
  }
7698
7762
  /**
7699
7763
  * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
7700
7764
  */
7701
7765
  getOpf() {
7702
- return this.getTypedDataArrayRequester(Z, "/public/references/opf", !0);
7766
+ return this.getTypedDataArrayRequester(re, "/public/references/opf", !0);
7703
7767
  }
7704
7768
  /**
7705
7769
  * Возвращает {@link Promise} для получения справочника операторов.
7706
7770
  */
7707
7771
  getOperators() {
7708
- return this.getTypedDataArrayRequester(wt, "/internal/references/operator", !0);
7772
+ return this.getTypedDataArrayRequester(Rt, "/internal/references/operator", !0);
7709
7773
  }
7710
7774
  /**
7711
7775
  * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
7712
7776
  */
7713
7777
  getOrderPaymentStatuses() {
7714
- return this.getTypedDataArrayRequester(ds, "/public/references/order-payment-status", !0);
7778
+ return this.getTypedDataArrayRequester(ks, "/public/references/order-payment-status", !0);
7715
7779
  }
7716
7780
  /**
7717
7781
  * Возвращает {@link Promise} для получения справочника данных статусов заказов.
7718
7782
  */
7719
7783
  getOrderStatuses() {
7720
- return this.getTypedDataArrayRequester(Ye, "/internal/references/order-status", !0);
7784
+ return this.getTypedDataArrayRequester(ze, "/internal/references/order-status", !0);
7721
7785
  }
7722
7786
  /**
7723
7787
  * Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
7724
7788
  */
7725
7789
  getOrderStatusDetails() {
7726
- return this.getTypedDataArrayRequester(Ss, "/internal/references/order-status-detail", !0);
7790
+ return this.getTypedDataArrayRequester(Ls, "/internal/references/order-status-detail", !0);
7727
7791
  }
7728
7792
  /**
7729
7793
  * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
7730
7794
  */
7731
7795
  getPaymentTypes() {
7732
- return this.getTypedDataArrayRequester(Ct, "/public/references/payment-type", !0);
7796
+ return this.getTypedDataArrayRequester(bt, "/public/references/payment-type", !0);
7733
7797
  }
7734
7798
  /**
7735
7799
  * Возвращает {@link Promise} для получения справочника типов ресурсов.
7736
7800
  */
7737
7801
  getResourceTypes() {
7738
- return this.getTypedDataArrayRequester(Dt, "/internal/references/resource-type", !0);
7802
+ return this.getTypedDataArrayRequester(Pt, "/internal/references/resource-type", !0);
7739
7803
  }
7740
7804
  /**
7741
7805
  * Возвращает {@link Promise} для получения справочника данных направлений продаж.
@@ -7747,7 +7811,7 @@ const M = class M extends xe {
7747
7811
  * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
7748
7812
  */
7749
7813
  getSourcePrimaryInterest() {
7750
- return this.getTypedDataArrayRequester(ft, "/internal/references/source-primary-interest", !0);
7814
+ return this.getTypedDataArrayRequester(yt, "/internal/references/source-primary-interest", !0);
7751
7815
  }
7752
7816
  /**
7753
7817
  * Выполняет поиск данных о городах по терму в названии.
@@ -7755,7 +7819,7 @@ const M = class M extends xe {
7755
7819
  * @param term Терм поиска.
7756
7820
  */
7757
7821
  searchCity(r) {
7758
- return this.getTypedDataArrayRequester(ve, `/internal/references/city-with-region-and-country/search?term=${r}`);
7822
+ return this.getTypedDataArrayRequester(we, `/internal/references/city-with-region-and-country/search?term=${r}`);
7759
7823
  }
7760
7824
  /**
7761
7825
  * Выполняет поиск данных о регионах по терму в названии.
@@ -7763,7 +7827,7 @@ const M = class M extends xe {
7763
7827
  * @param term Терм поиска.
7764
7828
  */
7765
7829
  searchRegion(r) {
7766
- return this.getTypedDataArrayRequester(ae, `/internal/references/region-with-country/search?term=${r}`);
7830
+ return this.getTypedDataArrayRequester(ve, `/internal/references/region-with-country/search?term=${r}`);
7767
7831
  }
7768
7832
  /**
7769
7833
  * Возвращает {@link Promise} для получения справочника регионов указанной страны.
@@ -7773,8 +7837,8 @@ const M = class M extends xe {
7773
7837
  * @param countryId Идентификатор страны.
7774
7838
  */
7775
7839
  getRegionsByCountry(r) {
7776
- return this.getTypedDataArrayRequester(ae, "/internal/references/region", !1, { params: { countryId: r } }).then(
7777
- (e) => M.withoutUnknownLocation(e)
7840
+ return this.getTypedDataArrayRequester(ve, "/internal/references/region", !1, { params: { countryId: r } }).then(
7841
+ (e) => H.withoutUnknownLocation(e)
7778
7842
  );
7779
7843
  }
7780
7844
  /**
@@ -7785,8 +7849,8 @@ const M = class M extends xe {
7785
7849
  * @param regionId Идентификатор региона.
7786
7850
  */
7787
7851
  getCitiesByRegion(r) {
7788
- return this.getTypedDataArrayRequester(Ts, "/internal/references/city", !1, { params: { regionId: r } }).then(
7789
- (e) => M.withoutUnknownLocation(e)
7852
+ return this.getTypedDataArrayRequester(Ss, "/internal/references/city", !1, { params: { regionId: r } }).then(
7853
+ (e) => H.withoutUnknownLocation(e)
7790
7854
  );
7791
7855
  }
7792
7856
  /**
@@ -7796,8 +7860,8 @@ const M = class M extends xe {
7796
7860
  * @param regionId Идентификатор региона.
7797
7861
  */
7798
7862
  getCitiesWithUserRegionByRegion(r) {
7799
- return this.getTypedDataArrayRequester(Gr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
7800
- (e) => M.withoutUnknownLocation(e)
7863
+ return this.getTypedDataArrayRequester(Yr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
7864
+ (e) => H.withoutUnknownLocation(e)
7801
7865
  );
7802
7866
  }
7803
7867
  /**
@@ -7810,12 +7874,12 @@ const M = class M extends xe {
7810
7874
  */
7811
7875
  searchCityWithRegion(r, e, t = void 0) {
7812
7876
  return this.getTypedDataArrayRequester(
7813
- ve,
7877
+ we,
7814
7878
  "/internal/references/city-with-region/search",
7815
7879
  !1,
7816
7880
  { term: r, ...e ? { params: { countryId: e } } : {} },
7817
7881
  t
7818
- ).then((i) => M.withoutUnknownLocation(i));
7882
+ ).then((i) => H.withoutUnknownLocation(i));
7819
7883
  }
7820
7884
  /**
7821
7885
  * Выполняет поиск данных о городах по терму в названии с данными
@@ -7825,8 +7889,8 @@ const M = class M extends xe {
7825
7889
  * @param signal Сигнал отмены запроса.
7826
7890
  */
7827
7891
  searchCityWithUserRegion(r, e = void 0) {
7828
- return this.getTypedDataArrayRequester(Gr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
7829
- (t) => M.withoutUnknownLocation(t)
7892
+ return this.getTypedDataArrayRequester(Yr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
7893
+ (t) => H.withoutUnknownLocation(t)
7830
7894
  );
7831
7895
  }
7832
7896
  /**
@@ -7835,25 +7899,25 @@ const M = class M extends xe {
7835
7899
  * @param term Терм поиска.
7836
7900
  */
7837
7901
  searchCountry(r) {
7838
- return this.getTypedDataArrayRequester(ye, `/internal/references/country/search?term=${r}`);
7902
+ return this.getTypedDataArrayRequester(ae, `/internal/references/country/search?term=${r}`);
7839
7903
  }
7840
7904
  /**
7841
7905
  * Возвращает {@link Promise} для получения справочника типов доставки.
7842
7906
  */
7843
7907
  getDeliveryTypes() {
7844
- return this.getTypedDataArrayRequester(E, "/internal/references/delivery-type", !0);
7908
+ return this.getTypedDataArrayRequester(Q, "/internal/references/delivery-type", !0);
7845
7909
  }
7846
7910
  /**
7847
7911
  * Возвращает {@link Promise} для получения справочника складов.
7848
7912
  */
7849
7913
  getWarehouses() {
7850
- return this.getTypedDataArrayRequester(qe, "/public/references/warehouse", !0);
7914
+ return this.getTypedDataArrayRequester(Ne, "/public/references/warehouse", !0);
7851
7915
  }
7852
7916
  /**
7853
7917
  * Возвращает {@link Promise} для получения справочника типов свойств.
7854
7918
  */
7855
7919
  getPropertyTypes() {
7856
- return this.getTypedDataArrayRequester(ct, "/internal/references/property-type", !0);
7920
+ return this.getTypedDataArrayRequester(ut, "/internal/references/property-type", !0);
7857
7921
  }
7858
7922
  /**
7859
7923
  * Возвращает {@link Promise} для получения справочника коэффициентов цен.
@@ -7865,17 +7929,17 @@ const M = class M extends xe {
7865
7929
  * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
7866
7930
  */
7867
7931
  getProductFileType() {
7868
- return this.getTypedDataArrayRequester($s, "/public/references/product-file-type", !0);
7932
+ return this.getTypedDataArrayRequester(Os, "/public/references/product-file-type", !0);
7869
7933
  }
7870
7934
  };
7871
7935
  /**
7872
7936
  * Идентификатор служебных записей справочников регионов и городов,
7873
7937
  * обозначающих неизвестное местоположение.
7874
7938
  */
7875
- s(M, "unknownLocationId", 1);
7876
- let d = M;
7877
- const S = ee("common.references_private", () => {
7878
- 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), C = v(void 0), be = v(void 0), Pe = v(void 0), se = v(void 0), ie = v(void 0), ze = v(void 0), Ee = v(void 0), Qe = v(void 0), l = v(void 0);
7939
+ s(H, "unknownLocationId", 1);
7940
+ let d = H;
7941
+ const S = te("common.references_private", () => {
7942
+ const n = a({}), r = a(void 0), e = a(void 0), t = a(void 0), i = a(void 0), o = a(void 0), c = a(void 0), u = a(void 0), p = a(void 0), g = a(void 0), y = a(void 0), R = a(void 0), Pe = a(void 0), Te = a(void 0), ie = a(void 0), ne = a(void 0), Ee = a(void 0), Qe = a(void 0), Je = a(void 0), l = a(void 0);
7879
7943
  return {
7880
7944
  /**
7881
7945
  * Список загружаемых/загруженных на данный момент значений.
@@ -7924,41 +7988,41 @@ const S = ee("common.references_private", () => {
7924
7988
  /**
7925
7989
  * Справочник типов оплаты заказов.
7926
7990
  */
7927
- paymentTypeReference: C,
7991
+ paymentTypeReference: R,
7928
7992
  /**
7929
7993
  * Справочник групп партнеров.
7930
7994
  */
7931
- partnerGroupReference: be,
7995
+ partnerGroupReference: Pe,
7932
7996
  /**
7933
7997
  * Справочник типов файлов продукктов/категорий.
7934
7998
  */
7935
- productFileTypeReference: Pe,
7999
+ productFileTypeReference: Te,
7936
8000
  /**
7937
8001
  * Справочник типов ресурсов.
7938
8002
  */
7939
- resourceTypesReference: se,
8003
+ resourceTypesReference: ie,
7940
8004
  /**
7941
8005
  * Справочник направлений продаж.
7942
8006
  */
7943
- salesDirectionsReference: ie,
8007
+ salesDirectionsReference: ne,
7944
8008
  /**
7945
8009
  * Справочник источников первичного интереса.
7946
8010
  */
7947
- sourcePrimaryInterestReference: ze,
8011
+ sourcePrimaryInterestReference: Ee,
7948
8012
  /**
7949
8013
  * Справочник складов.
7950
8014
  */
7951
- warehousesReference: Ee,
8015
+ warehousesReference: Qe,
7952
8016
  /**
7953
8017
  * Справочник типов свойств.
7954
8018
  */
7955
- propertyTypesReference: Qe,
8019
+ propertyTypesReference: Je,
7956
8020
  /**
7957
8021
  * Справочник коэффициентов цен.
7958
8022
  */
7959
8023
  priceCoefficientsReference: l
7960
8024
  };
7961
- }), Ti = ee("common.references", () => {
8025
+ }), Ai = te("common.references", () => {
7962
8026
  const n = P(() => {
7963
8027
  const l = S();
7964
8028
  return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
@@ -8014,42 +8078,42 @@ const S = ee("common.references_private", () => {
8014
8078
  return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(d).getProductFileType().then((f) => {
8015
8079
  l.productFileTypeReference = f;
8016
8080
  }).catch(w)), l.productFileTypeReference;
8017
- }), C = P(() => {
8081
+ }), R = P(() => {
8018
8082
  const l = S();
8019
8083
  return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(d).getResourceTypes().then((f) => {
8020
8084
  l.resourceTypesReference = f;
8021
8085
  }).catch(w)), l.resourceTypesReference;
8022
- }), be = P(() => {
8086
+ }), Pe = P(() => {
8023
8087
  const l = S();
8024
8088
  return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(d).getSalesDirections().then((f) => {
8025
8089
  l.salesDirectionsReference = f;
8026
8090
  }).catch(w)), l.salesDirectionsReference;
8027
- }), Pe = P(() => {
8091
+ }), Te = P(() => {
8028
8092
  const l = S();
8029
8093
  return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(d).getSourcePrimaryInterest().then((f) => {
8030
8094
  l.sourcePrimaryInterestReference = f;
8031
8095
  }).catch(w)), l.sourcePrimaryInterestReference;
8032
- }), se = P(() => {
8096
+ }), ie = P(() => {
8033
8097
  const l = S();
8034
8098
  return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(d).getDeliveryTypes().then((f) => {
8035
8099
  l.deliveryTypeReference = f;
8036
8100
  }).catch(w)), l.deliveryTypeReference;
8037
- }), ie = P(() => {
8101
+ }), ne = P(() => {
8038
8102
  const l = S();
8039
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ys).getManagers().then((f) => {
8103
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(wt).getManagers().then((f) => {
8040
8104
  l.managersList = f;
8041
8105
  }).catch(w)), l.managersList;
8042
- }), ze = P(() => {
8106
+ }), Ee = P(() => {
8043
8107
  const l = S();
8044
8108
  return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(d).getWarehouses().then((f) => {
8045
8109
  l.warehousesReference = f;
8046
8110
  }).catch(w)), l.warehousesReference;
8047
- }), Ee = P(() => {
8111
+ }), Qe = P(() => {
8048
8112
  const l = S();
8049
8113
  return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(d).getPropertyTypes().then((f) => {
8050
8114
  l.propertyTypesReference = f;
8051
8115
  }).catch(w)), l.propertyTypesReference;
8052
- }), Qe = P(() => {
8116
+ }), Je = P(() => {
8053
8117
  const l = S();
8054
8118
  return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(d).getPriceCoefficients().then((f) => {
8055
8119
  l.priceCoefficientsReference = f;
@@ -8103,38 +8167,38 @@ const S = ee("common.references_private", () => {
8103
8167
  /**
8104
8168
  * Справочник типов ресурсов.
8105
8169
  */
8106
- resourceTypesReference: C,
8170
+ resourceTypesReference: R,
8107
8171
  /**
8108
8172
  * Справочник направлений продаж.
8109
8173
  */
8110
- salesDirectionsReference: be,
8174
+ salesDirectionsReference: Pe,
8111
8175
  /**
8112
8176
  * Справочник каналов первичного интереса.
8113
8177
  */
8114
- sourcePrimaryInterestsReference: Pe,
8178
+ sourcePrimaryInterestsReference: Te,
8115
8179
  /**
8116
8180
  * Справочник типов доставки.
8117
8181
  */
8118
- deliveryTypeReference: se,
8182
+ deliveryTypeReference: ie,
8119
8183
  /**
8120
8184
  * Список менеджеров.
8121
8185
  */
8122
- managersList: ie,
8186
+ managersList: ne,
8123
8187
  /**
8124
8188
  * Справочник складов.
8125
8189
  */
8126
- warehousesReference: ze,
8190
+ warehousesReference: Ee,
8127
8191
  /**
8128
8192
  * Справочник типов свойств.
8129
8193
  */
8130
- propertyTypesReference: Ee,
8194
+ propertyTypesReference: Qe,
8131
8195
  /**
8132
8196
  * Справочник коэффициентов цен.
8133
8197
  */
8134
- priceCoefficientsReference: Qe
8198
+ priceCoefficientsReference: Je
8135
8199
  };
8136
8200
  });
8137
- class ks {
8201
+ class Is {
8138
8202
  /**
8139
8203
  * Инициализирует экземпляр класса {@link MetaTagItem}.
8140
8204
  *
@@ -8152,7 +8216,7 @@ class ks {
8152
8216
  this.name = r.name, this.content = r.content;
8153
8217
  }
8154
8218
  }
8155
- class Yr {
8219
+ class zr {
8156
8220
  /**
8157
8221
  * Инициализирует экземпляр класса {@link Seo}.
8158
8222
  *
@@ -8192,10 +8256,10 @@ class Yr {
8192
8256
  */
8193
8257
  s(this, "tags");
8194
8258
  var e;
8195
- this.resourceType = new Dt(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 ks(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8259
+ this.resourceType = new Pt(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new Is(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
8196
8260
  }
8197
8261
  }
8198
- class Ai extends h {
8262
+ class di extends h {
8199
8263
  /**
8200
8264
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
8201
8265
  *
@@ -8203,7 +8267,7 @@ class Ai extends h {
8203
8267
  * @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
8204
8268
  */
8205
8269
  getResourceSeoData(r, e) {
8206
- return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Yr(t.data));
8270
+ return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new zr(t.data));
8207
8271
  }
8208
8272
  /**
8209
8273
  * Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
@@ -8214,7 +8278,7 @@ class Ai extends h {
8214
8278
  * в случае ошибок в запросах.
8215
8279
  */
8216
8280
  saveResourceSeoData(r, e = {}) {
8217
- return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Yr(t.data), e);
8281
+ return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new zr(t.data), e);
8218
8282
  }
8219
8283
  /**
8220
8284
  * Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
@@ -8226,7 +8290,7 @@ class Ai extends h {
8226
8290
  return this.delete(`/internal/seo/${r.slug}/${e}`);
8227
8291
  }
8228
8292
  }
8229
- class di extends h {
8293
+ class Si extends h {
8230
8294
  /**
8231
8295
  * Возвращает подсказки по адресам.
8232
8296
  *
@@ -8273,8 +8337,8 @@ class di extends h {
8273
8337
  });
8274
8338
  }
8275
8339
  }
8276
- var Ls = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(Ls || {});
8277
- class Os extends ot {
8340
+ var Tt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(Tt || {});
8341
+ class xs extends lt {
8278
8342
  /**
8279
8343
  * Инициализирует экземпляр класса {@link User}.
8280
8344
  *
@@ -8298,15 +8362,15 @@ class Os extends ot {
8298
8362
  * Роль ценообразования текущего пользователя.
8299
8363
  */
8300
8364
  s(this, "pricingRole");
8301
- 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 it(e.pricingRole) : void 0;
8365
+ this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new ot(e.pricingRole) : void 0;
8302
8366
  }
8303
8367
  }
8304
- class Si extends h {
8368
+ class $i extends h {
8305
8369
  /**
8306
8370
  * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
8307
8371
  */
8308
8372
  constructor() {
8309
- super(), this.baseUrl = `${I().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
8373
+ super(), this.baseUrl = `${k().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
8310
8374
  }
8311
8375
  /**
8312
8376
  * Функция для получения обновленных токенов доступа.
@@ -8317,17 +8381,17 @@ class Si extends h {
8317
8381
  return this.get("internal/users/current-tokens").then((r) => r.accessToken);
8318
8382
  }
8319
8383
  }
8320
- class Is extends h {
8384
+ class _s extends h {
8321
8385
  /**
8322
8386
  * Возвращает данные о текущем пользователе.
8323
8387
  */
8324
8388
  // eslint-disable-next-line class-methods-use-this
8325
8389
  getCurrentUser() {
8326
- return this.get("/internal/users/info", {}, (r) => new Os(r.data), !0);
8390
+ return this.get("/internal/users/info", {}, (r) => new xs(r.data), !0);
8327
8391
  }
8328
8392
  }
8329
- const xs = ee("common.user_state_private", () => {
8330
- const n = v({}), r = v(void 0);
8393
+ const Cr = te("common.user_state_private", () => {
8394
+ const n = a({}), r = a(void 0), e = a(void 0);
8331
8395
  return {
8332
8396
  /**
8333
8397
  * Список загружаемых/загруженных на данный момент значений.
@@ -8336,22 +8400,42 @@ const xs = ee("common.user_state_private", () => {
8336
8400
  /**
8337
8401
  * Данные о текущем пользователе.
8338
8402
  */
8339
- currentUser: r
8403
+ currentUser: r,
8404
+ /**
8405
+ * Данные о текущем менеджере (если текущий пользователь является менеджером).
8406
+ */
8407
+ currentManager: e
8340
8408
  };
8341
- }), $i = ee("common.user_state", () => ({
8342
- /**
8343
- * Данные о текущем пользователе.
8344
- */
8345
- currentUser: P(() => {
8346
- const r = xs();
8347
- return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Is).getCurrentUser().then((e) => {
8348
- r.currentUser = e;
8409
+ });
8410
+ function Er(n) {
8411
+ const r = Cr();
8412
+ (n == null ? void 0 : n.type) !== Tt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(wt).getManager(n.id).then((e) => {
8413
+ r.currentManager = e;
8414
+ }).catch(w).finally(() => {
8415
+ r.dataLoaderList.currentManager = !1;
8416
+ }));
8417
+ }
8418
+ const ki = te("common.user_state", () => {
8419
+ const n = P(() => {
8420
+ const e = Cr();
8421
+ return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(_s).getCurrentUser().then((t) => {
8422
+ e.currentUser = t, Er(t);
8349
8423
  }).catch(w).finally(() => {
8350
- r.dataLoaderList.currentUser = !1;
8351
- })), r.currentUser;
8352
- })
8353
- }));
8354
- class wr {
8424
+ e.dataLoaderList.currentUser = !1;
8425
+ })), e.currentUser;
8426
+ }), r = P(() => (Er(n.value), Cr().currentManager));
8427
+ return {
8428
+ /**
8429
+ * Данные о текущем пользователе.
8430
+ */
8431
+ currentUser: n,
8432
+ /**
8433
+ * Данные о текущем менеджере (если текущий пользователь является менеджером).
8434
+ */
8435
+ currentManager: r
8436
+ };
8437
+ });
8438
+ class Dr {
8355
8439
  /**
8356
8440
  * Инициализирует экземпляр класса {@link UserRegionEmployee}.
8357
8441
  *
@@ -8369,7 +8453,7 @@ class wr {
8369
8453
  this.user = new q(r == null ? void 0 : r.user), this.salesDirection = new F(r == null ? void 0 : r.salesDirection);
8370
8454
  }
8371
8455
  }
8372
- class ur extends $r {
8456
+ class pr extends Ye {
8373
8457
  /**
8374
8458
  * Инициализирует экземпляр класса {@link UserRegion}.
8375
8459
  *
@@ -8386,10 +8470,10 @@ class ur extends $r {
8386
8470
  * @inheritDoc
8387
8471
  */
8388
8472
  s(this, "users");
8389
- this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new ve(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new wr(o))) ?? [];
8473
+ this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new we(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Dr(o))) ?? [];
8390
8474
  }
8391
8475
  }
8392
- class ki extends _e {
8476
+ class Li extends qe {
8393
8477
  /**
8394
8478
  * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
8395
8479
  *
@@ -8425,7 +8509,7 @@ class ki extends _e {
8425
8509
  return this;
8426
8510
  }
8427
8511
  }
8428
- class Li extends re {
8512
+ class Oi extends Y {
8429
8513
  /**
8430
8514
  * Возвращает список регионов пользователей.
8431
8515
  *
@@ -8436,7 +8520,7 @@ class Li extends re {
8436
8520
  * @see /doc/api/internal#/operations/api_internal_user_region_get_list
8437
8521
  */
8438
8522
  getRegionsList(r, e, t) {
8439
- return this.getTypedPaginated($r, "/internal/users/regions", r, e, t);
8523
+ return this.getTypedPaginated(Ye, "/internal/users/regions", r, e, t);
8440
8524
  }
8441
8525
  /**
8442
8526
  * Возвращает полные данные о регионе пользователей.
@@ -8446,7 +8530,7 @@ class Li extends re {
8446
8530
  * @see /doc/api/internal#/operations/api_internal_user_region_get
8447
8531
  */
8448
8532
  getRegion(r) {
8449
- return this.get(`/internal/users/regions/${r}`, {}, (e) => new ur(e.data));
8533
+ return this.get(`/internal/users/regions/${r}`, {}, (e) => new pr(e.data));
8450
8534
  }
8451
8535
  /**
8452
8536
  * Создаёт новый регион пользователей.
@@ -8459,7 +8543,7 @@ class Li extends re {
8459
8543
  * @see /doc/api/internal#/operations/api_internal_user_region_create
8460
8544
  */
8461
8545
  createRegion(r, e = {}) {
8462
- return this.post("/internal/users/regions", r, (t) => new ur(t.data), e);
8546
+ return this.post("/internal/users/regions", r, (t) => new pr(t.data), e);
8463
8547
  }
8464
8548
  /**
8465
8549
  * Изменяет данные о регионе пользователей.
@@ -8473,7 +8557,7 @@ class Li extends re {
8473
8557
  * @see /doc/api/internal#/operations/api_internal_user_region_change
8474
8558
  */
8475
8559
  updateRegion(r, e, t = {}) {
8476
- return this.patch(`/internal/users/regions/${r}`, e, (i) => new ur(i.data), t);
8560
+ return this.patch(`/internal/users/regions/${r}`, e, (i) => new pr(i.data), t);
8477
8561
  }
8478
8562
  /**
8479
8563
  * Удаляет регион пользователей.
@@ -8493,7 +8577,7 @@ class Li extends re {
8493
8577
  * @see /doc/api/internal#/operations/api_internal_user_region_user_get_list
8494
8578
  */
8495
8579
  getRegionEmployees(r) {
8496
- return this.getTypedList(wr, `/internal/users/regions/${r}/users`);
8580
+ return this.getTypedList(Dr, `/internal/users/regions/${r}/users`);
8497
8581
  }
8498
8582
  /**
8499
8583
  * Закрепляет сотрудника за регионом по указанному направлению продаж.
@@ -8505,7 +8589,7 @@ class Li extends re {
8505
8589
  * @see /doc/api/internal#/operations/api_internal_user_region_user_add
8506
8590
  */
8507
8591
  attachRegionEmployee(r, e, t) {
8508
- return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new wr(i.data));
8592
+ return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Dr(i.data));
8509
8593
  }
8510
8594
  /**
8511
8595
  * Открепляет сотрудника от региона по указанному направлению продаж.
@@ -8524,7 +8608,7 @@ class Li extends re {
8524
8608
  });
8525
8609
  }
8526
8610
  }
8527
- class Oi {
8611
+ class Ii {
8528
8612
  /**
8529
8613
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
8530
8614
  *
@@ -8548,190 +8632,190 @@ class Oi {
8548
8632
  }
8549
8633
  }
8550
8634
  export {
8551
- Ps as AnyReference,
8552
- Kt as AppBaseConfig,
8553
- ar as BankAccount,
8554
- re as BasePaginationProvider,
8555
- sr as BlogPost,
8556
- fr as BlogPostMediaFile,
8557
- Me as BlogPostMediaTypeEnum,
8635
+ ds as AnyReference,
8636
+ rs as AppBaseConfig,
8637
+ vr as BankAccount,
8638
+ Y as BasePaginationProvider,
8639
+ ir as BlogPost,
8640
+ mr as BlogPostMediaFile,
8641
+ He as BlogPostMediaTypeEnum,
8558
8642
  Be as BlogPostPublicationStatusEnum,
8559
- fe as BlogPostShortInfo,
8560
- Ws as BlogPostsListFilters,
8561
- mr as BlogProvider,
8562
- ts as CalculationTypeEnum,
8643
+ me as BlogPostShortInfo,
8644
+ js as BlogPostsListFilters,
8645
+ yr as BlogProvider,
8646
+ os as CalculationTypeEnum,
8563
8647
  m as CalendarHelper,
8564
- Se as Cart,
8565
- Gs as CartProvider,
8566
- zs as CatalogProvider,
8567
- Zr as CatalogableItem,
8568
- Y as Category,
8569
- cs as CategoryFilter,
8570
- Fr as CategoryFilterSetting,
8571
- os as CategoryFilterValue,
8572
- Ur as CategoryPricingRule,
8573
- gt as ChannelPrimaryInterest,
8574
- Ts as City,
8575
- ve as CityWithRegionAndCountry,
8576
- Gr as CityWithUserRegion,
8577
- Br as Client,
8578
- hs as ClientAdditionalData,
8648
+ $e as Cart,
8649
+ Ys as CartProvider,
8650
+ Es as CatalogProvider,
8651
+ rt as CatalogableItem,
8652
+ z as Category,
8653
+ hs as CategoryFilter,
8654
+ Mr as CategoryFilterSetting,
8655
+ ps as CategoryFilterValue,
8656
+ Fr as CategoryPricingRule,
8657
+ mt as ChannelPrimaryInterest,
8658
+ Ss as City,
8659
+ we as CityWithRegionAndCountry,
8660
+ Yr as CityWithUserRegion,
8661
+ Wr as Client,
8662
+ ys as ClientAdditionalData,
8579
8663
  We as ClientCategory,
8580
- H as ClientDataProvider,
8581
- Es as ClientPriceProvider,
8582
- Qs as ClientPriceTemplateProvider,
8583
- K as ClientProduct,
8584
- Ks as ClientProductCategoryDataProvider,
8585
- Xs as ClientProductDataProvider,
8586
- te as ClientShortInfo,
8587
- ls as ClientsAdditionalDataRequestTypeEnum,
8588
- si as ClientsListFilters,
8589
- Ie as CodedIdentity,
8590
- oi as ConfiguratorProvider,
8591
- fs as ConfiguratorsEnum,
8592
- vr as Contact,
8593
- st as ContactLinks,
8594
- X as ContactPerson,
8595
- gs as ContactPersonRelated,
8596
- As as ContactPosition,
8597
- or as ContactRelation,
8598
- ut as ContragentBase,
8664
+ M as ClientDataProvider,
8665
+ Qs as ClientPriceProvider,
8666
+ Js as ClientPriceTemplateProvider,
8667
+ J as ClientProduct,
8668
+ Xs as ClientProductCategoryDataProvider,
8669
+ Zs as ClientProductDataProvider,
8670
+ se as ClientShortInfo,
8671
+ gs as ClientsAdditionalDataRequestTypeEnum,
8672
+ ii as ClientsListFilters,
8673
+ xe as CodedIdentity,
8674
+ ci as ConfiguratorProvider,
8675
+ vs as ConfiguratorsEnum,
8676
+ wr as Contact,
8677
+ nt as ContactLinks,
8678
+ ee as ContactPerson,
8679
+ as as ContactPersonRelated,
8680
+ $s as ContactPosition,
8681
+ cr as ContactRelation,
8682
+ ht as ContragentBase,
8599
8683
  je as ContragentFactory,
8600
- pt as ContragentIc,
8601
- us as ContragentPerson,
8602
- ps as ContragentUlNr,
8603
- ht as ContragentUlR,
8604
- Tr as CostSourceEnum,
8605
- ye as Country,
8606
- dr as CuratedDirection,
8607
- Sr as Curator,
8684
+ gt as ContragentIc,
8685
+ fs as ContragentPerson,
8686
+ ms as ContragentUlNr,
8687
+ ft as ContragentUlR,
8688
+ dr as CostSourceEnum,
8689
+ ae as Country,
8690
+ $r as CuratedDirection,
8691
+ kr as Curator,
8608
8692
  j as Currency,
8609
- di as DataSuggestionProvider,
8610
- ui as DateTimeProvider,
8611
- lt as DeletableNamedIdentity,
8612
- Le as DeliveryAddress,
8613
- E as DeliveryType,
8614
- Jr as DetailedJwtPayload,
8615
- Et as DeviceTypeResolutionConfig,
8616
- Xt as DiscountShortInfo,
8617
- Oi as FieldValidationResultData,
8618
- V as FilterGroup,
8619
- qr as FilterItem,
8620
- br as FilterOpEnum,
8621
- ns as FilterSettings,
8622
- Xr as GeoCoordinates,
8623
- es as HiddenCatalogableItem,
8624
- xe as HttpCachedRequester,
8625
- Qt as HttpParamsConfig,
8693
+ Si as DataSuggestionProvider,
8694
+ pi as DateTimeProvider,
8695
+ pt as DeletableNamedIdentity,
8696
+ Oe as DeliveryAddress,
8697
+ Q as DeliveryType,
8698
+ Kr as DetailedJwtPayload,
8699
+ Kt as DeviceTypeResolutionConfig,
8700
+ ts as DiscountShortInfo,
8701
+ Ii as FieldValidationResultData,
8702
+ Z as FilterGroup,
8703
+ Nr as FilterItem,
8704
+ Tr as FilterOpEnum,
8705
+ us as FilterSettings,
8706
+ et as GeoCoordinates,
8707
+ is as HiddenCatalogableItem,
8708
+ _e as HttpCachedRequester,
8709
+ Xt as HttpParamsConfig,
8626
8710
  h as HttpRequester,
8627
8711
  G as Identity,
8628
- rs as Image,
8629
- De as JwtPayload,
8630
- Ne as Manager,
8631
- Ar as ManagerCommon,
8632
- fi as ManagerDataFactory,
8633
- ys as ManagerDataProvider,
8634
- ks as MetaTagItem,
8635
- k as NamedIdentity,
8636
- le as Offer,
8637
- at as OfferShortInfo,
8638
- yi as OffersDataProvider,
8639
- mi as OffersListFilters,
8640
- wt as Operator,
8641
- Z as Opf,
8642
- z as OpfEnum,
8643
- L as Order,
8644
- vs as OrderAction,
8645
- ai as OrderEditorData,
8646
- vt as OrderInfo,
8647
- as as OrderItem,
8648
- et as OrderItemBase,
8649
- ds as OrderPaymentStatus,
8650
- mt as OrderShortInfo,
8651
- Ye as OrderStatus,
8652
- Ss as OrderStatusDetail,
8653
- bs as OrderStatusDetailEnum,
8654
- Rs as OrderStatusEnum,
8655
- ws as OrderStatusHistoryInfo,
8656
- wi as OrdersDataProvider,
8657
- vi as OrdersListFilters,
8658
- _e as PaginationFiltersBase,
8659
- we as PartnerGroup,
8660
- Ct as PaymentType,
8661
- He as PreferencesStorageProvider,
8662
- cr as PriceAnalyze,
8663
- Di as PriceAnalyzeProvider,
8712
+ ns as Image,
8713
+ Re as JwtPayload,
8714
+ V as Manager,
8715
+ Sr as ManagerCommon,
8716
+ mi as ManagerDataFactory,
8717
+ wt as ManagerDataProvider,
8718
+ Is as MetaTagItem,
8719
+ O as NamedIdentity,
8720
+ ue as Offer,
8721
+ Ct as OfferShortInfo,
8722
+ ai as OffersDataProvider,
8723
+ yi as OffersListFilters,
8724
+ Rt as Operator,
8725
+ re as Opf,
8726
+ E as OpfEnum,
8727
+ I as Order,
8728
+ Ds as OrderAction,
8729
+ vi as OrderEditorData,
8730
+ Dt as OrderInfo,
8731
+ Cs as OrderItem,
8732
+ tt as OrderItemBase,
8733
+ ks as OrderPaymentStatus,
8734
+ at as OrderShortInfo,
8735
+ ze as OrderStatus,
8736
+ Ls as OrderStatusDetail,
8737
+ As as OrderStatusDetailEnum,
8738
+ Ts as OrderStatusEnum,
8739
+ Rs as OrderStatusHistoryInfo,
8740
+ Ci as OrdersDataProvider,
8741
+ wi as OrdersListFilters,
8742
+ qe as PaginationFiltersBase,
8743
+ Ce as PartnerGroup,
8744
+ bt as PaymentType,
8745
+ Me as PreferencesStorageProvider,
8746
+ lr as PriceAnalyze,
8747
+ Ri as PriceAnalyzeProvider,
8664
8748
  Ge as PriceCoefficient,
8665
- Kr as PriceCoefficientEnum,
8666
- Ri as PriceHistoryDataProvider,
8667
- Cs as PriceHistoryItem,
8668
- pe as PriceTemplate,
8669
- ir as PriceTemplateCategory,
8670
- $e as PriceTemplateClient,
8671
- nt as PriceTemplateICatalogableItem,
8672
- nr as PriceTemplateProduct,
8673
- Zs as PriceTemplateProvider,
8674
- ke as PricingRole,
8675
- ei as PricingRoleProvider,
8676
- yr as PrimaryCatalogableItem,
8677
- U as Product,
8678
- Js as ProductCategoryDataProvider,
8679
- Vs as ProductDataProvider,
8680
- $s as ProductFileType,
8681
- tt as ProductFilterTypeEnum,
8682
- Pr as ProductPriceCoefficient,
8683
- Ds as ProductPriceHistory,
8684
- Nr as ProductUnit,
8685
- ri as PropertiesProvider,
8686
- he as Property,
8687
- ct as PropertyType,
8688
- ss as PropertyTypeEnum,
8689
- ce as PropertyValue,
8690
- bi as RecommendationsDataProvider,
8691
- jr as RecommendationsList,
8692
- a as Reference,
8693
- Pi as ReferenceDataFactory,
8749
+ Zr as PriceCoefficientEnum,
8750
+ bi as PriceHistoryDataProvider,
8751
+ bs as PriceHistoryItem,
8752
+ he as PriceTemplate,
8753
+ nr as PriceTemplateCategory,
8754
+ ke as PriceTemplateClient,
8755
+ ct as PriceTemplateICatalogableItem,
8756
+ or as PriceTemplateProduct,
8757
+ ei as PriceTemplateProvider,
8758
+ Le as PricingRole,
8759
+ ri as PricingRoleProvider,
8760
+ ar as PrimaryCatalogableItem,
8761
+ N as Product,
8762
+ Vs as ProductCategoryDataProvider,
8763
+ Ks as ProductDataProvider,
8764
+ Os as ProductFileType,
8765
+ it as ProductFilterTypeEnum,
8766
+ Ar as ProductPriceCoefficient,
8767
+ Ps as ProductPriceHistory,
8768
+ Ur as ProductUnit,
8769
+ ti as PropertiesProvider,
8770
+ ge as Property,
8771
+ ut as PropertyType,
8772
+ cs as PropertyTypeEnum,
8773
+ le as PropertyValue,
8774
+ Pi as RecommendationsDataProvider,
8775
+ Gr as RecommendationsList,
8776
+ v as Reference,
8777
+ Ti as ReferenceDataFactory,
8694
8778
  d as ReferenceDataProvider,
8695
- ae as Region,
8696
- Dt as ResourceType,
8697
- pi as STANDARD_PERIOD_GROUPS,
8698
- hi as STANDARD_PERIOD_SECTIONS,
8779
+ ve as Region,
8780
+ Pt as ResourceType,
8781
+ hi as STANDARD_PERIOD_GROUPS,
8782
+ gi as STANDARD_PERIOD_SECTIONS,
8699
8783
  F as SalesDirection,
8700
- Jt as SentryConfig,
8701
- Yr as Seo,
8702
- Ai as SeoDataProvider,
8703
- ft as SourcePrimaryInterest,
8704
- Zt as StockCount,
8705
- ci as TableDataPagination,
8706
- ms as TableDataPaginationRequestParams,
8707
- li as TableDataSortRequestParams,
8708
- ti as TemplateProductCategoryDataProvider,
8709
- Ys as TemplatesListFilters,
8784
+ Zt as SentryConfig,
8785
+ zr as Seo,
8786
+ di as SeoDataProvider,
8787
+ yt as SourcePrimaryInterest,
8788
+ ss as StockCount,
8789
+ li as TableDataPagination,
8790
+ ws as TableDataPaginationRequestParams,
8791
+ ui as TableDataSortRequestParams,
8792
+ si as TemplateProductCategoryDataProvider,
8793
+ zs as TemplatesListFilters,
8710
8794
  _ as TypedInstanceFactory,
8711
- yt as UnitsHelper,
8712
- ii as UnknownClientDataProvider,
8713
- Vr as UpdatableNamedIdentity,
8714
- Os as User,
8715
- Si as UserAuthDataProvider,
8716
- ot as UserCommonInfo,
8717
- Is as UserDataProvider,
8718
- it as UserPricingRole,
8719
- ur as UserRegion,
8720
- wr as UserRegionEmployee,
8721
- Li as UserRegionProvider,
8722
- $r as UserRegionShortInfo,
8723
- ki as UserRegionsListFilters,
8795
+ vt as UnitsHelper,
8796
+ ni as UnknownClientDataProvider,
8797
+ Xr as UpdatableNamedIdentity,
8798
+ xs as User,
8799
+ $i as UserAuthDataProvider,
8800
+ lt as UserCommonInfo,
8801
+ _s as UserDataProvider,
8802
+ ot as UserPricingRole,
8803
+ pr as UserRegion,
8804
+ Dr as UserRegionEmployee,
8805
+ Oi as UserRegionProvider,
8806
+ Ye as UserRegionShortInfo,
8807
+ Li as UserRegionsListFilters,
8724
8808
  q as UserShortInfo,
8725
- Ls as UserTypeEnum,
8726
- ni as VersionConfig,
8727
- qe as Warehouse,
8728
- Vt as WebSocketConfig,
8729
- Ci as currentOrderInjectionKey,
8809
+ Tt as UserTypeEnum,
8810
+ oi as VersionConfig,
8811
+ Ne as Warehouse,
8812
+ es as WebSocketConfig,
8813
+ Di as currentOrderInjectionKey,
8730
8814
  Hr as findCatalogItemByIdRecursive,
8731
- Mr as flattenCatalogItems,
8732
- gi as pluralize,
8733
- tr as useAuthStateStore,
8734
- I as useBaseConfigStateStore,
8735
- Ti as useReferencesStore,
8736
- $i as useUserStateStore
8815
+ Br as flattenCatalogItems,
8816
+ fi as pluralize,
8817
+ sr as useAuthStateStore,
8818
+ k as useBaseConfigStateStore,
8819
+ Ai as useReferencesStore,
8820
+ ki as useUserStateStore
8737
8821
  };